This class provides support for routing edges on equidistant grid lines.
Inheritance Hierarchy
Grid
Remarks
The grid is defined by its origin and the spacing between the equidistant grid lines.
Type Details
- yfiles module
- router-polyline
- yfiles-umd modules
- layout-area, layout-multipage, layout-orthogonal-compact, layout, router-bus, router-polyline
- Legacy UMD name
- yfiles.router.Grid
See Also
Constructors
Creates a new Grid instance.
Remarks
The spacing between the grid lines must be at least
1
. If the given spacing is smaller, value 1
is assumed.Parameters
options - Object
A map of options to pass to the method.
A map of options to pass to the method.
- originX - number
- the x-coordinate of the origin of the grid
- originY - number
- the y-coordinate of the origin of the grid
- spacing - number
- the spacing between the grid lines