summaryrefslogtreecommitdiffstats
path: root/src/group.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/group.js')
-rw-r--r--src/group.js16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/group.js b/src/group.js
index e69de29..e46035f 100644
--- a/src/group.js
+++ b/src/group.js
@@ -0,0 +1,16 @@
+
+SVG.Group = function Group() {
+ this.constructor.call(this, SVG.createElement("g"));
+};
+
+// inherit from SVG.Element
+SVG.Group.prototype = new SVG.Element();
+
+// group rotation
+SVG.Group.prototype.rotate = function(d) {
+ this.setAttribute('transform', 'rotate(' + d + ')');
+ return this;
+};
+
+// include the container object
+SVG.Group.include(SVG.Container); \ No newline at end of file