mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
fix: Advanced Layout Canvas Editing - Special Editing Method will connect the exit of the current node to the exit of subsequent nodes when adding them (#3891)
This commit is contained in:
parent
655ca53419
commit
cd81992803
|
|
@ -297,11 +297,13 @@ function clickNodes(item: any) {
|
|||
x: anchorData.value?.x + width / 2 + 200,
|
||||
y: anchorData.value?.y - item.height
|
||||
})
|
||||
console.log(nodeModel)
|
||||
props.nodeModel.graphModel.addEdge({
|
||||
type: 'app-edge',
|
||||
sourceNodeId: props.nodeModel.id,
|
||||
sourceAnchorId: anchorData.value?.id,
|
||||
targetNodeId: nodeModel.id
|
||||
targetNodeId: nodeModel.id,
|
||||
targetAnchorId: nodeModel.id + '_left'
|
||||
})
|
||||
|
||||
closeNodeMenu()
|
||||
|
|
|
|||
Loading…
Reference in New Issue