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

CollectionKindtype

What an item is. A card (the default, so every collection written before this field existed is still cards) is a flat, thin card with a back: it turns in 3D, can be seen from behind and lands turned over when taken off a pile. An object is a picture of a thing that is not a card, such as a games console: it has no back and no thickness, so it never turns over, is never seen from behind or edge-on, and always lands facing up. (A real 3D object would be a third kind; none can be given as an image yet.)

Import it

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

Definition

type CollectionKind = "card" | "object";

Examples

import { collectionKinds, type CollectionKind } from "@johnmorrisdotca/fuda-cards/collection";

const kind: CollectionKind = "object";
console.log(collectionKinds.includes(kind)); // true
true

What it prints (run when this page was built)

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