summaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorwout <wout@impinc.co.uk>2014-08-28 18:44:14 +0200
committerwout <wout@impinc.co.uk>2014-08-28 18:44:14 +0200
commit8789391f036ffded3ac919d62ee652e7cae15c5c (patch)
treecbb130ca8206e1b66057a5652a775d16e3aa3c36 /README.md
parent7b8e6f1d5afe2472cd1245f9bb73b6d59238e541 (diff)
downloadsvg.js-8789391f036ffded3ac919d62ee652e7cae15c5c.tar.gz
svg.js-8789391f036ffded3ac919d62ee652e7cae15c5c.zip
Fixed instantiation issue in SVG.Number
Diffstat (limited to 'README.md')
-rwxr-xr-xREADME.md18
1 files changed, 13 insertions, 5 deletions
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: