SVGFECompositeElement: 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 SVGFECompositeElement mô tả tọa độ ngang của vị trí một phần tử lọc SVG dưới dạng SVGAnimatedLength.
Nó phản ánh giá trị thuộc tính lọc x của phần tử <feComposite>. Phần tử lọc SVG <feComposite> kết hợp hai ảnh đầu vào bằng thao tác kết hợp Porter-Duff. Thuộc tính là một <length> hoặc <percentage>. <coordinate> là độ dài trong hệ tọa độ người dùng biểu thị khoảng cách tính từ gốc tọa độ của hệ tọa độ người dùng theo trục x. Nếu thuộc tính x là giá trị phần trăm, giá trị thuộc tính tương đối với chiều rộng của vùng bộ lọc tính theo đơn vị hệ tọa độ người dùng. Giá trị mặc định là 0.
Giá trị
Một SVGAnimatedLength.
Ví dụ
const feComposite = document.querySelector("feComposite");
const leftPosition = feComposite.x;
console.log(leftPosition.baseVal.value); // the `x` value
Thông số kỹ thuật
| Specification |
|---|
| Filter Effects Module Level 1> # dom-svgfilterprimitivestandardattributes-x> |
Tương thích trình duyệt
Xem thêm
SVGFECompositeElement.y- CSS
<blend-mode>data type - CSS
mix-blend-modeproperty