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