Ajustements des tooltips TMR

This commit is contained in:
Vincent Vandemeulebrouck 2023-12-09 23:20:09 +01:00
parent 2b08678518
commit 1c55491ac7
1 changed files with 2 additions and 2 deletions

View File

@ -58,7 +58,7 @@ export class PixiTMR {
this.sizes = new TMRConstants({ size: displaySize })
const appSize = PixiTMR.computeTMRSize(this.sizes)
this.pixiApp.renderer.resize(appSize.width, appSize.height)
this.tooltipStyle.fontSize = Math.max(this.sizes.size / 4, 16)
this.tooltipStyle.fontSize = Math.max(this.sizes.size / 3, 16)
}
get view() {
@ -199,7 +199,7 @@ export class PixiTMR {
setTooltipPosition(event) {
const oddq = this.sizes.computeEventOddq(event);
this.tooltip.x = oddq.x + (oddq.col > 7 ? -3 * this.sizes.full : this.sizes.quarter);
this.tooltip.x = oddq.x + (oddq.col > 7 ? -2.5 * this.sizes.full : this.sizes.quarter);
this.tooltip.y = oddq.y + (oddq.row > 10 ? -this.sizes.size : 0);
}