Skip to content

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 — call ref.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

  • initialFilters is only read on mount — passing a new object on re-render does NOT update the graph filters. Use the RuneTypeGraphRef.setFilters() imperative handle for dynamic filter changes.

Properties

PropertyTypeDefined in
edgeStyles?EdgeStyleConfigpackages/visual-editor/src/types.ts:443
initialFilters?GraphFilterspackages/visual-editor/src/types.ts:444
layout?LayoutOptionspackages/visual-editor/src/types.ts:441
nodeStyles?NodeStyleConfigpackages/visual-editor/src/types.ts:442
readOnly?booleanpackages/visual-editor/src/types.ts:447
showControls?booleanpackages/visual-editor/src/types.ts:446
showMinimap?booleanpackages/visual-editor/src/types.ts:445

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