mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2025-07-24 08:05:04 +00:00
Improve history states (#932)
* Add some more history states * Fix undo whilst drawing * Paste image history * Toggle output and preview history * Code review nits * Remove extra '{' * Fix typo * Fix about.toml Co-authored-by: Keavon Chambers <keavon@keavon.com>
This commit is contained in:
parent
6e142627a3
commit
2bcc3d3baf
16 changed files with 282 additions and 190 deletions
|
@ -644,6 +644,9 @@ impl JsEditorHandle {
|
|||
/// Notifies the backend that the selected nodes have been moved
|
||||
#[wasm_bindgen(js_name = moveSelectedNodes)]
|
||||
pub fn move_selected_nodes(&self, displacement_x: i32, displacement_y: i32) {
|
||||
let message = DocumentMessage::StartTransaction;
|
||||
self.dispatch(message);
|
||||
|
||||
let message = NodeGraphMessage::MoveSelectedNodes { displacement_x, displacement_y };
|
||||
self.dispatch(message);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue