Reference · Cards, hands and piles
ELEMENT_SIZESconstant
The sizes every element takes, as a card's width in pixels.
Import it
import { ELEMENT_SIZES } from "@johnmorrisdotca/toranpu/element";
Also exported from: @johnmorrisdotca/toranpu/element/define
Definition
const ELEMENT_SIZES: { readonly small: 46; readonly medium: 70; readonly large: 104; } = { small: 46, medium: 70, large: 104 } as const
Members
| Name | Type | Description |
|---|---|---|
small | 46 | |
medium | 70 | |
large | 104 |
Examples
import { ELEMENT_SIZES } from "@johnmorrisdotca/toranpu/element";
console.log(ELEMENT_SIZES);{ small: 46, medium: 70, large: 104 }What it prints (run when this page was built)