SkyMarker型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
One point of your own on the chart. Only ra and dec are needed.
インポート
import type { SkyMarker } from "@johnmorrisdotca/hoshi-stars/chart";
定義
interface SkyMarker {
id?: string | undefined;
ra: number;
dec: number;
date?: MarkerWhen | undefined;
label?: string | undefined;
color?: string | undefined;
size?: number | undefined;
group?: string | undefined;
}
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
id (省略可) | string | undefined | What a click says it was ( |
ra | number | Where, in degrees: right ascension 0 to 360 and declination -90 to 90 (J2000). A marker with a number that is not finite is not drawn. |
dec | number | |
date (省略可) | MarkerWhen | undefined | When. A marker with a date is shown by the time range and joined into a track in date order; one without is always shown and is never joined. |
label (省略可) | string | undefined | The name written beside it, placed clear of the stars and of every other name. |
color (省略可) | string | undefined | Any CSS colour ( |
size (省略可) | number | undefined | The dot's width in pixels (9 by default). |
group (省略可) | string | undefined | What it belongs to ( |
例
import type { SkyMarker } from "@johnmorrisdotca/hoshi-stars/chart";
const seen: SkyMarker = { id: "m42-night", ra: 83.82, dec: -5.39, date: "2026-11-08T21:30:00Z", label: "M42, 8x40 binoculars", group: "Observing log" };
console.log(seen.label);
// M42, 8x40 binocularsM42, 8x40 binoculars出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。