fittedMost関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The largest a fitted tile is drawn in a table this big. tileMost in any
table up to growsFrom across its shorter side, which is every phone's and
the Regular desk table; past that, in proportion, so a table the player asked
to be Large or Full (BoardScale) draws bigger squares rather than only more
of them — never past what a hand may zoom to.
インポート
import { fittedMost } from "@johnmorrisdotca/kumimoji";
定義
function fittedMost(width: number, height: number): number
引数
| 名前 | 型 | 説明 |
|---|---|---|
width | number | The available viewport width in pixels. |
height | number | The available viewport height in pixels. |
戻り値
number
The largest a fitted tile is drawn in a table this big. tileMost in any table up to growsFrom across its shorter side, which is every phone's and the Regular desk table; past that, in proportion, so a table the player asked to be Large or Full (BoardScale) draws bigger squares rather than only more of them — never past what a hand may zoom to.
例
import { fittedMost } from "@johnmorrisdotca/kumimoji";
console.log(fittedMost(640,480));56出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。