本文へ移動

Fuda Cards札

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

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

目次

リファレンス · コレクションと山:計算部分

CollectionKind型

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

What an item is. A card (the default, so every collection written before this field existed is still cards) is a flat, thin card with a back: it turns in 3D, can be seen from behind and lands turned over when taken off a pile. An object is a picture of a thing that is not a card, such as a games console: it has no back and no thickness, so it never turns over, is never seen from behind or edge-on, and always lands facing up. (A real 3D object would be a third kind; none can be given as an image yet.)

インポート

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

定義

type CollectionKind = "card" | "object";

例

import { collectionKinds, type CollectionKind } from "@johnmorrisdotca/fuda-cards/collection";

const kind: CollectionKind = "object";
console.log(collectionKinds.includes(kind)); // true
true

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

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

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