From ee027f30ffad52bdf0dbf3389cdc9c526118faf6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ulrich-Matthias=20Sch=C3=A4fer?= Date: Tue, 19 Jan 2016 22:57:47 +0100 Subject: [PATCH] added `point()` to readme --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) 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: -- 2.39.5