antvis/G6


Do you want to work on this issue?
You can request for a bounty in order to promote it!
[Bug]: When the amount of data on a custom node is large, the initialization is very slow and the drag and drop is stuck #6731
1055041142 posted onGitHub
Describe the bug / 问题描述
自定义节点数据量较大时(5000 - 10000个节点),初始化很慢,拖拽画布和节点卡顿很厉害。
Reproduction link / 复现链接
https://stackblitz.com/edit/react-zfmr8xuw?file=index.js
Steps to Reproduce the Bug or Issue / 重现步骤
1、自定义节点较多时,初始化渲染很慢 2、已经添加了optimize-viewport-transform,拖拽画布、节点还是卡顿 3、自定义节点和线的render函数触发太频繁,如何进行节流操作
G6 Version / G6 版本
🆕 5.x
OS / 操作系统
- macOS
- Windows
- Linux
- Others / 其他
Browser / 浏览器
- Chrome
- Edge
- Firefox
- Safari (Limited support / 有限支持)
- IE (Nonsupport / 不支持)
- Others / 其他