SVGFEColorMatrixElement: height-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 height
-Eigenschaft der Schnittstelle SVGFEColorMatrixElement
beschreibt die vertikale Größe einer SVG-Filter-Primitiven als ein SVGAnimatedLength
.
Sie spiegelt das <feColorMatrix>
-Element und das Filterprimitiv-Attribut height
wider. Der <feColorMatrix>
-Filter wendet eine Matrixtransformation auf die RGB-Farb- und Alpha-Werte an.
Das Attribut ist ein \<length>
oder ein <percentage>
relativ zur Höhe des Filterbereichs. Der Standardwert ist 100%
. Der Eigenschaftswert ist eine Länge in Benutzerkoordinatensystemeinheiten.
Wert
Ein SVGAnimatedLength
.
Beispiel
const feColorMatrix = document.querySelector("feColorMatrix");
const verticalSize = feColorMatrix.height;
console.log(verticalSize.baseVal.value); // the `height` value
Spezifikationen
Specification |
---|
Filter Effects Module Level 1 # dom-svgfilterprimitivestandardattributes-height |
Browser-Kompatibilität
BCD tables only load in the browser
Siehe auch
SVGFEColorMatrixElement.width
- CSS
<blend-mode>
Datentyp - CSS
mix-blend-mode
Eigenschaft - CSS Filter-Effekte
- SVG
<filter>
-Element, SVGfilter
-Attribut in SVG - Anwenden von SVG-Effekten auf HTML-Inhalte