SVGFESpecularLightingElement: result-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 result
-Eigenschaft der SVGFESpecularLightingElement
-Schnittstelle beschreibt den zugewiesenen Namen eines SVG-Filterprimitivs als SVGAnimatedString
.
Sie spiegelt das result
-Attribut des <feSpecularLighting>
-Elements wider, das eine Quellgrafik mit dem Alphakanal als Höhenkarte beleuchtet. Der Attributwert ist ein <custom-ident>
. Wenn angegeben, können Grafiken, die aus der Verarbeitung dieses Filterprimitivs resultieren, durch ein in
-Attribut auf einem nachfolgenden Filterprimitiv innerhalb desselben <filter>
-Elements referenziert werden.
Wenn kein result
-Attribut definiert ist, sind result.baseVal
und result.animVal
des Filters leere Zeichenfolgen, und die Ausgabe des <feSpecularLighting>
-Filters ist nur als implizite Eingabe in das nächste Filterprimitiv wiederverwendbar, wenn dieses Filterprimitiv keinen Wert für sein in
-Attribut bereitstellt.
Wert
Ein SVGAnimatedString
.
Beispiel
const feSpecularLightingElement = document.querySelector("feSpecularLighting");
const filterName = feSpecularLightingElement.result;
console.log(filterName.baseVal); // the filter's assigned name
Spezifikationen
Specification |
---|
Filter Effects Module Level 1 # dom-svgfilterprimitivestandardattributes-result |
Browser-Kompatibilität
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
result |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
Siehe auch
SVGFESpecularLightingElement.in1
<custom-ident>
DatentypSVGFEDiffuseLightingElement
- CSS
lighting-color
-Eigenschaft