MeikyuuElementOptions型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
Host callbacks; the same actions emit native events.
インポート
import type { MeikyuuElementOptions } from "@johnmorrisdotca/meikyuu/element";
ほかのエクスポート元: @johnmorrisdotca/meikyuu/element/define
定義
type MeikyuuElementOptions = Pick<MeikyuuMountOptions, "onMove" | "onSolve" | "onKey" | "onUnlock" | "onBump" | "onLose" | "onStones" | "wall" | "line" | "board" | "trail" | "recipe">;
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
board (省略可) | MeikyuuBoardLook | "paper" | "wood" | "green" | "blue" | "red" | "black" | undefined | A board by name, or its colours. |
recipe (省略可) | string | MazeRecipe | ArrowRecipe | MixedRecipe | undefined | A recipe of your own, as its code or as an object, instead of a level. |
trail (省略可) | "green" | "blue" | "red" | "violet" | "orange" | (string & {}) | undefined | The line's colour: one of the named ones, or any CSS colour. |
wall (省略可) | number | undefined | The thickness of a wall, in cells. Default 0.12. |
line (省略可) | number | undefined | The thickness of the line, in cells. Default 0.34. |
onMove (省略可) | ((detail: MeikyuuEventDetail) => void) | undefined | |
onSolve (省略可) | ((detail: MeikyuuEventDetail) => void) | undefined | |
onKey (省略可) | ((detail: MeikyuuEventDetail) => void) | undefined | |
onUnlock (省略可) | ((detail: MeikyuuEventDetail) => void) | undefined | |
onBump (省略可) | ((detail: MeikyuuEventDetail) => void) | undefined | |
onLose (省略可) | ((detail: MeikyuuEventDetail) => void) | undefined | |
onStones (省略可) | ((detail: MeikyuuEventDetail) => void) | undefined | A stone was laid or taken up, or the stones were cleared, restarted or undone. |
例
import type { MeikyuuElementOptions } from "@johnmorrisdotca/meikyuu/element";
const options: MeikyuuElementOptions = {};
console.log(Object.keys(options).length); // 00出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。