From 2270e8683d94e700e89f169f7ac1ac6c6125a31f Mon Sep 17 00:00:00 2001 From: Ulrich-Matthias Schäfer Date: Mon, 22 Jun 2015 22:07:08 +0200 Subject: Fixed zoom consideration in circle and ellipse (see d0e24c5a8d20167c03ec9b8873d1c459001b9dac) --- src/ellipse.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/ellipse.js b/src/ellipse.js index d64209a..b1ae4fc 100755 --- a/src/ellipse.js +++ b/src/ellipse.js @@ -64,11 +64,11 @@ SVG.extend(SVG.Circle, SVG.Ellipse, { } // Move by center over x-axis , cx: function(x) { - return x == null ? this.attr('cx') : this.attr('cx', new SVG.Number(x).divide(this.transform('scaleX'))) + return x == null ? this.attr('cx') : this.attr('cx', x) } // Move by center over y-axis , cy: function(y) { - return y == null ? this.attr('cy') : this.attr('cy', new SVG.Number(y).divide(this.transform('scaleY'))) + return y == null ? this.attr('cy') : this.attr('cy', y) } // Set width of element , width: function(width) { -- cgit v1.2.3