antvis / G6

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

changeData更新数据时,报错,报错内容为getTextSize方法的参数text为undefined #5594

Open hexinlong opened 5 months ago

hexinlong commented 5 months ago

Describe the bug

changeData更新数据时,报错,报错内容为getTextSize方法的参数text为undefined

image

Your Example Website or App

Steps to Reproduce the Bug or Issue

传入的数据为 detailsGraph.changeData({ nodes: [ { id: 'node1', label: 'node1' }, { id: 'node2', label: 'node2' } ], edges: [ { source: 'node1', target: 'node2' } ] });

Expected behavior

我希望更新数据成功

Screenshots or Videos

image

Platform

Additional context

No response

hexinlong commented 5 months ago

我使用的版本"@antv/g6": "4.8.14",