Ajustements des tooltips TMR
This commit is contained in:
parent
2b08678518
commit
1c55491ac7
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user