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

Function collectShotSelectors

packages/cli/src/commands/keyframes.ts:658–667  ·  view source on GitHub ↗
(comps: SurfacedComposition[])

Source from the content-addressed store, hash-verified

656}
657
658export function collectShotSelectors(comps: SurfacedComposition[]): Array<{ selector: string }> {
659 const selectors = new Set<string>();
660 for (const cmp of comps) {
661 addTraceSelectors(selectors, cmp);
662 addTweenSelectors(selectors, cmp);
663 addCssKeyframeSelectors(selectors, cmp);
664 addAnimeSelectors(selectors, cmp);
665 }
666 return [...selectors].map((selector) => ({ selector }));
667}
668
669// Guard checks that must pass before capturing the onion-skin shot. Returns the
670// message to print when a guard fails, or null when clear to proceed.

Callers 2

runOnionShotFunction · 0.85
keyframes.test.tsFile · 0.85

Calls 4

addTraceSelectorsFunction · 0.85
addTweenSelectorsFunction · 0.85
addCssKeyframeSelectorsFunction · 0.85
addAnimeSelectorsFunction · 0.85

Tested by

no test coverage detected