@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.
@@ -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-14T10:26:57.781Z
296
+ * Generated at: 2025-11-14T16:02:21.686Z
297
297
  *
298
298
  * This file is automatically generated by the build process.
299
299
  * Do not edit manually - changes will be overwritten.
@@ -1992,10 +1992,21 @@
1992
1992
  ];
1993
1993
 
1994
1994
  circles.forEach(circleData => {
1995
+ // Determine stroke color and width based on circle type
1996
+ let strokeColor = "#999";
1997
+ let strokeWidth = "0.5";
1998
+ if (circleData.class === "chart-outer-circle") {
1999
+ strokeColor = "#666";
2000
+ strokeWidth = "1";
2001
+ }
2002
+
1995
2003
  const circle = this.svgUtils.createSVGElement("circle", {
1996
2004
  cx: this.centerX,
1997
2005
  cy: this.centerY,
1998
2006
  r: circleData.r,
2007
+ fill: "transparent", // Explicitly set transparent fill to avoid default black
2008
+ stroke: strokeColor, // Explicitly set stroke to ensure visibility
2009
+ "stroke-width": strokeWidth, // Explicitly set stroke width
1999
2010
  class: `zodiac-element ${circleData.class}` // Add base class
2000
2011
  });
2001
2012
  parentGroup.appendChild(circle);
@@ -2030,6 +2041,8 @@
2030
2041
  y1: point1.y,
2031
2042
  x2: point2.x,
2032
2043
  y2: point2.y,
2044
+ stroke: "#999", // Explicitly set stroke to ensure visibility
2045
+ "stroke-width": "0.75", // Explicitly set stroke width
2033
2046
  class: `zodiac-element zodiac-division-line ${specialClass}`
2034
2047
  });
2035
2048
 
@@ -2221,12 +2234,34 @@
2221
2234
  const innerPoint = this.svgUtils.pointOnCircle(this.centerX, this.centerY, this.innerRadius, angle);
2222
2235
  const middlePoint = this.svgUtils.pointOnCircle(this.centerX, this.centerY, this.middleRadius, angle);
2223
2236
 
2237
+ // Determine stroke color and width based on line type
2238
+ let innerStrokeColor = "#999";
2239
+ let innerStrokeWidth = "0.75";
2240
+
2241
+ let outerStrokeColor = "#999";
2242
+ let outerStrokeWidth = "0.75";
2243
+ let outerStrokeDasharray = null;
2244
+
2245
+ if (axisClass.includes('axis')) {
2246
+ // Cardinal points (ASC, DSC, IC, MC) - solid, darker
2247
+ innerStrokeColor = "#555";
2248
+ innerStrokeWidth = "1";
2249
+ outerStrokeColor = "#555";
2250
+ outerStrokeWidth = "1";
2251
+ // Axes are always solid
2252
+ } else {
2253
+ // Regular lines - outer lines are dashed
2254
+ outerStrokeDasharray = "2,2";
2255
+ }
2256
+
2224
2257
  // Create line from inner to middle circle
2225
2258
  const innerLine = this.svgUtils.createSVGElement("line", {
2226
2259
  x1: innerPoint.x,
2227
2260
  y1: innerPoint.y,
2228
2261
  x2: middlePoint.x,
2229
2262
  y2: middlePoint.y,
2263
+ stroke: innerStrokeColor, // Explicitly set stroke to ensure visibility
2264
+ "stroke-width": innerStrokeWidth, // Explicitly set stroke width
2230
2265
  class: `house-element house-division-line ${axisClass}`
2231
2266
  });
2232
2267
 
@@ -2248,13 +2283,21 @@
2248
2283
  const extendedPoint = this.svgUtils.pointOnCircle(this.centerX, this.centerY, this.extendedRadius, angle);
2249
2284
 
2250
2285
  // Create line from outer circle to extended point
2251
- const outerLine = this.svgUtils.createSVGElement("line", {
2286
+ const outerLineAttrs = {
2252
2287
  x1: outerPoint.x,
2253
2288
  y1: outerPoint.y,
2254
2289
  x2: extendedPoint.x,
2255
2290
  y2: extendedPoint.y,
2291
+ stroke: outerStrokeColor, // Explicitly set stroke to ensure visibility
2292
+ "stroke-width": outerStrokeWidth, // Explicitly set stroke width
2256
2293
  class: `house-element house-division-line outer ${axisClass}`
2257
- });
2294
+ };
2295
+
2296
+ if (outerStrokeDasharray) {
2297
+ outerLineAttrs["stroke-dasharray"] = outerStrokeDasharray;
2298
+ }
2299
+
2300
+ const outerLine = this.svgUtils.createSVGElement("line", outerLineAttrs);
2258
2301
 
2259
2302
  // Ensure cardinal points render above zodiac lines
2260
2303
  if (axisClass.includes('axis')) {
@@ -5344,6 +5387,9 @@
5344
5387
  cx: centerX,
5345
5388
  cy: centerY,
5346
5389
  r: radius,
5390
+ fill: "transparent", // Explicitly set transparent fill to avoid default black
5391
+ stroke: "#999", // Explicitly set stroke to ensure visibility
5392
+ "stroke-width": "0.5", // Explicitly set stroke width
5347
5393
  class: 'zodiac-element chart-innermost-circle'
5348
5394
  });
5349
5395
  zodiacGroup.appendChild(innermostCircle);
@@ -5748,11 +5794,21 @@
5748
5794
  }
5749
5795
  }
5750
5796
 
5751
- // Initialize the chart when the DOM is ready
5752
- document.addEventListener('DOMContentLoaded', initChart);
5797
+ // Auto-initialization is DISABLED in production builds to prevent conflicts.
5798
+ // This demo code should only run in development mode with Vite dev server.
5799
+ // In production, users explicitly create their own chart instances.
5753
5800
 
5754
- // Handle hot module replacement for Vite
5801
+ // Handle hot module replacement for Vite (development only)
5755
5802
  if (undefined) {
5803
+ // Initialize the chart when the DOM is ready (ONLY in development)
5804
+ document.addEventListener('DOMContentLoaded', () => {
5805
+ const container = document.getElementById('chart-container');
5806
+ if (container && container.children.length === 0) {
5807
+ console.log('DEV MODE: Auto-initializing demo chart');
5808
+ initChart();
5809
+ }
5810
+ });
5811
+
5756
5812
  undefined.accept((newModule) => {
5757
5813
  console.log('HMR update for main.js');
5758
5814
  cleanup();