Browse Source

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.
pull/4593/head
Jonathan Gross 5 years ago
parent
commit
33c65aaf1b
  1. 2
      ui-ngx/src/app/modules/home/components/widget/lib/canvas-digital-gauge.ts

2
ui-ngx/src/app/modules/home/components/widget/lib/canvas-digital-gauge.ts

@ -772,7 +772,7 @@ function drawDigitalLabel(context: DigitalGaugeCanvasRenderingContext2D, options
context.textAlign = 'center';
context.font = Drawings.font(options, 'Label', fontSizeFactor);
context.lineWidth = 0;
drawText(context, options, 'Label', options.label.toUpperCase(), textX, textY);
drawText(context, options, 'Label', options.label, textX, textY);
}
function drawDigitalMinMax(context: DigitalGaugeCanvasRenderingContext2D, options: CanvasDigitalGaugeOptions) {

Loading…
Cancel
Save