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

cardMaterialfunction

The material with this id.

Import it

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

Definition

function cardMaterial(id: string | null | undefined): CardMaterial | undefined

Parameters

NameTypeDescription
idstring | null | undefined

A material's id, such as paper-310-black-core (the material attribute's value).

Returns

CardMaterial | undefined

The material, or undefined when there is none with that id (and for null and undefined).

Examples

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

console.log(cardMaterial("aluminium-0.8")?.thicknessMm); // 0.8
console.log(cardMaterial("nothing")); // undefined
0.8
undefined

What it prints (run when this page was built)

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