Firefox Tomorrow

web api interface

SVGPathElement

View on MDN ↗

The SVGPathElement interface corresponds to the <path> element.

[!NOTE] In SVG 2 the getPathSegAtLength() and createSVGPathSeg* methods were removed and the pathLength property and the getTotalLength() and getPointAtLength() methods were moved to SVGGeometryElement.

Instance properties

This interface inherits properties from its parent, SVGGeometryElement.

  • pathLength Read only
    • : This property reflects the pathLength attribute.

Instance methods

This interface also inherits methods from its parent, SVGGeometryElement.

  • getPathData() Experimental
    • : Returns the sequence of path segments that corresponds to the path data, optionally normalizing the values and segment types.
  • getPointAtLength()
    • : Returns the point at a given distance along the path.
  • getTotalLength()
    • : Returns the user agent’s computed value for the total length of the path in user units.
  • setPathData() Experimental
    • : Sets the sequence of path segments as the new path data.
  • getPathSegmentAtLength() Experimental
    • : Returns the segment at a given distance along the path.

Deprecated methods

Specifications

SpecificationsStandards references are available on the canonical MDN page.

Browser compatibility

Browser compatibilityCompatibility data is available on the canonical MDN page.

See also