Reference · SVG boards and notation
BoardOptionstype
The cube, viewing side, home direction and orientation used to calculate board geometry.
Import it
import type { BoardOptions } from "@johnmorrisdotca/sugoroku/draw";
Definition
type BoardOptions = {
cube: boolean;
view: Side;
home: "left" | "right";
orientation: Orientation;
};
Members
| Name | Type | Description |
|---|---|---|
cube | boolean | Whether the board has a rail for the doubling cube. |
view | Side | Which side's home board is at the bottom of the drawing. |
home | "left" | "right" | Which end the trays are at. |
orientation | Orientation |
Examples
import type { BoardOptions } from "@johnmorrisdotca/sugoroku/draw";
const value: BoardOptions = {cube:true,view:"white",home:"right",orientation:"landscape"};
console.log(value);{ cube: true, view: 'white', home: 'right', orientation: 'landscape' }What it prints (run when this page was built)