Graphite icon indicating copy to clipboard operation
Graphite copied to clipboard

Alignment button options (align to artboard)

Open Keavon opened this issue 1 year ago • 3 comments

This popover menu is currently "coming soon".

image

We'd like to have a checkbox (off by default) called "To Artboard" which makes the alignment of all selected layers work in relation to the artboard rather than their collective bounding box.

There has also been a request for letting the user choose a specific layer's bounding box to align all other layers to (meaning that chosen layer doesn't move, but the others do).

Potentially one more feature that would be handy is a way to choose between "deep" and "shallow" treatment of nested layers, where only the selected folders get aligned vs. each of their contents get aligned.

Keavon avatar Apr 01 '24 02:04 Keavon

I can take this on. The checkbox UI element won't require any frontend coding, right?

nico-mayora avatar Apr 03 '24 03:04 nico-mayora

No javascript required, the widgets are defined in select_tool.rs:174 @nico-mayora. An example of a checkbox in a popover widget is the snapping options defined in document_message_handler.rs:1147.

0HyperCube avatar Apr 03 '24 11:04 0HyperCube

I think my PR is ready for review if anyone would give it a look :^) https://github.com/GraphiteEditor/Graphite/pull/1724

nico-mayora avatar Apr 05 '24 21:04 nico-mayora