Skip to content

Diagrams

The catalog includes a diagram viewer that renders PlantUML, BPMN, and draw.io diagrams directly in the browser. Diagrams are organized by domain and displayed on the /diagrams page.

FormatRendererSource
PlantUMLSVG via public PlantUML server.puml source in data file
BPMNbpmn-js.bpmn XML in data file
draw.ioNative XML renderer.drawio XML in data file

All diagram viewers share a consistent toolbar:

ControlDescription
Zoom in/outStep-by-step zoom buttons
Fit / ResetFit diagram to viewport or reset zoom level
Zoom percentageShows current zoom level
Format badgeShows the diagram type (PlantUML, BPMN, draw.io)
  • View Source button toggles the raw PlantUML source code below the diagram
  • Zoom + pan — hold Ctrl/Cmd + scroll to zoom, click-drag to pan when zoomed in
  • Full interactive BPMN viewer with process flow visualization
  • Supports all standard BPMN 2.0 elements

Diagrams are defined in catalog-ui/src/data/diagrams-mock.ts. Each diagram entry specifies:

{
id: 'my-diagram',
name: 'System Architecture',
domain: 'customer-management',
format: 'plantuml',
source: `@startuml
...
@enduml`,
}

Diagram canvases maintain a light background regardless of the theme setting. This ensures that diagram elements (arrows, text, shapes) rendered by external libraries (PlantUML server, bpmn-js) remain visible, since these renderers produce light-mode output natively.