From a968f35c4057493300b2eff17c99a76fb780ba0c Mon Sep 17 00:00:00 2001 From: Terry Truong Date: Mon, 16 Jan 2023 01:24:09 +1100 Subject: Add settings for hiding event lines and baseline --- src/store.ts | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/store.ts') diff --git a/src/store.ts b/src/store.ts index d65dbcf..5da6241 100644 --- a/src/store.ts +++ b/src/store.ts @@ -24,6 +24,7 @@ export type StoreState = { eventImgSz: number, // Width/height of event images eventLabelHeight: number, spacing: number, // Spacing between display edge, events, and mainline area + showEventLines: boolean, // User input scrollRatio: number, // Fraction of timeline length to move by upon scroll zoomRatio: number, // Ratio of timeline expansion upon zooming out (eg: 1.5) @@ -32,6 +33,7 @@ export type StoreState = { // Other feature-specific reqImgs: boolean, // Only show events with images showEventCounts: boolean, + showBaseLine: boolean, searchSuggLimit: number, ctgs: { // Specifies event categories, and which ones should be visible event: boolean, @@ -101,6 +103,7 @@ function getDefaultState(): StoreState { eventImgSz: 100, eventLabelHeight: 20, spacing: 10, + showEventLines: true, // User input scrollRatio: 0.2, zoomRatio: 1.5, @@ -109,6 +112,7 @@ function getDefaultState(): StoreState { // Other feature-specific reqImgs: true, showEventCounts: true, + showBaseLine: true, searchSuggLimit: 10, ctgs: { event: true, -- cgit v1.2.3