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

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

Siehe auch