CollectionLive型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
Live 3D in a collection's cards: the shared cards from createLiveCards and the 3D item of a card, if it has one. See docs/live-3d.md.
インポート
import type { CollectionLive } from "@johnmorrisdotca/fuda-cards/collection-element";
定義
interface CollectionLive {
cards: LiveCards<never>;
item(card: CollectionCard): LiveItem<never> | undefined;
}
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
cards | LiveCards<never> | |
item | (card: CollectionCard): LiveItem<never> | undefined |
例
import type { CollectionLive } from "@johnmorrisdotca/fuda-cards/collection-element";
import { createLiveCards } from "@johnmorrisdotca/fuda-cards/live-3d";
const live: CollectionLive = { cards: createLiveCards({ load: () => import("three") }) as never, item: () => undefined };
console.log(typeof live.item);この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。