@mcut/timeline
getTransitionPair
Generated TypeScript API reference for the public mcut SDK.
mcut SDK / timeline/src / getTransitionPair
Function: getTransitionPair()
function getTransitionPair(track, left): TransitionPair | null;Defined in: packages/timeline/src/transitions.ts:81
The verified transition pair anchored on left, or null when the clip has
no transition or no longer has an exactly-adjacent right neighbor.
Parameters
track
elements
TimelineElement[] = ...
Sorted by startMs; never overlapping in time.
hidden
boolean = ...
Visuals from this track are not rendered.
id
`t-${string}` = trackIdSchema
locked
boolean = ...
UI hint: track rejects edits. The engine does not enforce this.
magnetic
boolean = ...
When enabled, edits compact this track so clips keep no gaps between them.
muted
boolean = ...
Audio from this track is silenced.
name
string = ...
left
Returns
TransitionPair | null