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] Mindmap layout, deleting nodes does not trigger collapse animation / animation error #6296

Open
h3110w0r1d-y opened this issue Sep 8, 2024 · 0 comments
Labels

Comments

@h3110w0r1d-y
Copy link

h3110w0r1d-y commented Sep 8, 2024

Describe the bug / 问题描述

删除无children的节点:无法触发collapse动画,只有渐隐动画;
删除有children的节点:目标节点无collapse动画,只有渐隐动画,子节点有collapse动画,但动画位置错误过度到了root节点、子节点未删除;
删除有children的节点并手动删除子节点:无法触发collapse动画,只有渐隐过度动画;

预期结果:像v4版本一样,以上操作都可触发collapse动画

Reproduction link / 重现链接

https://codesandbox.io/p/sandbox/strange-turing-l9ftpk

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

重现链接中设置了三个定时器,分别对应问题描述中的三种情况

G6 Version / G6 版本

🆕 5.x

Operating System / 操作系统

macOS, Windows

Browser / 浏览器

Edge

Additional context / 补充说明

重现链接使用版本为5.0.12,5.0.12以上版本存在其他BUG #6222 每次调用layout都会重新展开,影响复现

@github-actions github-actions bot changed the title [V5] Mindmap布局,删除节点无法触发collapse动画 / 动画错误 [V5] Mindmap layout, deleting nodes does not trigger collapse animation / animation error Sep 9, 2024
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

2 participants