antvis / G6

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

Combo is not updated after translate element in combo #6522

Open Rey-Wang opened 1 week ago

Rey-Wang commented 1 week ago

Describe the bug / 问题描述

用 translate api移动 combo 内的节点后,combo 没有更新

Reproduction link / 重现链接

https://codesandbox.io/s/zdr33j

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

No response

G6 Version / G6 版本

🆕 5.x

Operating System / 操作系统

macOS

Browser / 浏览器

Chrome

Additional context / 补充说明

No response

Rey-Wang commented 1 week ago

调用 render 会重新执行layout,重新 fitview,有什么接口可以只刷新数据吗?类似 drag element 实现中的 refresh

Aarebecca commented 4 days ago

@Rey-Wang 看起来可能是个 Bug,我这边会修复下

Rey-Wang commented 3 days ago

目前可以通过 updateComboData 来解决