layoutFor関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The layout a size names, or null for one there is not.
インポート
import { layoutFor } from "@johnmorrisdotca/jarajara";
定義
function layoutFor(size: number): MahjongLayout | null
引数
| 名前 | 型 | 説明 |
|---|---|---|
size | number | The native layout size identifier, measured in tiles across. |
戻り値
MahjongLayout | null
The layout a size names, or null for one there is not.
例
import { layoutFor } from "@johnmorrisdotca/jarajara";
console.log(layoutFor(4)?.key);tiny出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。