@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.
@@ -287,7 +287,7 @@ class IconProvider {
287
287
  /**
288
288
  * IconData.js
289
289
  * Auto-generated module containing inline SVG icons as data URLs
290
- * Generated at: 2025-11-21T17:08:55.797Z
290
+ * Generated at: 2025-11-23T10:05:25.858Z
291
291
  *
292
292
  * This file is automatically generated by the build process.
293
293
  * Do not edit manually - changes will be overwritten.
@@ -1125,6 +1125,13 @@ class ChartConfig {
1125
1125
  mc: this.astronomicalData.mc
1126
1126
  }
1127
1127
  );
1128
+
1129
+ // Auto-rotate the wheel to position the Ascendant at 9 o'clock
1130
+ // Only set if not already explicitly configured
1131
+ if (this.houseCusps.length > 0 && this.houseSettings.rotationAngle === 0) {
1132
+ console.log(`ChartConfig: Auto-rotating wheel to Ascendant at ${this.astronomicalData.ascendant}°`);
1133
+ this.houseSettings.rotationAngle = this.astronomicalData.ascendant;
1134
+ }
1128
1135
  } catch (error) {
1129
1136
  console.error("Failed to calculate house cusps:", error?.message || error);
1130
1137
  // Set empty cusps array if calculation fails
@@ -4910,6 +4917,13 @@ class NocturnaWheel {
4910
4917
 
4911
4918
  this.houses = options.houses || [];
4912
4919
 
4920
+ // Auto-rotate the wheel if houses are provided
4921
+ // This ensures the Ascendant (1st house cusp) is positioned at 9 o'clock
4922
+ if (this.houses.length > 0 && this.houses[0] && typeof this.houses[0].lon === 'number') {
4923
+ console.log(`NocturnaWheel: Auto-rotating wheel to Ascendant at ${this.houses[0].lon}°`);
4924
+ this.config.houseSettings.rotationAngle = this.houses[0].lon;
4925
+ }
4926
+
4913
4927
  // Override aspect settings if provided (legacy support)
4914
4928
  if (options.aspectSettings) {
4915
4929
  this.config.updateAspectSettings(options.aspectSettings);