SVGFEDisplacementMapElement: result property
Baseline
Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.
Thuộc tính chỉ đọc result của giao diện SVGFEDisplacementMapElement mô tả tên được gán cho một phần tử lọc SVG dưới dạng SVGAnimatedString.
Nó phản ánh thuộc tính result của phần tử <feDisplacementMap>. Giá trị thuộc tính là một <custom-ident>. Nếu được cung cấp, đồ họa kết quả từ quá trình xử lý phần tử lọc này có thể được tham chiếu bởi thuộc tính in trên phần tử lọc tiếp theo trong cùng phần tử <filter>.
Nếu không có thuộc tính result được định nghĩa, result.baseVal và result.animVal của bộ lọc là các chuỗi rỗng, và đầu ra của bộ lọc <feDisplacementMap> chỉ có thể được tái sử dụng làm đầu vào ngầm cho phần tử lọc tiếp theo nếu phần tử đó không cung cấp giá trị nào cho thuộc tính in của nó.
Giá trị
Một SVGAnimatedString.
Ví dụ
const feDisplacementMapElement = document.querySelector("feDisplacementMap");
const filterName = feDisplacementMapElement.result;
console.log(filterName.baseVal); // the filter's assigned name
Thông số kỹ thuật
| Specification |
|---|
| Filter Effects Module Level 1> # dom-svgfilterprimitivestandardattributes-result> |
Tương thích trình duyệt
Xem thêm
SVGFEDisplacementMapElement.in1<custom-ident>data typeSVGFEImageElementAPI and<feImage>elementSVGFETurbulenceElementAPI and<feTurbulence>element- CSS
<blend-mode>data type - CSS
mix-blend-modeproperty