aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2015-06-22 22:07:08 +0200
committerUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2015-06-22 22:07:08 +0200
commit2270e8683d94e700e89f169f7ac1ac6c6125a31f (patch)
tree4c9b0d65cfa94560c353097a4705154f01ee5052 /src
parentd0e24c5a8d20167c03ec9b8873d1c459001b9dac (diff)
downloadsvg.js-2270e8683d94e700e89f169f7ac1ac6c6125a31f.tar.gz
svg.js-2270e8683d94e700e89f169f7ac1ac6c6125a31f.zip
Fixed zoom consideration in circle and ellipse (see d0e24c5a8d20167c03ec9b8873d1c459001b9dac)
Diffstat (limited to 'src')
-rwxr-xr-xsrc/ellipse.js4
1 files changed, 2 insertions, 2 deletions
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) {