本文へ移動

Hoshi Stars星

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

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

目次

リファレンス · /chart

VisibleMarker型

リファレンスの説明と例は英語です。見出しと目次は日本語です。

A marker the range lets through: the marker, its place in the list, the id it answers to, its moment in milliseconds and how strongly it is drawn.

インポート

import type { VisibleMarker } from "@johnmorrisdotca/hoshi-stars/chart";

定義

interface VisibleMarker {
    marker: SkyMarker;
    index: number;
    id: string;
    time: number | undefined;
    opacity: number;
}

メンバー

名前型説明
markerSkyMarker
indexnumber
idstring
timenumber | undefined

Milliseconds since 1970; undefined for a marker with no (readable) date.

opacitynumber

1 in the middle of the range; down to 0.2 at an edge when the range has a fade.

例

import { visibleMarkers, type VisibleMarker } from "@johnmorrisdotca/hoshi-stars/chart";

const [first]: VisibleMarker[] = visibleMarkers([{ ra: 84, dec: 0, date: "2026-11-08" }]);
console.log(first?.id, first?.opacity);
// m0 1
m0 1

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

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

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