MarkerRangetype
The moments to show: markers dated from from to to, both ends included. A marker with no date is always shown.
Import it
import type { MarkerRange } from "@johnmorrisdotca/hoshi-stars/chart";
Definition
interface MarkerRange {
from?: MarkerWhen | undefined;
to?: MarkerWhen | undefined;
fade?: number | undefined;
}
Members
| Name | Type | Description |
|---|---|---|
from (optional) | MarkerWhen | undefined | The earliest moment shown; no limit when left out. |
to (optional) | MarkerWhen | undefined | The latest moment shown; no limit when left out. |
fade (optional) | number | undefined | Days over which a marker comes in from the edge of the range (and goes out at the other end): at the edge it is faint, |
Examples
import type { MarkerRange } from "@johnmorrisdotca/hoshi-stars/chart";
const november: MarkerRange = { from: "2026-11-01", to: "2026-11-30", fade: 2 };
console.log(november.fade);
// 22What it prints (run when this page was built)