Back to Content

SVGGeometryElement: getTotalLength() method

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

latest387 B
Original Source

{{APIRef("SVG")}}

The SVGGeometryElement.getTotalLength() method returns the user agent's computed value for the total length of the path in user units.

Syntax

js-nolint
getTotalLength()

Parameters

None.

Return value

A float indicating the total length of the path in user units.

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}