Skip to content
pixi-silk
GitHub repository
Interface

TimelineState

import type { TimelineState } from 'pixi-silk/ui/timeline';

The reactive state of a MiniTimeline.

Properties#

PropertyTypeDescriptionDefined in
playingSignal<boolean>Writing it starts or stops playback.ui/timeline.ts:66
rangeSignal<readonly [number, number] | null>Loop range in frames, or null to play the whole track.ui/timeline.ts:70
selectionSignal<readonly string[]>Ids of the selected keys.ui/timeline.ts:68
timeSignal<number>Playhead time in frames, 0 to duration. Writing it moves the playhead.ui/timeline.ts:64
viewSignal<readonly [number, number]>Visible window [start, end] in frames. Zoom and pan write it. The drawn view glides after it.ui/timeline.ts:72