summaryrefslogtreecommitdiff
path: root/apps/web/src/stores/timeline-store.ts
diff options
context:
space:
mode:
authoraashishparuvada <aashishvardhanp@gmail.com>2025-06-23 21:16:21 +0530
committeraashishparuvada <aashishvardhanp@gmail.com>2025-06-23 21:16:21 +0530
commitf44f0acf7024febdbbecbbf10772b9b9d3863b4f (patch)
treeb7b3c2257c4f67135e9a27221d112f32dc2904b9 /apps/web/src/stores/timeline-store.ts
parent630250c23b1cd8ec608c95334ae2babf8e7a00af (diff)
downloadopencut-f44f0acf7024febdbbecbbf10772b9b9d3863b4f.tar.gz
hotfix-improved-selection-standards
Diffstat (limited to 'apps/web/src/stores/timeline-store.ts')
-rw-r--r--apps/web/src/stores/timeline-store.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/web/src/stores/timeline-store.ts b/apps/web/src/stores/timeline-store.ts
index c6ecaea5..4b55a53d 100644
--- a/apps/web/src/stores/timeline-store.ts
+++ b/apps/web/src/stores/timeline-store.ts
@@ -26,6 +26,7 @@ interface TimelineStore {
selectClip: (trackId: string, clipId: string, multi?: boolean) => void;
deselectClip: (trackId: string, clipId: string) => void;
clearSelectedClips: () => void;
+ setSelectedClips: (clips: { trackId: string; clipId: string }[]) => void;
// Actions
addTrack: (type: "video" | "audio" | "effects") => string;
@@ -82,6 +83,8 @@ export const useTimelineStore = create<TimelineStore>((set, get) => ({
set({ selectedClips: [] });
},
+ setSelectedClips: (clips) => set({ selectedClips: clips }),
+
addTrack: (type) => {
const newTrack: TimelineTrack = {
id: crypto.randomUUID(),