リファレンス
遊べる盤
import { … } from "@johnmorrisdotca/suido/play";
最小化と gzip 圧縮をしたサイズは 15.7 kB(読み込むものをすべて含み、esbuild で計測)
リファレンスの説明と例は英語です。見出しと目次は日本語です。
Suido, played in a page: mountSuido draws a board into any element and
plays it by tap, mouse and keyboard, with the water flowing as pipes join, a
hint, Start over, and the words in English and Japanese. A separate entry
(@johnmorrisdotca/suido/play), so a server never loads any of it.
エクスポート
| 名前 | 種類 | 概要 |
|---|---|---|
ensureSuidoPlayStyle | 関数 | Put the style in the page once: in the document's head, or in the shadow root the host is in. |
mountSuido | 関数 | Draw a board into host and play it. |
SUIDO_PLAY_STYLE | 定数 | THE STYLE a playable Suido board wears (mountSuido, <suido-board>): the drawing's own (SUIDO_STYLE) and the board's box, its chips, its lines of words and its buttons. |
SUIDO_STRINGS | 定数 | The native English and Japanese labels, announcements and interpolation templates. |
SuidoEventDetail | 型 | What a mounted board tells of itself in every event. |
SuidoLanguage | 型 | THE WORDS A SUIDO BOARD SAYS, in English and Japanese: what a screen reader hears of each cell, the buttons and the lines of words under a playable board, and what each twist means. |
suidoLanguageOf | 関数 | The language a piece of text is in: Japanese for anything starting ja, English for everything else. |
SuidoMount | 型 | The native mounted board, its game and view, actions and cleanup methods. |
SuidoMountOptions | 型 | The initial puzzle, native controls, language and event callbacks for mounting a board. |
suidoSay | 関数 | A line in a language, with its values filled in; the line itself if there is none by that name. |
SuidoTurning | 型 | The way a tap turns a piece. |
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。