diff options
| author | Maze Winther <mazewinther@gmail.com> | 2025-06-29 23:09:40 +0200 |
|---|---|---|
| committer | Maze Winther <mazewinther@gmail.com> | 2025-06-29 23:09:40 +0200 |
| commit | 822323d883f14120a55f79641be3e025fb919470 (patch) | |
| tree | 1f6ae3faf4fb7da92cf8c9e7a17ae6c8900477e5 /apps/web/src/types | |
| parent | ca29be23ff9c6d745fd55e9a995c0d635b79a709 (diff) | |
| download | opencut-822323d883f14120a55f79641be3e025fb919470.tar.gz | |
refactor: update timeline to use context menu component
Diffstat (limited to 'apps/web/src/types')
| -rw-r--r-- | apps/web/src/types/timeline.ts | 49 |
1 files changed, 20 insertions, 29 deletions
diff --git a/apps/web/src/types/timeline.ts b/apps/web/src/types/timeline.ts index 7fafc187..54a433a7 100644 --- a/apps/web/src/types/timeline.ts +++ b/apps/web/src/types/timeline.ts @@ -1,29 +1,20 @@ -import { TimelineTrack, TimelineClip } from "@/stores/timeline-store";
-
-export type TrackType = "video" | "audio" | "effects";
-
-export interface TimelineClipProps {
- clip: TimelineClip;
- track: TimelineTrack;
- zoomLevel: number;
- isSelected: boolean;
- onContextMenu: (e: React.MouseEvent, clipId: string) => void;
- onClipMouseDown: (e: React.MouseEvent, clip: TimelineClip) => void;
- onClipClick: (e: React.MouseEvent, clip: TimelineClip) => void;
-}
-
-export interface ResizeState {
- clipId: string;
- side: "left" | "right";
- startX: number;
- initialTrimStart: number;
- initialTrimEnd: number;
-}
-
-export interface ContextMenuState {
- type: "track" | "clip";
- trackId: string;
- clipId?: string;
- x: number;
- y: number;
-}
+import { TimelineTrack, TimelineClip } from "@/stores/timeline-store"; + +export type TrackType = "video" | "audio" | "effects"; + +export interface TimelineClipProps { + clip: TimelineClip; + track: TimelineTrack; + zoomLevel: number; + isSelected: boolean; + onClipMouseDown: (e: React.MouseEvent, clip: TimelineClip) => void; + onClipClick: (e: React.MouseEvent, clip: TimelineClip) => void; +} + +export interface ResizeState { + clipId: string; + side: "left" | "right"; + startX: number; + initialTrimStart: number; + initialTrimEnd: number; +} |
