Foundry Virtual Tabletop - API Documentation - Version 14
    Preparing search index...

    Interface SquareGridConfiguration

    interface SquareGridConfiguration {
        alpha?: number;
        color?: ColorSource;
        diagonals?: GridDiagonalRule;
        distance?: number;
        size: number;
        style?: string;
        thickness?: number;
        units?: string;
    }
    Index

    Properties

    alpha?: number

    The alpha of the grid. Default: 1.

    color?: ColorSource

    The color of the grid. Default: 0x000000.

    diagonals?: GridDiagonalRule

    The rule for diagonal measurement (see CONST.GRID_DIAGONALS). Default: CONST.GRID_DIAGONALS.EQUIDISTANT.

    distance?: number

    The distance of a grid space in units (a positive number). Default: 1.

    size: number

    The size of a grid space in pixels (a positive number).

    style?: string

    The style of the grid. Default: "solidLines".

    thickness?: number

    The line thickness of the grid. Default: 1.

    units?: string

    The units of measurement. Default: "".