diff options
author | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2015-06-21 18:32:10 +0200 |
---|---|---|
committer | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2015-06-21 18:32:10 +0200 |
commit | 06eda6b6f232f5c22a7dc3d56f7ce72a86f28ec8 (patch) | |
tree | a14a90c1bc65df569d775edae321500f77754d21 /src | |
parent | ae7052db3c89d33af7ca9b1a8132e99103b73614 (diff) | |
download | svg.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')
-rw-r--r-- | src/attr.js | 2 | ||||
-rwxr-xr-x | src/element.js | 8 | ||||
-rwxr-xr-x | src/pattern.js | 4 |
3 files changed, 3 insertions, 11 deletions
diff --git a/src/attr.js b/src/attr.js index 2d57390..9340981 100644 --- a/src/attr.js +++ b/src/attr.js @@ -28,7 +28,7 @@ SVG.extend(SVG.Element, { parseFloat(v) : v } else { - // bUG FIX: some browsers will render a stroke if a color is given even though stroke width is 0 + // BUG FIX: some browsers will render a stroke if a color is given even though stroke width is 0 if (a == 'stroke-width') this.attr('stroke', parseFloat(v) > 0 ? this._stroke : null) else if (a == 'stroke') 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 diff --git a/src/pattern.js b/src/pattern.js index 76190ef..2a5ead2 100755 --- a/src/pattern.js +++ b/src/pattern.js @@ -13,10 +13,10 @@ SVG.Pattern = SVG.invent({ } // Update pattern by rebuilding , update: function(block) { - /* remove content */ + // remove content this.clear() - /* invoke passed block */ + // invoke passed block if (typeof block == 'function') block.call(this, this) |