@zodiacs/engine 0.1.1-rc.16 → 1.0.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 +458 -0
- package/LICENSING.md +18 -5
- package/NOTICE +3 -2
- package/README.md +67 -33
- package/dist/{api-VOW6Umy5.d.ts → api-WbxJ4Wj-.d.ts} +12 -6
- package/dist/ayanamsa--YQ46fET.d.ts +134 -0
- package/dist/calc.d.ts +131 -20
- package/dist/calc.js +246 -60
- package/dist/chunk-47ERTK5X.js +27 -0
- package/dist/{chunk-O3NJRGJ2.js → chunk-7TRLIFFI.js} +1 -1
- package/dist/{chunk-KHBLFXFG.js → chunk-B5LKF437.js} +29 -28
- package/dist/{chunk-ONBZ4HK7.js → chunk-BHJXUY67.js} +4 -2
- package/dist/{chunk-I7O5EGFV.js → chunk-CHSYDKBL.js} +1 -1
- package/dist/{chunk-4NV4ZEFZ.js → chunk-DMGHYCDI.js} +4 -4
- package/dist/{chunk-L6ZHWJZ6.js → chunk-FTX3JDJA.js} +15 -12
- package/dist/{chunk-2OWGBT3O.js → chunk-OG4OYTJJ.js} +47 -42
- package/dist/{chunk-WOU7JVD3.js → chunk-SRXBTP5H.js} +7 -7
- package/dist/{chunk-AECKV73C.js → chunk-TSS2SZWQ.js} +8 -2
- package/dist/chunk-WS3TDSP3.js +474 -0
- package/dist/{chunk-N4B5JNMA.js → chunk-YIITY7Q7.js} +21 -11
- package/dist/crossings.d.ts +8 -7
- package/dist/crossings.js +1 -1
- package/dist/deltat.d.ts +28 -3
- package/dist/deltat.js +1 -1
- package/dist/geo.d.ts +33 -12
- package/dist/geo.js +3 -1
- package/dist/{houses-q1O2GGp4.d.ts → houses-CFERsAlK.d.ts} +12 -2
- package/dist/houses-extra.d.ts +19 -5
- package/dist/houses-extra.js +4 -2
- package/dist/index.d.ts +34 -49
- package/dist/index.js +21 -13
- package/dist/{internal-math-CmJ9xtaW.d.ts → internal-math-DJJ8BYex.d.ts} +41 -27
- package/dist/internal-math.d.ts +3 -3
- package/dist/internal-math.js +2 -2
- package/dist/internal.d.ts +1 -1
- package/dist/internal.js +5 -5
- package/dist/receipt.d.ts +2 -268
- package/dist/receipt.js +70 -35
- package/dist/reference-span-CILpclrz.d.ts +40 -0
- package/dist/{rulers-9wljfVaO.d.ts → rulers-Dla6h_Sm.d.ts} +7 -2
- package/dist/sky.d.ts +25 -10
- package/dist/sky.js +11 -9
- package/dist/techniques.d.ts +61 -18
- package/dist/techniques.js +39 -46
- package/dist/timing.d.ts +53 -16
- package/dist/timing.js +19 -38
- package/dist/{types-B4MCoCCS.d.ts → types-B-yb_tGL.d.ts} +23 -11
- package/dist/vedic.d.ts +42 -123
- package/dist/vedic.js +43 -440
- package/dist/window.d.ts +81 -79
- package/dist/window.js +26 -27
- package/dist/zone-history-ghdyO0Sc.d.ts +268 -0
- package/package.json +3 -1
package/dist/geo.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { H as HouseSystem,
|
|
2
|
-
import { NatalLocalResolution } from './
|
|
1
|
+
import { H as HouseSystem, h as BirthInput } from './types-B-yb_tGL.js';
|
|
2
|
+
import { T as TransitionCause, N as NatalLocalResolution } from './zone-history-ghdyO0Sc.js';
|
|
3
3
|
import './deltat.js';
|
|
4
4
|
|
|
5
5
|
interface City {
|
|
@@ -71,19 +71,25 @@ interface CalendarNote {
|
|
|
71
71
|
kind: "old-style" | "new-style";
|
|
72
72
|
adoption: Readonly<GregorianAdoption>;
|
|
73
73
|
}
|
|
74
|
-
/**
|
|
74
|
+
/**
|
|
75
|
+
* The note for a Gregorian date (as resolved, YYYY-MM-DD) written in
|
|
76
|
+
* `calendar`, or null; null too for a country the table does not date. A date
|
|
77
|
+
* that is not a valid Gregorian YYYY-MM-DD, a calendar other than "gregorian"
|
|
78
|
+
* and "julian", or a country that is not a nonempty string throws a
|
|
79
|
+
* RangeError.
|
|
80
|
+
*/
|
|
75
81
|
declare function calendarNote(gregorianDate: string, calendar: CalendarName, country: string): CalendarNote | null;
|
|
76
82
|
|
|
77
|
-
/**
|
|
83
|
+
/**
|
|
84
|
+
* The pinned tzdb release: its version, archive digest and the form its histories were compiled from. The
|
|
85
|
+
* version and digest are typed as strings, because a release that updates the time-zone data changes them.
|
|
86
|
+
*/
|
|
78
87
|
declare const TZDB: Readonly<{
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
88
|
+
version: string;
|
|
89
|
+
sha256: string;
|
|
90
|
+
form: "main+backzone";
|
|
82
91
|
}>;
|
|
83
92
|
|
|
84
|
-
/** What changed at a transition, from the tzdb record. */
|
|
85
|
-
type TransitionCause = "dst" | "legal-change" | "date-line";
|
|
86
|
-
|
|
87
93
|
/** How to read a wall time (docs/time.md). Unknown keys and values throw RangeError. */
|
|
88
94
|
interface LocalTimeOptions {
|
|
89
95
|
/** The birthplace, degrees east: its own mean time replaces the zone's local mean time. */
|
|
@@ -150,7 +156,13 @@ interface LocalBirthInput {
|
|
|
150
156
|
calendar?: CalendarName;
|
|
151
157
|
country?: string;
|
|
152
158
|
}
|
|
153
|
-
/**
|
|
159
|
+
/**
|
|
160
|
+
* UTC offset for an IANA timezone at a UTC instant, minutes east, from the
|
|
161
|
+
* host's Intl: a cross-check on the host's time-zone data. zoneOffsetAt is the
|
|
162
|
+
* engine's own answer, the one its wall times use; the two agree from 1970
|
|
163
|
+
* where the host has tzdata 2025c, and before 1970 they can differ, because
|
|
164
|
+
* Intl does not carry the history this package ships.
|
|
165
|
+
*/
|
|
154
166
|
declare function offsetAt(timeZone: string, utcMilliseconds: number): number;
|
|
155
167
|
/**
|
|
156
168
|
* Resolve a local wall time in an IANA zone to UTC: a repeated one takes the
|
|
@@ -173,6 +185,15 @@ declare function prepareLocalTime(date: string, timeZone: string): Promise<void>
|
|
|
173
185
|
* and in the fixed zones, Intl.
|
|
174
186
|
*/
|
|
175
187
|
declare function zoneOffsetAt(timeZone: string, utcMilliseconds: number): number;
|
|
188
|
+
/**
|
|
189
|
+
* Thrown when an answer needs a zone's history before 1970 and
|
|
190
|
+
* `prepareLocalTime` has not loaded it. An Error, not a RangeError: the input
|
|
191
|
+
* is valid, and awaiting `prepareLocalTime(date, timeZone)` first answers it.
|
|
192
|
+
*/
|
|
193
|
+
declare class ZoneHistoryNotLoadedError extends Error {
|
|
194
|
+
readonly name = "ZoneHistoryNotLoadedError";
|
|
195
|
+
constructor();
|
|
196
|
+
}
|
|
176
197
|
/** A local birth resolved, with how its wall time was read and the receipt's `reference`. */
|
|
177
198
|
interface LocalBirthResolution {
|
|
178
199
|
birth: BirthInput;
|
|
@@ -184,4 +205,4 @@ declare function resolveLocalBirth(input: LocalBirthInput): LocalBirthResolution
|
|
|
184
205
|
/** Convert a local birth form into the explicit UTC input accepted by the core. */
|
|
185
206
|
declare function resolveBirth(input: LocalBirthInput): BirthInput;
|
|
186
207
|
|
|
187
|
-
export { type CalendarName, type CalendarNote, type City, GREGORIAN_ADOPTION, GREGORIAN_ADOPTION_SOURCES, type GeoNamesClient, type GeoNamesClientOptions, type GeoNamesIndexMetadata, type GregorianAdoption, type GregorianAdoptionSource, type LocalBirthInput, type LocalBirthResolution, type LocalTimeOptions, type LocalTimeResolution, TZDB,
|
|
208
|
+
export { type CalendarName, type CalendarNote, type City, GREGORIAN_ADOPTION, GREGORIAN_ADOPTION_SOURCES, type GeoNamesClient, type GeoNamesClientOptions, type GeoNamesIndexMetadata, type GregorianAdoption, type GregorianAdoptionSource, type LocalBirthInput, type LocalBirthResolution, type LocalTimeOptions, type LocalTimeResolution, TZDB, TransitionCause, ZoneHistoryNotLoadedError, type ZoneTransition, calendarNote, createGeoNamesClient, gregorianAdoption, gregorianToJulian, julianToGregorian, offsetAt, prepareLocalTime, resolveBirth, resolveLocalBirth, resolveLocalToUtc, zoneOffsetAt };
|
package/dist/geo.js
CHANGED
|
@@ -2,6 +2,7 @@ import {
|
|
|
2
2
|
GREGORIAN_ADOPTION,
|
|
3
3
|
GREGORIAN_ADOPTION_SOURCES,
|
|
4
4
|
TZDB,
|
|
5
|
+
ZoneHistoryNotLoadedError,
|
|
5
6
|
calendarNote,
|
|
6
7
|
gregorianAdoption,
|
|
7
8
|
offsetAt,
|
|
@@ -10,7 +11,7 @@ import {
|
|
|
10
11
|
resolveLocalBirth,
|
|
11
12
|
resolveLocalToUtc,
|
|
12
13
|
zoneOffsetAt
|
|
13
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-YIITY7Q7.js";
|
|
14
15
|
import {
|
|
15
16
|
gregorianToJulian,
|
|
16
17
|
julianToGregorian
|
|
@@ -160,6 +161,7 @@ export {
|
|
|
160
161
|
GREGORIAN_ADOPTION,
|
|
161
162
|
GREGORIAN_ADOPTION_SOURCES,
|
|
162
163
|
TZDB,
|
|
164
|
+
ZoneHistoryNotLoadedError,
|
|
163
165
|
calendarNote,
|
|
164
166
|
createGeoNamesClient,
|
|
165
167
|
gregorianAdoption,
|
|
@@ -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-B-yb_tGL.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;
|
package/dist/houses-extra.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as AngleInput } from './houses-
|
|
2
|
-
import { H as HouseSystem, A as Angles } from './types-
|
|
1
|
+
import { A as AngleInput } from './houses-CFERsAlK.js';
|
|
2
|
+
import { H as HouseSystem, A as Angles } from './types-B-yb_tGL.js';
|
|
3
3
|
import './deltat.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -18,6 +18,12 @@ import './deltat.js';
|
|
|
18
18
|
* 360.98564736629 (J. Meeus, Astronomical Algorithms, 2nd ed., eq. 12.4).
|
|
19
19
|
* Speeds are derivatives with respect to the RAMC times this rate.
|
|
20
20
|
*/
|
|
21
|
+
declare const SIDEREAL_TIME_RATE = 360.98564736629;
|
|
22
|
+
/**
|
|
23
|
+
* The rate of sidereal time, under its first name.
|
|
24
|
+
*
|
|
25
|
+
* @deprecated Use SIDEREAL_TIME_RATE, the same value: this name could be read as a rate of the sidereal zodiac.
|
|
26
|
+
*/
|
|
21
27
|
declare const SIDEREAL_RATE = 360.98564736629;
|
|
22
28
|
/** A body's ecliptic longitude and latitude, degrees; the latitude defaults to 0. */
|
|
23
29
|
interface EclipticPosition {
|
|
@@ -35,7 +41,11 @@ interface CoAscendants {
|
|
|
35
41
|
/** Michael Munkasey's polar ascendant: the ascendant for RAMC + 180° at the latitude. */
|
|
36
42
|
polarAscendant: number;
|
|
37
43
|
}
|
|
38
|
-
/**
|
|
44
|
+
/**
|
|
45
|
+
* Speeds in degrees per day, at the sidereal rate, with latitude and obliquity fixed.
|
|
46
|
+
*
|
|
47
|
+
* @experimental As houseSpeeds is.
|
|
48
|
+
*/
|
|
39
49
|
interface HouseSpeeds {
|
|
40
50
|
/** The system of the cusps: the one asked for, or whole sign where Placidus or Koch falls back. */
|
|
41
51
|
system: HouseSystem;
|
|
@@ -69,13 +79,17 @@ declare function coAscendants(input: AngleInput): CoAscendants;
|
|
|
69
79
|
/**
|
|
70
80
|
* The speeds of the cusps `computeHouses(system, input, …)` returns and of
|
|
71
81
|
* the four angles, in degrees per day: each derivative with respect to the
|
|
72
|
-
* RAMC, found analytically, times {@link
|
|
82
|
+
* RAMC, found analytically, times {@link SIDEREAL_TIME_RATE}, with the latitude
|
|
73
83
|
* and the obliquity held fixed. Where Placidus or Koch falls back to whole
|
|
74
84
|
* signs, the cusps are whole-sign cusps, whose speed is 0 except where the
|
|
75
85
|
* ascendant changes sign. A speed is not defined at the instants where a cusp
|
|
76
86
|
* jumps: whole-sign cusps at a change of sign, and every cusp that turns with
|
|
77
87
|
* the ascendant inside the polar circle. Invalid input throws RangeError.
|
|
88
|
+
*
|
|
89
|
+
* @experimental What a speed is here (a derivative with the latitude and the
|
|
90
|
+
* obliquity held fixed, 0 for whole-sign cusps) differs from Swiss
|
|
91
|
+
* Ephemeris's for several systems, and may change in a minor release.
|
|
78
92
|
*/
|
|
79
93
|
declare function houseSpeeds(system: HouseSystem, input: AngleInput): HouseSpeeds;
|
|
80
94
|
|
|
81
|
-
export { AngleInput, type CoAscendants, type EclipticPosition, type HouseSpeeds, SIDEREAL_RATE, coAscendants, housePosition, houseSpeeds };
|
|
95
|
+
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,11 @@
|
|
|
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
|
-
import { D as DateInput, c as BodyPosition, k as Sect, l as MinimalBody, E as Element, I as InterAspect, m as Modality, P as PairSummary } from './types-
|
|
3
|
-
export { A as Angles, n as Aspect,
|
|
4
|
-
|
|
5
|
-
export {
|
|
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-WbxJ4Wj-.js';
|
|
2
|
+
import { D as DateInput, c as BodyPosition, k as Sect, l as MinimalBody, E as Element, I as InterAspect, m as Modality, P as PairSummary } from './types-B-yb_tGL.js';
|
|
3
|
+
export { A as Angles, n as Aspect, f as AspectType, h as BirthInput, B as BodyName, d as Chart, g as ChartFlag, C as ChartInput, i as ChartPoints, o as DELTA_T_IERS_MODEL, p as ENGINE_VERSION, q as EPHEMERIS, b as HouseNumber, H as HouseSystem, a as Houses, L as LeapSeconds, M as MoonPhase, r as MoonPhaseName, s as PointName, t as PointPosition, u as Polarity, v as SignDefinition, S as SynastryResult, e as TimeScale, T as TimeScaleName, j as TransitResult, U as Ut1MinusUtc, Z as ZodiacSign } from './types-B-yb_tGL.js';
|
|
4
|
+
import { A as AspectMotion } from './internal-math-DJJ8BYex.js';
|
|
5
|
+
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-DJJ8BYex.js';
|
|
6
|
+
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-CFERsAlK.js';
|
|
6
7
|
export { DELTA_T_MODEL, DELTA_T_TABLE, DeltaT, DeltaTSegment, DeltaTTable, deltaT, deltaTAt } from './deltat.js';
|
|
8
|
+
export { E as EPHEMERIS_SPAN, R as REFERENCE_SPAN, o as outsideReferenceSpan } from './reference-span-CILpclrz.js';
|
|
7
9
|
export { BodyLongitudeAt, CrossingSearchOptions, CrossingSearchResult, LongitudeCrossing, findLongitudeCrossingsWith, searchLongitudeCrossingsWith } from './crossings.js';
|
|
8
10
|
|
|
9
11
|
/** Fixed tropical-year convention for secondary progressions. */
|
|
@@ -37,7 +39,16 @@ declare function progressedBodies(birthUtc: DateInput, target: DateInput): BodyP
|
|
|
37
39
|
* orb and threshold is the exact value of its double, every comparison is
|
|
38
40
|
* decided on exact values, and only the reported orb is rounded, once.
|
|
39
41
|
*/
|
|
40
|
-
|
|
42
|
+
|
|
43
|
+
/** The schema of an AspectPolicy. */
|
|
44
|
+
declare const ASPECT_POLICY_SCHEMA: "zodiacs.aspect-policy.v1";
|
|
45
|
+
/** The schema of a ConfiguredAspectResult. */
|
|
46
|
+
declare const CONFIGURED_ASPECTS_SCHEMA: "zodiacs.configured-aspects.v1";
|
|
47
|
+
/**
|
|
48
|
+
* An aspect's motion: AspectMotion under another name.
|
|
49
|
+
* @deprecated Use AspectMotion.
|
|
50
|
+
*/
|
|
51
|
+
type ConfiguredAspectMotion = AspectMotion;
|
|
41
52
|
/** Degrees of orb, including the boundary, for each instantaneous motion. */
|
|
42
53
|
interface AspectOrbLimits {
|
|
43
54
|
readonly applying: number;
|
|
@@ -85,7 +96,7 @@ interface AspectPolicyInput {
|
|
|
85
96
|
readonly stationaryRelativeSpeed?: number;
|
|
86
97
|
}
|
|
87
98
|
interface AspectPolicy {
|
|
88
|
-
readonly schema:
|
|
99
|
+
readonly schema: typeof ASPECT_POLICY_SCHEMA;
|
|
89
100
|
readonly aspects: readonly ResolvedAspectRule[];
|
|
90
101
|
readonly bodies: readonly string[];
|
|
91
102
|
readonly bodyOrbs: Readonly<Record<string, AspectOrbLimits>>;
|
|
@@ -119,12 +130,12 @@ interface ConfiguredAspect {
|
|
|
119
130
|
/** |separation − angle|, decided exactly and reported rounded to the nearest double. */
|
|
120
131
|
readonly orb: number;
|
|
121
132
|
readonly maximumOrb: number;
|
|
122
|
-
readonly motion:
|
|
133
|
+
readonly motion: AspectMotion;
|
|
123
134
|
readonly applying: boolean;
|
|
124
135
|
}
|
|
125
136
|
/** Policy is calculation context, not an authenticated receipt or a physical accuracy bound. */
|
|
126
137
|
interface ConfiguredAspectResult {
|
|
127
|
-
readonly schema:
|
|
138
|
+
readonly schema: typeof CONFIGURED_ASPECTS_SCHEMA;
|
|
128
139
|
readonly policy: AspectPolicy;
|
|
129
140
|
readonly aspects: readonly ConfiguredAspect[];
|
|
130
141
|
}
|
|
@@ -156,18 +167,27 @@ declare function findConfiguredAspects(positions: readonly AspectPosition[], pol
|
|
|
156
167
|
* These are the fundamental arguments of the IERS Conventions (2003, 2010),
|
|
157
168
|
* eq. 5.43, from Simon et al. (1994), referred to the mean ecliptic and
|
|
158
169
|
* equinox of date.
|
|
170
|
+
*
|
|
171
|
+
* @experimental The formula behind chartPoints; use chartPoints or
|
|
172
|
+
* `@zodiacs/engine/calc` for the points themselves.
|
|
159
173
|
*/
|
|
160
174
|
declare function lunarMeanArguments(centuries: number): {
|
|
161
175
|
l: number;
|
|
162
176
|
F: number;
|
|
163
177
|
node: number;
|
|
164
178
|
};
|
|
165
|
-
/**
|
|
179
|
+
/**
|
|
180
|
+
* The Moon's mean orbital inclination to the ecliptic, 5°08′43.4″.
|
|
181
|
+
* @experimental A constant of chartPoints' formulas, exported with them.
|
|
182
|
+
*/
|
|
166
183
|
declare const MEAN_LUNAR_INCLINATION = 5.1453964;
|
|
167
184
|
/**
|
|
168
185
|
* The mean ascending node of the Moon: Ω of {@link lunarMeanArguments}, plus
|
|
169
186
|
* the nutation in longitude `nutation` (degrees) to refer it to the true
|
|
170
187
|
* equinox of date like every other longitude the engine reports.
|
|
188
|
+
*
|
|
189
|
+
* @experimental The formula behind chartPoints' mean node; use chartPoints or
|
|
190
|
+
* `@zodiacs/engine/calc`.
|
|
171
191
|
*/
|
|
172
192
|
declare function meanNodeLongitude(centuries: number, nutation: number): number;
|
|
173
193
|
/**
|
|
@@ -176,6 +196,9 @@ declare function meanNodeLongitude(centuries: number, nutation: number): number;
|
|
|
176
196
|
* is carried from the orbit, inclined at {@link MEAN_LUNAR_INCLINATION}, to
|
|
177
197
|
* the ecliptic, so it has a latitude of up to about 5°. The nutation in
|
|
178
198
|
* longitude `nutation` (degrees) refers it to the true equinox of date.
|
|
199
|
+
*
|
|
200
|
+
* @experimental The formula behind chartPoints' Black Moon Lilith; use
|
|
201
|
+
* chartPoints or `@zodiacs/engine/calc`.
|
|
179
202
|
*/
|
|
180
203
|
declare function meanApogee(centuries: number, nutation: number): {
|
|
181
204
|
lon: number;
|
|
@@ -239,47 +262,9 @@ declare function contraAntiscion(longitude: number): number;
|
|
|
239
262
|
*/
|
|
240
263
|
declare function midpoint(first: number, second: number): number;
|
|
241
264
|
|
|
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
265
|
declare function findInterAspects(first: readonly MinimalBody[], second: readonly MinimalBody[]): InterAspect[];
|
|
281
266
|
declare function elementBalance(bodies: readonly MinimalBody[]): Record<Element, number>;
|
|
282
267
|
declare function modalityBalance(bodies: readonly MinimalBody[]): Record<Modality, number>;
|
|
283
268
|
declare function summarizePair(first: readonly MinimalBody[], second: readonly MinimalBody[], topCount?: number): PairSummary;
|
|
284
269
|
|
|
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,
|
|
270
|
+
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-CHSYDKBL.js";
|
|
6
6
|
import {
|
|
7
7
|
chartDeclinations,
|
|
8
8
|
chartPoints,
|
|
@@ -19,12 +19,12 @@ import {
|
|
|
19
19
|
summarizePair,
|
|
20
20
|
synastry,
|
|
21
21
|
transits
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-FTX3JDJA.js";
|
|
23
23
|
import "./chunk-CPALRSPC.js";
|
|
24
24
|
import {
|
|
25
25
|
findLongitudeCrossingsWith,
|
|
26
26
|
searchLongitudeCrossingsWith
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-TSS2SZWQ.js";
|
|
28
28
|
import "./chunk-PFGUCNOK.js";
|
|
29
29
|
import {
|
|
30
30
|
DECLINATION_ORB,
|
|
@@ -54,18 +54,19 @@ import {
|
|
|
54
54
|
roundedValue,
|
|
55
55
|
sectOf,
|
|
56
56
|
signOf
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-SRXBTP5H.js";
|
|
58
58
|
import {
|
|
59
|
+
DELTA_T_IERS_MODEL,
|
|
59
60
|
EPHEMERIS_SPAN,
|
|
60
61
|
REFERENCE_SPAN,
|
|
61
62
|
outsideReferenceSpan
|
|
62
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-B5LKF437.js";
|
|
63
64
|
import {
|
|
64
65
|
DELTA_T_MODEL,
|
|
65
66
|
DELTA_T_TABLE,
|
|
66
67
|
deltaT,
|
|
67
68
|
deltaTAt
|
|
68
|
-
} from "./chunk-
|
|
69
|
+
} from "./chunk-BHJXUY67.js";
|
|
69
70
|
import {
|
|
70
71
|
HOUSE_SYSTEMS,
|
|
71
72
|
PLACIDUS_POLAR_FALLBACK,
|
|
@@ -92,7 +93,7 @@ import {
|
|
|
92
93
|
vehlowCusps,
|
|
93
94
|
vertexOf,
|
|
94
95
|
wholeSignCusps
|
|
95
|
-
} from "./chunk-
|
|
96
|
+
} from "./chunk-DMGHYCDI.js";
|
|
96
97
|
import {
|
|
97
98
|
ASPECTS,
|
|
98
99
|
ASPECT_BODIES,
|
|
@@ -103,6 +104,7 @@ import {
|
|
|
103
104
|
MODALITIES,
|
|
104
105
|
SIGNS,
|
|
105
106
|
SIGN_NAMES,
|
|
107
|
+
SIGN_SLUGS,
|
|
106
108
|
STATIONARY_RELATIVE_SPEED,
|
|
107
109
|
aspectMotion,
|
|
108
110
|
degreeInSign,
|
|
@@ -112,10 +114,12 @@ import {
|
|
|
112
114
|
separation,
|
|
113
115
|
signForLongitude,
|
|
114
116
|
signIndexForLongitude
|
|
115
|
-
} from "./chunk-
|
|
117
|
+
} from "./chunk-OG4OYTJJ.js";
|
|
116
118
|
|
|
117
119
|
// src/configured-aspects.ts
|
|
118
|
-
var
|
|
120
|
+
var ASPECT_POLICY_SCHEMA = "zodiacs.aspect-policy.v1";
|
|
121
|
+
var CONFIGURED_ASPECTS_SCHEMA = "zodiacs.configured-aspects.v1";
|
|
122
|
+
var CONFIGURED_ASPECT_ANGLES = /* @__PURE__ */ Object.freeze({
|
|
119
123
|
conjunction: 0,
|
|
120
124
|
semisextile: 30,
|
|
121
125
|
semisquare: 45,
|
|
@@ -137,7 +141,7 @@ var DEFAULT_RULES = [
|
|
|
137
141
|
{ type: "opposition", orb: 8, luminaryOrb: 10 }
|
|
138
142
|
];
|
|
139
143
|
var POLICIES = /* @__PURE__ */ new WeakSet();
|
|
140
|
-
var CONVENTIONS = Object.freeze({
|
|
144
|
+
var CONVENTIONS = /* @__PURE__ */ Object.freeze({
|
|
141
145
|
coordinates: "ecliptic-longitude-degrees-[0,360)",
|
|
142
146
|
speed: "longitude-degrees-per-day;same-time-basis",
|
|
143
147
|
motion: "instantaneous-orb-rate;right-derivative-at-circular-corners;exact-separating-unless-stationary",
|
|
@@ -221,7 +225,7 @@ function createAspectPolicy(input = {}) {
|
|
|
221
225
|
}
|
|
222
226
|
const stationaryRelativeSpeed = options.stationaryRelativeSpeed === void 0 ? 1e-9 : numberIn(options.stationaryRelativeSpeed, 0, Number.MAX_VALUE, "Stationary relative speed");
|
|
223
227
|
const policy = Object.freeze({
|
|
224
|
-
schema:
|
|
228
|
+
schema: ASPECT_POLICY_SCHEMA,
|
|
225
229
|
aspects: Object.freeze(aspects),
|
|
226
230
|
bodies: Object.freeze(bodies),
|
|
227
231
|
bodyOrbs: Object.freeze(bodyOrbs),
|
|
@@ -231,7 +235,7 @@ function createAspectPolicy(input = {}) {
|
|
|
231
235
|
POLICIES.add(policy);
|
|
232
236
|
return policy;
|
|
233
237
|
}
|
|
234
|
-
var DEFAULT_ASPECT_POLICY = createAspectPolicy();
|
|
238
|
+
var DEFAULT_ASPECT_POLICY = /* @__PURE__ */ createAspectPolicy();
|
|
235
239
|
function signedSeparation(a, b) {
|
|
236
240
|
const difference = exactSum(a, -b);
|
|
237
241
|
if (compareExact(difference, 180) > 0) return exactSum(difference, -360);
|
|
@@ -305,17 +309,20 @@ function findConfiguredAspects(positions2, policy) {
|
|
|
305
309
|
}
|
|
306
310
|
}
|
|
307
311
|
found.sort((x, y) => compareExact(x.exactOrb, y.exactOrb));
|
|
308
|
-
return Object.freeze({ schema:
|
|
312
|
+
return Object.freeze({ schema: CONFIGURED_ASPECTS_SCHEMA, policy, aspects: Object.freeze(found.map((entry) => entry.aspect)) });
|
|
309
313
|
}
|
|
310
314
|
export {
|
|
311
315
|
ASPECTS,
|
|
312
316
|
ASPECT_BODIES,
|
|
317
|
+
ASPECT_POLICY_SCHEMA,
|
|
313
318
|
ASPECT_TYPES,
|
|
319
|
+
CONFIGURED_ASPECTS_SCHEMA,
|
|
314
320
|
CONFIGURED_ASPECT_ANGLES,
|
|
315
321
|
DECLINATION_ORB,
|
|
316
322
|
DECLINATION_ORB_LUMINARY,
|
|
317
323
|
DEFAULT_ASPECT_POLICY,
|
|
318
324
|
DEFAULT_DECLINATION_ORB_POLICY,
|
|
325
|
+
DELTA_T_IERS_MODEL,
|
|
319
326
|
DELTA_T_MODEL,
|
|
320
327
|
DELTA_T_TABLE,
|
|
321
328
|
ELEMENTS,
|
|
@@ -334,6 +341,7 @@ export {
|
|
|
334
341
|
REFERENCE_SPAN,
|
|
335
342
|
SIGNS,
|
|
336
343
|
SIGN_NAMES,
|
|
344
|
+
SIGN_SLUGS,
|
|
337
345
|
STATIONARY_RELATIVE_SPEED,
|
|
338
346
|
SUN_BOUND_LATITUDE,
|
|
339
347
|
alcabitiusCusps,
|