SVGFESpecularLightingElement: width 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 width của giao diện SVGFESpecularLightingElement mô tả kích thước ngang của một bộ lọc SVG nguyên thủy dưới dạng SVGAnimatedLength.

Nó phản ánh thuộc tính width của phần tử <feSpecularLighting>, phần tử chiếu sáng đồ họa nguồn sử dụng kênh alpha như một bản đồ va chạm. Thuộc tính là <length> hoặc <percentage> tương đối với chiều rộng vùng bộ lọc. Giá trị mặc định là 100%. Giá trị thuộc tính là độ dài tính theo đơn vị hệ tọa độ người dùng.

Giá trị

Một SVGAnimatedLength.

Ví dụ

js
const feSpecularLighting = document.querySelector("feSpecularLighting");
const horizontalSize = feSpecularLighting.width;
console.log(horizontalSize.baseVal.value); // giá trị `width`

Thông số kỹ thuật

Thông số kỹ thuật
Filter Effects Module Level 1
# dom-svgfilterprimitivestandardattributes-width

Tương thích trình duyệt

Xem thêm