From 0da8f1d9c9794155c29b8e8f9a0b5ca940061033 Mon Sep 17 00:00:00 2001 From: wout Date: Wed, 2 Jan 2013 18:21:37 +0100 Subject: Added SVG.Nested to create nested svg documents --- src/nested.js | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 src/nested.js (limited to 'src/nested.js') diff --git a/src/nested.js b/src/nested.js new file mode 100644 index 0000000..a2944c1 --- /dev/null +++ b/src/nested.js @@ -0,0 +1,11 @@ + +SVG.Nested = function Nested() { + this.constructor.call(this, SVG.create('svg')); + this.attr('overflow', 'visible'); +}; + +// inherit from SVG.Element +SVG.Nested.prototype = new SVG.Element(); + +// include the container object +SVG.extend(SVG.Nested, SVG.Container); \ No newline at end of file -- cgit v1.2.3