diff options
author | wout <wout@impinc.co.uk> | 2014-07-27 13:37:26 +0200 |
---|---|---|
committer | wout <wout@impinc.co.uk> | 2014-07-27 13:37:26 +0200 |
commit | 917cd24c50ce9ca2309febc7029f4408a1a5f0ee (patch) | |
tree | a9654cc9427c9ba8f9d9ea341dde8750b9991ee1 /README.md | |
parent | a5b2301c23853cbd20b9e0771d11472dbef92cc6 (diff) | |
download | svg.js-917cd24c50ce9ca2309febc7029f4408a1a5f0ee.tar.gz svg.js-917cd24c50ce9ca2309febc7029f4408a1a5f0ee.zip |
Specified untransform() method
Diffstat (limited to 'README.md')
-rwxr-xr-x | README.md | 13 |
1 files changed, 9 insertions, 4 deletions
@@ -3175,7 +3175,7 @@ matrix.clone() __`returns`: `SVG.Matrix`__ ### morph() -In order to animate matrices the `morph()` method lets you pass a destination matrix. This can be any value that a `SVG.Matrix` would accept on initialization: +In order to animate matrices the `morph()` method lets you pass a destination matrix. This can be any value a `SVG.Matrix` would accept on initialization: ```javascript matrix.morph('matrix(2,0,0,2,100,150)') @@ -3184,12 +3184,14 @@ matrix.morph('matrix(2,0,0,2,100,150)') __`returns`: `itself`__ ### at() -This method will morph the matrix to a given position between `0` and `1`. Continuing with the previous example: +This method will morph the matrix to a given position between `0` and `1`: ```javascript matrix.at(0.27) ``` +This will only work when a destination matirx is defined using the `morph()` method. + __`returns`: `SVG.Matrix`__ ### multiply() @@ -3211,7 +3213,7 @@ matrix.add(matrix2) __`returns`: `SVG.Matrix`__ ### inverse() -Creates an inversed matix: +Creates an inverted matix: ```javascript matrix.inverse() @@ -3467,12 +3469,15 @@ Here are a few nice plugins that are available for SVG.js: ### topath [svg.topath.js](https://github.com/wout/svg.topath.js) to convert any other shape to a path. +### topoly +[svg.topoly.js](https://github.com/wout/svg.topoly.js) to convert a path to polygon or polyline. + ### wiml [svg.wiml.js](https://github.com/wout/svg.wiml.js) a templating language for svg output. ## Contributing -We love contributions. Did you si it? The word LOVE? Please make sure you follow the same coding style, here are some guidelines. +We love contributions. Yes indeed, I used the word LOVE! But please make sure you follow the same coding style. Here are some guidelines. ### Indentation We do it with __two spaces__. Make sure you don't start using tabs because then things get messy. |