Interface

TimelineSelectionState

Selected clip and track state derived from the current timeline snapshot.

Signature

Type Definition
Interface TimelineSelectionState

Type parameters

NameConstraintDefaultDescription
TrackKindNonestringApp-defined track kind.

Properties

NameSignatureDescription
hasSelectionhasSelection: booleanWhether any clip or track is selected.
selectedClipselectedClip: Clip | nullCurrently selected clip, or null when no clip is selected.
selectedClipIdselectedClipId: string | nullID of the currently selected clip, or null when no clip is selected.
selectedClipIdsselectedClipIds: string[]IDs of all selected clips in track order.
selectedClipsselectedClips: Clip[]All selected clips in track order.
selectedClipTrackIdselectedClipTrackId: string | nullID of the track containing the selected clip, or null when no clip is selected.
selectedGroupselectedGroup: TimelineClipGroup | nullSelected group when the primary selected clip belongs to one.
selectedGroupIdselectedGroupId: string | nullSelected group id when the primary selected clip belongs to one.
selectedTrackselectedTrack: Track<TrackKind> | nullCurrently selected track, or null when no track row is selected.
selectedTrackIdselectedTrackId: string | nullID of the currently selected track, or null when no track row is selected.