summaryrefslogtreecommitdiffstats
path: root/src/g.js
blob: cd6de15fffe16612e2bc103349d3c8cc1901b2bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
SVG.G = function G() {
  this.constructor.call(this, SVG.create('g'));
};

// inherit from SVG.Element
SVG.G.prototype = new SVG.Element();

// include the container object
SVG.Utils.merge(SVG.G, SVG.Container);

// Add group-specific functions
SVG.Utils.merge(SVG.G, {
  
  // group rotation
  rotate: function(d) {
    this.attr('transform', 'rotate(' + d + ')');
    return this;
  }
  
});