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

Function removeElement

packages/sdk/examples/vanilla-editor.ts:54–57  ·  view source on GitHub ↗
(comp: Composition, id: string)

Source from the content-addressed store, hash-verified

52}
53
54export function removeElement(comp: Composition, id: string): void {
55 comp.removeElement(id);
56 // Inverse patch carries full serialized subtree — undo restores it.
57}
58
59// ── Element handle pattern ────────────────────────────────────────────────────
60// comp.element(id) — curried handle, no stale-ref hazard

Callers

nothing calls this directly

Calls 1

removeElementMethod · 0.65

Tested by

no test coverage detected