summaryrefslogtreecommitdiffstats
path: root/src/group.js
diff options
context:
space:
mode:
authorwout <wout@impinc.co.uk>2014-07-11 23:36:17 +0200
committerwout <wout@impinc.co.uk>2014-07-11 23:36:17 +0200
commit462d2cd3738c904db0be7086878d1fcc17b79553 (patch)
treeafabf22b2f46e5432dc0d56219872f590eb19892 /src/group.js
parent7cc2d3635b8ed513e0f4e5be0a1823c1a6ad93dc (diff)
downloadsvg.js-462d2cd3738c904db0be7086878d1fcc17b79553.tar.gz
svg.js-462d2cd3738c904db0be7086878d1fcc17b79553.zip
Completely reworked transform system
Diffstat (limited to 'src/group.js')
-rwxr-xr-xsrc/group.js4
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) {