(val, ax, ay)
| 575 | } |
| 576 | |
| 577 | function place(val, ax, ay) { |
| 578 | const s = document.createElement("div"); |
| 579 | s.className = "distance-hint"; |
| 580 | s.textContent = String(Math.round(val)); |
| 581 | s.style.left = ax * scale + "px"; |
| 582 | s.style.top = ay * scale + "px"; |
| 583 | preview.appendChild(s); |
| 584 | } |
| 585 | |
| 586 | if (bestH) place(bestH.g, bestH.mx, bestH.my); |
| 587 | if (bestV) place(bestV.g, bestV.mx, bestV.my); |
no outgoing calls
no test coverage detected