Skip to content

TimelineItem beta ​

Interface of @v12-engine/client/kit

ts
export interface TimelineItem

A key or a clip on a lane, as data

Members ​

at ​

ts
at: number;

The time the item starts at, in seconds

color ​

ts
color?: string;

Its colour, any CSS colour

for ​

ts
for?: number;

Seconds it lasts: a clip. With none it is a key, unless kind says otherwise

kind ​

ts
kind?: 'key' | 'clip';

Whether it is drawn as a key (a point) or a clip (a stretch of for seconds)

label ​

ts
label?: string;

The words drawn on it

tip ​

ts
tip?: string;

What its tooltip says