SVGFEMorphologyElement: 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 SVGFEMorphologyElement
-Schnittstelle beschreibt die vertikale Koordinate der Position eines SVG-Filter-Primitivs als SVGAnimatedLength
.
Sie spiegelt das y
-Attribut des <feMorphology>
-Elements wider. Das Attribut ist entweder ein <length>
oder ein <percentage>
. Die <coordinate>
ist eine Länge im Benutzerkoordinatensystem, die den gegebenen Abstand vom Ursprung des Filters entlang der y-Achse darstellt. Wenn das y
-Attribut einen Prozentwert hat, ist der Eigenschaftswert relativ zur Höhe des Filterbereichs in Einheiten des Benutzerkoordinatensystems. Der Standardwert ist 0
.
Wert
Ein SVGAnimatedLength
.
Beispiel
const feMorphology = document.querySelector("feMorphology");
const topPosition = feMorphology.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
SVGFEMorphologyElement.x
- CSS-Datentyp
<blend-mode>
- CSS-Eigenschaft
mix-blend-mode