diff options
| author | Terry Truong <terry06890@gmail.com> | 2022-10-20 15:31:05 +1100 |
|---|---|---|
| committer | Terry Truong <terry06890@gmail.com> | 2022-10-20 15:31:05 +1100 |
| commit | 83366605d1bd43c245c4c110fadfd1a6fd05d3c2 (patch) | |
| tree | a7d0352d2a4d4e14b8113dcfdf28d06a06af20d4 /src/store.ts | |
| parent | f09bfa345519f7d070ae9c7474ef8b4f91b22bae (diff) | |
Add gcal to client-side HistDates
Add YearDate and CalDate
Restrict non-calendar HistDates to years before 4713 BC
Diffstat (limited to 'src/store.ts')
| -rw-r--r-- | src/store.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/store.ts b/src/store.ts index 7cf815f..66d73ac 100644 --- a/src/store.ts +++ b/src/store.ts @@ -3,7 +3,7 @@ */ import {defineStore} from 'pinia'; -import {HistDate} from './lib'; +import {CalDate} from './lib'; export const useStore = defineStore('store', { state: () => { @@ -37,8 +37,8 @@ export const useStore = defineStore('store', { zoomRatio: 1.5, // Ratio of timeline expansion upon zooming out dragInertia: 0.1, // Multiplied by final-drag-speed (pixels-per-sec) to get extra scroll distance // - initialStartDate: new HistDate(1900, 1, 1), - initialEndDate: new HistDate(2000, 1, 1), + initialStartDate: new CalDate(1900, 1, 1), + initialEndDate: new CalDate(2000, 1, 1), color, transitionDuration: 300, }; |
