Update ellipse.class.js

Fixes border without killing opacity. Opacity need to be moved in render function maybe, not in _render.
This commit is contained in:
asturur 2014-07-10 12:09:47 +02:00
parent 2ead055205
commit a453ba83d7

View file

@ -109,13 +109,13 @@
*/
_render: function(ctx, noTransform) {
ctx.beginPath();
ctx.save();
ctx.globalAlpha = this.group ? (ctx.globalAlpha * this.opacity) : this.opacity;
ctx.save();
ctx.transform(1, 0, 0, this.ry/this.rx, 0, 0);
ctx.arc(noTransform ? this.left : 0, noTransform ? this.top * this.rx/this.ry : 0, this.rx, 0, piBy2, false);
ctx.restore();
this._renderFill(ctx);
this._renderStroke(ctx);
ctx.restore();
},
/**