Skip to content
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

【V5.0.13~5.0.16】Tree layout, when a node is added or deleted, the whole tree will be re-expanded. I want to revert back to the way it was before version 5.13 #6222

Open
xuwb opened this issue Aug 22, 2024 · 2 comments
Labels

Comments

@xuwb
Copy link
Contributor

xuwb commented Aug 22, 2024

Describe the bug / 问题描述

5.0.13~5.0.16版本树布局。
通过 addChildrenData、removeNodeData 方法,新增或删除某个节点,然后调用 render 方法后整棵树都会重新展开。
希望恢复到 5.0.13 版本前的显示方式:只有新增的节点有动画效果,动画结束后画布区域重新定位。

Reproduction link / 重现链接

No response

Steps to Reproduce the Bug or Issue / 重现步骤

No response

G6 Version / G6 版本

🆕 5.x

Operating System / 操作系统

macOS

Browser / 浏览器

Chrome

Additional context / 补充说明

No response

@xuwb xuwb changed the title 【V5.13~5.16】树布局,新增或删除某个节点时,整棵树都会重新展开。希望恢复到 5.13 版本前的显示方式 【V5.0.13~5.0.16】树布局,新增或删除某个节点时,整棵树都会重新展开。希望恢复到 5.13 版本前的显示方式 Aug 22, 2024
@Aarebecca
Copy link
Contributor

会尽快检查并解决该问题

@github-actions github-actions bot changed the title 【V5.0.13~5.0.16】树布局,新增或删除某个节点时,整棵树都会重新展开。希望恢复到 5.13 版本前的显示方式 【V5.0.13~5.0.16】Tree layout, when a node is added or deleted, the whole tree will be re-expanded. I want to revert back to the way it was before version 5.13 Aug 26, 2024
@xiuyuan-wang
Copy link

我是使用 5.0.10 版本,addChildrenData后 执行render 也会整棵树重新渲染展开。
希望,能够addChildrenData 执行后不要重新渲染,不要回到最初定位,当然draw可以,但是没有动画,也不会自动计算间隔。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants