From b398d7bb450098fe5f1ed296e0b1a19876760ce0 Mon Sep 17 00:00:00 2001 From: wout Date: Wed, 19 Dec 2012 16:45:31 +0100 Subject: Made absolute transformations default --- README.md | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'README.md') 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 -- cgit v1.2.3