rune-langium / visual-editor/src / ExplorerSelection
Interface: ExplorerSelection
Defined in: packages/visual-editor/src/utils/explorer-selection.ts:14
Controlled selection state for a namespace explorer.
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
explicit | ReadonlySet<string> | Entries the caller selected directly. | packages/visual-editor/src/utils/explorer-selection.ts:16 |
requiredBy | ReadonlyMap<string, readonly string[]> | Entries included because each listed root requires them. | packages/visual-editor/src/utils/explorer-selection.ts:18 |
Methods
getSelectionId()?
ts
getSelectionId?(node): string;Defined in: packages/visual-editor/src/utils/explorer-selection.ts:22
Converts an explorer node to the caller's canonical selection key.
Parameters
| Parameter | Type |
|---|---|
node | TypeGraphNode |
Returns
string
onChange()
ts
onChange(next, action?): void;Defined in: packages/visual-editor/src/utils/explorer-selection.ts:20
Receives the next explicit selection.
Parameters
| Parameter | Type |
|---|---|
next | Set<string> |
action? | ExplorerSelectionAction |
Returns
void