Type Alias TCalculateParams

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

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

Type declaration

  • 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