@grafana/ui 12.4.0-21600213433 → 12.4.0-21600524030

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { FieldDisplay, Threshold } from '@grafana/data';
1
+ import { FieldDisplay, Threshold, ThresholdsMode } from '@grafana/data';
2
2
  import { GradientStop, RadialGaugeDimensions, RadialShape } from './types';
3
3
  interface ThresholdsBarProps {
4
4
  dimensions: RadialGaugeDimensions;
@@ -10,7 +10,8 @@ interface ThresholdsBarProps {
10
10
  roundedBars?: boolean;
11
11
  glowFilter?: string;
12
12
  thresholds: Threshold[];
13
+ thresholdsMode?: ThresholdsMode;
13
14
  gradient?: GradientStop[];
14
15
  }
15
- export declare function ThresholdsBar({ dimensions, fieldDisplay, startAngle, angleRange, roundedBars, glowFilter, thresholds, shape, gradient, }: ThresholdsBarProps): import("react/jsx-runtime").JSX.Element;
16
+ export declare function ThresholdsBar({ dimensions, fieldDisplay, startAngle, angleRange, roundedBars, glowFilter, thresholds, thresholdsMode, shape, gradient, }: ThresholdsBarProps): import("react/jsx-runtime").JSX.Element;
16
17
  export {};
@@ -0,0 +1,3 @@
1
+ export declare const ARC_START = 250;
2
+ export declare const ARC_END = 110;
3
+ export declare const DEFAULT_DECIMALS = 2;
@@ -1,4 +1,4 @@
1
- import { FieldDisplay } from '@grafana/data';
1
+ import { FieldDisplay, Threshold, ThresholdsMode } from '@grafana/data';
2
2
  import { RadialGaugeDimensions } from './types';
3
3
  export declare function getFieldDisplayProcessor(displayValue: FieldDisplay): import("@grafana/data").DisplayProcessor;
4
4
  export declare function getFieldConfigMinMax(fieldDisplay: FieldDisplay): number[];
@@ -36,3 +36,4 @@ export declare function toCartesian(centerX: number, centerY: number, radius: nu
36
36
  export declare function drawRadialArcPath(startAngle: number, endAngle: number, dimensions: RadialGaugeDimensions): string;
37
37
  export declare function getAngleBetweenSegments(segmentSpacing: number, segmentCount: number, range: number): number;
38
38
  export declare function getOptimalSegmentCount(dimensions: RadialGaugeDimensions, segmentSpacing: number, segmentCount: number, range: number): number;
39
+ export declare function getThresholdPercentageValue(threshold: Threshold, thresholdsMode: ThresholdsMode, fieldDisplay: FieldDisplay): number;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "author": "Grafana Labs",
3
3
  "license": "Apache-2.0",
4
4
  "name": "@grafana/ui",
5
- "version": "12.4.0-21600213433",
5
+ "version": "12.4.0-21600524030",
6
6
  "description": "Grafana Components Library",
7
7
  "keywords": [
8
8
  "grafana",
@@ -64,11 +64,11 @@
64
64
  "@emotion/react": "11.14.0",
65
65
  "@emotion/serialize": "1.3.3",
66
66
  "@floating-ui/react": "0.27.16",
67
- "@grafana/data": "12.4.0-21600213433",
68
- "@grafana/e2e-selectors": "12.4.0-21600213433",
67
+ "@grafana/data": "12.4.0-21600524030",
68
+ "@grafana/e2e-selectors": "12.4.0-21600524030",
69
69
  "@grafana/faro-web-sdk": "^1.13.2",
70
- "@grafana/i18n": "12.4.0-21600213433",
71
- "@grafana/schema": "12.4.0-21600213433",
70
+ "@grafana/i18n": "12.4.0-21600524030",
71
+ "@grafana/schema": "12.4.0-21600524030",
72
72
  "@hello-pangea/dnd": "18.0.1",
73
73
  "@monaco-editor/react": "4.7.0",
74
74
  "@popperjs/core": "2.11.8",