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

normalizeLandingfunction

The landing a value means: face-down (also upside-down and turned-over) is turned over; anything else is still facing up.

Import it

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

Definition

function normalizeLanding(value: string | null | undefined): "face-up" | "face-down"

Parameters

NameTypeDescription
valuestring | null | undefined

The deck-land attribute's value, or nothing.

Returns

"face-up" | "face-down"

face-down or face-up.

Examples

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

console.log(normalizeLanding("turned-over"), normalizeLanding(null), normalizeLanding("sideways")); // face-down face-up face-up
face-down face-up face-up

What it prints (run when this page was built)

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