getPathSegAtLength method
Gets the index of pathSegList by using the specified distance along the path.
![]() ![]() |
Syntax
var retval = SVGPathElement.getPathSegAtLength(fltdistance);Parameters
- fltdistance [in]
-
Type: Floating-point
The distance along the path, relative to the start of the path, in the current user coordinate system.
Return value
Type: Integer
The index of the path segment, where the first path segment is numbered zero.
Standards information
- Scalable Vector Graphics: Paths, Section 8.5.23
See also
Show:

