summaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
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