blob: 28994f18bcaef926cac181bdded466a4fbfbf802 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
/*
* Project-wide globals
*/
export const MIN_DATE = -1000;
export const MAX_DATE = 1000;
export const SCALES = [200, 50, 10, 1, 0.2]; // Timeline gets divided into units of SCALES[0], then SCALES[1], etc
export const WRITING_MODE_HORZ =
window.getComputedStyle(document.body)['writing-mode' as any].startsWith('horizontal');
// Used with ResizeObserver callbacks, to determine which resized dimensions are width and height
export type TimelineRange = {
id: number,
start: number,
end: number,
};
|