@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/README.md
CHANGED
|
@@ -14,17 +14,27 @@ side effects, and performs no network request from its core entry point. Its
|
|
|
14
14
|
one runtime side effect is the ΔT it installs in astronomy-engine (see Time
|
|
15
15
|
below).
|
|
16
16
|
|
|
17
|
-
**
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
17
|
+
**1.0.0**, the first stable release: 1.0.0-rc.2 with the version changed,
|
|
18
|
+
the same API and the same values (CHANGELOG.md). The package follows Semantic
|
|
19
|
+
Versioning: [docs/versioning.md](docs/versioning.md) says what is public, how
|
|
20
|
+
a number may change, which records stay readable and how something public is
|
|
21
|
+
deprecated, and `api/` holds each public entry point's declarations.
|
|
21
22
|
|
|
22
23
|
```sh
|
|
23
|
-
|
|
24
|
+
npm install @zodiacs/engine
|
|
24
25
|
```
|
|
25
26
|
|
|
27
|
+
The Release workflow publishes the archive carried in `artifacts/` as it is,
|
|
28
|
+
with provenance (CONTRIBUTING.md, *Releases*). Before 1.0.0 npm carried
|
|
29
|
+
0.1.1-rc.14 to 0.1.1-rc.16. 0.1.1-rc.17, 1.0.0-rc.1 and 1.0.0-rc.2 were never
|
|
30
|
+
published, so a caller moving from npm reads their CHANGELOG entries,
|
|
31
|
+
1.0.0-rc.1's *Migration* first, and a caller on 0.1.1-rc.15, npm's `latest`
|
|
32
|
+
until 1.0.0, reads 0.1.1-rc.16's too.
|
|
33
|
+
|
|
26
34
|
The package runs in browsers through a bundler, and in Node.js 20.19.0 or a
|
|
27
35
|
later 20.x, or 22.7.0 or later (`"engines": { "node": "^20.19.0 || >=22.7.0" }`).
|
|
36
|
+
Node.js 20 reached its end of life on 2026-04-30: the package is still tested
|
|
37
|
+
there, but a 1.x minor release may drop it (docs/versioning.md, *Runtimes*).
|
|
28
38
|
Its dependency, astronomy-engine 2.1.19, ships ES modules in a package that does
|
|
29
39
|
not declare `"type": "module"`. Earlier Node versions load that file as
|
|
30
40
|
CommonJS, so a plain Node import of this package fails there with "Named export
|
|
@@ -35,7 +45,7 @@ themselves and are not affected.
|
|
|
35
45
|
|
|
36
46
|
From a source checkout, run `npm ci` and `npm run build`, then
|
|
37
47
|
`npm pack --ignore-scripts`. Test the packed file in a clean consumer using
|
|
38
|
-
`npm run consumer:smoke -- /absolute/path/to/zodiacs-engine-
|
|
48
|
+
`npm run consumer:smoke -- /absolute/path/to/zodiacs-engine-1.0.0.tgz`.
|
|
39
49
|
The smoke check
|
|
40
50
|
downloads the artifact's public dependencies and TypeScript 5.9.3; its output
|
|
41
51
|
records the artifact hash and runtime, and it removes its temporary consumer
|
|
@@ -64,26 +74,41 @@ dependencies afresh with `npm ci` and takes nothing from the checkout's
|
|
|
64
74
|
needs merge commits: a squash or rebase merge drops the source commits it
|
|
65
75
|
checks against, and the check then fails.
|
|
66
76
|
|
|
67
|
-
|
|
77
|
+
1.0.0-rc.1 settled the API for 1.0.0. Before the promise was made, three
|
|
78
|
+
reviews read every public declaration of the twelve entry points; it acted on
|
|
79
|
+
what they found, recorded the result in `api/`, which CI checks, and lists
|
|
80
|
+
every breaking change, deprecation and experimental part in CHANGELOG.md with
|
|
81
|
+
what a caller does about it. `@zodiacs/engine/calc` now computes a caller's
|
|
82
|
+
ayanamsa carried by precession from any epoch in `EPHEMERIS_SPAN`, where rc.17
|
|
83
|
+
refused one outside 1800 to 2200. Where both compute a value, it is rc.17's,
|
|
84
|
+
to the bit, in a comparison of 6,411 calls across the twelve entry points.
|
|
85
|
+
rc.17 added the sidereal zodiac to `@zodiacs/engine/calc`: its four
|
|
86
|
+
functions take an ayanamsa of `@zodiacs/engine/vedic`, or a caller's own,
|
|
87
|
+
and, with every other default, give the Vedic entry's sidereal longitudes to
|
|
88
|
+
the bit; their bounds add the ayanamsa's (see Uniform calculation API). rc.16
|
|
89
|
+
brought five opt-in entry points onto rc.15:
|
|
68
90
|
`@zodiacs/engine/calc`, one calculation API over eight frames, four centers
|
|
69
91
|
and three corrections, with speeds, bounds and receipts; `/window`, birth-time
|
|
70
92
|
window partitions; `/techniques`, returns, composite and Davison charts, the
|
|
71
93
|
void-of-course Moon, aspect patterns, dignities and Moon signs; `/houses`,
|
|
72
94
|
house positions of bodies with latitude, co-ascendants and cusp speeds; and
|
|
73
95
|
`/sky`, rise, set, transit and planetary hours. `@zodiacs/engine/timing`
|
|
74
|
-
|
|
75
|
-
the full IAU 2000B series, which the engine evaluates itself (see
|
|
76
|
-
every longitude
|
|
77
|
-
1800 to 2200, and the angles and cusps by the change in the
|
|
78
|
-
the true obliquity, up to 0.8003″ over 9,697 synthetic
|
|
79
|
-
60.17° N, and more toward the polar circle. Receipts
|
|
80
|
-
conventions set that names the nutation; rc.15's receipts stay
|
|
81
|
-
in rc.15, a chart's instant is read on a time basis: from 1972
|
|
82
|
-
as UTC, with TT from the leap seconds and UT1 from IERS
|
|
83
|
-
otherwise as UT1 with the ΔT model, or on UT1 or TT when
|
|
84
|
-
(see Time). The ephemeris is still astronomy-engine
|
|
85
|
-
for the release history and
|
|
86
|
-
|
|
96
|
+
gained planetary returns. The root imports none of them. rc.16 also made the
|
|
97
|
+
nutation the full IAU 2000B series, which the engine evaluates itself (see
|
|
98
|
+
Nutation): every longitude moved from rc.15's by the change in Δψ, up to
|
|
99
|
+
0.2701″ from 1800 to 2200, and the angles and cusps by the change in the
|
|
100
|
+
sidereal time and the true obliquity, up to 0.8003″ over 9,697 synthetic
|
|
101
|
+
charts at places up to 60.17° N, and more toward the polar circle. Receipts
|
|
102
|
+
gained a conventions set that names the nutation; rc.15's receipts stay
|
|
103
|
+
readable. As in rc.15, a chart's instant is read on a time basis: from 1972
|
|
104
|
+
to 2027-10-02 as UTC, with TT from the leap seconds and UT1 from IERS
|
|
105
|
+
UT1 − UTC, and otherwise as UT1 with the ΔT model, or on UT1 or TT when
|
|
106
|
+
`timeScale` says so (see Time). The ephemeris is still astronomy-engine
|
|
107
|
+
2.1.19. See CHANGELOG.md for the release history and
|
|
108
|
+
`docs/evidence/1.0.0-20261011/` for this release's checks (1.0.0-rc.2's are in
|
|
109
|
+
`docs/evidence/1.0.0-rc.2-20261006/`, 1.0.0-rc.1's in
|
|
110
|
+
`docs/evidence/1.0.0-rc.1-20261006/`, rc.17's in
|
|
111
|
+
`docs/evidence/rc17-20261005/`). Site adoption is reviewed separately.
|
|
87
112
|
|
|
88
113
|
## Natal chart in 10 lines
|
|
89
114
|
|
|
@@ -196,17 +221,22 @@ for (const aspect of today.aspects) {
|
|
|
196
221
|
### Uniform calculation API
|
|
197
222
|
|
|
198
223
|
`@zodiacs/engine/calc` offers `calc`, `houses`, `events` and `chart` with one
|
|
199
|
-
vocabulary: instants as ISO strings, Dates or `{ jd, scale: "
|
|
224
|
+
vocabulary: instants as ISO strings, Dates or `{ jd, scale: "utc" | "ut1" | "tt" }`
|
|
200
225
|
on the engine's time basis, as `positions()` reads them;
|
|
201
226
|
eight frames (the ecliptic or the equator; true or mean of date, J2000.0 or
|
|
202
|
-
the ICRS); geocentric, heliocentric, barycentric and topocentric centers;
|
|
203
|
-
apparent, astrometric or geometric positions with distances and speeds
|
|
227
|
+
the ICRS); geocentric, heliocentric, barycentric and topocentric centers;
|
|
228
|
+
apparent, astrometric or geometric positions with distances and speeds; and
|
|
229
|
+
the tropical or the sidereal zodiac, with any ayanamsa of
|
|
230
|
+
`@zodiacs/engine/vedic` or a caller's own (Swiss Ephemeris's `SE_SIDM_USER`).
|
|
204
231
|
Results carry bounds and a receipt of convention ids. A measured bound is the
|
|
205
232
|
largest difference from JPL Horizons on 32 instants from 1802 to 2188: a
|
|
206
|
-
sample maximum, not a limit.
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
233
|
+
sample maximum, not a limit. In the sidereal zodiac a bound adds the
|
|
234
|
+
ayanamsa's: the largest difference of its mean, and of its rate, from ERFA's
|
|
235
|
+
construction of the same definition, over every year from 1800 to 2199. An
|
|
236
|
+
estimated bound names what it rests on. What this version does not compute
|
|
237
|
+
comes back as a typed refusal, such as gravitational deflection, or an
|
|
238
|
+
instant whose UT1 or TT is outside 1800 to 2200: there calc has no
|
|
239
|
+
comparison to take a bound from, while the root entry's functions
|
|
210
240
|
still compute such an instant and flag it `outside-reference-span`. With
|
|
211
241
|
every default, `calc({ body, time })` is the position `positions()` gives, to
|
|
212
242
|
the bit. The root entry loads none of it. The reference, with the Swiss Ephemeris flag
|
|
@@ -479,8 +509,9 @@ outside those years Swiss uses a long-term sidereal time of its own.
|
|
|
479
509
|
|
|
480
510
|
Placidus and Koch are undefined in polar regions, where |latitude| ≥ 90° − ε,
|
|
481
511
|
with ε the true obliquity of date (about 66.56° today). There the engine falls
|
|
482
|
-
back to whole-sign houses, exported as `POLAR_FALLBACK` (and
|
|
483
|
-
`PLACIDUS_POLAR_FALLBACK
|
|
512
|
+
back to whole-sign houses, exported as `POLAR_FALLBACK` (and as
|
|
513
|
+
`PLACIDUS_POLAR_FALLBACK`, deprecated from 1.0, since Koch falls back too),
|
|
514
|
+
and adds `polar-fallback` to the chart flags. Swiss
|
|
484
515
|
Ephemeris falls back to Porphyry instead. Every other system is defined at
|
|
485
516
|
every latitude where the angles are. Inside the polar circle, where the
|
|
486
517
|
ascendant is taken on the eastern half of the horizon, Regiomontanus, Campanus
|
|
@@ -530,7 +561,10 @@ lots need a birth time and place.
|
|
|
530
561
|
|
|
531
562
|
`antiscion`, `contraAntiscion` and `midpoint` work on any two longitudes.
|
|
532
563
|
`meanNodeLongitude`, `meanApogee`, `lunarMeanArguments`, `hellenisticLots` and
|
|
533
|
-
`sectOf` expose the calculations underneath. The
|
|
564
|
+
`sectOf` expose the calculations underneath. The first three, with
|
|
565
|
+
`MEAN_LUNAR_INCLINATION`, are experimental from 1.0
|
|
566
|
+
([docs/versioning.md](docs/versioning.md)): a minor release may change them,
|
|
567
|
+
and `chartPoints` and `@zodiacs/engine/calc` give the points themselves. The osculating ("true") Lilith is
|
|
534
568
|
not offered: from astronomy-engine's lunar series it would be several
|
|
535
569
|
arcminutes from Swiss's.
|
|
536
570
|
|
|
@@ -585,7 +619,7 @@ bracket, which cannot fail outside the polar circle; it never returns the last
|
|
|
585
619
|
unconverged iterate. Near the polar limit a cusp carries the rounding of asin
|
|
586
620
|
near ±1: up to 6.5e-7° one unit in the last place below it.
|
|
587
621
|
|
|
588
|
-
See [CHANGELOG.md](CHANGELOG.md) for
|
|
622
|
+
See [CHANGELOG.md](CHANGELOG.md) for each release's changes. Reference coverage and
|
|
589
623
|
known limits are recorded in the site [platform evidence ledger](https://github.com/zodiacs-org/site/blob/75ae549c6bcedba67ccce7d467e1b54af0c83070/docs/platform/EVIDENCE.md).
|
|
590
624
|
The date parser's representable range is not a claim of astronomical accuracy
|
|
591
625
|
across that range. Reference cases are finite; broader numerical scope review
|
|
@@ -737,8 +771,8 @@ against natalChart at every whole second, not proven. On 1,000 preregistered
|
|
|
737
771
|
random windows (1800 to 2200, all thirteen systems, two thirds at 60° of
|
|
738
772
|
latitude or more), all 24,188 sampled transitions were matched, none missed
|
|
739
773
|
and none extra, and natalChart confirmed every switch at its millisecond
|
|
740
|
-
(`docs/evidence/birth-window/RESULTS.md`); on
|
|
741
|
-
|
|
774
|
+
(`docs/evidence/birth-window/RESULTS.md`); on rc.16's build, after the time
|
|
775
|
+
basis and the nutation, again (`docs/evidence/birth-window/rc16/`).
|
|
742
776
|
|
|
743
777
|
In one thread, a 10-minute window takes about 2 ms, two hours about 20 ms and
|
|
744
778
|
a whole day about 0.23 s (medians, Node.js 22; `timing.json`). A window over a
|
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
import { DeltaT } from './deltat.js';
|
|
2
|
-
import { B as BodyName,
|
|
2
|
+
import { B as BodyName, D as DateInput, d as Chart, h as BirthInput, i as ChartPoints, M as MoonPhase, c as BodyPosition, S as SynastryResult, j as TransitResult } from './types-B-yb_tGL.js';
|
|
3
3
|
import { LongitudeCrossing, CrossingSearchOptions, CrossingSearchResult } from './crossings.js';
|
|
4
4
|
|
|
5
5
|
/** Geometry over full ecliptic positions; no independent ephemeris is implied. */
|
|
6
6
|
|
|
7
|
-
/**
|
|
7
|
+
/**
|
|
8
|
+
* Site-compatible maximum orb, in degrees, for a pair without Sun or Moon.
|
|
9
|
+
* @deprecated The same value as DEFAULT_DECLINATION_ORB_POLICY.orb; use that.
|
|
10
|
+
*/
|
|
8
11
|
declare const DECLINATION_ORB = 1;
|
|
9
|
-
/**
|
|
12
|
+
/**
|
|
13
|
+
* Site-compatible maximum orb when either identifier is exactly Sun or Moon.
|
|
14
|
+
* @deprecated The same value as DEFAULT_DECLINATION_ORB_POLICY.luminaryOrb; use that.
|
|
15
|
+
*/
|
|
10
16
|
declare const DECLINATION_ORB_LUMINARY = 1.5;
|
|
11
17
|
interface DeclinationOrbPolicy {
|
|
12
18
|
/** Inclusive maximum difference in degrees for an ordinary pair. */
|
|
@@ -102,7 +108,7 @@ interface Declinations {
|
|
|
102
108
|
receiptScope: "not-included-in-natal-receipt";
|
|
103
109
|
}
|
|
104
110
|
interface ChartDeclinations extends Declinations {
|
|
105
|
-
/**
|
|
111
|
+
/** The chart's instant as given, ISO 8601, on the scale its `input.timeScale` names, as ChartInput.utc. */
|
|
106
112
|
utc: string;
|
|
107
113
|
/** The evaluated provider Delta-T used to obtain true obliquity. */
|
|
108
114
|
deltaT: DeltaT;
|
|
@@ -150,14 +156,14 @@ interface SaturnReturnResult {
|
|
|
150
156
|
* sample budget; {@link searchLongitudeCrossings} takes one and refuses
|
|
151
157
|
* instead of throwing. Invalid input throws RangeError.
|
|
152
158
|
*/
|
|
153
|
-
declare function findLongitudeCrossings(body: BodyName, targetLongitude: number, from:
|
|
159
|
+
declare function findLongitudeCrossings(body: BodyName, targetLongitude: number, from: DateInput, to: DateInput, stepDays?: number): LongitudeCrossing[];
|
|
154
160
|
/**
|
|
155
161
|
* {@link findLongitudeCrossings} under an optional budget of ephemeris
|
|
156
162
|
* evaluations, `maxSamples`, with the step as `stepDays` (default 5). Over
|
|
157
163
|
* budget, it returns `{ status: "refused", reason: "sample-budget" }` with no
|
|
158
164
|
* crossings rather than throwing.
|
|
159
165
|
*/
|
|
160
|
-
declare function searchLongitudeCrossings(body: BodyName, targetLongitude: number, from:
|
|
166
|
+
declare function searchLongitudeCrossings(body: BodyName, targetLongitude: number, from: DateInput, to: DateInput, options?: CrossingSearchOptions): CrossingSearchResult;
|
|
161
167
|
declare function groupIntoSeasons(crossings: readonly LongitudeCrossing[], gapDays?: number): ReturnSeason[];
|
|
162
168
|
|
|
163
169
|
type NatalSource = Chart | BirthInput;
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
import { DeltaT } from './deltat.js';
|
|
2
|
+
import { T as TimeScaleName, e as TimeScale, D as DateInput } from './types-B-yb_tGL.js';
|
|
3
|
+
|
|
4
|
+
/** The precession model of an epoch value: the engine's IAU 2006, Newcomb's (Kinoshita 1975) or IAU 1976. */
|
|
5
|
+
type AyanamsaPrecessionModel = "engine" | "newcomb" | "iau1976";
|
|
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 | undefined;
|
|
62
|
+
/**
|
|
63
|
+
* When `value` holds: `{ julianDateTT }`, a TT Julian date within the Date
|
|
64
|
+
* range, or a UTC instant as a Date or an ISO 8601 string, read on the
|
|
65
|
+
* engine's time basis. A bare number is refused: it could be a Julian date
|
|
66
|
+
* or epoch milliseconds.
|
|
67
|
+
*/
|
|
68
|
+
readonly epoch: Date | string | {
|
|
69
|
+
readonly julianDateTT: number;
|
|
70
|
+
};
|
|
71
|
+
/** The mean ayanamsa at `epoch` as `model` computes it, degrees, in [−360, 360]. */
|
|
72
|
+
readonly value: number;
|
|
73
|
+
/** Arcseconds per Julian year, in [−3600, 3600]: a linear ayanamsa. */
|
|
74
|
+
readonly rate?: number | undefined;
|
|
75
|
+
/**
|
|
76
|
+
* Without `rate`: the model `value` was computed with, default "engine"
|
|
77
|
+
* (`value` then holds at `epoch`); an older model's zodiac is held at
|
|
78
|
+
* J2000.0, as for the built-ins.
|
|
79
|
+
*/
|
|
80
|
+
readonly model?: AyanamsaPrecessionModel | undefined;
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* A caller's ayanamsa, frozen. Refuses a key not named in UserAyanamsaInput, a
|
|
84
|
+
* built-in name, a bare-number epoch, both `rate` and `model`, and
|
|
85
|
+
* out-of-range values.
|
|
86
|
+
*/
|
|
87
|
+
declare function userAyanamsa(input: UserAyanamsaInput): AyanamsaDefinition;
|
|
88
|
+
/** An ayanamsa at an instant; made only by `ayanamsa`. Degrees throughout. */
|
|
89
|
+
interface AyanamsaValue {
|
|
90
|
+
/** The definition's name. */
|
|
91
|
+
readonly ayanamsa: string;
|
|
92
|
+
/**
|
|
93
|
+
* The instant as given, ISO 8601, on the scale `timeScale.input` names (UTC
|
|
94
|
+
* unless the options say otherwise), named as ChartInput.utc is: on UT1 or
|
|
95
|
+
* TT input it is that reading, with a Z. A SiderealLongitude made from this
|
|
96
|
+
* value has the UTC instant of the time basis in its own `utc`.
|
|
97
|
+
*/
|
|
98
|
+
readonly utc: string;
|
|
99
|
+
/** How the instant became UT1 and TT, as a chart's `timeScale` (docs/time.md). */
|
|
100
|
+
readonly timeScale: TimeScale;
|
|
101
|
+
readonly julianDateTT: number;
|
|
102
|
+
/** The ΔT (TT − UT1) the instant was read with: its time basis's, or the pin. */
|
|
103
|
+
readonly deltaT: DeltaT;
|
|
104
|
+
/** Referred to the mean equinox and ecliptic of date, in (−180, 180]. */
|
|
105
|
+
readonly mean: number;
|
|
106
|
+
/** The engine's nutation in longitude Δψ. */
|
|
107
|
+
readonly nutation: number;
|
|
108
|
+
/** mean + nutation: subtract it from the engine's tropical longitudes. */
|
|
109
|
+
readonly true: number;
|
|
110
|
+
/** "outside-reference-span" when the instant, or an epoch definition's epoch, is outside REFERENCE_SPAN. */
|
|
111
|
+
readonly flags: readonly AyanamsaFlag[];
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* A flag on an ayanamsa's value. A minor release may add one, as for a
|
|
115
|
+
* chart's flags, so code that switches on a flag should handle one it does
|
|
116
|
+
* not know.
|
|
117
|
+
*/
|
|
118
|
+
type AyanamsaFlag = "outside-reference-span";
|
|
119
|
+
/** Options for ayanamsa. A key not named here is refused with a RangeError. */
|
|
120
|
+
interface AyanamsaOptions {
|
|
121
|
+
/** A fixed ΔT (TT − UT1) in seconds, as BirthInput.deltaT; the engine's time basis when absent. */
|
|
122
|
+
readonly deltaT?: number | undefined;
|
|
123
|
+
/** The scale the instant is on, as BirthInput.timeScale: "utc" (default), "ut1" or "tt". */
|
|
124
|
+
readonly timeScale?: TimeScaleName | undefined;
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* The mean and true ayanamsa of a definition at an instant, read as a chart
|
|
128
|
+
* reads its own: on the engine's time basis, or a pinned ΔT, and refused
|
|
129
|
+
* outside EPHEMERIS_SPAN. `true` adds the engine's nutation in longitude (IAU
|
|
130
|
+
* 2000B, all 77 terms), which cancels from sidereal longitudes.
|
|
131
|
+
*/
|
|
132
|
+
declare function ayanamsa(definition: AyanamsaName | AyanamsaDefinition, at: DateInput, options?: AyanamsaOptions): AyanamsaValue;
|
|
133
|
+
|
|
134
|
+
export { type AyanamsaName as A, type CatalogueStar as C, type EpochAyanamsa as E, type LinearAyanamsa as L, type StarAyanamsa as S, type UserAyanamsaInput as U, type AyanamsaPrecessionModel as a, type AyanamsaValue as b, type AyanamsaDefinition as c, AYANAMSAS as d, type AyanamsaFlag as e, type AyanamsaOptions as f, ayanamsa as g, userAyanamsa as u };
|
package/dist/calc.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { DeltaT } from './deltat.js';
|
|
2
|
-
import {
|
|
2
|
+
import { E as EPHEMERIS_SPAN } from './reference-span-CILpclrz.js';
|
|
3
|
+
import { e as TimeScale, T as TimeScaleName, B as BodyName, H as HouseSystem, g as ChartFlag, d as Chart, A as Angles } from './types-B-yb_tGL.js';
|
|
4
|
+
import { A as AyanamsaName, a as AyanamsaPrecessionModel } from './ayanamsa--YQ46fET.js';
|
|
3
5
|
|
|
4
6
|
/**
|
|
5
7
|
* The frames of the calc entry point. A position is first found as a vector on
|
|
@@ -17,7 +19,6 @@ import { h as TimeScale, H as HouseSystem, e as ChartFlag, d as Chart, A as Angl
|
|
|
17
19
|
* equinox of J2000.0, or the ICRS axes.
|
|
18
20
|
*/
|
|
19
21
|
type CalcFrame = "ecliptic-true-of-date" | "ecliptic-mean-of-date" | "ecliptic-j2000" | "ecliptic-icrs" | "equatorial-true-of-date" | "equatorial-mean-of-date" | "equatorial-j2000" | "equatorial-icrs";
|
|
20
|
-
declare const CALC_FRAMES: readonly ["ecliptic-true-of-date", "ecliptic-mean-of-date", "ecliptic-j2000", "ecliptic-icrs", "equatorial-true-of-date", "equatorial-mean-of-date", "equatorial-j2000", "equatorial-icrs"];
|
|
21
22
|
/**
|
|
22
23
|
* "apparent": light time and aberration (annual, and diurnal for a topocentric
|
|
23
24
|
* observer), without gravitational deflection. "astrometric": light time only.
|
|
@@ -28,8 +29,10 @@ type CalcCorrection = "apparent" | "astrometric" | "geometric";
|
|
|
28
29
|
/** The Sun, Moon, Earth and planets, the true and mean lunar nodes, and Black Moon Lilith (the mean apogee). */
|
|
29
30
|
type CalcBody = "Sun" | "Moon" | "Mercury" | "Venus" | "Earth" | "Mars" | "Jupiter" | "Saturn" | "Uranus" | "Neptune" | "Pluto" | "North Node" | "South Node" | "Mean Node" | "Mean South Node" | "Black Moon Lilith";
|
|
30
31
|
declare const CALC_BODIES: readonly CalcBody[];
|
|
31
|
-
/** The time scale of a Julian date:
|
|
32
|
-
type CalcScale =
|
|
32
|
+
/** The time scale of a Julian date: "utc", "ut1" or "tt", the root entry's TimeScaleName. */
|
|
33
|
+
type CalcScale = TimeScaleName;
|
|
34
|
+
/** The frames calc() gives a position in. */
|
|
35
|
+
declare const CALC_FRAMES: readonly CalcFrame[];
|
|
33
36
|
/**
|
|
34
37
|
* An instant: an ISO 8601 string or a Date, read as UTC on the engine's time
|
|
35
38
|
* basis, as positions() and natalChart() read one; or a Julian date on a
|
|
@@ -45,21 +48,86 @@ type CalcTime = string | Date | {
|
|
|
45
48
|
readonly scale: CalcScale;
|
|
46
49
|
readonly deltaT?: number;
|
|
47
50
|
};
|
|
48
|
-
/**
|
|
49
|
-
|
|
51
|
+
/**
|
|
52
|
+
* Geodetic latitude and east longitude, degrees: the place `houses()` and
|
|
53
|
+
* `chart()` take, which has no height.
|
|
54
|
+
*/
|
|
55
|
+
interface CalcLocation {
|
|
50
56
|
readonly latitude: number;
|
|
51
57
|
readonly longitude: number;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Geodetic latitude and east longitude, degrees; `height` in metres above the
|
|
61
|
+
* IERS 2003 ellipsoid, from −12,000 to 100,000, 0 by default: a topocentric
|
|
62
|
+
* center. `@zodiacs/engine/sky`'s Observer has the same fields on WGS84, with
|
|
63
|
+
* heights from −10,000 m.
|
|
64
|
+
*/
|
|
65
|
+
interface CalcPlace extends CalcLocation {
|
|
52
66
|
readonly height?: number;
|
|
53
67
|
}
|
|
54
68
|
type CalcCenter = "geocentric" | "heliocentric" | "barycentric" | {
|
|
55
69
|
readonly topocentric: CalcPlace;
|
|
56
70
|
};
|
|
57
|
-
/**
|
|
58
|
-
type CalcAyanamsa =
|
|
71
|
+
/** The built-in ayanamsas, by name: `@zodiacs/engine/vedic`'s AyanamsaName, whose guide (docs/vedic.md) defines each. */
|
|
72
|
+
type CalcAyanamsa = AyanamsaName;
|
|
73
|
+
/** The built-in ayanamsas' names, in the order of `@zodiacs/engine/vedic`'s AYANAMSAS, from which they are taken. */
|
|
59
74
|
declare const CALC_AYANAMSAS: readonly CalcAyanamsa[];
|
|
75
|
+
/** The precession model a caller's ayanamsa was computed with: the engine's IAU 2006, Newcomb's (Kinoshita 1975) or IAU 1976; `@zodiacs/engine/vedic`'s AyanamsaPrecessionModel. */
|
|
76
|
+
type CalcAyanamsaModel = AyanamsaPrecessionModel;
|
|
77
|
+
/**
|
|
78
|
+
* A caller's ayanamsa, the counterpart of Swiss Ephemeris's SE_SIDM_USER: the
|
|
79
|
+
* mean ayanamsa `value` at `epoch`, carried from there by precession in
|
|
80
|
+
* `model`, or by a fixed `rate`. It defines what `@zodiacs/engine/vedic`'s
|
|
81
|
+
* userAyanamsa defines, with its epoch given as any instant in a request is.
|
|
82
|
+
*/
|
|
83
|
+
interface CalcUserAyanamsa {
|
|
84
|
+
/** A lowercase identifier of at most 64 characters that is not a built-in name; default "user". */
|
|
85
|
+
readonly name?: string;
|
|
86
|
+
/**
|
|
87
|
+
* When `value` holds, read as `time` is: `{ jd, scale: "tt" }` is
|
|
88
|
+
* SE_SIDM_USER's TT epoch, and `{ jd, scale: "ut1" }` its UT epoch
|
|
89
|
+
* (SE_SIDBIT_USER_UT), whose TT comes from the time basis.
|
|
90
|
+
*/
|
|
91
|
+
readonly epoch: CalcTime;
|
|
92
|
+
/** The mean ayanamsa at `epoch`, degrees, from −360 to 360. */
|
|
93
|
+
readonly value: number;
|
|
94
|
+
/** Arcseconds per Julian year, from −3600 to 3600: an ayanamsa that grows by this rate, with no precession model. */
|
|
95
|
+
readonly rate?: number;
|
|
96
|
+
/** Without `rate`: the model `value` was computed with, default "engine". An older model's zodiac is held where that model puts it at J2000.0. */
|
|
97
|
+
readonly model?: CalcAyanamsaModel;
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* "tropical" (default), or `{ sidereal }` with a built-in ayanamsa's name or a
|
|
101
|
+
* caller's ayanamsa. A sidereal longitude is the longitude in the ecliptic of
|
|
102
|
+
* date less the ayanamsa: the true ayanamsa (the mean plus the nutation in
|
|
103
|
+
* longitude) in the true ecliptic of date, the mean ayanamsa in the mean one.
|
|
104
|
+
*/
|
|
60
105
|
type CalcZodiac = "tropical" | {
|
|
61
|
-
readonly sidereal: CalcAyanamsa;
|
|
106
|
+
readonly sidereal: CalcAyanamsa | CalcUserAyanamsa;
|
|
62
107
|
};
|
|
108
|
+
/**
|
|
109
|
+
* The ayanamsa of a sidereal result, at its instant and on its clock, in the
|
|
110
|
+
* result's angular unit; calc(), houses() and chart() give the same shape.
|
|
111
|
+
*/
|
|
112
|
+
interface CalcAyanamsaValue {
|
|
113
|
+
/** The definition's name. */
|
|
114
|
+
readonly name: string;
|
|
115
|
+
/** The mean ayanamsa, counted along the mean ecliptic of date. */
|
|
116
|
+
readonly mean: number;
|
|
117
|
+
/** The engine's nutation in longitude (IAU 2000B). */
|
|
118
|
+
readonly nutation: number;
|
|
119
|
+
/** The mean ayanamsa plus the nutation in longitude, counted along the true ecliptic of date, in (−180°, 180°]. */
|
|
120
|
+
readonly true: number;
|
|
121
|
+
/** The one subtracted: "true" in the true ecliptic of date, "mean" in the mean ecliptic of date. */
|
|
122
|
+
readonly subtracted: "true" | "mean";
|
|
123
|
+
/**
|
|
124
|
+
* The mean ayanamsa's difference from ERFA's construction of the same
|
|
125
|
+
* definition, the bound a sidereal result's own bounds add. The nutation
|
|
126
|
+
* cancels from a sidereal longitude; `true`, read on its own, also differs
|
|
127
|
+
* from IAU 2000A's by the nutation model's difference (docs/calc.md).
|
|
128
|
+
*/
|
|
129
|
+
readonly bound: CalcBound;
|
|
130
|
+
}
|
|
63
131
|
interface CalcFlags {
|
|
64
132
|
/** Default "apparent". */
|
|
65
133
|
readonly correction?: CalcCorrection;
|
|
@@ -93,7 +161,13 @@ interface CalcInstant {
|
|
|
93
161
|
/** The scale the instant was given on and the basis that gave UT1 and TT, as a chart records it. */
|
|
94
162
|
readonly timeScale: TimeScale;
|
|
95
163
|
}
|
|
96
|
-
|
|
164
|
+
/**
|
|
165
|
+
* The schema id of a calc receipt. Candidates before 1.0.0 wrote
|
|
166
|
+
* "zodiacs.calc-receipt.draft-v1", whose requests name a Julian date's scale
|
|
167
|
+
* in capitals and houses()'s house system as `system`; from 1.0.0 the id is
|
|
168
|
+
* this one, and its requests are 1.0's.
|
|
169
|
+
*/
|
|
170
|
+
declare const CALC_RECEIPT_SCHEMA = "zodiacs.calc-receipt.v1";
|
|
97
171
|
interface CalcReceipt<Request> {
|
|
98
172
|
readonly schema: typeof CALC_RECEIPT_SCHEMA;
|
|
99
173
|
/** The request as read, every default filled in, as JSON; passing it back repeats the calculation. */
|
|
@@ -154,10 +228,17 @@ interface CalcPosition {
|
|
|
154
228
|
readonly vy: number | null;
|
|
155
229
|
readonly vz: number | null;
|
|
156
230
|
} | null;
|
|
231
|
+
/** In the sidereal zodiac, the ayanamsa and which value of it `lon` has subtracted; null in the tropical zodiac. */
|
|
232
|
+
readonly ayanamsa: CalcAyanamsaValue | null;
|
|
233
|
+
/** In the sidereal zodiac, each includes the ayanamsa's own bound. */
|
|
157
234
|
readonly bounds: CalcBounds;
|
|
158
235
|
readonly receipt: CalcReceipt<CalcRequest>;
|
|
159
236
|
}
|
|
160
|
-
/**
|
|
237
|
+
/**
|
|
238
|
+
* Why a request was not computed. A refused search in `@zodiacs/engine/crossings`
|
|
239
|
+
* and `@zodiacs/engine/sky` carries the same `status: "refused"`, and for a
|
|
240
|
+
* spent budget the same `reason: "sample-budget"`.
|
|
241
|
+
*/
|
|
161
242
|
type CalcRefusal = {
|
|
162
243
|
readonly status: "refused";
|
|
163
244
|
readonly detail: string;
|
|
@@ -166,12 +247,15 @@ type CalcRefusal = {
|
|
|
166
247
|
} | {
|
|
167
248
|
readonly reason: "out-of-range";
|
|
168
249
|
readonly span: CalcSpan;
|
|
250
|
+
} | {
|
|
251
|
+
readonly reason: "epoch-out-of-range";
|
|
252
|
+
readonly epochSpan: typeof EPHEMERIS_SPAN;
|
|
169
253
|
} | {
|
|
170
254
|
readonly reason: "sample-budget";
|
|
171
255
|
readonly samples: number;
|
|
172
256
|
readonly maxSamples: number;
|
|
173
257
|
});
|
|
174
|
-
/** From an
|
|
258
|
+
/** From an instant up to, not including, another: ISO 8601 UTC to the millisecond, as Date.prototype.toISOString gives them. */
|
|
175
259
|
interface CalcSpan {
|
|
176
260
|
readonly from: string;
|
|
177
261
|
readonly to: string;
|
|
@@ -187,9 +271,9 @@ declare const CALC_SPAN: CalcSpan;
|
|
|
187
271
|
declare function calc(request: CalcRequest): CalcPosition | CalcRefusal;
|
|
188
272
|
interface HousesRequest {
|
|
189
273
|
readonly time: CalcTime;
|
|
190
|
-
readonly place:
|
|
191
|
-
/** Default "whole", as in natalChart(). */
|
|
192
|
-
readonly
|
|
274
|
+
readonly place: CalcLocation;
|
|
275
|
+
/** Default "whole", as in natalChart() and chart(). */
|
|
276
|
+
readonly houseSystem?: HouseSystem;
|
|
193
277
|
readonly zodiac?: CalcZodiac;
|
|
194
278
|
}
|
|
195
279
|
interface HousesResult {
|
|
@@ -197,8 +281,13 @@ interface HousesResult {
|
|
|
197
281
|
readonly requested: HouseSystem;
|
|
198
282
|
/** The requested system, or whole sign where Placidus or Koch is undefined (flag "polar-fallback"). */
|
|
199
283
|
readonly system: HouseSystem;
|
|
200
|
-
/**
|
|
284
|
+
/**
|
|
285
|
+
* Twelve cusps from the first house, degrees in the true ecliptic of date,
|
|
286
|
+
* in the zodiac asked for; in the sidereal zodiac, whole-sign cusps start at
|
|
287
|
+
* the sidereal ascendant's sign.
|
|
288
|
+
*/
|
|
201
289
|
readonly cusps: readonly number[];
|
|
290
|
+
/** In the zodiac asked for, as the Vertex and the East Point are. */
|
|
202
291
|
readonly angles: Angles;
|
|
203
292
|
readonly vertex: number;
|
|
204
293
|
readonly eastPoint: number;
|
|
@@ -207,6 +296,9 @@ interface HousesResult {
|
|
|
207
296
|
/** The true obliquity used, degrees. */
|
|
208
297
|
readonly obliquity: number;
|
|
209
298
|
readonly flags: readonly ChartFlag[];
|
|
299
|
+
/** In the sidereal zodiac, the ayanamsa, degrees, whose true value is subtracted; null in the tropical zodiac. */
|
|
300
|
+
readonly ayanamsa: CalcAyanamsaValue | null;
|
|
301
|
+
/** In the sidereal zodiac, each includes the ayanamsa's own bound. */
|
|
210
302
|
readonly bounds: {
|
|
211
303
|
readonly angles: CalcBound;
|
|
212
304
|
readonly cusps: CalcBound;
|
|
@@ -219,7 +311,7 @@ interface EventsRequest {
|
|
|
219
311
|
/** The one kind in this version: the instants a body sits on a longitude. */
|
|
220
312
|
readonly kind: "longitude-crossing";
|
|
221
313
|
readonly body: CalcBody;
|
|
222
|
-
/** Apparent geocentric ecliptic longitude of date, degrees. */
|
|
314
|
+
/** Apparent geocentric ecliptic longitude of date, degrees, in the zodiac asked for. */
|
|
223
315
|
readonly longitude: number;
|
|
224
316
|
/** The search covers (from, to]. */
|
|
225
317
|
readonly from: CalcTime;
|
|
@@ -258,7 +350,7 @@ declare function events(request: EventsRequest): EventsResult | CalcRefusal;
|
|
|
258
350
|
interface ChartRequest {
|
|
259
351
|
readonly time: CalcTime;
|
|
260
352
|
/** Without a place there are no angles or houses. */
|
|
261
|
-
readonly place?:
|
|
353
|
+
readonly place?: CalcLocation;
|
|
262
354
|
/** Default "whole". */
|
|
263
355
|
readonly houseSystem?: HouseSystem;
|
|
264
356
|
/** False: `time` is a reference instant, with no angles or houses. Default true. */
|
|
@@ -269,11 +361,30 @@ interface ChartRequest {
|
|
|
269
361
|
}
|
|
270
362
|
interface ChartResult {
|
|
271
363
|
readonly status: "ok";
|
|
272
|
-
/** The chart natalChart() gives for the same instant (to the millisecond), place, settings and ΔT. */
|
|
364
|
+
/** The chart natalChart() gives for the same instant (to the millisecond), place, settings and ΔT: tropical. */
|
|
273
365
|
readonly chart: Chart;
|
|
366
|
+
/** In the sidereal zodiac, the chart's longitudes as `@zodiacs/engine/vedic`'s siderealChart() gives them; null in the tropical zodiac. */
|
|
367
|
+
readonly sidereal: CalcSiderealChart | null;
|
|
274
368
|
readonly receipt: CalcReceipt<ChartRequest>;
|
|
275
369
|
}
|
|
370
|
+
/** A chart's sidereal longitudes, degrees in [0, 360), as siderealChart() gives them. */
|
|
371
|
+
interface CalcSiderealChart {
|
|
372
|
+
/** The ayanamsa at the chart's instant and on its clock, degrees, whose true value is subtracted. */
|
|
373
|
+
readonly ayanamsa: CalcAyanamsaValue;
|
|
374
|
+
/** The chart's bodies, in its order. */
|
|
375
|
+
readonly bodies: readonly {
|
|
376
|
+
readonly body: BodyName;
|
|
377
|
+
readonly lon: number;
|
|
378
|
+
}[];
|
|
379
|
+
/** Null when the chart has no angles. */
|
|
380
|
+
readonly ascendant: number | null;
|
|
381
|
+
readonly midheaven: number | null;
|
|
382
|
+
/** The house system as computed, after any polar fallback; null without houses. */
|
|
383
|
+
readonly houseSystem: HouseSystem | null;
|
|
384
|
+
/** First house first; whole-sign cusps start at the sidereal ascendant's sign. Null without houses. */
|
|
385
|
+
readonly cusps: readonly number[] | null;
|
|
386
|
+
}
|
|
276
387
|
/** A natal chart from the calc vocabulary: natalChart()'s chart, with a receipt. */
|
|
277
388
|
declare function chart(request: ChartRequest): ChartResult | CalcRefusal;
|
|
278
389
|
|
|
279
|
-
export { Angles, CALC_AYANAMSAS, CALC_BODIES, CALC_FRAMES, CALC_RECEIPT_SCHEMA, CALC_SPAN, type CalcAyanamsa, type CalcBody, type CalcBound, type CalcBounds, type CalcCenter, type CalcCorrection, type CalcEvent, type CalcFlags, type CalcFrame, type CalcInstant, type CalcPlace, type CalcPosition, type CalcReceipt, type CalcRefusal, type CalcRequest, type CalcScale, type CalcSpan, type CalcTime, type CalcZodiac, Chart, ChartFlag, type ChartRequest, type ChartResult, DeltaT, type EventsRequest, type EventsResult, HouseSystem, type HousesRequest, type HousesResult, TimeScale, calc, chart, events, houses };
|
|
390
|
+
export { Angles, CALC_AYANAMSAS, CALC_BODIES, CALC_FRAMES, CALC_RECEIPT_SCHEMA, CALC_SPAN, type CalcAyanamsa, type CalcAyanamsaModel, type CalcAyanamsaValue, type CalcBody, type CalcBound, type CalcBounds, type CalcCenter, type CalcCorrection, type CalcEvent, type CalcFlags, type CalcFrame, type CalcInstant, type CalcLocation, type CalcPlace, type CalcPosition, type CalcReceipt, type CalcRefusal, type CalcRequest, type CalcScale, type CalcSiderealChart, type CalcSpan, type CalcTime, type CalcUserAyanamsa, type CalcZodiac, Chart, ChartFlag, type ChartRequest, type ChartResult, DeltaT, type EventsRequest, type EventsResult, HouseSystem, type HousesRequest, type HousesResult, TimeScale, calc, chart, events, houses };
|