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

Function refreshOverlay

src/overlay.ts:57–74  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

55}
56
57export function refreshOverlay() {
58 const activeStagePosition = getState("__activeStagePosition");
59 const overlaySvg = getState("__overlaySvg");
60
61 if (!activeStagePosition) {
62 return;
63 }
64
65 if (!overlaySvg) {
66 console.warn("No stage svg found.");
67 return;
68 }
69
70 const windowX = window.innerWidth;
71 const windowY = window.innerHeight;
72
73 overlaySvg.setAttribute("viewBox", `0 0 ${windowX} ${windowY}`);
74}
75
76function mountOverlay(stagePosition: StageDefinition) {
77 const overlaySvg = createOverlaySvg(stagePosition);

Callers 1

refreshActiveHighlightFunction · 0.90

Calls 1

getStateFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…