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