(e)
| 305 | } |
| 306 | |
| 307 | export function clickHandler(e) { |
| 308 | const {left, top} = e.currentTarget.getBoundingClientRect(); |
| 309 | const clickX = e.clientX - left; |
| 310 | const clickY = e.clientY - top; |
| 311 | |
| 312 | if ((shanghai_projected[0] - clickX) ** 2 + (shanghai_projected[1] - clickY) ** 2 < (10 * proportion) ** 2) { |
| 313 | force = true; |
| 314 | } |
| 315 | clearTimeout(forceTimeoutId); |
| 316 | forceTimeoutId = setTimeout(() => { |
| 317 | force = false |
| 318 | }, 2000); |
| 319 | } |
nothing calls this directly
no outgoing calls
no test coverage detected