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

SVG.Clip = function Clip() {
  this.constructor.call(this, SVG.create('clipPath'));
  this.id = '_' + (clipID++);
  this.attr('id', this.id);
};

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

// include the container object
SVG.extend(SVG.Clip, SVG.Container);