Commit 84c9722
Controls: hide
The `Surface` drawer section drives `IsosurfaceRenderer` /
`VolumeRenderer`; in heatmap mode (the default) and signed-diff mode
(`s=d`) the render branch is `HeatmapRenderer`, which ignores
`isoLevel`. The section was permanently visible as dead UI — sliding
Iso or Opacity had no effect on the rendered scene.
- `Controls.tsx`: gate the `Surface` `DrawerSection` on `!useHeatmap
&& !isDiff`. New `isDiff?: boolean` prop, plumbed from `App.tsx` as
`srcRole === 'diff'`.
- `e2e/elvis.spec.ts:waitForLoad`: previously probed `Iso: \d+` text
(which lived inside Surface) as the "data parsed" signal. Switched
to `window.__elvisCameraReady`, the explicit camera-mounted flag
CameraController already sets after a frame post-render. Robust to
further section-visibility changes.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>Surface section in heatmap / diff modes1 parent 6d3d8b8 commit 84c9722
3 files changed
Lines changed: 15 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
80 | 83 | | |
81 | 84 | | |
82 | 85 | | |
| |||
165 | 168 | | |
166 | 169 | | |
167 | 170 | | |
| 171 | + | |
168 | 172 | | |
169 | 173 | | |
170 | 174 | | |
| |||
281 | 285 | | |
282 | 286 | | |
283 | 287 | | |
| 288 | + | |
284 | 289 | | |
285 | 290 | | |
286 | 291 | | |
| |||
347 | 352 | | |
348 | 353 | | |
349 | 354 | | |
| 355 | + | |
350 | 356 | | |
351 | 357 | | |
352 | 358 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
58 | 62 | | |
59 | 63 | | |
60 | 64 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1792 | 1792 | | |
1793 | 1793 | | |
1794 | 1794 | | |
| 1795 | + | |
1795 | 1796 | | |
1796 | 1797 | | |
1797 | 1798 | | |
| |||
0 commit comments