Interface

UseTimelineTrackCommandsResult

Stable track commands; every operation validates current engine state.

Signature

Type Definition
Interface UseTimelineTrackCommandsResult

Properties

NameSignatureDescription
addTrack(track: Track): TimelineCommandResultAdds a track with owned, validated clip data.
moveTrack(trackId: string, toIndex: number): TimelineCommandResultMoves a track to its final zero-based row index.
removeTrack(trackId: string): TimelineCommandResultRemoves a track.
renameTrack(trackId: string, name: string | undefined): TimelineCommandResultRenames a track, or clears its app-defined name.
selectTrack(trackId: string | null): TimelineCommandResultSelects a track or clears track selection.
setCollapsed(trackId: string, collapsed: boolean): TimelineCommandResultSets row collapse while preserving expanded height and media visibility.
setLocked(trackId: string, locked: boolean): TimelineCommandResultSets the edit lock explicitly.
setMuted(trackId: string, muted: boolean): TimelineCommandResultSets track mute explicitly.
setTrackGroup(trackId: string, groupId: string | undefined): TimelineCommandResultSets or clears a track's group.
setTrackHeight(trackId: string, height: number): TimelineCommandResultSets expanded row height.
setTrackTarget(trackId: string, targeted: boolean): TimelineCommandResultSets edit targeting explicitly.
setVisible(trackId: string, visible: boolean): TimelineCommandResultSets track output visibility explicitly.
toggleCollapse(trackId: string): TimelineCommandResultToggles row collapse using the current track state.
toggleLock(trackId: string): TimelineCommandResultToggles the edit lock.
toggleMute(trackId: string): TimelineCommandResultToggles track mute.
toggleTrackTarget(trackId: string): TimelineCommandResultToggles edit targeting.
toggleVisibility(trackId: string): TimelineCommandResultToggles track output visibility.