antvis / g6-editor

534 stars 171 forks source link

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

Closed TomHuangCN closed 5 years ago

TomHuangCN commented 6 years ago

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

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

TomHuangCN commented 5 years ago

fixed in v1.3.0