SVGFEDisplacementMapElement: y 屬性
y 是 SVGFEDisplacementMapElement 介面的一個只讀屬性,它描述了 SVG 濾鏡原語的位置的垂直座標,其型別為 SVGAnimatedLength。
它反映了 <feDisplacementMap> 元素的 y 濾鏡原語屬性值。該屬性是一個 <length> 或 <percentage>。<coordinate> 是使用者座標系中的一個長度,表示從濾鏡的起點沿 y 軸的距離。如果 y 屬性是百分比值,則屬性值相對於使用者座標系中濾鏡區域的高度而言。
值
一個 SVGAnimatedLength 物件。
示例
js
const feDisplacementMap = document.querySelector("feDisplacementMap");
const topPosition = feDisplacementMap.y;
console.log(topPosition.baseVal.value); // the `y` value
規範
| 規範 |
|---|
| 濾鏡效果模組第 1 級 # dom-svgfilterprimitivestandardattributes-y |
瀏覽器相容性
載入中…
另見
SVGFEDisplacementMapElement.xSVGFEImageElementAPI 和<feImage>元素SVGFETurbulenceElementAPI 和<feTurbulence>元素- CSS
<blend-mode>資料型別 - CSS
mix-blend-mode屬性