SVGFEGaussianBlurElement: 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 July 2015.
Die schreibgeschützte width
-Eigenschaft der SVGFEGaussianBlurElement
-Schnittstelle beschreibt die horizontale Größe eines SVG-Filter-Primitivs als ein SVGAnimatedLength
.
Sie spiegelt das width
-Attribut des <feGaussianBlur>
-Elements wider, das ein Eingabebild verwischt. Das Attribut ist ein \<length>
oder ein \<percentage>
relativ zur Breite des Filterbereichs. Der Standardwert ist 100%
. Der Wert der Eigenschaft ist eine Länge in Benutzereinheitensystemen.
Wert
Ein SVGAnimatedLength
.
Beispiel
const feGaussianBlur = document.querySelector("feGaussianBlur");
const horizontalSize = feGaussianBlur.width;
console.log(horizontalSize.baseVal.value); // the `width` value
Spezifikationen
Specification |
---|
Filter Effects Module Level 1 # dom-svgfilterprimitivestandardattributes-width |
Browser-Kompatibilität
Siehe auch
SVGFEGaussianBlurElement.height
- SVG-Filter-Tutorial
- CSS
<blend-mode>
Datentyp - CSS
blur()
Funktion - CSS Filter-Effekte Modul - CSS
mix-blend-mode
Eigenschaft