Reference · SVG faces and looks
tileBackSvgfunction
One tile's back on its own, as a whole <svg> in the same box as tileSvg: the back plate over a solid block, its
thickness showing on two sides (the back plate's own colour, with the ivory layer beyond it). With flat, the old
look (a sliver of side in 32 by 42) and with bare the back alone in 30 by 40, for a page that gives the tile its
thickness itself. Null for a name that is no back drawn here and no design to bring it.
Import it
import { tileBackSvg } from "@johnmorrisdotca/jarajara/faces";
Definition
function tileBackSvg(name?: TileBackName, options?: TileBackOptions & { flat?: boolean; bare?: boolean; mirror?: TileMirror; }): string | null
Parameters
| Name | Type | Description |
|---|---|---|
name (optional) | TileBackName | The local seat name, back name or design name specified by this signature. |
options (optional) | TileBackOptions & { flat?: boolean; bare?: boolean; mirror?: TileMirror; } | Native game, SVG, sound or presentation options. |
Returns
string | null
A complete SVG back string, or null for a name without a supported back.
Examples
import { tileBackSvg } from "@johnmorrisdotca/jarajara/faces";
console.log(tileBackSvg("jade")?.startsWith("<svg"));trueWhat it prints (run when this page was built)