@johnmorrisdotca/fuda-cards 0.6.1 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +21 -5
- package/dist/binder.d.ts +52 -0
- package/dist/binder.js +115 -0
- package/dist/collection-element.d.ts +32 -3
- package/dist/collection-element.js +294 -83
- package/dist/collection.d.ts +3 -0
- package/dist/collection.js +6 -3
- package/dist/element.d.ts +19 -0
- package/dist/element.js +35 -6
- package/dist/pile-card.d.ts +17 -0
- package/dist/pile-card.js +223 -0
- package/dist/pile.d.ts +45 -2
- package/dist/pile.js +68 -8
- package/dist/zoom.d.ts +8 -0
- package/dist/zoom.js +34 -3
- package/docs/collection-displays.md +28 -6
- package/package.json +1 -1
|
@@ -2,12 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
Fuda supplies reusable frames for a caller's cards and reusable ways to display collections on websites. The hosting site supplies the card data and artwork or interactive content. Initial versions of twelve layouts now exist in `<fuda-collection>`. They are prototypes; the detailed capabilities below remain design goals unless described as implemented in the README.
|
|
4
4
|
|
|
5
|
-
## Choosing a display, the
|
|
5
|
+
## Choosing a display, piles, the fan and animation (0.6.0, 0.7.0)
|
|
6
6
|
|
|
7
7
|
- **Display buttons.** All twelve displays are buttons on screen at once, in a row that spans the width, each with a small picture of its layout. No drop-down. At least 48 px high; 4 to a row on a phone, 6 on a desk; arrow keys move the choice; light and dark follow the reader.
|
|
8
|
-
- **
|
|
9
|
-
- **
|
|
10
|
-
-
|
|
8
|
+
- **Piles (0.7.0).** The Overlapping Deck, Random Draw, the Jukebox Carousel and the Flip Tower (the last three drew a pile of three cards) are the same pile with their own look. Every pile turns in 3D (angle, tilt, Auto-turn), fans open and closed, and has a card taken off it. `<fuda-card stack>` is a pile too. Rolodex and Spotlight spread their cards and are carousels, not piles.
|
|
9
|
+
- **Deck.** A deck and a pile. Next flips the top card off to the pile on the deck's other side, Previous brings it back. The landing is a choice: still facing up, or turned over (a sideways turn about the card's vertical axis, like turning a page, showing the back image or the package's own back). A card never lands with its picture on its head; the 0.6.0 value `upside-down` still works and means turned over. One element flies, so a card is never drawn twice.
|
|
10
|
+
- **Fan.** Every pile fans open and closed with a control right under the view: up to ten cards in an arc, most of each card showing, closing back exactly. `view="fan"` is the same pile with only the fan. In the address (`?fan=open`).
|
|
11
|
+
- **Animate (0.7.0).** `animate="off"` and `speed` for every move: the fan, a card taken off, Next in the carousels, a binder page turn, a switch of display, a pan to the card in the wall, story and atlas. On when the attribute is missing; reduced motion always wins. One shared timing, CSS transforms and one-shot animations, nothing running when idle. Moves with it on and off end in exactly the same place.
|
|
12
|
+
- Not done: dealing more than one card at a time, a pile that fills up with the whole discard history (the pile shows the last ten), wear on the cards of a fan.
|
|
11
13
|
|
|
12
14
|
## Zoom, Fit and move (every view)
|
|
13
15
|
|
|
@@ -18,10 +20,30 @@ Every view has the shared view controls (`@johnmorrisdotca/kazoku-ui`) on the vi
|
|
|
18
20
|
- Changing the card, the page or the view type is separate from zoom: paging keeps the zoom and the position, zooming keeps the page, and choosing another view type starts that view at its opening size.
|
|
19
21
|
- The controls sit under the view. Keep what is above the viewer short so they are on the first screen; `--fuda-stage-height` sets the view's height.
|
|
20
22
|
|
|
23
|
+
## Real-life audit (0.8.0)
|
|
24
|
+
|
|
25
|
+
Every display and option against how real cards are kept and handled: **real**, **fine as a demo idea** (no real counterpart, but it helps a reader see or reach cards on a screen) or **wrong** (fixed or removed).
|
|
26
|
+
|
|
27
|
+
Displays
|
|
28
|
+
- Overlapping Deck: real (a deck on a table; a card comes off it). Kept; Random Draw: real (draw a card from a shuffled deck). Kept. Fan of Cards: real (a hand). Kept.
|
|
29
|
+
- Binder Pages: real (nine-pocket sheets in a ring or zip binder), the old drawing was **wrong** (a flat tilted grid with no pockets, holes or binder). Rebuilt in 0.8.0.
|
|
30
|
+
- Convention Display Case: real (cards on risers behind glass), the old drawing was weak (tilted pictures on a gradient). Kept, with a wooden frame, a glass lid and a ledge under each card; still a demo, not a full riser model.
|
|
31
|
+
- Rolodex: a real rotary card file, but ours is three cards leaning like a hand, not a wheel. Fine as a demo idea; kept.
|
|
32
|
+
- Sliding Gallery Wall: real (cards hung in a row on a wall). Spotlight Carousel: a lit stand with neighbours, fine as a demo idea. Vertical Story Scroll: no physical counterpart (a phone feed of cards), fine as a demo idea and useful on a phone.
|
|
33
|
+
- Infinite Card Atlas: "infinite" was **wrong** (the collection is finite); the real thing is all the cards laid out on a table. Kept and renamed **Card Table** (`view="atlas"` unchanged).
|
|
34
|
+
- Jukebox Carousel and Flip Tower: **wrong**. A jukebox plays records, not cards; nothing real is a "flip tower"; both drew exactly the deck's pile of three cards. Removed from the demo and the buttons; `view="jukebox"` and `view="tower"` still open the deck (`collectionViewAliases`).
|
|
35
|
+
|
|
36
|
+
Options
|
|
37
|
+
- Fan open and closed, a card taken off still facing up or turned over (sideways), deck messiness and seed, binder ring or zip, plain covers, clear or black sheets, 4, 9 or 12 pockets, material, thickness, stack counts, wear, foil or matt finish: **real**.
|
|
38
|
+
- "Upside down" landing: **wrong** (nobody turns a card half way round in its plane); removed in 0.6.1, the value `upside-down` still means turned over.
|
|
39
|
+
- Animate, Speed, zoom, Fit, move, the address, Image motion (a slow pan over a tall picture) and Autoplay: no real counterpart, **fine as demo ideas**.
|
|
40
|
+
- Card rotation (a turntable) and its speed and direction: real for a display stand; spin around the bottom corner: no real counterpart, kept because John asked for it, **fine as a demo idea**.
|
|
41
|
+
- Card style (classic, silver sport, cosmic violet): fine as frames, not a real product.
|
|
42
|
+
|
|
21
43
|
## Binder and booklet
|
|
22
44
|
|
|
23
|
-
-
|
|
24
|
-
-
|
|
45
|
+
- Done in 0.8.0: `view="binder"` is a ring or zip binder open on two facing sheets of 4, 9 (the default, three by three) or 12 clear plastic pockets, on a clear or black sheet with a punched-hole strip against the rings, a plain cover colour, and a sideways page turn about the spine that bends the leaf and shows its back pockets. The older `page-size` and `columns` still set the grid.
|
|
46
|
+
- Not done: booklet and album (side-loading) pages, a binder with more than one section.
|
|
25
47
|
- Multiple named collections or binders, with their own cards, ordering, and optional titles and covers.
|
|
26
48
|
- Page controls that work with keyboard and touch, with a reduced-motion alternative.
|
|
27
49
|
- Present each card's front and back, and preserve interaction with any 3D viewer in the card window. Page turning, card flipping, and rotating an object must be distinct actions.
|