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