1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Rename align actions to match existing align-selection-to-grid

This commit is contained in:
Nick O'Leary 2021-08-16 21:34:30 +01:00
parent e13133fd2b
commit 56121203bf
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9
2 changed files with 14 additions and 14 deletions

View File

@ -78,11 +78,12 @@
"left": "core:go-to-nearest-node-on-left", "left": "core:go-to-nearest-node-on-left",
"up": "core:go-to-nearest-node-above", "up": "core:go-to-nearest-node-above",
"down": "core:go-to-nearest-node-below", "down": "core:go-to-nearest-node-below",
"alt-a l": "core:align-nodes-to-left", "alt-a g": "core:align-selection-to-grid",
"alt-a r": "core:align-nodes-to-right", "alt-a l": "core:align-selection-to-left",
"alt-a t": "core:align-nodes-to-top", "alt-a r": "core:align-selection-to-right",
"alt-a b": "core:align-nodes-to-bottom", "alt-a t": "core:align-selection-to-top",
"alt-a m": "core:align-nodes-to-middle", "alt-a b": "core:align-selection-to-bottom",
"alt-a c": "core:align-nodes-to-center" "alt-a m": "core:align-selection-to-middle",
"alt-a c": "core:align-selection-to-center"
} }
} }

View File

@ -536,8 +536,6 @@ RED.view.tools = (function() {
RED.actions.add("core:show-selected-node-labels", function() { setSelectedNodeLabelState(true); }) RED.actions.add("core:show-selected-node-labels", function() { setSelectedNodeLabelState(true); })
RED.actions.add("core:hide-selected-node-labels", function() { setSelectedNodeLabelState(false); }) RED.actions.add("core:hide-selected-node-labels", function() { setSelectedNodeLabelState(false); })
RED.actions.add("core:align-selection-to-grid", alignToGrid);
RED.actions.add("core:scroll-view-up", function() { RED.view.scroll(0,-RED.view.gridSize());}); RED.actions.add("core:scroll-view-up", function() { RED.view.scroll(0,-RED.view.gridSize());});
RED.actions.add("core:scroll-view-right", function() { RED.view.scroll(RED.view.gridSize(),0);}); RED.actions.add("core:scroll-view-right", function() { RED.view.scroll(RED.view.gridSize(),0);});
RED.actions.add("core:scroll-view-down", function() { RED.view.scroll(0,RED.view.gridSize());}); RED.actions.add("core:scroll-view-down", function() { RED.view.scroll(0,RED.view.gridSize());});
@ -574,12 +572,13 @@ RED.view.tools = (function() {
RED.actions.add("core:go-to-nearest-node-above", function() { gotoNearestNode('up') }) RED.actions.add("core:go-to-nearest-node-above", function() { gotoNearestNode('up') })
RED.actions.add("core:go-to-nearest-node-below", function() { gotoNearestNode('down') }) RED.actions.add("core:go-to-nearest-node-below", function() { gotoNearestNode('down') })
RED.actions.add("core:align-nodes-to-left", function() { alignSelectionToEdge('left') }) RED.actions.add("core:align-selection-to-grid", alignToGrid);
RED.actions.add("core:align-nodes-to-right", function() { alignSelectionToEdge('right') }) RED.actions.add("core:align-selection-to-left", function() { alignSelectionToEdge('left') })
RED.actions.add("core:align-nodes-to-top", function() { alignSelectionToEdge('top') }) RED.actions.add("core:align-selection-to-right", function() { alignSelectionToEdge('right') })
RED.actions.add("core:align-nodes-to-bottom", function() { alignSelectionToEdge('bottom') }) RED.actions.add("core:align-selection-to-top", function() { alignSelectionToEdge('top') })
RED.actions.add("core:align-nodes-to-middle", function() { alignSelectionToEdge('middle') }) RED.actions.add("core:align-selection-to-bottom", function() { alignSelectionToEdge('bottom') })
RED.actions.add("core:align-nodes-to-center", function() { alignSelectionToEdge('center') }) RED.actions.add("core:align-selection-to-middle", function() { alignSelectionToEdge('middle') })
RED.actions.add("core:align-selection-to-center", function() { alignSelectionToEdge('center') })