本文へ移動

Fuda Cards札

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

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

目次

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

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.

インポート

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

定義

interface StackPreset {
    id: string;
    name: string;
    count: number;
    source: CardMaterialSource;
}

メンバー

名前型説明
idstring
namestring
countnumber
sourceCardMaterialSource

例

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

const first: StackPreset = stackPresets[0];
console.log(first.name, first.count); // Playing cards, 52 52
Playing cards, 52 52

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

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

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