aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorwout <wout@impinc.co.uk>2014-02-05 10:57:35 +0100
committerwout <wout@impinc.co.uk>2014-02-05 10:57:35 +0100
commit7bb2ec3885a129933e7dd02a73ce8260732d34ac (patch)
tree8088b38c0a746ec6892cae34d89c783f074189b0 /README.md
parent050af98a7ada3280f02acf25fbaba585a264e68a (diff)
downloadsvg.js-7bb2ec3885a129933e7dd02a73ce8260732d34ac.tar.gz
svg.js-7bb2ec3885a129933e7dd02a73ce8260732d34ac.zip
Updated README
Diffstat (limited to 'README.md')
-rw-r--r--README.md11
1 files changed, 10 insertions, 1 deletions
diff --git a/README.md b/README.md
index 9f62a0e..e2302ea 100644
--- a/README.md
+++ b/README.md
@@ -1152,7 +1152,7 @@ Note: the `x` and `y` positions are tested against the relative position of the
__`returns`: `boolean`__
### length()
-Get the total lengthof a path element:
+Get the total length of a path element:
```javascript
var length = path.length()
@@ -1160,6 +1160,15 @@ var length = path.length()
__`returns`: `number`__
+### pointAt()
+Get get point on a path at given length:
+
+```javascript
+var point = path.pointAt(105) //-> returns { x : 96.88497924804688, y : 58.062747955322266 }
+```
+
+__`returns`: `object`__
+
## Animating elements