Class: LinkState
Implements
Constructors
constructor
• new LinkState(rootStore
, id
, state
)
Parameters
Name | Type |
---|---|
rootStore | RootStore |
id | string |
state | ILinkStateWithoutId |
Accessors
componentDefinition
• get
componentDefinition(): VisualComponentState
<ILinkVisualComponentProps
<any
>, any
>
Returns
VisualComponentState
<ILinkVisualComponentProps
<any
>, any
>
data
• get
data(): any
Returns
any
hovered
• get
hovered(): boolean
Returns
boolean
Implementation of
• set
hovered(value
): void
Parameters
Name | Type |
---|---|
value | boolean |
Returns
void
Implementation of
id
• get
id(): string
Returns
string
isSelectionEnabled
• get
isSelectionEnabled(): boolean
Returns
boolean
path
• get
path(): undefined
| ILinkPath
Returns
undefined
| ILinkPath
segments
• get
segments(): ILinkSegment
[]
Returns
selected
• get
selected(): boolean
Returns
boolean
Implementation of
ILinkInteractionState.selected
• set
selected(value
): void
Parameters
Name | Type |
---|---|
value | boolean |
Returns
void
Implementation of
ILinkInteractionState.selected
source
• get
source(): undefined
| LinkPortEndpointState
Returns
undefined
| LinkPortEndpointState
sourceEndpoint
• get
sourceEndpoint(): ILinkPortEndpoint
Returns
target
• get
target(): undefined
| LinkPortEndpointState
Returns
undefined
| LinkPortEndpointState
targetEndpoint
• get
targetEndpoint(): ILinkPortEndpoint
Returns
type
• get
type(): string
Returns
string
Methods
export
▸ export(): ILinkStateWithId
Returns
import
▸ import(state
): void
Parameters
Name | Type |
---|---|
state | ILinkStateWithoutId |
Returns
void
setData
▸ setData(value
): void
Parameters
Name | Type |
---|---|
value | any |
Returns
void
setIsSelectionEnabled
▸ setIsSelectionEnabled(value
): void
Parameters
Name | Type |
---|---|
value | undefined | null | boolean |
Returns
void
setSegments
▸ setSegments(value
): void
Parameters
Name | Type |
---|---|
value | undefined | null | ILinkSegment [] |
Returns
void
setType
▸ setType(value
): void
Parameters
Name | Type |
---|---|
value | undefined | null | string |
Returns
void
swapEndpoints
▸ swapEndpoints(): void
Returns
void