feat(events): configurable visibility

This commit is contained in:
Kiyomichi Kosaka
2025-06-20 07:49:34 +02:00
parent 47d4a66b0f
commit 7bfee30e71
2 changed files with 5 additions and 1 deletions
+2
View File
@@ -605,6 +605,7 @@ function updateCalendar() {
const cellStart = cellCob;
const cellEnd = cellCob + COBIE_UNITS.eonstrip;
window.SPECIAL_EVENTS.forEach(ev => {
if (ev.showMega === false) return;
const startCob = parseCobiets(ev.start || ev.cobie);
if (startCob === null) return;
const endCob = ev.end ? parseCobiets(ev.end) : Number.POSITIVE_INFINITY;
@@ -705,6 +706,7 @@ function showEonstripDetail(index, startCob) {
const start = startCob;
const end = startCob + COBIE_UNITS.eonstrip;
window.SPECIAL_EVENTS.forEach(ev => {
if (ev.showDetail === false) return;
const startCobEv = parseCobiets(ev.start || ev.cobie);
if (startCobEv === null) return;
const endCobEv = ev.end ? parseCobiets(ev.end) : Number.POSITIVE_INFINITY;