SVGFEPointLightElement: thuộc tính y
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 SVGFEPointLightElement mô tả tọa độ dọc của vị trí của bộ lọc SVG dưới dạng SVGAnimatedNumber.
Nó phản ánh thuộc tính y của phần tử <fePointLight>, có thể được sử dụng để xác định nguồn sáng trong hiệu ứng đèn điểm. Thuộc tính là <number>. Giá trị mặc định là 0.
Giá trị
Một SVGAnimatedNumber.
Ví dụ
js
const fePointLight = document.querySelector("fePointLight");
const topPosition = fePointLight.y;
console.log(topPosition.baseVal.value); // the `y` value
Thông số kỹ thuật
| Thông số kỹ thuật |
|---|
| Filter Effects Module Level 1> # dom-svgfepointlightelement-y> |