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

Function refreshActiveHighlight

src/highlight.ts:47–58  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

45}
46
47export function refreshActiveHighlight() {
48 const activeHighlight = getState("__activeElement");
49 const activeStep = getState("__activeStep")!;
50
51 if (!activeHighlight) {
52 return;
53 }
54
55 trackActiveElement(activeHighlight);
56 refreshOverlay();
57 repositionPopover(activeHighlight, activeStep);
58}
59
60function transferHighlight(toElement: Element, toStep: DriveStep) {
61 const duration = getConfig("duration") || 400;

Callers

nothing calls this directly

Calls 4

getStateFunction · 0.90
trackActiveElementFunction · 0.90
refreshOverlayFunction · 0.90
repositionPopoverFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…