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

Function hasAuthoredTimedAncestor

packages/core/src/runtime/init.ts:1236–1243  ·  view source on GitHub ↗
(element: HTMLElement)

Source from the content-addressed store, hash-verified

1234 // never become timeline clips and that scene can't inline-expand.
1235 const authoredTimed = new Set<Element>(document.querySelectorAll("[data-start]"));
1236 const hasAuthoredTimedAncestor = (element: HTMLElement): boolean => {
1237 let node = element.parentElement;
1238 while (node && node !== rootComp) {
1239 if (authoredTimed.has(node)) return true;
1240 node = node.parentElement;
1241 }
1242 return false;
1243 };
1244
1245 // Stamp GSAP-targeted elements
1246 if (state.capturedTimeline.getChildren) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected