| Age | Commit message (Collapse) | Author |
|
|
|
|
|
|
|
For some reason, by updating elements of the idToPos map
individually, instead of assigning over the map itself, events
rendered from the map sometimes don't transition.
Also, skip transitions for events that would move across the
mainline.
|
|
|
|
Without this, for a MAX_DATE of, say 2000/1/1, at scale 1e9, events
after 1 AD won't be shown.
|
|
Without this, text tends to get accidentally selected when dragging
the timeline. Also, the tick labels are short enough that copying
them doesn't seem necessary, and event labels can be obtained via
the info modal.
|
|
Make timeline addition and searching use the current timeline.
Add keyboard controls for timeline panning, zooming, switching, opening, and closing.
Fix zoomTimeline() bug when not centering zoom on pointer.
|
|
|
|
Filter events in display and search suggestions.
Make server queries allow specification of multiple categories.
Make settings modal avoid disabling all categories.
|
|
Add saving, loading, default vals, and device-detection, to store.ts.
Add setting for hiding minor tick labels.
|
|
Use a 'searchTarget' prop of Timeline to trigger jumping to a search result.
Make TimeLine prioritise search result in layout.
When querying for events in App, check for a search target, and use incl= to retrieve it.
On server, for the incl= query param, don't include the event if outside specified range.
|
|
For now, use placeholder code for jumping to a search result.
Add db index for case-insensitive event title searching.
Make type=info requests accept title instead of ID (for looking up a searched-for title).
Make EventInfo contain an Event field (for showing info in search suggestions).
Add titleToEvent map in App, for use by SearchModal to look up searched-for titles.
Add keyboard shortcuts to open/close search and info modals.
|
|
Add InfoModal.vue, SCollapsible.vue, and icons.
Update Timeline.vue, App.vue, lib.ts, and store.ts to display modal.
For testing, send/use dummy EventInfo from server (still waiting on image downloads).
|
|
|
|
The conversion was originally intended to simply the code. But,
as events may span years before and after 4713 BC, the conversion
introduces the possibility of having both YearDates and CalDates
in the same event, which is unhelpful.
|
|
|
|
Store previous queried range to avoid repeated duplicate queries.
In onResize(), account for edge case of 'await' taking a long time.
|
|
For server query parameter range=date1.date2, exclude date2
Fix unnecessary calendar-to-year date conversion when building sql query
For frontend DateRangeTree class, rename has() to contains()
|
|
|
|
For testing while waiting for images to download
|
|
|
|
Remove time-span labels
Fix firstDate/lastDate being passed to TimelineState instead of startDate/endDate
|
|
Previously, skipping was only done upon vertical/horzontal
orientation change. This didn't address cases like maximising the
window without changing orientation, where pre-existing timeline
ticks would animate out-of-sync with new ones.
|
|
|
|
Do minor refactors:
- Swap fmt=1 and fmt=2 in 'events' table
- Make documentation consistently use BC and AD
- import argparse at start of scripts
|
|
|
|
|
|
|
|
Use solid color, and skip transitions on screen size change
|
|
|
|
|
|
|
|
Backend:
Send event-count data to client in EventResponse instance
Fix certain usages of gregorian calendar instead of julian
Move HistDate, SCALES, etc, into cal.py
Frontend:
Make App update a unitCountMaps object using event-count data from server
Make TimeLine show visual indication of unit counts
Add showEventCounts option to store
Update unit tests
|
|
Add 'dist' and 'scores' db tables
Add 'scale' server query parameter (and remove 'excl')
Disregard event-end when querying database
|
|
|
|
|
|
|
|
|
|
|
|
Add firstDate, firstOffset, and lastDate variables
Fix usage of non-float idx val in getMinorTicks()
|
|
Fix getNumDisplayUnits() not account for lack of 0 CE
Add getNumSubUnits() in lib.ts
|
|
|
|
|
|
Add lower-bounds parameter to getScaleRatio()
|
|
Increase min-length to 3px, add margin around BaseLine
Fix non-visibility on startup
|
|
Change close icon from '-' to 'x'
|
|
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
|
|
Add YearDate and CalDate
Restrict non-calendar HistDates to years before 4713 BC
|
|
Remove scroll direction reversal in horizontal mode
Fix some linting errors
|