@milaboratories/graph-maker 1.1.124 → 1.1.126

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.
@@ -9623,9 +9623,15 @@ var hle = class extends F3 {
9623
9623
  function b8(e, t) {
9624
9624
  if (e === "String")
9625
9625
  return t.data;
9626
+ if (typeof t.data[0] == "bigint") {
9627
+ const n = new Array(t.data.length);
9628
+ for (let r = 0; r < t.data.length; r++)
9629
+ n[r] = t.data[r] === BigInt(-9007199254740991) ? null : Number(t.data[r]);
9630
+ return n;
9631
+ }
9626
9632
  for (let n = 0; n < t.data.length; n++) {
9627
9633
  const r = t.data[n];
9628
- e === "Int" && r === -2147483648 || e === "Long" && r === BigInt(-9007199254740991) || (e === "Double" || e === "Float") && isNaN(r) ? t.data[n] = null : t.data[n] = Number(t.data[n]);
9634
+ e === "Int" && r === -2147483648 || (e === "Double" || e === "Float") && isNaN(r) ? t.data[n] = null : t.data[n] = Number(t.data[n]);
9629
9635
  }
9630
9636
  return t.data;
9631
9637
  }
@@ -87584,7 +87590,7 @@ function jCt({ facetKey: e, scales: t, orientation: n, geom: r, aes: a, sideDist
87584
87590
  let I = A && h.fixed;
87585
87591
  return ae.jsx("g", { opacity: a.opacity, strokeWidth: a.lineWidth, children: S.map((H) => {
87586
87592
  if (!r.valuesMap[H]) return null;
87587
- let { y1: N, y2: O } = _[H], X = t.y(N), ee = t.y(O), se = Math.abs(X - ee), G = rW(t, "lineColor", a.lineColor, r.primaryGrouping, H), V = rW(t, "fillColor", a.fillColor, r.primaryGrouping, H), z = `stackedBar_${r.primaryGrouping}_${H}`, j = ae.jsx("rect", { width: m ? E : se, height: m ? se : E, x: m ? w - E / 2 : Math.min(X, ee), y: m ? Math.min(X, ee) : w - E / 2, fill: V, stroke: G, onMouseOver: () => h.onMouseOver(z, e), onMouseLeave: () => h.onMouseLeave() }), W = h.selectedData === z && e === h.currentFacet && I;
87593
+ let { y1: N, y2: O } = _[H], X = t.y(N), ee = t.y(O), se = Math.abs(X - ee), G = rW(t, "lineColor", a.lineColor, r.primaryGrouping, H), V = rW(t, "fillColor", a.fillColor, r.primaryGrouping, H), z = `stackedBar_${String(r.primaryGrouping)}_${String(H)}`, j = ae.jsx("rect", { width: m ? E : se, height: m ? se : E, x: m ? w - E / 2 : Math.min(X, ee), y: m ? Math.min(X, ee) : w - E / 2, fill: V, stroke: G, onMouseOver: () => h.onMouseOver(z, e), onMouseLeave: () => h.onMouseLeave() }), W = h.selectedData === z && e === h.currentFacet && I;
87588
87594
  return ae.jsxs("g", { children: [W ? oc.createPortal(j, A) : j, o && ae.jsx(sc, { content: GCt(f, r, H, c), x: m ? w : (X + ee) / 2, y: m ? (X + ee) / 2 : w, sideDistances: i, horizontal: m, offset: l > 1 ? C / 2 : C / 4, active: z === h.selectedData && e === h.currentFacet, fixed: h.fixed, onClose: h.onClose, container: d })] }, H);
87589
87595
  }) });
87590
87596
  }
@@ -88522,7 +88528,7 @@ function nbt(e, t, n, r) {
88522
88528
  let w = C === Yp ? "null" : C, E = n.getRowsByGrouping([...l, f, C]);
88523
88529
  if (!E.length) return;
88524
88530
  let S = of(E, (_) => Number(_[r.value]));
88525
- d[w] = { height: S, key: w }, A += S;
88531
+ d[w] = { height: S, key: String(w) }, A += S;
88526
88532
  });
88527
88533
  let h = A;
88528
88534
  e.normalize && t.secondary.forEach((C) => {
@@ -91009,7 +91015,7 @@ var YSt = class {
91009
91015
  _e(this, "lassoMode", !1);
91010
91016
  _e(this, "onPolygonUpdate", (e) => {
91011
91017
  this.polygon = e, this.updateByLasso();
91012
- let t = this.allDots.filter((n) => this.polygon.length > 2 && Yb(this.polygon, [n.x, n.y])).map((n) => Number(n.data.key));
91018
+ let t = this.allDots.filter((n) => this.polygon.length > 2 && Yb(this.polygon, [n.x, n.y])).map((n) => n.idx);
91013
91019
  this.onPolygonUpdateOutside(t);
91014
91020
  });
91015
91021
  }
@@ -91300,7 +91306,7 @@ var aEt = class extends u2 {
91300
91306
  if (S[t.value] === null || S[n.value] === null) return E;
91301
91307
  let D = Number(S[t.value]), I = Number(S[n.value]);
91302
91308
  c.x && D !== null && D < 0 && (c.x = !1), c.y && I !== null && I < 0 && (c.y = !1), D !== null && D < f.minX && (f.minX = D), D !== null && D > f.maxX && (f.maxX = D), I !== null && I < f.minY && (f.minY = I), I !== null && I > f.maxY && (f.maxY = I);
91303
- let H = (r == null ? void 0 : r.valueLabels) ?? (r == null ? void 0 : r.value), N = { x: D, y: I, id: String(_), dimmed: a ? !S[a.value] : !1, label: H && S[H] ? String(S[H]) : null, data: S };
91309
+ let H = (r == null ? void 0 : r.valueLabels) ?? (r == null ? void 0 : r.value), N = { x: D, y: I, id: String(_), idx: _, dimmed: a ? !S[a.value] : !1, label: H && S[H] ? String(S[H]) : null, data: S };
91304
91310
  if (A) {
91305
91311
  let O = i.map((X) => S[X.value]).join("_");
91306
91312
  d.add(O), h[O] || (h[O] = []), h[O].push(N);