SVGFEDisplacementMapElement: result 属性
SVGFEDisplacementMapElement 接口的只读属性 result,以 SVGAnimatedString 的形式描述了 SVG 滤镜图元的指定名称。
它反映了 <feDisplacementMap> 元素的 result 属性。属性值是一个 <custom-ident>。如果提供了该属性,则可以在同一 <filter> 元素中后续滤镜图元的 in 属性中引用由该滤镜图元处理产生的图形。
如果未定义 result 属性,则滤镜的 result.baseVal 和 result.animVal 将为空字符串,并且 <feDisplacementMap> 滤镜的输出只有在下一个滤镜图元未为其 in 属性提供任何值时,才能作为隐式输入进行重用。
值
示例
js
const feDisplacementMapElement = document.querySelector("feDisplacementMap");
const filterName = feDisplacementMapElement.result;
console.log(filterName.baseVal); // the filter's assigned name
规范
| 规范 |
|---|
| 滤镜效果模块第 1 级 # dom-svgfilterprimitivestandardattributes-result |
浏览器兼容性
加载中…
另见
SVGFEDisplacementMapElement.in1<custom-ident>数据类型SVGFEImageElementAPI 和<feImage>元素SVGFETurbulenceElementAPI 和<feTurbulence>元素- CSS
<blend-mode>数据类型 - CSS
mix-blend-mode属性