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 schreibgeschützte y
-Eigenschaft des SVGFESpecularLightingElement
-Interfaces beschreibt die vertikale Koordinate der Position eines SVG-Filter-Primitives als SVGAnimatedLength
.
Sie spiegelt das y
-Attribut des <feSpecularLighting>
-Elements wider, das eine Quelldarstellung mit dem Alphakanal als Bump-Map beleuchtet. Das Attribut ist ein \<length>
oder <percentage>
. Die <coordinate>
ist eine Länge im Benutzerkoordinatensystem, die der angegebenen Entfernung vom Ursprung des Filters entlang der y-Achse entspricht. Wenn das y
-Attribut einen Prozentwert hat, ist der Eigenschaftswert relativ zur Höhe des Filterbereichs in Benutzerkoordinatensystem-Einheiten. 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
BCD tables only load in the browser
Siehe auch
SVGFESpecularLightingElement.x
- CSS
<blend-mode>
Datentyp - CSS
mix-blend-mode
Eigenschaft