WebIDLpedia

SVGPathElement interface

Definition

SVG Paths defines SVGPathElement



[Exposed=Window]
interface SVGPathElement : SVGGeometryElement {

  readonly attribute SVGAnimatedNumber pathLength;

  float getTotalLength();
  DOMPoint getPointAtLength(float distance);
  SVGPathSegment? getPathSegmentAtLength(float distance);
};

SVGPathElement includes SVGPathData;
Consolidated IDL (across mixin and partials)


[Exposed=Window]
interface SVGPathElement : SVGGeometryElement {

  readonly attribute SVGAnimatedNumber pathLength;

  float getTotalLength();
  DOMPoint getPointAtLength(float distance);
  SVGPathSegment? getPathSegmentAtLength(float distance);
   sequence<SVGPathSegment> getPathData(optional SVGPathDataSettings settings = {});
   undefined setPathData(sequence<SVGPathSegment> pathData);
};