aboutsummaryrefslogtreecommitdiff
path: root/src/components
AgeCommit message (Collapse)Author
2022-12-26Represent ticks using Tick arrayTerry Truong
2022-12-26Remove redundant firstMajorIdx varTerry Truong
2022-12-25Add minor ticksTerry Truong
Add lower-bounds parameter to getScaleRatio()
2022-12-18Make BaseLine spans more visibleTerry Truong
Increase min-length to 3px, add margin around BaseLine Fix non-visibility on startup
2022-12-18Only show close button for multiple timelinesTerry Truong
Change close icon from '-' to 'x'
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-20Move various constants to global storeTerry Truong
2022-10-20Make event layouting incorporate date-alignment and popularityTerry Truong
2022-10-19Move event labels to below imagesTerry Truong
Add client-side REQ_EXCLS_LIMIT Rename posX and posY vars in idToPos computed
2022-10-19For vertical side-mainline display, place mainline on rightTerry Truong
2022-10-19Place event labels above imageTerry Truong
2022-10-19Move mainline to side when display area is too smallTerry Truong
2022-10-19Add gradient to event linesTerry Truong
2022-10-19Prevent jumps in event line angle transitionsTerry Truong
Instead of directly using new angles, update old ones Also prevent event lines from 'detaching' from the mainline during transitions Also make events displayed in circles
2022-10-19Make layout method space-fillingTerry Truong
Also avoid redundant start/end date change events
2022-10-18Add basic grid-like event layoutTerry Truong
Add lines linking events to timeline Add scrim on event image
2022-10-18Serialise event-req handlingTerry Truong
Also skip unnecessary render on startup
2022-10-18Reduce event data after reaching a memory limitTerry Truong
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 shallowRef for event treeTerry Truong
- Fixes 'saved is null' errors - De-lint rbtree.ts - Add rbtree_shallow_copy(), for triggering changes upon modifying the eventTree (using triggerRef doesn't work)
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-15Prevent dragging cancellation when moving across elementsTerry Truong
2022-10-15Make BaseLine spans use TimeLine start/end offsetsTerry Truong
Change TimelineRange to hold years not HistDates
2022-10-15Prevent zooming in beyond min/max datesTerry Truong
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-14Allow small drags beyond min/max datesTerry 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-11Fix regression where baseline timespans move on startupTerry Truong
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-10In Timeline.vue, make 'ticks' computedTerry Truong
2022-10-10Fix non-pointer-centered scrolling in horizontal modeTerry Truong
2022-10-10Skip initial timeline+baseline transitionsTerry Truong
2022-10-10Add timeline bound indicators to baselineTerry Truong
2022-10-10Add BaseLine.vueTerry Truong
2022-10-10Lengthen mainline to avoid gaps during resize transitionsTerry Truong
2022-10-10Refactor transition-skip code to use ResizeObserverTerry Truong
2022-10-10Animate timeline mainline along with ticks/labelsTerry Truong
2022-10-10Make TimeLine track own sizingTerry Truong
2022-10-10Add timeline add/remove functionalityTerry Truong