From 7d91cd5714845e0a45f3de839a2ef827ce629071 Mon Sep 17 00:00:00 2001 From: Alex P Date: Wed, 15 Nov 2017 22:13:03 -0800 Subject: [PATCH] Remove comments --- ui/src/shared/components/Gauge.js | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/ui/src/shared/components/Gauge.js b/ui/src/shared/components/Gauge.js index 38758dc3a3..267bcb25e6 100644 --- a/ui/src/shared/components/Gauge.js +++ b/ui/src/shared/components/Gauge.js @@ -35,6 +35,7 @@ class Gauge extends Component { colors, gradientThickness ) + // The following functions must be called in the specified order this.drawGaugeLines(ctx, centerX, centerY, radius, gradientThickness) this.drawGaugeLabels(ctx, centerX, centerY, radius, gradientThickness) } @@ -184,27 +185,16 @@ class Gauge extends Component { if (i > 3) { ctx.textAlign = 'left' } - // initial rotate ctx.rotate(startDegree) - // rotate canvas by increment ctx.rotate(i * arcIncrement) - // translate out ctx.translate(labelRadius, 0) - // rotate back ctx.rotate(i * -arcIncrement) - // Level text ctx.rotate(-startDegree) - // text ctx.fillText(gaugeValues[i], 0, 0) - // Unlevel text ctx.rotate(startDegree) - // rotate canvas ctx.rotate(i * arcIncrement) - // translate in ctx.translate(-labelRadius, 0) - // rotate back ctx.rotate(i * -arcIncrement) - // reverse initial rotate ctx.rotate(-startDegree) } }