antvis/G6

自定义节点 调用 graph.addchild()和graph.removeChild()会导致全局渲染造成卡顿 #4165

zcjpass posted onGitHub

问题描述

脑图树添加节点调用 graph.addchild()会导致全局渲染,全部节点都会调用afterDraw(), 看源码是因为调了graph.changeData(),有没有什么办法不全部重新渲染,只渲染新增的节点呢

重现链接

重现步骤

预期行为

平台

  • 操作系统: [macOS, Windows, Linux, React Native ...]
  • 网页浏览器: [Google Chrome, Safari, Firefox]
  • G6 版本: [4.5.1 ... ]

屏幕截图或视频(可选)

No response

补充说明(可选)

No response


This issue has been closed because it has been outdate for a long time. Please open a new issue if you still need help.

这个 issue 已经被关闭,因为 它已经过期很久了。 如果你仍然需要帮助,请创建一个新的 issue。

posted by github-actions[bot] 10 months ago

Fund this Issue

$0.00
Funded

Pull requests