_update() — svelte Function Reference
Architecture documentation for the _update() function in animation-helpers.js from the svelte codebase.
Entity Profile
Dependency Diagram
graph TD 0ea92103_2955_4760_2a59_9c49c55f20cb["_update()"] 3ae2bea3_65e8_95e9_3e41_46d185d3488f["Animation"] 0ea92103_2955_4760_2a59_9c49c55f20cb -->|defined in| 3ae2bea3_65e8_95e9_3e41_46d185d3488f c01e6a37_7afe_4121_d70a_0f8984181554["tick()"] c01e6a37_7afe_4121_d70a_0f8984181554 -->|calls| 0ea92103_2955_4760_2a59_9c49c55f20cb 77588c93_fb24_0549_a295_004959ac570f["constructor()"] 77588c93_fb24_0549_a295_004959ac570f -->|calls| 0ea92103_2955_4760_2a59_9c49c55f20cb 5bc204c9_a7e1_1216_dffa_2a87d204a0c9["onfinish()"] 0ea92103_2955_4760_2a59_9c49c55f20cb -->|calls| 5bc204c9_a7e1_1216_dffa_2a87d204a0c9 style 0ea92103_2955_4760_2a59_9c49c55f20cb fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/svelte/tests/animation-helpers.js lines 81–92
_update() {
this.currentTime = raf.time - this.#offset - this.#delay;
if (this.currentTime < 0) return;
const target_frame = this.currentTime / this.#duration;
this.#apply_keyframe(target_frame);
if (this.currentTime >= this.#duration) {
this.#onfinish();
raf.animations.delete(this);
}
}
Domain
Subdomains
Defined In
Calls
Called By
Source
Frequently Asked Questions
What does _update() do?
_update() is a function in the svelte codebase, defined in packages/svelte/tests/animation-helpers.js.
Where is _update() defined?
_update() is defined in packages/svelte/tests/animation-helpers.js at line 81.
What does _update() call?
_update() calls 1 function(s): onfinish.
What calls _update()?
_update() is called by 2 function(s): constructor, tick.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free