import { type ModelIndex } from './GridMetrics'; import type GridModel from './GridModel'; import { type GridColor, type GridTheme as GridThemeType } from './GridTheme'; export type Marker = { value: number; color: string; }; export type AxisOption = 'proportional' | 'middle' | 'directional'; export type ValuePlacementOption = 'beside' | 'overlap' | 'hide'; export type DirectionOption = 'LTR' | 'RTL'; /** Map from ModelIndex to the axis option of the column */ export type ColumnAxisMap = Map; /** Map from ModelIndex to a color or an array of colors * If given an array, then the bar will be a gradient * The colors should be given left to right (e.g. it should be like ['yellow', 'green'] for positive color and ['red', 'yellow'] for negative color) */ export type ColorMap = Map; /** Map from ModelIndex to the value placement option of the column */ export type ValuePlacementMap = Map; /** Map from ModelIndex to the opacity of the column */ export type OpacityMap = Map; /** Map from ModelIndex to the direction of the column */ export type DirectionMap = Map; /** Map from ModelIndex to the text alignment of the column */ export type TextAlignmentMap = Map; /** Map from column to the columns its markers are from */ export type MarkerMap = Map; /** Map from column to whether the bar has a gradient */ export type GradientMap = Map; export type MinMap = Map; export type MaxMap = Map; export interface DataBarOptions { columnMin: number; columnMax: number; axis: AxisOption; /** The color of the databar. An array of colors produces a gradient. */ color: GridColor | GridColor[]; /** The text color of the cell. */ textColor: GridColor; valuePlacement: ValuePlacementOption; opacity: number; markers: Marker[]; direction: DirectionOption; value: number; } export declare function isDataBarGridModel(model: GridModel): model is DataBarGridModel; export interface DataBarGridModel extends GridModel { dataBarOptionsForCell: (column: ModelIndex, row: ModelIndex, theme: GridThemeType) => DataBarOptions; } //# sourceMappingURL=DataBarGridModel.d.ts.map