feat(ui): add drawing selector, color scheme, and async loading to BestFitViewer

Add drawing dropdown to switch between drawings without reopening the
form. Change color scheme to light backgrounds with blue/red part fills
and auto-detect text color. Fix swapped bounding box width/length. Run
best-fit computation on a background thread so the UI stays responsive
during long calculations, with cancellation on drawing switch.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-03-19 21:44:21 -04:00
parent 8a0ebf8c18
commit 8dc12972f5
5 changed files with 219 additions and 53 deletions

View File

@@ -30,7 +30,7 @@ namespace OpenNest.Controls
private Plate plate;
private Action currentAction;
private Action previousAction;
private List<LayoutPart> parts;
protected List<LayoutPart> parts;
private List<LayoutPart> stationaryParts = new List<LayoutPart>();
private List<LayoutPart> activeParts = new List<LayoutPart>();
private Point middleMouseDownPoint;