BackgroundPresetName型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The name of one of the poster backgrounds.
インポート
import type { BackgroundPresetName } from "@johnmorrisdotca/taisen-brackets/layout";
ほかのエクスポート元: @johnmorrisdotca/taisen-brackets/backgrounds, @johnmorrisdotca/taisen-brackets
定義
type BackgroundPresetName = shared.BackgroundPresetName;
例
import { backgroundSvg, type BackgroundPresetName } from "@johnmorrisdotca/taisen-brackets/backgrounds";
const preset: BackgroundPresetName = "midnight";
console.log(backgroundSvg(preset, { width: 400, height: 300 }).body.length > 0);true出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。