mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-10-25 02:07:09 -06:00
Object › Align ran object.align without to, so it aligned to the key object while there was one and otherwise to the selection. With Align to Artboard chosen it aligned two objects to the selection's bounds, and it left a single selected object where it was, while the align buttons of the Align panel, the Control bar and the Properties panel move that object to the active artboard. The Align To choice was kept in egui's temporary memory, so it went back to Align to Selection at each launch, and ui.inspect did not report it. The choice is now the UiState field align_to, which the desktop app saves with its preferences and ui.inspect reports. A saved value other than "artboard" reads as Selection, and the other preferences still load. Object › Align now sends the to that the align buttons send: the artboard when one object is selected, else the key object while there is one, else the Align To choice. With anchor points selected it sends its parameters as before, and the points align to their own bounds. While one object is selected, the Align To row shows Artboard. Agents' object.align calls without to keep the engine's default. Docs: docs/control-protocol.md, docs/target-app-parity.md.