SVGAnimatedEnumeration: animVal-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 animVal
-Eigenschaft des SVGAnimatedEnumeration
-Interfaces enthält den aktuellen Wert einer SVG-Enumeration. Wenn keine Animation vorliegt, ist es derselbe Wert wie der baseVal
.
Wert
Ein Ganzzahlwert, der den aktuellen Wert der Enumeration enthält
Beispiele
html
js
const clipPath1 = document.getElementById("clip1");
const log = document.getElementById("log");
function displayLog() {
const animValue = clipPath1.clipPathUnits.animVal;
const baseValue = clipPath1.clipPathUnits.baseVal;
log.textContent = `The 'clipPathUnits.animVal' is ${animValue}.\n`;
log.textContent += `The 'clipPathUnits.baseVal' is ${baseValue}.`;
requestAnimationFrame(displayLog);
}
displayLog();
Spezifikationen
Specification |
---|
Scalable Vector Graphics (SVG) 2 # __svg__SVGAnimatedEnumeration__animVal |