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 Juli 2015.
Die schreibgeschützte y-Eigenschaft der Schnittstelle SVGFEGaussianBlurElement beschreibt die vertikale Koordinate der Position eines SVG-Filterprimitives als SVGAnimatedLength.
Sie spiegelt das y-Attribut des <feGaussianBlur>-Elements wider, das ein Eingabebild verwischt. Das Attribut ist ein \<length> oder <percentage>. Die <coordinate> ist eine Länge im Benutzerskoordinatensystem, die die gegebene Entfernung vom Ursprung des Filters entlang der y-Achse angibt. Wenn das y-Attribut einen Prozentwert hat, ist der Eigenschaftswert relativ zur Höhe der Filterregion in Benutzerskoordinateneinheiten. 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
Siehe auch
SVGFEGaussianBlurElement.x- SVG-Filter-Tutorial
- CSS-Datentyp
<blend-mode> - CSS-Funktion
blur() - CSS-Filtereffekte-Modul - CSS-Eigenschaft
mix-blend-mode