We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
需求:在展示的时候,需要更新某个或者某些节点的内容. 现在有addNode 有没有类似updateNode({nodeId}, text || Html)
操作:
this._dataUpdated()
不管怎样非常感谢作者的付出,加油。编码人
The text was updated successfully, but these errors were encountered:
在vue2和vue3中,node节点的所有属性都是响应式的,直接修改即可。 在react中,也是直接修改节点属性就可以,修改完后可以调用graphInstance.dataUpdated()即可刷新视图。
removeNodeById被多次调用完全没有关系,_dataUpdated方法也是通过requestAnimationFrame来调用的,完全不需要担心效率问题的,可以放心大胆的在循环中调用。
Sorry, something went wrong.
No branches or pull requests
需求:在展示的时候,需要更新某个或者某些节点的内容. 现在有addNode 有没有类似updateNode({nodeId}, text || Html)
操作:
2.removeNodeById 只能删除单个,会多次调用
this._dataUpdated()
,请问有删除多个节点的方法么不管怎样非常感谢作者的付出,加油。编码人
The text was updated successfully, but these errors were encountered: