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
通过graph.formJson(json)更新图时,每次都是全量重绘,会导致画面闪烁。 示例 是否可以支持一个参数graph.fromJson(json, { diff: true })来更新变动的节点/边。
graph.formJson(json)
graph.fromJson(json, { diff: true })
调用fromJson(json)时,如果diff为true,则进行如下操作:
fromJson(json)
diff
true
graph
cells
cell.id
cell
props
The text was updated successfully, but these errors were encountered:
No branches or pull requests
功能描述
通过
graph.formJson(json)
更新图时,每次都是全量重绘,会导致画面闪烁。示例
是否可以支持一个参数
graph.fromJson(json, { diff: true })
来更新变动的节点/边。期望解决方案
调用
fromJson(json)
时,如果diff
为true
,则进行如下操作:graph
中的cells
列表。cell.id
对比出新增和删除的cell
,将需要新增和删除的cell
进行绘制。cell.id
相同的cell
,则通过diff
算法查看cell
属性是否变化,如变化,则直接更新cell
的props
。The text was updated successfully, but these errors were encountered: