From ad450156a712fcf1d05c0dd7d71ef793e3e73d56 Mon Sep 17 00:00:00 2001 From: Terry Truong Date: Sun, 25 Dec 2022 13:48:32 +1100 Subject: Add minor ticks Add lower-bounds parameter to getScaleRatio() --- src/store.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/store.ts') diff --git a/src/store.ts b/src/store.ts index 66d73ac..5f30bc6 100644 --- a/src/store.ts +++ b/src/store.ts @@ -23,9 +23,9 @@ export const useStore = defineStore('store', { tickLen: 16, largeTickLen: 32, endTickSz: 8, // Size for start/end ticks + tickLabelHeight: 10, minTickSep: 30, // Smallest px separation between ticks minLastTicks: 3, // When at smallest scale, don't zoom further into less than this many ticks - tickLabelHeight: 10, defaultEndTickOffset: 0.5, // Default fraction of a unit to offset start/end ticks // mainlineBreadth: 80, // Breadth of mainline area (including ticks and labels) -- cgit v1.2.3