ENGLISH_PATTERNconstant
The English pattern, every card and two jokers, drawn in a box 360 by 540. About 700 kB, so it is its own entry point and is loaded only by a page that uses it.
Import it
import { ENGLISH_PATTERN } from "@johnmorrisdotca/toranpu/card-faces/english";
Definition
const ENGLISH_PATTERN: CardDesign
Members
| Name | Type | Description |
|---|---|---|
name | string | The design's name, as |
box | readonly [number, number] | The width and height each card is drawn in. |
art | Readonly<Record<string, string>> | Each card's drawing, by its id. |
fallback (optional) | CardDesign | undefined | Where the set has no drawing for a card, the set that draws it instead; then plain. |
draw (optional) | ((card: string, context: { language: "en" | "ja"; }) => string | null) | undefined | Cards drawn by a function rather than from |
label (optional) | ((card: string, language: "en" | "ja") => string | null | undefined) | undefined | What a screen reader says for a card of the set, in the language asked for; null or nothing for a card the set leaves to its usual name (a standard card), or to its id (any other). |
frame (optional) | "paper" | "none" | undefined | How the card is framed. |
Examples
import { ENGLISH_PATTERN } from "@johnmorrisdotca/toranpu/card-faces/english";
console.log(ENGLISH_PATTERN.name);englishWhat it prints (run when this page was built)