Interface: Getters
Table of contents
Properties
- getEdge
- getEdgeTypes
- getEdges
- getElements
- getNode
- getNodeTypes
- getNodes
- getNodesInitialized
- getSelectedEdges
- getSelectedElements
- getSelectedNodes
Properties
getEdge
• getEdge: (id
: string
) => undefined
| GraphEdge
<any
, any
>
Type declaration
â–¸ (id
): undefined
| GraphEdge
<any
, any
>
Deprecated
use findEdge instead; returns an edge by id
Parameters
Name | Type |
---|---|
id | string |
Returns
undefined
| GraphEdge
<any
, any
>
getEdgeTypes
• getEdgeTypes: Record
<string
, EdgeComponent
>
returns object containing current edge types
getEdges
• getEdges: GraphEdge
<any
, any
>[]
filters hidden edges
getElements
• getElements: FlowElements
<any
, any
, any
, any
>
get all elements (filters hidden elements)
getNode
• getNode: (id
: string
) => undefined
| GraphNode
<any
, any
>
Type declaration
â–¸ (id
): undefined
| GraphNode
<any
, any
>
Deprecated
use findNode instead; returns a node by id
Parameters
Name | Type |
---|---|
id | string |
Returns
undefined
| GraphNode
<any
, any
>
getNodeTypes
• getNodeTypes: Record
<string
, NodeComponent
>
returns object containing current node types
getNodes
• getNodes: GraphNode
<any
, any
>[]
filters hidden nodes
getNodesInitialized
• getNodesInitialized: GraphNode
<any
, any
>[]
returns all nodes that are initialized, i.e. they have actual dimensions
getSelectedEdges
• getSelectedEdges: GraphEdge
<any
, any
>[]
returns all currently selected edges
getSelectedElements
• getSelectedElements: FlowElements
<any
, any
, any
, any
>
returns all currently selected elements
getSelectedNodes
• getSelectedNodes: GraphNode
<any
, any
>[]
returns all currently selected nodes