SVGFEMergeElement: thuộc tính result
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 SVGFEMergeElement mô tả tên được gán của một filter primitive SVG dưới dạng SVGAnimatedString.
Nó phản ánh thuộc tính result của phần tử <feMerge>. Giá trị thuộc tính là một <custom-ident>. Nếu được cung cấp, thì đồ họa kết quả từ việc xử lý filter primitive này có thể được tham chiếu bởi thuộc tính in trên một filter primitive tiếp theo trong cùng một phần tử <filter>.
Nếu không có thuộc tính result nào được định nghĩa, result.baseVal và result.animVal của filter là các chuỗi rỗng, và đầu ra của filter <feMerge> sẽ chỉ có thể được tái sử dụng như đầu vào ngầm định vào filter primitive tiếp theo nếu filter primitive đó không cung cấp giá trị cho thuộc tính in của nó.
Giá trị
Một SVGAnimatedString.
Ví dụ
const feMergeElement = document.querySelector("feMerge");
const filterName = feMergeElement.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
SVGFEMergeNodeElement.in1<custom-ident>data type