* Activate selection mode
()
| 23 | * Activate selection mode |
| 24 | */ |
| 25 | activate() { |
| 26 | if (this.isActive) return; |
| 27 | |
| 28 | this.isActive = true; |
| 29 | this.createOverlay(); |
| 30 | this.createTooltip(); |
| 31 | |
| 32 | document.addEventListener('mouseover', this.boundMouseOver, true); |
| 33 | document.addEventListener('click', this.boundClick, true); |
| 34 | document.addEventListener('keydown', this.boundKeyDown, true); |
| 35 | |
| 36 | document.body.style.cursor = 'crosshair'; |
| 37 | |
| 38 | console.log('[Pilot Picker] Selection mode activated'); |
| 39 | } |
| 40 | |
| 41 | /** |
| 42 | * Deactivate selection mode |
no test coverage detected