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

DeckLandingtype

How a card taken off a pile lands on the pile at its side: still facing up, or turned over sideways (as a person turns a card, like a page) to show its back. upside-down was a 0.6.0 value that spun the picture half way round in its plane; it is still accepted and means face-down, so nothing breaks. A card never ends with its picture on its head.

Import it

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

Definition

type DeckLanding = "face-up" | "face-down" | "upside-down";

Examples

import { normalizeLanding, type DeckLanding } from "@johnmorrisdotca/fuda-cards/collection";

const old: DeckLanding = "upside-down";
console.log(normalizeLanding(old)); // face-down
face-down

What it prints (run when this page was built)

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