diff options
| author | Terry Truong <terry06890@gmail.com> | 2023-01-16 01:24:09 +1100 |
|---|---|---|
| committer | Terry Truong <terry06890@gmail.com> | 2023-01-16 01:24:09 +1100 |
| commit | a968f35c4057493300b2eff17c99a76fb780ba0c (patch) | |
| tree | 7f917fa710894ac89d7e73a15e33cffdb6a87f25 /src/store.ts | |
| parent | 1b14b45ac494c090037eb4c5f92321d1aebc59da (diff) | |
Add settings for hiding event lines and baseline
Diffstat (limited to 'src/store.ts')
| -rw-r--r-- | src/store.ts | 4 |
1 files changed, 4 insertions, 0 deletions
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, |
