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

Function animeAddTargets

packages/cli/src/commands/keyframes.ts:412–418  ·  view source on GitHub ↗
(script: string)

Source from the content-addressed store, hash-verified

410}
411
412function animeAddTargets(script: string): string[] {
413 const values: string[] = [];
414 const re = /\.add\s*\(\s*(["'`])([^"'`]+)\1/g;
415 let match: RegExpExecArray | null;
416 while ((match = re.exec(script))) values.push(match[2]!);
417 return values;
418}
419
420function surfaceAnime(script: string): SurfacedAnimeAnimation[] {
421 if (!/\banime\s*(?:\.(?:timeline|createTimeline))?\s*\(/.test(script)) return [];

Callers 1

surfaceAnimeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected