本文へ移動

Fuda Cards札

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

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

目次

リファレンス · カードの中のライブ3D

AddOptions型

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

What a card brings when it is added: the picture it already has.

インポート

import type { AddOptions } from "@johnmorrisdotca/fuda-cards/live-3d";

定義

interface AddOptions {
    still?: HTMLImageElement;
}

メンバー

名前型説明
still (省略可)HTMLImageElement | undefined

A picture the card already has (an <img> of its own), kept until the card is in focus. With one, the card costs no 3D code until then.

例

import type { AddOptions } from "@johnmorrisdotca/fuda-cards/live-3d";

const withPicture = (still: HTMLImageElement): AddOptions => ({ still });
console.log(typeof withPicture);

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

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