Skip to content

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 ​

PropertyTypeDescriptionDefined in
explicitReadonlySet<string>Entries the caller selected directly.packages/visual-editor/src/utils/explorer-selection.ts:16
requiredByReadonlyMap<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 ​

ParameterType
nodeTypeGraphNode

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 ​

ParameterType
nextSet<string>
action?ExplorerSelectionAction

Returns ​

void

Core packages released under MIT. Studio app released under FSL-1.1-ALv2.