Reference · SVG faces and looks
TILE_BOXconstant
The box a solid tile is drawn in, in the face's units: the face, its thickness down and to the left, and a margin for the outlines.
Import it
import { TILE_BOX } from "@johnmorrisdotca/jarajara/faces";
Definition
const TILE_BOX: { readonly x: number; readonly y: -1; readonly width: number; readonly height: number; } = { x: -(TILE_DEPTH + 1), y: -1, width: 30 + TILE_DEPTH + 2, height: 40 + TILE_DEPTH + 2 } as const
Members
| Name | Type | Description |
|---|---|---|
x | number | |
y | -1 | |
width | number | |
height | number |
Examples
import { TILE_BOX } from "@johnmorrisdotca/jarajara/faces";
console.log(TILE_BOX);{ x: -6, y: -1, width: 37, height: 47 }What it prints (run when this page was built)