Skip to content

@grabm/abm/playback/headless / Function: createPlaybackTimelineScale() ​

ts
import { createPlaybackTimelineScale } from '@grabm/abm/playback/headless'

Usage guide · Package exports

ts
function createPlaybackTimelineScale(
   startMinute, 
   endMinute, 
   activityIntervals?
): PlaybackTimelineScale;

Reusable, renderer-independent axis for timelines, peaks, progress and seeking. Omit activityIntervals for a full timeline; [] is a known empty active timeline. Never changes the playback clock. All returned positions are cumulative minutes.

Parameters ​

startMinute ​

number

endMinute ​

number

activityIntervals? ​

readonly PlaybackActivityInterval[]

Returns ​

PlaybackTimelineScale

Documentation for the grABM library.