creditLine関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
One credit as a line of text.
インポート
import { creditLine } from "@johnmorrisdotca/uchusen-rockets";
定義
function creditLine(id: CreditId): string
引数
| 名前 | 型 | 説明 |
|---|---|---|
id | "clarence365-block3" | "clarence365-s24b7" | "martiandays-2019" | "stanley-falcon-9" | "kubaha-dragon-2" | "progressth-dragon-1" | "antonio-falcon-heavy" | "echo3-grasshopper" | "smithsonian-discovery" | "nasa-shuttle-hi-res" | "nasa-shuttle-parts" | "nasa-lunar-module" | "nasa-apollo-soyuz" | "nasa-gemini" | "nasa-friendship-7" | "nasa-jupiter-c" | "nasa-iss" | "nasa-hubble" | "nasa-cluster-ii" | "nasa-insight" | "nasa-curiosity" | "nasa-hete" | "nasa-grease-gun" | The id of a credit in |
戻り値
string
The credit as one line of text.
例
import { creditLine } from "@johnmorrisdotca/uchusen-rockets";
console.log(creditLine("clarence365-block3"));"SpaceX Starship Block 3" by Clarence365 (https://sketchfab.com/3d-models/spacex-starship-block-3-6f6c6f88a3eb4b4d822fdca66733fbb2), CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Reduced from 913,217 triangles; logos, wordmark and serial number removed; rescaled to sourced sizes; separated into booster and ship; unseen payload bay interior removed; materials merged and renamed.出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。