Skip to content
On this page

Interface: Actions

Hierarchy

Table of contents

Properties

Methods

Properties

addEdges

• addEdges: AddEdges


addNodes

• addNodes: AddNodes


findEdge

• findEdge: FindEdge


findNode

• findNode: FindNode


fitBounds

• fitBounds: FitBounds

Inherited from

ViewportFunctions.fitBounds


fitView

• fitView: FitView

Inherited from

ViewportFunctions.fitView


getTransform

• getTransform: GetTransform

Inherited from

ViewportFunctions.getTransform


project

• project: Project

Inherited from

ViewportFunctions.project


removeEdges

• removeEdges: RemoveEdges


removeNodes

• removeNodes: RemoveNodes


setCenter

• setCenter: SetCenter

Inherited from

ViewportFunctions.setCenter


setEdges

• setEdges: SetEdges


setElements

• setElements: SetElements


setNodes

• setNodes: SetNodes


setState

• setState: SetState


setTransform

• setTransform: SetTransform

Inherited from

ViewportFunctions.setTransform


updateEdge

• updateEdge: UpdateEdge


updateNodeDimensions

• updateNodeDimensions: UpdateNodeDimensions


updateNodeInternals

• updateNodeInternals: UpdateNodeInternals


updateNodePositions

• updateNodePositions: UpdateNodePosition


zoomIn

• zoomIn: ZoomInOut

Inherited from

ViewportFunctions.zoomIn


zoomOut

• zoomOut: ZoomInOut

Inherited from

ViewportFunctions.zoomOut


zoomTo

• zoomTo: ZoomTo

Inherited from

ViewportFunctions.zoomTo

Methods

$destroy

â–¸ $destroy(): void

Returns

void


$reset

â–¸ $reset(): void

Returns

void


addSelectedEdges

â–¸ addSelectedEdges(edges): void

Parameters

NameType
edgesGraphEdge<any, any>[]

Returns

void


addSelectedElements

â–¸ addSelectedElements(elements): void

Parameters

NameType
elementsFlowElements<any>

Returns

void


addSelectedNodes

â–¸ addSelectedNodes(nodes): void

Parameters

NameType
nodesGraphNode<any, any>[]

Returns

void


applyEdgeChanges

â–¸ applyEdgeChanges(changes): GraphEdge<any, any>[]

Parameters

NameType
changesEdgeChange[]

Returns

GraphEdge<any, any>[]


applyNodeChanges

â–¸ applyNodeChanges(changes): GraphNode<any, any>[]

Parameters

NameType
changesNodeChange[]

Returns

GraphNode<any, any>[]


endConnection

â–¸ endConnection(event?): void

Parameters

NameType
event?MouseEvent

Returns

void


removeSelectedEdges

â–¸ removeSelectedEdges(edges): void

Parameters

NameType
edgesGraphEdge<any, any>[]

Returns

void


removeSelectedElements

â–¸ removeSelectedElements(elements?): void

Parameters

NameType
elements?Object
elements.edges?GraphEdge<any, any>[]
elements.nodes?GraphNode<any, any>[]

Returns

void


removeSelectedNodes

â–¸ removeSelectedNodes(nodes): void

Parameters

NameType
nodesGraphNode<any, any>[]

Returns

void


setInteractive

â–¸ setInteractive(isInteractive): void

Parameters

NameType
isInteractiveboolean

Returns

void


setMaxZoom

â–¸ setMaxZoom(zoom): void

Parameters

NameType
zoomnumber

Returns

void


setMinZoom

â–¸ setMinZoom(zoom): void

Parameters

NameType
zoomnumber

Returns

void


setNodeExtent

â–¸ setNodeExtent(nodeExtent): void

Parameters

NameType
nodeExtentCoordinateExtent

Returns

void


setTranslateExtent

â–¸ setTranslateExtent(translateExtent): void

Parameters

NameType
translateExtentCoordinateExtent

Returns

void


startConnection

â–¸ startConnection(startHandle, position?, event?): void

Parameters

NameType
startHandleStartHandle
position?XYPosition
event?MouseEvent

Returns

void


toObject

â–¸ toObject(): FlowExportObject

Returns

FlowExportObject


updateConnection

â–¸ updateConnection(position): void

Parameters

NameType
positionXYPosition

Returns

void

Released under the MIT License.