SVGFECompositeElement: width 屬性
SVGFECompositeElement 介面的只讀屬性 width 描述了 SVG 濾鏡原語的水平尺寸,其型別為 SVGAnimatedLength。
它反映了 <feComposite> 元素的 width 濾鏡原語屬性。<feComposite> SVG 濾鏡原語使用 Porter-Duff 合成操作組合兩個輸入影像。該屬性是相對於濾鏡區域寬度的 <length> 或 <percentage>。預設值為 100%。屬性值是以使用者座標系統單位表示的長度。
值
一個 SVGAnimatedLength 物件。
示例
js
const feComposite = document.querySelector("feComposite");
const horizontalSize = feComposite.width;
console.log(horizontalSize.baseVal.value); // the `width` value
規範
| 規範 |
|---|
| 濾鏡效果模組第 1 級 # dom-svgfilterprimitivestandardattributes-width |
瀏覽器相容性
載入中…
另見
SVGFECompositeElement.height- CSS
<blend-mode>資料型別 - CSS
mix-blend-mode屬性