SVGFEDisplacementMapElement

Baseline 已廣泛支援

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

SVGFEDisplacementMapElement 介面對應於 <feDisplacementMap> 元素。

EventTarget Node Element SVGElement SVGFEDisplacementMapElement

例項屬性

此介面還繼承了其父介面 SVGElement 的屬性。

SVGFEDisplacementMapElement.height 只讀

一個 SVGAnimatedLength,對應給定元素的 height 屬性。

SVGFEDisplacementMapElement.in1 只讀

一個 SVGAnimatedString,對應給定元素的 in 屬性。

SVGFEDisplacementMapElement.in2 只讀

一個 SVGAnimatedString,對應於給定元素的 in2 屬性。

SVGFEDisplacementMapElement.result 只讀

一個 SVGAnimatedString,對應給定元素的 result 屬性。

SVGFEDisplacementMapElement.scale 只讀

一個 SVGAnimatedNumber,對應於給定元素的 scale 屬性。

SVGFEDisplacementMapElement.width 只讀

一個 SVGAnimatedLength,對應給定元素的 width 屬性。

SVGFEDisplacementMapElement.x 只讀

一個 SVGAnimatedLength,對應給定元素的 x 屬性。

SVGFEDisplacementMapElement.xChannelSelector 只讀

一個 SVGAnimatedEnumeration,對應於給定元素的 xChannelSelector 屬性。它接受在此介面上定義的 SVG_CHANNEL_* 常量之一。

SVGFEDisplacementMapElement.y 只讀

一個 SVGAnimatedLength,對應給定元素的 y 屬性。

SVGFEDisplacementMapElement.yChannelSelector 只讀

一個 SVGAnimatedEnumeration,對應於給定元素的 yChannelSelector 屬性。它接受在此介面上定義的 SVG_CHANNEL_* 常量之一。

例項方法

此介面不提供任何特定方法,但實現了其父介面 SVGElement 的方法。

靜態屬性

SVG_CHANNEL_UNKNOWN (0)

型別不是預定義型別之一。嘗試定義此型別的新值或嘗試將現有值切換為此型別是無效的。

SVG_CHANNEL_R (1)

對應於值 R

SVG_CHANNEL_G (2)

對應於值 G

SVG_CHANNEL_B (3)

對應於值 B

SVG_CHANNEL_A (4)

對應於值 A

規範

規範
濾鏡效果模組第 1 級
# 介面SVGFEDisplacementMapElement

瀏覽器相容性

另見