summaryrefslogtreecommitdiff
path: root/apps/web/src/stores
diff options
context:
space:
mode:
authorMaze Winther <mazewinther@gmail.com>2025-07-15 14:16:54 +0200
committerMaze Winther <mazewinther@gmail.com>2025-07-15 14:16:54 +0200
commit1fdf2a051529e40cf7a0857d31a83057b878f08d (patch)
treea81961f9efba930bb4d813d4abdc8fd98bf379d5 /apps/web/src/stores
parent5e86ed9efca3e783d6503f153545f3600cad331a (diff)
downloadopencut-1fdf2a051529e40cf7a0857d31a83057b878f08d.tar.gz
cleanup
Diffstat (limited to 'apps/web/src/stores')
-rw-r--r--apps/web/src/stores/timeline-store.ts39
1 files changed, 0 insertions, 39 deletions
diff --git a/apps/web/src/stores/timeline-store.ts b/apps/web/src/stores/timeline-store.ts
index 2734903a..f6b9bfd8 100644
--- a/apps/web/src/stores/timeline-store.ts
+++ b/apps/web/src/stores/timeline-store.ts
@@ -44,19 +44,9 @@ interface TimelineStore {
// Snapping settings
snappingEnabled: boolean;
- gridSnappingEnabled: boolean;
- elementSnappingEnabled: boolean;
- playheadSnappingEnabled: boolean;
- snapThreshold: number;
- gridInterval: number;
// Snapping actions
toggleSnapping: () => void;
- toggleGridSnapping: () => void;
- toggleElementSnapping: () => void;
- togglePlayheadSnapping: () => void;
- setSnapThreshold: (threshold: number) => void;
- setGridInterval: (interval: number) => void;
// Multi-selection
selectedElements: { trackId: string; elementId: string }[];
@@ -221,11 +211,6 @@ export const useTimelineStore = create<TimelineStore>((set, get) => {
// Snapping settings defaults
snappingEnabled: true,
- gridSnappingEnabled: true,
- elementSnappingEnabled: true,
- playheadSnappingEnabled: true,
- snapThreshold: 10, // pixels
- gridInterval: 1, // seconds
getSortedTracks: () => {
const { _tracks } = get();
@@ -978,29 +963,5 @@ export const useTimelineStore = create<TimelineStore>((set, get) => {
toggleSnapping: () => {
set((state) => ({ snappingEnabled: !state.snappingEnabled }));
},
-
- toggleGridSnapping: () => {
- set((state) => ({ gridSnappingEnabled: !state.gridSnappingEnabled }));
- },
-
- toggleElementSnapping: () => {
- set((state) => ({
- elementSnappingEnabled: !state.elementSnappingEnabled,
- }));
- },
-
- togglePlayheadSnapping: () => {
- set((state) => ({
- playheadSnappingEnabled: !state.playheadSnappingEnabled,
- }));
- },
-
- setSnapThreshold: (threshold) => {
- set({ snapThreshold: Math.max(0, threshold) }); // Ensure non-negative threshold
- },
-
- setGridInterval: (interval) => {
- set({ gridInterval: Math.max(0.1, interval) }); // Ensure minimum interval
- },
};
});