Skip to the content

Toranpuトランプ

Use a deck, play eleven games with computers, solve a solitaire, or display cards in your own design.

Toranpu is Japanese for playing cards. About the name

Contents

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

NameTypeDescription
small46
medium70
large104

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)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/toranpu 2.15.0.