antvis/G6

Do you want to work on this issue?

You can request for a bounty in order to promote it!

[V5] Mindmap layout, deleting nodes does not trigger collapse animation / animation error #6296

h3110w0r1d-y posted onGitHub

Describe the bug / 问题描述

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

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

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 https://github.com/antvis/G6/issues/6222 每次调用layout都会重新展开,影响复现


Fund this Issue

$0.00
Funded
Only logged in users can fund an issue

Pull requests