@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
package/dist/types-B4MCoCCS.d.ts
DELETED
|
@@ -1,228 +0,0 @@
|
|
|
1
|
-
import { DeltaT } from './deltat.js';
|
|
2
|
-
|
|
3
|
-
/** The scale an input instant is on. UTC unless a caller says otherwise. */
|
|
4
|
-
type TimeScaleName = "utc" | "ut1" | "tt";
|
|
5
|
-
/** UT1 − UTC as used: IERS observed or predicted, or 0 within 0.9 s outside the table. */
|
|
6
|
-
interface Ut1MinusUtc {
|
|
7
|
-
seconds: number;
|
|
8
|
-
sigma: number;
|
|
9
|
-
source: "observed" | "predicted" | "fallback";
|
|
10
|
-
}
|
|
11
|
-
/** TAI − UTC, s; `listed` is false after the list expires and its last value is carried. */
|
|
12
|
-
interface LeapSeconds {
|
|
13
|
-
taiMinusUtc: number;
|
|
14
|
-
listed: boolean;
|
|
15
|
-
}
|
|
16
|
-
/** How an instant became UT1 and TT: "iers" (leap seconds, IERS UT1 − UTC), "delta-t" (read as UT1, the ΔT model) or "pinned". */
|
|
17
|
-
interface TimeScale {
|
|
18
|
-
input: TimeScaleName;
|
|
19
|
-
basis: "iers" | "delta-t" | "pinned";
|
|
20
|
-
/** Null before 1972. */
|
|
21
|
-
ut1MinusUtc: Ut1MinusUtc | null;
|
|
22
|
-
/** Null where TT did not come from the leap seconds. */
|
|
23
|
-
leapSeconds: LeapSeconds | null;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
/** Public, serializable vocabulary shared by the chart APIs. */
|
|
27
|
-
|
|
28
|
-
type DateInput = Date | string | number;
|
|
29
|
-
type ZodiacSign = "aries" | "taurus" | "gemini" | "cancer" | "leo" | "virgo" | "libra" | "scorpio" | "sagittarius" | "capricorn" | "aquarius" | "pisces";
|
|
30
|
-
type Element = "fire" | "earth" | "air" | "water";
|
|
31
|
-
type Modality = "cardinal" | "fixed" | "mutable";
|
|
32
|
-
type Polarity = "day" | "night";
|
|
33
|
-
type HouseNumber = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
|
|
34
|
-
interface SignDefinition {
|
|
35
|
-
slug: ZodiacSign;
|
|
36
|
-
name: string;
|
|
37
|
-
element: Element;
|
|
38
|
-
modality: Modality;
|
|
39
|
-
polarity: Polarity;
|
|
40
|
-
naturalHouse: HouseNumber;
|
|
41
|
-
}
|
|
42
|
-
type BodyName = "Sun" | "Moon" | "Mercury" | "Venus" | "Mars" | "Jupiter" | "Saturn" | "Uranus" | "Neptune" | "Pluto" | "North Node" | "South Node";
|
|
43
|
-
type HouseSystem = "whole" | "placidus" | "porphyry" | "equal" | "equal-mc" | "vehlow" | "koch" | "regiomontanus" | "campanus" | "topocentric" | "alcabitius" | "morinus" | "meridian";
|
|
44
|
-
type ChartFlag = "dst-gap" | "dst-fold" | "lmt" | "no-time" | "polar-fallback" | "outside-reference-span";
|
|
45
|
-
/**
|
|
46
|
-
* A resolved birth instant. Use `resolveBirth` from `@zodiacs/engine/geo`
|
|
47
|
-
* when starting from a local wall time and IANA timezone.
|
|
48
|
-
*/
|
|
49
|
-
interface BirthInput {
|
|
50
|
-
/** The instant, on the scale `timeScale` names. */
|
|
51
|
-
utc: DateInput;
|
|
52
|
-
/** "utc" (default), "ut1" or "tt" (docs/time.md). */
|
|
53
|
-
timeScale?: TimeScaleName;
|
|
54
|
-
latitude?: number;
|
|
55
|
-
longitude?: number;
|
|
56
|
-
houseSystem?: HouseSystem;
|
|
57
|
-
/** False means `utc` is a caller-supplied reference instant and suppresses angles/houses.
|
|
58
|
-
* It does not establish a UTC-noon or local-noon convention by itself. */
|
|
59
|
-
timeKnown?: boolean;
|
|
60
|
-
/** Up to 64 known flags. Duplicate claims normalize to one value. Time flags
|
|
61
|
-
* are caller assertions; no-time/polar-fallback echoes must match calculation.
|
|
62
|
-
* natalChart returns canonical semantic flags, not the raw submitted array. */
|
|
63
|
-
flags?: readonly ChartFlag[];
|
|
64
|
-
/**
|
|
65
|
-
* Fix ΔT (TT − UT1) at this many seconds instead of the engine's time
|
|
66
|
-
* basis; UT1 still comes from the instant. The chart then reports
|
|
67
|
-
* `deltaT.model` "pinned". Finite, at most 1e10 in size.
|
|
68
|
-
*/
|
|
69
|
-
deltaT?: number;
|
|
70
|
-
}
|
|
71
|
-
interface ChartInput {
|
|
72
|
-
utc: Date;
|
|
73
|
-
/** Present when the instant is not UTC. */
|
|
74
|
-
timeScale?: Exclude<TimeScaleName, "utc">;
|
|
75
|
-
/** A caller's fixed ΔT in seconds; the engine's model when absent. */
|
|
76
|
-
deltaT?: number;
|
|
77
|
-
latitude?: number;
|
|
78
|
-
longitude?: number;
|
|
79
|
-
houseSystem: HouseSystem;
|
|
80
|
-
timeKnown: boolean;
|
|
81
|
-
flags?: readonly ChartFlag[];
|
|
82
|
-
}
|
|
83
|
-
interface BodyPosition {
|
|
84
|
-
body: BodyName;
|
|
85
|
-
/** Tropical ecliptic longitude of date, degrees in [0, 360). */
|
|
86
|
-
lon: number;
|
|
87
|
-
/** Ecliptic latitude, degrees (zero for the Moon nodes). */
|
|
88
|
-
lat: number;
|
|
89
|
-
/**
|
|
90
|
-
* Longitude speed in degrees/day, the derivative of `lon` over plus/minus
|
|
91
|
-
* 0.001 day (the nodes: plus/minus 0.25 day); negative means retrograde.
|
|
92
|
-
*/
|
|
93
|
-
speed: number;
|
|
94
|
-
retrograde: boolean;
|
|
95
|
-
sign: ZodiacSign;
|
|
96
|
-
/** Longitude inside `sign`, degrees in [0, 30). */
|
|
97
|
-
degree: number;
|
|
98
|
-
}
|
|
99
|
-
/** A chart point that is not a body; see `chartPoints`. */
|
|
100
|
-
type PointName = "Mean Node" | "Mean South Node" | "Black Moon Lilith" | "Vertex" | "East Point" | "Lot of Fortune" | "Lot of Spirit" | "Lot of Eros" | "Lot of Necessity" | "Lot of Courage" | "Lot of Victory" | "Lot of Nemesis";
|
|
101
|
-
/** Day when the Sun is above the horizon, night when it is below. */
|
|
102
|
-
type Sect = "day" | "night";
|
|
103
|
-
interface PointPosition {
|
|
104
|
-
point: PointName;
|
|
105
|
-
/** Tropical longitude of date, degrees in [0, 360). */
|
|
106
|
-
lon: number;
|
|
107
|
-
/** Ecliptic latitude, degrees; zero except for Black Moon Lilith. */
|
|
108
|
-
lat: number;
|
|
109
|
-
/**
|
|
110
|
-
* Longitude speed in degrees/day, the derivative of `lon` over plus/minus
|
|
111
|
-
* 0.001 day, for the mean node and Black Moon Lilith; null for the points the
|
|
112
|
-
* chart's angles fix.
|
|
113
|
-
*/
|
|
114
|
-
speed: number | null;
|
|
115
|
-
sign: ZodiacSign;
|
|
116
|
-
/** Longitude inside `sign`, degrees in [0, 30). */
|
|
117
|
-
degree: number;
|
|
118
|
-
}
|
|
119
|
-
interface ChartPoints {
|
|
120
|
-
/** The chart's sect; null when it has no angles. */
|
|
121
|
-
sect: Sect | null;
|
|
122
|
-
/**
|
|
123
|
-
* The mean node and its opposite point and Black Moon Lilith always; the
|
|
124
|
-
* Vertex, the East Point and the seven lots only when the chart has angles.
|
|
125
|
-
*/
|
|
126
|
-
points: PointPosition[];
|
|
127
|
-
}
|
|
128
|
-
interface Angles {
|
|
129
|
-
asc: number;
|
|
130
|
-
mc: number;
|
|
131
|
-
dsc: number;
|
|
132
|
-
ic: number;
|
|
133
|
-
}
|
|
134
|
-
interface Houses {
|
|
135
|
-
system: HouseSystem;
|
|
136
|
-
/** Cusp longitudes; array index zero is the first house. */
|
|
137
|
-
cusps: number[];
|
|
138
|
-
}
|
|
139
|
-
type AspectType = "conjunction" | "sextile" | "square" | "trine" | "opposition";
|
|
140
|
-
interface Aspect {
|
|
141
|
-
a: BodyName;
|
|
142
|
-
b: BodyName;
|
|
143
|
-
type: AspectType;
|
|
144
|
-
/** Deviation from exact, in degrees. */
|
|
145
|
-
orb: number;
|
|
146
|
-
/**
|
|
147
|
-
* True only when the orb is strictly decreasing at the chart instant, judged
|
|
148
|
-
* from the two longitude speeds. False when separating, when exact, and when
|
|
149
|
-
* the relative speed is below STATIONARY_RELATIVE_SPEED; aspectMotion tells
|
|
150
|
-
* the last case apart.
|
|
151
|
-
*/
|
|
152
|
-
applying: boolean;
|
|
153
|
-
}
|
|
154
|
-
interface Chart {
|
|
155
|
-
input: ChartInput;
|
|
156
|
-
bodies: BodyPosition[];
|
|
157
|
-
/** Present only when a time and coordinates are available. */
|
|
158
|
-
angles: Angles | null;
|
|
159
|
-
houses: Houses | null;
|
|
160
|
-
aspects: Aspect[];
|
|
161
|
-
flags: ChartFlag[];
|
|
162
|
-
/** The ΔT (TT − UT1) the chart was computed with, its band and its source. */
|
|
163
|
-
deltaT: DeltaT;
|
|
164
|
-
/** How the instant became UT1 (for the angles) and TT (for the positions). */
|
|
165
|
-
timeScale: TimeScale;
|
|
166
|
-
engineVersion: string;
|
|
167
|
-
}
|
|
168
|
-
interface MinimalBody {
|
|
169
|
-
body: string;
|
|
170
|
-
lon: number;
|
|
171
|
-
}
|
|
172
|
-
interface InterAspect {
|
|
173
|
-
/** Body in the first chart (or the moving body for `transits`). */
|
|
174
|
-
a: string;
|
|
175
|
-
aLon: number;
|
|
176
|
-
/** Body in the second chart (or the natal body for `transits`). */
|
|
177
|
-
b: string;
|
|
178
|
-
bLon: number;
|
|
179
|
-
type: AspectType;
|
|
180
|
-
orb: number;
|
|
181
|
-
}
|
|
182
|
-
interface PairSummary {
|
|
183
|
-
aspects: InterAspect[];
|
|
184
|
-
top: InterAspect[];
|
|
185
|
-
counts: Record<AspectType, number>;
|
|
186
|
-
easeful: number;
|
|
187
|
-
charged: number;
|
|
188
|
-
elements: {
|
|
189
|
-
a: Record<Element, number>;
|
|
190
|
-
b: Record<Element, number>;
|
|
191
|
-
};
|
|
192
|
-
modalities: {
|
|
193
|
-
a: Record<Modality, number>;
|
|
194
|
-
b: Record<Modality, number>;
|
|
195
|
-
};
|
|
196
|
-
}
|
|
197
|
-
interface SynastryResult extends PairSummary {
|
|
198
|
-
a: Chart;
|
|
199
|
-
b: Chart;
|
|
200
|
-
}
|
|
201
|
-
interface TransitResult {
|
|
202
|
-
natal: Chart;
|
|
203
|
-
at: Date;
|
|
204
|
-
positions: BodyPosition[];
|
|
205
|
-
/** Moving-body-to-natal-body aspects, sorted by orb. */
|
|
206
|
-
aspects: InterAspect[];
|
|
207
|
-
}
|
|
208
|
-
type MoonPhaseName = "New Moon" | "Waxing Crescent" | "First Quarter" | "Waxing Gibbous" | "Full Moon" | "Waning Gibbous" | "Last Quarter" | "Waning Crescent";
|
|
209
|
-
interface MoonPhase {
|
|
210
|
-
at: Date;
|
|
211
|
-
/** Elongation Moon minus Sun: 0 = new, 180 = full. */
|
|
212
|
-
angle: number;
|
|
213
|
-
/** Illuminated fraction in [0, 1]. */
|
|
214
|
-
illumination: number;
|
|
215
|
-
name: MoonPhaseName;
|
|
216
|
-
waxing: boolean;
|
|
217
|
-
}
|
|
218
|
-
declare const ENGINE_VERSION = "0.1.1-rc.16";
|
|
219
|
-
/**
|
|
220
|
-
* The ephemeris underneath every position. The dependency is pinned to this
|
|
221
|
-
* exact version, so receipts can name it without asking the caller.
|
|
222
|
-
*/
|
|
223
|
-
declare const EPHEMERIS: Readonly<{
|
|
224
|
-
readonly name: "astronomy-engine";
|
|
225
|
-
readonly version: "2.1.19";
|
|
226
|
-
}>;
|
|
227
|
-
|
|
228
|
-
export { type Angles as A, type BodyName as B, type ChartInput as C, type DateInput as D, type Element as E, type HouseSystem as H, type InterAspect as I, type LeapSeconds as L, type MoonPhase as M, type PairSummary as P, type SynastryResult as S, type TimeScaleName as T, type Ut1MinusUtc as U, type ZodiacSign as Z, type Houses as a, type HouseNumber as b, type BodyPosition as c, type Chart as d, type ChartFlag as e, type BirthInput as f, type AspectType as g, type TimeScale as h, type ChartPoints as i, type TransitResult as j, type Sect as k, type MinimalBody as l, type Modality as m, type Aspect as n, ENGINE_VERSION as o, EPHEMERIS as p, type MoonPhaseName as q, type PointName as r, type PointPosition as s, type Polarity as t, type SignDefinition as u };
|