react-semaphor 0.0.297 → 0.0.299

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.
@@ -17335,10 +17335,10 @@ function XX(e, t) {
17335
17335
  data: t.map((d) => d[u]),
17336
17336
  // Make sure that each data elment has a corresponding color. If not, the blurring effect will not work.
17337
17337
  backgroundColor: t.map(
17338
- (d, h) => r == null ? void 0 : r[h % r.length]
17338
+ (d, h) => (d == null ? void 0 : d._color) || (r == null ? void 0 : r[h % r.length])
17339
17339
  ),
17340
17340
  borderColor: t.map(
17341
- (d, h) => o == null ? void 0 : o[h % o.length]
17341
+ (d, h) => (d == null ? void 0 : d._color) || (o == null ? void 0 : o[h % o.length])
17342
17342
  )
17343
17343
  // Delete the code below after testing. 2/3/2024
17344
17344
  // datasetBackgroundColors?.[index % datasetBackgroundColors.length],
@@ -17357,7 +17357,7 @@ function QX(e) {
17357
17357
  }), t;
17358
17358
  }
17359
17359
  function wr(e) {
17360
- if (e.length === 0)
17360
+ if (!e || e.length === 0)
17361
17361
  return { keys: [], dimensionKeys: [], metricKeys: [] };
17362
17362
  const t = QX(e), n = Object.keys(e[t]), r = n.filter((i) => {
17363
17363
  var s, a, l, c, u, d, h, p;
@@ -31481,7 +31481,7 @@ function jie({
31481
31481
  co(
31482
31482
  (te) => te.actions.setNumberFormat
31483
31483
  );
31484
- const a = $e((te) => te.selectedSheetId), l = (v = (y = e.preferences) == null ? void 0 : y.formatNumber) == null ? void 0 : v.colorRanges, { metricKeys: c } = wr(t), u = (w = t == null ? void 0 : t[0]) == null ? void 0 : w[c == null ? void 0 : c[0]], d = (_ = t == null ? void 0 : t[0]) == null ? void 0 : _[c == null ? void 0 : c[1]], h = t.length > 0;
31484
+ const a = $e((te) => te.selectedSheetId), l = (v = (y = e.preferences) == null ? void 0 : y.formatNumber) == null ? void 0 : v.colorRanges, { metricKeys: c } = wr(t), u = (w = t == null ? void 0 : t[0]) == null ? void 0 : w[c == null ? void 0 : c[0]], d = (_ = t == null ? void 0 : t[0]) == null ? void 0 : _[c == null ? void 0 : c[1]], h = t && t.length > 0;
31485
31485
  function p(te) {
31486
31486
  o ? s({
31487
31487
  ...i,
@@ -58242,7 +58242,7 @@ function D_e() {
58242
58242
  h(w);
58243
58243
  }
58244
58244
  function m() {
58245
- return (l == null ? void 0 : l.canvasTheme) === "muted" || !(l != null && l.canvasTheme) ? "hsl(var(--semaphor-muted))" : (l == null ? void 0 : l.canvasTheme) === "clear" ? "#fff" : l == null ? void 0 : l.canvasTheme;
58245
+ return (l == null ? void 0 : l.canvasTheme) === "muted" || !(l != null && l.canvasTheme) ? "hsl(var(--semaphor-muted))" : (l == null ? void 0 : l.canvasTheme) === "clear" ? "" : l == null ? void 0 : l.canvasTheme;
58246
58246
  }
58247
58247
  return /* @__PURE__ */ E.jsxs(
58248
58248
  u6,