A boolean indicating whether nodes should be forced to snap to the grid, which can help maintain alignment and consistency in the diagram layout.
A boolean indicating whether the grid should be visible, which can assist users in aligning nodes and understanding the spatial relationships in the diagram.
The color of the grid lines, which can be customized to improve visibility or match the overall design of the diagram.
The width of the grid cell in pixels.
The height of the grid cell in pixels.
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.