-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.ts
More file actions
53 lines (47 loc) · 927 Bytes
/
types.ts
File metadata and controls
53 lines (47 loc) · 927 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
export enum ClipType {
GENERATOR = 'GENERATOR',
VIDEO = 'VIDEO',
IMAGE = 'IMAGE'
}
export interface Parameter {
id: string;
name: string;
value: number;
min: number;
max: number;
modulatorId?: string;
}
export interface Clip {
id: string;
name: string;
type: ClipType;
active: boolean;
thumbnail?: string;
params: Parameter[];
sourceUrl?: string; // For video/image
generatorId?: string; // For generative content
}
export interface Layer {
id: string;
name: string;
opacity: number;
clips: Clip[];
activeClipId: string | null;
}
export interface Slice {
id: string;
name: string;
points: { x: number; y: number }[]; // 0-1 normalized coordinates
active: boolean;
}
export interface OutputConfig {
id: string;
name: string;
slices: Slice[];
}
export interface ProjectState {
layers: Layer[];
outputs: OutputConfig[];
bpm: number;
globalOpacity: number;
}