aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwout <wout@impinc.co.uk>2012-12-27 16:17:54 +0100
committerwout <wout@impinc.co.uk>2012-12-27 16:17:54 +0100
commit76af3112c3f3778eb0dfcbaf4517a7b46a3fb403 (patch)
tree1055ea26f2d52394905a106beb72f7525ac5a01f
parenta68cfccf86582dd62d3474adde48d85fc2095e04 (diff)
downloadsvg.js-76af3112c3f3778eb0dfcbaf4517a7b46a3fb403.tar.gz
svg.js-76af3112c3f3778eb0dfcbaf4517a7b46a3fb403.zip
Updated README
-rw-r--r--README.md9
1 files changed, 6 insertions, 3 deletions
diff --git a/README.md b/README.md
index e65929d..9d160ec 100644
--- a/README.md
+++ b/README.md
@@ -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();