Repository navigation
Align and Distribute layers - #191
Merged
Merged
Conversation
Left, center or right edges, top, middle or bottom edges, and even centers or spacing across three or more layers, as in Photoshop. Layers line up to the selection when there is one, to the canvas when one layer is selected, and otherwise to each other; a selected folder moves as one. Moves are whole pixels, masks go with their layers, and each command is one undo step. Layers are placed by their transform boxes, as snapping places them.
6 tasks done
…r vertical, that a move in progress leaves available Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Owner
|
Merged, thank you @rezaularif! The alignment logic is solid: aligning to the selection, the canvas or each other, folders moving as one, and one undo step each. I changed the interface before merging, to keep the Move bar uncluttered. Instead of ten icon buttons, there's now a single Align button that opens a small panel of the same icons, horizontal on the top row and vertical on the bottom (align three ways, then distribute two). It also stays available while a move is still pending, since aligning commits it first. The Layer menu's Align and Distribute submenus are as you had them. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds Align and Distribute for layers, from the Move tool's bar and the Layer menu, as in Photoshop.
What's added
How to use
Tests
LayerAlignTests. The full suite passes, and the project format is unchanged.