Skip to content

BPMN Panel API / Panel Types / Graph

Type Alias: Graph

ts
type Graph = {
  readOnly?: boolean;
  toolbar: Toolbar;
  nodes: Node[];
  edges: Edge[];
  theme?: ThemeConfig;
};

Defined in: features/panels/variants/bpmn/types/panel/graph/graph.ts:11

Graph visualization configuration

Properties

PropertyTypeDescription

readOnly?

boolean

When true, disables editing of the BPMN diagram.

Default

ts
false

toolbar

Toolbar

Toolbar configuration.

Converts to palette from the @mes/bpmn format.

nodes

Node[]

Array of node configurations for the graph.

edges

Edge[]

Declared legacy edge configuration shape.

The current panel renderer ignores graph.edges[]. Existing connectors come from backend links, and new-connector behavior is configured through toolbar edge items.

theme?

ThemeConfig

Declared legacy theme configuration.

The current panel renderer ignores graph.theme and supplies its own default @mes/bpmn theme.