You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
1000 B

4 years ago
import { TimeSerie, Options } from '@chartwerk/core';
4 years ago
export declare enum Stat {
CURRENT = "current",
MIN = "min",
MAX = "max",
TOTAL = "total"
}
4 years ago
export declare type Stop = {
color: string;
value: number | null;
};
export declare type ValueFormatter = (value: number) => string;
4 years ago
export declare type GaugeTimeSerie = TimeSerie;
4 years ago
export declare type IconConfig = {
src: string;
position: IconPosition;
size: number;
};
export declare enum IconPosition {
LEFT = "left",
MIDDLE = "middle",
RIGHT = "right"
}
4 years ago
export declare type GaugeOptionsParams = {
innerRadius: number;
outerRadius: number;
maxValue: number;
4 years ago
minValue: number;
4 years ago
stops: {
color: string;
value: number;
}[];
defaultColor: string;
4 years ago
stat: Stat;
valueFormatter: ValueFormatter;
4 years ago
icons: IconConfig[];
valueFontSize: number;
4 years ago
valueArcBackgroundColor: string;
4 years ago
};
export declare type GaugeOptions = Options & Partial<GaugeOptionsParams>;