rune-langium / visual-editor/src / RuneTypeGraphConfig
Interface: RuneTypeGraphConfig
Defined in: packages/visual-editor/src/types.ts:440
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 | Defined in |
|---|---|---|
edgeStyles? | EdgeStyleConfig | packages/visual-editor/src/types.ts:443 |
initialFilters? | GraphFilters | packages/visual-editor/src/types.ts:444 |
layout? | LayoutOptions | packages/visual-editor/src/types.ts:441 |
nodeStyles? | NodeStyleConfig | packages/visual-editor/src/types.ts:442 |
readOnly? | boolean | packages/visual-editor/src/types.ts:447 |
showControls? | boolean | packages/visual-editor/src/types.ts:446 |
showMinimap? | boolean | packages/visual-editor/src/types.ts:445 |