SVGFEMorphologyElement: width-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 width-Eigenschaft der SVGFEMorphologyElement-Schnittstelle, die nur lesbar ist, beschreibt die horizontale Größe einer SVG-Filterprimitive als ein SVGAnimatedLength.
Sie spiegelt das width-Attribut des <feMorphology>-Elements wider. Das Attribut ist eine \<length> oder ein \<percentage> relativ zur Breite des Filterbereichs. Der Standardwert ist 100%. Der Eigenschaftswert ist eine Länge in Einheiten des Benutzerskoordinatensystems.
Wert
Ein SVGAnimatedLength.
Beispiel
js
const feMorphology = document.querySelector("feMorphology");
const horizontalSize = feMorphology.width;
console.log(horizontalSize.baseVal.value); // the `width` value
Spezifikationen
| Specification |
|---|
| Filter Effects Module Level 1> # dom-svgfilterprimitivestandardattributes-width> |
Browser-Kompatibilität
Loading…