diff options
Diffstat (limited to 'apps/web/src/lib/animation/keyframes.ts')
| -rw-r--r-- | apps/web/src/lib/animation/keyframes.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/web/src/lib/animation/keyframes.ts b/apps/web/src/lib/animation/keyframes.ts index 7eaa5ed6..d72f9e16 100644 --- a/apps/web/src/lib/animation/keyframes.ts +++ b/apps/web/src/lib/animation/keyframes.ts @@ -440,9 +440,9 @@ export function upsertPathKeyframe({ keyframeId?: string; kind: AnimationBindingKind; defaultInterpolation: AnimationInterpolation; - coerceValue: (value: AnimationValue) => AnimationValue | null; + coerceValue: ({ value }: { value: AnimationValue }) => AnimationValue | null; }): ElementAnimations | undefined { - const coercedValue = coerceValue(value); + const coercedValue = coerceValue({ value }); if (coercedValue === null) { return animations; } @@ -547,7 +547,7 @@ export function upsertElementKeyframe({ keyframeId, kind: propertyDefinition.kind, defaultInterpolation: propertyDefinition.defaultInterpolation, - coerceValue: (nextValue) => + coerceValue: ({ value: nextValue }) => coerceAnimationValueForProperty({ propertyPath, value: nextValue, |
