diff options
Diffstat (limited to 'src/clip_path.js')
-rw-r--r-- | src/clip_path.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/clip_path.js b/src/clip_path.js index e69de29..2eece49 100644 --- a/src/clip_path.js +++ b/src/clip_path.js @@ -0,0 +1,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);
\ No newline at end of file |