PiDraw API
    Preparing search index...

    Interface IGridConfig

    A grid: lines parallel to the axes of the coordinate system, a step apart.

    interface IGridConfig {
        step?: { x: number; y: number };
        subdivisions?: number;
        x?: { max: number; min: number };
        y?: { max: number; min: number };
    }
    Index
    step?: { x: number; y: number }

    The step between two lines, in units of each axis. 1 by default.

    subdivisions?: number

    Each step is cut in this many parts (an integer from 2 to 20) by lines of a lighter gray. None by default.

    x?: { max: number; min: number }

    The part of the coordinate system that has the grid, in units: the lines are at the multiples of the step in it, and on its edges. Both or none; none (the default) is the whole drawing.

    y?: { max: number; min: number }