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

Method getElements

packages/sdk/src/session.ts:304–308  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

302 // ── Query API (F1) ───────────────────────────────────────────────────────────
303
304 getElements(): ElementSnapshot[] {
305 // Walk the live linkedom DOM directly — no serialize/re-parse round trip.
306 this.elementsCache ??= flatElements(buildRoots(this.parsed.document));
307 return [...this.elementsCache];
308 }
309
310 getElement(id: HfId): ElementSnapshot | null {
311 // Accept both bare ids (top-level) and scoped ids (sub-composition elements).

Callers 3

getElementTimingsMethod · 0.95
getElementMethod · 0.95
findMethod · 0.95

Calls 2

flatElementsFunction · 0.85
buildRootsFunction · 0.85

Tested by

no test coverage detected