SuidoBoxtype
A board's size in the drawing's units: a hundred across a cell.
Import it
import type { SuidoBox } from "@johnmorrisdotca/suido/draw";
Definition
type SuidoBox = {
width: number;
height: number;
};
Members
| Name | Type | Description |
|---|---|---|
width | number | |
height | number |
Examples
import { SUIDO_5X5 } from "@johnmorrisdotca/suido/levels-5x5";
import { decodeLayout } from "@johnmorrisdotca/suido";
import { boxOf } from "@johnmorrisdotca/suido/draw";
import type { SuidoBox } from "@johnmorrisdotca/suido/draw";
const row = SUIDO_5X5[0];
const code = row[0];
const layout = decodeLayout(code)!;
const box = boxOf(layout);
const value: SuidoBox = box;
console.log(value);{ width: 500, height: 500 }What it prints (run when this page was built)