Browse Source

Merge pull request #4593 from woodyjon/fix/unit-title-digital-gauge

fix: do not "uppercase" unit title of digital gauges
pull/4731/head
Igor Kulikov 5 years ago
committed by GitHub
parent
commit
9c175ce4c4
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  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