Skip to the content

Korokoroコロコロ

Roll mixed dice or type notation, compare exact probabilities, keep a history and replay seeded rolls.

Korokoro describes something small rolling in Japanese. About the name

Contents

Reference

Embedded roller and die

import { … } from "@johnmorrisdotca/korokoro/element";

97.2 kB minified and gzipped, with everything it imports (measured with esbuild)

Exports

NameKindWhat it is
defineDiefunctionRegister <korokoro-die>, as that tag unless another is asked for.
defineRollerfunctionRegister the element, as <korokoro-roller> unless another tag is asked for.
DIE_TAGconstantThe die's tag, unless another is asked for.
KorokoroDieclassONE DIE ON ITS OWN, as a custom element:
KorokoroRollerclassThe <korokoro-roller> element.
ROLLER_TAGconstantThe element's tag, unless another is asked for.

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/korokoro 1.16.0.