@graphysdk/react 2.0.0-beta.1788419223711 → 2.0.0-beta.1788422115078
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/editable.browser.mjs +51 -45
- package/dist/index.browser.mjs +1880 -1874
- package/package.json +3 -3
|
@@ -18865,68 +18865,71 @@ var fg = Object.freeze({
|
|
|
18865
18865
|
grandTotal: n,
|
|
18866
18866
|
absoluteGrandTotal: r
|
|
18867
18867
|
};
|
|
18868
|
-
}, Zfe = ({ layer: e }) => {
|
|
18868
|
+
}, Zfe = ({ layer: e, mainAxis: t }) => {
|
|
18869
18869
|
if (e.position !== "stack") return;
|
|
18870
|
-
const
|
|
18871
|
-
if (
|
|
18872
|
-
const
|
|
18873
|
-
for (const
|
|
18874
|
-
const
|
|
18875
|
-
if (!he(
|
|
18876
|
-
const
|
|
18877
|
-
if (Math.abs(
|
|
18878
|
-
const
|
|
18879
|
-
|
|
18880
|
-
|
|
18881
|
-
|
|
18882
|
-
|
|
18883
|
-
|
|
18884
|
-
|
|
18885
|
-
|
|
18886
|
-
|
|
18887
|
-
|
|
18888
|
-
|
|
18870
|
+
const n = we(e.mapping.x);
|
|
18871
|
+
if (n === null || !e.data.hasVariable(fe.yMin) || !e.data.hasVariable(fe.yMax)) return;
|
|
18872
|
+
const r = (s) => t === "y" ? s.xMax : s.yMax, o = (s) => t === "y" ? s.xMin : s.yMin, i = /* @__PURE__ */ new Map();
|
|
18873
|
+
for (const s of e.data) {
|
|
18874
|
+
const l = s[n], c = yr(s), u = Vn(s), d = Xr(s), f = Or(s), h = kN(s);
|
|
18875
|
+
if (!he(l) || !he(c) || !he(u) || !he(d) || !he(f) || !he(h)) continue;
|
|
18876
|
+
const p = h >= 0;
|
|
18877
|
+
if (Math.abs(h) === 0) continue;
|
|
18878
|
+
const g = WT(s, n), v = {
|
|
18879
|
+
xMin: d,
|
|
18880
|
+
xMax: f,
|
|
18881
|
+
yMin: c,
|
|
18882
|
+
yMax: u
|
|
18883
|
+
}, y = i.get(g);
|
|
18884
|
+
if (y === void 0) {
|
|
18885
|
+
i.set(g, {
|
|
18886
|
+
total: h,
|
|
18887
|
+
topPositive: p ? v : null,
|
|
18888
|
+
bottomNegative: p ? null : v
|
|
18889
18889
|
});
|
|
18890
18890
|
continue;
|
|
18891
18891
|
}
|
|
18892
|
-
|
|
18892
|
+
y.total += h, p ? (y.topPositive === null || r(v) > r(y.topPositive)) && (y.topPositive = v) : (y.bottomNegative === null || o(v) < o(y.bottomNegative)) && (y.bottomNegative = v);
|
|
18893
18893
|
}
|
|
18894
|
-
const
|
|
18895
|
-
for (const [
|
|
18896
|
-
const
|
|
18897
|
-
|
|
18898
|
-
xKey:
|
|
18899
|
-
total:
|
|
18894
|
+
const a = [];
|
|
18895
|
+
for (const [s, l] of i) {
|
|
18896
|
+
const c = l.topPositive ?? l.bottomNegative;
|
|
18897
|
+
c !== null && a.push({
|
|
18898
|
+
xKey: s,
|
|
18899
|
+
total: l.total,
|
|
18900
18900
|
anchor: {
|
|
18901
|
-
xMin:
|
|
18902
|
-
xMax:
|
|
18903
|
-
yMin:
|
|
18904
|
-
yMax:
|
|
18905
|
-
direction:
|
|
18901
|
+
xMin: c.xMin,
|
|
18902
|
+
xMax: c.xMax,
|
|
18903
|
+
yMin: c.yMin,
|
|
18904
|
+
yMax: c.yMax,
|
|
18905
|
+
direction: l.topPositive !== null ? "positive" : "negative"
|
|
18906
18906
|
}
|
|
18907
18907
|
});
|
|
18908
18908
|
}
|
|
18909
|
-
return
|
|
18909
|
+
return a;
|
|
18910
18910
|
}, ehe = class extends Ml {
|
|
18911
18911
|
constructor(e) {
|
|
18912
18912
|
super(), this.container = e;
|
|
18913
18913
|
}
|
|
18914
|
-
dependencies() {
|
|
18915
|
-
return [];
|
|
18914
|
+
dependencies(e) {
|
|
18915
|
+
return [e.coordSystem];
|
|
18916
18916
|
}
|
|
18917
|
-
compileLayer(e) {
|
|
18918
|
-
const
|
|
18919
|
-
if (
|
|
18920
|
-
const
|
|
18921
|
-
|
|
18917
|
+
compileLayer(e, t) {
|
|
18918
|
+
const n = this.container.geomRegistry.get(e.geom), r = {}, o = t.coordSystem.type === "cartesian" ? t.coordSystem.mainAxis : "x";
|
|
18919
|
+
if (n.summaries.stackTotals) {
|
|
18920
|
+
const i = Zfe({
|
|
18921
|
+
layer: e,
|
|
18922
|
+
mainAxis: o
|
|
18923
|
+
});
|
|
18924
|
+
i !== void 0 && (r.stackTotals = i);
|
|
18922
18925
|
}
|
|
18923
|
-
if (
|
|
18924
|
-
const
|
|
18925
|
-
|
|
18926
|
+
if (n.summaries.grandTotal) {
|
|
18927
|
+
const i = Jfe({ layer: e });
|
|
18928
|
+
i !== void 0 && (r.grandTotal = i.grandTotal, r.absoluteGrandTotal = i.absoluteGrandTotal);
|
|
18926
18929
|
}
|
|
18927
18930
|
return {
|
|
18928
18931
|
...e,
|
|
18929
|
-
summary:
|
|
18932
|
+
summary: r
|
|
18930
18933
|
};
|
|
18931
18934
|
}
|
|
18932
18935
|
}, b4 = class extends qa {
|
|
@@ -19138,7 +19141,10 @@ var ohe = class {
|
|
|
19138
19141
|
coordSpec: t.coords,
|
|
19139
19142
|
coordSystem: r,
|
|
19140
19143
|
layers: n
|
|
19141
|
-
}) })).pipe(({ layers: t
|
|
19144
|
+
}) })).pipe(({ layers: t, coordSystem: n }) => ({ layers: this.summariseCompiler.compile({
|
|
19145
|
+
layers: t,
|
|
19146
|
+
coordSystem: n
|
|
19147
|
+
}) })).pipe(({ spec: t, scales: n, layers: r, coordSystem: o }) => ({ guides: this.guideCompiler.compile({
|
|
19142
19148
|
scales: n,
|
|
19143
19149
|
config: t.config,
|
|
19144
19150
|
layers: r,
|