@@ -24,13 +24,14 @@ import type {
2424 ConnectionMode ,
2525 ConnectionStatus ,
2626 Connector ,
27+ HandleConnection ,
2728} from './connection'
2829import type { DefaultEdgeOptions , Edge , EdgeUpdatable , GraphEdge } from './edge'
2930import type { CoordinateExtent , CoordinateExtentRange , GraphNode , Node } from './node'
3031import type { D3Selection , D3Zoom , D3ZoomHandler , PanOnScrollMode , ViewportTransform } from './zoom'
3132import type { CustomEvent , FlowHooks , FlowHooksEmit , FlowHooksOn } from './hooks'
3233import type { EdgeChange , NodeChange , NodeDragItem } from './changes'
33- import type { ConnectingHandle , ValidConnectionFunc } from './handle'
34+ import type { ConnectingHandle , HandleType , ValidConnectionFunc } from './handle'
3435
3536export type NodeLookup = Map < string , GraphNode >
3637
@@ -324,6 +325,8 @@ export interface Actions extends Omit<ViewportHelper, 'viewportInitialized'> {
324325 getOutgoers : ( nodeOrId : Node | string ) => GraphNode [ ]
325326 /** get a node's connected edges */
326327 getConnectedEdges : ( nodesOrId : Node [ ] | string ) => GraphEdge [ ]
328+ /** get all connections of a handle belonging to a node */
329+ getHandleConnections : ( { id, type, nodeId } : { id ?: string | null ; type : HandleType ; nodeId : string } ) => HandleConnection [ ]
327330 /** pan the viewport; return indicates if a transform has happened or not */
328331 panBy : ( delta : XYPosition ) => boolean
329332 /** viewport helper instance */
0 commit comments