E_NO_GSAP_SCRIPT CanResult when the composition has no GSAP script, else null.
(parsed: ParsedDocument)
| 1355 | |
| 1356 | /** E_NO_GSAP_SCRIPT CanResult when the composition has no GSAP script, else null. */ |
| 1357 | function 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. */ |
| 1368 | function locateGsapAnimation(parsed: ParsedDocument, animationId: string) { |
no test coverage detected