Interface

TimelineTrackDropContext

Context passed to custom clip track-drop guards.

Usage notes

The context contains the clip being moved, the source row captured at drag start, and the candidate target row currently under the pointer. Use it to express app policy such as visual-only tracks, audio-only tracks, locked groups, or modifier-key cross-kind moves.

Signature

Type Definition
Interface TimelineTrackDropContext

Type parameters

NameConstraintDefaultDescription
TrackKindNonestringApp-defined track kind values carried by source and target tracks.

Properties

NameSignatureDescription
clipclip: ClipClip being moved.
sourceTracksourceTrack: Track<TrackKind>Track that contained the clip at drag start.
sourceTrackIndexsourceTrackIndex: numberSource track index at drag start.
targetTracktargetTrack: Track<TrackKind>Candidate destination track.
targetTrackIndextargetTrackIndex: numberCandidate destination track index.