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.
This commit is contained in:
parent
c768fcbac1
commit
33c65aaf1b
@ -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…
x
Reference in New Issue
Block a user