Back to Content

SVGGeometryElement: getPointAtLength() method

files/en-us/web/api/svggeometryelement/getpointatlength/index.md

latest448 B
Original Source

{{APIRef("SVG")}}

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

Syntax

js-nolint
getPointAtLength(distance)

Parameters

  • distance
    • : A float referring to the distance along the path.

Return value

A {{domxref("DOMPoint")}} indicating the point at a given distance along the path.

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}