MCPcopy
hub / github.com/alibaba/lowcode-engine / nodesMap

Method nodesMap

packages/shell/src/model/document-model.ts:121–127  ·  view source on GitHub ↗

* 获取文档下所有节点 Map, key 为 nodeId * get map of all nodes , using node.id as key

()

Source from the content-addressed store, hash-verified

119 * get map of all nodes , using node.id as key
120 */
121 get nodesMap(): Map<string, IPublicModelNode> {
122 const map = new Map<string, IPublicModelNode>();
123 for (let id of this[documentSymbol].nodesMap.keys()) {
124 map.set(id, this.getNodeById(id)!);
125 }
126 return map;
127 }
128
129 /**
130 * 模态节点管理

Callers

nothing calls this directly

Calls 2

getNodeByIdMethod · 0.95
setMethod · 0.65

Tested by

no test coverage detected