From 2d72990c17d51a7d22f42ab3d8536310ffdb04b5 Mon Sep 17 00:00:00 2001 From: Paul Marbach Date: Wed, 17 Dec 2025 09:50:56 -0500 Subject: [PATCH] move min degrees for start dot render to a const --- .../grafana-ui/src/components/RadialGauge/RadialArcPath.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/grafana-ui/src/components/RadialGauge/RadialArcPath.tsx b/packages/grafana-ui/src/components/RadialGauge/RadialArcPath.tsx index 2afd63a0777..29841113167 100644 --- a/packages/grafana-ui/src/components/RadialGauge/RadialArcPath.tsx +++ b/packages/grafana-ui/src/components/RadialGauge/RadialArcPath.tsx @@ -29,6 +29,7 @@ interface RadialArcPathPropsWithGuideDot extends RadialArcPathPropsBase { type RadialArcPathProps = RadialArcPathPropsBase | RadialArcPathPropsWithGuideDot; +const DOT_START_MIN_ANGLE_DEG = 5; const DOT_OPACITY = 0.5; const DOT_RADIUS_FACTOR = 0.4; const MAX_DOT_RADIUS = 8; @@ -103,7 +104,7 @@ export const RadialArcPath = memo( {endpointColors && } - {guideDotColors && arcLengthDeg > 5 && ( + {guideDotColors && arcLengthDeg > DOT_START_MIN_ANGLE_DEG && ( )} {guideDotColors && }