TimelineItems beta
Interface of @v12-engine/client/kit
export interface TimelineItemsWhat a timeline's drag reads of what it shows, and where it says what is to be done
Members
active
active?(): boolean;Whether there is anything to drag at all
edit
edit(edit: TimelineEdit): void;Does what the timeline asks
fps
fps?(): number;Frames a second, for what lands between seconds
inBox
inBox(box: {
from: number;
to: number;
lanes: string[];
markers: boolean;
}): TimelineSelection;What a box selects: between two times, on these lanes, the markers when it went over the ruler
laneIndex
laneIndex(lane: string): number;Where a lane is among the lanes, for the rows a drag goes down
locked
locked?(lane: string): boolean;Whether what is on a lane stays where it is
markerAt
markerAt(index: number): number;Where a marker is
markerTimes
markerTimes(): readonly number[];The times the playhead lands on (sorted): the markers'
pps
pps(): number;Pixels a second
rows
rows(): readonly TimelineRowLayout[];The lanes' rows as laid out now, top to bottom
selection
selection(): TimelineSelection;The items selected now
span
span(ref: TimelineRef, row: TimelineRowLayout): {
at: number;
end: number;
} | undefined;Where an item starts and ends, row the row it was grabbed on (a folded group's stands for several); none where it is gone
targets
targets(except?: TimelineSelection): readonly number[];The times something dragged lands on (sorted), but what except names