(data)
| 3422 | // Selected device: RSSI level line + emphasised marker on its channel. |
| 3423 | if (sel && sel.rssi != null && sel.freq_mhz) { |
| 3424 | const yR = g.yFor(sel.rssi); |
| 3425 | const col = _wifiSignalColor(sel.rssi); |
| 3426 | ctx.strokeStyle = col; ctx.lineWidth = 1.5; ctx.setLineDash([6, 4]); |
| 3427 | ctx.beginPath(); ctx.moveTo(r24.x0, yR); ctx.lineTo(r24.x1, yR); ctx.stroke(); ctx.setLineDash([]); |
| 3428 | const x = zbX(sel.freq_mhz); |
| 3429 | ctx.strokeStyle = col; ctx.lineWidth = 2.5; |
| 3430 | ctx.beginPath(); ctx.moveTo(x, yR); ctx.lineTo(x, baseY); ctx.stroke(); |
| 3431 | ctx.fillStyle = col; ctx.beginPath(); ctx.arc(x, yR, 4, 0, 2 * Math.PI); ctx.fill(); |
| 3432 | ctx.strokeStyle = '#fff'; ctx.lineWidth = 1; ctx.stroke(); |
| 3433 | const nm = sel.vendor || sel.addr || sel.short_addr; |
no test coverage detected