G6 icon indicating copy to clipboard operation
G6 copied to clipboard

[Bug]: 当视图中存在气泡集时,切换不同的布局,气泡集不会同步更新渲染

Open Gitsifu opened this issue 4 months ago • 1 comments

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 / 其他

Gitsifu avatar Sep 03 '25 06:09 Gitsifu

气泡集正常显示

Image

切换不同的 layout 布局后

Image

Gitsifu avatar Sep 03 '25 06:09 Gitsifu