blob: f97b698cc7db54d9402682c6f505faded9c6b134 (
plain) (
blame)
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
|
import type { ElementRef, ElementType, TrackType } from "@/timeline";
import type { MediaTime } from "@/wasm";
export type GroupTrackSection = "overlay" | "main" | "audio";
export interface GroupMember extends ElementRef {
elementType: ElementType;
duration: MediaTime;
timeOffset: MediaTime;
trackSection: GroupTrackSection;
sectionIndex: number;
displayIndex: number;
}
export interface MoveGroup {
anchor: GroupMember;
members: GroupMember[];
}
export interface PlannedTrackCreation {
id: string;
type: TrackType;
index: number;
}
export interface PlannedElementMove {
sourceTrackId: string;
targetTrackId: string;
elementId: string;
newStartTime: MediaTime;
}
export interface GroupMoveResult {
moves: PlannedElementMove[];
createTracks: PlannedTrackCreation[];
targetSelection: ElementRef[];
}
|