From c6ac1246c271c66733366086f467e381c3fd65a8 Mon Sep 17 00:00:00 2001 From: wout Date: Sun, 16 Dec 2012 16:15:47 +0100 Subject: Implemented core library --- src/group.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src/group.js') 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 -- cgit v1.2.3