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