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
Polish iso-level UX: viridis ramp, quantile default, iso sweep
- **Viridis color ramp** (`color-ramp.ts`): replaces the previous ad-hoc
4-stop ramp with a perceptually-uniform 5-stop viridis sequence
(purple → blue → teal → green → yellow). Matches the slice preview
colormap so iso-level sweeps feel coherent with the 2D view.
- **Default iso at 95th percentile** (`App.tsx`): previous default of
`mean + 2σ` sometimes clipped below meaningful density for highly
skewed distributions. Now uses the pre-computed quantile table
directly; still falls back to mean+2σ if quantiles aren't ready yet.
- **Iso sweep animation** (`Shift+I`): 4-second ease-in-out cycle
through the full quantile range. Uses `requestAnimationFrame` + the
`densityQuantiles` lookup so each frame advances to a valid density
value. Re-pressing cancels mid-animation. Feels butter-smooth in GPU
mode; CPU mode keeps up at lower frame rates.
- **Centralized quantile utilities**: `quantileToDensity` moved from
`Controls.tsx` into `color-ramp.ts` (co-located with
`densityToQuantile`) and re-exported from `@elvis/core`.
0 commit comments