MCPcopy Create free account
hub / github.com/alibaba/lowcode-graph / executeBatch

Function executeBatch

packages/plugin-tools/src/common/utils.ts:21–30  ·  view source on GitHub ↗
(graph: G6.Graph, execute: Function)

Source from the content-addressed store, hash-verified

19
20/** 执行批量处理 */
21export 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/** 执行递归遍历 */
33export function recursiveTraversal(root, callback) {

Callers 2

setSelectedItemsFunction · 0.70
clearSelectedStateFunction · 0.70

Calls 1

getMethod · 0.80

Tested by

no test coverage detected