@rekurt/openkline - v0.2.0
    Preparing search index...

    Interface ReplayOptions

    Options for ReplayController.

    interface ReplayOptions {
        barsPerSecond?: number;
        onChange?: (index: number, playing: boolean) => void;
    }
    Index

    Properties

    barsPerSecond?: number

    Playback speed in bars revealed per second. Drives the play() timer interval (1000 / barsPerSecond). Defaults to DEFAULT_BARS_PER_SECOND. Clamped to a sane positive range on construction and in setSpeed.

    onChange?: (index: number, playing: boolean) => void

    Invoked after every index change (start / step / seek / play tick / stop) with the new virtual-end index and whether playback is currently running. On stop() the reported index is the last replayed one and playing is false. Hosts use this to drive a scrubber / play-pause button.