( parsed: ParsedDocument, animationId: string, resolvedFromValues?: Record<string, number | string>, )
| 1128 | } |
| 1129 | |
| 1130 | function handleConvertToKeyframes( |
| 1131 | parsed: ParsedDocument, |
| 1132 | animationId: string, |
| 1133 | resolvedFromValues?: Record<string, number | string>, |
| 1134 | ): MutationResult { |
| 1135 | const script = getGsapScript(parsed.document); |
| 1136 | if (!script) return EMPTY; |
| 1137 | const newScript = convertToKeyframesFromScript(script, animationId, resolvedFromValues); |
| 1138 | if (newScript === script) return EMPTY; |
| 1139 | setGsapScript(parsed.document, newScript); |
| 1140 | return gsapScriptChange(script, newScript); |
| 1141 | } |
| 1142 | |
| 1143 | function handleMaterializeKeyframes( |
| 1144 | parsed: ParsedDocument, |
no test coverage detected