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

Function tick

packages/svelte/tests/animation-helpers.js:28–37  ·  view source on GitHub ↗

* @param {number} time

(time)

Source from the content-addressed store, hash-verified

26 * @param {number} time
27 */
28function tick(time) {
29 raf.time = time;
30 flushSync();
31 for (const animation of raf.animations) {
32 animation._update();
33 }
34 for (const tick of raf.ticks) {
35 tick(raf.time);
36 }
37}
38
39class Animation {
40 #keyframes;

Callers

nothing calls this directly

Calls 2

flushSyncFunction · 0.90
_updateMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…