layoutBox関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The drawing's width and height for a layout's size, room left for the thickness and the layers. Null for a size with no layout. The same in every view.
インポート
import { layoutBox } from "@johnmorrisdotca/jarajara/faces";
定義
function layoutBox(size: number): { width: number; height: number; } | null
引数
| 名前 | 型 | 説明 |
|---|---|---|
size | number | The native layout size identifier, measured in tiles across. |
戻り値
{ width: number; height: number; } | null
The drawing's width and height for a layout's size, room left for the thickness and the layers. null for a size with no layout. The same in every view.
例
import { layoutBox } from "@johnmorrisdotca/jarajara/faces";
console.log(layoutBox(4));{ width: 140, height: 60 }出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。