Register for a free webinar to learn more about the latest version of our software.
This is an old documentation. Go to the latest Customer's Canvas docs

IGridConfig Interface

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.