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 · Cards, hands and piles

defineToranpuElementsfunction

Register the elements under their tags, once; a tag already taken is left as it is. Does nothing where there are no custom elements, as on a server.

Import it

import { defineToranpuElements } from "@johnmorrisdotca/toranpu/element";

Also exported from: @johnmorrisdotca/toranpu/element/define

Definition

function defineToranpuElements(): void

Examples

import { defineToranpuElements } from "@johnmorrisdotca/toranpu/element";
defineToranpuElements();
console.log(typeof defineToranpuElements); // function
function

What it prints (run when this page was built)

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