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.

51 lines
1.3 KiB

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;
};
3 years ago
export declare type PointCoordinate = {
x: number;
y: number;
};
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
reversed: boolean;
enableThresholdLabels: boolean;
enableExtremumLabels: boolean;
3 years ago
enableThresholdDrag: boolean;
dragCallback: (event: any) => void;
dragEndCallback: (event: any) => void;
4 years ago
};
export declare type GaugeOptions = Options & Partial<GaugeOptionsParams>;