11.2.10 - Les expériences d'Akarlikarlikar #691
@@ -58,7 +58,7 @@ export class PixiTMR {
 | 
				
			|||||||
    this.sizes = new TMRConstants({ size: displaySize })
 | 
					    this.sizes = new TMRConstants({ size: displaySize })
 | 
				
			||||||
    const appSize = PixiTMR.computeTMRSize(this.sizes)
 | 
					    const appSize = PixiTMR.computeTMRSize(this.sizes)
 | 
				
			||||||
    this.pixiApp.renderer.resize(appSize.width, appSize.height)
 | 
					    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() {
 | 
					  get view() {
 | 
				
			||||||
@@ -199,7 +199,7 @@ export class PixiTMR {
 | 
				
			|||||||
  setTooltipPosition(event) {
 | 
					  setTooltipPosition(event) {
 | 
				
			||||||
    const oddq = this.sizes.computeEventOddq(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);
 | 
					    this.tooltip.y = oddq.y + (oddq.row > 10 ? -this.sizes.size : 0);
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user