SVGFESpotLightElement: y-Eigenschaft
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.
Die schreibgeschützte y
-Eigenschaft der SVGFESpotLightElement
-Schnittstelle beschreibt die vertikale Koordinate der Position eines SVG-Filterprimitivs als SVGAnimatedNumber
.
Sie spiegelt das y
-Attribut des <feSpotLight>
-Elements wider, das verwendet werden kann, um die Lichtquelle in einem Spotlichteffekt zu definieren. Das Attribut ist ein <number>
. Der Standardwert ist 0
.
Wert
Ein SVGAnimatedNumber
.
Beispiel
js
const feSpotLight = document.querySelector("feSpotLight");
const topPosition = feSpotLight.y;
console.log(topPosition.baseVal.value); // the `y` value
Spezifikationen
Specification |
---|
Filter Effects Module Level 1 # dom-svgfespotlightelement-y |
Browser-Kompatibilität
BCD tables only load in the browser