From a7eaeb4b06319fd78a586dfb6fb4d82710fd9d6f Mon Sep 17 00:00:00 2001 From: Denis Mosolov Date: Tue, 29 Dec 2015 14:19:54 +0300 Subject: fix #433 --- src/group.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/group.js b/src/group.js index df5c001..05d144c 100644 --- 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: -this.x() + x }, true) + return x == null ? this.transform('x') : this.transform({ x: x - this.x() }, true) } // Move over y-axis , y: function(y) { - return y == null ? this.transform('y') : this.transform({ y: -this.y() + y }, true) + return y == null ? this.transform('y') : this.transform({ y: y - this.y() }, true) } // Move by center over x-axis , cx: function(x) { @@ -47,4 +47,4 @@ SVG.G = SVG.invent({ return this.put(new SVG.G) } } -}) \ No newline at end of file +}) -- cgit v1.2.3