summaryrefslogtreecommitdiff
path: root/apps/web/src/types
diff options
context:
space:
mode:
authorryu <ryumacodes@gmail.com>2025-08-13 14:01:07 +0500
committerGitHub <noreply@github.com>2025-08-13 14:01:07 +0500
commit0ae09c9df5591e2d18991a9f98647826997fe740 (patch)
tree69738461bd269ad418bc82c47e64a2670cee7f19 /apps/web/src/types
parente71788014d137a74f10420601451ddfbb84701bb (diff)
parentf7fddff1fc8359fc056a2a90488121980fb8ead2 (diff)
downloadopencut-0ae09c9df5591e2d18991a9f98647826997fe740.tar.gz
Merge branch 'staging' into feat/timeline-return-to-start
Diffstat (limited to 'apps/web/src/types')
-rw-r--r--apps/web/src/types/editor.ts2
-rw-r--r--apps/web/src/types/project.ts10
-rw-r--r--apps/web/src/types/timeline.ts1
3 files changed, 13 insertions, 0 deletions
diff --git a/apps/web/src/types/editor.ts b/apps/web/src/types/editor.ts
index 12b474fd..6cbc6a6a 100644
--- a/apps/web/src/types/editor.ts
+++ b/apps/web/src/types/editor.ts
@@ -1,5 +1,7 @@
export type BackgroundType = "blur" | "mirror" | "color";
+export type CanvasMode = "preset" | "original" | "custom";
+
export interface CanvasSize {
width: number;
height: number;
diff --git a/apps/web/src/types/project.ts b/apps/web/src/types/project.ts
index f52cba73..bf510942 100644
--- a/apps/web/src/types/project.ts
+++ b/apps/web/src/types/project.ts
@@ -1,3 +1,5 @@
+import { CanvasSize } from "./editor";
+
export interface TProject {
id: string;
name: string;
@@ -10,4 +12,12 @@ export interface TProject {
blurIntensity?: number; // in pixels (4, 8, 18)
fps?: number;
bookmarks?: number[];
+ canvasSize: CanvasSize;
+ /**
+ * Tracks how the canvas size was set:
+ * - "preset": User selected a standard preset (e.g. 16:9, 9:16)
+ * - "original": Using the first media item's dimensions
+ * - "custom": User set a custom aspect ratio or dimensions
+ */
+ canvasMode: "preset" | "original" | "custom";
}
diff --git a/apps/web/src/types/timeline.ts b/apps/web/src/types/timeline.ts
index cd17b7dd..cf946453 100644
--- a/apps/web/src/types/timeline.ts
+++ b/apps/web/src/types/timeline.ts
@@ -18,6 +18,7 @@ interface BaseTimelineElement {
export interface MediaElement extends BaseTimelineElement {
type: "media";
mediaId: string;
+ muted?: boolean;
}
// Text element with embedded text data