@eaprelsky/nocturna-wheel 3.1.1 → 4.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/README.md +41 -1
- package/dist/nocturna-wheel.bundle.js +15 -1
- package/dist/nocturna-wheel.bundle.js.map +1 -1
- package/dist/nocturna-wheel.es.js +15 -1
- package/dist/nocturna-wheel.es.js.map +1 -1
- package/dist/nocturna-wheel.min.js +1 -1
- package/dist/nocturna-wheel.min.js.map +1 -1
- package/dist/nocturna-wheel.umd.js +15 -1
- package/dist/nocturna-wheel.umd.js.map +1 -1
- package/package.json +1 -1
|
@@ -293,7 +293,7 @@
|
|
|
293
293
|
/**
|
|
294
294
|
* IconData.js
|
|
295
295
|
* Auto-generated module containing inline SVG icons as data URLs
|
|
296
|
-
* Generated at: 2025-11-
|
|
296
|
+
* Generated at: 2025-11-23T10:05:25.858Z
|
|
297
297
|
*
|
|
298
298
|
* This file is automatically generated by the build process.
|
|
299
299
|
* Do not edit manually - changes will be overwritten.
|
|
@@ -1131,6 +1131,13 @@
|
|
|
1131
1131
|
mc: this.astronomicalData.mc
|
|
1132
1132
|
}
|
|
1133
1133
|
);
|
|
1134
|
+
|
|
1135
|
+
// Auto-rotate the wheel to position the Ascendant at 9 o'clock
|
|
1136
|
+
// Only set if not already explicitly configured
|
|
1137
|
+
if (this.houseCusps.length > 0 && this.houseSettings.rotationAngle === 0) {
|
|
1138
|
+
console.log(`ChartConfig: Auto-rotating wheel to Ascendant at ${this.astronomicalData.ascendant}°`);
|
|
1139
|
+
this.houseSettings.rotationAngle = this.astronomicalData.ascendant;
|
|
1140
|
+
}
|
|
1134
1141
|
} catch (error) {
|
|
1135
1142
|
console.error("Failed to calculate house cusps:", error?.message || error);
|
|
1136
1143
|
// Set empty cusps array if calculation fails
|
|
@@ -4916,6 +4923,13 @@
|
|
|
4916
4923
|
|
|
4917
4924
|
this.houses = options.houses || [];
|
|
4918
4925
|
|
|
4926
|
+
// Auto-rotate the wheel if houses are provided
|
|
4927
|
+
// This ensures the Ascendant (1st house cusp) is positioned at 9 o'clock
|
|
4928
|
+
if (this.houses.length > 0 && this.houses[0] && typeof this.houses[0].lon === 'number') {
|
|
4929
|
+
console.log(`NocturnaWheel: Auto-rotating wheel to Ascendant at ${this.houses[0].lon}°`);
|
|
4930
|
+
this.config.houseSettings.rotationAngle = this.houses[0].lon;
|
|
4931
|
+
}
|
|
4932
|
+
|
|
4919
4933
|
// Override aspect settings if provided (legacy support)
|
|
4920
4934
|
if (options.aspectSettings) {
|
|
4921
4935
|
this.config.updateAspectSettings(options.aspectSettings);
|