MCPcopy
hub / github.com/sveltejs/svelte / _update

Method _update

packages/svelte/tests/animation-helpers.js:81–92  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

79 }
80
81 _update() {
82 this.currentTime = raf.time - this.#offset - this.#delay;
83 if (this.currentTime < 0) return;
84
85 const target_frame = this.currentTime / this.#duration;
86 this.#apply_keyframe(target_frame);
87
88 if (this.currentTime >= this.#duration) {
89 this.#onfinish();
90 raf.animations.delete(this);
91 }
92 }
93
94 /**
95 * @param {number} t

Callers 2

constructorMethod · 0.95
tickFunction · 0.80

Calls 2

#apply_keyframeMethod · 0.95
deleteMethod · 0.45

Tested by

no test coverage detected