@eaprelsky/nocturna-wheel 3.0.1 → 3.0.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.
@@ -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-14T10:26:57.036Z
290
+ * Generated at: 2025-11-14T16:02:20.923Z
291
291
  *
292
292
  * This file is automatically generated by the build process.
293
293
  * Do not edit manually - changes will be overwritten.
@@ -1986,10 +1986,21 @@ class ZodiacRenderer extends BaseRenderer {
1986
1986
  ];
1987
1987
 
1988
1988
  circles.forEach(circleData => {
1989
+ // Determine stroke color and width based on circle type
1990
+ let strokeColor = "#999";
1991
+ let strokeWidth = "0.5";
1992
+ if (circleData.class === "chart-outer-circle") {
1993
+ strokeColor = "#666";
1994
+ strokeWidth = "1";
1995
+ }
1996
+
1989
1997
  const circle = this.svgUtils.createSVGElement("circle", {
1990
1998
  cx: this.centerX,
1991
1999
  cy: this.centerY,
1992
2000
  r: circleData.r,
2001
+ fill: "transparent", // Explicitly set transparent fill to avoid default black
2002
+ stroke: strokeColor, // Explicitly set stroke to ensure visibility
2003
+ "stroke-width": strokeWidth, // Explicitly set stroke width
1993
2004
  class: `zodiac-element ${circleData.class}` // Add base class
1994
2005
  });
1995
2006
  parentGroup.appendChild(circle);
@@ -2024,6 +2035,8 @@ class ZodiacRenderer extends BaseRenderer {
2024
2035
  y1: point1.y,
2025
2036
  x2: point2.x,
2026
2037
  y2: point2.y,
2038
+ stroke: "#999", // Explicitly set stroke to ensure visibility
2039
+ "stroke-width": "0.75", // Explicitly set stroke width
2027
2040
  class: `zodiac-element zodiac-division-line ${specialClass}`
2028
2041
  });
2029
2042
 
@@ -2215,12 +2228,34 @@ class HouseRenderer extends BaseRenderer {
2215
2228
  const innerPoint = this.svgUtils.pointOnCircle(this.centerX, this.centerY, this.innerRadius, angle);
2216
2229
  const middlePoint = this.svgUtils.pointOnCircle(this.centerX, this.centerY, this.middleRadius, angle);
2217
2230
 
2231
+ // Determine stroke color and width based on line type
2232
+ let innerStrokeColor = "#999";
2233
+ let innerStrokeWidth = "0.75";
2234
+
2235
+ let outerStrokeColor = "#999";
2236
+ let outerStrokeWidth = "0.75";
2237
+ let outerStrokeDasharray = null;
2238
+
2239
+ if (axisClass.includes('axis')) {
2240
+ // Cardinal points (ASC, DSC, IC, MC) - solid, darker
2241
+ innerStrokeColor = "#555";
2242
+ innerStrokeWidth = "1";
2243
+ outerStrokeColor = "#555";
2244
+ outerStrokeWidth = "1";
2245
+ // Axes are always solid
2246
+ } else {
2247
+ // Regular lines - outer lines are dashed
2248
+ outerStrokeDasharray = "2,2";
2249
+ }
2250
+
2218
2251
  // Create line from inner to middle circle
2219
2252
  const innerLine = this.svgUtils.createSVGElement("line", {
2220
2253
  x1: innerPoint.x,
2221
2254
  y1: innerPoint.y,
2222
2255
  x2: middlePoint.x,
2223
2256
  y2: middlePoint.y,
2257
+ stroke: innerStrokeColor, // Explicitly set stroke to ensure visibility
2258
+ "stroke-width": innerStrokeWidth, // Explicitly set stroke width
2224
2259
  class: `house-element house-division-line ${axisClass}`
2225
2260
  });
2226
2261
 
@@ -2242,13 +2277,21 @@ class HouseRenderer extends BaseRenderer {
2242
2277
  const extendedPoint = this.svgUtils.pointOnCircle(this.centerX, this.centerY, this.extendedRadius, angle);
2243
2278
 
2244
2279
  // Create line from outer circle to extended point
2245
- const outerLine = this.svgUtils.createSVGElement("line", {
2280
+ const outerLineAttrs = {
2246
2281
  x1: outerPoint.x,
2247
2282
  y1: outerPoint.y,
2248
2283
  x2: extendedPoint.x,
2249
2284
  y2: extendedPoint.y,
2285
+ stroke: outerStrokeColor, // Explicitly set stroke to ensure visibility
2286
+ "stroke-width": outerStrokeWidth, // Explicitly set stroke width
2250
2287
  class: `house-element house-division-line outer ${axisClass}`
2251
- });
2288
+ };
2289
+
2290
+ if (outerStrokeDasharray) {
2291
+ outerLineAttrs["stroke-dasharray"] = outerStrokeDasharray;
2292
+ }
2293
+
2294
+ const outerLine = this.svgUtils.createSVGElement("line", outerLineAttrs);
2252
2295
 
2253
2296
  // Ensure cardinal points render above zodiac lines
2254
2297
  if (axisClass.includes('axis')) {
@@ -5338,6 +5381,9 @@ class ChartRenderer {
5338
5381
  cx: centerX,
5339
5382
  cy: centerY,
5340
5383
  r: radius,
5384
+ fill: "transparent", // Explicitly set transparent fill to avoid default black
5385
+ stroke: "#999", // Explicitly set stroke to ensure visibility
5386
+ "stroke-width": "0.5", // Explicitly set stroke width
5341
5387
  class: 'zodiac-element chart-innermost-circle'
5342
5388
  });
5343
5389
  zodiacGroup.appendChild(innermostCircle);
@@ -5742,11 +5788,21 @@ function cleanup() {
5742
5788
  }
5743
5789
  }
5744
5790
 
5745
- // Initialize the chart when the DOM is ready
5746
- document.addEventListener('DOMContentLoaded', initChart);
5791
+ // Auto-initialization is DISABLED in production builds to prevent conflicts.
5792
+ // This demo code should only run in development mode with Vite dev server.
5793
+ // In production, users explicitly create their own chart instances.
5747
5794
 
5748
- // Handle hot module replacement for Vite
5795
+ // Handle hot module replacement for Vite (development only)
5749
5796
  if (import.meta.hot) {
5797
+ // Initialize the chart when the DOM is ready (ONLY in development)
5798
+ document.addEventListener('DOMContentLoaded', () => {
5799
+ const container = document.getElementById('chart-container');
5800
+ if (container && container.children.length === 0) {
5801
+ console.log('DEV MODE: Auto-initializing demo chart');
5802
+ initChart();
5803
+ }
5804
+ });
5805
+
5750
5806
  import.meta.hot.accept((newModule) => {
5751
5807
  console.log('HMR update for main.js');
5752
5808
  cleanup();