@grafana/ui
Version:
Grafana Components Library
12 lines (11 loc) • 617 B
TypeScript
import { FieldConfig, GrafanaTheme, GrafanaTheme2, Threshold, ThresholdsConfig } from '@grafana/data';
import { VizOrientation } from '@grafana/schema';
interface GaugeAutoProps {
titleFontSize: number;
gaugeHeight: number;
showLabel: boolean;
}
export declare const DEFAULT_THRESHOLDS: ThresholdsConfig;
export declare function calculateGaugeAutoProps(width: number, height: number, title: string | undefined, orientation?: VizOrientation): GaugeAutoProps;
export declare function getFormattedThresholds(decimals: number, field: FieldConfig, theme: GrafanaTheme | GrafanaTheme2): Threshold[];
export {};