From bab59a326c0036dfa4a92d83629859e897cc2671 Mon Sep 17 00:00:00 2001 From: Rafael Araujo Lehmkuhl Date: Thu, 28 Sep 2023 12:05:37 -0300 Subject: [PATCH] `CompassHUD`: use one digit after the decimal place --- src/components/widgets/CompassHUD.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/widgets/CompassHUD.vue b/src/components/widgets/CompassHUD.vue index be1b6da23..0f46444ca 100644 --- a/src/components/widgets/CompassHUD.vue +++ b/src/components/widgets/CompassHUD.vue @@ -203,7 +203,7 @@ const renderCanvas = (): void => { if (!widget.value.options.useNegativeRange) { finalAngle = finalAngle < 0 ? finalAngle + 360 : finalAngle } - ctx.fillText(`${finalAngle.toFixed(2)}°`, halfCanvasWidth, refFontSize) + ctx.fillText(`${finalAngle.toFixed(1)}°`, halfCanvasWidth, refFontSize) } // Draw reference triangle