Commit 699945d
Canvas minimap: adaptive density (up to 10k buckets) + GPU-rendered heatmap
- Analyzer: DENSITY_BUCKETS now adaptive based on file size (max 10,000)
vs fixed 200 — 50x better resolution at same O(N) cost
- Minimap: replaced DOM density strip with <canvas> + ImageData.putImageData()
— GPU-rendered, O(canvas_height) render regardless of file size
- Compare: removed redundant + button, added Compare button that opens
two files side by side with a three-panel comparison header:
File A minimap | pixel-diff strip (bright = different) | File B minimap
- Diff strip: normalised bucket comparison, error-weighted — bright red
where error density differs, dark where files have similar patterns
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 142d428 commit 699945d
7 files changed
Lines changed: 336 additions & 12 deletions
File tree
- src
- main
- analyzers
- preload
- renderer
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
| 68 | + | |
69 | 69 | | |
70 | | - | |
| 70 | + | |
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4123 | 4123 | | |
4124 | 4124 | | |
4125 | 4125 | | |
| 4126 | + | |
| 4127 | + | |
| 4128 | + | |
| 4129 | + | |
| 4130 | + | |
| 4131 | + | |
| 4132 | + | |
| 4133 | + | |
| 4134 | + | |
| 4135 | + | |
| 4136 | + | |
| 4137 | + | |
| 4138 | + | |
| 4139 | + | |
| 4140 | + | |
| 4141 | + | |
| 4142 | + | |
| 4143 | + | |
| 4144 | + | |
| 4145 | + | |
| 4146 | + | |
4126 | 4147 | | |
4127 | 4148 | | |
4128 | 4149 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
234 | 234 | | |
235 | 235 | | |
236 | 236 | | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
237 | 240 | | |
238 | 241 | | |
239 | 242 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
45 | 47 | | |
46 | 48 | | |
47 | 49 | | |
| |||
0 commit comments