diff options
author | wout <wout@impinc.co.uk> | 2014-07-12 14:18:52 +0200 |
---|---|---|
committer | wout <wout@impinc.co.uk> | 2014-07-12 14:18:52 +0200 |
commit | 0f74fe7d0a2fb1c02c5beebf5f0f8360020f1fc1 (patch) | |
tree | 82bdcd06a6d581414ebf7e5ec472c587bdc77bd7 /src/group.js | |
parent | 501cb5387007a89af382717376c773a1ec6b68ae (diff) | |
download | svg.js-0f74fe7d0a2fb1c02c5beebf5f0f8360020f1fc1.tar.gz svg.js-0f74fe7d0a2fb1c02c5beebf5f0f8360020f1fc1.zip |
Eliminate matrix translation errors
Diffstat (limited to 'src/group.js')
-rwxr-xr-x | src/group.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/group.js b/src/group.js index a7ec2e0..1808b3f 100755 --- a/src/group.js +++ b/src/group.js @@ -9,11 +9,11 @@ SVG.G = SVG.invent({ , extend: { // Move over x-axis x: function(x) { - return x == null ? this.ctm().x : this.transform('x', x) + return x == null ? this.transform('x') : this.transform({ x: x }) } // Move over y-axis , y: function(y) { - return y == null ? this.ctm().y : this.transform('y', y) + return y == null ? this.transform('y') : this.transform({ y: y }) } // Move by center over x-axis , cx: function(x) { |