[Bug]: addChildrenData后使用expandElement展开会导致节点位置距离太短,如果展开后再使用translateElementBy可正常显示,但如果再次调用expandElement会导致刚使用translateElementBy位移的节点,返回到原位
- Dominant language
- TypeScript
- Stars
- 12.3k
- Forks
- 1.6k
- PR merge metrics
- No merged PRs in 30d
Description
### Describe the bug / 问题描述
addChildrenData后使用expandElement展开会导致节点位置距离太短,如果展开后再使用translateElementBy可正常显示,但如果再次调用expandElement会导致刚使用translateElementBy位移的节点,返回到原位
### Reproduction link / 复现链接
_No response_
### Steps to Reproduce the Bug or Issue / 重现步骤
_No response_
### Version / 版本
🆕 5.x
### OS / 操作系统
- [ ] macOS
- [x] Windows
- [ ] Linux
- [ ] Others / 其他
### Browser / 浏览器
- [x] Chrome
- [ ] Edge
- [ ] Firefox
- [ ] Safari (Limited support / 有限支持)
- [ ] IE (Nonsupport / 不支持)
- [ ] Others / 其他
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the reported sequence with addChildrenData, expandElement, translateElementBy, and a second expandElement call in Chrome on Windows. Trace how expansion updates node positions and compare the position before and after the second expansion. Done means translated nodes retain their intended positions after repeated expansion, with the behavior verified by a regression test.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- data-visualization
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100