@zodiacs/engine 1.1.0 → 2.0.0-rc.2
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 +224 -0
- package/LICENSING.md +4 -0
- package/README.md +71 -30
- package/dist/{api-ChL1N2Sr.d.ts → api-C_SVd9BJ.d.ts} +7 -2
- package/dist/{ayanamsa-ClFzkKmV.d.ts → ayanamsa-Clgkekhh.d.ts} +1 -1
- package/dist/calc.d.ts +3 -2
- package/dist/calc.js +18 -10
- package/dist/{chunk-Y4E3WJU5.js → chunk-CV53HA7R.js} +1 -1
- package/dist/{chunk-2PZYJQV5.js → chunk-EEW7746S.js} +1 -1
- package/dist/{chunk-WBTWY2OB.js → chunk-FVGA776A.js} +2 -2
- package/dist/{chunk-YPU3MDNI.js → chunk-HNVGWN3S.js} +1 -1
- package/dist/{chunk-TZVPZHZM.js → chunk-IXFUYEUF.js} +28 -11
- package/dist/{chunk-4XOYTBLS.js → chunk-LWZS7HI3.js} +1 -1
- package/dist/{chunk-LNGURVNH.js → chunk-N4UQLCBN.js} +1 -1
- package/dist/{chunk-7Y2F2IWN.js → chunk-NX4PHQBL.js} +16 -6
- package/dist/{chunk-QLIEEICB.js → chunk-PNXIA7MI.js} +24 -10
- package/dist/{chunk-NNOSOOWS.js → chunk-SCRO6HWB.js} +4 -2
- package/dist/{chunk-B4M2Y7FT.js → chunk-T6F4FYYS.js} +1 -1
- package/dist/{chunk-767FTO7O.js → chunk-UXY4RU57.js} +1 -1
- package/dist/{chunk-BMDASNPB.js → chunk-WONTOC5W.js} +2 -1
- package/dist/crossings.d.ts +1 -1
- package/dist/de440-pack.d.ts +1 -1
- package/dist/de440-pack.js +4 -4
- package/dist/de440.d.ts +1 -1
- package/dist/de440.js +3 -3
- package/dist/{ephemeris-exTSqBgb.d.ts → ephemeris-D1lM832F.d.ts} +5 -1
- package/dist/geo.d.ts +14 -5
- package/dist/geo.js +2 -2
- package/dist/houses-extra.d.ts +2 -2
- package/dist/{houses-Bh7GCnPi.d.ts → houses-icK01yXi.d.ts} +1 -1
- package/dist/index.d.ts +7 -7
- package/dist/index.js +10 -10
- package/dist/{internal-math-CxenuGfm.d.ts → internal-math-BGX23p4h.d.ts} +2 -2
- package/dist/internal-math.d.ts +3 -3
- package/dist/internal-math.js +2 -2
- package/dist/internal.d.ts +3 -3
- package/dist/internal.js +7 -7
- package/dist/receipt.d.ts +2 -2
- package/dist/receipt.js +15 -4
- package/dist/{rulers-CSSWtiWF.d.ts → rulers-CpS9qkvu.d.ts} +1 -1
- package/dist/sky.d.ts +3 -3
- package/dist/sky.js +8 -8
- package/dist/techniques.d.ts +2 -2
- package/dist/techniques.js +10 -10
- package/dist/time.js +3 -3
- package/dist/timing.d.ts +4 -4
- package/dist/timing.js +10 -10
- package/dist/{types-DpPdtXgO.d.ts → types-BCnyWBQZ.d.ts} +21 -4
- package/dist/vedic.d.ts +3 -3
- package/dist/vedic.js +10 -10
- package/dist/window.d.ts +1 -1
- package/dist/window.js +8 -8
- package/dist/{zone-history-BxmDCcTK.d.ts → zone-history-0XzMGx9V.d.ts} +1 -1
- package/package.json +1 -1
|
@@ -55,8 +55,15 @@ interface PositionSource {
|
|
|
55
55
|
steps?(fromTtDays: number, toTtDays: number): number[];
|
|
56
56
|
}
|
|
57
57
|
type HouseSystem = "whole" | "placidus" | "porphyry" | "equal" | "equal-mc" | "vehlow" | "koch" | "regiomontanus" | "campanus" | "topocentric" | "alcabitius" | "morinus" | "meridian";
|
|
58
|
-
/**
|
|
59
|
-
|
|
58
|
+
/**
|
|
59
|
+
* `"delta-t-extrapolated"`: a result that moves with a ΔT extrapolated past the IERS table (docs/time.md).
|
|
60
|
+
* `"calendar-unknown"`: a local date resolved with no country the Gregorian adoption table dates that falls in
|
|
61
|
+
* the days one of its changeovers skipped, where the zone does not rule that changeover out, so whether it was
|
|
62
|
+
* in civil use where it was written is not known (docs/time.md).
|
|
63
|
+
* `"polar-angles"`: the angles were computed inside the polar circle, |latitude| ≥ 90° − ε, where the ascendant
|
|
64
|
+
* turns half a circle twice a sidereal day and is 0° or 180° at the poles (docs/houses.md).
|
|
65
|
+
*/
|
|
66
|
+
type ChartFlag = "dst-gap" | "dst-fold" | "lmt" | "calendar-unknown" | "no-time" | "polar-fallback" | "polar-angles" | "outside-reference-span" | "delta-t-extrapolated" | EphemerisFallback;
|
|
60
67
|
/**
|
|
61
68
|
* Why a result that would have come from the shipped DE440 pack, the default
|
|
62
69
|
* source, came from astronomy-engine instead; the result carries it as a flag
|
|
@@ -102,7 +109,9 @@ interface BirthInput {
|
|
|
102
109
|
/**
|
|
103
110
|
* The instant, on the scale `timeScale` names: UTC by default, and UT1 or
|
|
104
111
|
* TT when `timeScale` says so. The field keeps its name on every scale,
|
|
105
|
-
* because receipts record it under that name (docs/time.md).
|
|
112
|
+
* because receipts record it under that name (docs/time.md). A calendar
|
|
113
|
+
* date string with no time, such as "1990-05-03", reads as 00:00 UTC and
|
|
114
|
+
* is refused with a RangeError unless `timeKnown` is false.
|
|
106
115
|
*/
|
|
107
116
|
utc: DateInput;
|
|
108
117
|
/** "utc" (default), "ut1" or "tt" (docs/time.md). */
|
|
@@ -160,7 +169,15 @@ interface BodyPosition {
|
|
|
160
169
|
ephemeris?: string;
|
|
161
170
|
/** Present when `ephemeris` is astronomy-engine as a fallback from the shipped DE440 pack, and says why. */
|
|
162
171
|
fallback?: EphemerisFallback;
|
|
172
|
+
/**
|
|
173
|
+
* On the rows of `positions()`, `transits()`' `positions` and `progressedBodies()`, from the release after
|
|
174
|
+
* 1.1.0: the flags a chart at the same instant carries, where there are any (a chart's own bodies leave them to
|
|
175
|
+
* the chart's `flags`): `"outside-reference-span"`, `"delta-t-extrapolated"`, then the fallback, as `fallback`.
|
|
176
|
+
*/
|
|
177
|
+
flags?: InstantFlag[];
|
|
163
178
|
}
|
|
179
|
+
/** The flags an instant itself gives a result, whatever the place and birth settings; see `BodyPosition.flags`. */
|
|
180
|
+
type InstantFlag = "outside-reference-span" | "delta-t-extrapolated" | EphemerisFallback;
|
|
164
181
|
/** A chart point that is not a body; see `chartPoints`. */
|
|
165
182
|
type PointName = "Mean Node" | "Mean South Node" | "Black Moon Lilith" | "Vertex" | "East Point" | "Lot of Fortune" | "Lot of Spirit" | "Lot of Eros" | "Lot of Necessity" | "Lot of Courage" | "Lot of Victory" | "Lot of Nemesis";
|
|
166
183
|
/** Day when the Sun is above the horizon, night when it is below. */
|
|
@@ -332,4 +349,4 @@ declare const EPHEMERIS: Readonly<{
|
|
|
332
349
|
version: string;
|
|
333
350
|
}>;
|
|
334
351
|
|
|
335
|
-
export { type Angles as A, type BodyName as B, type ChartInput as C, type DetailedResult as D, type EphemerisFallback as E, type HouseSystem as H, type InterAspect as I, type MoonPhase as M, type PositionSource as P, type SynastryResult as S, type TransitResult as T, type ZodiacSign as Z, type Houses as a, type HouseNumber as b, type BodyPosition as c, type Chart as d, type DateInput as e, type AspectType as f, type ChartFlag as g, type BirthInput as h, type ChartPoints as i, type Sect as j, type MinimalBody as k, type Element as l, type Modality as m, type PairSummary as n, type Aspect as o, ENGINE_VERSION as p, EPHEMERIS as q, type
|
|
352
|
+
export { type Angles as A, type BodyName as B, type ChartInput as C, type DetailedResult as D, type EphemerisFallback as E, type HouseSystem as H, type InterAspect as I, type MoonPhase as M, type PositionSource as P, type SynastryResult as S, type TransitResult as T, type ZodiacSign as Z, type Houses as a, type HouseNumber as b, type BodyPosition as c, type Chart as d, type DateInput as e, type AspectType as f, type ChartFlag as g, type BirthInput as h, type ChartPoints as i, type Sect as j, type MinimalBody as k, type Element as l, type Modality as m, type PairSummary as n, type Aspect as o, ENGINE_VERSION as p, EPHEMERIS as q, type InstantFlag as r, type MoonPhaseName as s, type PointName as t, type PointPosition as u, type Polarity as v, type SignDefinition as w, type SourceBody as x };
|
package/dist/vedic.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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-
|
|
2
|
-
import { b as AyanamsaValue, A as AyanamsaName, c as AyanamsaDefinition } from './ayanamsa-
|
|
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-
|
|
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-BCnyWBQZ.js';
|
|
2
|
+
import { b as AyanamsaValue, A as AyanamsaName, c as AyanamsaDefinition } from './ayanamsa-Clgkekhh.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-Clgkekhh.js';
|
|
4
4
|
import { T as TimeScale } from './time-scale-DIFNa0gz.js';
|
|
5
5
|
import './deltat.js';
|
|
6
6
|
|
package/dist/vedic.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolvedChart
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-IXFUYEUF.js";
|
|
4
4
|
import {
|
|
5
5
|
AYANAMSAS,
|
|
6
6
|
NAKSHATRA_TICKS,
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
ticksOf,
|
|
19
19
|
userAyanamsa,
|
|
20
20
|
wrap360
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-FVGA776A.js";
|
|
22
22
|
import {
|
|
23
23
|
readOptions
|
|
24
24
|
} from "./chunk-47ERTK5X.js";
|
|
@@ -27,32 +27,32 @@ import {
|
|
|
27
27
|
meanNodeLongitude,
|
|
28
28
|
onChartClock,
|
|
29
29
|
refuseUnderSource
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-PNXIA7MI.js";
|
|
31
31
|
import {
|
|
32
32
|
dateFrom
|
|
33
33
|
} from "./chunk-CPALRSPC.js";
|
|
34
|
-
import "./chunk-
|
|
34
|
+
import "./chunk-T6F4FYYS.js";
|
|
35
35
|
import {
|
|
36
36
|
eclipticOfDate
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-EEW7746S.js";
|
|
38
38
|
import {
|
|
39
39
|
timeBasis
|
|
40
40
|
} from "./chunk-B5LKF437.js";
|
|
41
41
|
import "./chunk-TSS2SZWQ.js";
|
|
42
|
-
import "./chunk-
|
|
43
|
-
import "./chunk-
|
|
42
|
+
import "./chunk-UXY4RU57.js";
|
|
43
|
+
import "./chunk-HNVGWN3S.js";
|
|
44
44
|
import {
|
|
45
45
|
tilt
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-CV53HA7R.js";
|
|
47
47
|
import {
|
|
48
48
|
computeAngles
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-SCRO6HWB.js";
|
|
50
50
|
import {
|
|
51
51
|
SIGN_SLUGS,
|
|
52
52
|
normalizeLongitude
|
|
53
53
|
} from "./chunk-RMBWKZI2.js";
|
|
54
54
|
import "./chunk-BHJXUY67.js";
|
|
55
|
-
import "./chunk-
|
|
55
|
+
import "./chunk-WONTOC5W.js";
|
|
56
56
|
|
|
57
57
|
// src/vedic/chart.ts
|
|
58
58
|
function siderealChart(natal, ayanamsa2) {
|
package/dist/window.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { H as HouseSystem, B as BodyName, Z as ZodiacSign, b as HouseNumber, f as AspectType, e as DateInput } from './types-
|
|
1
|
+
import { H as HouseSystem, B as BodyName, Z as ZodiacSign, b as HouseNumber, f as AspectType, e as DateInput } from './types-BCnyWBQZ.js';
|
|
2
2
|
import './deltat.js';
|
|
3
3
|
import './time-scale-DIFNa0gz.js';
|
|
4
4
|
|
package/dist/window.js
CHANGED
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
gastHours,
|
|
5
5
|
onChartClock,
|
|
6
6
|
refuseUnderSource
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-PNXIA7MI.js";
|
|
8
8
|
import {
|
|
9
9
|
dateFrom
|
|
10
10
|
} from "./chunk-CPALRSPC.js";
|
|
@@ -14,24 +14,24 @@ import {
|
|
|
14
14
|
ENGINE_VERSION,
|
|
15
15
|
matchAspect,
|
|
16
16
|
separation
|
|
17
|
-
} from "./chunk-
|
|
18
|
-
import "./chunk-
|
|
17
|
+
} from "./chunk-T6F4FYYS.js";
|
|
18
|
+
import "./chunk-EEW7746S.js";
|
|
19
19
|
import {
|
|
20
20
|
REFERENCE_SPAN,
|
|
21
21
|
elapsedDays,
|
|
22
22
|
timeBasis
|
|
23
23
|
} from "./chunk-B5LKF437.js";
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-UXY4RU57.js";
|
|
25
|
+
import "./chunk-HNVGWN3S.js";
|
|
26
26
|
import {
|
|
27
27
|
tilt
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-CV53HA7R.js";
|
|
29
29
|
import {
|
|
30
30
|
computeAngles,
|
|
31
31
|
computeHouses,
|
|
32
32
|
houseOf,
|
|
33
33
|
isPolarUndefinedHouseSystem
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-SCRO6HWB.js";
|
|
35
35
|
import {
|
|
36
36
|
SIGN_SLUGS,
|
|
37
37
|
normalizeLongitude,
|
|
@@ -40,7 +40,7 @@ import {
|
|
|
40
40
|
import "./chunk-BHJXUY67.js";
|
|
41
41
|
import {
|
|
42
42
|
validateBirthSettings
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-WONTOC5W.js";
|
|
44
44
|
|
|
45
45
|
// src/window-ranges.ts
|
|
46
46
|
var DEG = Math.PI / 180;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as TimeScaleName } from './time-scale-DIFNa0gz.js';
|
|
2
|
-
import { B as BodyName, f as AspectType, Z as ZodiacSign, H as HouseSystem, g as ChartFlag, d as Chart, h as BirthInput } from './types-
|
|
2
|
+
import { B as BodyName, f as AspectType, Z as ZodiacSign, H as HouseSystem, g as ChartFlag, d as Chart, h as BirthInput } from './types-BCnyWBQZ.js';
|
|
3
3
|
import { DeltaTSegment } from './deltat.js';
|
|
4
4
|
|
|
5
5
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zodiacs/engine",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0-rc.2",
|
|
4
4
|
"description": "Browser-first astrology calculations used by Zodiacs.org: tropical charts; one calculation API with bounds and receipts in ./calc; birth-time windows in ./window; returns, relationship charts, the void-of-course Moon, patterns and dignities in ./techniques; house positions and cusp speeds in ./houses; rise, set, transit and planetary hours in ./sky; Hellenistic timing techniques and planetary returns in ./timing; the time basis and the frame of date, without the ephemeris, in ./time; declination parallels, sect, composite midpoints and dignities, without the ephemeris, in ./lite; positions from JPL's DE440 by default, from a pack it ships (./de440/pack), or from a caller's pack in ./de440; and the sidereal zodiac and Jyotish techniques in ./vedic.",
|
|
5
5
|
"license": "MIT AND CC-BY-4.0",
|
|
6
6
|
"keywords": [
|