aboutsummaryrefslogtreecommitdiffstats
path: root/src/container.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/container.js')
-rw-r--r--src/container.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/container.js b/src/container.js
index 86c2827..3d19173 100644
--- a/src/container.js
+++ b/src/container.js
@@ -116,6 +116,11 @@ SVG.Container = {
return this.put(new SVG.Text().text(t));
},
+ // create nested svg document
+ nested: function(s) {
+ return this.put(new SVG.Nested());
+ },
+
// create element in defs
gradient: function(t, b) {
return this.defs().gradient(t, b);