Skip to content

Type Alias: RollerHandle ​

ts
type RollerHandle = object;

Defined in: src/ui/mount.ts:125

What mountRoller hands back: the tray, driven from code.

Methods ​

roll() ​

ts
roll(): void;

Defined in: src/ui/mount.ts:127

Throw the dice showing, as a tap on the felt does.

Returns ​

void


history() ​

ts
history(): readonly Roll[];

Defined in: src/ui/mount.ts:129

Every roll kept so far, oldest first.

Returns ​

readonly Roll[]


setSpec() ​

ts
setSpec(spec): void;

Defined in: src/ui/mount.ts:131

Change part of the dice, or all of them: a spec with its count, sides, bonus and keep all given, as parseNotation returns, replaces the lot.

Parameters ​

spec ​

Partial<RollSpec>

Returns ​

void


setLocale() ​

ts
setLocale(locale): void;

Defined in: src/ui/mount.ts:133

Change the tray's language: "ja…" for Japanese, anything else for English, with strings still laid over it.

Parameters ​

locale ​

string

Returns ​

void


setCloth() ​

ts
setCloth(cloth): void;

Defined in: src/ui/mount.ts:135

Lay the felt in another cloth, at once, keeping every die and roll: "green", "blue", "red", "black" or "wood".

Parameters ​

cloth ​

"green" | "blue" | "red" | "black" | "wood"

Returns ​

void


setOnePip() ​

ts
setOnePip(colour): void;

Defined in: src/ui/mount.ts:137

Change the colour of a d6's one pip at once: "red" or "black".

Parameters ​

colour ​

"red" | "black"

Returns ​

void


destroy() ​

ts
destroy(): void;

Defined in: src/ui/mount.ts:139

Take the tray out of the page and stop its timers and its sound.

Returns ​

void

MIT © John Morris