Reference · SVG boards and notation
Boxtype
A box: where something is, in landscape units before any turning.
Import it
import type { Box } from "@johnmorrisdotca/sugoroku/draw";
Definition
type Box = {
x: number;
y: number;
w: number;
h: number;
};
Members
| Name | Type | Description |
|---|---|---|
x | number | |
y | number | |
w | number | |
h | number |
Examples
import type { Box } from "@johnmorrisdotca/sugoroku/draw";
const value: Box = {x:0,y:0,w:100,h:100};
console.log(value);{ x: 0, y: 0, w: 100, h: 100 }What it prints (run when this page was built)