ResolvedBackground型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
A background ready to put in a drawing: its definitions, its body and the ink that reads over it.
インポート
import type { ResolvedBackground } from "@johnmorrisdotca/taisen-brackets";
定義
interface ResolvedBackground {
defs: string;
body: string;
inks: BackgroundInks;
auto: boolean;
}
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
defs | string | For the drawing's |
body | string | Drawn over the plain |
inks | BackgroundInks | The colours to draw over it: one for a look that is light or dark, both for |
auto | boolean | Both pictures are in the drawing and the stylesheet shows the one that fits. |
例
import { resolveBackground } from "@johnmorrisdotca/taisen-brackets";
const picture = resolveBackground("midnight", "dark", 1200, 675, "tb");
console.log(picture?.auto, picture?.body.length);false 308出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。