SVGFEGaussianBlurElement: y-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 y
schreibgeschützte Eigenschaft der SVGFEGaussianBlurElement
-Schnittstelle beschreibt die vertikale Koordinate der Position eines SVG-Filter-Primitives als ein SVGAnimatedLength
.
Sie spiegelt das y
-Attribut des <feGaussianBlur>
-Elements wider, welches ein Eingabebild verwischt. Das Attribut ist entweder ein <length>
oder ein <percentage>
. Das <coordinate>
ist eine Länge im Benutzers Koordinatensystem, die die gegebene Entfernung vom Ursprung des Filters entlang der y-Achse darstellt. Wenn das y
-Attribut einen Prozentwert hat, ist der Eigenschaftswert relativ zur Höhe der Filterregion in Benutzers Koordinatensystemeinheiten. Der Standardwert ist 0
.
Wert
Ein SVGAnimatedLength
.
Beispiel
const feGaussianBlur = document.querySelector("feGaussianBlur");
const topPosition = feGaussianBlur.y;
console.log(topPosition.baseVal.value); // the `y` value
Spezifikationen
Specification |
---|
Filter Effects Module Level 1 # dom-svgfilterprimitivestandardattributes-y |
Browser-Kompatibilität
BCD tables only load in the browser
Siehe auch
SVGFEGaussianBlurElement.x
- SVG-Filter-Tutorial
- CSS
<blend-mode>
Datentyp - CSS
blur()
Funktion - CSS-Filtereffekte-Modul
- CSS
mix-blend-mode
Eigenschaft