Refactoring
This commit is contained in:
parent
e79d1735bc
commit
757e4d2a43
@ -664,7 +664,6 @@ function barDimensions(context: DigitalGaugeCanvasRenderingContext2D,
|
||||
return bd;
|
||||
}
|
||||
|
||||
|
||||
function determineTimeseriesLabelY(options: CanvasDigitalGaugeOptions, labelY: number, fontSizeFactor: number){
|
||||
if (options.showUnitTitle) {
|
||||
return labelY + options.fontLabelSize * fontSizeFactor * 1.2;
|
||||
@ -672,6 +671,7 @@ function determineTimeseriesLabelY(options: CanvasDigitalGaugeOptions, labelY: n
|
||||
return labelY;
|
||||
}
|
||||
}
|
||||
|
||||
function determineFontHeight(options: CanvasDigitalGaugeOptions, target: string, baseSize: number): FontHeightInfo {
|
||||
const fontStyleStr = 'font-style:' + options['font' + target + 'Style'] + ';font-weight:' +
|
||||
options['font' + target + 'Weight'] + ';font-size:' +
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user