antvis/G6

The issue has been closed
力导向图在网格和弹性碰撞之前来回切换,onclick回调次数会增加,越来越卡顿 #5978
guapizyq posted onGitHub
Describe the bug / 问题描述
随着两个窗口之间来回点击,JS调用绘制函数调用onclick次数增加,导致耗时增加 越来越卡
Reproduction link / 重现链接 https://g6-next.antv.antgroup.com/zh/examples/layout/force-directed/#mesh
Reproduction link / 重现链接
No response
Steps to Reproduce the Bug or Issue / 重现步骤
随着执行次数增加,JS调用绘制函数调用onclick次数增加,导致耗时增加 越来越卡
Reproduction link / 重现链接 https://g6-next.antv.antgroup.com/zh/examples/layout/force-directed/#mesh
G6 Version / G6 版本
🆕 5.x
Operating System / 操作系统
Windows
Browser / 浏览器
Chrome
Additional context / 补充说明
随着执行次数增加,JS调用绘制函数调用onclick次数增加,导致耗时增加 越来越卡
Reproduction link / 重现链接 https://g6-next.antv.antgroup.com/zh/examples/layout/force-directed/#mesh