@samatawy/diagrams
    Preparing search index...

    Interface IGrid

    The IGrid interface defines the properties of the grid used in the diagram. It includes options for forcing nodes to snap to the grid, toggling grid visibility, and customizing the grid's color and cell size.

    interface IGrid {
        forced: boolean;
        visible: boolean;
        color: string;
        width: number;
        height: number;
    }
    Index

    Properties

    forced: boolean

    A boolean indicating whether nodes should be forced to snap to the grid, which can help maintain alignment and consistency in the diagram layout.

    visible: boolean

    A boolean indicating whether the grid should be visible, which can assist users in aligning nodes and understanding the spatial relationships in the diagram.

    color: string

    The color of the grid lines, which can be customized to improve visibility or match the overall design of the diagram.

    width: number

    The width of the grid cell in pixels.

    height: number

    The height of the grid cell in pixels.