enh(stage5): gamut viewer controls and JSDoc (#185) #202

Closed
gronod wants to merge 2 commits from enh/185-gamut-viewer into enh/176-colprof-fwa
Owner

Closes #185.

This branch stacks on enh/176-colprof-fwa and adds interactive controls and documentation to the 3D CIELAB gamut viewer.

Changes

  • Added public gamut_viewer.js API functions:
    • resetCamera() — returns camera to the default orbit position.
    • setProfileOpacity(opacity), setSrgbReferenceOpacity(opacity), setAxisOpacity(opacity) — live opacity updates for each layer.
  • Added a Reset View button and per-layer opacity range sliders to the gamut viewer control panel.
  • Added R keyboard shortcut to reset the camera while Stage 5 is active.
  • Added JSDoc to all public exported functions.
  • Added supporting CSS for sliders and the reset button.
  • Updated AGENTS.md, README.md, and ROADMAP.md.

Verification

  • CARGO_INCREMENTAL=0 cargo test in src-tauri/: 79 passed.
Closes #185. This branch stacks on `enh/176-colprof-fwa` and adds interactive controls and documentation to the 3D CIELAB gamut viewer. ### Changes - Added public `gamut_viewer.js` API functions: - `resetCamera()` — returns camera to the default orbit position. - `setProfileOpacity(opacity)`, `setSrgbReferenceOpacity(opacity)`, `setAxisOpacity(opacity)` — live opacity updates for each layer. - Added a **Reset View** button and per-layer opacity range sliders to the gamut viewer control panel. - Added `R` keyboard shortcut to reset the camera while Stage 5 is active. - Added JSDoc to all public exported functions. - Added supporting CSS for sliders and the reset button. - Updated `AGENTS.md`, `README.md`, and `ROADMAP.md`. ### Verification - `CARGO_INCREMENTAL=0 cargo test` in `src-tauri/`: 79 passed.
gronod added 1 commit 2026-09-04 00:58:42 +01:00
- Add resetCamera(), setProfileOpacity(), setSrgbReferenceOpacity(), and
  setAxisOpacity() public API functions with JSDoc.
- Add Reset View button and per-layer opacity sliders to the gamut viewer
  control panel.
- Add R keyboard shortcut to reset camera when Stage 5 is active.
- Add CSS for new gamut controls (sliders and reset button).
- Update AGENTS.md, README.md, and ROADMAP.md.

Generated with Devin
gronod added 2 commits 2026-09-06 08:53:38 +01:00
- Make parseGamutFile support multiple BEGIN_DATA blocks, inline #
  comments, out-of-bounds vertex warnings, and user-visible parser
  warnings (returned in { vertices, faces, warnings }).
- Harden profcheck report parsing: prefer the last JSON object with
  avg_de/max_de/rms_de keys, then fall back to a wider set of regex
  patterns for legacy plain-text output.
- Add parser warnings to the process log when metrics cannot be found.
- Fix loadGamutMesh call signature and add try/catch around gamut load.
- Add manual gamut parser tests in src/js/gamut_viewer.test.js.
- Update AGENTS.md, README.md, and ROADMAP.md.

Generated with Devin
Reviewed-on: #203
gronod added 1 commit 2026-09-06 08:55:21 +01:00
gronod closed this pull request 2026-09-06 08:55:27 +01:00

Pull request closed

This pull request cannot be reopened because the branch was deleted.
Sign in to join this conversation.