mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-05-01 10:34:42 +00:00
Update polygon.class.js
Apply opacity property to poligon class.
This commit is contained in:
parent
572038b0e5
commit
8482c1c29b
1 changed files with 1 additions and 0 deletions
|
|
@ -123,6 +123,7 @@
|
|||
_render: function(ctx) {
|
||||
var point;
|
||||
ctx.beginPath();
|
||||
ctx.globalAlpha = this.group ? (ctx.globalAlpha * this.opacity) : this.opacity;
|
||||
ctx.moveTo(this.points[0].x, this.points[0].y);
|
||||
for (var i = 0, len = this.points.length; i < len; i++) {
|
||||
point = this.points[i];
|
||||
|
|
|
|||
Loading…
Reference in a new issue