aboutsummaryrefslogtreecommitdiff
path: root/src/lib.ts
AgeCommit message (Collapse)Author
2022-12-27Avoid dashed event-line at scales at/above event-start precisionTerry Truong
2022-12-26Make minor ticks more evenly spreadTerry Truong
Fix getNumDisplayUnits() not account for lack of 0 CE Add getNumSubUnits() in lib.ts
2022-12-25Add minor ticksTerry Truong
Add lower-bounds parameter to getScaleRatio()
2022-12-18Add unit testingTerry Truong
Install vitest, happy-dom, and @testing-library/vue Add lib.ts and rbtree.ts tests in tests/ Modularise some date-range-managing code from App.vue into lib.ts
2022-10-20Add gcal to client-side HistDatesTerry Truong
Add YearDate and CalDate Restrict non-calendar HistDates to years before 4713 BC
2022-10-20Add basic abbreviation for displayed datesTerry Truong
Remove scroll direction reversal in horizontal mode Fix some linting errors
2022-10-18Serialise event-req handlingTerry Truong
Also skip unnecessary render on startup
2022-10-18Keep track of date ranges where server has no more resultsTerry Truong
- In TimeLine.vue, separate idToEvent and idToPos, to avoid sending event-req while a previous one is still waiting on a server response - In histDate, add cmp() method
2022-10-18Use RBTree to store events, and lookup by date rangeTerry Truong
Currently produces TypeErrors from rbtree.ts's single_rotate() saying 'save is null'. This also happens when using minimally-adapted rbtree.js. Not sure how to resolve this.
2022-10-17Display event data from serverTerry Truong
Add queryServer() Add image display Add conversions from JSON responses to HistDate and HistEvent
2022-10-16Add basic display of placeholder eventsTerry Truong
Make App hold an event map, passing it to TimeLine children, which use it to display events. A TimeLine emits an 'events-req' if more events in their range could be displayed, which may cause App to add placeholder events to the map.
2022-10-15Pass TimeLine offsets to BaseLineTerry Truong
Add TimelineState
2022-10-15Make new timelines copy existing onesTerry Truong
2022-10-15Make stepDate() faster for high step countsTerry Truong
2022-10-15Make BaseLine spans use TimeLine start/end offsetsTerry Truong
Change TimelineRange to hold years not HistDates
2022-10-15Fix more bugs due to not excluding 0 CETerry Truong
2022-10-15On zooming out, align dates with start of units (eg: 1970-1-1 not 1970-2-4)Terry Truong
Make getMovedBounds() non-globals-dependent
2022-10-14Account for there being no year 0 CETerry Truong
2022-10-14Avoid displaying pre-JDN dates with sub-year scaleTerry Truong
2022-10-14Allow non-unit-aligned timelinesTerry Truong
- Remove paddedMinDate/etc - Add getMovedBounds(), Ticks, JDN_EPOCH - In lib.ts, add getScaleRatio(), and fix off-by-year bug in getMonthDiff()
2022-10-12Convert to represent dates instead of numbersTerry Truong
- Add HistDate class - Adapt TimeLine and BaseLine to work with HistDates - For own-size-watching components, add onMounted() hook to run before ResizeObserver is set up
2022-10-11Add global store, do general refactorTerry Truong
Resolve typescript issues Make terminology more consistent
2022-10-10Prevent span-regions in baseline becoming too small to seeTerry Truong
2022-10-10Add timeline bound indicators to baselineTerry Truong