Type Definitions
First, separate the two most commonly confused types
TimelineOptions
This is the type you pass to new Timeline(canvasId, options). It is the constructor input: partial config, callbacks, and an optional theme plugin.
TimelineConfig
This is the fully normalized runtime config after defaults are applied.
TimelineEvent
The runtime event shape:
InteractionTarget
Unified hit-test result:
LoadDataFormat
Input shape accepted by loadData():
Notes:
- Input events can use
endTimeorduration - The loader normalizes them into runtime
TimelineEventobjects
Other useful types
TimelineState: the runtime state treeTrack: a track withevents: TimelineEvent[]TimelinePlugin: the plugin definitionPluginMetadata: plugin metadataPluginAPI: the plugin context API