diff options
author | wout <wout@impinc.co.uk> | 2013-01-02 18:21:37 +0100 |
---|---|---|
committer | wout <wout@impinc.co.uk> | 2013-01-02 18:21:37 +0100 |
commit | 0da8f1d9c9794155c29b8e8f9a0b5ca940061033 (patch) | |
tree | 41ca64065f41b90bece3e93be7ec30a3fa517b09 /README.md | |
parent | 88987d60c456f1e686edd226f4ccb45e35142cd7 (diff) | |
download | svg.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.md | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -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: |