SVGGeometryElement.getPointAtLength()
The SVGGeometryElement.getPointAtLength()
method returns the point at a given distance along the path.
Syntax
DOMPoint someElement.getPointAtLength(float distance);
Parameters
distance
-
A float referring to the distance along the path.
Return value
A DOMPoint
indicating the point at a given distance along the path.
Specifications
Specification |
---|
Scalable Vector Graphics (SVG) 1.1 (Second Edition) (SVG) # __svg__SVGGeometryElement__getPointAtLength |
Browser compatibility
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | WebView Android | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | |
getPointAtLength |
56
1-56
Only supported for
SVGPathElement , not all SVGGeometryElement objects. |
79
12-79
Only supported for
SVGPathElement , not all SVGGeometryElement objects. |
61
1.5-61
Only supported for
SVGPathElement , not all SVGGeometryElement objects. |
9
Only supported for
SVGPathElement , not all SVGGeometryElement objects. |
43
≤12.1-43
Only supported for
SVGPathElement , not all SVGGeometryElement objects. |
12
3-12
Only supported for
SVGPathElement , not all SVGGeometryElement objects. |
56
≤37-56
Only supported for
SVGPathElement , not all SVGGeometryElement objects. |
56
18-56
Only supported for
SVGPathElement , not all SVGGeometryElement objects. |
61
4-61
Only supported for
SVGPathElement , not all SVGGeometryElement objects. |
43
≤12.1-43
Only supported for
SVGPathElement , not all SVGGeometryElement objects. |
12
1-12
Only supported for
SVGPathElement , not all SVGGeometryElement objects. |
6.0
1.0-6.0
Only supported for
SVGPathElement , not all SVGGeometryElement objects. |
© 2005–2021 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/SVGGeometryElement/getPointAtLength