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
| Name | Type | Description |
|---|---|---|
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);30What it prints (run when this page was built)