SVGFEDisplacementMapElement:height 屬性
SVGFEDisplacementMapElement 介面的只讀屬性 height 使用 SVGAnimatedLength 物件描述 SVG 濾鏡圖元的垂直尺寸。
它反映了 <feDisplacementMap> 元素的 height 濾鏡圖元屬性。該屬性是一個關於濾鏡區域高度的 <length> 或 <percentage>。預設值為 100%。該屬性值是以使用者座標系單位表示的長度。
值
一個 SVGAnimatedLength 物件。
示例
js
const feDisplacementMap = document.querySelector("feDisplacementMap");
const verticalSize = feDisplacementMap.height;
console.log(verticalSize.baseVal.value); // the `height` value
規範
| 規範 |
|---|
| 濾鏡效果模組第 1 級 # dom-svgfilterprimitivestandardattributes-height |
瀏覽器相容性
載入中…
另見
SVGFEDisplacementMapElement.widthSVGFEImageElementAPI 和<feImage>元素SVGFETurbulenceElementAPI 和<feTurbulence>元素- CSS
<blend-mode>資料型別 - CSS
mix-blend-mode屬性