blob: 7bffd84f18ee976b7e0c0d0fa6ea62c0c21db357 (
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
|
import type { MediaTime } from "@/wasm";
export type SnapPointType =
| "element-start"
| "element-end"
| "playhead"
| "bookmark"
| "keyframe";
export interface SnapPoint {
time: MediaTime;
type: SnapPointType;
elementId?: string;
trackId?: string;
}
export interface SnapResult {
snappedTime: MediaTime;
snapPoint: SnapPoint | null;
snapDistance: number;
}
export type TimelineSnapPointSource = () => Iterable<SnapPoint>;
|