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 · The <fuda-collection> element

CollectionLivetype

Live 3D in a collection's cards: the shared cards from createLiveCards and the 3D item of a card, if it has one. See docs/live-3d.md.

Import it

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

Definition

interface CollectionLive {
    cards: LiveCards<never>;
    item(card: CollectionCard): LiveItem<never> | undefined;
}

Members

NameTypeDescription
cardsLiveCards<never>
item(card: CollectionCard): LiveItem<never> | undefined

Examples

import type { CollectionLive } from "@johnmorrisdotca/fuda-cards/collection-element";
import { createLiveCards } from "@johnmorrisdotca/fuda-cards/live-3d";

const live: CollectionLive = { cards: createLiveCards({ load: () => import("three") }) as never, item: () => undefined };
console.log(typeof live.item);

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