SVGFEMorphologyElement: x-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 x
-Eigenschaft der SVGFEMorphologyElement
-Schnittstelle beschreibt die horizontale Koordinate der Position eines SVG-Filterprimitivelements als SVGAnimatedLength
. Diese Eigenschaft ist schreibgeschützt.
Sie spiegelt das x
-Attribut des <feMorphology>
-Elements wider. Das Attribut ist ein \<length>
oder ein <percentage>
. Die <coordinate>
ist eine Länge im Benutzersystem, die die gegebene Entfernung vom Ursprung des Benutzersystems entlang der x-Achse darstellt. Wenn das x
-Attribut einen Prozentwert hat, ist der Eigenschaftswert relativ zur Breite des Filterbereichs in Benutzersystemeinheiten. Der Standardwert ist 0
.
Wert
Ein SVGAnimatedLength
.
Beispiel
const feMorphology = document.querySelector("feMorphology");
const leftPosition = feMorphology.x;
console.log(leftPosition.baseVal.value); // the `x` value
Spezifikationen
Specification |
---|
Filter Effects Module Level 1 # dom-svgfilterprimitivestandardattributes-x |
Browser-Kompatibilität
BCD tables only load in the browser
Siehe auch
SVGFEMorphologyElement.y
- CSS-Datentyp
<blend-mode>
- CSS-Eigenschaft
mix-blend-mode