Configuration
Timeline Canvas uses a seconds-based relative time model. The constructor takes
TimelineOptions, not the fullTimelineConfig.TimelineConfigis the fully resolved runtime config after defaults are applied.
What you actually pass to the constructor
In other words:
- Use
TimelineOptionsfor constructor input - Use
TimelineConfigto reason about the normalized runtime state - See Type Definitions for the exact field definitions
Common config groups
Time range and layout
Auto-fit and scale
Interaction behavior
Time indicator and edge scrolling
Text, block styling, and colors
Context menu
Plugins and callbacks
A few notable defaults from the source
Some of the most important runtime defaults are:
autoFitOnInit: trueenableTimeIndicator: trueenableEventResize: trueenableEventSplit: trueenableContextMenu: trueenablePerformanceMonitor: falsereadOnly: falsesnapInterval: 15minEventDuration: 0.25trackHeight: 80timelineHeight: 40
Updating config at runtime
If you change timeline.config directly after construction, follow it with notifyChange():
If a dedicated public method exists, prefer that instead: