@milaboratories/graph-maker 1.1.125 → 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.
- package/dist/graph-maker.js +9 -3
- package/dist/graph-maker.umd.cjs +2 -2
- package/package.json +3 -3
package/dist/graph-maker.js
CHANGED
|
@@ -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 ||
|
|
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) => {
|