diff options
author | wout <wout@impinc.co.uk> | 2012-12-16 16:15:47 +0100 |
---|---|---|
committer | wout <wout@impinc.co.uk> | 2012-12-16 16:15:47 +0100 |
commit | c6ac1246c271c66733366086f467e381c3fd65a8 (patch) | |
tree | 09ff273e5ffea615ba9555e38a441e5248e37190 /src/defs.js | |
parent | 1fc78fe531ded4bc8a1ed5e176774600b897fcb1 (diff) | |
download | svg.js-c6ac1246c271c66733366086f467e381c3fd65a8.tar.gz svg.js-c6ac1246c271c66733366086f467e381c3fd65a8.zip |
Implemented core library
Diffstat (limited to 'src/defs.js')
-rw-r--r-- | src/defs.js | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/defs.js b/src/defs.js index e69de29..4661a54 100644 --- a/src/defs.js +++ b/src/defs.js @@ -0,0 +1,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);
\ No newline at end of file |