From 66d6b633ba32f91675cb6600da18bd846a50bb26 Mon Sep 17 00:00:00 2001 From: asturur Date: Thu, 19 Jun 2014 21:37:33 +0200 Subject: [PATCH] Update ellipse.class.js --- src/shapes/ellipse.class.js | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/shapes/ellipse.class.js b/src/shapes/ellipse.class.js index 04e4abe9..5cdd53dc 100644 --- a/src/shapes/ellipse.class.js +++ b/src/shapes/ellipse.class.js @@ -118,7 +118,7 @@ ctx.arc(noTransform ? this.left : 0, noTransform ? this.top*this.rx/this.ry : 0, this.rx, 0, piBy2, false); this._renderFill(ctx); this._renderStroke(ctx); - ctx.restore(); + ctx.restore(); }, /** @@ -151,20 +151,20 @@ options || (options = { }); var parsedAttributes = fabric.parseAttributes(element, fabric.Ellipse.ATTRIBUTE_NAMES), - cx = parsedAttributes.left || 0, - cy = parsedAttributes.top || 0; + cx = parsedAttributes.left || 0, + cy = parsedAttributes.top || 0; - if (!('left' in parsedAttributes)) { - parsedAttributes.left=0; - } - parsedAttributes.left -= (options.width / 2) || 0; + if (!('left' in parsedAttributes)) { + parsedAttributes.left=0; + } + parsedAttributes.left -= (options.width / 2) || 0; - if (!('top' in parsedAttributes)) { - parsedAttributes.top=0; - } - parsedAttributes.top -= (options.height / 2) || 0; + if (!('top' in parsedAttributes)) { + parsedAttributes.top=0; + } + parsedAttributes.top -= (options.height / 2) || 0; - return ellipse; + return ellipse; }; /* _FROM_SVG_END_ */