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 y
schreibgeschützte Eigenschaft der Schnittstelle SVGFESpotLightElement
beschreibt die vertikale Koordinate der Position eines SVG-Filterprimitives als SVGAnimatedNumber
.
Sie spiegelt das y
-Attribut des <feSpotLight>
-Elements wider, das zum Definieren der Lichtquelle in einem Spotlichteffekt verwendet werden kann. Das Attribut ist ein <number>
. Der Standardwert ist 0
.
Wert
Ein SVGAnimatedNumber
.
Beispiel
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
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
y |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support