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

    Interface CandleView

    Zero-copy typed-array view into a contiguous range of candles in the underlying CandleBuffer. Renderers consume this shape directly to avoid per-candle object allocation on the hot rendering path.

    interface CandleView {
        close: Float64Array;
        high: Float64Array;
        length: number;
        low: Float64Array;
        offset: number;
        open: Float64Array;
        repIndex?: Int32Array<ArrayBufferLike>;
        time: Float64Array;
        volume: Float64Array;
    }
    Index

    Properties

    close: Float64Array
    high: Float64Array
    length: number

    Number of valid candles in this view.

    low: Float64Array
    offset: number

    Index of the first candle in the parent buffer.

    open: Float64Array
    repIndex?: Int32Array<ArrayBufferLike>

    Present only on a conflated (downsampled) view: for each aggregated bucket, the buffer index of its first candle. Renderers position a bucket via viewport.indexToX(repIndex[i]) instead of offset + i. Absent on normal views, so the standard render path is unaffected.

    time: Float64Array
    volume: Float64Array