UNPKG

@grafana/ui

Version:

Grafana Components Library

27 lines (26 loc) 750 B
import { PureComponent } from 'react'; import { DisplayValue, Themeable } from '../../types'; import { Threshold } from '@grafana/data'; export interface Props extends Themeable { height: number; maxValue: number; minValue: number; thresholds: Threshold[]; showThresholdMarkers: boolean; showThresholdLabels: boolean; width: number; value: DisplayValue; } export declare class Gauge extends PureComponent<Props> { canvasElement: any; static defaultProps: Partial<Props>; componentDidMount(): void; componentDidUpdate(): void; getFormattedThresholds(): { value: number; color: string; }[]; getFontScale(length: number): number; draw(): void; render(): JSX.Element; }