aboutsummaryrefslogtreecommitdiffstats
path: root/src/nested.js
diff options
context:
space:
mode:
authorwout <wout@impinc.co.uk>2013-01-02 18:21:37 +0100
committerwout <wout@impinc.co.uk>2013-01-02 18:21:37 +0100
commit0da8f1d9c9794155c29b8e8f9a0b5ca940061033 (patch)
tree41ca64065f41b90bece3e93be7ec30a3fa517b09 /src/nested.js
parent88987d60c456f1e686edd226f4ccb45e35142cd7 (diff)
downloadsvg.js-0da8f1d9c9794155c29b8e8f9a0b5ca940061033.tar.gz
svg.js-0da8f1d9c9794155c29b8e8f9a0b5ca940061033.zip
Added SVG.Nested to create nested svg documents
Diffstat (limited to 'src/nested.js')
-rw-r--r--src/nested.js11
1 files changed, 11 insertions, 0 deletions
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