assetPathOf関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The shipped picture of these options, under the package's dist/assets/: starship-v3.svg, falcon-9-block-5-apart.thick.svg. These are drawn from the default view, with no flames. Null for a custom build, which has no file, or a variant, part or look that does not exist.
インポート
import { assetPathOf } from "@johnmorrisdotca/uchusen-rockets";
定義
function assetPathOf(options: RocketOptions): string | null
引数
| 名前 | 型 | 説明 |
|---|---|---|
options | RocketOptions | The rocket, variant, look, view and what to show. |
戻り値
string | null
The path of the shipped picture under dist/assets/, or null when none is shipped for those options.
例
import { assetPathOf } from "@johnmorrisdotca/uchusen-rockets";
console.log(assetPathOf({ rocket: "starship", variant: "v3" }));starship-v3.svg出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。