summaryrefslogtreecommitdiffstats
path: root/src/element.js
diff options
context:
space:
mode:
authorUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2015-06-21 18:32:10 +0200
committerUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2015-06-21 18:32:10 +0200
commit06eda6b6f232f5c22a7dc3d56f7ce72a86f28ec8 (patch)
treea14a90c1bc65df569d775edae321500f77754d21 /src/element.js
parentae7052db3c89d33af7ca9b1a8132e99103b73614 (diff)
downloadsvg.js-06eda6b6f232f5c22a7dc3d56f7ce72a86f28ec8.tar.gz
svg.js-06eda6b6f232f5c22a7dc3d56f7ce72a86f28ec8.zip
Removed scale consideration in `move()`
It wasn't compatible to the other move-functions e.g. for the PointArray
Diffstat (limited to 'src/element.js')
-rwxr-xr-xsrc/element.js8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/element.js b/src/element.js
index 1583196..978db4c 100755
--- a/src/element.js
+++ b/src/element.js
@@ -19,18 +19,10 @@ SVG.Element = SVG.invent({
, extend: {
// Move over x-axis
x: function(x) {
- if (x != null) {
- x = new SVG.Number(x)
- x.value /= this.transform('scaleX')
- }
return this.attr('x', x)
}
// Move over y-axis
, y: function(y) {
- if (y != null) {
- y = new SVG.Number(y)
- y.value /= this.transform('scaleY')
- }
return this.attr('y', y)
}
// Move by center over x-axis