SugorokuLook型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
How the board looks, apart from the game.
インポート
import type { SugorokuLook } from "@johnmorrisdotca/sugoroku/play";
定義
type SugorokuLook = {
board?: SugorokuBoardName;
checkers?: SugorokuCheckerSetName;
colours?: Partial<SugorokuColours>;
theme?: "auto" | "light" | "dark";
home?: "left" | "right";
view?: Side | "auto";
numbers?: boolean;
orientation?: Orientation | "auto";
};
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
board (省略可) | SugorokuBoardName | undefined | |
checkers (省略可) | SugorokuCheckerSetName | undefined | |
colours (省略可) | Partial<SugorokuColours> | undefined | |
theme (省略可) | "auto" | "light" | "dark" | undefined | |
home (省略可) | "left" | "right" | undefined | Which end of the board the trays are at. |
view (省略可) | Side | "auto" | undefined | Whose home board is at the bottom: |
numbers (省略可) | boolean | undefined | Numbers on the points. |
orientation (省略可) | Orientation | "auto" | undefined |
|
例
import type { SugorokuLook } from "@johnmorrisdotca/sugoroku/play";
const value: SugorokuLook = {board:"green",checkers:"contrast",numbers:true};
console.log(value);{ board: 'green', checkers: 'contrast', numbers: true }出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。