diff options
author | wout <wout@impinc.co.uk> | 2012-12-27 16:17:54 +0100 |
---|---|---|
committer | wout <wout@impinc.co.uk> | 2012-12-27 16:17:54 +0100 |
commit | 76af3112c3f3778eb0dfcbaf4517a7b46a3fb403 (patch) | |
tree | 1055ea26f2d52394905a106beb72f7525ac5a01f | |
parent | a68cfccf86582dd62d3474adde48d85fc2095e04 (diff) | |
download | svg.js-76af3112c3f3778eb0dfcbaf4517a7b46a3fb403.tar.gz svg.js-76af3112c3f3778eb0dfcbaf4517a7b46a3fb403.zip |
Updated README
-rw-r--r-- | README.md | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -128,7 +128,8 @@ rect.attr('x', 50, 'http://www.w3.org/2000/svg'); ### Transform -With the transform attribute elements can be scaled, rotated, translated and skewed: +With the `transform()` method elements can be scaled, rotated, translated and skewed: + ```javascript rect.transform({ rotation: 45, @@ -136,7 +137,9 @@ rect.transform({ cy: 100 }); ``` -All available translations are: + +All available transformations are: + ```javascript rect.transform({ x: [translation on x-axis], @@ -181,7 +184,7 @@ rect.remove(); ``` -### Bounding box +## Bounding box ```javascript path.bbox(); |