mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-19 02:48:12 +08:00
Add alignment of selected layers (#296)
* Add alignment of selected layers * Refactor alignment to a document message * Condense align messages into a tuple variant * Rename dimension to axis and fix redundant math * Add correct Center alignment * Add TODO comment for nested transforms * Add TODO for merging bounding boxes * Move align enums to document_message_handler * Run cargo clippy * Clean up unwraps with filter_map
This commit is contained in:
committed by
Keavon Chambers
parent
52fe66b6d8
commit
1055a0a05f
@@ -416,7 +416,7 @@ impl Document {
|
||||
|
||||
let path = path.as_slice()[..path.len() - 1].to_vec();
|
||||
|
||||
Some(vec![DocumentResponse::DocumentChanged, DocumentResponse::FolderChanged { path: path.clone() }])
|
||||
Some(vec![DocumentResponse::DocumentChanged, DocumentResponse::FolderChanged { path }])
|
||||
}
|
||||
Operation::FillLayer { path, color } => {
|
||||
let layer = self.layer_mut(path).unwrap();
|
||||
|
||||
Reference in New Issue
Block a user