[Bug]: 当视图中存在气泡集时,切换不同的布局,气泡集不会同步更新渲染
- Dominant language
- TypeScript
- Stars
- 12.3k
- Forks
- 1.6k
- PR merge metrics
- No merged PRs in 30d
Description
### Describe the bug / 问题描述
当视图中存在气泡集时,使用 graph.setOptions 更新 layout 布局后重新渲染,气泡集没有重新渲染并包围所配置的节点和边
```
graph.setOptions({
layout: layoutList[currentLayoutIndex]
});
await graph.render();
await graph.fitView();
```
### 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 with the graph.setOptions, graph.render, and graph.fitView sequence described in the issue, then trace how bubble sets are rendered when the layout changes. Reproduce the switch between layouts in a small graph containing a bubble set. Done means the bubble set is rerendered and again encloses its configured nodes and edges after the layout update.
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
- Needs clarification
- Newbie friendliness
- 25/100