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

Method getNodes

packages/designer/src/document/selection.ts:141–150  ·  view source on GitHub ↗

* 获取选中的节点

()

Source from the content-addressed store, hash-verified

139 * 获取选中的节点
140 */
141 getNodes(): INode[] {
142 const nodes: INode[] = [];
143 for (const id of this._selected) {
144 const node = this.doc.getNode(id);
145 if (node) {
146 nodes.push(node);
147 }
148 }
149 return nodes;
150 }
151
152 /**
153 * 获取顶层选区节点,场景:拖拽时,建立蒙层,只蒙在最上层

Callers

nothing calls this directly

Calls 2

pushMethod · 0.80
getNodeMethod · 0.65

Tested by

no test coverage detected