-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.ts
More file actions
57 lines (52 loc) · 1010 Bytes
/
types.ts
File metadata and controls
57 lines (52 loc) · 1010 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
54
55
56
57
/**
* @license
* Copyright 2025 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
// --- Type Definitions ---
export interface GeneratedVideo {
video?: {
uri?: string;
};
}
export type TrackType = 'video' | 'text';
export interface Track {
id: number;
type: TrackType;
}
export interface TextOverlay {
id: number;
trackId: number;
text: string;
start: number;
end: number;
element: HTMLDivElement;
clipElement: HTMLDivElement;
fontSize: number;
fontFamily: string;
color: string;
position: {
top: string;
left: string;
};
}
export interface SavedClip {
id: number;
url: string;
blob: Blob;
}
export interface TimelineClip extends SavedClip {
trackId: number;
start: number;
end: number;
duration: number;
sourceStart: number;
sourceDuration: number;
thumbnails?: string[];
properties: {
volume: number;
scale: number;
position: { x: number; y: number; };
rotation: number;
}
}