SVGFESpecularLightingElement: y 属性
SVGFESpecularLightingElement
接口的只读属性 y
,描述了 SVG 滤镜图元的垂直坐标,其类型为 SVGAnimatedLength
。
它反映了 <feSpecularLighting>
元素的 y
属性,该元素使用 alpha 通道作为凹凸贴图来照亮源图形。该属性是一个 <length>
或 <percentage>
。y
属性是一个百分比值,则属性值是相对于用户坐标系统单位中的滤镜区域高度的。默认值为 0
。
值
一个 SVGAnimatedLength
对象。
示例
js
const feSpecularLighting = document.querySelector("feSpecularLighting");
const topPosition = feSpecularLighting.y;
console.log(topPosition.baseVal.value); // the `y` value
规范
规范 |
---|
滤镜效果模块第 1 级 # dom-svgfilterprimitivestandardattributes-y |
浏览器兼容性
加载中…
另见
SVGFESpecularLightingElement.x
- CSS
<blend-mode>
数据类型 - CSS
mix-blend-mode
属性