summaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorwout <wout@impinc.co.uk>2013-03-29 15:19:06 +0000
committerwout <wout@impinc.co.uk>2013-03-29 15:19:06 +0000
commit091b9fb6ac8b995e2083eb664bf1198bfeea6899 (patch)
treef679e7c7ed2155407feec4ce26cbcad2cb7f85ab /README.md
parentf134e1cf3d06804f42c08e7e7985a5ab59a82c5c (diff)
downloadsvg.js-091b9fb6ac8b995e2083eb664bf1198bfeea6899.tar.gz
svg.js-091b9fb6ac8b995e2083eb664bf1198bfeea6899.zip
Bumped to v0.12
Diffstat (limited to 'README.md')
-rw-r--r--README.md17
1 files changed, 17 insertions, 0 deletions
diff --git a/README.md b/README.md
index fb99d0b..2cf8f19 100644
--- a/README.md
+++ b/README.md
@@ -90,6 +90,23 @@ var rect = nested.rect(200, 200)
_This functionality requires the nested.js module which is included in the default distribution._
+### SVG document
+Svg.js also works outside of the html DOM, inside an SVG document for example:
+
+```xml
+<?xml version="1.0" encoding="utf-8" ?>
+<svg id="viewport" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" >
+ <script type="text/javascript" xlink:href="svg.min.js"></script>
+ <script type="text/javascript">
+ <![CDATA[
+ var draw = SVG('viewport')
+ draw.rect(100,100).animate().fill('#f03').move(100,100)
+ ]]>
+ </script>
+</svg>
+```
+
+
## Elements
### Rect