From 0c8b0a7513ccf457556db1486beb092265c594a3 Mon Sep 17 00:00:00 2001 From: Terry Truong Date: Sat, 15 Oct 2022 14:15:46 +1100 Subject: Make BaseLine spans use TimeLine start/end offsets Change TimelineRange to hold years not HistDates --- src/lib.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lib.ts') diff --git a/src/lib.ts b/src/lib.ts index bd454bc..c4703f2 100644 --- a/src/lib.ts +++ b/src/lib.ts @@ -261,8 +261,8 @@ export function getScaleRatio(scale: number, scale2: number){ // For sending timeline-bound data to BaseLine export type TimelineRange = { id: number, - start: HistDate, - end: HistDate, + startYear: number, + endYear: number, }; export type HistEvent = { -- cgit v1.2.3