summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2016-01-19 22:57:47 +0100
committerUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2016-01-19 22:57:47 +0100
commitee027f30ffad52bdf0dbf3389cdc9c526118faf6 (patch)
tree8c138c4ade95c813283e7e384cf9930a41dffee8
parentbf0dd2a1cc6eeca0ec50ffcd38f0e57ab4fb2911 (diff)
downloadsvg.js-ee027f30ffad52bdf0dbf3389cdc9c526118faf6.tar.gz
svg.js-ee027f30ffad52bdf0dbf3389cdc9c526118faf6.zip
added `point()` to readme
-rw-r--r--README.md11
1 files changed, 11 insertions, 0 deletions
diff --git a/README.md b/README.md
index 141b74f..e524467 100644
--- a/README.md
+++ b/README.md
@@ -1918,6 +1918,17 @@ path.matrixify()
__`returns`: `SVG.Matrix`__
+### point()
+Transforms a point from screen coordinates to the elements coordinate system
+
+```javascript
+// e is some mouseevent
+var point = path.point(e.screeX, e.screenY) // {x, y}
+```
+
+__`returns`: `SVG.Point`__
+
+
### inside()
To check if a given point is inside the bounding box of an element you can use the `inside()` method: