-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
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
dagre布局使用changeData添加数据后,节点位置发生对调 #1314
Comments
解决了吗 |
还没解决 |
G6 的 dagre 依赖了外部库 https://github.com/dagrejs/dagre 该算法会遍历数据生成树,可能是增加了节点之后生成树的遍历顺序有变化,导致了最终结果的差异。 |
请问有替代方案吗🥺 |
新版本 G6 中的 dagre 布局已支持数据增量时尽可能保持原始顺序 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
问题描述:dagre布局,使用changeData添加数据,两次渲染数据前面的节点/边顺序没有改变。第二次的数据是在第一次的基础上追加的(只添加了一个节点和一条边),但是重新渲染后,节点“图表1”和“图表2”的位置发生了对调。
The text was updated successfully, but these errors were encountered: