aboutsummaryrefslogtreecommitdiffstats
path: root/src/defs.js
blob: 4661a54dc580b1b15a3374883dfad9d68da1ac1d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
SVG.Defs = function Defs() {
  this.constructor.call(this, SVG.createElement('defs'));
};

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

// define clippath
SVG.Defs.prototype.clipPath = function() {
  var e = new SVG.ClipPath();
  this.add(e);
  
  return e;
};

// include the container object
SVG.Defs.include(SVG.Container);