KazuMountSettings型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
Everything about how a mounted board plays that can change while it is on the page.
インポート
import type { KazuMountSettings } from "@johnmorrisdotca/kazu/play";
定義
type KazuMountSettings = Pick<KazuMountOptions, "hints" | "check" | "conflicts" | "peers" | "tidy" | "tapToStep" | "language" | "clock" | "controls">;
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
hints (省略可) | "place" | "show" | "off" | undefined | What Hint does: |
check (省略可) | "show" | "off" | "count" | undefined | What Check does: |
conflicts (省略可) | boolean | undefined | Draw the cells that break a rule in red as they are made. Default true. |
peers (省略可) | boolean | undefined | Wash the chosen cell's row, column and group, and the cells holding its number. Default true. |
tidy (省略可) | boolean | undefined | A number written takes itself out of the pencil marks of the cells it shares a group with. Default true. |
tapToStep (省略可) | boolean | undefined | A tap on the chosen cell steps its number on. Default true. |
language (省略可) | KazuLanguage | undefined | The language the words are in. Left out, the host's own |
clock (省略可) | boolean | undefined | Show the clock, which starts on the first entry. Default true. |
controls (省略可) | boolean | undefined | The number pad and the buttons under the board. Default true. |
例
import type { KazuMountSettings } from "@johnmorrisdotca/kazu/play";
const value: KazuMountSettings = {language:"ja",hints:"off"};
console.log(value);{ language: 'ja', hints: 'off' }出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。