Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. }
  2. if ((this.cod.x <= -0.31 && this.cod.x >= -0.50) && (this.cod.y >= 0.56 && this.cod.y <= 0.92)) {
  3. this.posX = ((-0.00 + 1) * (this.rect.width - this.rect.left) / 2) + this.rect.left;
  4. // this.posY = this.rect.top - (((1.41 - 1) * (this.rect.top - this.rect.bottom)) / 2);
  5. this.posY = ((3 - 1.80) * (-this.rect.bottom + this.rect.top) / 2) + this.rect.top;
  6. this.showTooltip([this.posX, this.posY]);
  7. console.log('Upper Arm')
  8. }
  9.  
  10. }
  11. if ((this.cod.x <= -0.31 && this.cod.x >= -0.50) && (this.cod.y >= 0.56 && this.cod.y <= 0.92)) {
  12. this.posX = ((-0.00 + 1) * (this.rect.width - this.rect.left) / 2) + this.rect.left;
  13. // this.posY = this.rect.top - (((1.41 - 1) * (this.rect.top - this.rect.bottom)) / 2);
  14. this.posY = ((3 - 1.80) * (-this.rect.bottom + this.rect.top) / 2) + this.rect.top;
  15. this.showTooltip([this.posX, this.posY]);
  16. console.log('Upper Arm')
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement