MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / findRoot

Function findRoot

packages/sdk/src/engine/model.ts:119–126  ·  view source on GitHub ↗
(document: Document)

Source from the content-addressed store, hash-verified

117}
118
119export function findRoot(document: Document): Element | null {
120 return (
121 document.querySelector("[data-hf-root]") ??
122 document.getElementById("stage") ??
123 document.body?.firstElementChild ??
124 null
125 );
126}
127
128// ─── Inline style helpers ─────────────────────────────────────────────────────
129

Callers 7

extractDimensionsFunction · 0.85
extractDurationFunction · 0.85
applyOverrideSetFunction · 0.85
applyOneFunction · 0.85
handleSetVariableValueFunction · 0.85
validateOpFunction · 0.85

Calls 1

querySelectorMethod · 0.65

Tested by

no test coverage detected