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
| Name | Type | Description |
|---|---|---|
angle | number | |
x | number | |
y | number | |
closedAngle | number | |
closedX | number | |
closedY | number |
Examples
import { fanLayout, type FanPlace } from "@johnmorrisdotca/fuda-cards/collection";
const first: FanPlace = fanLayout(5)[0];
console.log(first.angle); // -22-22What it prints (run when this page was built)