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


getIntersectingNodes

getIntersectingNodes: GetIntersectingNodes


getTransform

getTransform: GetTransform

Inherited from

ViewportFunctions.getTransform


isNodeIntersecting

isNodeIntersecting: IsNodeIntersecting


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, any, any, 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?, isClick?): void

Parameters

NameType
event?MouseEvent | TouchEvent
isClick?boolean

Returns

void


removeSelectedEdges

removeSelectedEdges(edges): void

Parameters

NameType
edgesGraphEdge<any, any>[]

Returns

void


removeSelectedElements

removeSelectedElements(elements?): void

Parameters

NameType
elements?Elements<any, any, 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?, isClick?): void

Parameters

NameType
startHandleStartHandle
position?XYPosition
event?MouseEvent | TouchEvent
isClick?boolean

Returns

void


toObject

toObject(): FlowExportObject

Returns

FlowExportObject


updateConnection

updateConnection(position): void

Parameters

NameType
positionXYPosition

Returns

void

Released under the MIT License.