SVGFEFloodElement: 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 width
schreibgeschützte Eigenschaft des SVGFEFloodElement
-Interfaces beschreibt die horizontale Größe eines SVG-Filterprimitivs als SVGAnimatedLength
.
Sie spiegelt das width
-Attribut des <feFlood>
-Elements wider, welches eine SVG-Filterunterregion mit der durch flood-color
und flood-opacity
definierten Farbe und Opazität füllt. Das Attribut ist ein \<length>
oder ein \<percentage>
relativ zur Breite der Filterregion. Der Standardwert ist 100%
. Der Eigenschaftswert ist eine Länge in Einheiten des Benutzerkoordinatensystems.
Wert
Ein SVGAnimatedLength
.
Beispiel
const feFlood = document.querySelector("feFlood");
const horizontalSize = feFlood.width;
console.log(horizontalSize.baseVal.value); // the `width` value
Spezifikationen
Specification |
---|
Filter Effects Module Level 1 # dom-svgfilterprimitivestandardattributes-width |
Browser-Kompatibilität
Siehe auch
SVGFEFloodElement.height
- SVG-Filter-Tutorial
- CSS
<blend-mode>
Datentyp - CSS
mix-blend-mode
Eigenschaft