fix: workflow auto layout nodes offset & delete node shortcuts (#3484)

This commit is contained in:
zxhlyh
2024-04-15 14:05:20 +08:00
committed by GitHub
parent 459bed9243
commit d965b91b08
2 changed files with 3 additions and 3 deletions

View File

@@ -175,8 +175,8 @@ export const getLayoutByDagre = (originNodes: Node[], originEdges: Edge[]) => {
dagreGraph.setGraph({
rankdir: 'LR',
align: 'UL',
nodesep: 64,
ranksep: 40,
nodesep: 40,
ranksep: 60,
})
nodes.forEach((node) => {
dagreGraph.setNode(node.id, { width: node.width, height: node.height })