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 · Collections and piles: pure helpers

CollectionCardtype

One item of a collection: an id, a name, the front's picture, optionally the back's, its kind and its metadata.

Import it

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

Definition

interface CollectionCard {
    id: string;
    name: string;
    image: string;
    backImage?: string;
    kind?: CollectionKind;
    metadata?: CollectionMetadata;
}

Members

NameTypeDescription
idstring
namestring
imagestring
backImage (optional)string | undefined
kind (optional)CollectionKind | undefined
metadata (optional)CollectionMetadata | undefined

Examples

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

const card: CollectionCard = { id: "1", name: "Explorer One", image: "front.jpg", backImage: "back.jpg" };
console.log(card.name); // Explorer One
Explorer One

What it prints (run when this page was built)

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