SVGPathElement
Baseline 廣泛可用 *
SVGPathElement 介面對應於 <path> 元素。
注意: 在 SVG 2 中,getPathSegAtLength() 和 createSVGPathSeg* 方法被移除,pathLength 屬性以及 getTotalLength() 和 getPointAtLength() 方法被移至 SVGGeometryElement。
例項屬性
此介面繼承了其父級 SVGGeometryElement 的屬性。
SVGPathElement.pathLength只讀-
此屬性反映了
pathLength屬性。
例項方法
此介面還繼承了其父級 SVGGeometryElement 的方法。
SVGPathElement.getPathData()實驗性-
返回對應於路徑資料的路徑段序列,可選擇標準化值和段型別。
SVGPathElement.getPointAtLength()-
返回沿路徑給定距離處的點。
SVGPathElement.getTotalLength()-
返回使用者代理計算出的路徑總長度(使用者單位)。
SVGPathElement.setPathData()實驗性-
將路徑段序列設定為新的路徑資料。
SVGPathElement.getPathSegmentAtLength()實驗性-
返回沿路徑給定距離處的段。
已廢棄的方法
SVGPathElement.getPathSegAtLength()已廢棄-
返回一個無符號長整數,表示
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物件。
規範
| 規範 |
|---|
| Scalable Vector Graphics (SVG) 2 # 介面SVGPathElement |
瀏覽器相容性
載入中…
另見
<path>SVG 元素