Skip to main content

Class: RootStore

Constructors

constructor

new RootStore(settings?, state?)

Parameters

NameType
settings?ISettings
state?IDiagramInitState

Accessors

callbacks

get callbacks(): Callbacks

Returns

Callbacks


commandExecutor

get commandExecutor(): CommandExecutor

Returns

CommandExecutor


diagramSettings

get diagramSettings(): DiagramSettings

Returns

DiagramSettings


diagramState

get diagramState(): DiagramState

Returns

DiagramState


dragState

get dragState(): DragState

Returns

DragState


linksSettings

get linksSettings(): LinksSettings

Returns

LinksSettings


linksStore

get linksStore(): LinksStore

Returns

LinksStore


nodesSettings

get nodesSettings(): NodesSettings

Returns

NodesSettings


nodesStore

get nodesStore(): NodesStore

Returns

NodesStore


portsSettings

get portsSettings(): PortsSettings

Returns

PortsSettings


selectionState

get selectionState(): SelectionState

Returns

SelectionState

Methods

export

export(): Object

Returns

Object

NameType
linksILinkState[]
nodesINodeExport[]

importSettings

importSettings(settings?): void

Parameters

NameType
settings?ISettings

Returns

void


importState

importState(nodes?, links?): void

Parameters

NameType
nodes?INodeState[]
links?ILinkState[]

Returns

void