@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/vedic.d.ts
CHANGED
|
@@ -1,119 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
/** The built-in ayanamsas: the keys of AYANAMSAS. */
|
|
7
|
-
type AyanamsaName = "lahiri" | "fagan-bradley" | "krishnamurti" | "raman" | "yukteswar" | "true-chitra" | "true-revati" | "true-pushya" | "galactic-center";
|
|
8
|
-
interface Definition {
|
|
9
|
-
readonly name: string;
|
|
10
|
-
readonly label: string;
|
|
11
|
-
/** Short citation; docs/vedic.md has the full one. */
|
|
12
|
-
readonly source: string;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* A mean `value` (degrees) at TT Julian date `epochTT`, computed with
|
|
16
|
-
* `model`'s precession. The engine holds the zodiac where that model puts it
|
|
17
|
-
* at J2000.0 and carries it with its own; with an older model its value at
|
|
18
|
-
* the epoch differs from `value`.
|
|
19
|
-
*/
|
|
20
|
-
interface EpochAyanamsa extends Definition {
|
|
21
|
-
readonly kind: "epoch";
|
|
22
|
-
readonly epochTT: number;
|
|
23
|
-
readonly value: number;
|
|
24
|
-
readonly model: AyanamsaPrecessionModel;
|
|
25
|
-
}
|
|
26
|
-
/** `value` degrees at `epochTT` plus `rate` arcseconds per Julian year (365.25 days of TT). */
|
|
27
|
-
interface LinearAyanamsa extends Definition {
|
|
28
|
-
readonly kind: "linear";
|
|
29
|
-
readonly epochTT: number;
|
|
30
|
-
readonly value: number;
|
|
31
|
-
readonly rate: number;
|
|
32
|
-
}
|
|
33
|
-
/** A catalogue star, ICRS, with its space motion. */
|
|
34
|
-
interface CatalogueStar {
|
|
35
|
-
readonly name: string;
|
|
36
|
-
/** Right ascension and declination at `epochTT`, degrees. */
|
|
37
|
-
readonly ra: number;
|
|
38
|
-
readonly dec: number;
|
|
39
|
-
readonly epochTT: number;
|
|
40
|
-
/** Proper motion, mas/yr; `pmRa` is μα·cos δ. */
|
|
41
|
-
readonly pmRa: number;
|
|
42
|
-
readonly pmDec: number;
|
|
43
|
-
/** Parallax, mas (0: at infinity). */
|
|
44
|
-
readonly parallax: number;
|
|
45
|
-
/** Radial velocity, km/s. */
|
|
46
|
-
readonly radialVelocity: number;
|
|
47
|
-
}
|
|
48
|
-
/** The star's apparent geocentric place sits at sidereal `longitude` degrees at every instant. */
|
|
49
|
-
interface StarAyanamsa extends Definition {
|
|
50
|
-
readonly kind: "star";
|
|
51
|
-
readonly star: CatalogueStar;
|
|
52
|
-
readonly longitude: number;
|
|
53
|
-
}
|
|
54
|
-
/** A definition; functions accept only AYANAMSAS entries and userAyanamsa results. */
|
|
55
|
-
type AyanamsaDefinition = EpochAyanamsa | LinearAyanamsa | StarAyanamsa;
|
|
56
|
-
/** The built-in definitions. docs/vedic.md cites each in full. */
|
|
57
|
-
declare const AYANAMSAS: Readonly<Record<AyanamsaName, AyanamsaDefinition>>;
|
|
58
|
-
/** Input to userAyanamsa. */
|
|
59
|
-
interface UserAyanamsaInput {
|
|
60
|
-
/** Lowercase identifier, at most 64 characters, not a built-in name; default "user". */
|
|
61
|
-
readonly name?: string;
|
|
62
|
-
/** When `value` holds: a TT Julian date within the Date range, or a UTC instant, read on the engine's time basis. */
|
|
63
|
-
readonly epoch: DateInput | {
|
|
64
|
-
readonly julianDateTT: number;
|
|
65
|
-
};
|
|
66
|
-
/** The mean ayanamsa at `epoch` as `model` computes it, degrees, in [−360, 360]. */
|
|
67
|
-
readonly value: number;
|
|
68
|
-
/** Arcseconds per Julian year, in [−3600, 3600]: a linear ayanamsa. */
|
|
69
|
-
readonly rate?: number;
|
|
70
|
-
/**
|
|
71
|
-
* Without `rate`: the model `value` was computed with, default "engine"
|
|
72
|
-
* (`value` then holds at `epoch`); an older model's zodiac is held at
|
|
73
|
-
* J2000.0, as for the built-ins.
|
|
74
|
-
*/
|
|
75
|
-
readonly model?: AyanamsaPrecessionModel;
|
|
76
|
-
}
|
|
77
|
-
/** A caller's ayanamsa, frozen. Refuses a built-in name, both `rate` and `model`, and out-of-range values. */
|
|
78
|
-
declare function userAyanamsa(input: UserAyanamsaInput): AyanamsaDefinition;
|
|
79
|
-
/** An ayanamsa at an instant; made only by `ayanamsa`. Degrees throughout. */
|
|
80
|
-
interface AyanamsaValue {
|
|
81
|
-
/** The definition's name. */
|
|
82
|
-
readonly ayanamsa: string;
|
|
83
|
-
/** The instant as given, ISO 8601, on the scale `timeScale.input` names (UTC unless the options say otherwise). */
|
|
84
|
-
readonly utc: string;
|
|
85
|
-
/** How the instant became UT1 and TT, as a chart's `timeScale` (docs/time.md). */
|
|
86
|
-
readonly timeScale: TimeScale;
|
|
87
|
-
readonly julianDateTT: number;
|
|
88
|
-
/** The ΔT (TT − UT1) the instant was read with: its time basis's, or the pin. */
|
|
89
|
-
readonly deltaT: DeltaT;
|
|
90
|
-
/** Referred to the mean equinox and ecliptic of date, in (−180, 180]. */
|
|
91
|
-
readonly mean: number;
|
|
92
|
-
/** The engine's nutation in longitude Δψ. */
|
|
93
|
-
readonly nutation: number;
|
|
94
|
-
/** mean + nutation: subtract it from the engine's tropical longitudes. */
|
|
95
|
-
readonly true: number;
|
|
96
|
-
/** "outside-reference-span" when the instant, or an epoch definition's epoch, is outside REFERENCE_SPAN. */
|
|
97
|
-
readonly flags: readonly "outside-reference-span"[];
|
|
98
|
-
}
|
|
99
|
-
/** Options for ayanamsa. */
|
|
100
|
-
interface AyanamsaOptions {
|
|
101
|
-
/** A fixed ΔT (TT − UT1) in seconds, as BirthInput.deltaT; the engine's time basis when absent. */
|
|
102
|
-
readonly deltaT?: number;
|
|
103
|
-
/** The scale the instant is on, as BirthInput.timeScale: "utc" (default), "ut1" or "tt". */
|
|
104
|
-
readonly timeScale?: TimeScaleName;
|
|
105
|
-
}
|
|
106
|
-
/**
|
|
107
|
-
* The mean and true ayanamsa of a definition at an instant, read as a chart
|
|
108
|
-
* reads its own: on the engine's time basis, or a pinned ΔT, and refused
|
|
109
|
-
* outside EPHEMERIS_SPAN. `true` adds the engine's nutation in longitude (IAU
|
|
110
|
-
* 2000B, all 77 terms), which cancels from sidereal longitudes.
|
|
111
|
-
*/
|
|
112
|
-
declare function ayanamsa(definition: AyanamsaName | AyanamsaDefinition, at: DateInput, options?: AyanamsaOptions): AyanamsaValue;
|
|
1
|
+
import { B as BodyName, H as HouseSystem, g as ChartFlag, e as DateInput, d as Chart, h as BirthInput, Z as ZodiacSign } from './types-DpPdtXgO.js';
|
|
2
|
+
import { b as AyanamsaValue, A as AyanamsaName, c as AyanamsaDefinition } from './ayanamsa-ClFzkKmV.js';
|
|
3
|
+
export { d as AYANAMSAS, e as AyanamsaFlag, f as AyanamsaOptions, a as AyanamsaPrecessionModel, C as CatalogueStar, E as EpochAyanamsa, L as LinearAyanamsa, S as StarAyanamsa, U as UserAyanamsaInput, g as ayanamsa, u as userAyanamsa } from './ayanamsa-ClFzkKmV.js';
|
|
4
|
+
import { T as TimeScale } from './time-scale-DIFNa0gz.js';
|
|
5
|
+
import './deltat.js';
|
|
113
6
|
|
|
114
7
|
/**
|
|
115
8
|
* A sidereal longitude of date, frozen. Only siderealLongitude,
|
|
116
|
-
* declareSiderealLongitude and siderealChart make one; copies are refused
|
|
9
|
+
* declareSiderealLongitude and siderealChart make one; copies are refused,
|
|
10
|
+
* including one through JSON or structuredClone, although the type has no
|
|
11
|
+
* brand to say so (docs/vedic.md, *Frames*).
|
|
117
12
|
*/
|
|
118
13
|
interface SiderealLongitude {
|
|
119
14
|
readonly frame: "sidereal";
|
|
@@ -143,11 +38,13 @@ interface SiderealDeclaration {
|
|
|
143
38
|
/** A label for the zodiac the value is in: nonempty, trimmed, at most 80 characters. */
|
|
144
39
|
readonly ayanamsa: string;
|
|
145
40
|
/** Its instant, needed only by the dasha functions. */
|
|
146
|
-
readonly at?: DateInput;
|
|
41
|
+
readonly at?: DateInput | undefined;
|
|
147
42
|
}
|
|
148
43
|
/**
|
|
149
44
|
* A longitude the caller asserts is already sidereal (from another program,
|
|
150
45
|
* a table, a test). The engine cannot check the claim; it records the label.
|
|
46
|
+
* A declaration key not named in SiderealDeclaration is refused with a
|
|
47
|
+
* RangeError, so that a misspelt `at` is not an instant silently left out.
|
|
151
48
|
*/
|
|
152
49
|
declare function declareSiderealLongitude(longitude: number, declaration: SiderealDeclaration): SiderealLongitude;
|
|
153
50
|
/** A chart body's sidereal longitude. */
|
|
@@ -245,7 +142,119 @@ interface VargaPosition {
|
|
|
245
142
|
*/
|
|
246
143
|
declare function vargaOf(position: SiderealLongitude, varga: VargaName, scheme?: VargaScheme): VargaPosition;
|
|
247
144
|
|
|
248
|
-
/**
|
|
145
|
+
/**
|
|
146
|
+
* A point whose varga signs vargaSensitivity follows. "Mean Node" and "Mean
|
|
147
|
+
* South Node" are chartPoints' mean nodes; siderealChart's North and South
|
|
148
|
+
* Node are the true node, which is not offered.
|
|
149
|
+
*/
|
|
150
|
+
type VargaPoint = "Ascendant" | "Sun" | "Moon" | "Mercury" | "Venus" | "Mars" | "Jupiter" | "Saturn" | "Uranus" | "Neptune" | "Pluto" | "Mean Node" | "Mean South Node";
|
|
151
|
+
/** The points vargaSensitivity can search, in the order of its rows. */
|
|
152
|
+
declare const VARGA_POINTS: readonly VargaPoint[];
|
|
153
|
+
/** vargaSensitivity's options. A key not named here is refused with a RangeError. */
|
|
154
|
+
interface VargaSensitivityOptions {
|
|
155
|
+
/** Distinct VARGA_POINTS; default the Ascendant, the Sun to Saturn and the two mean nodes. */
|
|
156
|
+
readonly points?: readonly VargaPoint[] | undefined;
|
|
157
|
+
/** Distinct vargas of the sixteen; default all. */
|
|
158
|
+
readonly vargas?: readonly VargaName[] | undefined;
|
|
159
|
+
/** Also the cyclic D2 and D3, for whichever of the two is asked for; default false. */
|
|
160
|
+
readonly cyclic?: boolean | undefined;
|
|
161
|
+
/** Whole minutes searched on each side of the birth, 1 to 2,880; default 1,440. */
|
|
162
|
+
readonly horizonMinutes?: number | undefined;
|
|
163
|
+
}
|
|
164
|
+
/** A change of a row's varga sign. */
|
|
165
|
+
interface VargaChange {
|
|
166
|
+
/** The first millisecond with the new sign, ISO 8601 on the chart's input scale, named as ChartInput.utc is. */
|
|
167
|
+
readonly at: string;
|
|
168
|
+
/** (at − birth) / 60,000: zero or negative for `previous`, positive for `next`. */
|
|
169
|
+
readonly minutes: number;
|
|
170
|
+
/** The change boundary crossed, degrees: the double nearest T / 7560 for a whole tick T. */
|
|
171
|
+
readonly boundary: number;
|
|
172
|
+
/** The sign at at − 1 ms. */
|
|
173
|
+
readonly from: ZodiacSign;
|
|
174
|
+
/** The sign at at. */
|
|
175
|
+
readonly to: ZodiacSign;
|
|
176
|
+
}
|
|
177
|
+
/** Why a row was not computed. A minor release may add a reason. */
|
|
178
|
+
type VargaRefusalReason = "no-angles" | "polar" | "out-of-range" | "rate-bound" | "evaluation-budget";
|
|
179
|
+
interface VargaRefusal {
|
|
180
|
+
readonly status: "refused";
|
|
181
|
+
readonly reason: VargaRefusalReason;
|
|
182
|
+
readonly detail: string;
|
|
183
|
+
}
|
|
184
|
+
/** One point in one varga: its sign at the birth, and the changes on either side. */
|
|
185
|
+
interface VargaSensitivityRow {
|
|
186
|
+
readonly point: VargaPoint;
|
|
187
|
+
readonly varga: VargaName;
|
|
188
|
+
readonly scheme: VargaScheme;
|
|
189
|
+
/** vargaOf at the birth instant; null when the row was refused before the point was evaluated. */
|
|
190
|
+
readonly position: VargaPosition | null;
|
|
191
|
+
/** The change into the birth sign: the sign holds from `previous.at` to the birth; null if none in `searched`. */
|
|
192
|
+
readonly previous: VargaChange | null;
|
|
193
|
+
/** The first change after the birth; null if none in `searched`. */
|
|
194
|
+
readonly next: VargaChange | null;
|
|
195
|
+
/** What "none missed" rests on: "derived" bounds (the Ascendant, the mean nodes) or "scanned" ones (the bodies). */
|
|
196
|
+
readonly completeness: "derived" | "scanned";
|
|
197
|
+
/** Set when the row was not computed; `previous` and `next` are then null and say nothing. */
|
|
198
|
+
readonly refusal: VargaRefusal | null;
|
|
199
|
+
}
|
|
200
|
+
/** vargaSensitivity's result, frozen. */
|
|
201
|
+
interface VargaSensitivity {
|
|
202
|
+
/** The ayanamsa's name. */
|
|
203
|
+
readonly ayanamsa: string;
|
|
204
|
+
/** The birth instant as given, ISO 8601 on its input scale. */
|
|
205
|
+
readonly utc: string;
|
|
206
|
+
/** How the birth instant became UT1 and TT, as a chart's `timeScale`. */
|
|
207
|
+
readonly timeScale: TimeScale;
|
|
208
|
+
readonly horizonMinutes: number;
|
|
209
|
+
/**
|
|
210
|
+
* The span searched, ISO 8601 on the input scale: the horizon, cut where an
|
|
211
|
+
* instant's UT1 or TT would leave REFERENCE_SPAN; the birth instant alone when
|
|
212
|
+
* every row is refused with `out-of-range`.
|
|
213
|
+
*/
|
|
214
|
+
readonly searched: {
|
|
215
|
+
readonly from: string;
|
|
216
|
+
readonly to: string;
|
|
217
|
+
};
|
|
218
|
+
/** What the instants are exact against, and what "none missed" rests on. */
|
|
219
|
+
readonly verification: string;
|
|
220
|
+
/** Point by point in VARGA_POINTS order; within a point, the vargas in VARGAS order, a cyclic row after its Parashari one. */
|
|
221
|
+
readonly rows: readonly VargaSensitivityRow[];
|
|
222
|
+
/** The evaluations of its longitude the call made for each point asked, of the call's budget of 2,000,000. */
|
|
223
|
+
readonly evaluations: Readonly<Partial<Record<VargaPoint, number>>>;
|
|
224
|
+
/** The chart's flags and the ayanamsa's, as siderealChart gives them. */
|
|
225
|
+
readonly flags: readonly ChartFlag[];
|
|
226
|
+
}
|
|
227
|
+
/**
|
|
228
|
+
* The first millisecond before and after the birth at which each point's varga
|
|
229
|
+
* sign changes, in the engine's own arithmetic on the chart's clock (its input
|
|
230
|
+
* scale and any pinned ΔT), within `horizonMinutes` on each side. The birth is
|
|
231
|
+
* read as siderealChart reads it; a supplied Chart gives the instant, the place
|
|
232
|
+
* and the clock, and every position is computed again from them. Each change is
|
|
233
|
+
* the first millisecond at which the point's sidereal longitude, as
|
|
234
|
+
* siderealChart (for the mean nodes, chartPoints with the chart's
|
|
235
|
+
* ayanamsaValue) gives it, lies outside the varga run holding it at the birth:
|
|
236
|
+
* a run is the arc between two boundaries at which the sign changes, so a run
|
|
237
|
+
* can span a sign start.
|
|
238
|
+
*
|
|
239
|
+
* Malformed input throws RangeError: options that are not a plain object of
|
|
240
|
+
* data properties, an option key not named, points or vargas not given as an
|
|
241
|
+
* array, an unknown or repeated point or varga, `cyclic` other than true or
|
|
242
|
+
* false, a horizon that is not a whole number of minutes from 1 to 2,880, and
|
|
243
|
+
* whatever siderealChart refuses. What cannot be computed is
|
|
244
|
+
* a refusal on the rows it touches: `no-angles` and `polar` (beyond 66°) for the
|
|
245
|
+
* Ascendant, `out-of-range` for every row when the birth's UT1 or TT lies
|
|
246
|
+
* outside REFERENCE_SPAN, `rate-bound` for a point that moved as its bound says
|
|
247
|
+
* it cannot, and `evaluation-budget` for the point in progress and those after
|
|
248
|
+
* it once the call has made 2,000,000 evaluations. See docs/vedic.md.
|
|
249
|
+
*/
|
|
250
|
+
declare function vargaSensitivity(natal: Chart | BirthInput, ayanamsa: AyanamsaName | AyanamsaDefinition, options?: VargaSensitivityOptions): VargaSensitivity;
|
|
251
|
+
|
|
252
|
+
/**
|
|
253
|
+
* Traditional sign rulers, Aries to Pisces (BPHS 4, Santhanam 1984): the same
|
|
254
|
+
* rulers as `@zodiacs/engine/techniques`'s DOMICILE_RULERS and
|
|
255
|
+
* `@zodiacs/engine/timing`'s TRADITIONAL_RULERS. Each entry point carries its
|
|
256
|
+
* own copy, so that none imports another; a test keeps the three equal.
|
|
257
|
+
*/
|
|
249
258
|
declare const SIGN_LORDS: readonly ["Mars", "Venus", "Mercury", "Moon", "Sun", "Mercury", "Venus", "Mars", "Jupiter", "Saturn", "Saturn", "Jupiter"];
|
|
250
259
|
/** A traditional sign ruler. */
|
|
251
260
|
type SignLord = (typeof SIGN_LORDS)[number];
|
|
@@ -291,13 +300,21 @@ declare const DASHA_YEAR_DAYS: Readonly<Record<DashaYearLength, number>>;
|
|
|
291
300
|
declare const DASHA_LEVELS: readonly ["mahadasha", "antardasha", "pratyantardasha", "sookshmadasha", "pranadasha"];
|
|
292
301
|
/** A level's name. */
|
|
293
302
|
type DashaLevelName = (typeof DASHA_LEVELS)[number];
|
|
294
|
-
/**
|
|
303
|
+
/**
|
|
304
|
+
* Yogini dasha (BPHS 46.195–199): yogini, planet, years.
|
|
305
|
+
*
|
|
306
|
+
* @experimental As yoginiDasha is.
|
|
307
|
+
*/
|
|
295
308
|
declare const YOGINIS: readonly Readonly<{
|
|
296
309
|
name: string;
|
|
297
310
|
planet: string;
|
|
298
311
|
years: number;
|
|
299
312
|
}>[];
|
|
300
|
-
/**
|
|
313
|
+
/**
|
|
314
|
+
* Ashtottari lords in order, with their years (BPHS 46.17–20).
|
|
315
|
+
*
|
|
316
|
+
* @experimental As ashtottariDasha is.
|
|
317
|
+
*/
|
|
301
318
|
declare const ASHTOTTARI_YEARS: Readonly<{
|
|
302
319
|
readonly Sun: 6;
|
|
303
320
|
readonly Moon: 15;
|
|
@@ -328,10 +345,10 @@ interface DashaPeriod {
|
|
|
328
345
|
/** Length in dasha years. */
|
|
329
346
|
readonly years: number;
|
|
330
347
|
}
|
|
331
|
-
/** Options for the dasha functions. */
|
|
348
|
+
/** Options for the dasha functions. A key a function does not name is refused with a RangeError. */
|
|
332
349
|
interface DashaOptions {
|
|
333
350
|
/** "julian" (365.25 days, the default), "tropical" (365.2422) or "savana" (360). */
|
|
334
|
-
readonly yearLength?: DashaYearLength;
|
|
351
|
+
readonly yearLength?: DashaYearLength | undefined;
|
|
335
352
|
}
|
|
336
353
|
/** A dasha system's result, frozen. */
|
|
337
354
|
interface DashaResult {
|
|
@@ -365,7 +382,7 @@ declare function dashaSubperiods(period: DashaPeriod): readonly DashaPeriod[];
|
|
|
365
382
|
/** Options for vimshottariAt. */
|
|
366
383
|
interface DashaAtOptions extends DashaOptions {
|
|
367
384
|
/** How many levels to descend, 1 (mahadasha) to 5 (prana); default 5. */
|
|
368
|
-
readonly levels?:
|
|
385
|
+
readonly levels?: 1 | 2 | 3 | 4 | 5 | undefined;
|
|
369
386
|
}
|
|
370
387
|
/**
|
|
371
388
|
* The Vimshottari periods running at `at`, mahadasha first, down to
|
|
@@ -373,21 +390,31 @@ interface DashaAtOptions extends DashaOptions {
|
|
|
373
390
|
* `start` finds it. Outside the 120 years, a RangeError.
|
|
374
391
|
*/
|
|
375
392
|
declare function vimshottariAt(moon: SiderealLongitude, at: DateInput, options?: DashaAtOptions): readonly DashaPeriod[];
|
|
376
|
-
/**
|
|
393
|
+
/**
|
|
394
|
+
* Options for yoginiDasha and ashtottariDasha.
|
|
395
|
+
*
|
|
396
|
+
* @experimental As those functions are.
|
|
397
|
+
*/
|
|
377
398
|
interface CycleOptions extends DashaOptions {
|
|
378
399
|
/** Complete cycles of mahadashas to list, 1 to 10; default 1. */
|
|
379
|
-
readonly cycles?: number;
|
|
400
|
+
readonly cycles?: number | undefined;
|
|
380
401
|
}
|
|
381
402
|
/**
|
|
382
403
|
* Yogini mahadashas (BPHS 46.195–199): the nakshatra's number plus 3,
|
|
383
404
|
* remainder by 8, gives the yogini at birth; 36 years a cycle.
|
|
405
|
+
*
|
|
406
|
+
* @experimental Mahadashas only, so far: the result may change in a minor
|
|
407
|
+
* release that adds the sub-periods.
|
|
384
408
|
*/
|
|
385
409
|
declare function yoginiDasha(moon: SiderealLongitude, options?: CycleOptions): DashaResult;
|
|
386
410
|
/**
|
|
387
411
|
* Ashtottari mahadashas (BPHS 46.17–22): 28 nakshatras with Abhijit, from
|
|
388
412
|
* Ardra in groups of 4, 3, 4, 3, …, each an equal share of its lord's years;
|
|
389
413
|
* 108 years a cycle. When it applies (46.17–23) is for the caller to decide.
|
|
414
|
+
*
|
|
415
|
+
* @experimental Mahadashas only, so far, and traditions group the nakshatras
|
|
416
|
+
* differently: the result may change in a minor release.
|
|
390
417
|
*/
|
|
391
418
|
declare function ashtottariDasha(moon: SiderealLongitude, options?: CycleOptions): DashaResult;
|
|
392
419
|
|
|
393
|
-
export { ASHTOTTARI_YEARS,
|
|
420
|
+
export { ASHTOTTARI_YEARS, AyanamsaDefinition, AyanamsaName, AyanamsaValue, type CycleOptions, DASHA_LEVELS, DASHA_YEAR_DAYS, type DashaAtOptions, type DashaLevelName, type DashaOptions, type DashaPeriod, type DashaResult, type DashaSystem, type DashaYearLength, KP_SUBS, type KpLords, type KpSub, NAKSHATRAS, type NakshatraName, type NakshatraPosition, SIGN_LORDS, type SiderealBody, type SiderealChart, type SiderealDeclaration, type SiderealLongitude, type SignLord, VARGAS, VARGA_POINTS, VIMSHOTTARI_LORDS, VIMSHOTTARI_YEARS, type VargaChange, type VargaDefinition, type VargaName, type VargaPoint, type VargaPosition, type VargaRefusal, type VargaRefusalReason, type VargaScheme, type VargaSensitivity, type VargaSensitivityOptions, type VargaSensitivityRow, type VimshottariLord, YOGINIS, ashtottariDasha, dashaSubperiods, declareSiderealLongitude, kpLordsOf, nakshatraOf, siderealChart, siderealLongitude, vargaOf, vargaSensitivity, vimshottariAt, vimshottariDasha, yoginiDasha };
|