From 83366605d1bd43c245c4c110fadfd1a6fd05d3c2 Mon Sep 17 00:00:00 2001 From: Terry Truong Date: Thu, 20 Oct 2022 15:31:05 +1100 Subject: Add gcal to client-side HistDates Add YearDate and CalDate Restrict non-calendar HistDates to years before 4713 BC --- src/store.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/store.ts') 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, }; -- cgit v1.2.3