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

Function handleScanCompleted

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

Source from the content-addressed store, hash-verified

3489 _wifiHm._rafPending = true;
3490 requestAnimationFrame(() => { _wifiHm._rafPending = false; wifiHeatmapRender(); });
3491}
3492
3493function _wifiHmDesignClick(x, y) {
3494 const st = document.getElementById('wifi-hm-design-status');
3495 if (_wifiHm.tool === 'ap') {
3496 // The floor is a square of floorM × floorM metres (matches the rulers).
3497 const m = _wifiHmFloorM();
3498 _wifiHm.predictAps.push({ x, y, tx_dbm: 20, freq: 5200, ple: 3.0, width_m: m, height_m: m });
3499 _wifiHmPersistAp();
3500 const n = _wifiHm.predictAps.length;
3501 if (st) st.textContent = `${n} node${n > 1 ? 's' : ''} placed — click to add more, or tick “Predict coverage”.`;
3502 wifiHeatmapRender();

Callers 1

initializeSocketFunction · 0.70

Calls 3

addConsoleMessageFunction · 0.70
resetScanButtonsFunction · 0.70
loadNetworkDataFunction · 0.70

Tested by

no test coverage detected