Movatterモバイル変換


[0]ホーム

URL:


  1. Web
  2. Web APIs
  3. SVGPathElement

SVGPathElement

Baseline Widely available *

This feature is well established and works across many devices and browser versions. It’s been available across browsers since ⁨July 2015⁩.

* Some parts of this feature may have varying levels of support.

TheSVGPathElement interface corresponds to the<path> element.

EventTarget Node Element SVGElement SVGGraphicsElement SVGGeometryElement SVGPathElement

Note:In SVG 2 thegetPathSegAtLength() andcreateSVGPathSeg* methods were removed and thepathLength property and thegetTotalLength() andgetPointAtLength() methods were moved toSVGGeometryElement.

Instance properties

This interface inherits properties from its parent,SVGGeometryElement.

SVGPathElement.pathLengthRead only

This property reflects thepathLength attribute.

Instance methods

This interface also inherits methods from its parent,SVGGeometryElement.

SVGPathElement.getPathData()Experimental

Returns the sequence of path segments that corresponds to the path data, optionally normalizing the values and segment types.

SVGPathElement.getPointAtLength()

Returns the point at a given distance along the path.

SVGPathElement.getTotalLength()

Returns the user agent's computed value for the total length of the path in user units.

SVGPathElement.setPathData()Experimental

Sets the sequence of path segments as the new path data.

SVGPathElement.getPathSegmentAtLength()Experimental

Returns the segment at a given distance along the path.

Deprecated methods

SVGPathElement.getPathSegAtLength()Deprecated

Returns an unsigned long representing the index within thepathSegList utilizing the user agent's distance-along-a-path algorithm.

SVGPathElement.createSVGPathSegClosePath()Deprecated

Returns a stand-alone, parentlessSVGPathSegClosePath object.

SVGPathElement.createSVGPathSegMovetoAbs()Deprecated

Returns a stand-alone, parentlessSVGPathSegMovetoAbs object.

SVGPathElement.createSVGPathSegMovetoRel()Deprecated

Returns a stand-alone, parentlessSVGPathSegMovetoRel object.

SVGPathElement.createSVGPathSegLinetoAbs()Deprecated

Returns a stand-alone, parentlessSVGPathSegLinetoAbs object.

SVGPathElement.createSVGPathSegLinetoRel()Deprecated

Returns a stand-alone, parentlessSVGPathSegLinetoRel object.

SVGPathElement.createSVGPathSegCurvetoCubicAbs()Deprecated

Returns a stand-alone, parentlessSVGPathSegCurvetoCubicAbs object.

SVGPathElement.createSVGPathSegCurvetoCubicRel()Deprecated

Returns a stand-alone, parentlessSVGPathSegCurvetoCubicRel object.

SVGPathElement.createSVGPathSegCurvetoQuadraticAbs()Deprecated

Returns a stand-alone, parentlessSVGPathSegCurvetoQuadraticAbs object.

SVGPathElement.createSVGPathSegCurvetoQuadraticRel()Deprecated

Returns a stand-alone, parentlessSVGPathSegCurvetoQuadraticRel object.

SVGPathElement.createSVGPathSegArcAbs()Deprecated

Returns a stand-alone, parentlessSVGPathSegArcAbs object.

SVGPathElement.createSVGPathSegArcRel()Deprecated

Returns a stand-alone, parentlessSVGPathSegArcRel object.

SVGPathElement.createSVGPathSegLinetoHorizontalAbs()Deprecated

Returns a stand-alone, parentlessSVGPathSegLinetoHorizontalAbs object.

SVGPathElement.createSVGPathSegLinetoHorizontalRel()Deprecated

Returns a stand-alone, parentlessSVGPathSegLinetoHorizontalRel object.

SVGPathElement.createSVGPathSegLinetoVerticalAbs()Deprecated

Returns a stand-alone, parentlessSVGPathSegLinetoVerticalAbs object.

SVGPathElement.createSVGPathSegLinetoVerticalRel()Deprecated

Returns a stand-alone, parentlessSVGPathSegLinetoVerticalRel object.

SVGPathElement.createSVGPathSegCurvetoCubicSmoothAbs()Deprecated

Returns a stand-alone, parentlessSVGPathSegCurvetoCubicSmoothAbs object.

SVGPathElement.createSVGPathSegCurvetoCubicSmoothRel()Deprecated

Returns a stand-alone, parentlessSVGPathSegCurvetoCubicSmoothRel object.

SVGPathElement.createSVGPathSegCurvetoQuadraticSmoothAbs()Deprecated

Returns a stand-alone, parentlessSVGPathSegCurvetoQuadraticSmoothAbs object.

SVGPathElement.createSVGPathSegCurvetoQuadraticSmoothRel()Deprecated

Returns a stand-alone, parentlessSVGPathSegCurvetoQuadraticSmoothRel object.

Specifications

Specification
Scalable Vector Graphics (SVG) 2
# InterfaceSVGPathElement

Browser compatibility

See also

Help improve MDN

Learn how to contribute

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2025 Movatter.jp