Skip to the content

Kumimoji組み文字

Build crosswords from seeded English or Japanese tile bags, alone or at a shared table.

Kumimoji means assembled characters in Japanese. About the name

Contents

Reference · Rules, tiles and records

fittedMostfunction

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 it

import { fittedMost } from "@johnmorrisdotca/kumimoji";

Definition

function fittedMost(width: number, height: number): number

Parameters

NameTypeDescription
widthnumber

The available viewport width in pixels.

heightnumber

The available viewport height in pixels.

Returns

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.

Examples

import { fittedMost } from "@johnmorrisdotca/kumimoji";

console.log(fittedMost(640,480));
56

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/kumimoji 1.6.0.