SVGFESpotLightElement: x-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 x
-Eigenschaft der Schnittstelle SVGFESpotLightElement
beschreibt die horizontale Koordinate der Position eines SVG-Filterprimitivs als SVGAnimatedNumber
.
Sie spiegelt das x
-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
const feSpotLight = document.querySelector("feSpotLight");
const leftPosition = feSpotLight.x;
console.log(leftPosition.baseVal.value); // the `x` value
Spezifikationen
Specification |
---|
Filter Effects Module Level 1 # dom-svgfespotlightelement-x |
Browser-Kompatibilität
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
x |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support