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 · Card designs

registeredCardDesignsfunction

The names of the designs registered now, in the order they were.

Import it

import { registeredCardDesigns } from "@johnmorrisdotca/toranpu/card-faces";

Definition

function registeredCardDesigns(): string[]

Returns

string[]

The names of the designs registered now, in the order they were.

Examples

import { registerCardDesign, registeredCardDesigns, unregisterCardDesign } from "@johnmorrisdotca/toranpu/card-faces";

registerCardDesign({ name: "docs-face", box: [100, 140], art: { "docs-card": `<circle cx="50" cy="70" r="20"/>` } });
console.log(registeredCardDesigns());
unregisterCardDesign("docs-face");
[ 'docs-face' ]

What it prints (run when this page was built)

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