リファレンス · 全天を1枚の横長 (2対1) の地図に (銀河座標か赤道座標、モルワイデ・ハンマー・正距円筒図法。継ぎ目で線をきれいに切る)
AllSkyOptions型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
How to lay the whole sky out.
インポート
import type { AllSkyOptions } from "@johnmorrisdotca/hoshi-stars/all-sky";
定義
interface AllSkyOptions {
width: number;
frame?: AllSkyFrame;
projection?: AllSkyProjection;
centre?: number;
mirror?: boolean;
}
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
width | number | The picture's width in your units; it is half as tall. |
frame (省略可) | "galactic" | "equatorial" | undefined | The orientation; |
projection (省略可) | "equirectangular" | "mollweide" | "hammer" | undefined | The projection; |
centre (省略可) | number | undefined | The longitude of the frame (galactic longitude, or right ascension), in degrees, that lands in the middle; 0 for |
mirror (省略可) | boolean | undefined | True for the map convention, longitude growing to the right. Default false: the sky seen looking up, longitude (east) growing to the LEFT, as the rest of the package draws it. |
例
import type { AllSkyOptions } from "@johnmorrisdotca/hoshi-stars/all-sky";
const options: AllSkyOptions = { width: 1000, frame: "equatorial", projection: "hammer" };
console.log(options.width / 2, "tall");500 tall出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。