diff options
| author | Terry Truong <terry06890@gmail.com> | 2023-01-07 12:39:36 +1100 |
|---|---|---|
| committer | Terry Truong <terry06890@gmail.com> | 2023-01-07 12:39:36 +1100 |
| commit | d0091d71cee4fa3b24dd7fea6830fcd96498435a (patch) | |
| tree | c82cd7e660a1c00df4fd6e45e0b3eaa8cbefd7ec /src/components/TimeLine.vue | |
| parent | cd890bc47df00f16c54755549314cd7e15ec3219 (diff) | |
Show events in unit after MAX_DATE tick
Without this, for a MAX_DATE of, say 2000/1/1, at scale 1e9, events
after 1 AD won't be shown.
Diffstat (limited to 'src/components/TimeLine.vue')
| -rw-r--r-- | src/components/TimeLine.vue | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/TimeLine.vue b/src/components/TimeLine.vue index 3172e80..13fe662 100644 --- a/src/components/TimeLine.vue +++ b/src/components/TimeLine.vue @@ -442,7 +442,7 @@ const idToEvent = computed(() => { // Maps visible event IDs to HistEvents while (itr.data() != null){ let event = itr.data()!; itr.next(); - if (!event.start.isEarlier(lastDate.value)){ + if (dateToUnit(event.start, scale.value) > dateToUnit(lastDate.value, scale.value)){ break; } if ((store.ctgs as {[ctg: string]: boolean})[event.ctg] == false){ |
