本文へ移動

Fuda Cards札

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

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

目次

リファレンス

設定、素材、山、傷み

import { … } from "@johnmorrisdotca/fuda-cards";

リファレンスの説明と例は英語です。見出しと目次は日本語です。

エクスポート

名前種類概要
cardAttributes関数The attributes of a <fuda-card> for these options, ready to set one by one (element.setAttribute(name, value)): names are the kebab-case of the option's, a true boolean is the empty string (the attribute is present) and a false one, like anything that is undefined or null, is left out.
CardFinish型A card's finish: foil catches the light and shows a rainbow in its frame, matte does not.
cardFinishes定数The two finishes, foil and matte.
cardMaterial関数The material with this id.
CardMaterial型A card material: a stock or a metal with a thickness read from a maker or a standard, and the colour its edge is drawn in.
CardMaterialGroup型The kind of stock a material is: plain paper card, plastic, a thick trading-card stock or metal.
cardMaterials定数Every material the package knows, each with a thickness and the page it was read from.
CardMaterialSource型Where a number was read: the maker's or the standard's page, and what it says there.
CardOptions型Every setting of <fuda-card> as an object.
CardVariant型A card's look: classic gold, silver sport or cosmic violet.
cardVariants定数The three looks, in the order the studio offers them.
CornerKind型How a corner is worn: sharp, softened, rounded, chipped or folded.
DEFAULT_CARD_THICKNESS_MM定数The thickness of a card that names no material or thickness: a playing card's black-core stock, 13 pt, 0.325 mm (Qin Printing, Black Core Paper 310 gsm, 0.325 mm).
mmPerPoint定数One thousandth of an inch ("pt" in card and paper trade talk) in millimetres, 0.0254: a 13 pt card is 13 × 0.0254 mm.
stackHeightMm関数The height of a stack of cards, in millimetres: the count times the thickness of one, to a thousandth of a millimetre.
stackLayout関数Where the cards of a stack lie, from neat to messy, the same every time for the same seed: the cards under the top one, bottom first, at most depth of them, as the top card is the live one and lies square.
StackLayoutOptions型How a stack is laid out: how messy, from which seed and how many cards deep.
StackPlace型Where one card of a stack lies, as the stack's layout says: how far it is nudged across and down, in card widths, and how far it is turned.
StackPreset型A count of cards for a stack, with where the number comes from: a deck of 52, a Pokémon deck of 60, a booster pack of about 10.
stackPresets定数The usual sizes of a stack of cards, each with where the number comes from.
VERSION定数The version of this package, the same as package.json's (a test holds the two together).
WearCorner型One corner of a worn card: how it is worn and how far the damage reaches.
WearFeatures型Every mark of a worn card: its corners, its centring, and the creases, scratches, specks and stain of each face.
wearLayout関数Where every mark of a card lies.
wearLevels関数The levels a card's wear asks for: the grade's or the number's, with any level named on its own laid over them.
WearLevels型How much of each kind of wear, from 0 (none) to 1 (the worst the preset names).
WearOptions型What a card asks of its wear: a grade or a number, a seed, and any level on its own.
wearOutline関数The outline of a face as an SVG path in the 250 by 350 box, corners as worn.
wearOverlaySvg関数The SVG laid over one face: whitening, folds, creases, scratches, specks, stain and toning.
wearPreset関数The grade with this id.
WearPreset型A grading term with the levels it stands for and what it means in a few words.
wearPresets定数The seven grades, from perfect to damaged.

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

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