@mcut/editor
trackOfSelection
Generated TypeScript API reference for the public mcut SDK.
mcut SDK / editor/src / trackOfSelection
Function: trackOfSelection()
function trackOfSelection(engine):
| {
elements: TimelineElement[];
hidden: boolean;
id: `t-${string}`;
locked: boolean;
magnetic: boolean;
muted: boolean;
name: string;
}
| undefined;Defined in: packages/editor/src/timeline-operators.ts:824
The track containing the current selection's first element, if any.
Parameters
engine
Returns
Type Literal
{
elements: TimelineElement[];
hidden: boolean;
id: `t-${string}`;
locked: boolean;
magnetic: boolean;
muted: boolean;
name: string;
}elements
elements: TimelineElement[];Sorted by startMs; never overlapping in time.
hidden
hidden: boolean;Visuals from this track are not rendered.
id
id: `t-${string}` = trackIdSchema;locked
locked: boolean;UI hint: track rejects edits. The engine does not enforce this.
magnetic
magnetic: boolean;When enabled, edits compact this track so clips keep no gaps between them.
muted
muted: boolean;Audio from this track is silenced.
name
name: string;undefined