summaryrefslogtreecommitdiffstats
path: root/src/group.js
diff options
context:
space:
mode:
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 1808b3f..326f50b 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.transform('x') : this.transform({ x: x })
+ return x == null ? this.transform('x') : this.transform({ x: -this.x() + x })
}
// Move over y-axis
, y: function(y) {
- return y == null ? this.transform('y') : this.transform({ y: y })
+ return y == null ? this.transform('y') : this.transform({ y: -this.y() + y })
}
// Move by center over x-axis
, cx: function(x) {