本文へ移動

@eightkk/vue-weave / core / layoutCalendarDayEvents

Function: layoutCalendarDayEvents() ​

layoutCalendarDayEvents(events, range, options?): CalendarEventColumn[]

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

Side-by-side columns for the timed events of one day column (range, usually an EventCalendarDay). Events that overlap the range (a zero-duration event when its time is inside it) are clipped to it and grouped with the events they overlap, directly or through others; each group gets as many columns as it needs, and each event the first column that is free at its start. Order: start, longer first, then ID, so the result does not depend on input order. minDuration extends short events for the overlap test only, so events drawn taller than their duration (with a minimum height) do not cover each other. Returns new objects in placement order.

Parameters ​

events ​

readonly object[]

range ​

TimeRange

options? ​

minDuration? ​

number

Returns ​

CalendarEventColumn[]

MIT ライセンスで公開しています。