[Bug]: edge数据太多时,graph.changeData会导致ui卡顿
- Dominant language
- TypeScript
- Stars
- 12.3k
- Forks
- 1.6k
- PR merge metrics
- No merged PRs in 30d
Description
### Describe the bug / 问题描述
我的项目有聚焦某个节点以及连线筛选的功能,聚焦或筛选时由于渲染的元素较少,没有卡顿,但是取消聚焦筛选或重置整个图的时候会出现卡顿,相关聚焦、重置等按钮或选择框组件会卡一秒左右才响应,有什么优化办法?
### Reproduction link / 复现链接
_No response_
### Steps to Reproduce the Bug or Issue / 重现步骤
_No response_
### Version / 版本
4.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 lag around graph.changeData in G6 4.x with a large edge set, since the issue provides no reproduction link, files, or tests. Compare focused or filtered updates with resetting the full graph in Chrome on Windows. Done means the reset interaction no longer causes the reported UI pause, with a regression test or measurable before-and-after evidence.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- data-visualization, performance
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100