MCPcopy
hub / github.com/nilbuild/driver.js / nextFrame

Function nextFrame

tests/utils.ts:42–44  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

40
41// Waits a single animation frame — needed for hooks that fire in the rAF loop.
42export function nextFrame(): Promise<void> {
43 return new Promise(resolve => requestAnimationFrame(() => resolve()));
44}
45
46export const popoverEl = () => document.querySelector(".driver-popover");
47export const popoverTitle = () => document.querySelector(".driver-popover-title")?.textContent?.trim();

Callers 11

events.test.tsFile · 0.90
flushFramesFunction · 0.90
keyboard.test.tsFile · 0.90
hooks.test.tsFile · 0.90
popover.test.tsFile · 0.90
positionArrowFunction · 0.90
topForOffsetFunction · 0.90
navigation.test.tsFile · 0.90
overlay.test.tsFile · 0.90

Calls

no outgoing calls

Tested by 3

flushFramesFunction · 0.72
positionArrowFunction · 0.72
topForOffsetFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…