SVGFEDiffuseLightingElement: 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 schreibgeschützte width
-Eigenschaft der SVGFEDiffuseLightingElement
-Schnittstelle beschreibt die horizontale Größe einer SVG-Filterprimitive als SVGAnimatedLength
.
Diese spiegelt das <feDiffuseLighting>
-Element-Attribute width
der Filterprimitive wider. Der Filter beleuchtet ein Bild, indem er den Alphakanal als Bump-Map verwendet. Das Attribut ist eine \<length>
oder ein <percentage>
relativ zur Breite der Filterregion. Der Standardwert ist 100%
. Der Eigenschaftswert ist eine Länge in Benutzereinheitensystem.
Wert
Ein SVGAnimatedLength
.
Beispiel
const feDiffuseLighting = document.querySelector("feDiffuseLighting");
const horizontalSize = feDiffuseLighting.width;
console.log(horizontalSize.baseVal.value); // the `width` value
Spezifikationen
Specification |
---|
Filter Effects Module Level 1 # dom-svgfilterprimitivestandardattributes-width |
Browser-Kompatibilität
Siehe auch
SVGFEDiffuseLightingElement.height
SVGFESpecularLightingElement
<feSpecularLighting>
- CSS-Datentyp
<blend-mode>
- CSS-Eigenschaft
mix-blend-mode