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 |
|
jlightner
|
6c8c31e13b
|
feat: Extended generate_dxf() with units/scale_factor/layer_map params…
- "engine/output/dxf.py"
- "engine/api/routes.py"
- "engine/tests/test_output.py"
GSD-Task: S01/T01
|
2026-03-26 06:17:06 +00:00 |
|
jlightner
|
32eb02ccb6
|
fix: Implemented 5 preset configs (sign, patch, stencil, detailed, cust…
- "engine/presets/sign.json"
- "engine/presets/patch.json"
- "engine/presets/stencil.json"
- "engine/presets/detailed.json"
- "engine/presets/custom.json"
- "engine/presets/loader.py"
- "engine/api/routes.py"
- "engine/tests/test_presets.py"
GSD-Task: S03/T01
|
2026-03-26 04:45:52 +00:00 |
|
jlightner
|
0c197f5497
|
test: Wire post-processing into /engine/trace, add output_format routin…
- "engine/api/routes.py"
- "engine/tests/test_api.py"
GSD-Task: S02/T03
|
2026-03-26 04:39:52 +00:00 |
|
jlightner
|
6d51628ce8
|
fix: Implemented RDP path simplification, island/hole detection via win…
- engine/pipeline/postprocess.py
- engine/tests/test_postprocess.py
GSD-Task: S02/T01
|
2026-03-26 04:32:31 +00:00 |
|
jlightner
|
a91c99dd6c
|
test: Wired POST /engine/trace endpoint with preprocess + vectorize pip…
- "engine/api/routes.py"
- "engine/tests/test_api.py"
- "engine/main.py"
GSD-Task: S01/T05
|
2026-03-26 04:22:39 +00:00 |
|
jlightner
|
b33e883a6b
|
test: Implemented vtracer_trace() function that converts grayscale or c…
- engine/pipeline/vectorize.py
- engine/tests/test_vectorize.py
GSD-Task: S01/T04
|
2026-03-26 04:18:31 +00:00 |
|
jlightner
|
136a9417f9
|
test: Implemented potrace_trace() function that converts preprocessed b…
- engine/pipeline/vectorize.py
- engine/tests/test_vectorize.py
GSD-Task: S01/T03
|
2026-03-26 04:15:01 +00:00 |
|
jlightner
|
816ba43cd6
|
test: Implemented full OpenCV preprocessing pipeline (grayscale, bilate…
- engine/pipeline/preprocessing.py
- engine/tests/test_preprocessing.py
GSD-Task: S01/T02
|
2026-03-26 04:11:01 +00:00 |
|
jlightner
|
7411bf3ed4
|
chore: Created engine/ Python project with FastAPI skeleton, all depend…
- "engine/pyproject.toml"
- "engine/main.py"
- "engine/.gitignore"
- "README.md"
GSD-Task: S01/T01
|
2026-03-26 04:07:16 +00:00 |
|