summaryrefslogtreecommitdiff
path: root/apps/web/src/lib/animation/number-channel.ts
diff options
context:
space:
mode:
Diffstat (limited to 'apps/web/src/lib/animation/number-channel.ts')
-rw-r--r--apps/web/src/lib/animation/number-channel.ts20
1 files changed, 0 insertions, 20 deletions
diff --git a/apps/web/src/lib/animation/number-channel.ts b/apps/web/src/lib/animation/number-channel.ts
deleted file mode 100644
index 3e193131..00000000
--- a/apps/web/src/lib/animation/number-channel.ts
+++ /dev/null
@@ -1,20 +0,0 @@
-import type {
- AnimationPropertyPath,
- ElementAnimations,
- NumberAnimationChannel,
-} from "@/lib/animation/types";
-
-export function getNumberChannelForPath({
- animations,
- propertyPath,
-}: {
- animations: ElementAnimations | undefined;
- propertyPath: AnimationPropertyPath;
-}): NumberAnimationChannel | undefined {
- const channel = animations?.channels[propertyPath];
- if (!channel || channel.valueKind !== "number") {
- return undefined;
- }
-
- return channel;
-}