リファレンス · 子ども向けのぬりえ: 太陽・惑星・大きな衛星を太い線の絵にして、本当の色と3つのことがらをつけます。すべての惑星を同じ縮尺で一列にならべた絵も。英語と日本語
kidsFacts関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The three facts on a body's sheet, in plain words, worked out from the package's numbers: its width and how it compares with Earth, how long it takes to spin and to go round, and for a moon the face it shows.
インポート
import { kidsFacts } from "@johnmorrisdotca/wakusei-planets/sheets";
定義
function kidsFacts(id: KidsBody, lang?: Lang): string[]
引数
| 名前 | 型 | 説明 |
|---|---|---|
id | "sun" | "mercury" | "venus" | "earth" | "mars" | "jupiter" | "saturn" | "uranus" | "neptune" | "pluto" | "moon" | "io" | "europa" | "ganymede" | "callisto" | "titan" | "triton" | "charon" | A body with a sheet. |
lang (省略可) | Lang |
|
戻り値
string[]
Three short sentences.
例
import { kidsFacts } from "@johnmorrisdotca/wakusei-planets/sheets";
console.log(kidsFacts("jupiter", "en"));[
'143,000 km across: 11 times as wide as Earth.',
'It spins once in 9.9 hours.',
'It goes around the Sun in 12 years.'
]出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。