Skip to main content

Class: LinkCreationState

Implements

Constructors

constructor

new LinkCreationState(rootStore)

Parameters

NameType
rootStoreRootStore

Accessors

componentDefinition

get componentDefinition(): VisualComponentState<ILinkVisualComponentProps<any>, any>

Returns

VisualComponentState<ILinkVisualComponentProps<any>, any>


hovered

get hovered(): boolean

Returns

boolean

Implementation of

ILinkInteractionState.hovered


isLinking

get isLinking(): boolean

Returns

boolean


path

get path(): undefined | ILinkPath

Returns

undefined | ILinkPath


selected

get selected(): boolean

Returns

boolean

Implementation of

ILinkInteractionState.selected


source

get source(): undefined | LinkPortEndpointState

Returns

undefined | LinkPortEndpointState


target

get target(): undefined | LinkPointEndpointState

Returns

undefined | LinkPointEndpointState


targetPortCandidate

get targetPortCandidate(): undefined | PortState

Returns

undefined | PortState

Methods

resetTargetPortCandidate

resetTargetPortCandidate(portState): void

Parameters

NameType
portStatePortState

Returns

void


setTargetPortCandidate

setTargetPortCandidate(portState): void

Parameters

NameType
portStatePortState

Returns

void


startLinking

startLinking(portState, pointOnPort): boolean

Parameters

NameType
portStatePortState
pointOnPortPoint

Returns

boolean


stopLinking

stopLinking(): void

Returns

void