Skip to content

charton API


charton API / @chart-on/core / index / sessionLaneIntervals

Function: sessionLaneIntervals() ​

sessionLaneIntervals(lane, from, to): [number, number][]

Defined in: packages/core/src/session-bands.ts:153

The times a lane is open within [from, to) (unix seconds), as sorted [start, end) pairs clipped to that span. Throws for an invalid lane.

Parameters ​

lane ​

SessionLane

from ​

number

to ​

number

Returns ​

[number, number][]