SVGFEGaussianBlurElement: 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 SVGFEGaussianBlurElement mô tả tọa độ dọc của vị trí một phần tử lọc SVG dưới dạng SVGAnimatedLength.
Nó phản ánh thuộc tính y của phần tử <feGaussianBlur>, phần tử này làm mờ ảnh đầu vào. Thuộc tính là một <length> hoặc <percentage>. Giá trị <coordinate> là độ dài trong hệ tọa độ người dùng, là khoảng cách đã cho từ gốc của bộ lọc dọc theo trục y. Nếu thuộc tính y là giá trị phần trăm, giá trị thuộc tính tương đối với chiều cao của vùng bộ lọc theo đơn vị hệ tọa độ người dùng. Giá trị mặc định là 0.
Giá trị
Một SVGAnimatedLength.
Ví dụ
js
const feGaussianBlur = document.querySelector("feGaussianBlur");
const topPosition = feGaussianBlur.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
SVGFEGaussianBlurElement.x- SVG filter tutorial
- CSS
<blend-mode>data type - CSS
blur()function - CSS filter effects module- CSS
mix-blend-modeproperty