ConjunctionOptionstype
The options of conjunctions.
Import it
import type { ConjunctionOptions } from "@johnmorrisdotca/wakusei-planets/nearest";
Definition
interface ConjunctionOptions extends ApproachOptions {
within?: number;
bodies?: readonly BodyId[];
}
Members
| Name | Type | Description |
|---|---|---|
within (optional) | number | undefined | Only closest approaches this small: degrees for |
bodies (optional) | readonly BodyId[] | undefined | The bodies to pair up. Default: the Sun and Mercury to Neptune, without the Earth's own place. |
from | When | The start of the span, a |
to | When | The end of the span. |
by (optional) | "sky" | "space" | undefined |
|
observer (optional) | Viewpoint | undefined | Where the sky is seen from; ignored by |
Examples
import { conjunctions, type ConjunctionOptions } from "@johnmorrisdotca/wakusei-planets/nearest";
const options: ConjunctionOptions = { from: Date.UTC(2020, 11, 1), to: Date.UTC(2021, 0, 1), bodies: ["jupiter", "saturn"], within: 1 };
console.log(conjunctions(options).length);1What it prints (run when this page was built)