CardFaceOptionstype
How a face is drawn. Every field may be left out.
Import it
import type { CardFaceOptions } from "@johnmorrisdotca/toranpu/card-faces";
Definition
type CardFaceOptions = {
design?: "plain" | "four-colour" | CardDesign | (string & {});
width?: number;
title?: string;
language?: Language;
};
Members
| Name | Type | Description |
|---|---|---|
design (optional) | "plain" | "four-colour" | CardDesign | (string & {}) | undefined |
|
width (optional) | number | undefined | The width to draw at, in pixels; the height is 1.4 times it. Unless said, the drawing fills what holds it. |
title (optional) | string | undefined | What a screen reader says. Unless said, the card's name in |
language (optional) | Language | undefined | The language of the card's name, and of a joker's corner word: |
Examples
import type { CardFaceOptions } from "@johnmorrisdotca/toranpu/card-faces";
const value: CardFaceOptions = { design: "four-colour", width: 80, language: "ja" };
console.log(value.design);four-colourWhat it prints (run when this page was built)