Skip to content

updateCellId()触发node:added #1774

Answered by qsya
qsya asked this question in Q&A
Discussion options

You must be logged in to vote

我在validateNode时获取到了position等信息,新增节点后调用updateCellId,暂时解决了这个问题
validateNode(droppingNode, options) {
axios.addNode({x,y}).then(res => {
// 更新节点id
graph.updateCellId(graph.getCellById(node.id), res.id)
})
return true
}

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by qsya
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant