基本用法
历史类型
将保存增加点、边,删除点、边的相关操作作为历史记录, 达到撤销和反撤销的功能
用法
chart.graph.historyMachine.chartRecall() 撤回
- empty
chart.graph.historyMachine.chartUnRecall(nodes, options) 反撤回
- nodes{object|Array}: nodes数据
- options{ cb: null / 回调 /, saveHistory: true / 是否需要保存历史(适用于撤销) / }: 配置