Reference · Passes: when a satellite crosses the sky over a place
SkyOptionstype
What skySvg may be asked.
Import it
import type { SkyOptions } from "@johnmorrisdotca/chikyu-earth/passes";
Definition
interface SkyOptions {
size?: number;
labels?: Partial<SkyLabels>;
times?: {
start?: string;
highest?: string;
end?: string;
};
description?: string;
}
Members
| Name | Type | Description |
|---|---|---|
size (optional) | number | undefined | Width and height of the SVG in pixels (320 by default). |
labels (optional) | Partial<SkyLabels> | undefined | The words, any of them (English where missing). |
times (optional) | { start?: string; highest?: string; end?: string; } | undefined | A time to write beside each mark, already in the place's own time. |
description (optional) | string | undefined | The description for a screen reader (a plain sentence is made from the pass when missing). |
Examples
import type { SkyOptions } from "@johnmorrisdotca/chikyu-earth/passes";
const options: SkyOptions = { size: 320, times: { start: "18:21", highest: "18:24", end: "18:27" } };
console.log(options.size);320What it prints (run when this page was built)