Movatterモバイル変換


[0]ホーム

URL:


  1. Web
  2. Web-APIs
  3. SVGAnimatedInteger
  4. baseVal

Dieser Inhalt wurde automatisch aus dem Englischen übersetzt, und kann Fehler enthalten.Erfahre mehr über dieses Experiment.

View in EnglishAlways switch to English

SVGAnimatedInteger: 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 Juli 2015.

DiebaseVal-Eigenschaft derSVGAnimatedInteger-Schnittstelle repräsentiert den Basiswert (nicht animiert) eines animierbaren<integer>.

Einige Attribute, wie dasnumOctaves-Attribut des<feTurbulence>-Elements oder dasorder-Attribut des<feConvolveMatrix>-Elements, akzeptieren einenlong Integer als Wert. Diese Eigenschaft bietet Zugriff auf den statischen, nicht animierten Zustand des Attributs als Zahl.

Wert

Einlong; der Basiswert (nicht animiert) des reflektierten Attributs.

Beispiele

js
const feTurbulence = document.querySelector("feTurbulence");// Set the animatable 'numOctaves' attributefeTurbulence.setAttribute("numOctaves", "4");// Access the SVGAnimatedInteger objectconst animatedInteger = feTurbulence.numOctaves;// Get the base valueconsole.log(animatedInteger.baseVal); // Output: 4// Modify the base valueanimatedInteger.baseVal = 6;// Verify the reflected attribute valueconsole.log(feTurbulence.getAttribute("numOctaves")); // Output: "6"

Spezifikationen

Specification
Scalable Vector Graphics (SVG) 2
# __svg__SVGAnimatedInteger__baseVal

Browser-Kompatibilität

Siehe auch

Help improve MDN

Learn how to contribute Diese Seite wurde automatisch aus dem Englischen übersetzt.

[8]ページ先頭

©2009-2026 Movatter.jp