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

wearPresetfunction

The grade with this id.

Import it

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

Definition

function wearPreset(id: string | null | undefined): WearPreset | undefined

Parameters

NameTypeDescription
idstring | null | undefined

A grade's id, such as near-mint (the wear attribute's value).

Returns

WearPreset | undefined

The grade, or undefined when there is none with that id.

Examples

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

console.log(wearPreset("mint")?.name, wearPreset("pristine")); // Mint undefined
Mint undefined

What it prints (run when this page was built)

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