@braks/vue-flow / Getters

Interface: Getters

Table of contents

Properties

Methods

Properties

getEdgeTypes

getEdgeTypes: Record<string, EdgeComponent>

returns object containing current edge types


getEdges

getEdges: GraphEdge<any, any>[]

filters hidden edges


getElements

getElements: FlowElements<any>

get all elements (filters hidden elements)


getNodeTypes

getNodeTypes: Record<string, NodeComponent>

returns object containing current node types


getNodes

getNodes: GraphNode<any, any>[]

filters hidden nodes


getSelectedEdges

getSelectedEdges: GraphEdge<any, any>[]

returns all currently selected edges


getSelectedElements

getSelectedElements: FlowElements<any>

returns all currently selected elements


getSelectedNodes

getSelectedNodes: GraphNode<any, any>[]

returns all currently selected nodes

Methods

getEdge

getEdge<Data>(id): undefined | GraphEdge<Data, any>

returns an edge by id

Type parameters

NameType
Dataany

Parameters

NameType
idstring

Returns

undefined | GraphEdge<Data, any>


getNode

getNode<Data>(id): undefined | GraphNode<Data, any>

returns a node by id

Type parameters

NameType
Dataany

Parameters

NameType
idstring

Returns

undefined | GraphNode<Data, any>