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

unregisterCardDesignfunction

Forget a registered design. Does nothing for a name never registered.

Import it

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

Definition

function unregisterCardDesign(name: string): void

Parameters

NameTypeDescription
namestring

The registered card design or card-back name.

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.