Skip to main content

Class: LinkState

Implements

Constructors

constructor

new LinkState(rootStore, id, state)

Parameters

NameType
rootStoreRootStore
idstring
stateILinkStateWithoutId

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

ILinkInteractionState.hovered

set hovered(value): void

Parameters

NameType
valueboolean

Returns

void

Implementation of

ILinkInteractionState.hovered


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

ILinkSegment[]


selected

get selected(): boolean

Returns

boolean

Implementation of

ILinkInteractionState.selected

set selected(value): void

Parameters

NameType
valueboolean

Returns

void

Implementation of

ILinkInteractionState.selected


source

get source(): undefined | LinkPortEndpointState

Returns

undefined | LinkPortEndpointState


sourceEndpoint

get sourceEndpoint(): ILinkPortEndpoint

Returns

ILinkPortEndpoint


target

get target(): undefined | LinkPortEndpointState

Returns

undefined | LinkPortEndpointState


targetEndpoint

get targetEndpoint(): ILinkPortEndpoint

Returns

ILinkPortEndpoint


type

get type(): string

Returns

string

Methods

export

export(): ILinkStateWithId

Returns

ILinkStateWithId


import

import(state): void

Parameters

NameType
stateILinkStateWithoutId

Returns

void


setData

setData(value): void

Parameters

NameType
valueany

Returns

void


setIsSelectionEnabled

setIsSelectionEnabled(value): void

Parameters

NameType
valueundefined | null | boolean

Returns

void


setSegments

setSegments(value): void

Parameters

NameType
valueundefined | null | ILinkSegment[]

Returns

void


setType

setType(value): void

Parameters

NameType
valueundefined | null | string

Returns

void


swapEndpoints

swapEndpoints(): void

Returns

void