Skip to content

@eightkk/vue-weave / core / packCalendarEventLanes

Function: packCalendarEventLanes() ​

packCalendarEventLanes(events, days): CalendarEventLaneLayout

Defined in: src/core/eventCalendar.ts:490

Lanes for events over a row of days, such as a week of the month view or the all-day row of the week view. days are ascending, non-overlapping ranges (usually EventCalendarDays). Each event that overlaps a day (a zero-duration event when its time is inside it) covers the days from its first to its last one and takes the lowest lane that is free over all of them. Order: first day, more days first, start, then ID, so the result does not depend on input order.

Parameters ​

events ​

readonly object[]

days ​

readonly TimeRange[]

Returns ​

CalendarEventLaneLayout

Released under the MIT License.