@@ -24,13 +24,14 @@ import type {
24
24
ConnectionMode ,
25
25
ConnectionStatus ,
26
26
Connector ,
27
+ HandleConnection ,
27
28
} from './connection'
28
29
import type { DefaultEdgeOptions , Edge , EdgeUpdatable , GraphEdge } from './edge'
29
30
import type { CoordinateExtent , CoordinateExtentRange , GraphNode , Node } from './node'
30
31
import type { D3Selection , D3Zoom , D3ZoomHandler , PanOnScrollMode , ViewportTransform } from './zoom'
31
32
import type { CustomEvent , FlowHooks , FlowHooksEmit , FlowHooksOn } from './hooks'
32
33
import type { EdgeChange , NodeChange , NodeDragItem } from './changes'
33
- import type { ConnectingHandle , ValidConnectionFunc } from './handle'
34
+ import type { ConnectingHandle , HandleType , ValidConnectionFunc } from './handle'
34
35
35
36
export type NodeLookup = Map < string , GraphNode >
36
37
@@ -324,6 +325,8 @@ export interface Actions extends Omit<ViewportHelper, 'viewportInitialized'> {
324
325
getOutgoers : ( nodeOrId : Node | string ) => GraphNode [ ]
325
326
/** get a node's connected edges */
326
327
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 [ ]
327
330
/** pan the viewport; return indicates if a transform has happened or not */
328
331
panBy : ( delta : XYPosition ) => boolean
329
332
/** viewport helper instance */
0 commit comments