Reference
Register table tag
import { … } from "@johnmorrisdotca/toranpu/table/define";
263.4 kB minified and gzipped, with everything it imports (measured with esbuild)
<toranpu-table>, registered by being imported:
<toranpu-table game="hearts"></toranpu-table>
Like element-define, the one kind of module here that does something when imported, and package.json says so.
Exports
| Name | Kind | What it is |
|---|---|---|
defineToranpuTable | function | Registers <toranpu-table>, and the card, hand and pile elements, once. |
TABLE_CLOTHS | constant | THE CLOTHS A TABLE MAY BE LAID IN: the same five the whole family offers, and itsutsu.com's boards. |
TableCloth | type | A cloth's name. |
ToranpuTable | class | <toranpu-table>: ANY OF THE ELEVEN GAMES, READY TO PLAY. |