MCPcopy Index your code
hub / github.com/apache/echarts / runFrame

Function runFrame

test/runTest/runtime/timeline.js:39–57  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

37let timelineTime = 0;
38
39function runFrame() {
40 realFrameStartTime = NativeDate.now();
41 frameIdx++;
42 timelineTime += FIXED_FRAME_TIME;
43 const currentRafCbs = rafCbs;
44 // Clear before calling the callbacks. raf may be registered in the callback
45 rafCbs = [];
46 currentRafCbs.forEach((cb) => {
47 try {
48 cb();
49 }
50 catch (e) {
51 // Catch error to avoid following tasks.
52 __VRT_LOG_ERRORS__(e.toString());
53 }
54 });
55 flushTimeoutHandlers();
56 flushIntervalHandlers();
57}
58function timelineLoop() {
59 if (!__VRT_TIMELINE_PAUSED__) {
60 runFrame();

Callers 1

timelineLoopFunction · 0.85

Calls 3

flushTimeoutHandlersFunction · 0.85
flushIntervalHandlersFunction · 0.85
cbFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…