@opendata-ai/openchart-vanilla 8.0.0-rc.22 → 8.0.0-rc.23

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.
@@ -413,9 +413,14 @@ var ScatterCanvasRenderer = class {
413
413
 
414
414
  // src/scatter-canvas/state.ts
415
415
  function flattenFill(fill) {
416
- if (typeof fill === "string") return fill;
416
+ if (typeof fill === "string") return fill.toLowerCase() === "none" ? "transparent" : fill;
417
417
  return fill.stops[0]?.color ?? "transparent";
418
418
  }
419
+ function normalizeStroke(stroke) {
420
+ if (!stroke) return "";
421
+ const lower = stroke.toLowerCase();
422
+ return lower === "none" || lower === "transparent" ? "" : stroke;
423
+ }
419
424
  function collectGridlines(axis, orient, out) {
420
425
  if (!axis) return;
421
426
  if (orient === "y" && axis.orient === "right") return;
@@ -467,7 +472,7 @@ function buildPointsSoA(layout) {
467
472
  soa.r[j] = mark.r;
468
473
  soa.fill[j] = flattenFill(mark.fill);
469
474
  soa.fillOpacity[j] = mark.fillOpacity ?? 1;
470
- soa.stroke[j] = mark.stroke ?? "";
475
+ soa.stroke[j] = normalizeStroke(mark.stroke);
471
476
  soa.strokeWidth[j] = mark.strokeWidth ?? 0;
472
477
  soa.keys[j] = mark.key;
473
478
  soa.markIds[j] = markId;
@@ -8331,4 +8336,4 @@ export {
8331
8336
  scrubCamera,
8332
8337
  createMap
8333
8338
  };
8334
- //# sourceMappingURL=chunk-4KJVKANW.js.map
8339
+ //# sourceMappingURL=chunk-2YWRNRUK.js.map