antvis/G6

Do you want to work on this issue?
You can request for a bounty in order to promote it!
[Bug]: Custom g2 node update exception drawing #6724
zmoth posted onGitHub
Describe the bug / 问题描述
使用了两种方法去更新自定义节点。
- 使用updateData
使用此方法在连续两次给同一节点绘制时,edge路径异常、绘制的窗口也不会居中。
- 使用删除(removeData)再添加(addData)
使用这个方法在每次更新只会执行删除或者添加二选一,此外当有多个添加的数据时绘制的窗口也不会居中。
Reproduction link / 复现链接
https://codesandbox.io/p/sandbox/silly-snowflake-7dp2mc
Steps to Reproduce the Bug or Issue / 重现步骤
No response
G6 Version / G6 版本
🆕 5.x
OS / 操作系统
- macOS
- Windows
- Linux
- Others / 其他
Browser / 浏览器
- Chrome
- Edge
- Firefox
- Safari (Limited support / 有限支持)
- IE (Nonsupport / 不支持)
- Others / 其他