リファレンス · 距離で見る空 (10・50・100・500・1,000光年より近い星や銀河を層に分けて、距離の帯ごとに色分けします。距離がはっきりしないものは別にし、推測で置くことはしません)
limitText関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
A limit as the text the address keeps: all, or the light-years rounded (to the step where it is a step, else to 2 significant figures).
インポート
import { limitText } from "@johnmorrisdotca/hoshi-stars/distance";
定義
function limitText(limit: number): string
引数
| 名前 | 型 | 説明 |
|---|---|---|
limit | number | The limit in light-years, |
戻り値
string
The text.
例
import { limitText } from "@johnmorrisdotca/hoshi-stars/distance";
console.log(limitText(100), limitText(Infinity), limitText(137.9));100 all 140出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。