SVGFEImageElement: y 属性
SVGFEImageElement
接口的只读属性 y
将 SVG 滤镜原语的位置的垂直坐标描述为 SVGAnimatedLength
。
它反映了 <feImage>
元素的 y
属性,该属性从外部源获取图像数据并提供像素数据作为输出。该属性是 <length>
或 <percentage>
。<coordinate>
是用户坐标系统中的一个长度,表示距离过滤器原点沿 y 轴的给定距离。如果 y
属性是百分比值,则属性值相对于用户坐标系统中的过滤器区域的高度。默认值为 0
。
值
一个 SVGAnimatedLength
对象。
示例
js
const feImage = document.querySelector("feImage");
const topPosition = feImage.y;
console.log(topPosition.baseVal.value); // the `y` value
规范
规范 |
---|
滤镜效果模块第 1 级 # dom-svgfilterprimitivestandardattributes-y |
浏览器兼容性
加载中…
另见
SVGFEImageElement.x
- SVG 教程:滤镜效果
- SVG 滤镜基元属性
- CSS
<blend-mode>
数据类型 - CSS
mix-blend-mode
属性