SVGFESpecularLightingElement: height 屬性
SVGFESpecularLightingElement 介面的只讀屬性 height 將 SVG 濾鏡圖元的垂直尺寸描述為一個 SVGAnimatedLength 物件。
它反映了 <feSpecularLighting> 元素的 height 屬性,該元素使用 alpha 通道作為凹凸貼圖來照亮源圖形。該屬性是一個 <length> 或相對於濾鏡區域高度的 <percentage>。預設值為 100%。屬性值以使用者座標系單位表示長度。
值
一個 SVGAnimatedLength 物件。
示例
js
const feSpecularLighting = document.querySelector("feSpecularLighting");
const verticalSize = feSpecularLighting.height;
console.log(verticalSize.baseVal.value); // the `height` value
規範
| 規範 |
|---|
| 濾鏡效果模組第 1 級 # dom-svgfilterprimitivestandardattributes-height |
瀏覽器相容性
載入中…