(data)
| 3499 | t = Math.max(0, Math.min(1, t)); |
| 3500 | return Math.hypot(px - (x1 + t * dx), py - (y1 + t * dy)); |
| 3501 | } |
| 3502 | |
| 3503 | // Screen-space radius (px) a column is drawn at — kept in sync with _wifiHmDrawDesign. |
| 3504 | function _wifiHmColumnPxRadius(c, vp) { |
| 3505 | const floorM = _wifiHmFloorM(); |
| 3506 | const pxPerM = vp.pw / (vp.span * floorM); |
| 3507 | return Math.max(5, (c.radius_m || 0.3) * pxPerM); |
no test coverage detected