* 获取文档下所有节点 Map, key 为 nodeId * get map of all nodes , using node.id as key
()
| 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 | * 模态节点管理 |
nothing calls this directly
no test coverage detected