You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Two related changes:
1. Legend tick labels now show raw density at the quantile
position of each color band when equalize is on. Voxel
distribution drives the labels rather than linear-interp of
[min, max]; e.g. for mp-1000020 the bar now reads
`3.29 / 9.14 / 19.59 / 52.23 / 3746.6` instead of
`0 / 936 / 1873 / 2810 / 3746` — accurately reflecting that
50% of voxels lie below ~20 and only the top ~25% spans
the heavy-tail to 3746.
Extracted CDF/quantile logic to `utils/density-quantile.ts`:
`computeSortedSamples` runs once per volume in
`DensityViewer`, shared by `HeatmapRenderer` (CDF LUT for the
shader) and `HeatmapLegend` (`densityAtQuantile` for ticks)
so colors and labels stay in sync.
2. `q` toggles between `rot=orbit` and `rot=free`. `shift+r`
still cycles through all three; `q` is the fast-switch for
the two modes most users will actually pick between.
0 commit comments