SVGFEOffsetElement: 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 SVGFEOffsetElement mô tả tên được gán cho một SVG filter primitive dưới dạng SVGAnimatedString.
Nó phản ánh thuộc tính result của phần tử <feOffset>, phần tử này dịch chuyển ảnh đầu vào so với vị trí hiện tại của nó. Giá trị thuộc tính là <custom-ident>. Nếu được cung cấp, đồ 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 filter primitive tiếp theo trong cùng 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 sẽ là chuỗi rỗng, và đầu ra của filter <feOffset> chỉ có thể được sử dụng lại làm đầu vào ngầm định cho 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 feOffsetElement = document.querySelector("feOffset");
const filterName = feOffsetElement.result;
console.log(filterName.baseVal); // the filter's assigned name
Thông số kỹ thuật
| Thông số kỹ thuật |
|---|
| Filter Effects Module Level 1> # dom-svgfilterprimitivestandardattributes-result> |
Tương thích trình duyệt
Xem thêm
SVGFEOffsetElement.in1- Kiểu dữ liệu
<custom-ident>