リファレンス
遊べる立体表面の迷路
import { … } from "@johnmorrisdotca/meikyuu/3d/play";
最小化と gzip 圧縮をしたサイズは 30.2 kB(読み込むものをすべて含み、esbuild で計測)
リファレンスの説明と例は英語です。見出しと目次は日本語です。
A maze over a solid, played in a page: mountSolid draws a cube, a globe or a solid of triangles with a maze over its surface into any element and
plays it by touch and mouse. A separate entry (@johnmorrisdotca/meikyuu/3d/play), so a server never loads any of it.
エクスポート
| 名前 | 種類 | 概要 |
|---|---|---|
ensureSolidStyle | 関数 | Put the style of the solid in the page once, beside the board's. |
mountSolid | 関数 | Draw a maze over a solid into host and play it. |
SOLID_PLAY_STYLE | 定数 | THE STYLE a playable solid wears beside the board's own (MEIKYUU_PLAY_STYLE): the canvas fills the box, the box is grabbed rather than drawn on, and the turn pad sits in a row. |
SolidCellPlace | 型 | Where a cell is on the picture, in pixels from the top left of the box. |
SolidEventDetail | 型 | What every event tells of the board. |
SolidMount | 型 | The mounted surface maze, game, rotation/zoom controls, native progress and cleanup handle. |
SolidMountOptions | 型 | A PLAYABLE MAZE OVER A SOLID IN ANY PAGE: mountSolid(host, { recipe }) draws a cube, a globe or a solid of triangles with a maze over the whole of its surface, and plays it by touch and mouse. |
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。