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.