antvis / G6

♾ A Graph Visualization Framework in JavaScript.
https://g6.antv.antgroup.com/
MIT License
11.15k stars 1.33k forks source link

【V5】使用WebGL渲染器且布局为force时,节点渲染异常 When using the WebGL renderer with a force layout, there is an abnormality in node rendering. #6130

Open bosenger opened 3 months ago

bosenger commented 3 months ago

Describe the bug / 问题描述

使用webGL渲染器,且布局为force时,会出现节点丢失的情况。 When using the WebGL renderer with a force layout, there is a situation where nodes may be lost.

Snipaste_2024-08-06_10-48-45

若切换为random布局则正常,但是tooltip的提示框位置会出现偏移,似乎是节点的事件触发层出现偏移: When switching to a random layout, the issue is resolved, but the position of the tooltip appears to be offset, which seems to be due to a misalignment in the event trigger layer of the nodes.

image

Reproduction link / 重现链接

https://codesandbox.io/p/devbox/graph-v5-webgl-ks8nkp

Steps to Reproduce the Bug or Issue / 重现步骤

No response

G6 Version / G6 版本

🆕 5.x

Operating System / 操作系统

macOS

Browser / 浏览器

Chrome, Edge

Additional context / 补充说明

No response

Aarebecca commented 3 months ago

感谢反馈,我们会尽快验证该问题并修复 Thanks for the feedback, we will verify the issue and fix it soon