BoardOptions型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The cube, viewing side, home direction and orientation used to calculate board geometry.
インポート
import type { BoardOptions } from "@johnmorrisdotca/sugoroku/draw";
定義
type BoardOptions = {
cube: boolean;
view: Side;
home: "left" | "right";
orientation: Orientation;
};
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
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 |
例
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' }出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。