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

Function getSelectedNodes

packages/plugin-tools/src/common/utils.ts:68–70  ·  view source on GitHub ↗
(graph: G6.Graph)

Source from the content-addressed store, hash-verified

66
67/** 获取选中节点 */
68export function getSelectedNodes(graph: G6.Graph): G6.Node[] {
69 return graph.findAllByState(ItemType.Node, ItemState.Selected);
70}
71
72/** 获取选中边线 */
73export function getSelectedEdges(graph: G6.Graph): G6.Edge[] {

Callers 3

getGraphStateFunction · 0.70
setSelectedItemsFunction · 0.70
clearSelectedStateFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected