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

Function gsapScriptMissing

packages/sdk/src/engine/mutate.ts:1357–1365  ·  view source on GitHub ↗

E_NO_GSAP_SCRIPT CanResult when the composition has no GSAP script, else null.

(parsed: ParsedDocument)

Source from the content-addressed store, hash-verified

1355
1356/** E_NO_GSAP_SCRIPT CanResult when the composition has no GSAP script, else null. */
1357function gsapScriptMissing(parsed: ParsedDocument): CanResult | null {
1358 return getGsapScript(parsed.document) === null
1359 ? canErr(
1360 "E_NO_GSAP_SCRIPT",
1361 "No GSAP script block found in the composition.",
1362 "This composition does not use GSAP animations.",
1363 )
1364 : null;
1365}
1366
1367/** The located GSAP animation for `animationId`, or undefined. */
1368function locateGsapAnimation(parsed: ParsedDocument, animationId: string) {

Callers 1

validateOpFunction · 0.85

Calls 2

getGsapScriptFunction · 0.85
canErrFunction · 0.85

Tested by

no test coverage detected