SVGFECompositeElement: x 屬性
SVGFECompositeElement 介面的只讀屬性 x 描述了 SVG 濾鏡圖元的水平座標,其型別為 SVGAnimatedLength。
它反映了 <feComposite> 元素的 x 濾鏡圖元屬性值。<feComposite> SVG 濾鏡圖元使用 Porter-Duff 合成操作組合兩個輸入影像。該屬性是一個 <length> 或 <percentage>。<coordinate> 是使用者座標系中的一個長度,它位於使用者座標系的原點沿 x 軸的方向上,距離原點給定的距離。如果 x 屬性的值是百分比,則屬性值相對於使用者座標系單位中的濾鏡區域的寬度。預設值為 0。
值
一個 SVGAnimatedLength 物件。
示例
js
const feComposite = document.querySelector("feComposite");
const leftPosition = feComposite.x;
console.log(leftPosition.baseVal.value); // the `x` value
規範
| 規範 |
|---|
| 濾鏡效果模組第 1 級 # dom-svgfilterprimitivestandardattributes-x |
瀏覽器相容性
載入中…
另見
SVGFECompositeElement.y- CSS
<blend-mode>資料型別 - CSS
mix-blend-mode屬性