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:
shaohuzhang1 2025-08-20 10:57:19 +08:00 committed by GitHub
parent 655ca53419
commit cd81992803
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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