summaryrefslogtreecommitdiffstats
path: root/src/clip_path.js
blob: 2eece4962f7c8cb08d819d2905c3f6d7ed5f9e24 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// initialize id sequence
var clipID = 0;

SVG.ClipPath = function ClipPath() {
  this.constructor.call(this, SVG.createElement('clipPath'));
  this.id = '_' + (clipID++);
  this.setAttribute('id', this.id);
};

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

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