aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md14
1 files changed, 14 insertions, 0 deletions
diff --git a/README.md b/README.md
index 4a30be7..f5b9294 100644
--- a/README.md
+++ b/README.md
@@ -420,6 +420,20 @@ group.add(rect);
_This functionality requires the group.js module which is included in the default distribution._
+
+## Nested svg
+With this feature you can nest svg documents within each other. Nested svg documents have exactly the same features as the main, top-level svg document:
+
+```javascript
+var nested = draw.nested();
+
+var rect = nested.rect(200, 200);
+```
+
+
+_This functionality requires the nested.js module which is included in the default distribution._
+
+
## Gradients
There are linear and radial gradients. The linear gradient can be created like this: