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:
parent
e13133fd2b
commit
56121203bf
@ -78,11 +78,12 @@
|
||||
"left": "core:go-to-nearest-node-on-left",
|
||||
"up": "core:go-to-nearest-node-above",
|
||||
"down": "core:go-to-nearest-node-below",
|
||||
"alt-a l": "core:align-nodes-to-left",
|
||||
"alt-a r": "core:align-nodes-to-right",
|
||||
"alt-a t": "core:align-nodes-to-top",
|
||||
"alt-a b": "core:align-nodes-to-bottom",
|
||||
"alt-a m": "core:align-nodes-to-middle",
|
||||
"alt-a c": "core:align-nodes-to-center"
|
||||
"alt-a g": "core:align-selection-to-grid",
|
||||
"alt-a l": "core:align-selection-to-left",
|
||||
"alt-a r": "core:align-selection-to-right",
|
||||
"alt-a t": "core:align-selection-to-top",
|
||||
"alt-a b": "core:align-selection-to-bottom",
|
||||
"alt-a m": "core:align-selection-to-middle",
|
||||
"alt-a c": "core:align-selection-to-center"
|
||||
}
|
||||
}
|
||||
|
@ -536,8 +536,6 @@ RED.view.tools = (function() {
|
||||
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: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-right", function() { RED.view.scroll(RED.view.gridSize(),0);});
|
||||
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-below", function() { gotoNearestNode('down') })
|
||||
|
||||
RED.actions.add("core:align-nodes-to-left", function() { alignSelectionToEdge('left') })
|
||||
RED.actions.add("core:align-nodes-to-right", function() { alignSelectionToEdge('right') })
|
||||
RED.actions.add("core:align-nodes-to-top", function() { alignSelectionToEdge('top') })
|
||||
RED.actions.add("core:align-nodes-to-bottom", function() { alignSelectionToEdge('bottom') })
|
||||
RED.actions.add("core:align-nodes-to-middle", function() { alignSelectionToEdge('middle') })
|
||||
RED.actions.add("core:align-nodes-to-center", function() { alignSelectionToEdge('center') })
|
||||
RED.actions.add("core:align-selection-to-grid", alignToGrid);
|
||||
RED.actions.add("core:align-selection-to-left", function() { alignSelectionToEdge('left') })
|
||||
RED.actions.add("core:align-selection-to-right", function() { alignSelectionToEdge('right') })
|
||||
RED.actions.add("core:align-selection-to-top", function() { alignSelectionToEdge('top') })
|
||||
RED.actions.add("core:align-selection-to-bottom", function() { alignSelectionToEdge('bottom') })
|
||||
RED.actions.add("core:align-selection-to-middle", function() { alignSelectionToEdge('middle') })
|
||||
RED.actions.add("core:align-selection-to-center", function() { alignSelectionToEdge('center') })
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user