Skip to the content

Toranpuトランプ

Use a deck, play eleven games with computers, solve a solitaire, or display cards in your own design.

Toranpu is Japanese for playing cards. About the name

Contents

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:

<script type="module" src="…/dist/table-define.js"></script>

<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

NameKindWhat it is
defineToranpuTablefunctionRegisters <toranpu-table>, and the card, hand and pile elements, once.
TABLE_CLOTHSconstantTHE CLOTHS A TABLE MAY BE LAID IN: the same five the whole family offers, and itsutsu.com's boards.
TableClothtypeA cloth's name.
ToranpuTableclass<toranpu-table>: ANY OF THE ELEVEN GAMES, READY TO PLAY.

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/toranpu 2.15.0.