Timeline
A TimeAnimation that manages and controls one or more individual animations. Using a timeline, you can control the playback of multiple animations at once and keep them in sync.
Properties
Whether the animation should always play from the beginning. When false, the animation will resume from its current position when restarted. Defaults to false.
Current playhead position, from 0.0 (start) to 1.0 (end). The custom getter always recomputes from the live phase/meld state (or the stored date when idle) via getSeekBarPosition rather than returning the assigned backing-field value directly — use goTo or setProgress to actually move playback.
Functions
Restricts the animation to a specific date range relative to the overall start and end date. This is useful if you want to limit the animation to a subset of the overall time range without changing the overall start and end date values.
Advances the playhead past the start time by the given number of milliseconds.
Begins playing the animation.
Toggles playback: if not already playing, seeks to positionInput (or the position matching storedDate when null) and transitions to AnimationState.playing, starting the frame- driven play job and bumping reqGeneration so per-layer requested-interval bookkeeping from before this play session is treated as stale; if already playing, stops instead. When startImmediately is false and delay is greater than 0, playback first waits out the configured start delay before advancing.
Begins playing the animation from the specified date where date is within the time range between the timeline's startDate and endDate values.
Updates the timeline end date by applying the specified time offset to the relative date. If no relative date is provided, then the current time and date will be used.
Updates the timeline end date by calculating the date using a relative time string, such as "-2 hours" or "1 day".
Updates the timeline start date by applying the specified time offset to the relative date. If no relative date is provided, then the current time and date will be used.
Updates the timeline start date by calculating the date using a relative time string, such as "-2 hours" or "1 day".
Renamed from trigger in js since type-erasure caused signature clash