astroceleste-engine 0.0.6 → 0.0.7

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.
@@ -45,6 +45,12 @@ export class Engine {
45
45
  readonly coverage: Float64Array | undefined;
46
46
  }
47
47
 
48
+ /**
49
+ * A computed chart's dignities (condition, sect, receptions) judged again under `scheme`
50
+ * ("lilly" or "dorothean"). No kernel is needed.
51
+ */
52
+ export function chartDignities(chart: any, scheme: string): any;
53
+
48
54
  /**
49
55
  * Lilly's qualities of the degree an ecliptic longitude falls in.
50
56
  */
@@ -76,11 +82,18 @@ export function julianDay(utc: string): number;
76
82
  */
77
83
  export function synastry(chart_a_planets: any, chart_b_planets: any, orb_settings: any): any;
78
84
 
85
+ /**
86
+ * Annual profections and firdaria of a nativity (ISO 8601 UTC birth, natal Sun and
87
+ * Ascendant longitudes) for the years that overlap `start`..`end` (ISO 8601 UTC).
88
+ */
89
+ export function timeLords(birth: string, sun_longitude: number, ascendant_longitude: number, start: string, end: string): any;
90
+
79
91
  export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
80
92
 
81
93
  export interface InitOutput {
82
94
  readonly memory: WebAssembly.Memory;
83
95
  readonly __wbg_engine_free: (a: number, b: number) => void;
96
+ readonly chartDignities: (a: any, b: number, c: number) => [number, number, number];
84
97
  readonly degreeQualities: (a: number) => [number, number, number];
85
98
  readonly degreeQualityTable: () => [number, number, number];
86
99
  readonly derivedChart: (a: any, b: number, c: number, d: number) => [number, number, number];
@@ -96,6 +109,7 @@ export interface InitOutput {
96
109
  readonly excerptKernel: (a: number, b: number, c: number, d: number) => [number, number, number, number];
97
110
  readonly julianDay: (a: number, b: number) => [number, number, number];
98
111
  readonly synastry: (a: any, b: any, c: any) => [number, number, number];
112
+ readonly timeLords: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => [number, number, number];
99
113
  readonly __wbindgen_malloc: (a: number, b: number) => number;
100
114
  readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
101
115
  readonly __wbindgen_exn_store: (a: number) => void;
@@ -129,6 +129,23 @@ export class Engine {
129
129
  }
130
130
  if (Symbol.dispose) Engine.prototype[Symbol.dispose] = Engine.prototype.free;
131
131
 
132
+ /**
133
+ * A computed chart's dignities (condition, sect, receptions) judged again under `scheme`
134
+ * ("lilly" or "dorothean"). No kernel is needed.
135
+ * @param {any} chart
136
+ * @param {string} scheme
137
+ * @returns {any}
138
+ */
139
+ export function chartDignities(chart, scheme) {
140
+ const ptr0 = passStringToWasm0(scheme, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
141
+ const len0 = WASM_VECTOR_LEN;
142
+ const ret = wasm.chartDignities(chart, ptr0, len0);
143
+ if (ret[2]) {
144
+ throw takeFromExternrefTable0(ret[1]);
145
+ }
146
+ return takeFromExternrefTable0(ret[0]);
147
+ }
148
+
132
149
  /**
133
150
  * Lilly's qualities of the degree an ecliptic longitude falls in.
134
151
  * @param {number} longitude
@@ -220,6 +237,30 @@ export function synastry(chart_a_planets, chart_b_planets, orb_settings) {
220
237
  }
221
238
  return takeFromExternrefTable0(ret[0]);
222
239
  }
240
+
241
+ /**
242
+ * Annual profections and firdaria of a nativity (ISO 8601 UTC birth, natal Sun and
243
+ * Ascendant longitudes) for the years that overlap `start`..`end` (ISO 8601 UTC).
244
+ * @param {string} birth
245
+ * @param {number} sun_longitude
246
+ * @param {number} ascendant_longitude
247
+ * @param {string} start
248
+ * @param {string} end
249
+ * @returns {any}
250
+ */
251
+ export function timeLords(birth, sun_longitude, ascendant_longitude, start, end) {
252
+ const ptr0 = passStringToWasm0(birth, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
253
+ const len0 = WASM_VECTOR_LEN;
254
+ const ptr1 = passStringToWasm0(start, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
255
+ const len1 = WASM_VECTOR_LEN;
256
+ const ptr2 = passStringToWasm0(end, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
257
+ const len2 = WASM_VECTOR_LEN;
258
+ const ret = wasm.timeLords(ptr0, len0, sun_longitude, ascendant_longitude, ptr1, len1, ptr2, len2);
259
+ if (ret[2]) {
260
+ throw takeFromExternrefTable0(ret[1]);
261
+ }
262
+ return takeFromExternrefTable0(ret[0]);
263
+ }
223
264
  function __wbg_get_imports() {
224
265
  const import0 = {
225
266
  __proto__: null,
Binary file
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "astroceleste-engine",
3
3
  "type": "module",
4
4
  "description": "WebAssembly bindings for astroceleste-engine",
5
- "version": "0.0.6",
5
+ "version": "0.0.7",
6
6
  "license": "MIT OR Apache-2.0",
7
7
  "repository": {
8
8
  "type": "git",