Reference · SVG faces and looks
layoutBoxfunction
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 it
import { layoutBox } from "@johnmorrisdotca/jarajara/faces";
Definition
function layoutBox(size: number): { width: number; height: number; } | null
Parameters
| Name | Type | Description |
|---|---|---|
size | number | The native layout size identifier, measured in tiles across. |
Returns
{ 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.
Examples
import { layoutBox } from "@johnmorrisdotca/jarajara/faces";
console.log(layoutBox(4));{ width: 140, height: 60 }What it prints (run when this page was built)