Reformat code

This commit is contained in:
Simon Rozman 2025-03-04 09:21:51 +01:00
parent 9c2151f182
commit 2b54735175

View File

@ -886,10 +886,11 @@ class BesService {
* @param {Number} scale Sign scale
* @param {Number} dpr Device pixel ratio
*/
setCtxFont(scale, dpr)
{
setCtxFont(scale, dpr) {
const styles = window.getComputedStyle(this.canvasPanel)
this.ctx.font = `${styles.fontStyle} ${styles.fontWeight} ${14 * scale * dpr}px ${styles.fontFamily}`
this.ctx.font = `${styles.fontStyle} ${styles.fontWeight} ${
14 * scale * dpr
}px ${styles.fontFamily}`
}
/**
@ -2473,11 +2474,13 @@ class BesTAService extends BesPlainTextService {
parseFloat(styles.paddingRight) -
parseFloat(styles.borderRightWidth)
}px`
textElement.style.height = `${rect.height -
textElement.style.height = `${
rect.height -
parseFloat(styles.borderTopWidth) -
parseFloat(styles.paddingTop) -
parseFloat(styles.paddingBottom) -
parseFloat(styles.borderBottomWidth)}px`
parseFloat(styles.borderBottomWidth)
}px`
}
/**