D3-Force 布局,配置了鼠标单击触发折叠展开,折叠/展开后,节点位置会移动,但连线不会移动。导致图形错乱
- Dominant language
- TypeScript
- Stars
- 12.3k
- Forks
- 1.6k
- PR merge metrics
- No merged PRs in 30d
Description
### Describe the bug / 问题描述
{
key: 'collapse-expand',
type: 'collapse-expand',
trigger: 'click',
// animation: true,
},
### Reproduction link / 复现链接
_No response_
### Steps to Reproduce the Bug or Issue / 重现步骤
_No response_
### Version / 版本
🆕 5.x
### OS / 操作系统
- [ ] macOS
- [x] Windows
- [ ] Linux
- [ ] Others / 其他
### Browser / 浏览器
- [ ] Chrome
- [x] Edge
- [ ] Firefox
- [ ] Safari (Limited support / 有限支持)
- [ ] IE (Nonsupport / 不支持)
- [ ] Others / 其他
Contributor guide
No contributing guide indexed for this repository
Research direction
Start from the D3-Force layout using the shown collapse-expand configuration with a click trigger, and reproduce it in Edge on Windows. Trace how node positions and connecting lines are updated after collapse and expansion; done means the lines move with their nodes and the graph remains consistent.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- d3js, typescript
- Domain
- data-visualization
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100