SVGFEBlendElement: x 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 x của giao diện SVGFEBlendElement mô tả tọa độ ngang của vị trí của một SVG filter primitive dưới dạng SVGAnimatedLength.
Nó phản ánh giá trị thuộc tính filter primitive x của phần tử <feBlend>. SVG filter <feBlend> pha trộn hai ảnh đầu vào với nhau bằng các chế độ pha trộn phổ biến trong phần mềm xử lý ảnh.
Thuộc tính là <length> hoặc <percentage>. Giá trị mặc định là 0.
Giá trị
Một SVGAnimatedLength.
Ví dụ
js
const feBlend = document.querySelector("feBlend");
const leftPosition = feBlend.x;
console.log(leftPosition.baseVal.value); // the `x` value
Thông số kỹ thuật
| Thông số kỹ thuật |
|---|
| Filter Effects Module Level 1> # dom-svgfilterprimitivestandardattributes-x> |
Tương thích trình duyệt
Xem thêm
SVGFEBlendElement.y- Kiểu dữ liệu CSS
<blend-mode> - Thuộc tính CSS
mix-blend-mode