From 8789391f036ffded3ac919d62ee652e7cae15c5c Mon Sep 17 00:00:00 2001 From: wout Date: Thu, 28 Aug 2014 18:44:14 +0200 Subject: Fixed instantiation issue in SVG.Number --- README.md | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 4481437..daae606 100755 --- a/README.md +++ b/README.md @@ -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: -- cgit v1.2.3