このページはコミュニティーの尽力で英語から翻訳されました。MDN Web Docs コミュニティーについてもっと知り、仲間になるにはこちらから。

View in English Always switch to English

SVGPathElement

Baseline Widely available *

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

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

SVGPathElement インターフェイスは <path> 要素に対応します。

EventTarget Node Element SVGElement SVGGraphicsElement SVGGeometryElement SVGPathElement

メモ: SVG 2 では、 getPathSegAtLength() および createSVGPathSeg* メソッドが削除され、pathLength プロパティと getTotalLength() および getPointAtLength() メソッドが SVGGeometryElement へ移動されました。

インスタンスプロパティ

このインターフェイスには、親である SVGGeometryElement から継承したプロパティがあります。

SVGPathElement.pathLength 読取専用

このプロパティは pathLength 属性を反映します。

インスタンスメソッド

このインターフェイスには、親である SVGGeometryElement から継承したメソッドもあります。

SVGPathElement.getPathData() Experimental

パスデータに対応するパス区間の並びを返します。オプションで値と区間型を正規化します。

SVGPathElement.getPointAtLength()

パス上の指定された位置にある点を返します。

SVGPathElement.getTotalLength()

ユーザーエージェントが計算したパスの全長を、ユーザー単位で返します。

SVGPathElement.setPathData() Experimental

パス区間の並びを新しいパスデータとして設定します。

SVGPathElement.getPathSegmentAtLength() Experimental

パス上の指定された位置にある区間を返します。

非推奨のメソッド

SVGPathElement.getPathSegAtLength() 非推奨;

ユーザーエージェントの distance-along-a-path アルゴリズムを用いて、pathSegList 内のインデックスを表す符号なし長整数を返します。

SVGPathElement.createSVGPathSegClosePath() 非推奨;

独立した、親のない SVGPathSegClosePath オブジェクトを返します。

SVGPathElement.createSVGPathSegMovetoAbs() 非推奨;

独立した、親のない SVGPathSegMovetoAbs オブジェクトを返します。

SVGPathElement.createSVGPathSegMovetoRel() 非推奨;

独立した、親のない SVGPathSegMovetoRel オブジェクトを返します。

SVGPathElement.createSVGPathSegLinetoAbs() 非推奨;

独立した、親のない SVGPathSegLinetoAbs オブジェクトを返します。

SVGPathElement.createSVGPathSegLinetoRel() 非推奨;

独立した、親のない SVGPathSegLinetoRel オブジェクトを返します。

SVGPathElement.createSVGPathSegCurvetoCubicAbs() 非推奨;

独立した、親のない SVGPathSegCurvetoCubicAbs オブジェクトを返します。

SVGPathElement.createSVGPathSegCurvetoCubicRel() 非推奨;

独立した、親のない SVGPathSegCurvetoCubicRel オブジェクトを返します。

SVGPathElement.createSVGPathSegCurvetoQuadraticAbs() 非推奨;

独立した、親のない SVGPathSegCurvetoQuadraticAbs オブジェクトを返します。

SVGPathElement.createSVGPathSegCurvetoQuadraticRel() 非推奨;

独立した、親のない SVGPathSegCurvetoQuadraticRel オブジェクトを返します。

SVGPathElement.createSVGPathSegArcAbs() 非推奨;

独立した、親のない SVGPathSegArcAbs オブジェクトを返します。

SVGPathElement.createSVGPathSegArcRel() 非推奨;

独立した、親のない SVGPathSegArcRel オブジェクトを返します。

SVGPathElement.createSVGPathSegLinetoHorizontalAbs() 非推奨;

独立した、親のない SVGPathSegLinetoHorizontalAbs オブジェクトを返します。

SVGPathElement.createSVGPathSegLinetoHorizontalRel() 非推奨;

独立した、親のない SVGPathSegLinetoHorizontalRel オブジェクトを返します。

SVGPathElement.createSVGPathSegLinetoVerticalAbs() 非推奨;

独立した、親のない SVGPathSegLinetoVerticalAbs オブジェクトを返します。

SVGPathElement.createSVGPathSegLinetoVerticalRel() 非推奨;

独立した、親のない SVGPathSegLinetoVerticalRel オブジェクトを返します。

SVGPathElement.createSVGPathSegCurvetoCubicSmoothAbs() 非推奨;

独立した、親のない SVGPathSegCurvetoCubicSmoothAbs オブジェクトを返します。

SVGPathElement.createSVGPathSegCurvetoCubicSmoothRel() 非推奨;

独立した、親のない SVGPathSegCurvetoCubicSmoothRel オブジェクトを返します。

SVGPathElement.createSVGPathSegCurvetoQuadraticSmoothAbs() 非推奨;

独立した、親のない SVGPathSegCurvetoQuadraticSmoothAbs オブジェクトを返します。

SVGPathElement.createSVGPathSegCurvetoQuadraticSmoothRel() 非推奨;

独立した、親のない SVGPathSegCurvetoQuadraticSmoothRel オブジェクトを返します。

仕様書

Specification
Scalable Vector Graphics (SVG) 2
# InterfaceSVGPathElement

ブラウザーの互換性

関連情報