Ver código fonte

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

tags/0.6.3
zxhlyh 1 ano atrás
pai
commit
d965b91b08
Nenhuma conta vinculada ao e-mail do autor do commit

+ 1
- 1
web/app/components/workflow/index.tsx Ver arquivo

@@ -138,7 +138,7 @@ const Workflow: FC<WorkflowProps> = memo(({
})

useKeyPress(['delete'], handleEdgeDelete)
useKeyPress(['delete'], handleNodeDeleteSelected)
useKeyPress(['delete', 'backspace'], handleNodeDeleteSelected)
useKeyPress(['ctrl.c', 'meta.c'], handleNodeCopySelected)
useKeyPress(['ctrl.x', 'meta.x'], handleNodeCut)
useKeyPress(['ctrl.v', 'meta.v'], handleNodePaste)

+ 2
- 2
web/app/components/workflow/utils.ts Ver arquivo

@@ -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 })

Carregando…
Cancelar
Salvar