@adaptabletools/adaptable
Version:
Powerful AG Grid extension which provides advanced, cutting-edge functionality to meet all DataGrid requirements
21 lines (20 loc) • 1.29 kB
TypeScript
import { StyledColumn } from '../../../AdaptableState/StyledColumnState';
import { PercentBarStyle } from '../../../AdaptableState/StyledColumns/PercentBarStyle';
export declare const hasPercentBarRangesConfigured: (pb: PercentBarStyle | undefined) => boolean;
/** Illustrative scale for preview — shows negatives when origin is Auto or Zero. */
export declare const getPercentBarPreviewScale: (pb: PercentBarStyle) => {
min: number;
max: number;
};
export declare const getPercentBarPreviewSampleValues: (pb: PercentBarStyle) => number[];
export type PercentBarPreviewGeometry = {
barLeftPercent: number;
barWidthPercent: number;
percentageValue: number;
barColor?: string;
};
export declare const getPercentBarPreviewGeometry: (numericValue: number, pb: PercentBarStyle, min: number, max: number) => PercentBarPreviewGeometry;
export declare const formatPercentBarPreviewCellText: (numericValue: number, percentageValue: number, pb: PercentBarStyle) => string;
export declare const getPercentBarPreviewTrackColor: (pb: PercentBarStyle) => string | undefined;
export declare const getPercentBarPreviewResolvedBarColor: (color: string | undefined) => string | undefined;
export declare const hasPercentBarStylePreview: (styledColumn: StyledColumn) => boolean;