SVGFEColorMatrixElement: 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 Juli 2015.
Die y-Eigenschaft der SVGFEColorMatrixElement-Schnittstelle beschreibt die vertikale Koordinate der Position eines SVG-Filterprimitivs als SVGAnimatedLength.
Sie spiegelt den Wert des y-Filterprimitive-Attributs des <feColorMatrix>-Elements wider. Der <feColorMatrix>-Filter wendet eine Matrixtransformation auf die RGB-Farb- und Alpha-Werte an. Das Attribut ist ein <length> oder <percentage>. Das <coordinate> ist eine Länge im Benutzerkoordinatensystem, die der angegebenen Entfernung vom Ursprung des Filters entlang der y-Achse entspricht. Wenn das y-Attribut ein Prozentwert ist, ist der Eigenschaftswert relativ zur Höhe der Filterregion in Einheiten des Benutzerkoordinatensystems. Der Standardwert ist 0.
Wert
Ein SVGAnimatedLength.
Beispiel
const feColorMatrix = document.querySelector("feColorMatrix");
const topPosition = feColorMatrix.y;
console.log(topPosition.baseVal.value); // the `y` value
Spezifikationen
| Specification |
|---|
| Filter Effects Module Level 1> # dom-svgfilterprimitivestandardattributes-y> |
Browser-Kompatibilität
Loading…
Siehe auch
SVGFEColorMatrixElement.x- CSS
<blend-mode>Datentyp - CSS
mix-blend-modeEigenschaft - CSS-Filtereffekte
- SVG
<filter>-Element, SVGfilter-Attribut in SVG - Anwenden von SVG-Effekten auf HTML-Inhalt