(graph: G6.Graph, execute: Function)
| 19 | |
| 20 | /** 执行批量处理 */ |
| 21 | export function executeBatch(graph: G6.Graph, execute: Function) { |
| 22 | const autoPaint = graph.get('autoPaint'); |
| 23 | |
| 24 | graph.setAutoPaint(false); |
| 25 | |
| 26 | execute(); |
| 27 | |
| 28 | graph.paint(); |
| 29 | graph.setAutoPaint(autoPaint); |
| 30 | } |
| 31 | |
| 32 | /** 执行递归遍历 */ |
| 33 | export function recursiveTraversal(root, callback) { |
no test coverage detected