SVGFEGaussianBlurElement: 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 SVGFEGaussianBlurElement 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 thuộc tính x 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 hệ tọa độ người dùng dọc 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 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 leftPosition = feGaussianBlur.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
SVGFEGaussianBlurElement.y- SVG filter tutorial
- CSS
<blend-mode>data type - CSS
blur()function - CSS filter effects module- CSS
mix-blend-modeproperty