raf.reset() — svelte Function Reference
Architecture documentation for the raf.reset() function in animation-helpers.js from the svelte codebase.
Entity Profile
Dependency Diagram
graph TD a8bd1206_9af5_9fbb_9a84_51006acf295a["raf.reset()"] e34c4197_0d2d_5f9c_9313_0d10c3cf054c["animation-helpers.js"] a8bd1206_9af5_9fbb_9a84_51006acf295a -->|defined in| e34c4197_0d2d_5f9c_9313_0d10c3cf054c style a8bd1206_9af5_9fbb_9a84_51006acf295a fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/svelte/tests/animation-helpers.js lines 12–22
reset() {
this.time = 0;
this.animations.clear();
this.ticks.clear();
svelte_raf.tick = (f) => {
raf.ticks.add(f);
};
svelte_raf.now = () => raf.time;
svelte_raf.tasks.clear();
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does raf.reset() do?
raf.reset() is a function in the svelte codebase, defined in packages/svelte/tests/animation-helpers.js.
Where is raf.reset() defined?
raf.reset() is defined in packages/svelte/tests/animation-helpers.js at line 12.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free