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