summaryrefslogtreecommitdiffstats
path: root/README.md
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 /README.md
parent88987d60c456f1e686edd226f4ccb45e35142cd7 (diff)
downloadsvg.js-0da8f1d9c9794155c29b8e8f9a0b5ca940061033.tar.gz
svg.js-0da8f1d9c9794155c29b8e8f9a0b5ca940061033.zip
Added SVG.Nested to create nested svg documents
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: