本文へ移動

Fuda Cards札

画像やライブ3Dを入れるコレクション用のカード枠です。本物の厚み、縁、箔、山、傷み、バインダーを、2つのWebコンポーネントで使えます。

「札(ふだ)」は、カードや札を指す日本語です。 名前について(英語)

目次

リファレンス

コレクションと山:計算部分

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.

ソースを見るGitHub で編集@johnmorrisdotca/fuda-cards 0.11.0 のソースから作成しました。

この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。