@zodiacs/engine 0.1.1-rc.16 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1478 -0
- package/LICENSING.md +184 -30
- package/NOTICE +81 -14
- package/README.md +345 -67
- package/dist/{api-VOW6Umy5.d.ts → api-ChL1N2Sr.d.ts} +44 -7
- package/dist/ayanamsa-ClFzkKmV.d.ts +135 -0
- package/dist/calc.d.ts +218 -21
- package/dist/calc.js +580 -160
- package/dist/chunk-2PZYJQV5.js +83 -0
- package/dist/chunk-47ERTK5X.js +27 -0
- package/dist/{chunk-O3NJRGJ2.js → chunk-4XOYTBLS.js} +1 -1
- package/dist/chunk-767FTO7O.js +48 -0
- package/dist/{chunk-N4B5JNMA.js → chunk-7Y2F2IWN.js} +40 -28
- package/dist/chunk-B4M2Y7FT.js +96 -0
- package/dist/{chunk-KHBLFXFG.js → chunk-B5LKF437.js} +29 -28
- package/dist/{chunk-ONBZ4HK7.js → chunk-BHJXUY67.js} +4 -2
- package/dist/{chunk-PFGUCNOK.js → chunk-BMDASNPB.js} +6 -6
- package/dist/chunk-I3L4POY7.js +18 -0
- package/dist/{chunk-I7O5EGFV.js → chunk-LNGURVNH.js} +3 -3
- package/dist/{chunk-4NV4ZEFZ.js → chunk-NNOSOOWS.js} +4 -4
- package/dist/chunk-OVXQQEXL.js +41 -0
- package/dist/{chunk-WOU7JVD3.js → chunk-QLIEEICB.js} +205 -194
- package/dist/chunk-RMBWKZI2.js +130 -0
- package/dist/{chunk-AECKV73C.js → chunk-TSS2SZWQ.js} +8 -2
- package/dist/{chunk-L6ZHWJZ6.js → chunk-TZVPZHZM.js} +51 -29
- package/dist/chunk-WBTWY2OB.js +478 -0
- package/dist/chunk-Y4E3WJU5.js +87 -0
- package/dist/chunk-YPU3MDNI.js +852 -0
- package/dist/conventions.d.ts +70 -0
- package/dist/conventions.js +26 -0
- package/dist/crossings.d.ts +22 -10
- package/dist/crossings.js +1 -1
- package/dist/de440-pack.d.ts +43 -0
- package/dist/de440-pack.js +16 -0
- package/dist/de440.d.ts +113 -0
- package/dist/de440.js +19 -0
- package/dist/deltat.d.ts +28 -3
- package/dist/deltat.js +1 -1
- package/dist/ephemeris-exTSqBgb.d.ts +60 -0
- package/dist/geo.d.ts +46 -13
- package/dist/geo.js +4 -2
- package/dist/{houses-q1O2GGp4.d.ts → houses-Bh7GCnPi.d.ts} +14 -4
- package/dist/houses-extra.d.ts +22 -7
- package/dist/houses-extra.js +4 -2
- package/dist/index.d.ts +36 -49
- package/dist/index.js +54 -34
- package/dist/{internal-math-CmJ9xtaW.d.ts → internal-math-CxenuGfm.d.ts} +41 -27
- package/dist/internal-math.d.ts +4 -3
- package/dist/internal-math.js +14 -12
- package/dist/internal.d.ts +16 -7
- package/dist/internal.js +27 -6
- package/dist/lite-composite.js +114 -0
- package/dist/lite-declinations.js +253 -0
- package/dist/lite-dignities.js +333 -0
- package/dist/lite-sect.js +72 -0
- package/dist/lite.d.ts +82 -0
- package/dist/lite.js +4 -0
- package/dist/receipt.d.ts +3 -268
- package/dist/receipt.js +202 -89
- package/dist/reference-span-CILpclrz.d.ts +40 -0
- package/dist/{rulers-9wljfVaO.d.ts → rulers-CSSWtiWF.d.ts} +7 -2
- package/dist/sky.d.ts +26 -10
- package/dist/sky.js +23 -14
- package/dist/techniques.d.ts +160 -21
- package/dist/techniques.js +157 -89
- package/dist/time-bands-CZA9AlLg.d.ts +36 -0
- package/dist/time-scale-DIFNa0gz.d.ts +47 -0
- package/dist/time.d.ts +81 -0
- package/dist/time.js +74 -0
- package/dist/timing.d.ts +55 -17
- package/dist/timing.js +33 -45
- package/dist/types-DpPdtXgO.d.ts +335 -0
- package/dist/vedic.d.ts +150 -123
- package/dist/vedic.js +398 -440
- package/dist/window.d.ts +102 -80
- package/dist/window.js +108 -51
- package/dist/zone-history-BxmDCcTK.d.ts +290 -0
- package/package.json +26 -3
- package/dist/chunk-2OWGBT3O.js +0 -219
- package/dist/types-B4MCoCCS.d.ts +0 -228
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as Angles, H as HouseSystem, a as Houses, b as HouseNumber } from './types-
|
|
1
|
+
import { A as Angles, H as HouseSystem, a as Houses, b as HouseNumber } from './types-DpPdtXgO.js';
|
|
2
2
|
|
|
3
3
|
declare const HOUSE_SYSTEMS: readonly ["whole", "placidus", "porphyry", "equal", "equal-mc", "vehlow", "koch", "regiomontanus", "campanus", "topocentric", "alcabitius", "morinus", "meridian"];
|
|
4
4
|
/**
|
|
@@ -13,18 +13,28 @@ declare const POLAR_UNDEFINED_HOUSE_SYSTEMS: readonly ["placidus", "koch"];
|
|
|
13
13
|
* Porphyry there instead; ask for `"porphyry"` to get that system at any latitude.
|
|
14
14
|
*/
|
|
15
15
|
declare const POLAR_FALLBACK: "whole";
|
|
16
|
-
/**
|
|
16
|
+
/**
|
|
17
|
+
* The system Placidus falls back to; the same as {@link POLAR_FALLBACK}.
|
|
18
|
+
* @deprecated Koch falls back too; use POLAR_FALLBACK.
|
|
19
|
+
*/
|
|
17
20
|
declare const PLACIDUS_POLAR_FALLBACK: "whole";
|
|
18
21
|
/** Whether `system` is one that falls back inside the polar circle. */
|
|
19
22
|
declare function isPolarUndefinedHouseSystem(system: HouseSystem): boolean;
|
|
20
23
|
/** Mean obliquity of the ecliptic (IAU 2006), in degrees. */
|
|
21
24
|
declare function meanObliquity(julianCenturies: number): number;
|
|
25
|
+
/**
|
|
26
|
+
* The inputs of the angles and cusps, as natalChart() computes them: the
|
|
27
|
+
* Greenwich apparent sidereal time and the true obliquity of date. A mean
|
|
28
|
+
* sidereal time or the mean obliquity gives other angles (docs/houses.md).
|
|
29
|
+
*/
|
|
22
30
|
interface AngleInput {
|
|
23
31
|
/** Greenwich apparent sidereal time, in hours. */
|
|
24
32
|
gastHours: number;
|
|
33
|
+
/** Geodetic latitude, degrees north. */
|
|
25
34
|
latitude: number;
|
|
26
35
|
/** East-positive longitude, in degrees. */
|
|
27
36
|
longitude: number;
|
|
37
|
+
/** The true obliquity of the ecliptic of date, degrees. */
|
|
28
38
|
obliquity: number;
|
|
29
39
|
}
|
|
30
40
|
declare function ramcOf(input: Pick<AngleInput, "gastHours" | "longitude">): number;
|
|
@@ -41,8 +51,8 @@ declare function wholeSignCusps(ascendant: number): number[];
|
|
|
41
51
|
* circle, so the map is a contraction with slope at most 2q/3. The iteration
|
|
42
52
|
* settles to 1e-9° within 64 steps except within about 1e-8° of the polar
|
|
43
53
|
* limit, near the sidereal times at which a cusp's right ascension reaches 90°
|
|
44
|
-
* or 270
|
|
45
|
-
*
|
|
54
|
+
* or 270°, where the rounding of asin near ±1 can keep it from settling.
|
|
55
|
+
* Where it does not settle, the cusp
|
|
46
56
|
* is found by bisection on RAMC + offset ± (90° m + 1°), across which
|
|
47
57
|
* α − RAMC − offset − m·AD(α) increases strictly, so below the limit Placidus
|
|
48
58
|
* never falls back. Near the limit, either way, a cusp carries the rounding of
|
package/dist/houses-extra.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { A as AngleInput } from './houses-
|
|
2
|
-
import { H as HouseSystem, A as Angles } from './types-
|
|
1
|
+
import { A as AngleInput } from './houses-Bh7GCnPi.js';
|
|
2
|
+
import { H as HouseSystem, A as Angles } from './types-DpPdtXgO.js';
|
|
3
3
|
import './deltat.js';
|
|
4
|
+
import './time-scale-DIFNa0gz.js';
|
|
4
5
|
|
|
5
6
|
/**
|
|
6
7
|
* `@zodiacs/engine/houses`: the house position of a body with ecliptic
|
|
@@ -18,6 +19,12 @@ import './deltat.js';
|
|
|
18
19
|
* 360.98564736629 (J. Meeus, Astronomical Algorithms, 2nd ed., eq. 12.4).
|
|
19
20
|
* Speeds are derivatives with respect to the RAMC times this rate.
|
|
20
21
|
*/
|
|
22
|
+
declare const SIDEREAL_TIME_RATE = 360.98564736629;
|
|
23
|
+
/**
|
|
24
|
+
* The rate of sidereal time, under its first name.
|
|
25
|
+
*
|
|
26
|
+
* @deprecated Use SIDEREAL_TIME_RATE, the same value: this name could be read as a rate of the sidereal zodiac.
|
|
27
|
+
*/
|
|
21
28
|
declare const SIDEREAL_RATE = 360.98564736629;
|
|
22
29
|
/** A body's ecliptic longitude and latitude, degrees; the latitude defaults to 0. */
|
|
23
30
|
interface EclipticPosition {
|
|
@@ -35,7 +42,11 @@ interface CoAscendants {
|
|
|
35
42
|
/** Michael Munkasey's polar ascendant: the ascendant for RAMC + 180° at the latitude. */
|
|
36
43
|
polarAscendant: number;
|
|
37
44
|
}
|
|
38
|
-
/**
|
|
45
|
+
/**
|
|
46
|
+
* Speeds in degrees per day, at the sidereal rate, with latitude and obliquity fixed.
|
|
47
|
+
*
|
|
48
|
+
* @experimental As houseSpeeds is.
|
|
49
|
+
*/
|
|
39
50
|
interface HouseSpeeds {
|
|
40
51
|
/** The system of the cusps: the one asked for, or whole sign where Placidus or Koch falls back. */
|
|
41
52
|
system: HouseSystem;
|
|
@@ -62,20 +73,24 @@ declare function housePosition(system: HouseSystem, input: AngleInput, body: Ecl
|
|
|
62
73
|
* Munkasey's polar ascendant (Swiss Ephemeris's `ascmc[4]` to `ascmc[7]`).
|
|
63
74
|
* Each is the ecliptic point of an oblique ascension under a pole, taken as
|
|
64
75
|
* the formula gives it: inside the polar circle (and, for Munkasey's
|
|
65
|
-
* co-ascendant, within
|
|
66
|
-
*
|
|
76
|
+
* co-ascendant, within ε of the equator) it can lie west of the meridian,
|
|
77
|
+
* and it is not turned east as the ascendant is.
|
|
67
78
|
*/
|
|
68
79
|
declare function coAscendants(input: AngleInput): CoAscendants;
|
|
69
80
|
/**
|
|
70
81
|
* The speeds of the cusps `computeHouses(system, input, …)` returns and of
|
|
71
82
|
* the four angles, in degrees per day: each derivative with respect to the
|
|
72
|
-
* RAMC, found analytically, times {@link
|
|
83
|
+
* RAMC, found analytically, times {@link SIDEREAL_TIME_RATE}, with the latitude
|
|
73
84
|
* and the obliquity held fixed. Where Placidus or Koch falls back to whole
|
|
74
85
|
* signs, the cusps are whole-sign cusps, whose speed is 0 except where the
|
|
75
86
|
* ascendant changes sign. A speed is not defined at the instants where a cusp
|
|
76
87
|
* jumps: whole-sign cusps at a change of sign, and every cusp that turns with
|
|
77
88
|
* the ascendant inside the polar circle. Invalid input throws RangeError.
|
|
89
|
+
*
|
|
90
|
+
* @experimental What a speed is here (a derivative with the latitude and the
|
|
91
|
+
* obliquity held fixed, 0 for whole-sign cusps) differs from Swiss
|
|
92
|
+
* Ephemeris's for several systems, and may change in a minor release.
|
|
78
93
|
*/
|
|
79
94
|
declare function houseSpeeds(system: HouseSystem, input: AngleInput): HouseSpeeds;
|
|
80
95
|
|
|
81
|
-
export { AngleInput, type CoAscendants, type EclipticPosition, type HouseSpeeds, SIDEREAL_RATE, coAscendants, housePosition, houseSpeeds };
|
|
96
|
+
export { AngleInput, Angles, type CoAscendants, type EclipticPosition, type HouseSpeeds, HouseSystem, SIDEREAL_RATE, SIDEREAL_TIME_RATE, coAscendants, housePosition, houseSpeeds };
|
package/dist/houses-extra.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
// src/houses-extra.ts
|
|
2
2
|
var DEG = Math.PI / 180;
|
|
3
3
|
var RAD = 180 / Math.PI;
|
|
4
|
-
var
|
|
4
|
+
var SIDEREAL_TIME_RATE = 360.98564736629;
|
|
5
|
+
var SIDEREAL_RATE = SIDEREAL_TIME_RATE;
|
|
5
6
|
var SYSTEMS = [
|
|
6
7
|
"whole",
|
|
7
8
|
"placidus",
|
|
@@ -319,7 +320,7 @@ function houseSpeeds(system, input) {
|
|
|
319
320
|
const ascRate = obliqueRate(place.ramc + 90, Math.tan(place.latitude * DEG), place.obliquity);
|
|
320
321
|
const mcRate = obliqueRate(place.ramc, 0, place.obliquity);
|
|
321
322
|
const rates = cuspRates(name, place, asc, ascRate, mcRate);
|
|
322
|
-
const perDay = (rate) => rate *
|
|
323
|
+
const perDay = (rate) => rate * SIDEREAL_TIME_RATE;
|
|
323
324
|
const ascSpeed = perDay(ascRate);
|
|
324
325
|
const mcSpeed = perDay(mcRate);
|
|
325
326
|
return {
|
|
@@ -331,6 +332,7 @@ function houseSpeeds(system, input) {
|
|
|
331
332
|
}
|
|
332
333
|
export {
|
|
333
334
|
SIDEREAL_RATE,
|
|
335
|
+
SIDEREAL_TIME_RATE,
|
|
334
336
|
coAscendants,
|
|
335
337
|
housePosition,
|
|
336
338
|
houseSpeeds
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
|
-
export { C as ChartDeclinations, D as DECLINATION_ORB, a as DECLINATION_ORB_LUMINARY, b as DEFAULT_DECLINATION_ORB_POLICY, c as DeclinationAspect, d as DeclinationAspectType, e as DeclinationBody, f as DeclinationOrbPolicy, g as DeclinationRow, h as Declinations, E as EquatorialCoordinates, N as NatalSource, R as RA_POLE_TOLERANCE, i as ReturnSeason, S as SUN_BOUND_LATITUDE, j as SaturnReturnResult, k as SaturnReturnSource, l as chartDeclinations, m as chartPoints, n as declinationOf, o as declinationOrb, p as declinationsForBodies, q as eclipticToEquatorial, r as findDeclinationAspects, s as findLongitudeCrossings, t as groupIntoSeasons, u as moonPhase, v as natalChart, w as positions, x as saturnReturn, y as searchLongitudeCrossings, z as synastry, A as transits } from './api-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export { A as
|
|
5
|
-
|
|
1
|
+
export { C as ChartDeclinations, D as DECLINATION_ORB, a as DECLINATION_ORB_LUMINARY, b as DEFAULT_DECLINATION_ORB_POLICY, c as DeclinationAspect, d as DeclinationAspectType, e as DeclinationBody, f as DeclinationOrbPolicy, g as DeclinationRow, h as Declinations, E as EquatorialCoordinates, N as NatalSource, R as RA_POLE_TOLERANCE, i as ReturnSeason, S as SUN_BOUND_LATITUDE, j as SaturnReturnResult, k as SaturnReturnSource, l as chartDeclinations, m as chartPoints, n as declinationOf, o as declinationOrb, p as declinationsForBodies, q as eclipticToEquatorial, r as findDeclinationAspects, s as findLongitudeCrossings, t as groupIntoSeasons, u as moonPhase, v as natalChart, w as positions, x as saturnReturn, y as searchLongitudeCrossings, z as synastry, A as transits } from './api-ChL1N2Sr.js';
|
|
2
|
+
export { D as DefaultEphemeris, d as DefaultEphemerisName, e as defaultEphemeris, s as setDefaultEphemeris, w as withEphemeris } from './ephemeris-exTSqBgb.js';
|
|
3
|
+
import { e as DateInput, c as BodyPosition, j as Sect, k as MinimalBody, l as Element, I as InterAspect, m as Modality, n as PairSummary } from './types-DpPdtXgO.js';
|
|
4
|
+
export { A as Angles, o as Aspect, f as AspectType, h as BirthInput, B as BodyName, d as Chart, g as ChartFlag, C as ChartInput, i as ChartPoints, p as ENGINE_VERSION, q as EPHEMERIS, E as EphemerisFallback, b as HouseNumber, H as HouseSystem, a as Houses, M as MoonPhase, r as MoonPhaseName, s as PointName, t as PointPosition, u as Polarity, P as PositionSource, v as SignDefinition, w as SourceBody, S as SynastryResult, T as TransitResult, Z as ZodiacSign } from './types-DpPdtXgO.js';
|
|
5
|
+
import { A as AspectMotion } from './internal-math-CxenuGfm.js';
|
|
6
|
+
export { a as ASPECTS, b as ASPECT_BODIES, c as ASPECT_TYPES, d as AspectDefinition, E as ELEMENTS, M as MODALITIES, S as SIGNS, e as SIGN_NAMES, f as SIGN_SLUGS, g as STATIONARY_RELATIVE_SPEED, h as aspectMotion, i as degreeInSign, j as findAspects, m as matchAspect, n as normalizeLongitude, s as separation, k as signForLongitude, l as signIndexForLongitude } from './internal-math-CxenuGfm.js';
|
|
7
|
+
export { A as AngleInput, H as HOUSE_SYSTEMS, P as PLACIDUS_POLAR_FALLBACK, a as POLAR_FALLBACK, b as POLAR_UNDEFINED_HOUSE_SYSTEMS, c as alcabitiusCusps, d as campanusCusps, e as computeAngles, f as computeHouses, g as eastPointOf, h as equalCusps, i as equalMcCusps, j as houseOf, k as isPolarUndefinedHouseSystem, l as kochCusps, m as meanObliquity, n as meridianCusps, o as morinusCusps, p as placidusCusps, q as porphyryCusps, r as ramcOf, s as regiomontanusCusps, t as topocentricCusps, v as vehlowCusps, u as vertexOf, w as wholeSignCusps } from './houses-Bh7GCnPi.js';
|
|
6
8
|
export { DELTA_T_MODEL, DELTA_T_TABLE, DeltaT, DeltaTSegment, DeltaTTable, deltaT, deltaTAt } from './deltat.js';
|
|
9
|
+
export { D as DELTA_T_IERS_MODEL, L as LeapSeconds, T as TimeScale, a as TimeScaleName, U as Ut1MinusUtc } from './time-scale-DIFNa0gz.js';
|
|
10
|
+
export { E as EPHEMERIS_SPAN, R as REFERENCE_SPAN, o as outsideReferenceSpan } from './reference-span-CILpclrz.js';
|
|
7
11
|
export { BodyLongitudeAt, CrossingSearchOptions, CrossingSearchResult, LongitudeCrossing, findLongitudeCrossingsWith, searchLongitudeCrossingsWith } from './crossings.js';
|
|
8
12
|
|
|
9
13
|
/** Fixed tropical-year convention for secondary progressions. */
|
|
@@ -37,7 +41,16 @@ declare function progressedBodies(birthUtc: DateInput, target: DateInput): BodyP
|
|
|
37
41
|
* orb and threshold is the exact value of its double, every comparison is
|
|
38
42
|
* decided on exact values, and only the reported orb is rounded, once.
|
|
39
43
|
*/
|
|
40
|
-
|
|
44
|
+
|
|
45
|
+
/** The schema of an AspectPolicy. */
|
|
46
|
+
declare const ASPECT_POLICY_SCHEMA: "zodiacs.aspect-policy.v1";
|
|
47
|
+
/** The schema of a ConfiguredAspectResult. */
|
|
48
|
+
declare const CONFIGURED_ASPECTS_SCHEMA: "zodiacs.configured-aspects.v1";
|
|
49
|
+
/**
|
|
50
|
+
* An aspect's motion: AspectMotion under another name.
|
|
51
|
+
* @deprecated Use AspectMotion.
|
|
52
|
+
*/
|
|
53
|
+
type ConfiguredAspectMotion = AspectMotion;
|
|
41
54
|
/** Degrees of orb, including the boundary, for each instantaneous motion. */
|
|
42
55
|
interface AspectOrbLimits {
|
|
43
56
|
readonly applying: number;
|
|
@@ -85,7 +98,7 @@ interface AspectPolicyInput {
|
|
|
85
98
|
readonly stationaryRelativeSpeed?: number;
|
|
86
99
|
}
|
|
87
100
|
interface AspectPolicy {
|
|
88
|
-
readonly schema:
|
|
101
|
+
readonly schema: typeof ASPECT_POLICY_SCHEMA;
|
|
89
102
|
readonly aspects: readonly ResolvedAspectRule[];
|
|
90
103
|
readonly bodies: readonly string[];
|
|
91
104
|
readonly bodyOrbs: Readonly<Record<string, AspectOrbLimits>>;
|
|
@@ -119,12 +132,12 @@ interface ConfiguredAspect {
|
|
|
119
132
|
/** |separation − angle|, decided exactly and reported rounded to the nearest double. */
|
|
120
133
|
readonly orb: number;
|
|
121
134
|
readonly maximumOrb: number;
|
|
122
|
-
readonly motion:
|
|
135
|
+
readonly motion: AspectMotion;
|
|
123
136
|
readonly applying: boolean;
|
|
124
137
|
}
|
|
125
138
|
/** Policy is calculation context, not an authenticated receipt or a physical accuracy bound. */
|
|
126
139
|
interface ConfiguredAspectResult {
|
|
127
|
-
readonly schema:
|
|
140
|
+
readonly schema: typeof CONFIGURED_ASPECTS_SCHEMA;
|
|
128
141
|
readonly policy: AspectPolicy;
|
|
129
142
|
readonly aspects: readonly ConfiguredAspect[];
|
|
130
143
|
}
|
|
@@ -156,18 +169,27 @@ declare function findConfiguredAspects(positions: readonly AspectPosition[], pol
|
|
|
156
169
|
* These are the fundamental arguments of the IERS Conventions (2003, 2010),
|
|
157
170
|
* eq. 5.43, from Simon et al. (1994), referred to the mean ecliptic and
|
|
158
171
|
* equinox of date.
|
|
172
|
+
*
|
|
173
|
+
* @experimental The formula behind chartPoints; use chartPoints or
|
|
174
|
+
* `@zodiacs/engine/calc` for the points themselves.
|
|
159
175
|
*/
|
|
160
176
|
declare function lunarMeanArguments(centuries: number): {
|
|
161
177
|
l: number;
|
|
162
178
|
F: number;
|
|
163
179
|
node: number;
|
|
164
180
|
};
|
|
165
|
-
/**
|
|
181
|
+
/**
|
|
182
|
+
* The Moon's mean orbital inclination to the ecliptic, 5°08′43.4″.
|
|
183
|
+
* @experimental A constant of chartPoints' formulas, exported with them.
|
|
184
|
+
*/
|
|
166
185
|
declare const MEAN_LUNAR_INCLINATION = 5.1453964;
|
|
167
186
|
/**
|
|
168
187
|
* The mean ascending node of the Moon: Ω of {@link lunarMeanArguments}, plus
|
|
169
188
|
* the nutation in longitude `nutation` (degrees) to refer it to the true
|
|
170
189
|
* equinox of date like every other longitude the engine reports.
|
|
190
|
+
*
|
|
191
|
+
* @experimental The formula behind chartPoints' mean node; use chartPoints or
|
|
192
|
+
* `@zodiacs/engine/calc`.
|
|
171
193
|
*/
|
|
172
194
|
declare function meanNodeLongitude(centuries: number, nutation: number): number;
|
|
173
195
|
/**
|
|
@@ -176,6 +198,9 @@ declare function meanNodeLongitude(centuries: number, nutation: number): number;
|
|
|
176
198
|
* is carried from the orbit, inclined at {@link MEAN_LUNAR_INCLINATION}, to
|
|
177
199
|
* the ecliptic, so it has a latitude of up to about 5°. The nutation in
|
|
178
200
|
* longitude `nutation` (degrees) refers it to the true equinox of date.
|
|
201
|
+
*
|
|
202
|
+
* @experimental The formula behind chartPoints' Black Moon Lilith; use
|
|
203
|
+
* chartPoints or `@zodiacs/engine/calc`.
|
|
179
204
|
*/
|
|
180
205
|
declare function meanApogee(centuries: number, nutation: number): {
|
|
181
206
|
lon: number;
|
|
@@ -239,47 +264,9 @@ declare function contraAntiscion(longitude: number): number;
|
|
|
239
264
|
*/
|
|
240
265
|
declare function midpoint(first: number, second: number): number;
|
|
241
266
|
|
|
242
|
-
/**
|
|
243
|
-
* The span over which this engine's positions have been compared with an
|
|
244
|
-
* independent ephemeris: from 1800-01-01T00:00Z up to, not including,
|
|
245
|
-
* 2200-01-01T00:00Z. Charts outside it are still computed, and carry the
|
|
246
|
-
* `outside-reference-span` flag.
|
|
247
|
-
*/
|
|
248
|
-
declare const REFERENCE_SPAN: Readonly<{
|
|
249
|
-
readonly from: "1800-01-01T00:00:00.000Z";
|
|
250
|
-
readonly to: "2200-01-01T00:00:00.000Z";
|
|
251
|
-
}>;
|
|
252
|
-
/**
|
|
253
|
-
* The span of Terrestrial Time over which the ephemeris is evaluated at all:
|
|
254
|
-
* the years astronomy-engine 2.1.19 itself tabulates, J2000 ± 730,000 days of
|
|
255
|
-
* TT (0001-04-30T12:00 to 3998-09-03T12:00 TT). That is the range of its Pluto
|
|
256
|
-
* model's state table; for any other time its source says: "The target time is
|
|
257
|
-
* outside the year range 0000..4000. Calculate it by crawling backward from 0000
|
|
258
|
-
* or forward from 4000. ... This is super slow." Beyond the table its other
|
|
259
|
-
* series diverge as well: on 30000-06-01 the Sun came out 29° off the ecliptic.
|
|
260
|
-
*
|
|
261
|
-
* Every instant a calculation evaluates, the instant and its speed samples, must
|
|
262
|
-
* lie inside on the calculation's own ΔT clock, or the call throws RangeError.
|
|
263
|
-
* With the model ΔT, instants from 0001-05-01T00:00Z to 3998-09-02T00:00Z are
|
|
264
|
-
* always inside. Being inside is not an accuracy claim: see REFERENCE_SPAN.
|
|
265
|
-
*/
|
|
266
|
-
declare const EPHEMERIS_SPAN: Readonly<{
|
|
267
|
-
readonly timeScale: "TT";
|
|
268
|
-
/** Days of Terrestrial Time from J2000.0, 2000-01-01T12:00 TT, inclusive. */
|
|
269
|
-
readonly daysFromJ2000: Readonly<{
|
|
270
|
-
readonly from: -730000;
|
|
271
|
-
readonly to: 730000;
|
|
272
|
-
}>;
|
|
273
|
-
/** The same bounds as Terrestrial Time labels (not UTC). */
|
|
274
|
-
readonly fromTT: "0001-04-30T12:00:00";
|
|
275
|
-
readonly toTT: "3998-09-03T12:00:00";
|
|
276
|
-
}>;
|
|
277
|
-
/** True when the instant lies outside REFERENCE_SPAN. */
|
|
278
|
-
declare function outsideReferenceSpan(utc: Date): boolean;
|
|
279
|
-
|
|
280
267
|
declare function findInterAspects(first: readonly MinimalBody[], second: readonly MinimalBody[]): InterAspect[];
|
|
281
268
|
declare function elementBalance(bodies: readonly MinimalBody[]): Record<Element, number>;
|
|
282
269
|
declare function modalityBalance(bodies: readonly MinimalBody[]): Record<Modality, number>;
|
|
283
270
|
declare function summarizePair(first: readonly MinimalBody[], second: readonly MinimalBody[], topCount?: number): PairSummary;
|
|
284
271
|
|
|
285
|
-
export { type AspectOrbInput, type AspectOrbLimits, type AspectPolicy, type AspectPolicyInput, type AspectPosition, type AspectRuleInput, BodyPosition, CONFIGURED_ASPECT_ANGLES, type ConfiguredAspect, type ConfiguredAspectMotion, type ConfiguredAspectResult, DEFAULT_ASPECT_POLICY, DateInput,
|
|
272
|
+
export { ASPECT_POLICY_SCHEMA, AspectMotion, type AspectOrbInput, type AspectOrbLimits, type AspectPolicy, type AspectPolicyInput, type AspectPosition, type AspectRuleInput, BodyPosition, CONFIGURED_ASPECTS_SCHEMA, CONFIGURED_ASPECT_ANGLES, type ConfiguredAspect, type ConfiguredAspectMotion, type ConfiguredAspectResult, DEFAULT_ASPECT_POLICY, DateInput, Element, InterAspect, LOTS, type LotInputs, MEAN_LUNAR_INCLINATION, MinimalBody, Modality, PROGRESSION_DAYS_PER_YEAR, PairSummary, type ResolvedAspectRule, Sect, antiscion, contraAntiscion, createAspectPolicy, elementBalance, findConfiguredAspects, findInterAspects, hellenisticLots, lunarMeanArguments, meanApogee, meanNodeLongitude, midpoint, modalityBalance, progressedBodies, progressedInstant, sectOf, summarizePair };
|
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
PROGRESSION_DAYS_PER_YEAR,
|
|
3
3
|
progressedBodies,
|
|
4
4
|
progressedInstant
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-LNGURVNH.js";
|
|
6
6
|
import {
|
|
7
7
|
chartDeclinations,
|
|
8
8
|
chartPoints,
|
|
@@ -19,13 +19,7 @@ import {
|
|
|
19
19
|
summarizePair,
|
|
20
20
|
synastry,
|
|
21
21
|
transits
|
|
22
|
-
} from "./chunk-
|
|
23
|
-
import "./chunk-CPALRSPC.js";
|
|
24
|
-
import {
|
|
25
|
-
findLongitudeCrossingsWith,
|
|
26
|
-
searchLongitudeCrossingsWith
|
|
27
|
-
} from "./chunk-AECKV73C.js";
|
|
28
|
-
import "./chunk-PFGUCNOK.js";
|
|
22
|
+
} from "./chunk-TZVPZHZM.js";
|
|
29
23
|
import {
|
|
30
24
|
DECLINATION_ORB,
|
|
31
25
|
DECLINATION_ORB_LUMINARY,
|
|
@@ -42,6 +36,7 @@ import {
|
|
|
42
36
|
declinationOf,
|
|
43
37
|
declinationOrb,
|
|
44
38
|
declinationsForBodies,
|
|
39
|
+
defaultEphemeris,
|
|
45
40
|
eclipticToEquatorial,
|
|
46
41
|
exactSign,
|
|
47
42
|
exactSum,
|
|
@@ -53,19 +48,37 @@ import {
|
|
|
53
48
|
midpoint,
|
|
54
49
|
roundedValue,
|
|
55
50
|
sectOf,
|
|
56
|
-
|
|
57
|
-
|
|
51
|
+
setDefaultEphemeris,
|
|
52
|
+
signOf,
|
|
53
|
+
withEphemeris
|
|
54
|
+
} from "./chunk-QLIEEICB.js";
|
|
55
|
+
import "./chunk-CPALRSPC.js";
|
|
58
56
|
import {
|
|
57
|
+
ASPECTS,
|
|
58
|
+
ASPECT_BODIES,
|
|
59
|
+
ASPECT_TYPES,
|
|
60
|
+
ENGINE_VERSION,
|
|
61
|
+
EPHEMERIS,
|
|
62
|
+
STATIONARY_RELATIVE_SPEED,
|
|
63
|
+
aspectMotion,
|
|
64
|
+
findAspects,
|
|
65
|
+
matchAspect,
|
|
66
|
+
separation
|
|
67
|
+
} from "./chunk-B4M2Y7FT.js";
|
|
68
|
+
import "./chunk-2PZYJQV5.js";
|
|
69
|
+
import {
|
|
70
|
+
DELTA_T_IERS_MODEL,
|
|
59
71
|
EPHEMERIS_SPAN,
|
|
60
72
|
REFERENCE_SPAN,
|
|
61
73
|
outsideReferenceSpan
|
|
62
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-B5LKF437.js";
|
|
63
75
|
import {
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
76
|
+
findLongitudeCrossingsWith,
|
|
77
|
+
searchLongitudeCrossingsWith
|
|
78
|
+
} from "./chunk-TSS2SZWQ.js";
|
|
79
|
+
import "./chunk-767FTO7O.js";
|
|
80
|
+
import "./chunk-YPU3MDNI.js";
|
|
81
|
+
import "./chunk-Y4E3WJU5.js";
|
|
69
82
|
import {
|
|
70
83
|
HOUSE_SYSTEMS,
|
|
71
84
|
PLACIDUS_POLAR_FALLBACK,
|
|
@@ -92,30 +105,30 @@ import {
|
|
|
92
105
|
vehlowCusps,
|
|
93
106
|
vertexOf,
|
|
94
107
|
wholeSignCusps
|
|
95
|
-
} from "./chunk-
|
|
108
|
+
} from "./chunk-NNOSOOWS.js";
|
|
96
109
|
import {
|
|
97
|
-
ASPECTS,
|
|
98
|
-
ASPECT_BODIES,
|
|
99
|
-
ASPECT_TYPES,
|
|
100
110
|
ELEMENTS,
|
|
101
|
-
ENGINE_VERSION,
|
|
102
|
-
EPHEMERIS,
|
|
103
111
|
MODALITIES,
|
|
104
112
|
SIGNS,
|
|
105
113
|
SIGN_NAMES,
|
|
106
|
-
|
|
107
|
-
aspectMotion,
|
|
114
|
+
SIGN_SLUGS,
|
|
108
115
|
degreeInSign,
|
|
109
|
-
findAspects,
|
|
110
|
-
matchAspect,
|
|
111
116
|
normalizeLongitude,
|
|
112
|
-
separation,
|
|
113
117
|
signForLongitude,
|
|
114
118
|
signIndexForLongitude
|
|
115
|
-
} from "./chunk-
|
|
119
|
+
} from "./chunk-RMBWKZI2.js";
|
|
120
|
+
import {
|
|
121
|
+
DELTA_T_MODEL,
|
|
122
|
+
DELTA_T_TABLE,
|
|
123
|
+
deltaT,
|
|
124
|
+
deltaTAt
|
|
125
|
+
} from "./chunk-BHJXUY67.js";
|
|
126
|
+
import "./chunk-BMDASNPB.js";
|
|
116
127
|
|
|
117
128
|
// src/configured-aspects.ts
|
|
118
|
-
var
|
|
129
|
+
var ASPECT_POLICY_SCHEMA = "zodiacs.aspect-policy.v1";
|
|
130
|
+
var CONFIGURED_ASPECTS_SCHEMA = "zodiacs.configured-aspects.v1";
|
|
131
|
+
var CONFIGURED_ASPECT_ANGLES = /* @__PURE__ */ Object.freeze({
|
|
119
132
|
conjunction: 0,
|
|
120
133
|
semisextile: 30,
|
|
121
134
|
semisquare: 45,
|
|
@@ -137,7 +150,7 @@ var DEFAULT_RULES = [
|
|
|
137
150
|
{ type: "opposition", orb: 8, luminaryOrb: 10 }
|
|
138
151
|
];
|
|
139
152
|
var POLICIES = /* @__PURE__ */ new WeakSet();
|
|
140
|
-
var CONVENTIONS = Object.freeze({
|
|
153
|
+
var CONVENTIONS = /* @__PURE__ */ Object.freeze({
|
|
141
154
|
coordinates: "ecliptic-longitude-degrees-[0,360)",
|
|
142
155
|
speed: "longitude-degrees-per-day;same-time-basis",
|
|
143
156
|
motion: "instantaneous-orb-rate;right-derivative-at-circular-corners;exact-separating-unless-stationary",
|
|
@@ -221,7 +234,7 @@ function createAspectPolicy(input = {}) {
|
|
|
221
234
|
}
|
|
222
235
|
const stationaryRelativeSpeed = options.stationaryRelativeSpeed === void 0 ? 1e-9 : numberIn(options.stationaryRelativeSpeed, 0, Number.MAX_VALUE, "Stationary relative speed");
|
|
223
236
|
const policy = Object.freeze({
|
|
224
|
-
schema:
|
|
237
|
+
schema: ASPECT_POLICY_SCHEMA,
|
|
225
238
|
aspects: Object.freeze(aspects),
|
|
226
239
|
bodies: Object.freeze(bodies),
|
|
227
240
|
bodyOrbs: Object.freeze(bodyOrbs),
|
|
@@ -231,7 +244,7 @@ function createAspectPolicy(input = {}) {
|
|
|
231
244
|
POLICIES.add(policy);
|
|
232
245
|
return policy;
|
|
233
246
|
}
|
|
234
|
-
var DEFAULT_ASPECT_POLICY = createAspectPolicy();
|
|
247
|
+
var DEFAULT_ASPECT_POLICY = /* @__PURE__ */ createAspectPolicy();
|
|
235
248
|
function signedSeparation(a, b) {
|
|
236
249
|
const difference = exactSum(a, -b);
|
|
237
250
|
if (compareExact(difference, 180) > 0) return exactSum(difference, -360);
|
|
@@ -305,17 +318,20 @@ function findConfiguredAspects(positions2, policy) {
|
|
|
305
318
|
}
|
|
306
319
|
}
|
|
307
320
|
found.sort((x, y) => compareExact(x.exactOrb, y.exactOrb));
|
|
308
|
-
return Object.freeze({ schema:
|
|
321
|
+
return Object.freeze({ schema: CONFIGURED_ASPECTS_SCHEMA, policy, aspects: Object.freeze(found.map((entry) => entry.aspect)) });
|
|
309
322
|
}
|
|
310
323
|
export {
|
|
311
324
|
ASPECTS,
|
|
312
325
|
ASPECT_BODIES,
|
|
326
|
+
ASPECT_POLICY_SCHEMA,
|
|
313
327
|
ASPECT_TYPES,
|
|
328
|
+
CONFIGURED_ASPECTS_SCHEMA,
|
|
314
329
|
CONFIGURED_ASPECT_ANGLES,
|
|
315
330
|
DECLINATION_ORB,
|
|
316
331
|
DECLINATION_ORB_LUMINARY,
|
|
317
332
|
DEFAULT_ASPECT_POLICY,
|
|
318
333
|
DEFAULT_DECLINATION_ORB_POLICY,
|
|
334
|
+
DELTA_T_IERS_MODEL,
|
|
319
335
|
DELTA_T_MODEL,
|
|
320
336
|
DELTA_T_TABLE,
|
|
321
337
|
ELEMENTS,
|
|
@@ -334,6 +350,7 @@ export {
|
|
|
334
350
|
REFERENCE_SPAN,
|
|
335
351
|
SIGNS,
|
|
336
352
|
SIGN_NAMES,
|
|
353
|
+
SIGN_SLUGS,
|
|
337
354
|
STATIONARY_RELATIVE_SPEED,
|
|
338
355
|
SUN_BOUND_LATITUDE,
|
|
339
356
|
alcabitiusCusps,
|
|
@@ -349,6 +366,7 @@ export {
|
|
|
349
366
|
declinationOf,
|
|
350
367
|
declinationOrb,
|
|
351
368
|
declinationsForBodies,
|
|
369
|
+
defaultEphemeris,
|
|
352
370
|
degreeInSign,
|
|
353
371
|
deltaT,
|
|
354
372
|
deltaTAt,
|
|
@@ -393,6 +411,7 @@ export {
|
|
|
393
411
|
searchLongitudeCrossingsWith,
|
|
394
412
|
sectOf,
|
|
395
413
|
separation,
|
|
414
|
+
setDefaultEphemeris,
|
|
396
415
|
signForLongitude,
|
|
397
416
|
signIndexForLongitude,
|
|
398
417
|
summarizePair,
|
|
@@ -401,5 +420,6 @@ export {
|
|
|
401
420
|
transits,
|
|
402
421
|
vehlowCusps,
|
|
403
422
|
vertexOf,
|
|
404
|
-
wholeSignCusps
|
|
423
|
+
wholeSignCusps,
|
|
424
|
+
withEphemeris
|
|
405
425
|
};
|