Skip to content

TimelineItems beta ​

Interface of @v12-engine/client/kit

ts
export interface TimelineItems

What a timeline's drag reads of what it shows, and where it says what is to be done

Members ​

active ​

ts
active?(): boolean;

Whether there is anything to drag at all

edit ​

ts
edit(edit: TimelineEdit): void;

Does what the timeline asks

fps ​

ts
fps?(): number;

Frames a second, for what lands between seconds

inBox ​

ts
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 ​

ts
laneIndex(lane: string): number;

Where a lane is among the lanes, for the rows a drag goes down

locked ​

ts
locked?(lane: string): boolean;

Whether what is on a lane stays where it is

markerAt ​

ts
markerAt(index: number): number;

Where a marker is

markerTimes ​

ts
markerTimes(): readonly number[];

The times the playhead lands on (sorted): the markers'

pps ​

ts
pps(): number;

Pixels a second

rows ​

ts
rows(): readonly TimelineRowLayout[];

The lanes' rows as laid out now, top to bottom

selection ​

ts
selection(): TimelineSelection;

The items selected now

span ​

ts
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 ​

ts
targets(except?: TimelineSelection): readonly number[];

The times something dragged lands on (sorted), but what except names