mirror of
https://github.com/ajisaacs/OpenNest.git
synced 2026-12-02 12:11:37 -05:00
PlateArrange ports the WinForms Arrange commands, each one undo step under its WinForms label: Align Left/Right/Top/Bottom, Horizontally and Vertically (lined up with the first selected part), Evenly Space Horizontally/Vertically, Center Parts, Join Common Line (facing edges up to four part spacings, at least an inch, apart), Remove Common Line and Cut Common Lines Twice/Once. It also decides which common-line commands the part right-click menu enables. Expand Spacing and Fix Spacing take a runner for the search, so a front end can run it off the UI thread behind a Cancel window; the step opens before the search (it moves the live parts when it finishes), and a canceled run moves nothing and records nothing. They return the parts to redraw and the status line WinForms shows. The WinForms plate view, selection manager and part menu now delegate to it with unchanged behavior; Center Parts keeps its own loop, which moves the view's layout parts. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>