summaryrefslogtreecommitdiffstats
path: root/src/group.js
diff options
context:
space:
mode:
authorwout <wout@impinc.co.uk>2013-03-12 13:31:09 +0100
committerwout <wout@impinc.co.uk>2013-03-12 13:31:09 +0100
commit4bd21ec64a0e3c1d4d0acf5685b2230285c7c16b (patch)
tree0300a47ca1b263ae0cd0fdb5fe76218ceb9aa745 /src/group.js
parent6c6c82ed59533f44f8754b69d47e3b11cd6dd129 (diff)
downloadsvg.js-4bd21ec64a0e3c1d4d0acf5685b2230285c7c16b.tar.gz
svg.js-4bd21ec64a0e3c1d4d0acf5685b2230285c7c16b.zip
Added x(), y(), cx(), cy() and matrix
Diffstat (limited to 'src/group.js')
-rw-r--r--src/group.js13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/group.js b/src/group.js
index fe09c56..a9f046f 100644
--- a/src/group.js
+++ b/src/group.js
@@ -6,12 +6,13 @@ SVG.G = function() {
SVG.G.prototype = new SVG.Container
SVG.extend(SVG.G, {
- // Move using translate
- move: function(x, y) {
- return this.transform({
- x: x
- , y: y
- })
+ // Move over x-axis
+ x: function(x) {
+ return this.transform('x', x)
+ }
+ // Move over y-axis
+, y: function(y) {
+ return this.transform('y', y)
}
// Get defs
, defs: function() {