antvis / G6

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

graph.read 传入空对象导致事件报错 #339

Closed zhaodongyu closed 6 years ago

zhaodongyu commented 6 years ago

现象

graph.read({}),会导致画布事件监听出错,比如 onMousemove 时,报错

场景

在 g6-editor 中,undo 代码调用的是 page.read(),若此时数据为空,则会导致报错

TomHuangCN commented 6 years ago

迁移至:https://github.com/antvis/g6-editor/issues/48