You’re viewing outdated documentation. View the latest Customer’s Canvas On-Premises documentation.

IGridConfig Interface

Applies to: Customer's Canvas On-Premises; Design Editor 6.15.0, 6.x (may differ) · Archived documentation

The grid configuration. For details, see the Markings topic.

example
configuration = {
    grid: {
        stepX: 0.1,
        stepY: 0.1
    }
};

Properties

Optional enabled

enabled: boolean

Displays the grid; if the grid is displayed it can be toggled by the Grid button.

Optional horizontalColor

horizontalColor: string

Color of the horizontal grid lines.

Optional lineWidthPx

lineWidthPx: number

Width of grid lines in pixels.

Optional stepX

stepX: number

Distance between vertical grid lines.

Optional stepY

stepY: number

Distance between horizontal grid lines.

Optional verticalColor

verticalColor: string

Color of the vertical grid lines.