rune-langium / visual-editor/src / StructureGraphInput
Interface: StructureGraphInput
Defined in: packages/visual-editor/src/types/structure-view.ts:353
Full graph input produced by the adapter.
Properties
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
nodes | readonly | ReadonlyMap<string, StructureNode> | Per-instance node map. Keys are StructureNode.instanceId; each visible occurrence of a type is its own entry with its own expansions map. Look up a node's shared canonical metadata via .id. | packages/visual-editor/src/types/structure-view.ts:369 |
rootNodeId | readonly | string | INSTANCE id of the root node. Keys into nodes. For the root placement the instance id equals the canonical id of the outermost wrapper, so existing callers that pass canonical ids through this field continue to work for non-nested roots. Phase 14e/A: roots may be data, choice, or enum kinds — the adapter materializes whichever the focused type resolves to. | packages/visual-editor/src/types/structure-view.ts:363 |