summaryrefslogtreecommitdiff
path: root/apps/web/src/types
diff options
context:
space:
mode:
authorMaze Winther <mazewinther@gmail.com>2025-08-31 14:10:59 +0200
committerMaze Winther <mazewinther@gmail.com>2025-08-31 14:10:59 +0200
commit29fdd8568dbb9c67ee19492781f3f03eb2c3bd24 (patch)
treed5c627aba9608ac0937646ad05ef10af07bf7fdd /apps/web/src/types
parent3db766646759bf59f11ef3f8640d1aca6d394c15 (diff)
downloadopencut-29fdd8568dbb9c67ee19492781f3f03eb2c3bd24.tar.gz
refactor: improve types, fix background blur, some other stuff
Diffstat (limited to 'apps/web/src/types')
-rw-r--r--apps/web/src/types/project.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/web/src/types/project.ts b/apps/web/src/types/project.ts
index bf510942..66de858a 100644
--- a/apps/web/src/types/project.ts
+++ b/apps/web/src/types/project.ts
@@ -1,5 +1,7 @@
import { CanvasSize } from "./editor";
+export type BlurIntensity = 4 | 8 | 18;
+
export interface TProject {
id: string;
name: string;
@@ -9,7 +11,7 @@ export interface TProject {
mediaItems?: string[];
backgroundColor?: string;
backgroundType?: "color" | "blur";
- blurIntensity?: number; // in pixels (4, 8, 18)
+ blurIntensity?: BlurIntensity;
fps?: number;
bookmarks?: number[];
canvasSize: CanvasSize;