MDN self-hosted library · e01.org

SVGGeometryElement: getPointAtLength() method

SVG

no runnable cells web-api-instance-method upstream source

SVG

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

Syntax

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

Browser compatibility