feat(#3): ASCII noise heatmap with color coding #9

Merged
ti-paul merged 1 commit from feature/3-heatmap-ascii into main 2026-06-12 02:42:39 +00:00
Member

Closes #3

New: src/heatmap.js

  • 5-tier dB classification with ANSI colors
  • Spatial grid generation with noise decay
  • ASCII heatmap renderer + legend + stats
  • JSON export

CLI

  • bruit-map heatmap [lat] [lon] [w] [h]

22 tests. 100 total pass.

Closes #3 ## New: src/heatmap.js - 5-tier dB classification with ANSI colors - Spatial grid generation with noise decay - ASCII heatmap renderer + legend + stats - JSON export ## CLI - bruit-map heatmap [lat] [lon] [w] [h] 22 tests. **100 total pass.**
feat(#3): ASCII noise heatmap with color coding
Some checks failed
CI / test (pull_request) Failing after 0s
88ac64c7b4
New module src/heatmap.js:
- classifyLevel: 5-tier dB classification (quiet/moderate/loud/veryLoud/extreme)
- generateGrid: spatial grid with distance-based noise decay
- renderHeatmap: ASCII art with ANSI colors per cell
- renderHeatmapWithLegend: full display with legend and title
- renderGridStats: average/max/min stats from grid
- gridToJSON: JSON-safe export

CLI: bruit-map heatmap [lat] [lon] [width] [height]

22 new tests. All 100 tests pass. Closes #3.
ti-paul left a comment
No description provided.
22 tests, 100 total. Clean heatmap module. LGTM.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
les_clankeurs/bruit-map!9
No description provided.