diff options
author | wout <wout@impinc.co.uk> | 2014-08-28 18:44:14 +0200 |
---|---|---|
committer | wout <wout@impinc.co.uk> | 2014-08-28 18:44:14 +0200 |
commit | 8789391f036ffded3ac919d62ee652e7cae15c5c (patch) | |
tree | cbb130ca8206e1b66057a5652a775d16e3aa3c36 /README.md | |
parent | 7b8e6f1d5afe2472cd1245f9bb73b6d59238e541 (diff) | |
download | svg.js-8789391f036ffded3ac919d62ee652e7cae15c5c.tar.gz svg.js-8789391f036ffded3ac919d62ee652e7cae15c5c.zip |
Fixed instantiation issue in SVG.Number
Diffstat (limited to 'README.md')
-rwxr-xr-x | README.md | 18 |
1 files changed, 13 insertions, 5 deletions
@@ -442,7 +442,7 @@ _Javascript inheritance stack: `SVG.Image` < `SVG.Shape` < `SVG.Element`_ Loading another image can be done with the `load()` method: ```javascript -draw.image('/path/to/another/image.jpg') +image.load('/path/to/another/image.jpg') ``` __`returns`: `itself`__ @@ -884,6 +884,14 @@ element.node ``` __`returns`: `node`__ +### native() +The same can be achieved with the `native()` method: +```javascript +element.native() +``` +__`returns`: `node`__ + + ### instance Similar, the node carries a reference to the SVG.js `instance`: @@ -2824,7 +2832,7 @@ Addition: number.plus('3%') ``` -__`returns`: `itself`__ +__`returns`: `SVG.Number`__ ### minus() Subtraction: @@ -2833,7 +2841,7 @@ Subtraction: number.minus('3%') ``` -__`returns`: `itself`__ +__`returns`: `SVG.Number`__ ### times() Multiplication: @@ -2842,7 +2850,7 @@ Multiplication: number.times(2) ``` -__`returns`: `itself`__ +__`returns`: `SVG.Number`__ ### divide() Division: @@ -2851,7 +2859,7 @@ Division: number.divide('3%') ``` -__`returns`: `itself`__ +__`returns`: `SVG.Number`__ ### to() Change number to another unit: |