Constructors

Methods

  • Start (or re-speed) playback. Calling it on the last bar plays nothing and reports replay:end instead of arming a timer that could never advance.

    Parameters

    • options: { speed?: number } = {}

    Returns void

  • Jump the playhead to a bar. Out-of-range values clamp to the session.

    A seek lands on a complete bar even under intra-bar replay: scrubbing to a half-formed candle is not a position anyone asks for, and it would make the same slider position mean different things on the way past.

    Parameters

    • index: number

    Returns void

  • Move n steps forward. Stops dead at the end of the session.

    A step is one displayed bar normally, and one sub-bar under intra-bar replay, so the transport button means "advance the chart by the smallest amount it can show" in both modes.

    Parameters

    • n: number = 1

    Returns void

  • Move n steps back. Stops dead at the first bar.

    Parameters

    • n: number = 1

    Returns void

  • Leave replay: every driven series gets its pre-replay data back and the viewport is restored to the pixel, so a user who exits does not lose their place. Safe to call twice; a later seek/step/play re-enters replay from startIndex.

    Returns void