()
| 4684 | const mat = document.getElementById('wifi-hm-wall-mat').value; |
| 4685 | _wifiHm.walls.push({ x1: _wifiHm.wallStart.x, y1: _wifiHm.wallStart.y, x2: x, y2: y, |
| 4686 | loss_db: _WIFI_WALL_DB[mat] || 5, material: mat }); |
| 4687 | _wifiHm.wallStart = null; |
| 4688 | _wifiHmPersistWalls(); |
| 4689 | if (st) st.textContent = `${_wifiHm.walls.length} wall(s).`; |
| 4690 | wifiHeatmapRender(); |
| 4691 | } |
| 4692 | } |
| 4693 | |
| 4694 | function wifiHmUndoWall() { |