feat(network): add align/distribute/group sections to context menu
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -736,6 +736,20 @@ function DiagramEditorInner() {
|
||||
})
|
||||
}
|
||||
onClose={closeContextMenu}
|
||||
onAlignLeft={diagramCommands.alignLeft}
|
||||
onAlignRight={diagramCommands.alignRight}
|
||||
onAlignCenterH={diagramCommands.alignCenterH}
|
||||
onAlignTop={diagramCommands.alignTop}
|
||||
onAlignBottom={diagramCommands.alignBottom}
|
||||
onAlignCenterV={diagramCommands.alignCenterV}
|
||||
onDistributeH={diagramCommands.distributeHorizontally}
|
||||
onDistributeV={diagramCommands.distributeVertically}
|
||||
canAlign={contextMenu.type === 'node' ? diagramCommands.canAlign : false}
|
||||
canDistribute={contextMenu.type === 'node' ? diagramCommands.canDistribute : false}
|
||||
onGroupSelection={() => {}}
|
||||
onUngroupSelection={() => {}}
|
||||
canGroup={false}
|
||||
canUngroup={false}
|
||||
/>
|
||||
)}
|
||||
{pendingDeleteNodeId && (
|
||||
|
||||
Reference in New Issue
Block a user