BackgroundSvg型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
A drawn background: the defs and the body to put in an SVG, and the ink that reads over it.
インポート
import type { BackgroundSvg } from "@johnmorrisdotca/taisen-brackets/backgrounds";
ほかのエクスポート元: @johnmorrisdotca/taisen-brackets
定義
type BackgroundSvg = shared.BackgroundSvg;
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
defs | string | |
body | string | |
ink | shared.BackgroundInk |
例
import { backgroundSvg, type BackgroundSvg } from "@johnmorrisdotca/taisen-brackets/backgrounds";
const picture: BackgroundSvg = backgroundSvg("pitch", { width: 400, height: 300 });
console.log(typeof picture.defs, picture.body.startsWith("<"));string true出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。