(parsed: ParsedDocument, animationId: string)
| 1110 | } |
| 1111 | |
| 1112 | function handleRemoveGsapTween(parsed: ParsedDocument, animationId: string): MutationResult { |
| 1113 | const script = getGsapScript(parsed.document); |
| 1114 | if (!script) throw new Error("No GSAP script block found in the composition."); |
| 1115 | const newScript = removeAnimationFromScript(script, animationId); |
| 1116 | if (newScript === script) return EMPTY; |
| 1117 | setGsapScript(parsed.document, newScript); |
| 1118 | return gsapScriptChange(script, newScript); |
| 1119 | } |
| 1120 | |
| 1121 | function handleRemoveAllKeyframes(parsed: ParsedDocument, animationId: string): MutationResult { |
| 1122 | const script = getGsapScript(parsed.document); |
no test coverage detected