CARD_BOXconstant
A card is drawn in a box 100 wide and 140 tall, the 5:7 of a poker-size card, and scales to any width.
Import it
import { CARD_BOX } from "@johnmorrisdotca/toranpu/card-backs";
Definition
const CARD_BOX: { readonly width: 100; readonly height: 140; readonly radius: 7; } = { width: 100, height: 140, radius: 7 } as const
Members
| Name | Type | Description |
|---|---|---|
width | 100 | |
height | 140 | |
radius | 7 |
Examples
import { CARD_BOX } from "@johnmorrisdotca/toranpu/card-backs";
console.log(CARD_BOX);{ width: 100, height: 140, radius: 7 }What it prints (run when this page was built)