SVGFEDiffuseLightingElement: 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 Schnittstelle SVGFEDiffuseLightingElement beschreibt die horizontale Koordinate der Position eines SVG-Filterprimitives als SVGAnimatedLength.

Sie spiegelt den Wert des <feDiffuseLighting>-Elements des x-Filterprimitive-Attributs wider. Der Filter beleuchtet ein Bild unter Verwendung des Alpha-Kanals als Bump-Map. Das Attribut ist ein <length> oder <percentage>. Das <coordinate> ist eine Länge im Benutzerkoordinatensystem, die die gegebene Entfernung vom Ursprung des Benutzerkoordinatensystems entlang der x-Achse darstellt. Wenn das x-Attribut ein Prozentwert ist, ist der Eigenschaftswert relativ zur Breite der Filterregion in Benutzereinheitensystem-Einheiten. Der Standardwert ist 0.

Wert

Beispiel

js
const feDiffuseLighting = document.querySelector("feDiffuseLighting");
const leftPosition = feDiffuseLighting.x;
console.log(leftPosition.baseVal.value); // the `x` value

Spezifikationen

Specification
Filter Effects Module Level 1
# dom-svgfilterprimitivestandardattributes-x

Browser-Kompatibilität

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
x

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support

Siehe auch