SVGAnimatedEnumeration: baseVal-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 baseVal-Eigenschaft des SVGAnimatedEnumeration-Interfaces enthält den Anfangswert einer SVG-Enumeration.

Wert

Ein Integer, der den Anfangswert der Enumeration enthält

Beispiele

Betrachten Sie dieses Snippet mit einem -Element: Sein clipPathUnits ist mit einem SVGAnimatedEnumeration-Objekt verknüpft.

html

  
    
  

  
  

Dieses Snippet holt das Element und protokolliert den baseVal der SVGClipPathElement.clipPathUnits-Eigenschaft.

js
const clipPathElt = document.getElementById("clip1");
console.log(clipPathElt.clipPathUnits.baseVal); // Logs 1 that correspond to userSpaceOnUse

Spezifikationen

Specification
Scalable Vector Graphics (SVG) 2
# __svg__SVGAnimatedEnumeration__baseVal

Browser-Kompatibilität

Siehe auch