Chartbreaker
    Preparing search index...

    Type Alias TCalculateParams

    Type to store redraw reasons until the next call of requestAnimationFrame()

    type TCalculateParams = {
        data: boolean;
        indices: { from: number; to: number } | null;
        transform: boolean;
    }
    Index

    Properties

    data: boolean

    new data has been pushed to the chart. It's up to the tool whether it should recalculate its coordinates or not.

    indices: { from: number; to: number } | null

    may be set when data is true lists the candle-indices that have been updated

    transform: boolean

    tools need to recalculate their coordinates, something substantial has changed