summaryrefslogtreecommitdiff
path: root/apps/web/src/types
diff options
context:
space:
mode:
authorPriyankar Pal <88102392+priyankarpal@users.noreply.github.com>2025-06-26 11:35:55 +0530
committerGitHub <noreply@github.com>2025-06-26 11:35:55 +0530
commit4ed9858725ebfbc95f6e470e118b37aa1079f7d0 (patch)
treeae63f6e77cf738cab0a56e9eb865839742b9d163 /apps/web/src/types
parentc322ad1124aea02169b2094498cac5b6da54dd5b (diff)
parenta8d6bbd03a4c5a89075d75ea37b61afa5efe373a (diff)
downloadopencut-4ed9858725ebfbc95f6e470e118b37aa1079f7d0.tar.gz
Merge branch 'main' into split-issue-83
Diffstat (limited to 'apps/web/src/types')
-rw-r--r--apps/web/src/types/editor.ts1
-rw-r--r--apps/web/src/types/timeline.ts27
2 files changed, 28 insertions, 0 deletions
diff --git a/apps/web/src/types/editor.ts b/apps/web/src/types/editor.ts
new file mode 100644
index 00000000..bf1dae2f
--- /dev/null
+++ b/apps/web/src/types/editor.ts
@@ -0,0 +1 @@
+export type BackgroundType = "blur" | "mirror" | "color";
diff --git a/apps/web/src/types/timeline.ts b/apps/web/src/types/timeline.ts
new file mode 100644
index 00000000..21be520e
--- /dev/null
+++ b/apps/web/src/types/timeline.ts
@@ -0,0 +1,27 @@
+import { TimelineTrack, TimelineClip } from "@/stores/timeline-store";
+
+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;
+}