SVGFECompositeElement: 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.

We’d love to hear your thoughts on the next set of proposals for the JavaScript language. You can find a description of the proposals here.
Please take two minutes to fill out our short survey.

Die height-Eigenschaft der SVGFECompositeElement-Schnittstelle beschreibt die vertikale Größe einer SVG-Filterprimitive als ein SVGAnimatedLength.

Sie spiegelt das <feComposite>-Element und dessen height-Attribut der Filterprimitive wider. Die <feComposite> SVG-Filterprimitive kombiniert zwei Eingabebilder mithilfe einer Porter-Duff-Compositing-Operation. Das Attribut ist entweder ein \<length> oder ein \<percentage>, relativ zur Höhe des Filterbereichs. Der Standardwert ist 100%. Der Eigenschaftswert ist eine Länge in Benutzereinheitkoordinaten.

Wert

Beispiel

js
const feComposite = document.querySelector("feComposite");
const verticalSize = feComposite.height;
console.log(verticalSize.baseVal.value); // the `height` value

Spezifikationen

Specification
Filter Effects Module Level 1
# dom-svgfilterprimitivestandardattributes-height

Browser-Kompatibilität

Siehe auch