SVGFESpecularLightingElement: 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 SVGFESpecularLightingElement
-Schnittstelle beschreibt die vertikale Koordinate der Position einer SVG-Filterprimitive als SVGAnimatedLength
.
Sie spiegelt das y
-Attribut des <feSpecularLighting>
-Elements wider, das eine Quellgrafik unter Verwendung des Alphakanals als Reliefkarte beleuchtet. Das Attribut ist entweder ein <length>
oder ein <percentage>
. Die <coordinate>
ist eine Länge im Benutzerkoordinatensystem, die den angegebenen Abstand vom Ursprung des Filters entlang der y-Achse darstellt. Wenn das y
-Attribut einen Prozentwert hat, ist der Eigenschaftswert relativ zur Höhe der Filterregion in Benutzereinheit des Koordinatensystems. Der Standardwert ist 0
.
Wert
Ein SVGAnimatedLength
.
Beispiel
const feSpecularLighting = document.querySelector("feSpecularLighting");
const topPosition = feSpecularLighting.y;
console.log(topPosition.baseVal.value); // the `y` value
Spezifikationen
Specification |
---|
Filter Effects Module Level 1 # dom-svgfilterprimitivestandardattributes-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
Siehe auch
SVGFESpecularLightingElement.x
- CSS
<blend-mode>
Datentyp - CSS
mix-blend-mode
Eigenschaft