diff options
author | wout <wout@impinc.co.uk> | 2014-07-11 23:36:17 +0200 |
---|---|---|
committer | wout <wout@impinc.co.uk> | 2014-07-11 23:36:17 +0200 |
commit | 462d2cd3738c904db0be7086878d1fcc17b79553 (patch) | |
tree | afabf22b2f46e5432dc0d56219872f590eb19892 /src/group.js | |
parent | 7cc2d3635b8ed513e0f4e5be0a1823c1a6ad93dc (diff) | |
download | svg.js-462d2cd3738c904db0be7086878d1fcc17b79553.tar.gz svg.js-462d2cd3738c904db0be7086878d1fcc17b79553.zip |
Completely reworked transform system
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 cfb99ac..a7ec2e0 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.trans.x : this.transform('x', x) + return x == null ? this.ctm().x : this.transform('x', x) } // Move over y-axis , y: function(y) { - return y == null ? this.trans.y : this.transform('y', y) + return y == null ? this.ctm().y : this.transform('y', y) } // Move by center over x-axis , cx: function(x) { |