diff options
| author | Maze Winther <mazewinther@gmail.com> | 2025-08-05 06:28:45 +0200 |
|---|---|---|
| committer | Maze Winther <mazewinther@gmail.com> | 2025-08-05 06:28:45 +0200 |
| commit | 1bed89d55f8301f94b69bc0859e85a28a0fe16af (patch) | |
| tree | 9b616d9b27ec1636034ac81745d8814cd5116a4c /apps/web/src/stores | |
| parent | 8f6c487c26a2bd6b194da26d6e198f8fd5d186af (diff) | |
| download | opencut-1bed89d55f8301f94b69bc0859e85a28a0fe16af.tar.gz | |
fix: typescript error from old usage
Diffstat (limited to 'apps/web/src/stores')
| -rw-r--r-- | apps/web/src/stores/project-store.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/web/src/stores/project-store.ts b/apps/web/src/stores/project-store.ts index db6d014a..259533bf 100644 --- a/apps/web/src/stores/project-store.ts +++ b/apps/web/src/stores/project-store.ts @@ -7,6 +7,8 @@ import { useTimelineStore } from "./timeline-store"; import { generateUUID } from "@/lib/utils"; import { CanvasSize, CanvasMode } from "@/types/editor"; +export const DEFAULT_CANVAS_SIZE: CanvasSize = { width: 1920, height: 1080 }; + const DEFAULT_PROJECT: TProject = { id: generateUUID(), name: "Untitled", @@ -18,7 +20,7 @@ const DEFAULT_PROJECT: TProject = { blurIntensity: 8, bookmarks: [], fps: 30, - canvasSize: { width: 1920, height: 1080 }, + canvasSize: DEFAULT_CANVAS_SIZE, canvasMode: "preset", }; |
