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

PartOptionstype

How a parted hand is laid out.

Import it

import type { PartOptions } from "@johnmorrisdotca/toranpu/element";

Also exported from: @johnmorrisdotca/toranpu/element/define

Definition

type PartOptions = {
    gap?: number;
    lift?: number;
    peek?: number;
};

Members

NameTypeDescription
gap (optional)number | undefined

The room left on each side of the parted card, in card widths. Unless said, 0.12.

lift (optional)number | undefined

How far the parted card is lifted above the rest, in card widths. Unless said, 0.2.

peek (optional)number | undefined

The least the cards of a group may lie apart, squared up as they close in. Unless said, 0.04.

Examples

import type { PartOptions } from "@johnmorrisdotca/toranpu/element";

const value: PartOptions = { gap: 30, lift: 10 };
console.log(value.gap);
30

What it prints (run when this page was built)

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