Reference · Dice and card dressing
tenkaCardDesignfunction
Tenka's cards as a Toranpu design: ask Toranpu for tenkaCardId(map, territory) in this design and it draws the
territory's shape and name with its army's symbol, on its paper and in its frame. Register it
(registerCardDesign(tenkaCardDesign())) for <toranpu-card design="tenka"> and the rest of Toranpu's elements to
draw Tenka's cards by id.
Import it
import { tenkaCardDesign } from "@johnmorrisdotca/tenka/dressing";
Definition
function tenkaCardDesign(): CardDesign
Returns
CardDesign
Tenka's cards as a Toranpu design: ask Toranpu for tenkaCardId(map, territory) in this design and it draws the territory's shape and name with its army's symbol, on its paper and in its frame. Register it (registerCardDesign(tenkaCardDesign())) for <toranpu-card design="tenka"> and the rest of Toranpu's elements to draw Tenka's cards by id.
Examples
import { tenkaCardDesign } from "@johnmorrisdotca/tenka/dressing";
console.log(tenkaCardDesign().name);tenkaWhat it prints (run when this page was built)