本文へ移動

Meikyuu迷宮

シード付きの迷路と矢印パズルを作り、番号付きの問題を進め、平面や立体表面で遊べます。

「迷宮」は迷路のように入り組んだ場所を表す言葉です。 名前について(英語)

目次

リファレンス · パズルの要素

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); // 0
0

出力(このページを作ったときに実行した結果)

ソースを見るGitHub で編集@johnmorrisdotca/meikyuu 3.2.0 のソースから作成しました。

この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。