summaryrefslogtreecommitdiff
path: root/apps/web/src/lib/animation/keyframes.ts
diff options
context:
space:
mode:
authorMaze Winther <mazewinther@gmail.com>2026-04-06 12:59:07 +0200
committerMaze Winther <mazewinther@gmail.com>2026-04-06 12:59:07 +0200
commitc411edb7c160c55e94fddf62fd60fa1e166351c0 (patch)
tree39495bfc8120590c93943a396cce2b477d3faa6c /apps/web/src/lib/animation/keyframes.ts
parent2776adaae1512bf925c5bb4564b311b37f46202d (diff)
downloadopencut-c411edb7c160c55e94fddf62fd60fa1e166351c0.tar.gz
fix: clean up
Diffstat (limited to 'apps/web/src/lib/animation/keyframes.ts')
-rw-r--r--apps/web/src/lib/animation/keyframes.ts6
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,