diff options
author | wout <wout@impinc.co.uk> | 2013-03-29 15:19:06 +0000 |
---|---|---|
committer | wout <wout@impinc.co.uk> | 2013-03-29 15:19:06 +0000 |
commit | 091b9fb6ac8b995e2083eb664bf1198bfeea6899 (patch) | |
tree | f679e7c7ed2155407feec4ce26cbcad2cb7f85ab /README.md | |
parent | f134e1cf3d06804f42c08e7e7985a5ab59a82c5c (diff) | |
download | svg.js-091b9fb6ac8b995e2083eb664bf1198bfeea6899.tar.gz svg.js-091b9fb6ac8b995e2083eb664bf1198bfeea6899.zip |
Bumped to v0.12
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -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 |