Class: LinkCreationState
Implements
Constructors
constructor
• new LinkCreationState(rootStore
)
Parameters
Name | Type |
---|---|
rootStore | RootStore |
Accessors
componentDefinition
• get
componentDefinition(): VisualComponentState
<ILinkVisualComponentProps
<any
>, any
>
Returns
VisualComponentState
<ILinkVisualComponentProps
<any
>, any
>
hovered
• get
hovered(): boolean
Returns
boolean
Implementation of
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
Name | Type |
---|---|
portState | PortState |
Returns
void
setTargetPortCandidate
▸ setTargetPortCandidate(portState
): void
Parameters
Name | Type |
---|---|
portState | PortState |
Returns
void
startLinking
▸ startLinking(portState
, pointOnPort
): boolean
Parameters
Name | Type |
---|---|
portState | PortState |
pointOnPort | Point |
Returns
boolean
stopLinking
▸ stopLinking(): void
Returns
void