aboutsummaryrefslogtreecommitdiffstats
path: root/src/group.js
blob: e46035f2bec42409a770810dd17372333ba7ca5f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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);