Skip to main content

Class: Callbacks

Constructors

constructor

new Callbacks(rootStore)

Parameters

NameType
rootStoreRootStore

Methods

drag

drag(info): void

Parameters

NameType
infoOnDrag

Returns

void


dragEnded

dragEnded(info): void

Parameters

NameType
infoOnDragEnded

Returns

void


dragStarted

dragStarted(info): void

Parameters

NameType
infoOnDragStarted

Returns

void


export

export(): ICallbacks

Returns

ICallbacks


import

import(callbacks?): void

Parameters

NameType
callbacks?ICallbacks

Returns

void


importedStateRendered

importedStateRendered(): void

Returns

void


linkValidation

linkValidation(info): boolean

Parameters

NameType
infoOnLinkValidation

Returns

boolean


linkingEnded

linkingEnded(info): void

Parameters

NameType
infoOnLinkingEnded

Returns

void


linkingStarted

linkingStarted(info): void

Parameters

NameType
infoOnLinkingStarted

Returns

void


linksAdded

linksAdded(info): void

Parameters

NameType
infoOnLinksAddResult

Returns

void


linksRemoved

linksRemoved(info): void

Parameters

NameType
infoOnLinksRemoveResult

Returns

void


nodeDataChanged

nodeDataChanged(node, change): void

Parameters

NameType
nodeNodeState
changePropertyChange<any>

Returns

void


nodeIsDragEnabledChanged

nodeIsDragEnabledChanged(node, change): void

Parameters

NameType
nodeNodeState
changePropertyChange<undefined | boolean>

Returns

void


nodeIsSelectionEnabledChanged

nodeIsSelectionEnabledChanged(node, change): void

Parameters

NameType
nodeNodeState
changePropertyChange<undefined | boolean>

Returns

void


nodeLabelChanged

nodeLabelChanged(node, change): void

Parameters

NameType
nodeNodeState
changePropertyChange<undefined | string>

Returns

void


nodePositionChanged

nodePositionChanged(node, change): void

Parameters

NameType
nodeNodeState
changePropertyChange<Point>

Returns

void


nodeTypeChanged

nodeTypeChanged(node, change): void

Parameters

NameType
nodeNodeState
changePropertyChange<undefined | string>

Returns

void


nodesAdded

nodesAdded(info): void

Parameters

NameType
infoOnNodesAddResult

Returns

void


nodesRemoved

nodesRemoved(info): void

Parameters

NameType
infoOnNodesRemoveResult

Returns

void