Skip to the content

Fuda Cards札

Collectible card frames for images and live 3D: a true thickness, an edge, foil, stacks, wear and a binder, as two web components.

Fuda is the Japanese word 札 for a card or a tag. About the name

Contents

Reference · Options, materials, stacks and wear

CardMaterialGrouptype

The kind of stock a material is: plain paper card, plastic, a thick trading-card stock or metal.

Import it

import type { CardMaterialGroup } from "@johnmorrisdotca/fuda-cards";

Definition

type CardMaterialGroup = "paper" | "plastic" | "thick-card" | "metal";

Examples

import { cardMaterials, type CardMaterialGroup } from "@johnmorrisdotca/fuda-cards";

const group: CardMaterialGroup = "metal";
console.log(cardMaterials.filter((material) => material.group === group).map((material) => material.id)); // [ 'aluminium-0.8', 'steel-0.5' ]
[ 'aluminium-0.8', 'steel-0.5' ]

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/fuda-cards 0.11.0.