@milaboratories/miplots4 1.0.145 → 1.0.146
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/heatmap/ChartRenderer.d.ts +1 -1
- package/dist/heatmap/ChartRenderer.d.ts.map +1 -1
- package/dist/heatmap/ChartRenderer.js +110 -109
- package/dist/heatmap/ChartRenderer.js.map +1 -1
- package/dist/heatmap/HeatmapSettingsImpl.d.ts +1 -0
- package/dist/heatmap/HeatmapSettingsImpl.d.ts.map +1 -1
- package/dist/heatmap/HeatmapSettingsImpl.js +7 -6
- package/dist/heatmap/HeatmapSettingsImpl.js.map +1 -1
- package/dist/heatmap/components/Annotations/Annotation.d.ts +2 -2
- package/dist/heatmap/components/Annotations/Annotation.d.ts.map +1 -1
- package/dist/heatmap/components/Annotations/Annotation.js +106 -98
- package/dist/heatmap/components/Annotations/Annotation.js.map +1 -1
- package/dist/heatmap/components/Annotations/AnnotationCellsCanvas.d.ts +23 -0
- package/dist/heatmap/components/Annotations/AnnotationCellsCanvas.d.ts.map +1 -0
- package/dist/heatmap/components/Annotations/AnnotationCellsCanvas.js +99 -0
- package/dist/heatmap/components/Annotations/AnnotationCellsCanvas.js.map +1 -0
- package/dist/heatmap/components/Annotations/AnnotationCellsSvg.d.ts +23 -0
- package/dist/heatmap/components/Annotations/AnnotationCellsSvg.d.ts.map +1 -0
- package/dist/heatmap/components/Annotations/AnnotationCellsSvg.js +57 -0
- package/dist/heatmap/components/Annotations/AnnotationCellsSvg.js.map +1 -0
- package/dist/heatmap/components/Annotations/index.d.ts +2 -2
- package/dist/heatmap/components/Annotations/index.d.ts.map +1 -1
- package/dist/heatmap/components/Annotations/index.js +2 -2
- package/dist/heatmap/components/Annotations/index.js.map +1 -1
- package/dist/heatmap/components/CanvasCells.d.ts +21 -0
- package/dist/heatmap/components/CanvasCells.d.ts.map +1 -0
- package/dist/heatmap/components/CanvasCells.js +85 -0
- package/dist/heatmap/components/CanvasCells.js.map +1 -0
- package/dist/heatmap/components/Chart.d.ts +2 -1
- package/dist/heatmap/components/Chart.d.ts.map +1 -1
- package/dist/heatmap/components/Chart.js +180 -186
- package/dist/heatmap/components/Chart.js.map +1 -1
- package/dist/heatmap/components/ChartsGroup.d.ts +2 -1
- package/dist/heatmap/components/ChartsGroup.d.ts.map +1 -1
- package/dist/heatmap/components/ChartsGroup.js +27 -25
- package/dist/heatmap/components/ChartsGroup.js.map +1 -1
- package/dist/heatmap/components/SvgCells.d.ts +19 -0
- package/dist/heatmap/components/SvgCells.d.ts.map +1 -0
- package/dist/heatmap/components/SvgCells.js +38 -0
- package/dist/heatmap/components/SvgCells.js.map +1 -0
- package/dist/heatmap/components/tooltipUtils.d.ts +10 -0
- package/dist/heatmap/components/tooltipUtils.d.ts.map +1 -0
- package/dist/heatmap/components/tooltipUtils.js +44 -0
- package/dist/heatmap/components/tooltipUtils.js.map +1 -0
- package/dist/heatmap/components/types.d.ts +8 -0
- package/dist/heatmap/components/types.d.ts.map +1 -1
- package/dist/heatmap/constants.d.ts +1 -0
- package/dist/heatmap/constants.d.ts.map +1 -1
- package/dist/heatmap/constants.js +13 -12
- package/dist/heatmap/constants.js.map +1 -1
- package/dist/heatmap/getCells.d.ts.map +1 -1
- package/dist/heatmap/getCells.js +65 -68
- package/dist/heatmap/getCells.js.map +1 -1
- package/dist/heatmap/index.d.ts.map +1 -1
- package/dist/heatmap/index.js +89 -87
- package/dist/heatmap/index.js.map +1 -1
- package/dist/types/heatmap.d.ts +3 -0
- package/dist/types/heatmap.d.ts.map +1 -1
- package/dist/types/heatmap.js +5 -4
- package/dist/types/heatmap.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChartRenderer.d.ts","sourceRoot":"","sources":["../../src/heatmap/ChartRenderer.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAG1D,OAAO,KAAK,E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|
var L = (m, e, s) => nt(m, typeof e != "symbol" ? e + "" : e, s);
|
|
4
|
-
import { j
|
|
4
|
+
import { j } from "../node_modules/react/jsx-runtime.js";
|
|
5
5
|
import rt from "../node_modules/lodash/lodash.js";
|
|
6
6
|
import { createRoot as at } from "../node_modules/react-dom/client.js";
|
|
7
7
|
import { Error as ht } from "../common/Error.js";
|
|
@@ -12,13 +12,13 @@ import { getChartEdgeSides as dt } from "../utils/getChartEdgeSides.js";
|
|
|
12
12
|
import { getContinuousLegendTicks as Q } from "../utils/getContinuousLegendTicks.js";
|
|
13
13
|
import { TextMeasurer as mt } from "../utils/TextMeasurer/TextMeasurer.js";
|
|
14
14
|
import { ChartsGroup as gt } from "./components/ChartsGroup.js";
|
|
15
|
-
import { MIN_MARGIN as
|
|
15
|
+
import { MIN_MARGIN as F, TITLE_LINE as q, LEGEND_OFFSET as xt, DEFAULT_AES as Z, CHART_SIDE_ELEMENTS as ft } from "./constants.js";
|
|
16
16
|
import { calculateChartSideElementSizes as yt } from "./utils/calculateChartSideElementSizes.js";
|
|
17
17
|
import { calculateSideElementsBBoxes as St } from "./utils/calculateSideElementsBBoxes.js";
|
|
18
18
|
import { createDiscreteColorScale as $, createContinuousColorScale as Ct } from "./utils/createColorScales.js";
|
|
19
19
|
import { calculateAnnotationTitleSizes as Lt } from "./utils/calculateAnnotationTitleSizes.js";
|
|
20
20
|
import { calculateCaptionTails as bt } from "./utils/calculateCaptionTails.js";
|
|
21
|
-
import
|
|
21
|
+
import R from "../node_modules/d3-scale/src/ordinal.js";
|
|
22
22
|
import D from "../node_modules/d3-scale/src/linear.js";
|
|
23
23
|
import zt from "../node_modules/d3-array/src/extent.js";
|
|
24
24
|
import tt from "../node_modules/d3-hierarchy/src/cluster.js";
|
|
@@ -54,7 +54,7 @@ function ot(m, e, s) {
|
|
|
54
54
|
let t = s;
|
|
55
55
|
return m && (m.colorRange && (t = m.colorRange), m.method === "standardScaling" && (t = [-2, 2]), m.method === "meanNormalization" && (t = [-0.75, 0.75])), Et(e, t);
|
|
56
56
|
}
|
|
57
|
-
function
|
|
57
|
+
function P(m, e, s) {
|
|
58
58
|
let t = 0;
|
|
59
59
|
for (const r of m) {
|
|
60
60
|
if (e[r] === void 0) continue;
|
|
@@ -63,7 +63,7 @@ function F(m, e, s) {
|
|
|
63
63
|
}
|
|
64
64
|
return t;
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function K(m, e) {
|
|
67
67
|
return e === 90 ? m : e === 45 ? m * Gt + (m > 0 ? 2 * At : 0) : q;
|
|
68
68
|
}
|
|
69
69
|
class Vt {
|
|
@@ -71,7 +71,7 @@ class Vt {
|
|
|
71
71
|
L(this, "reactRoot", null);
|
|
72
72
|
L(this, "parentNode", null);
|
|
73
73
|
L(this, "rootNode", null);
|
|
74
|
-
L(this, "component", /* @__PURE__ */
|
|
74
|
+
L(this, "component", /* @__PURE__ */ j.jsx(j.Fragment, {}));
|
|
75
75
|
L(this, "chartsDimensions", {});
|
|
76
76
|
L(this, "chartSizes", {
|
|
77
77
|
chartWidth: Y,
|
|
@@ -88,10 +88,10 @@ class Vt {
|
|
|
88
88
|
// width of all charts in charts height, plus bottom axis, plus top title
|
|
89
89
|
});
|
|
90
90
|
L(this, "margins", {
|
|
91
|
-
top:
|
|
92
|
-
bottom:
|
|
93
|
-
left:
|
|
94
|
-
right:
|
|
91
|
+
top: F,
|
|
92
|
+
bottom: F,
|
|
93
|
+
left: F,
|
|
94
|
+
right: F
|
|
95
95
|
});
|
|
96
96
|
L(this, "captionsSizes", {
|
|
97
97
|
xAxisCaptions: 100,
|
|
@@ -111,8 +111,8 @@ class Vt {
|
|
|
111
111
|
L(this, "rowsCount", 1);
|
|
112
112
|
L(this, "scales", {
|
|
113
113
|
// scales grouped by facet
|
|
114
|
-
x: { null:
|
|
115
|
-
y: { null:
|
|
114
|
+
x: { null: R().domain(["null"]).range([1]) },
|
|
115
|
+
y: { null: R().domain(["null"]).range([1]) }
|
|
116
116
|
});
|
|
117
117
|
L(this, "step", { x: {}, y: {} });
|
|
118
118
|
L(this, "colorScale", D().domain([0, 1]).range(["white", "black"]));
|
|
@@ -148,7 +148,7 @@ class Vt {
|
|
|
148
148
|
this.legend = { width: 0, height: 0, items: [] };
|
|
149
149
|
return;
|
|
150
150
|
}
|
|
151
|
-
const a = this.chartSizes.chartHeight, h = [], u = { width: 0, height: 0, left: 0, top: 0 },
|
|
151
|
+
const a = this.chartSizes.chartHeight, h = [], u = { width: 0, height: 0, left: 0, top: 0 }, x = (l) => l.reduce((c, o) => (c[o] = String(o), c), {});
|
|
152
152
|
if (e === "continuous") {
|
|
153
153
|
const l = this.colorScale, c = Q(l, i), o = D([c[0], c[c.length - 1]], [a, 0]), n = r.label ?? r.value;
|
|
154
154
|
h.push({
|
|
@@ -161,39 +161,39 @@ class Vt {
|
|
|
161
161
|
tickPositionScale: o
|
|
162
162
|
});
|
|
163
163
|
} else if (e === "discrete") {
|
|
164
|
-
const l = this.colorScale, c = r.label ?? r.value, o = l.domain(), n =
|
|
164
|
+
const l = this.colorScale, c = r.label ?? r.value, o = l.domain(), n = x(o);
|
|
165
165
|
h.push({ ...u, type: "discreteColor", id: "heatmapValue", title: c, scale: l, values: o, labels: n });
|
|
166
166
|
}
|
|
167
167
|
if (t.forEach((l) => {
|
|
168
168
|
const c = l.valueColumn.label ?? l.valueColumn.value;
|
|
169
169
|
if (l.type === "continuous") {
|
|
170
|
-
const o = this.annotationColorScales[l.id].scale, n = Q(o, i),
|
|
171
|
-
h.push({ ...u, type: "continuous", id: l.id, tickPositionScale:
|
|
170
|
+
const o = this.annotationColorScales[l.id].scale, n = Q(o, i), f = D([n[0], n[n.length - 1]], [a, 0]);
|
|
171
|
+
h.push({ ...u, type: "continuous", id: l.id, tickPositionScale: f, title: c, scale: o, values: n });
|
|
172
172
|
}
|
|
173
173
|
if (l.type === "discrete") {
|
|
174
|
-
const o = this.annotationColorScales[l.id].scale, n = o.domain(),
|
|
175
|
-
h.push({ ...u, type: "discreteColor", id: l.id, title: c, scale: o, values: n, labels:
|
|
174
|
+
const o = this.annotationColorScales[l.id].scale, n = o.domain(), f = x(n);
|
|
175
|
+
h.push({ ...u, type: "discreteColor", id: l.id, title: c, scale: o, values: n, labels: f });
|
|
176
176
|
}
|
|
177
177
|
}), !h.length) {
|
|
178
178
|
this.legend = { width: 0, height: 0, items: [] };
|
|
179
179
|
return;
|
|
180
180
|
}
|
|
181
|
-
const p = pt(h, this.chartSizes.chartHeight), d = p[p.length - 1],
|
|
181
|
+
const p = pt(h, this.chartSizes.chartHeight), d = p[p.length - 1], A = d.left + d.width + xt;
|
|
182
182
|
this.legend = {
|
|
183
|
-
width:
|
|
183
|
+
width: A,
|
|
184
184
|
height: a,
|
|
185
185
|
items: p
|
|
186
186
|
};
|
|
187
187
|
}
|
|
188
188
|
updateCaptionsSize(e, s, t, r) {
|
|
189
|
-
const i = new mt("bold 16px Manrope"), { xGroupKeys: a, yGroupKeys: h, xGroupLabels: u, yGroupLabels:
|
|
189
|
+
const i = new mt("bold 16px Manrope"), { xGroupKeys: a, yGroupKeys: h, xGroupLabels: u, yGroupLabels: x, xKeysByGroups: p, yKeysByGroups: d, xLabels: A, yLabels: l } = e.meta;
|
|
190
190
|
this.labelAngles = {
|
|
191
191
|
xAxisLabels: s.axisLabelsAngle,
|
|
192
192
|
yAxisLabels: t.axisLabelsAngle,
|
|
193
193
|
xGroupLabels: s.groupLabelsAngle,
|
|
194
194
|
yGroupLabels: t.groupLabelsAngle
|
|
195
195
|
};
|
|
196
|
-
const c = a.reduce((
|
|
196
|
+
const c = a.reduce((y, g) => Math.max(y, P(p[g], A, i)), 0), o = h.reduce((y, g) => Math.max(y, P(d[g], l, i)), 0), n = P(a, u, i), f = P(h, x, i), { xCaptionTail: S, yCaptionTail: T } = bt(
|
|
197
197
|
this.labelAngles,
|
|
198
198
|
r,
|
|
199
199
|
this.scales,
|
|
@@ -202,27 +202,27 @@ class Vt {
|
|
|
202
202
|
i
|
|
203
203
|
);
|
|
204
204
|
this.captionsSizes = {
|
|
205
|
-
xCaptionTail:
|
|
206
|
-
yCaptionTail:
|
|
207
|
-
xGroupCaptions:
|
|
208
|
-
yGroupCaptions:
|
|
209
|
-
xAxisCaptions:
|
|
210
|
-
yAxisCaptions:
|
|
205
|
+
xCaptionTail: S,
|
|
206
|
+
yCaptionTail: T,
|
|
207
|
+
xGroupCaptions: K(n, this.labelAngles.xGroupLabels),
|
|
208
|
+
yGroupCaptions: K(f, this.labelAngles.yGroupLabels),
|
|
209
|
+
xAxisCaptions: K(c, this.labelAngles.xAxisLabels),
|
|
210
|
+
yAxisCaptions: K(o, this.labelAngles.yAxisLabels)
|
|
211
211
|
};
|
|
212
212
|
}
|
|
213
|
-
updateChartDimensions(e, s, t, r, i, a, h, u,
|
|
214
|
-
const d = s.length,
|
|
215
|
-
this.columnsCount = i.nRows ? Math.ceil(d /
|
|
213
|
+
updateChartDimensions(e, s, t, r, i, a, h, u, x, p) {
|
|
214
|
+
const d = s.length, A = Math.min(i.nRows ?? d, d), l = Math.min(i.nCols ?? d, d);
|
|
215
|
+
this.columnsCount = i.nRows ? Math.ceil(d / A) : l, this.rowsCount = Math.ceil(d / this.columnsCount);
|
|
216
216
|
const { sharedX: c, sharedY: o } = i;
|
|
217
217
|
this.chartsDimensions = {};
|
|
218
|
-
let n = 0,
|
|
219
|
-
s.forEach((
|
|
220
|
-
const b = g % this.columnsCount + 1, C = dt(g, s.length, this.columnsCount, this.rowsCount), z = this.step.x[
|
|
218
|
+
let n = 0, f = 0;
|
|
219
|
+
s.forEach((y, g) => {
|
|
220
|
+
const b = g % this.columnsCount + 1, C = dt(g, s.length, this.columnsCount, this.rowsCount), z = this.step.x[y], w = this.step.y[y], v = yt(
|
|
221
221
|
a,
|
|
222
222
|
h,
|
|
223
223
|
this.captionsSizes,
|
|
224
224
|
u,
|
|
225
|
-
|
|
225
|
+
x,
|
|
226
226
|
p,
|
|
227
227
|
C,
|
|
228
228
|
c,
|
|
@@ -232,72 +232,72 @@ class Vt {
|
|
|
232
232
|
r,
|
|
233
233
|
z,
|
|
234
234
|
w
|
|
235
|
-
),
|
|
236
|
-
function
|
|
235
|
+
), N = Lt(u, C, c, o);
|
|
236
|
+
function M(I) {
|
|
237
237
|
return Math.max(
|
|
238
|
-
ft[
|
|
239
|
-
|
|
238
|
+
ft[I].reduce((O, k) => O + v[I][k], 0),
|
|
239
|
+
N[I],
|
|
240
240
|
e.innerOffset
|
|
241
241
|
);
|
|
242
242
|
}
|
|
243
|
-
const
|
|
244
|
-
left:
|
|
245
|
-
right:
|
|
246
|
-
top:
|
|
247
|
-
bottom:
|
|
243
|
+
const E = {
|
|
244
|
+
left: M("left"),
|
|
245
|
+
right: M("right"),
|
|
246
|
+
top: M("top"),
|
|
247
|
+
bottom: M("bottom")
|
|
248
248
|
};
|
|
249
|
-
|
|
250
|
-
const
|
|
251
|
-
this.chartsDimensions[
|
|
249
|
+
E.left < this.captionsSizes.xCaptionTail && (E.left = this.captionsSizes.xCaptionTail), E.bottom < this.captionsSizes.yCaptionTail && (E.bottom = this.captionsSizes.yCaptionTail);
|
|
250
|
+
const B = St(v, this.chartSizes.chartWidth, this.chartSizes.chartHeight), W = this.chartSizes.chartWidth + E.left + E.right, _ = this.chartSizes.chartHeight + E.top + E.bottom;
|
|
251
|
+
this.chartsDimensions[y] = {
|
|
252
252
|
left: n,
|
|
253
|
-
top:
|
|
253
|
+
top: f,
|
|
254
254
|
inner: { width: this.chartSizes.chartWidth, height: this.chartSizes.chartHeight },
|
|
255
|
-
outer: { width:
|
|
256
|
-
padding:
|
|
257
|
-
sideElementBBoxes:
|
|
255
|
+
outer: { width: W, height: _ },
|
|
256
|
+
padding: E,
|
|
257
|
+
sideElementBBoxes: B,
|
|
258
258
|
chartEdgeSides: C
|
|
259
|
-
}, n +=
|
|
259
|
+
}, n += W, b === this.columnsCount && (n = 0, f += _);
|
|
260
260
|
});
|
|
261
|
-
const
|
|
262
|
-
this.chartSizes.chartsWidth =
|
|
261
|
+
const S = s.slice(0, this.columnsCount).reduce((y, g) => y + this.chartsDimensions[g].outer.width, 0), T = s.filter((y, g) => g % this.columnsCount === 0).reduce((y, g) => y + this.chartsDimensions[g].outer.height, 0);
|
|
262
|
+
this.chartSizes.chartsWidth = S, this.chartSizes.chartsHeight = T;
|
|
263
263
|
}
|
|
264
264
|
updateChartsSizes(e, s, t, r) {
|
|
265
|
-
const { width: i, height: a, cellWidth: h, cellHeight: u } = e,
|
|
266
|
-
if (h && s.sharedX &&
|
|
267
|
-
const p = t.facets[
|
|
265
|
+
const { width: i, height: a, cellWidth: h, cellHeight: u } = e, x = t.meta.facetKeys[0];
|
|
266
|
+
if (h && s.sharedX && x) {
|
|
267
|
+
const p = t.facets[x].xKeys.length, d = t.meta.xGroupKeys.length;
|
|
268
268
|
this.chartSizes.chartWidth = p * h + r * (d - 1);
|
|
269
269
|
} else
|
|
270
270
|
this.chartSizes.chartWidth = i;
|
|
271
|
-
if (u && s.sharedY &&
|
|
272
|
-
const p = t.facets[
|
|
271
|
+
if (u && s.sharedY && x) {
|
|
272
|
+
const p = t.facets[x].yKeys.length, d = t.meta.yGroupKeys.length;
|
|
273
273
|
this.chartSizes.chartHeight = p * u + r * (d - 1);
|
|
274
274
|
} else
|
|
275
275
|
this.chartSizes.chartHeight = a;
|
|
276
276
|
}
|
|
277
277
|
// update scales for cell positions, x and y for each facet
|
|
278
|
-
updateScales(e, s, t, r, i, a, h, u,
|
|
279
|
-
const { width: d, height:
|
|
278
|
+
updateScales(e, s, t, r, i, a, h, u, x, p) {
|
|
279
|
+
const { width: d, height: A, cellWidth: l, cellHeight: c } = i, { meta: o, facets: n } = s, { sharedX: f, sharedY: S } = r, T = (g, b = {}) => g.sort(
|
|
280
280
|
(C, z) => a.sorting === "asc" ? (b[C] ?? C).localeCompare(b[z] ?? z, "en", { numeric: !0 }) : (b[z] ?? z).localeCompare(b[C] ?? C, "en", { numeric: !0 })
|
|
281
|
-
),
|
|
281
|
+
), y = (g, b = {}) => g.sort(
|
|
282
282
|
(C, z) => h.sorting === "asc" ? (b[C] ?? C).localeCompare(b[z] ?? z, "en", { numeric: !0 }) : (b[z] ?? z).localeCompare(b[C] ?? C, "en", { numeric: !0 })
|
|
283
283
|
);
|
|
284
284
|
e.forEach((g) => {
|
|
285
|
-
const b = n[g], C = p.xGroup ? o.xGroupKeys :
|
|
286
|
-
let
|
|
285
|
+
const b = n[g], C = p.xGroup ? o.xGroupKeys : T(o.xGroupKeys), z = p.yGroup ? o.yGroupKeys : y(o.yGroupKeys), { xKeysByGroups: w } = f ? o : b, { yKeysByGroups: v } = S ? o : b, N = C.map((G) => w[G].length), M = z.map((G) => v[G].length), E = N.reduce((G, H) => G + H, 0), B = M.reduce((G, H) => G + H, 0), W = f && l ? l : (d - (N.filter((G) => G > 0).length - 1) * t) / E, _ = S && c ? c : (A - (M.filter((G) => G > 0).length - 1) * t) / B, I = [], O = [];
|
|
286
|
+
let k = 0;
|
|
287
287
|
C.forEach((G) => {
|
|
288
|
-
const
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
}),
|
|
288
|
+
const H = u || p.x ? w[G] : T(w[G], o.xLabels);
|
|
289
|
+
O.push(...H), H.forEach(() => {
|
|
290
|
+
I.push(k), k += W;
|
|
291
|
+
}), H.length > 0 && (k += t);
|
|
292
292
|
});
|
|
293
293
|
const V = [], J = [];
|
|
294
294
|
let X = 0;
|
|
295
295
|
z.forEach((G) => {
|
|
296
|
-
const
|
|
297
|
-
J.push(...
|
|
298
|
-
V.push(X), X +=
|
|
299
|
-
}),
|
|
300
|
-
}), this.scales.x[g] =
|
|
296
|
+
const H = x || p.y ? v[G] : y(v[G], o.yLabels);
|
|
297
|
+
J.push(...H), H.forEach(() => {
|
|
298
|
+
V.push(X), X += _;
|
|
299
|
+
}), H.length > 0 && (X += t);
|
|
300
|
+
}), this.scales.x[g] = R().domain(O).range(I), this.scales.y[g] = R().domain(J).range(V), this.step.x[g] = W, this.step.y[g] = _;
|
|
301
301
|
});
|
|
302
302
|
}
|
|
303
303
|
updateAesScale(e, s, t, r, i, a, h) {
|
|
@@ -305,12 +305,12 @@ class Vt {
|
|
|
305
305
|
t.valueColors ? this.colorScale = D().domain(t.valuesByColors ?? ot(h, t.valueColors.length, s)).range(t.valueColors) : t.colorsList && (this.colorScale = D().domain(ot(h, t.colorsList.length, s)).range(t.colorsList));
|
|
306
306
|
else if (t.colorsMap) {
|
|
307
307
|
const p = Object.entries(t.colorsMap);
|
|
308
|
-
this.colorScale =
|
|
308
|
+
this.colorScale = R().domain(p.map((d) => d[0])).range(p.map((d) => d[1])).unknown("#ccc");
|
|
309
309
|
} else t.colorsList && (this.colorScale = $(t.colorsList, a.map(String)));
|
|
310
|
-
const { xDataByKeys: u, yDataByKeys:
|
|
310
|
+
const { xDataByKeys: u, yDataByKeys: x } = i.meta;
|
|
311
311
|
r.forEach((p) => {
|
|
312
|
-
const { colors: d, type:
|
|
313
|
-
if (
|
|
312
|
+
const { colors: d, type: A, axis: l, valueColumn: c } = p, o = (l === "x" ? u : x)[c.value];
|
|
313
|
+
if (A === "discrete") {
|
|
314
314
|
const n = rt.uniq(Object.values(o).map(String)).sort();
|
|
315
315
|
this.annotationColorScales[p.id] = {
|
|
316
316
|
type: "discrete",
|
|
@@ -320,10 +320,10 @@ class Vt {
|
|
|
320
320
|
const n = Object.values(o).map(Number);
|
|
321
321
|
if (!n.length)
|
|
322
322
|
return;
|
|
323
|
-
const [
|
|
323
|
+
const [f = n[0], S = n[0]] = zt(n);
|
|
324
324
|
this.annotationColorScales[p.id] = {
|
|
325
325
|
type: "continuous",
|
|
326
|
-
scale: Ct(d,
|
|
326
|
+
scale: Ct(d, f, S, 0, 0.5, 1)
|
|
327
327
|
};
|
|
328
328
|
}
|
|
329
329
|
});
|
|
@@ -331,33 +331,33 @@ class Vt {
|
|
|
331
331
|
updateDendrogram(e, s, t, r, i, a, h) {
|
|
332
332
|
e.forEach((u) => {
|
|
333
333
|
this.dendrograms[u] = { x: { treesByGroupKey: {}, data: a }, y: { treesByGroupKey: {}, data: h } };
|
|
334
|
-
const { xKeysByGroups:
|
|
334
|
+
const { xKeysByGroups: x, yKeysByGroups: p } = r[u], { hierarchyByGroupX: d, hierarchyByGroupY: A } = i[u];
|
|
335
335
|
if (a) {
|
|
336
336
|
const l = s.reduce((c, o) => {
|
|
337
337
|
var n;
|
|
338
338
|
return Math.max(c, (n = d[o]) == null ? void 0 : n.data.height);
|
|
339
339
|
}, 0);
|
|
340
340
|
this.dendrograms[u].x.treesByGroupKey = s.reduce((c, o) => {
|
|
341
|
-
const n = d[o],
|
|
342
|
-
tt().separation(() => 1).size([
|
|
341
|
+
const n = d[o], f = x[o];
|
|
342
|
+
tt().separation(() => 1).size([f.length * this.step.x[u], a.size])(
|
|
343
343
|
n
|
|
344
344
|
);
|
|
345
|
-
const
|
|
346
|
-
return st(
|
|
345
|
+
const S = n, T = D().domain(a.position === "top" ? [0, l] : [l, 0]).range([a.size, 0]);
|
|
346
|
+
return st(S, T, "y"), et(S, this.scales.x[u](f[0]), "x"), c[o] = S, c;
|
|
347
347
|
}, {}), this.dendrograms[u].x.data = a;
|
|
348
348
|
}
|
|
349
349
|
if (h) {
|
|
350
350
|
const l = t.reduce((c, o) => {
|
|
351
351
|
var n;
|
|
352
|
-
return Math.max(c, (n =
|
|
352
|
+
return Math.max(c, (n = A[o]) == null ? void 0 : n.data.height);
|
|
353
353
|
}, 0);
|
|
354
354
|
this.dendrograms[u].y.treesByGroupKey = t.reduce((c, o) => {
|
|
355
|
-
const n =
|
|
356
|
-
tt().separation(() => 1).size([
|
|
355
|
+
const n = A[o], f = p[o];
|
|
356
|
+
tt().separation(() => 1).size([f.length * this.step.y[u], h.size])(
|
|
357
357
|
n
|
|
358
358
|
);
|
|
359
|
-
const
|
|
360
|
-
return et(
|
|
359
|
+
const S = n, T = D().domain(h.position === "left" ? [0, l] : [l, 0]).range([h.size, 0]);
|
|
360
|
+
return et(S, this.scales.y[u](f[0]), "x", "y"), st(S, T, "x"), c[o] = S, c;
|
|
361
361
|
}, {}), this.dendrograms[u].y.data = h;
|
|
362
362
|
}
|
|
363
363
|
});
|
|
@@ -368,7 +368,7 @@ class Vt {
|
|
|
368
368
|
const s = Object.keys(e);
|
|
369
369
|
this.dendrogramAesScales = s.reduce((t, r) => {
|
|
370
370
|
const i = e[r], a = Object.keys(i);
|
|
371
|
-
return t[r] =
|
|
371
|
+
return t[r] = R().domain(a).range(
|
|
372
372
|
a.map((h) => ({
|
|
373
373
|
...Z,
|
|
374
374
|
...i[h]
|
|
@@ -376,29 +376,29 @@ class Vt {
|
|
|
376
376
|
).unknown(Z), t;
|
|
377
377
|
}, {});
|
|
378
378
|
}
|
|
379
|
-
render(e, s, t, r, i, a, h, u,
|
|
380
|
-
var
|
|
381
|
-
const { meta:
|
|
382
|
-
this.updateChartsSizes(
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
S,
|
|
379
|
+
render(e, s, t, r, i, a, h, u, x, p, d, A, l, c, o, n, f) {
|
|
380
|
+
var B;
|
|
381
|
+
const { meta: S, facets: T } = a, { facetKeys: y, xGroupKeys: g, yGroupKeys: b, valueExtent: C } = S, { xAxis: z, yAxis: w, title: v, size: N, valueType: M } = t;
|
|
382
|
+
this.updateChartsSizes(N, r, a, i.groupGap), this.updateAesScale(M, C, i, h, a, l, c), this.updateScales(y, a, i.groupGap, r, N, t.xAxis, t.yAxis, x, p, n), this.updateCaptionsSize(a, z, w, r), this.updateChartDimensions(
|
|
383
|
+
N,
|
|
384
|
+
y,
|
|
386
385
|
g,
|
|
386
|
+
b,
|
|
387
387
|
r,
|
|
388
|
-
C,
|
|
389
388
|
z,
|
|
389
|
+
w,
|
|
390
390
|
h,
|
|
391
|
-
|
|
391
|
+
x,
|
|
392
392
|
p
|
|
393
|
-
), this.updateLegendSize(
|
|
394
|
-
const
|
|
393
|
+
), this.updateLegendSize(M, t.legend, h, u, C), this.updateMargins(v, N), this.updateDendrogram(y, g, b, T, d, x, p), this.updateDendrogramAesScales(A);
|
|
394
|
+
const E = /* @__PURE__ */ j.jsx(ct, { dataFrame: e, children: /* @__PURE__ */ j.jsx(
|
|
395
395
|
gt,
|
|
396
396
|
{
|
|
397
397
|
aes: i,
|
|
398
398
|
annotations: h,
|
|
399
399
|
annotationColorScales: this.annotationColorScales,
|
|
400
400
|
captionsSizes: this.captionsSizes,
|
|
401
|
-
cellsMeta:
|
|
401
|
+
cellsMeta: S,
|
|
402
402
|
columnsCount: this.columnsCount,
|
|
403
403
|
chartsDimensions: this.chartsDimensions,
|
|
404
404
|
chartSettings: t,
|
|
@@ -406,25 +406,26 @@ class Vt {
|
|
|
406
406
|
colorScale: this.colorScale,
|
|
407
407
|
dendrogramAesScales: this.dendrogramAesScales,
|
|
408
408
|
dendrograms: this.dendrograms,
|
|
409
|
-
facetKeys:
|
|
409
|
+
facetKeys: y,
|
|
410
410
|
facetSettings: r,
|
|
411
|
-
groupedCells:
|
|
411
|
+
groupedCells: T,
|
|
412
412
|
labelAngles: this.labelAngles,
|
|
413
413
|
legend: this.legend,
|
|
414
414
|
margins: this.margins,
|
|
415
415
|
scales: this.scales,
|
|
416
416
|
settingsId: s,
|
|
417
417
|
step: this.step,
|
|
418
|
-
xGroupKeys:
|
|
419
|
-
yGroupKeys:
|
|
420
|
-
onTooltipHintSwitch: o
|
|
418
|
+
xGroupKeys: g,
|
|
419
|
+
yGroupKeys: b,
|
|
420
|
+
onTooltipHintSwitch: o,
|
|
421
|
+
cellsRenderingMode: f
|
|
421
422
|
}
|
|
422
423
|
) });
|
|
423
|
-
this.component =
|
|
424
|
+
this.component = E, (B = this.reactRoot) == null || B.render(E);
|
|
424
425
|
}
|
|
425
426
|
renderError(e) {
|
|
426
427
|
var s;
|
|
427
|
-
(s = this.reactRoot) == null || s.render(/* @__PURE__ */
|
|
428
|
+
(s = this.reactRoot) == null || s.render(/* @__PURE__ */ j.jsx(ht, { message: e }));
|
|
428
429
|
}
|
|
429
430
|
}
|
|
430
431
|
export {
|