Skip to content

edgesConnectedToPort

edgesConnectedToPort(edges, ref): string[]

Defined in: src/components/editor/NodeGraph/nodeGraphActions.ts:15

Ids of every edge with an endpoint on the given port — i.e. all wires connected to one socket. Use it to “detach all” or select a socket’s wires without maintaining a parallel index.

Parameters

edges

readonly NodeGraphEdge[]

ref

NodeGraphPortRef

Returns

string[]