BackgroundConfig
Configuration for the diagram background.
Properties
Section titled “Properties”cellSize?
Section titled “cellSize?”
optionalcellSize:Size
The size of the smallest grid cell (minor grid spacing). Supports rectangular grids by specifying different width and height values.
Default
Section titled “Default”{ width: 10, height: 10 }dotSpacing?
Section titled “dotSpacing?”
optionaldotSpacing:number
Distance in pixels between consecutive dots in the background pattern.
Default
Section titled “Default”30majorLinesFrequency?
Section titled “majorLinesFrequency?”
optionalmajorLinesFrequency: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
Default
Section titled “Default”{ x: 5, y: 5 }