Commit 33c65aaf1befa975a957f4f2eeef31b52e4a18c3
1 parent
c768fcba
fix: do not "uppercase" unit title of digital gauges
unit titles are automatically changed to uppercase. That is an issue when the unit is a greek letter. e.g. for the measure of a conductivity, the unit is µS/cm. Capitalizing it makes it MS/CM, which does not have the same meaning. Additionally, I don't understand the benefit of capitalizing this by default.
Showing
1 changed file
with
1 additions
and
1 deletions
@@ -772,7 +772,7 @@ function drawDigitalLabel(context: DigitalGaugeCanvasRenderingContext2D, options | @@ -772,7 +772,7 @@ function drawDigitalLabel(context: DigitalGaugeCanvasRenderingContext2D, options | ||
772 | context.textAlign = 'center'; | 772 | context.textAlign = 'center'; |
773 | context.font = Drawings.font(options, 'Label', fontSizeFactor); | 773 | context.font = Drawings.font(options, 'Label', fontSizeFactor); |
774 | context.lineWidth = 0; | 774 | context.lineWidth = 0; |
775 | - drawText(context, options, 'Label', options.label.toUpperCase(), textX, textY); | 775 | + drawText(context, options, 'Label', options.label, textX, textY); |
776 | } | 776 | } |
777 | 777 | ||
778 | function drawDigitalMinMax(context: DigitalGaugeCanvasRenderingContext2D, options: CanvasDigitalGaugeOptions) { | 778 | function drawDigitalMinMax(context: DigitalGaugeCanvasRenderingContext2D, options: CanvasDigitalGaugeOptions) { |