import CellRenderer from './CellRenderer'; import { type ModelIndex, type VisibleIndex, type VisibleToModelMap } from './GridMetrics'; import { type GridRenderState } from './GridRendererTypes'; import type GridModel from './GridModel'; interface DataBarRenderMetrics { /** The total width the entire bar from the min to max value can take up (rightmostPosition - leftmostPosition) */ maxWidth: number; /** The x coordinate of the bar (the left) */ x: number; /** The y coordinate of the bar (the top) */ y: number; /** The position of the zero line */ zeroPosition: number; /** The position of the leftmost point */ leftmostPosition: number; /** The position of the rightmost point */ rightmostPosition: number; /** The range of values (e.g. max of 100 and min of -50 means range of 150) */ totalValueRange: number; /** The width of the databar */ dataBarWidth: number; /** The x coordinates of the markers (the left) */ markerXs: number[]; } declare class DataBarCellRenderer extends CellRenderer { static getGradient: ((width: number, colors: string[]) => CanvasGradient) & import("@types/memoizee").Memoized<(width: number, colors: string[]) => CanvasGradient>; drawCellContent(context: CanvasRenderingContext2D, state: GridRenderState, column: VisibleIndex, row: VisibleIndex): void; getDataBarRenderMetrics(context: CanvasRenderingContext2D, state: GridRenderState, column: VisibleIndex, row: VisibleIndex): DataBarRenderMetrics; getCachedWidth: ((context: CanvasRenderingContext2D, text: string) => number) & import("@types/memoizee").Memoized<(context: CanvasRenderingContext2D, text: string) => number>; /** * Returns the width of the widest value in pixels */ getCachedWidestValueForColumn: ((context: CanvasRenderingContext2D, visibleRows: readonly VisibleIndex[], modelRows: VisibleToModelMap, model: GridModel, column: ModelIndex) => number) & import("@types/memoizee").Memoized<(context: CanvasRenderingContext2D, visibleRows: readonly VisibleIndex[], modelRows: VisibleToModelMap, model: GridModel, column: ModelIndex) => number>; } export default DataBarCellRenderer; //# sourceMappingURL=DataBarCellRenderer.d.ts.map