SVGSVGElement: createSVGTransform() 方法

Baseline 已廣泛支援

此特性已相當成熟,可在許多裝置和瀏覽器版本上使用。自 ⁨2015 年 7 月⁩以來,各瀏覽器均已提供此特性。

SVGSVGElement 介面的 createSVGTransform() 方法用於在任何文件樹之外建立 SVGTransform 物件。

語法

js
createSVGTransform()

引數

無。

返回值

一個 SVGTransform 物件,初始化為單位矩陣變換(matrix(1, 0, 0, 1, 0, 0))。

規範

規範
Scalable Vector Graphics (SVG) 2
# __svg__SVGSVGElement__createSVGTransform

瀏覽器相容性

另見