kerf-engine/app/src/views
jlightner 31f78727e0 feat: Added B&W/grayscale/color conversion modes, invert toggle, 10+ mode-aware sliders, mask regions, turnpolicy, and white preview background
Engine:
- preprocess() accepts conversion_mode (bw/grayscale/color), invert, mask_regions
- B&W: full pipeline → binary; Grayscale: skip threshold → 8-bit; Color: skip grayscale → BGR
- routes.py forces VTracer for non-binary modes, sets colormode appropriately
- potrace_trace() accepts turnpolicy param mapped to potrace constants
- 27 new tests in test_modes.py (modes, invert, masks, params, vectorization)

App:
- Mode selector tabs (B&W | Grayscale | Color) in ImportConvert
- Invert toggle (B&W only)
- ParameterSliders rewritten: grouped sections, 10+ mode-aware controls
- Debounce reduced from 300ms to 100ms
- Preview background changed to white
- Preset JSONs updated with turnpolicy, color_precision, layer_difference defaults

Tests: 126 app + 234 engine = 360 total, all pass. Zero TypeScript errors.
2026-03-26 08:41:30 +00:00
..
DesignCanvas.module.css feat: Built KonvaStage with artboard rendering, shape tools, selection… 2026-03-26 05:36:19 +00:00
DesignCanvas.tsx feat: Lifted useCanvasState() from DesignCanvas to App.tsx, threaded al… 2026-03-26 06:19:30 +00:00
ExportView.module.css feat: Built complete ExportView with DXF/SVG/PNG format selector, valid… 2026-03-26 06:29:21 +00:00
ExportView.tsx feat: Built complete ExportView with DXF/SVG/PNG format selector, valid… 2026-03-26 06:29:21 +00:00
ImportConvert.module.css feat: Added B&W/grayscale/color conversion modes, invert toggle, 10+ mode-aware sliders, mask regions, turnpolicy, and white preview background 2026-03-26 08:41:30 +00:00
ImportConvert.tsx feat: Added B&W/grayscale/color conversion modes, invert toggle, 10+ mode-aware sliders, mask regions, turnpolicy, and white preview background 2026-03-26 08:41:30 +00:00