本文へ移動

Hoshi Stars星

肉眼で見える星の名前・色・距離、88星座の線と境界、メシエ天体、そしてそれらを描くための7種類の図法を使えます。

「星」(ほし) は、夜空に光って見えるものです。 名前について(英語)

目次

リファレンス · /chart

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 (hoshi-marker's id); m<position in the list> when left out.

ranumber

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.

decnumber
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 (#ff8fb1 by default).

size (省略可)number | undefined

The dot's width in pixels (9 by default).

group (省略可)string | undefined

What it belongs to (Observing log, Comet): a track joins one group at a time.

例

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 binoculars
M42, 8x40 binoculars

出力(このページを作ったときに実行した結果)

ソースを見るGitHub で編集@johnmorrisdotca/hoshi-stars 0.47.0 のソースから作成しました。

この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。