aboutsummaryrefslogtreecommitdiffstats
path: root/src/group.js
diff options
context:
space:
mode:
authorwout <wout@impinc.co.uk>2013-03-02 17:31:46 +0100
committerwout <wout@impinc.co.uk>2013-03-02 17:31:46 +0100
commitca15876e17a1acce4909837af97d97995d0f5b23 (patch)
tree12d4646b807fac8d4398f0902c2c5fc8196f49d0 /src/group.js
parent028bf91551d01567b4cb3d971ba51fa57c4a81ef (diff)
downloadsvg.js-ca15876e17a1acce4909837af97d97995d0f5b23.tar.gz
svg.js-ca15876e17a1acce4909837af97d97995d0f5b23.zip
Improved rotate() method in sugar module
Diffstat (limited to 'src/group.js')
-rw-r--r--src/group.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/group.js b/src/group.js
index 3fc8f88..5e0df89 100644
--- a/src/group.js
+++ b/src/group.js
@@ -11,4 +11,15 @@ SVG.extend(SVG.G, {
return this.doc().defs()
}
+})
+
+SVG.extend(SVG.G, {
+ // Move using translate
+ move: function(x, y) {
+ return this.transform({
+ x: x
+ , y: y
+ })
+ }
+
}) \ No newline at end of file