Interface: IGridConfig
A structure containing the grid configuration.
Remarks
For details, see the Grids https://customerscanvas.com/dev/editors/iframe-api/editor-configuration/rulers-grids-snaplines.html|Grids topic.
Example
configuration = {
grid: {
stepX: 0.1,
stepY: 0.1,
},
};
Properties
horizontalColor?
optionalhorizontalColor?:string
Color of the horizontal grid lines.
verticalColor?
optionalverticalColor?:string
Color of the vertical grid lines.
stepX?
optionalstepX?:number
Distance between vertical grid lines.
stepY?
optionalstepY?:number
Distance between horizontal grid lines.
lineWidthPx?
optionallineWidthPx?:number
Width of grid lines in pixels.
enabled?
optionalenabled?:boolean
Displays the grid; if the grid is displayed it can be toggled by the Grid button.