( parsed: ParsedDocument, animationId: string, property: string, from: boolean | undefined, )
| 1096 | } |
| 1097 | |
| 1098 | function handleRemoveGsapProperty( |
| 1099 | parsed: ParsedDocument, |
| 1100 | animationId: string, |
| 1101 | property: string, |
| 1102 | from: boolean | undefined, |
| 1103 | ): MutationResult { |
| 1104 | const script = getGsapScript(parsed.document); |
| 1105 | if (!script) return EMPTY; |
| 1106 | const newScript = removePropertyFromAnimation(script, animationId, property, from ?? false); |
| 1107 | if (newScript === script) return EMPTY; |
| 1108 | setGsapScript(parsed.document, newScript); |
| 1109 | return gsapScriptChange(script, newScript); |
| 1110 | } |
| 1111 | |
| 1112 | function handleRemoveGsapTween(parsed: ParsedDocument, animationId: string): MutationResult { |
| 1113 | const script = getGsapScript(parsed.document); |
no test coverage detected