From bd9ec023eefc4b5d26fa8b66c4338e97104f0f96 Mon Sep 17 00:00:00 2001 From: Maze Winther Date: Wed, 1 Apr 2026 19:27:49 +0200 Subject: refactor: split constants by domain and isolate timeline panel from core --- apps/web/src/lib/timeline/pixel-utils.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'apps/web/src/lib/timeline/pixel-utils.ts') diff --git a/apps/web/src/lib/timeline/pixel-utils.ts b/apps/web/src/lib/timeline/pixel-utils.ts index c4635e52..e93b5ab5 100644 --- a/apps/web/src/lib/timeline/pixel-utils.ts +++ b/apps/web/src/lib/timeline/pixel-utils.ts @@ -1,4 +1,4 @@ -import { TIMELINE_CONSTANTS } from "@/constants/timeline-constants"; +import { BASE_TIMELINE_PIXELS_PER_SECOND } from "@/lib/timeline/scale"; export const TIMELINE_INDICATOR_LINE_WIDTH_PX = 2; @@ -31,7 +31,7 @@ export function getTimelinePixelsPerSecond({ }: { zoomLevel: number; }): number { - return TIMELINE_CONSTANTS.PIXELS_PER_SECOND * zoomLevel; + return BASE_TIMELINE_PIXELS_PER_SECOND * zoomLevel; } export function timelineTimeToPixels({ -- cgit v1.3.1