rune-langium / visual-editor/src / RuneTypeGraphConfig
Interface: RuneTypeGraphConfig
Defined in: packages/visual-editor/src/types.ts:424
Configuration props for the RuneTypeGraph component.
Config
layout— Dagre layout algorithm options (direction, separation distances, inheritance grouping). Changes trigger a full re-layout.nodeStyles— per-kind header and border color overrides.edgeStyles— per-edge-kind color, stroke width, and dash style overrides.initialFilters— filter state applied on first mount. Does NOT update the graph if changed after mount — callref.setFilters()imperatively instead.showMinimap— render a minimap overview (default:false).showControls— render zoom/fit controls (default:true).readOnly— disable edit controls and context menus (default:true).
Pitfalls
initialFiltersis only read on mount — passing a new object on re-render does NOT update the graph filters. Use theRuneTypeGraphRef.setFilters()imperative handle for dynamic filter changes.
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
edgeStyles? | EdgeStyleConfig | - | packages/visual-editor/src/types.ts:427 |
initialFilters? | GraphFilters | - | packages/visual-editor/src/types.ts:428 |
layout? | LayoutOptions | - | packages/visual-editor/src/types.ts:425 |
nodeStyles? | NodeStyleConfig | - | packages/visual-editor/src/types.ts:426 |
readOnly? | boolean | - | packages/visual-editor/src/types.ts:433 |
showControls? | boolean | - | packages/visual-editor/src/types.ts:430 |
showLegend? | boolean | Show the always-on kind/edge legend overlay (default true). | packages/visual-editor/src/types.ts:432 |
showMinimap? | boolean | - | packages/visual-editor/src/types.ts:429 |