summaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorwout <wout@impinc.co.uk>2012-12-19 16:45:31 +0100
committerwout <wout@impinc.co.uk>2012-12-19 16:45:31 +0100
commitb398d7bb450098fe5f1ed296e0b1a19876760ce0 (patch)
tree870310ada1345444e83b78d075847df3ffb0e9e8 /README.md
parentdfa324f1cb9c562a198ad2f9909bbb8d44807936 (diff)
downloadsvg.js-b398d7bb450098fe5f1ed296e0b1a19876760ce0.tar.gz
svg.js-b398d7bb450098fe5f1ed296e0b1a19876760ce0.zip
Made absolute transformations default
Diffstat (limited to 'README.md')
-rw-r--r--README.md13
1 files changed, 10 insertions, 3 deletions
diff --git a/README.md b/README.md
index 9b2a528..304347e 100644
--- a/README.md
+++ b/README.md
@@ -58,7 +58,7 @@ With the transform attribute elements can be scaled, rotated, translated, skewed
```javascript
rect.transform('rotate(45, 100, 100)');
```
-Every transformation will remembered so multiple rotate operations will be stacked together making them relative to previous operations. To ensure absolute operations a boolean value can be passed as a second argument:
+These operations are always absolute. If every transformation needs remembered, so multiple rotate operations will be stacked together making them relative to previous operations, a boolean value can be passed as a second argument:
```javascript
rect.transform('rotate(45, 100, 100)', true);
```
@@ -151,9 +151,9 @@ But you also define a rotation point:
```javascript
rect.rotate({ deg: 45, x: 100, y: 100 });
```
-To make the operation absolute:
+To make the operation relative:
```javascript
-rect.rotate({ deg: 45, x: 100, y: 100, absolute: true });
+rect.rotate({ deg: 45, x: 100, y: 100, relative: true });
```
_This functionality requires the sugar.js module which is included in the default distribution._
@@ -258,6 +258,13 @@ SVG.extend(SVG.Doc, {
```
+## To-do
+- Animation module (element animation, path tweens and easing)
+- Draggable module (make elements and groups draggable)
+- Shapes module (add preset shapes like star, n-gon)
+
+
+
## Compatibility
### Desktop