PortraitEmbed型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
A scene of the portrait builder to put in a page: the scene as the builder writes it in its address, how wide the picture is, and the look to draw it in if not the scene's own.
インポート
import type { PortraitEmbed } from "@johnmorrisdotca/wakusei-planets";
定義
interface PortraitEmbed {
scene: string;
width?: number;
}
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
scene | string | The scene as text ( |
width (省略可) | number | undefined | Pixels across; default 720. |
例
import { portraitCode, type PortraitEmbed } from "@johnmorrisdotca/wakusei-planets";
const options: PortraitEmbed = { scene: "look:painted~jupiter_0_0_0.3_0~io_0_0_0.1_0", width: 640 };
console.log(portraitCode(options, "html").includes("wakusei-portrait"));true出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。