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

FanPlacetype

Where one card of a fan lies, first card on the left when open and on top when closed. angle, x and y are the open fan, spread like a hand of playing cards (turn in degrees, across in card widths, down in card widths); the closed ones are the squared-up deck it starts from and closes back to.

Import it

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

Definition

interface FanPlace {
    angle: number;
    x: number;
    y: number;
    closedAngle: number;
    closedX: number;
    closedY: number;
}

Members

NameTypeDescription
anglenumber
xnumber
ynumber
closedAnglenumber
closedXnumber
closedYnumber

Examples

import { fanLayout, type FanPlace } from "@johnmorrisdotca/fuda-cards/collection";

const first: FanPlace = fanLayout(5)[0];
console.log(first.angle); // -22
-22

What it prints (run when this page was built)

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