embedCredit関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The credits that travel with a picture of a body: the line and illustrated looks are drawn from numbers, and realistic and painted use the surface maps.
インポート
import { embedCredit } from "@johnmorrisdotca/wakusei-planets";
定義
function embedCredit(options: EmbedOptions): string
引数
| 名前 | 型 | 説明 |
|---|---|---|
options | EmbedOptions | The choices, so only what is used is named. |
戻り値
string
A short line of credit to put near the picture.
例
import { embedCredit } from "@johnmorrisdotca/wakusei-planets";
console.log(embedCredit({ body: "mars", look: "painted" }));Wakusei Planets by John Morris (MIT). Sizes, tilt and rotation: IAU and NASA fact sheets. Surface pictures: NASA, USGS and JPL imagery in the public domain (details in the package's NOTICE.md).出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。