Skip to content

BackgroundConfig

Configuration for the diagram background.

optional cellSize: Size

The size of the smallest grid cell (minor grid spacing). Supports rectangular grids by specifying different width and height values.

{ width: 10, height: 10 }

optional dotSpacing: number

Distance in pixels between consecutive dots in the background pattern.

30

optional majorLinesFrequency: object

Specifies how often major grid lines occur, measured in counts of minor grid cells. E.g., { x: 5, y: 5 } draws a major vertical line every 5 minor columns and a major horizontal line every 5 minor rows.

x: number

y: number

{ x: 5, y: 5 }