MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / handleScanError

Function handleScanError

web/scripts/ragnar_modern.js:3501–3504  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

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.
3504function _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);

Callers 1

initializeSocketFunction · 0.70

Calls 2

addConsoleMessageFunction · 0.70
resetScanButtonsFunction · 0.70

Tested by

no test coverage detected