リファレンス
コレクションと山:計算部分
import { … } from "@johnmorrisdotca/fuda-cards/collection";
リファレンスの説明と例は英語です。見出しと目次は日本語です。
エクスポート
| 名前 | 種類 | 概要 |
|---|---|---|
CollectionCard | 型 | One item of a collection: an id, a name, the front's picture, optionally the back's, its kind and its metadata. |
CollectionKind | 型 | What an item is. |
collectionKinds | 定数 | The two kinds of item, card and object. |
CollectionMetadata | 型 | What a collector writes about a card: its set, year, number, edition, condition, grade, quantity and notes. |
CollectionView | 型 | The name of a display of <fuda-collection>: the view attribute's values. |
collectionViewAliases | 定数 | Display names that earlier versions accepted and that now open another display, so a page that sets them keeps working. |
collectionViews | 定数 | The ten displays, in the order the buttons show them, each with the label on its button. |
DeckLanding | 型 | 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. |
deckLandings | 定数 | The two ways a card can land, with the label on each button: face-up (still facing up) and face-down (turned over sideways on the way). |
fanLayout | 関数 | Where the cards of a fan lie: each card turns eleven degrees more than the one before, up to 110 degrees from the first to the last, centred on the pile. |
FanPlace | 型 | Where one card of a fan lies, first card on the left when open and on top when closed. |
isCard | 関数 | Whether an item is a card: anything that does not say it is an object. |
movePage | 関数 | The first card of the page that is delta pages away, wrapping round at either end. |
normalizeLanding | 関数 | The landing a value means: face-down (also upside-down and turned-over) is turned over; anything else is still facing up. |
parseCollection | 関数 | Check a collection and make it the shape the element draws: an array of cards, or an object with a cards array. |
randomDrawIndex | 関数 | Choose a card whose name contains the filter, avoiding the current card when another match exists. |
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。