Skip to content

@eightkk/vue-weave / core / intersectsWindow

Function: intersectsWindow() ​

intersectsWindow(bar, window): boolean

Defined in: src/core/timeline.ts:267

Whether an interval overlaps a window. Intervals are half-open, so one that ends at window.start or starts at window.end does not overlap; a zero-duration interval (milestone) overlaps when it lies inside the closed window, so a milestone at either window edge counts.

Parameters ​

bar ​

TimeRange

window ​

TimeRange

Returns ​

boolean

Released under the MIT License.