@grafana/ui 12.4.0-21600445920 → 12.4.0-21601025588
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 {};
|
|
@@ -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-
|
|
5
|
+
"version": "12.4.0-21601025588",
|
|
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-
|
|
68
|
-
"@grafana/e2e-selectors": "12.4.0-
|
|
67
|
+
"@grafana/data": "12.4.0-21601025588",
|
|
68
|
+
"@grafana/e2e-selectors": "12.4.0-21601025588",
|
|
69
69
|
"@grafana/faro-web-sdk": "^1.13.2",
|
|
70
|
-
"@grafana/i18n": "12.4.0-
|
|
71
|
-
"@grafana/schema": "12.4.0-
|
|
70
|
+
"@grafana/i18n": "12.4.0-21601025588",
|
|
71
|
+
"@grafana/schema": "12.4.0-21601025588",
|
|
72
72
|
"@hello-pangea/dnd": "18.0.1",
|
|
73
73
|
"@monaco-editor/react": "4.7.0",
|
|
74
74
|
"@popperjs/core": "2.11.8",
|