-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
收缩后,怎么更新布局 #3944
Comments
Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. |
如何在收缩节点的时候,缩短之间的距离呢,router用的manhattan算法,渲染用的Hierarchy.mindmap |
大佬们,求指导。。。 |
重新布局一次。 |
具体调什么方法呢,可以详细说一下嘛? |
已解决 |
想请问一下是怎么解决的? function resetLayout() {
graph.fromJSON(
dagreLayout.layout({
nodes: graph.getNodes().map((n) => n.store.data),
edges: graph.getEdges().map((e) => e.store.data),
}),
)
} |
你好,想请问下是如何解决的 |
fromJSON(...) 支持节点/边元数据数组,按照数组顺序渲染节点和边。 这个方法不就可以了 |
|
问题描述
点击收缩按钮后,节点收缩后,但是整体布局没有自适应,怎么解决呢?
重现链接
https://x6.antv.vision/zh/examples/showcase/practices#tree
重现步骤
点击收缩按钮
预期行为
点击收缩按钮后,节点收缩后,整体布局也可以自适应,如下图红框位置变小
平台
屏幕截图或视频(可选)
补充说明(可选)
No response
The text was updated successfully, but these errors were encountered: