* mouse * Gets the current [x,y] pixel location of the pointer * (or center of map if there is no readily available pointer coordinate) * @return Array [x,y] pixel location of pointer (or center of the map)
()
| 501 | * @return Array [x,y] pixel location of pointer (or center of the map) |
| 502 | */ |
| 503 | mouse() { |
| 504 | const gfx = this.context.systems.gfx; |
| 505 | return gfx.events?.coord?.map || this.centerPoint(); |
| 506 | } |
| 507 | |
| 508 | |
| 509 | /** |
no test coverage detected