From a453ba83d796d9652b0894fab1b4409f739e9c9b Mon Sep 17 00:00:00 2001 From: asturur Date: Thu, 10 Jul 2014 12:09:47 +0200 Subject: [PATCH] Update ellipse.class.js Fixes border without killing opacity. Opacity need to be moved in render function maybe, not in _render. --- src/shapes/ellipse.class.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/shapes/ellipse.class.js b/src/shapes/ellipse.class.js index e43d440b..a1539ca0 100644 --- a/src/shapes/ellipse.class.js +++ b/src/shapes/ellipse.class.js @@ -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(); }, /**