SVGFEColorMatrixElement: y 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 y của giao diện SVGFEColorMatrixElement mô tả tọa độ dọc 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 y của phần tử <feColorMatrix>. Filter <feColorMatrix> áp dụng phép biến đổi ma trận trên các giá trị màu RGB và alpha. 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 feColorMatrix = document.querySelector("feColorMatrix");
const topPosition = feColorMatrix.y;
console.log(topPosition.baseVal.value); // the `y` value
Thông số kỹ thuật
| Specification |
|---|
| Filter Effects Module Level 1> # dom-svgfilterprimitivestandardattributes-y> |
Tương thích trình duyệt
Xem thêm
SVGFEColorMatrixElement.x- Kiểu dữ liệu CSS
<blend-mode> - Thuộc tính CSS
mix-blend-mode - Hiệu ứng CSS filter
- Phần tử SVG
<filter>, thuộc tính SVGfiltertrong SVG - Áp dụng hiệu ứng SVG vào nội dung HTML