Reference · Rules, generation and deductions
GRIDSconstant
Names for the supported square, four-neighbour, hex, and wrap grids.
Import it
import { GRIDS } from "@johnmorrisdotca/jirai";
Definition
const GRIDS: { readonly square: "square"; readonly orthogonal: "orthogonal"; readonly hex: "hex"; readonly wrap: "wrap"; } = { square: "square", orthogonal: "orthogonal", hex: "hex", wrap: "wrap" } as const
Members
| Name | Type | Description |
|---|---|---|
square | "square" | |
orthogonal | "orthogonal" | |
hex | "hex" | |
wrap | "wrap" |
Examples
import { GRIDS } from "@johnmorrisdotca/jirai";
console.log(GRIDS);{
square: 'square',
orthogonal: 'orthogonal',
hex: 'hex',
wrap: 'wrap'
}What it prints (run when this page was built)