kaabalah 3.3.0 → 3.3.1
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/dist/astrology/index.js +13 -13
- package/dist/astrology/index.mjs +1 -1
- package/dist/{chunk-T7D3HPJZ.mjs → chunk-S6GM43CR.mjs} +19 -19
- package/dist/{chunk-T7D3HPJZ.mjs.map → chunk-S6GM43CR.mjs.map} +1 -1
- package/dist/{chunk-KU4LMTWD.js → chunk-T2JS2IJN.js} +19 -19
- package/dist/{chunk-KU4LMTWD.js.map → chunk-T2JS2IJN.js.map} +1 -1
- package/dist/index.js +13 -13
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
|
@@ -3194,32 +3194,32 @@ var SwissEph = class {
|
|
|
3194
3194
|
if (longitude < -180 || longitude > 180) {
|
|
3195
3195
|
throw new Error("Longitude must be between -180 and 180 degrees");
|
|
3196
3196
|
}
|
|
3197
|
-
const
|
|
3197
|
+
const HOUSES_DOUBLES = 13;
|
|
3198
|
+
const ASCMC_DOUBLES = 10;
|
|
3199
|
+
const BYTES_PER_F64 = 8;
|
|
3200
|
+
const totalBytes = (HOUSES_DOUBLES + ASCMC_DOUBLES) * BYTES_PER_F64;
|
|
3198
3201
|
const memoryPtr = this.module._malloc(totalBytes);
|
|
3199
|
-
if (!memoryPtr)
|
|
3200
|
-
throw new Error("Memory allocation failed");
|
|
3201
|
-
}
|
|
3202
|
+
if (!memoryPtr) throw new Error("Memory allocation failed");
|
|
3202
3203
|
const housesPtr = memoryPtr;
|
|
3203
|
-
const ascmcPtr = memoryPtr +
|
|
3204
|
+
const ascmcPtr = memoryPtr + HOUSES_DOUBLES * BYTES_PER_F64;
|
|
3204
3205
|
try {
|
|
3205
3206
|
const hsysCode = hsys.charCodeAt(0);
|
|
3206
3207
|
const ret = this.swe_houses(julday, latitude, longitude, hsysCode, housesPtr, ascmcPtr);
|
|
3207
3208
|
if (ret < 0) {
|
|
3208
3209
|
throw new Error(`Houses calculation failed with error code ${ret}`);
|
|
3209
3210
|
}
|
|
3210
|
-
const houses =
|
|
3211
|
-
for (let i = 0; i <
|
|
3212
|
-
|
|
3213
|
-
houses.push(value);
|
|
3211
|
+
const houses = new Array(HOUSES_DOUBLES);
|
|
3212
|
+
for (let i = 0; i < HOUSES_DOUBLES; i++) {
|
|
3213
|
+
houses[i] = this.module.getValue(housesPtr + i * BYTES_PER_F64, "double");
|
|
3214
3214
|
}
|
|
3215
|
-
const ascendant = this.module.getValue(ascmcPtr + 0, "double");
|
|
3216
|
-
const mc = this.module.getValue(ascmcPtr +
|
|
3217
|
-
const armc = this.module.getValue(ascmcPtr +
|
|
3218
|
-
const vertex = this.module.getValue(ascmcPtr +
|
|
3219
|
-
const equasc = this.module.getValue(ascmcPtr +
|
|
3220
|
-
const coasc1 = this.module.getValue(ascmcPtr +
|
|
3221
|
-
const coasc2 = this.module.getValue(ascmcPtr +
|
|
3222
|
-
const polasc = this.module.getValue(ascmcPtr +
|
|
3215
|
+
const ascendant = this.module.getValue(ascmcPtr + 0 * BYTES_PER_F64, "double");
|
|
3216
|
+
const mc = this.module.getValue(ascmcPtr + 1 * BYTES_PER_F64, "double");
|
|
3217
|
+
const armc = this.module.getValue(ascmcPtr + 2 * BYTES_PER_F64, "double");
|
|
3218
|
+
const vertex = this.module.getValue(ascmcPtr + 3 * BYTES_PER_F64, "double");
|
|
3219
|
+
const equasc = this.module.getValue(ascmcPtr + 4 * BYTES_PER_F64, "double");
|
|
3220
|
+
const coasc1 = this.module.getValue(ascmcPtr + 5 * BYTES_PER_F64, "double");
|
|
3221
|
+
const coasc2 = this.module.getValue(ascmcPtr + 6 * BYTES_PER_F64, "double");
|
|
3222
|
+
const polasc = this.module.getValue(ascmcPtr + 7 * BYTES_PER_F64, "double");
|
|
3223
3223
|
return {
|
|
3224
3224
|
ascendant,
|
|
3225
3225
|
mc,
|
|
@@ -3480,5 +3480,5 @@ exports.getBirthChart = getBirthChart;
|
|
|
3480
3480
|
exports.getSwissEph = getSwissEph;
|
|
3481
3481
|
exports.getZodiacPosition = getZodiacPosition;
|
|
3482
3482
|
exports.normalizeAngle = normalizeAngle;
|
|
3483
|
-
//# sourceMappingURL=chunk-
|
|
3484
|
-
//# sourceMappingURL=chunk-
|
|
3483
|
+
//# sourceMappingURL=chunk-T2JS2IJN.js.map
|
|
3484
|
+
//# sourceMappingURL=chunk-T2JS2IJN.js.map
|