VisibleMarkertype
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 it
import type { VisibleMarker } from "@johnmorrisdotca/hoshi-stars/chart";
Definition
interface VisibleMarker {
marker: SkyMarker;
index: number;
id: string;
time: number | undefined;
opacity: number;
}
Members
| Name | Type | Description |
|---|---|---|
marker | SkyMarker | |
index | number | |
id | string | |
time | number | undefined | Milliseconds since 1970; |
opacity | number | 1 in the middle of the range; down to 0.2 at an edge when the range has a |
Examples
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 1m0 1What it prints (run when this page was built)