antvis / antvis/G6

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

Open
#6,296 0 comments 0 reactions 0 assignees View on GitHub
bug 🐛 v5
Dominant language
TypeScript
Stars
12.3k
Forks
1.6k
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the linked CodeSandbox using G6 5.0.12 and reproduce the three timer-driven deletion cases. Compare the collapse animation behavior with G6 v4, while accounting for the separate layout-expansion problem described in issue #6222. Done means deleting leaf and parent nodes triggers the expected collapse animation, removes child nodes correctly, and keeps animation positions correct.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
data-visualization
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.