blob: 87d3db2e5864c377f38465c88e9533280aa71b03 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
import type { SnapPoint, TimelineSnapPointSource } from "./types";
export function buildTimelineSnapPoints({
sources,
}: {
sources: TimelineSnapPointSource[];
}): SnapPoint[] {
const snapPoints: SnapPoint[] = [];
for (const source of sources) {
for (const snapPoint of source()) {
snapPoints.push(snapPoint);
}
}
return snapPoints;
}
|