Reference · Dice and card dressing
TenkaDressingOptionstype
What tenkaDressing may be given. Everything is optional.
Import it
import type { TenkaDressingOptions } from "@johnmorrisdotca/tenka/dressing";
Definition
type TenkaDressingOptions = {
sound?: boolean;
tumbleMs?: number;
back?: CardBackOptions;
};
Members
| Name | Type | Description |
|---|---|---|
sound (optional) | boolean | undefined | Whether a throw makes the sound of dice: off unless asked, because a page that has not asked for noise gets none. |
tumbleMs (optional) | number | undefined | How long the dice tumble before they land, in milliseconds: 600 unless said. 0 lands them at once. A device that asks for reduced motion lands them at once whatever this says. |
back (optional) | CardBackOptions | undefined | Tenka's own back for the deck is drawn in the table's green, with the character 天 in the middle; say any of its colours or its mark here to change it. |
Examples
import type { TenkaDressingOptions } from "@johnmorrisdotca/tenka/dressing";
const value: TenkaDressingOptions = {sound:false,tumbleMs:200};
console.log(value);{ sound: false, tumbleMs: 200 }What it prints (run when this page was built)