本文へ移動

Fuda Cards札

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

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

目次

リファレンス · 設定、素材、山、傷み

stackPresets定数

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

The usual sizes of a stack of cards, each with where the number comes from.

インポート

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

定義

const stackPresets: readonly StackPreset[] = [
    {
        id: "deck-52",
        name: "Playing cards, 52",
        count: 52,
        source: { ...wikiDeck, says: '"The 52-card deck is the most popular deck"' },
    },
    {
        id: "deck-54",
        name: "Playing cards with two jokers, 54",
        count: 54,
        source: {
            ...wikiDeck,
            says: 'commercial packs "often include between one and six jokers, most often two", so 52 + 2',
        },
    },
    {
        id: "pokemon-deck",
        name: "Pokémon TCG deck, 60",
        count: 60,
        source: { ...wikiPokemon, says: 'players "play with 60-card decks"' },
    },
    {
        id: "pokemon-booster",
        name: "Booster pack, about 10",
        count: 10,
        source: { ...wikiPokemon, says: '"a collector can pull 10 cards in total" from a booster pack' },
    },
]

例

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

console.log(stackPresets.map((preset) => preset.count)); // [ 52, 54, 60, 10 ]
[ 52, 54, 60, 10 ]

出力(このページを作ったときに実行した結果)

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

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