SVGGeometryElement: getPointAtLength() method

The SVGGeometryElement.getPointAtLength() method returns the point at a given distance along the path.

Syntax

js
getPointAtLength(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) 2
# __svg__SVGGeometryElement__getPointAtLength

Browser compatibility

desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
getPointAtLength