mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-26 10:44:25 +00:00
Align: Align to Key Object names the Artboard tool when that blocks it
- With the Artboard tool chosen, align.toKeyObject fails with "Align to Key Object isn't available with the Artboard tool" instead of "no key object": the selected objects can still have a key in that state. The message has a row in every catalog that has "no key object". - Align to Key Object is off in Object › Align and the Align panel when the topmost selected object is inside another selected object, the case where choosing it already failed. - The align.toSelection params text says the selected objects keep their key with the Artboard tool chosen; ui_catalog.rs regenerated. - A test pins Align to Key Object with a key anchor: checked, the menu name kept, and the key anchor kept.
This commit is contained in:
+6
-4
@@ -6994,10 +6994,12 @@ panel then shows (`align.toSelection` returns `"artboard"` while one object is s
|
||||
`align.toSelection` and `align.toArtboard` store the choice (`ui.inspect` › `ui.align_to`) and let the key go; with the
|
||||
Artboard tool chosen they store it and the selected objects keep their key. With no key, `align.toKeyObject` makes the
|
||||
topmost of two or more selected objects the key object, or a ruler guide selected with one object the key guide, and
|
||||
keeps the stored choice. It fails with "no key object" when there is nothing to make the key, when the topmost selected
|
||||
object is inside another selected object and can't be the key, and with the Artboard tool chosen. Object › Align lists
|
||||
the three after its align items, with the choice the panel shows checked, and Edit › Keyboard Shortcuts lists them
|
||||
under Align with no default shortcut.
|
||||
keeps the stored choice. It fails with "no key object" when there is nothing to make the key, which includes a topmost
|
||||
selected object inside another selected object, and with "Align to Key Object isn't available with the Artboard tool"
|
||||
while the Artboard tool is chosen; its menu item and the panel's button are off in both cases. Object › Align lists the
|
||||
three after its align items, with the choice the panel shows checked, and Edit › Keyboard Shortcuts lists them under
|
||||
Align with no default shortcut. While the key is a key anchor, the panel names its choice Align to Key Anchor and the
|
||||
menu item keeps the name Align to Key Object.
|
||||
|
||||
With the Artboard tool chosen, the same buttons and UI commands, and the Control bar's Align and Distribute buttons,
|
||||
run `artboard.align`, `artboard.distribute` and `artboard.distributeSpacing` on the artboards the tool has selected.
|
||||
|
||||
Reference in New Issue
Block a user