superfly-timeline
Version:
Resolver for defining objects with temporal boolean logic relationships on a timeline
22 lines • 870 B
TypeScript
import { NextEvent, ResolvedTimelineObjectInstance } from './resolvedTimeline';
import { Content } from './timeline';
import { Time } from './types';
/**
* TimelineState is a cross-section of the timeline at a given point in time,
* i.e. all objects that are active at that moment.
*/
export interface TimelineState<TContent extends Content = Content> {
/** The timestamp for this state */
time: Time;
/** All objects that are active on each respective layer */
layers: StateInTime<TContent>;
/**
* A sorted list of the points in time where the next thing will happen on the timeline.
* .nextEvents[0] is the next event to happen.
*/
nextEvents: NextEvent[];
}
export interface StateInTime<TContent extends Content = Content> {
[layer: string]: ResolvedTimelineObjectInstance<TContent>;
}
//# sourceMappingURL=state.d.ts.map