From 648f0b8529b9f3bafb3bfd9a84a31bc9ac6623ae Mon Sep 17 00:00:00 2001 From: Maze Winther Date: Thu, 17 Jul 2025 19:46:23 +0200 Subject: stable timeline --- .../editor/timeline/timeline-content.tsx | 126 --------------------- 1 file changed, 126 deletions(-) delete mode 100644 apps/web/src/components/editor/timeline/timeline-content.tsx (limited to 'apps/web/src/components/editor/timeline/timeline-content.tsx') diff --git a/apps/web/src/components/editor/timeline/timeline-content.tsx b/apps/web/src/components/editor/timeline/timeline-content.tsx deleted file mode 100644 index cb9a313f..00000000 --- a/apps/web/src/components/editor/timeline/timeline-content.tsx +++ /dev/null @@ -1,126 +0,0 @@ -import { SelectionBox } from "../selection-box"; -import { TimelinePlayhead } from "./timeline-playhead"; -import { SnapIndicator } from "../snap-indicator"; -import { TimelineRuler } from "./timeline-ruler"; -import { TimelineTracksArea } from "./timeline-tracks-area"; -import type { TimelineTrack } from "@/types/timeline"; -import type { SnapPoint } from "@/hooks/use-timeline-snapping"; - -export interface TimelineContentProps { - dynamicTimelineWidth: number; - tracks: TimelineTrack[]; - duration: number; - zoomLevel: number; - currentTime: number; - seek: (time: number) => void; - rulerRef: React.RefObject; - rulerScrollRef: React.RefObject; - tracksScrollRef: React.RefObject; - playheadRef: React.RefObject; - trackLabelsRef: React.RefObject; - timelineRef: React.RefObject; - handleSelectionMouseDown: (e: React.MouseEvent) => void; - handleTimelineContentClick: (e: React.MouseEvent) => void; - handleSnapPointChange: (snapPoint: SnapPoint | null) => void; - clearSelectedElements: () => void; - selectionBox: { - startPos: { x: number; y: number } | null; - currentPos: { x: number; y: number } | null; - isActive: boolean; - } | null; - tracksContainerRef: React.RefObject; - currentSnapPoint: SnapPoint | null; - showSnapIndicator: boolean; -} - -export function TimelineContent({ - dynamicTimelineWidth, - tracks, - duration, - zoomLevel, - currentTime, - seek, - rulerRef, - rulerScrollRef, - tracksScrollRef, - playheadRef, - trackLabelsRef, - timelineRef, - handleSelectionMouseDown, - handleTimelineContentClick, - handleSnapPointChange, - clearSelectedElements, - selectionBox, - tracksContainerRef, - currentSnapPoint, - showSnapIndicator, -}: TimelineContentProps) { - return ( -
-
0 ? `grid-rows-[20px_repeat(${tracks.length},minmax(0,max-content))]` : "grid-rows-[20px_1fr]"}`} - > - - - {/* Top Row (Sticky Ruler Header) */} - - - {/* Track Rows */} - -
- - {/* Overlay Components - positioned absolutely relative to the timeline container */} - - - - - -
- ); -} -- cgit v1.3.1