getTotalLength method
Gets the total length of the path, as a distance in the current user coordinate system.
![]() ![]() |
Syntax
var retval = SVGPathElement.getTotalLength();Parameters
This method has no parameters.
Return value
Type: Floating-point
The length of the path.
Standards information
- Scalable Vector Graphics: Paths, Section 8.5.23
See also
Show:

