@zodiacs/engine 0.1.1-rc.14
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 +502 -0
- package/LICENSE +21 -0
- package/LICENSING.md +99 -0
- package/NOTICE +58 -0
- package/README.md +785 -0
- package/dist/chunk-4OSOCZY2.js +340 -0
- package/dist/chunk-AECKV73C.js +231 -0
- package/dist/chunk-CPALRSPC.js +35 -0
- package/dist/chunk-GFT24GFR.js +25 -0
- package/dist/chunk-NAJ735VN.js +219 -0
- package/dist/chunk-ONBZ4HK7.js +285 -0
- package/dist/chunk-PFGUCNOK.js +87 -0
- package/dist/chunk-RETEVD4F.js +681 -0
- package/dist/crossings.d.ts +91 -0
- package/dist/crossings.js +8 -0
- package/dist/deltat.d.ts +73 -0
- package/dist/deltat.js +12 -0
- package/dist/geo.d.ts +58 -0
- package/dist/geo.js +312 -0
- package/dist/index.d.ts +478 -0
- package/dist/index.js +682 -0
- package/dist/internal-math-BE2hcSHd.d.ts +271 -0
- package/dist/internal-math.d.ts +3 -0
- package/dist/internal-math.js +76 -0
- package/dist/internal.d.ts +9 -0
- package/dist/internal.js +16 -0
- package/dist/receipt.d.ts +224 -0
- package/dist/receipt.js +824 -0
- package/dist/types-CeafogFp.d.ts +197 -0
- package/package.json +94 -0
|
@@ -0,0 +1,271 @@
|
|
|
1
|
+
import { j as AspectType, a as BodyPosition, i as Aspect, A as Angles, H as HouseSystem, n as Houses, m as HouseNumber, Z as ZodiacSign, s as SignDefinition } from './types-CeafogFp.js';
|
|
2
|
+
|
|
3
|
+
interface AspectDefinition {
|
|
4
|
+
type: AspectType;
|
|
5
|
+
angle: number;
|
|
6
|
+
orb: number;
|
|
7
|
+
luminaryOrb: number;
|
|
8
|
+
}
|
|
9
|
+
declare const ASPECT_TYPES: readonly ["conjunction", "sextile", "square", "trine", "opposition"];
|
|
10
|
+
declare const ASPECTS: readonly [{
|
|
11
|
+
readonly type: "conjunction";
|
|
12
|
+
readonly angle: 0;
|
|
13
|
+
readonly orb: 8;
|
|
14
|
+
readonly luminaryOrb: 10;
|
|
15
|
+
}, {
|
|
16
|
+
readonly type: "sextile";
|
|
17
|
+
readonly angle: 60;
|
|
18
|
+
readonly orb: 4;
|
|
19
|
+
readonly luminaryOrb: 5;
|
|
20
|
+
}, {
|
|
21
|
+
readonly type: "square";
|
|
22
|
+
readonly angle: 90;
|
|
23
|
+
readonly orb: 7;
|
|
24
|
+
readonly luminaryOrb: 8;
|
|
25
|
+
}, {
|
|
26
|
+
readonly type: "trine";
|
|
27
|
+
readonly angle: 120;
|
|
28
|
+
readonly orb: 7;
|
|
29
|
+
readonly luminaryOrb: 8;
|
|
30
|
+
}, {
|
|
31
|
+
readonly type: "opposition";
|
|
32
|
+
readonly angle: 180;
|
|
33
|
+
readonly orb: 8;
|
|
34
|
+
readonly luminaryOrb: 10;
|
|
35
|
+
}];
|
|
36
|
+
declare const ASPECT_BODIES: Set<string>;
|
|
37
|
+
/** Whether an aspect's orb is shrinking, growing, or neither, at an instant. */
|
|
38
|
+
type AspectMotion = "applying" | "separating" | "stationary";
|
|
39
|
+
/**
|
|
40
|
+
* Below this relative speed, in degrees per day, two bodies are treated as
|
|
41
|
+
* not moving against each other, and the aspect as neither applying nor
|
|
42
|
+
* separating.
|
|
43
|
+
*/
|
|
44
|
+
declare const STATIONARY_RELATIVE_SPEED = 1e-9;
|
|
45
|
+
/**
|
|
46
|
+
* The motion of an aspect at the chart instant, from the two longitudes and
|
|
47
|
+
* their speeds (degrees per day). It is applying when the orb is strictly
|
|
48
|
+
* decreasing: the sign of the orb's rate of change, not a step forward in
|
|
49
|
+
* time, decides. An exact aspect (orb 0) can only separate.
|
|
50
|
+
*/
|
|
51
|
+
declare function aspectMotion(a: {
|
|
52
|
+
lon: number;
|
|
53
|
+
speed: number;
|
|
54
|
+
}, b: {
|
|
55
|
+
lon: number;
|
|
56
|
+
speed: number;
|
|
57
|
+
}, angle: number): AspectMotion;
|
|
58
|
+
/** Unsigned angular separation in [0, 180]. */
|
|
59
|
+
declare function separation(a: number, b: number): number;
|
|
60
|
+
declare function matchAspect(aBody: string, aLongitude: number, bBody: string, bLongitude: number): {
|
|
61
|
+
definition: AspectDefinition;
|
|
62
|
+
orb: number;
|
|
63
|
+
} | null;
|
|
64
|
+
declare function findAspects(bodies: readonly BodyPosition[]): Aspect[];
|
|
65
|
+
|
|
66
|
+
declare const HOUSE_SYSTEMS: readonly ["whole", "placidus", "porphyry", "equal", "equal-mc", "vehlow", "koch", "regiomontanus", "campanus", "topocentric", "alcabitius", "morinus", "meridian"];
|
|
67
|
+
/**
|
|
68
|
+
* The systems that are undefined inside the polar circle, |latitude| ≥ 90° − ε,
|
|
69
|
+
* where part of the ecliptic never rises or sets: Placidus and Koch both divide
|
|
70
|
+
* a semi-arc that no longer exists there.
|
|
71
|
+
*/
|
|
72
|
+
declare const POLAR_UNDEFINED_HOUSE_SYSTEMS: readonly ["placidus", "koch"];
|
|
73
|
+
/**
|
|
74
|
+
* The system Placidus and Koch fall back to where they are undefined. The chart
|
|
75
|
+
* then carries the `polar-fallback` flag. Swiss Ephemeris falls back to
|
|
76
|
+
* Porphyry there instead; ask for `"porphyry"` to get that system at any latitude.
|
|
77
|
+
*/
|
|
78
|
+
declare const POLAR_FALLBACK: "whole";
|
|
79
|
+
/** The system Placidus falls back to; the same as {@link POLAR_FALLBACK}. */
|
|
80
|
+
declare const PLACIDUS_POLAR_FALLBACK: "whole";
|
|
81
|
+
/** Whether `system` is one that falls back inside the polar circle. */
|
|
82
|
+
declare function isPolarUndefinedHouseSystem(system: HouseSystem): boolean;
|
|
83
|
+
/** Mean obliquity of the ecliptic (IAU 2006), in degrees. */
|
|
84
|
+
declare function meanObliquity(julianCenturies: number): number;
|
|
85
|
+
interface AngleInput {
|
|
86
|
+
/** Greenwich apparent sidereal time, in hours. */
|
|
87
|
+
gastHours: number;
|
|
88
|
+
latitude: number;
|
|
89
|
+
/** East-positive longitude, in degrees. */
|
|
90
|
+
longitude: number;
|
|
91
|
+
obliquity: number;
|
|
92
|
+
}
|
|
93
|
+
declare function ramcOf(input: Pick<AngleInput, "gastHours" | "longitude">): number;
|
|
94
|
+
declare function computeAngles(input: AngleInput): Angles;
|
|
95
|
+
declare function wholeSignCusps(ascendant: number): number[];
|
|
96
|
+
/**
|
|
97
|
+
* Placidus intermediate cusps using iterative semi-arc trisection.
|
|
98
|
+
* Returns `null` inside the polar circle, |latitude| ≥ 90° − ε, where part of
|
|
99
|
+
* the ecliptic never rises or sets and the semi-arcs are undefined.
|
|
100
|
+
*/
|
|
101
|
+
declare function placidusCusps(input: AngleInput, angles: Angles): number[] | null;
|
|
102
|
+
/**
|
|
103
|
+
* Porphyry cusps: each quadrant between the angles, measured in ecliptic
|
|
104
|
+
* longitude, divided into three equal parts. Defined wherever the angles are.
|
|
105
|
+
*/
|
|
106
|
+
declare function porphyryCusps(angles: Angles): number[];
|
|
107
|
+
/** Equal houses: thirty degrees each, the first beginning at the ascendant. */
|
|
108
|
+
declare function equalCusps(angles: Angles): number[];
|
|
109
|
+
/**
|
|
110
|
+
* Equal houses from the midheaven: thirty degrees each, the 10th beginning at
|
|
111
|
+
* the midheaven, so the 1st begins 90° past it. Neither the ascendant nor the
|
|
112
|
+
* latitude enters, so the system is the same at every latitude.
|
|
113
|
+
*/
|
|
114
|
+
declare function equalMcCusps(angles: Angles): number[];
|
|
115
|
+
/** Vehlow's equal houses: thirty degrees each, with the ascendant in the middle of the first. */
|
|
116
|
+
declare function vehlowCusps(angles: Angles): number[];
|
|
117
|
+
/**
|
|
118
|
+
* Koch (birthplace) cusps: the ascendants at the sidereal times when the
|
|
119
|
+
* midheaven degree has run a third and two thirds of its diurnal semi-arc,
|
|
120
|
+
* before and after culmination. Returns `null` inside the polar circle, where
|
|
121
|
+
* that semi-arc is undefined for part of the ecliptic.
|
|
122
|
+
*/
|
|
123
|
+
declare function kochCusps(input: AngleInput, angles: Angles): number[] | null;
|
|
124
|
+
/**
|
|
125
|
+
* Regiomontanus cusps: house circles through the north and south points of
|
|
126
|
+
* the horizon that divide the celestial equator into arcs of 30°.
|
|
127
|
+
*/
|
|
128
|
+
declare function regiomontanusCusps(input: AngleInput, angles: Angles): number[];
|
|
129
|
+
/**
|
|
130
|
+
* Campanus cusps: house circles through the north and south points of the
|
|
131
|
+
* horizon that divide the prime vertical into arcs of 30°.
|
|
132
|
+
*/
|
|
133
|
+
declare function campanusCusps(input: AngleInput, angles: Angles): number[];
|
|
134
|
+
/**
|
|
135
|
+
* Topocentric (Polich–Page) cusps: the Regiomontanus ascensions with pole
|
|
136
|
+
* heights whose tangents are a third and two thirds of the latitude's.
|
|
137
|
+
*/
|
|
138
|
+
declare function topocentricCusps(input: AngleInput, angles: Angles): number[];
|
|
139
|
+
/**
|
|
140
|
+
* Alcabitius cusps: the ascendant's diurnal and nocturnal semi-arcs, divided
|
|
141
|
+
* into thirds on the equator and carried to the ecliptic along hour circles.
|
|
142
|
+
*/
|
|
143
|
+
declare function alcabitiusCusps(input: AngleInput, angles: Angles): number[];
|
|
144
|
+
/**
|
|
145
|
+
* Meridian (axial rotation) cusps: the ecliptic points whose right ascensions
|
|
146
|
+
* divide the equator into 30° arcs from the midheaven's. The 10th cusp is the
|
|
147
|
+
* midheaven; the 1st is the equatorial ascendant, not the ascendant.
|
|
148
|
+
*/
|
|
149
|
+
declare function meridianCusps(input: AngleInput): number[];
|
|
150
|
+
/**
|
|
151
|
+
* Morinus cusps: the equator divided into 30° arcs from the midheaven's right
|
|
152
|
+
* ascension, each point carried to the ecliptic along a circle through the
|
|
153
|
+
* ecliptic poles. Neither the ascendant nor the midheaven is a cusp.
|
|
154
|
+
*/
|
|
155
|
+
declare function morinusCusps(input: AngleInput): number[];
|
|
156
|
+
/**
|
|
157
|
+
* The East Point, or equatorial ascendant: the ecliptic point rising where the
|
|
158
|
+
* celestial equator meets the eastern horizon, with right ascension RAMC + 90°.
|
|
159
|
+
* It depends on the sidereal time and the obliquity, not on the latitude.
|
|
160
|
+
*/
|
|
161
|
+
declare function eastPointOf(input: AngleInput): number;
|
|
162
|
+
/**
|
|
163
|
+
* The Vertex: where the prime vertical, the great circle through the zenith
|
|
164
|
+
* and the east and west points, meets the ecliptic in the west. It is the
|
|
165
|
+
* descendant of the colatitude, taken on the western side of the meridian. At
|
|
166
|
+
* the equator the prime vertical is the celestial equator, and the Vertex is
|
|
167
|
+
* the equinox west of the meridian. Where the ecliptic passes through the
|
|
168
|
+
* zenith, the two circles meet on the meridian and neither point is west.
|
|
169
|
+
*/
|
|
170
|
+
declare function vertexOf(input: AngleInput, angles: Angles): number;
|
|
171
|
+
declare function computeHouses(system: HouseSystem, input: AngleInput, angles: Angles): {
|
|
172
|
+
houses: Houses;
|
|
173
|
+
fellBack: boolean;
|
|
174
|
+
fallbackSystem: HouseSystem | null;
|
|
175
|
+
};
|
|
176
|
+
declare function houseOf(longitude: number, cusps: readonly number[]): HouseNumber;
|
|
177
|
+
|
|
178
|
+
declare const ELEMENTS: readonly ["fire", "earth", "air", "water"];
|
|
179
|
+
declare const MODALITIES: readonly ["cardinal", "fixed", "mutable"];
|
|
180
|
+
declare const SIGNS: readonly [{
|
|
181
|
+
readonly slug: "aries";
|
|
182
|
+
readonly name: "Aries";
|
|
183
|
+
readonly element: "fire";
|
|
184
|
+
readonly modality: "cardinal";
|
|
185
|
+
readonly polarity: "day";
|
|
186
|
+
readonly naturalHouse: 1;
|
|
187
|
+
}, {
|
|
188
|
+
readonly slug: "taurus";
|
|
189
|
+
readonly name: "Taurus";
|
|
190
|
+
readonly element: "earth";
|
|
191
|
+
readonly modality: "fixed";
|
|
192
|
+
readonly polarity: "night";
|
|
193
|
+
readonly naturalHouse: 2;
|
|
194
|
+
}, {
|
|
195
|
+
readonly slug: "gemini";
|
|
196
|
+
readonly name: "Gemini";
|
|
197
|
+
readonly element: "air";
|
|
198
|
+
readonly modality: "mutable";
|
|
199
|
+
readonly polarity: "day";
|
|
200
|
+
readonly naturalHouse: 3;
|
|
201
|
+
}, {
|
|
202
|
+
readonly slug: "cancer";
|
|
203
|
+
readonly name: "Cancer";
|
|
204
|
+
readonly element: "water";
|
|
205
|
+
readonly modality: "cardinal";
|
|
206
|
+
readonly polarity: "night";
|
|
207
|
+
readonly naturalHouse: 4;
|
|
208
|
+
}, {
|
|
209
|
+
readonly slug: "leo";
|
|
210
|
+
readonly name: "Leo";
|
|
211
|
+
readonly element: "fire";
|
|
212
|
+
readonly modality: "fixed";
|
|
213
|
+
readonly polarity: "day";
|
|
214
|
+
readonly naturalHouse: 5;
|
|
215
|
+
}, {
|
|
216
|
+
readonly slug: "virgo";
|
|
217
|
+
readonly name: "Virgo";
|
|
218
|
+
readonly element: "earth";
|
|
219
|
+
readonly modality: "mutable";
|
|
220
|
+
readonly polarity: "night";
|
|
221
|
+
readonly naturalHouse: 6;
|
|
222
|
+
}, {
|
|
223
|
+
readonly slug: "libra";
|
|
224
|
+
readonly name: "Libra";
|
|
225
|
+
readonly element: "air";
|
|
226
|
+
readonly modality: "cardinal";
|
|
227
|
+
readonly polarity: "day";
|
|
228
|
+
readonly naturalHouse: 7;
|
|
229
|
+
}, {
|
|
230
|
+
readonly slug: "scorpio";
|
|
231
|
+
readonly name: "Scorpio";
|
|
232
|
+
readonly element: "water";
|
|
233
|
+
readonly modality: "fixed";
|
|
234
|
+
readonly polarity: "night";
|
|
235
|
+
readonly naturalHouse: 8;
|
|
236
|
+
}, {
|
|
237
|
+
readonly slug: "sagittarius";
|
|
238
|
+
readonly name: "Sagittarius";
|
|
239
|
+
readonly element: "fire";
|
|
240
|
+
readonly modality: "mutable";
|
|
241
|
+
readonly polarity: "day";
|
|
242
|
+
readonly naturalHouse: 9;
|
|
243
|
+
}, {
|
|
244
|
+
readonly slug: "capricorn";
|
|
245
|
+
readonly name: "Capricorn";
|
|
246
|
+
readonly element: "earth";
|
|
247
|
+
readonly modality: "cardinal";
|
|
248
|
+
readonly polarity: "night";
|
|
249
|
+
readonly naturalHouse: 10;
|
|
250
|
+
}, {
|
|
251
|
+
readonly slug: "aquarius";
|
|
252
|
+
readonly name: "Aquarius";
|
|
253
|
+
readonly element: "air";
|
|
254
|
+
readonly modality: "fixed";
|
|
255
|
+
readonly polarity: "day";
|
|
256
|
+
readonly naturalHouse: 11;
|
|
257
|
+
}, {
|
|
258
|
+
readonly slug: "pisces";
|
|
259
|
+
readonly name: "Pisces";
|
|
260
|
+
readonly element: "water";
|
|
261
|
+
readonly modality: "mutable";
|
|
262
|
+
readonly polarity: "night";
|
|
263
|
+
readonly naturalHouse: 12;
|
|
264
|
+
}];
|
|
265
|
+
declare const SIGN_NAMES: readonly ZodiacSign[];
|
|
266
|
+
declare function normalizeLongitude(lon: number): number;
|
|
267
|
+
declare function signIndexForLongitude(lon: number): number;
|
|
268
|
+
declare function signForLongitude(lon: number): SignDefinition;
|
|
269
|
+
declare function degreeInSign(lon: number): number;
|
|
270
|
+
|
|
271
|
+
export { ASPECTS as A, normalizeLongitude as B, placidusCusps as C, porphyryCusps as D, ELEMENTS as E, ramcOf as F, regiomontanusCusps as G, HOUSE_SYSTEMS as H, separation as I, signForLongitude as J, signIndexForLongitude as K, topocentricCusps as L, MODALITIES as M, vehlowCusps as N, vertexOf as O, PLACIDUS_POLAR_FALLBACK as P, wholeSignCusps as Q, SIGNS as S, ASPECT_BODIES as a, ASPECT_TYPES as b, type AngleInput as c, type AspectDefinition as d, type AspectMotion as e, POLAR_FALLBACK as f, POLAR_UNDEFINED_HOUSE_SYSTEMS as g, SIGN_NAMES as h, STATIONARY_RELATIVE_SPEED as i, alcabitiusCusps as j, aspectMotion as k, campanusCusps as l, computeAngles as m, computeHouses as n, degreeInSign as o, eastPointOf as p, equalCusps as q, equalMcCusps as r, findAspects as s, houseOf as t, isPolarUndefinedHouseSystem as u, kochCusps as v, matchAspect as w, meanObliquity as x, meridianCusps as y, morinusCusps as z };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { A as ASPECTS, a as ASPECT_BODIES, b as ASPECT_TYPES, c as AngleInput, d as AspectDefinition, e as AspectMotion, H as HOUSE_SYSTEMS, P as PLACIDUS_POLAR_FALLBACK, f as POLAR_FALLBACK, g as POLAR_UNDEFINED_HOUSE_SYSTEMS, i as STATIONARY_RELATIVE_SPEED, j as alcabitiusCusps, k as aspectMotion, l as campanusCusps, m as computeAngles, n as computeHouses, p as eastPointOf, q as equalCusps, r as equalMcCusps, s as findAspects, t as houseOf, u as isPolarUndefinedHouseSystem, v as kochCusps, w as matchAspect, x as meanObliquity, y as meridianCusps, z as morinusCusps, B as normalizeLongitude, C as placidusCusps, D as porphyryCusps, F as ramcOf, G as regiomontanusCusps, I as separation, L as topocentricCusps, N as vehlowCusps, O as vertexOf, Q as wholeSignCusps } from './internal-math-BE2hcSHd.js';
|
|
2
|
+
export { A as Angles, i as Aspect, j as AspectType, B as BodyName, a as BodyPosition, b as Chart, c as ChartFlag, C as ChartInput, k as ENGINE_VERSION, m as HouseNumber, H as HouseSystem, n as Houses } from './types-CeafogFp.js';
|
|
3
|
+
import './deltat.js';
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import {
|
|
2
|
+
HOUSE_SYSTEMS,
|
|
3
|
+
PLACIDUS_POLAR_FALLBACK,
|
|
4
|
+
POLAR_FALLBACK,
|
|
5
|
+
POLAR_UNDEFINED_HOUSE_SYSTEMS,
|
|
6
|
+
alcabitiusCusps,
|
|
7
|
+
campanusCusps,
|
|
8
|
+
computeAngles,
|
|
9
|
+
computeHouses,
|
|
10
|
+
eastPointOf,
|
|
11
|
+
equalCusps,
|
|
12
|
+
equalMcCusps,
|
|
13
|
+
houseOf,
|
|
14
|
+
isPolarUndefinedHouseSystem,
|
|
15
|
+
kochCusps,
|
|
16
|
+
meanObliquity,
|
|
17
|
+
meridianCusps,
|
|
18
|
+
morinusCusps,
|
|
19
|
+
placidusCusps,
|
|
20
|
+
porphyryCusps,
|
|
21
|
+
ramcOf,
|
|
22
|
+
regiomontanusCusps,
|
|
23
|
+
topocentricCusps,
|
|
24
|
+
vehlowCusps,
|
|
25
|
+
vertexOf,
|
|
26
|
+
wholeSignCusps
|
|
27
|
+
} from "./chunk-4OSOCZY2.js";
|
|
28
|
+
import {
|
|
29
|
+
ASPECTS,
|
|
30
|
+
ASPECT_BODIES,
|
|
31
|
+
ASPECT_TYPES,
|
|
32
|
+
ENGINE_VERSION,
|
|
33
|
+
STATIONARY_RELATIVE_SPEED,
|
|
34
|
+
aspectMotion,
|
|
35
|
+
findAspects,
|
|
36
|
+
matchAspect,
|
|
37
|
+
normalizeLongitude,
|
|
38
|
+
separation
|
|
39
|
+
} from "./chunk-NAJ735VN.js";
|
|
40
|
+
export {
|
|
41
|
+
ASPECTS,
|
|
42
|
+
ASPECT_BODIES,
|
|
43
|
+
ASPECT_TYPES,
|
|
44
|
+
ENGINE_VERSION,
|
|
45
|
+
HOUSE_SYSTEMS,
|
|
46
|
+
PLACIDUS_POLAR_FALLBACK,
|
|
47
|
+
POLAR_FALLBACK,
|
|
48
|
+
POLAR_UNDEFINED_HOUSE_SYSTEMS,
|
|
49
|
+
STATIONARY_RELATIVE_SPEED,
|
|
50
|
+
alcabitiusCusps,
|
|
51
|
+
aspectMotion,
|
|
52
|
+
campanusCusps,
|
|
53
|
+
computeAngles,
|
|
54
|
+
computeHouses,
|
|
55
|
+
eastPointOf,
|
|
56
|
+
equalCusps,
|
|
57
|
+
equalMcCusps,
|
|
58
|
+
findAspects,
|
|
59
|
+
houseOf,
|
|
60
|
+
isPolarUndefinedHouseSystem,
|
|
61
|
+
kochCusps,
|
|
62
|
+
matchAspect,
|
|
63
|
+
meanObliquity,
|
|
64
|
+
meridianCusps,
|
|
65
|
+
morinusCusps,
|
|
66
|
+
normalizeLongitude,
|
|
67
|
+
placidusCusps,
|
|
68
|
+
porphyryCusps,
|
|
69
|
+
ramcOf,
|
|
70
|
+
regiomontanusCusps,
|
|
71
|
+
separation,
|
|
72
|
+
topocentricCusps,
|
|
73
|
+
vehlowCusps,
|
|
74
|
+
vertexOf,
|
|
75
|
+
wholeSignCusps
|
|
76
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { B as BodyName, a as BodyPosition, C as ChartInput, b as Chart } from './types-CeafogFp.js';
|
|
2
|
+
import './deltat.js';
|
|
3
|
+
|
|
4
|
+
declare function bodyLongitude(body: BodyName, date: Date): number;
|
|
5
|
+
declare function longitudeSpeed(body: BodyName, date: Date): number;
|
|
6
|
+
declare function computeBodies(date: Date): BodyPosition[];
|
|
7
|
+
declare function computeChart(input: ChartInput): Chart;
|
|
8
|
+
|
|
9
|
+
export { bodyLongitude, computeBodies, computeChart, longitudeSpeed };
|
package/dist/internal.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import {
|
|
2
|
+
bodyLongitude,
|
|
3
|
+
computeBodies,
|
|
4
|
+
computeChart,
|
|
5
|
+
longitudeSpeed
|
|
6
|
+
} from "./chunk-RETEVD4F.js";
|
|
7
|
+
import "./chunk-4OSOCZY2.js";
|
|
8
|
+
import "./chunk-GFT24GFR.js";
|
|
9
|
+
import "./chunk-ONBZ4HK7.js";
|
|
10
|
+
import "./chunk-NAJ735VN.js";
|
|
11
|
+
export {
|
|
12
|
+
bodyLongitude,
|
|
13
|
+
computeBodies,
|
|
14
|
+
computeChart,
|
|
15
|
+
longitudeSpeed
|
|
16
|
+
};
|
|
@@ -0,0 +1,224 @@
|
|
|
1
|
+
import { H as HouseSystem, c as ChartFlag, b as Chart, d as BirthInput } from './types-CeafogFp.js';
|
|
2
|
+
import './deltat.js';
|
|
3
|
+
|
|
4
|
+
/** Zodiacs-owned draft vocabulary; not an industry interoperability standard. */
|
|
5
|
+
declare const NATAL_ENVELOPE_SCHEMA = "zodiacs.natal-envelope.draft-v1";
|
|
6
|
+
declare const NATAL_RECEIPT_SCHEMA = "zodiacs.calculation-receipt.draft-v1";
|
|
7
|
+
declare const NATAL_DIAGNOSTIC_SCHEMA = "zodiacs.natal-diagnostic.draft-v1";
|
|
8
|
+
declare const NATAL_ENVELOPE_LIMITS: Readonly<{
|
|
9
|
+
bytes: 65536;
|
|
10
|
+
depth: 12;
|
|
11
|
+
nodes: 4096;
|
|
12
|
+
}>;
|
|
13
|
+
type NatalEnvelopeErrorCode = "invalid_json" | "invalid_shape" | "invalid_value" | "inconsistent_result" | "invalid_context" | "size_limit" | "complexity_limit" | "unsupported_version" | "unsupported_feature";
|
|
14
|
+
declare class NatalEnvelopeError extends Error {
|
|
15
|
+
readonly code: NatalEnvelopeErrorCode;
|
|
16
|
+
constructor(code: NatalEnvelopeErrorCode);
|
|
17
|
+
}
|
|
18
|
+
type NatalJsonValue = null | boolean | number | string | NatalJsonValue[] | NatalJsonObject;
|
|
19
|
+
interface NatalJsonObject {
|
|
20
|
+
[key: string]: NatalJsonValue;
|
|
21
|
+
}
|
|
22
|
+
type NatalReference = "supplied-instant" | "utc-noon" | "local-noon";
|
|
23
|
+
/** Captured assertions, checked arithmetically without consulting today's Intl/tzdb. */
|
|
24
|
+
interface NatalLocalResolution {
|
|
25
|
+
date: string;
|
|
26
|
+
time: string;
|
|
27
|
+
timeZone: string;
|
|
28
|
+
/** Offset at the resolved instant, minutes east of UTC; fractional for LMT. */
|
|
29
|
+
offsetMinutes: number;
|
|
30
|
+
/** Forward wall-clock shift; positive only for a reported DST gap. */
|
|
31
|
+
gapShiftMinutes: number;
|
|
32
|
+
policy: {
|
|
33
|
+
fold: "earlier";
|
|
34
|
+
gap: "shift-forward";
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
/** Supplied facts are claims, including hashes. This codec authenticates none of them. */
|
|
38
|
+
interface NatalProvenanceClaims {
|
|
39
|
+
source?: {
|
|
40
|
+
repository: string;
|
|
41
|
+
commit: string;
|
|
42
|
+
};
|
|
43
|
+
artifact?: {
|
|
44
|
+
sha256: string;
|
|
45
|
+
packageVersion: string;
|
|
46
|
+
distributionRepository?: string;
|
|
47
|
+
distributionCommit?: string;
|
|
48
|
+
};
|
|
49
|
+
runtime?: {
|
|
50
|
+
name: string;
|
|
51
|
+
version?: string;
|
|
52
|
+
icuVersion?: string;
|
|
53
|
+
tzdbVersion?: string;
|
|
54
|
+
};
|
|
55
|
+
ephemeris?: {
|
|
56
|
+
name: "astronomy-engine";
|
|
57
|
+
version: string;
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
interface NatalEnvelopeContext {
|
|
61
|
+
/** Omission never infers noon, including when timeKnown is false. */
|
|
62
|
+
reference?: NatalReference;
|
|
63
|
+
/** Original validated ISO spelling when captured; no zone/offset meaning is inferred. */
|
|
64
|
+
sourceInstant?: string | null;
|
|
65
|
+
localResolution?: NatalLocalResolution | null;
|
|
66
|
+
provenance?: NatalProvenanceClaims;
|
|
67
|
+
/** Optional JSON data only. Never executed, rendered, fetched or used for replay. */
|
|
68
|
+
extensions?: NatalJsonObject;
|
|
69
|
+
}
|
|
70
|
+
/** The conventions engine versions 0.1.1-rc.3 to rc.6 recorded. Their receipts stay readable. */
|
|
71
|
+
declare const CONVENTIONS_RC3: Readonly<{
|
|
72
|
+
readonly calendar: "proleptic-gregorian";
|
|
73
|
+
readonly zodiac: "tropical";
|
|
74
|
+
readonly planetPositions: "apparent-geocentric-ecliptic-of-date";
|
|
75
|
+
readonly moonPosition: "astronomy-engine-ecliptic-geo-moon";
|
|
76
|
+
readonly moonNodes: "instantaneous-geocentric-moon-orbit-plane";
|
|
77
|
+
readonly angles: "gast-and-mean-obliquity";
|
|
78
|
+
readonly longitudeUnit: "degrees-[0,360)";
|
|
79
|
+
readonly speed: "degrees-per-day;central-difference-plus-minus-0.25-day";
|
|
80
|
+
readonly aspects: "major-aspects;sun-moon-eight-planets;no-nodes";
|
|
81
|
+
}>;
|
|
82
|
+
/** The conventions engine version 0.1.1-rc.7 recorded. Its receipts stay readable. */
|
|
83
|
+
declare const CONVENTIONS_RC7: Readonly<{
|
|
84
|
+
readonly angles: "gast-and-true-obliquity";
|
|
85
|
+
readonly speed: "degrees-per-day;central-difference-plus-minus-0.001-day;nodes-plus-minus-0.25-day";
|
|
86
|
+
readonly aspects: "major-aspects;sun-moon-eight-planets;no-nodes;applying-instantaneous-orb-rate";
|
|
87
|
+
readonly calendar: "proleptic-gregorian";
|
|
88
|
+
readonly zodiac: "tropical";
|
|
89
|
+
readonly planetPositions: "apparent-geocentric-ecliptic-of-date";
|
|
90
|
+
readonly moonPosition: "astronomy-engine-ecliptic-geo-moon";
|
|
91
|
+
readonly moonNodes: "instantaneous-geocentric-moon-orbit-plane";
|
|
92
|
+
readonly longitudeUnit: "degrees-[0,360)";
|
|
93
|
+
}>;
|
|
94
|
+
/**
|
|
95
|
+
* The conventions this engine records. The planets are corrected for light
|
|
96
|
+
* time and aberration but not for gravitational deflection; the Moon's
|
|
97
|
+
* series carries neither correction.
|
|
98
|
+
*/
|
|
99
|
+
declare const CONVENTIONS: Readonly<{
|
|
100
|
+
readonly planetPositions: "aberrated-geocentric-ecliptic-of-date;no-deflection";
|
|
101
|
+
readonly moonPosition: "astronomy-engine-ecliptic-geo-moon;no-light-time;no-aberration";
|
|
102
|
+
readonly deltaT: "tt-minus-ut1;ut1-read-as-utc;value-in-result";
|
|
103
|
+
readonly angles: "gast-and-true-obliquity";
|
|
104
|
+
readonly speed: "degrees-per-day;central-difference-plus-minus-0.001-day;nodes-plus-minus-0.25-day";
|
|
105
|
+
readonly aspects: "major-aspects;sun-moon-eight-planets;no-nodes;applying-instantaneous-orb-rate";
|
|
106
|
+
readonly calendar: "proleptic-gregorian";
|
|
107
|
+
readonly zodiac: "tropical";
|
|
108
|
+
readonly moonNodes: "instantaneous-geocentric-moon-orbit-plane";
|
|
109
|
+
readonly longitudeUnit: "degrees-[0,360)";
|
|
110
|
+
}>;
|
|
111
|
+
type ConventionSet = typeof CONVENTIONS | typeof CONVENTIONS_RC7 | typeof CONVENTIONS_RC3;
|
|
112
|
+
/** Every conventions set a receipt may carry, the current one first. */
|
|
113
|
+
declare const NATAL_RECEIPT_CONVENTION_SETS: readonly [Readonly<{
|
|
114
|
+
readonly planetPositions: "aberrated-geocentric-ecliptic-of-date;no-deflection";
|
|
115
|
+
readonly moonPosition: "astronomy-engine-ecliptic-geo-moon;no-light-time;no-aberration";
|
|
116
|
+
readonly deltaT: "tt-minus-ut1;ut1-read-as-utc;value-in-result";
|
|
117
|
+
readonly angles: "gast-and-true-obliquity";
|
|
118
|
+
readonly speed: "degrees-per-day;central-difference-plus-minus-0.001-day;nodes-plus-minus-0.25-day";
|
|
119
|
+
readonly aspects: "major-aspects;sun-moon-eight-planets;no-nodes;applying-instantaneous-orb-rate";
|
|
120
|
+
readonly calendar: "proleptic-gregorian";
|
|
121
|
+
readonly zodiac: "tropical";
|
|
122
|
+
readonly moonNodes: "instantaneous-geocentric-moon-orbit-plane";
|
|
123
|
+
readonly longitudeUnit: "degrees-[0,360)";
|
|
124
|
+
}>, Readonly<{
|
|
125
|
+
readonly angles: "gast-and-true-obliquity";
|
|
126
|
+
readonly speed: "degrees-per-day;central-difference-plus-minus-0.001-day;nodes-plus-minus-0.25-day";
|
|
127
|
+
readonly aspects: "major-aspects;sun-moon-eight-planets;no-nodes;applying-instantaneous-orb-rate";
|
|
128
|
+
readonly calendar: "proleptic-gregorian";
|
|
129
|
+
readonly zodiac: "tropical";
|
|
130
|
+
readonly planetPositions: "apparent-geocentric-ecliptic-of-date";
|
|
131
|
+
readonly moonPosition: "astronomy-engine-ecliptic-geo-moon";
|
|
132
|
+
readonly moonNodes: "instantaneous-geocentric-moon-orbit-plane";
|
|
133
|
+
readonly longitudeUnit: "degrees-[0,360)";
|
|
134
|
+
}>, Readonly<{
|
|
135
|
+
readonly calendar: "proleptic-gregorian";
|
|
136
|
+
readonly zodiac: "tropical";
|
|
137
|
+
readonly planetPositions: "apparent-geocentric-ecliptic-of-date";
|
|
138
|
+
readonly moonPosition: "astronomy-engine-ecliptic-geo-moon";
|
|
139
|
+
readonly moonNodes: "instantaneous-geocentric-moon-orbit-plane";
|
|
140
|
+
readonly angles: "gast-and-mean-obliquity";
|
|
141
|
+
readonly longitudeUnit: "degrees-[0,360)";
|
|
142
|
+
readonly speed: "degrees-per-day;central-difference-plus-minus-0.25-day";
|
|
143
|
+
readonly aspects: "major-aspects;sun-moon-eight-planets;no-nodes";
|
|
144
|
+
}>];
|
|
145
|
+
declare const COVERAGE: Readonly<{
|
|
146
|
+
readonly assessment: "finite-reference-cases-only";
|
|
147
|
+
readonly broadDateRange: "not-certified";
|
|
148
|
+
readonly angleExclusions: "exact-geographic-poles-and-ecliptic-horizon-coincidence";
|
|
149
|
+
readonly inputSyntax: "not-an-astronomical-accuracy-guarantee";
|
|
150
|
+
}>;
|
|
151
|
+
interface NatalReceipt {
|
|
152
|
+
schema: typeof NATAL_RECEIPT_SCHEMA;
|
|
153
|
+
instant: string;
|
|
154
|
+
sourceInstant: string | null;
|
|
155
|
+
/** Caller declaration, not verification of a human birth time's precision. */
|
|
156
|
+
timeKnown: boolean;
|
|
157
|
+
reference: NatalReference;
|
|
158
|
+
localResolution: NatalLocalResolution | null;
|
|
159
|
+
coordinates: {
|
|
160
|
+
latitude: number;
|
|
161
|
+
longitude: number;
|
|
162
|
+
} | null;
|
|
163
|
+
houses: {
|
|
164
|
+
requested: HouseSystem;
|
|
165
|
+
actual: HouseSystem | null;
|
|
166
|
+
absenceReason: "unknown-time" | "missing-location" | null;
|
|
167
|
+
};
|
|
168
|
+
/** Only time-resolution assertions may be supplied to this draft's creator. */
|
|
169
|
+
inputFlags: ChartFlag[];
|
|
170
|
+
resultFlags: ChartFlag[];
|
|
171
|
+
/** From the current conventions set on, the engine also names its ephemeris. */
|
|
172
|
+
engine: {
|
|
173
|
+
name: "@zodiacs/engine";
|
|
174
|
+
version: string;
|
|
175
|
+
ephemeris?: {
|
|
176
|
+
name: "astronomy-engine";
|
|
177
|
+
version: string;
|
|
178
|
+
};
|
|
179
|
+
};
|
|
180
|
+
provenance: (NatalProvenanceClaims & {
|
|
181
|
+
status: "claimed";
|
|
182
|
+
}) | null;
|
|
183
|
+
conventions: ConventionSet;
|
|
184
|
+
coverage: typeof COVERAGE;
|
|
185
|
+
}
|
|
186
|
+
interface NatalEnvelope {
|
|
187
|
+
schema: typeof NATAL_ENVELOPE_SCHEMA;
|
|
188
|
+
/** This draft implements no optional required features; unknown ones fail closed. */
|
|
189
|
+
requiredFeatures: string[];
|
|
190
|
+
receipt: NatalReceipt;
|
|
191
|
+
/** `deltaT` is present from the current conventions set on, and only there. */
|
|
192
|
+
result: Pick<Chart, "bodies" | "angles" | "houses" | "aspects"> & Partial<Pick<Chart, "deltaT">>;
|
|
193
|
+
extensions?: NatalJsonObject;
|
|
194
|
+
}
|
|
195
|
+
type NatalEnvelopeParseResult = {
|
|
196
|
+
ok: true;
|
|
197
|
+
envelope: NatalEnvelope;
|
|
198
|
+
} | {
|
|
199
|
+
ok: false;
|
|
200
|
+
code: NatalEnvelopeErrorCode;
|
|
201
|
+
};
|
|
202
|
+
interface NatalDiagnostic {
|
|
203
|
+
schema: typeof NATAL_DIAGNOSTIC_SCHEMA;
|
|
204
|
+
status: "redacted-not-anonymous";
|
|
205
|
+
timeKnown: boolean;
|
|
206
|
+
houses: NatalReceipt["houses"];
|
|
207
|
+
inputFlags: ChartFlag[];
|
|
208
|
+
resultFlags: ChartFlag[];
|
|
209
|
+
}
|
|
210
|
+
/**
|
|
211
|
+
* Capture a fresh full Chart, not a legacy summary. Checks declared consistency,
|
|
212
|
+
* not ephemeris accuracy, historical timezone truth, origin, or authenticity.
|
|
213
|
+
* Optional properties must be omitted rather than set to undefined.
|
|
214
|
+
*/
|
|
215
|
+
declare function createNatalEnvelope(chart: Chart, context?: NatalEnvelopeContext): NatalEnvelope;
|
|
216
|
+
/** Bounded JSON entry point. Unknown versions/features never become calculation input. */
|
|
217
|
+
declare function parseNatalEnvelope(json: string): NatalEnvelopeParseResult;
|
|
218
|
+
declare function serializeNatalEnvelope(envelope: NatalEnvelope): string;
|
|
219
|
+
/** Replay the recorded request/instant, never a fallback house system or today's tzdb. */
|
|
220
|
+
declare function natalReplayInput(envelope: NatalEnvelope): BirthInput;
|
|
221
|
+
/** A fresh fixed allowlist: no claimed identifiers, versions, hashes, or input/result values. */
|
|
222
|
+
declare function redactNatalEnvelope(envelope: NatalEnvelope): NatalDiagnostic;
|
|
223
|
+
|
|
224
|
+
export { NATAL_DIAGNOSTIC_SCHEMA, NATAL_ENVELOPE_LIMITS, NATAL_ENVELOPE_SCHEMA, NATAL_RECEIPT_CONVENTION_SETS, NATAL_RECEIPT_SCHEMA, type NatalDiagnostic, type NatalEnvelope, type NatalEnvelopeContext, NatalEnvelopeError, type NatalEnvelopeErrorCode, type NatalEnvelopeParseResult, type NatalJsonObject, type NatalJsonValue, type NatalLocalResolution, type NatalProvenanceClaims, type NatalReceipt, type NatalReference, createNatalEnvelope, natalReplayInput, parseNatalEnvelope, redactNatalEnvelope, serializeNatalEnvelope };
|