Class: SelectionState
Constructors
constructor
• new SelectionState()
Accessors
selectedItems
• get
selectedItems(): SelectableItem
[]
Returns
selectedLinks
• get
selectedLinks(): LinkState
[]
Returns
selectedNodes
• get
selectedNodes(): NodeState
[]
Returns
Methods
select
▸ select(item
, unselectOther?
): boolean
Parameters
Name | Type | Default value |
---|---|---|
item | SelectableItem | undefined |
unselectOther | boolean | false |
Returns
boolean
switch
▸ switch(item
, unselectOtherOnSelection?
): void
Parameters
Name | Type | Default value |
---|---|---|
item | SelectableItem | undefined |
unselectOtherOnSelection | boolean | false |
Returns
void
unselect
▸ unselect(item
): boolean
Parameters
Name | Type |
---|---|
item | SelectableItem |
Returns
boolean
unselectAll
▸ unselectAll(): void
Returns
void
unselectItems
▸ unselectItems(itemsToClear
): void
Parameters
Name | Type |
---|---|
itemsToClear | readonly SelectableItem [] |
Returns
void