MCPcopy Index your code
hub / github.com/alibaba/lowcode-engine / getNodes

Method getNodes

packages/shell/src/model/selection.ts:84–94  ·  view source on GitHub ↗

* 获取选中的节点实例 * @returns

()

Source from the content-addressed store, hash-verified

82 * @returns
83 */
84 getNodes(): IPublicModelNode[] {
85 const innerNodes = this[selectionSymbol].getNodes();
86 const nodes: IPublicModelNode[] = [];
87 innerNodes.forEach((node: InnerNode) => {
88 const shellNode = ShellNode.create(node);
89 if (shellNode) {
90 nodes.push(shellNode);
91 }
92 });
93 return nodes;
94 }
95
96 /**
97 * 获取选区的顶层节点

Callers 1

nodeMethod · 0.95

Calls 4

pushMethod · 0.80
getNodesMethod · 0.65
forEachMethod · 0.65
createMethod · 0.45

Tested by

no test coverage detected