@milaboratories/graph-maker 1.1.142 → 1.1.144

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.
Files changed (147) hide show
  1. package/dist/GraphMaker/components/ReorderForm.vue.d.ts +15 -0
  2. package/dist/GraphMaker/components/ReorderForm.vue.d.ts.map +1 -0
  3. package/dist/GraphMaker/components/ReorderForm.vue.js +43 -0
  4. package/dist/GraphMaker/components/ReorderForm.vue.js.map +1 -0
  5. package/dist/GraphMaker/components/ReorderForm.vue2.js +5 -0
  6. package/dist/GraphMaker/components/ReorderForm.vue2.js.map +1 -0
  7. package/dist/GraphMaker/constantsCommon.d.ts +15 -0
  8. package/dist/GraphMaker/constantsCommon.d.ts.map +1 -1
  9. package/dist/GraphMaker/constantsCommon.js +11 -8
  10. package/dist/GraphMaker/constantsCommon.js.map +1 -1
  11. package/dist/GraphMaker/forms/AxesSettingsForm/DiscreteAxesSettingsForm.vue.js.map +1 -1
  12. package/dist/GraphMaker/forms/AxesSettingsForm/ScatterplotAxesSettingsForm.vue.d.ts.map +1 -1
  13. package/dist/GraphMaker/forms/AxesSettingsForm/ScatterplotAxesSettingsForm.vue.js +305 -172
  14. package/dist/GraphMaker/forms/AxesSettingsForm/ScatterplotAxesSettingsForm.vue.js.map +1 -1
  15. package/dist/GraphMaker/index.vue.d.ts.map +1 -1
  16. package/dist/GraphMaker/index.vue.js +33 -33
  17. package/dist/GraphMaker/index.vue.js.map +1 -1
  18. package/dist/GraphMaker/utils/createChartSettingsForRender/composeBubbleSettings.d.ts +3 -3
  19. package/dist/GraphMaker/utils/createChartSettingsForRender/composeBubbleSettings.d.ts.map +1 -1
  20. package/dist/GraphMaker/utils/createChartSettingsForRender/composeDendroSettings.d.ts +9 -9
  21. package/dist/GraphMaker/utils/createChartSettingsForRender/composeDendroSettings.d.ts.map +1 -1
  22. package/dist/GraphMaker/utils/createChartSettingsForRender/composeDiscreteSettings.d.ts +5 -11
  23. package/dist/GraphMaker/utils/createChartSettingsForRender/composeDiscreteSettings.d.ts.map +1 -1
  24. package/dist/GraphMaker/utils/createChartSettingsForRender/composeHeatmapSettings.d.ts +3 -3
  25. package/dist/GraphMaker/utils/createChartSettingsForRender/composeHeatmapSettings.d.ts.map +1 -1
  26. package/dist/GraphMaker/utils/createChartSettingsForRender/composeHistogramSettings.d.ts +1 -1
  27. package/dist/GraphMaker/utils/createChartSettingsForRender/composeScatterplotSettings.d.ts +31 -5
  28. package/dist/GraphMaker/utils/createChartSettingsForRender/composeScatterplotSettings.d.ts.map +1 -1
  29. package/dist/GraphMaker/utils/createChartSettingsForRender/composeScatterplotSettings.js +56 -53
  30. package/dist/GraphMaker/utils/createChartSettingsForRender/composeScatterplotSettings.js.map +1 -1
  31. package/dist/GraphMaker/utils/createChartSettingsForRender/composeScatterplotUmapSettings.d.ts +1 -7
  32. package/dist/GraphMaker/utils/createChartSettingsForRender/composeScatterplotUmapSettings.d.ts.map +1 -1
  33. package/dist/GraphMaker/utils/createChartSettingsForRender/composeScatterplotUmapSettings.js +13 -13
  34. package/dist/GraphMaker/utils/createChartSettingsForRender/composeScatterplotUmapSettings.js.map +1 -1
  35. package/dist/GraphMaker/utils/createChartSettingsForRender/getAxesDataFromForms.d.ts +6 -4
  36. package/dist/GraphMaker/utils/createChartSettingsForRender/getAxesDataFromForms.d.ts.map +1 -1
  37. package/dist/GraphMaker/utils/createChartSettingsForRender/getAxesDataFromForms.js +42 -13
  38. package/dist/GraphMaker/utils/createChartSettingsForRender/getAxesDataFromForms.js.map +1 -1
  39. package/dist/GraphMaker/utils/loadUniqueValuesToSave.d.ts.map +1 -1
  40. package/dist/GraphMaker/utils/loadUniqueValuesToSave.js +48 -44
  41. package/dist/GraphMaker/utils/loadUniqueValuesToSave.js.map +1 -1
  42. package/dist/node_modules/@milaboratories/miplots4/dist/{discrete/components → common}/BandAxis.js +3 -3
  43. package/dist/node_modules/@milaboratories/miplots4/dist/common/BandAxis.js.map +1 -0
  44. package/dist/node_modules/@milaboratories/miplots4/dist/common/ContinuousGrid.js.map +1 -1
  45. package/dist/node_modules/@milaboratories/miplots4/dist/dendro/ChartRenderer.js +14 -14
  46. package/dist/node_modules/@milaboratories/miplots4/dist/discrete/ChartRenderer.js +197 -270
  47. package/dist/node_modules/@milaboratories/miplots4/dist/discrete/ChartRenderer.js.map +1 -1
  48. package/dist/node_modules/@milaboratories/miplots4/dist/discrete/DiscreteSettingsImpl.js +9 -9
  49. package/dist/node_modules/@milaboratories/miplots4/dist/discrete/components/Chart.js +1 -1
  50. package/dist/node_modules/@milaboratories/miplots4/dist/discrete/components/Chart.js.map +1 -1
  51. package/dist/node_modules/@milaboratories/miplots4/dist/discrete/components/Grid.js.map +1 -1
  52. package/dist/node_modules/@milaboratories/miplots4/dist/discrete/index.js +11 -11
  53. package/dist/node_modules/@milaboratories/miplots4/dist/histogram/ChartRenderer.js +1 -1
  54. package/dist/node_modules/@milaboratories/miplots4/dist/node_modules/d3-scale/src/band.js +44 -34
  55. package/dist/node_modules/@milaboratories/miplots4/dist/node_modules/d3-scale/src/band.js.map +1 -1
  56. package/dist/node_modules/@milaboratories/miplots4/dist/scatterplot/ChartRenderer.js +272 -195
  57. package/dist/node_modules/@milaboratories/miplots4/dist/scatterplot/ChartRenderer.js.map +1 -1
  58. package/dist/node_modules/@milaboratories/miplots4/dist/scatterplot/ScatterplotSettingsImpl.js +23 -23
  59. package/dist/node_modules/@milaboratories/miplots4/dist/scatterplot/ScatterplotSettingsImpl.js.map +1 -1
  60. package/dist/node_modules/@milaboratories/miplots4/dist/scatterplot/components/Chart.js +54 -50
  61. package/dist/node_modules/@milaboratories/miplots4/dist/scatterplot/components/Chart.js.map +1 -1
  62. package/dist/node_modules/@milaboratories/miplots4/dist/scatterplot/components/ChartAxis.js +32 -28
  63. package/dist/node_modules/@milaboratories/miplots4/dist/scatterplot/components/ChartAxis.js.map +1 -1
  64. package/dist/node_modules/@milaboratories/miplots4/dist/scatterplot/components/ChartLayersData.js.map +1 -1
  65. package/dist/node_modules/@milaboratories/miplots4/dist/scatterplot/components/ChartTooltip.js.map +1 -1
  66. package/dist/node_modules/@milaboratories/miplots4/dist/scatterplot/components/ChartTrendsData.js +29 -26
  67. package/dist/node_modules/@milaboratories/miplots4/dist/scatterplot/components/ChartTrendsData.js.map +1 -1
  68. package/dist/node_modules/@milaboratories/miplots4/dist/scatterplot/components/ChartsGroup.js +44 -41
  69. package/dist/node_modules/@milaboratories/miplots4/dist/scatterplot/components/ChartsGroup.js.map +1 -1
  70. package/dist/node_modules/@milaboratories/miplots4/dist/scatterplot/components/Grid.js +31 -27
  71. package/dist/node_modules/@milaboratories/miplots4/dist/scatterplot/components/Grid.js.map +1 -1
  72. package/dist/node_modules/@milaboratories/miplots4/dist/scatterplot/dots.js.map +1 -1
  73. package/dist/node_modules/@milaboratories/miplots4/dist/scatterplot/getLayersData.js +29 -18
  74. package/dist/node_modules/@milaboratories/miplots4/dist/scatterplot/getLayersData.js.map +1 -1
  75. package/dist/node_modules/@milaboratories/miplots4/dist/scatterplot/index.js +71 -57
  76. package/dist/node_modules/@milaboratories/miplots4/dist/scatterplot/index.js.map +1 -1
  77. package/dist/node_modules/@milaboratories/miplots4/dist/scatterplot/linearRegression.js.map +1 -1
  78. package/dist/node_modules/@milaboratories/miplots4/dist/scatterplot/utils/isNumericScale.js +11 -0
  79. package/dist/node_modules/@milaboratories/miplots4/dist/scatterplot/utils/isNumericScale.js.map +1 -0
  80. package/dist/node_modules/@milaboratories/miplots4/dist/scatterplot-umap/ChartRenderer.js +10 -10
  81. package/dist/node_modules/@milaboratories/miplots4/dist/scatterplot-umap/ChartRenderer.js.map +1 -1
  82. package/dist/node_modules/@milaboratories/miplots4/dist/scatterplot-umap/SettingsImpl.js.map +1 -1
  83. package/dist/node_modules/@milaboratories/miplots4/dist/scatterplot-umap/components/LowerSVG.js +6 -6
  84. package/dist/node_modules/@milaboratories/miplots4/dist/scatterplot-umap/components/LowerSVG.js.map +1 -1
  85. package/dist/node_modules/@milaboratories/miplots4/dist/types/common.js +35 -25
  86. package/dist/node_modules/@milaboratories/miplots4/dist/types/common.js.map +1 -1
  87. package/dist/node_modules/@milaboratories/miplots4/dist/types/dendro.js +3 -3
  88. package/dist/node_modules/@milaboratories/miplots4/dist/types/discrete.js +37 -37
  89. package/dist/node_modules/@milaboratories/miplots4/dist/types/discrete.js.map +1 -1
  90. package/dist/node_modules/@milaboratories/miplots4/dist/types/heatmap.js +6 -6
  91. package/dist/node_modules/@milaboratories/miplots4/dist/types/scatterplot-umap.js +7 -7
  92. package/dist/node_modules/@milaboratories/miplots4/dist/types/scatterplot-umap.js.map +1 -1
  93. package/dist/node_modules/@milaboratories/miplots4/dist/utils/createMultilineDiscreteLabels.js +32 -0
  94. package/dist/node_modules/@milaboratories/miplots4/dist/utils/createMultilineDiscreteLabels.js.map +1 -0
  95. package/dist/node_modules/@milaboratories/miplots4/dist/utils/getFacetRowsColumns.js +18 -0
  96. package/dist/node_modules/@milaboratories/miplots4/dist/utils/getFacetRowsColumns.js.map +1 -0
  97. package/dist/node_modules/@milaboratories/miplots4/dist/utils/measureMultilineDiscreteLabels.js +63 -0
  98. package/dist/node_modules/@milaboratories/miplots4/dist/utils/measureMultilineDiscreteLabels.js.map +1 -0
  99. package/dist/node_modules/@milaboratories/miplots4/dist/{discrete/utils → utils}/splitTextByWidth.js +1 -1
  100. package/dist/node_modules/@milaboratories/miplots4/dist/utils/splitTextByWidth.js.map +1 -0
  101. package/dist/node_modules/@milaboratories/pf-plots/dist/controllers/ComponentController.js +39 -32
  102. package/dist/node_modules/@milaboratories/pf-plots/dist/controllers/ComponentController.js.map +1 -1
  103. package/dist/node_modules/@milaboratories/pf-plots/dist/controllers/ControllerBase.js +68 -62
  104. package/dist/node_modules/@milaboratories/pf-plots/dist/controllers/ControllerBase.js.map +1 -1
  105. package/dist/node_modules/@milaboratories/pf-plots/dist/controllers/controllersByChartType/dendro.js +5 -5
  106. package/dist/node_modules/@milaboratories/pf-plots/dist/controllers/controllersByChartType/histogram.js +8 -8
  107. package/dist/node_modules/@milaboratories/pf-plots/dist/controllers/controllersByChartType/scatterplot-umap.js +3 -3
  108. package/dist/node_modules/@milaboratories/pf-plots/dist/controllers/controllersByChartType/scatterplot.js +8 -8
  109. package/dist/node_modules/@milaboratories/pf-plots/dist/controllers/controllersByChartType/scatterplot.js.map +1 -1
  110. package/dist/node_modules/@milaboratories/pf-plots/dist/index.js +12 -9
  111. package/dist/node_modules/@milaboratories/pf-plots/dist/index.js.map +1 -1
  112. package/dist/node_modules/@milaboratories/pf-plots/dist/node_modules/@milaboratories/pl-error-like/dist/{index.js → error_like_shape.js} +1 -1
  113. package/dist/node_modules/@milaboratories/pf-plots/dist/node_modules/@milaboratories/pl-error-like/dist/error_like_shape.js.map +1 -0
  114. package/dist/node_modules/@milaboratories/pf-plots/dist/node_modules/@milaboratories/pl-model-common/dist/drivers/blob.js +8 -0
  115. package/dist/node_modules/@milaboratories/pf-plots/dist/node_modules/@milaboratories/pl-model-common/dist/drivers/blob.js.map +1 -0
  116. package/dist/node_modules/@milaboratories/pf-plots/dist/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/data_types.js +63 -0
  117. package/dist/node_modules/@milaboratories/pf-plots/dist/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/data_types.js.map +1 -0
  118. package/dist/node_modules/@milaboratories/pf-plots/dist/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/linker_columns.js +152 -0
  119. package/dist/node_modules/@milaboratories/pf-plots/dist/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/linker_columns.js.map +1 -0
  120. package/dist/node_modules/@milaboratories/pf-plots/dist/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/spec/spec.js +189 -0
  121. package/dist/node_modules/@milaboratories/pf-plots/dist/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/spec/spec.js.map +1 -0
  122. package/dist/node_modules/@milaboratories/pf-plots/dist/node_modules/@milaboratories/pl-model-common/dist/errors.js +18 -0
  123. package/dist/node_modules/@milaboratories/pf-plots/dist/node_modules/@milaboratories/pl-model-common/dist/errors.js.map +1 -0
  124. package/dist/node_modules/@milaboratories/pf-plots/dist/node_modules/@milaboratories/pl-model-common/dist/json.js +12 -0
  125. package/dist/node_modules/@milaboratories/pf-plots/dist/node_modules/@milaboratories/pl-model-common/dist/json.js.map +1 -0
  126. package/dist/node_modules/@milaboratories/pf-plots/dist/node_modules/@milaboratories/pl-model-common/dist/plid.js +7 -0
  127. package/dist/node_modules/@milaboratories/pf-plots/dist/node_modules/@milaboratories/pl-model-common/dist/plid.js.map +1 -0
  128. package/dist/node_modules/@milaboratories/pf-plots/dist/node_modules/@milaboratories/pl-model-common/dist/ref.js +8 -0
  129. package/dist/node_modules/@milaboratories/pf-plots/dist/node_modules/@milaboratories/pl-model-common/dist/ref.js.map +1 -0
  130. package/dist/node_modules/@milaboratories/pf-plots/dist/node_modules/@platforma-sdk/model/dist/components/PlDataTable.js +13 -0
  131. package/dist/node_modules/@milaboratories/pf-plots/dist/node_modules/@platforma-sdk/model/dist/components/PlDataTable.js.map +1 -0
  132. package/dist/node_modules/@milaboratories/pf-plots/dist/node_modules/@platforma-sdk/model/dist/render/util/label.js +89 -0
  133. package/dist/node_modules/@milaboratories/pf-plots/dist/node_modules/@platforma-sdk/model/dist/render/util/label.js.map +1 -0
  134. package/dist/node_modules/@milaboratories/pf-plots/dist/pframe/ColumnsProvider.js +50 -45
  135. package/dist/node_modules/@milaboratories/pf-plots/dist/pframe/ColumnsProvider.js.map +1 -1
  136. package/dist/node_modules/@milaboratories/pf-plots/dist/utils.js +54 -50
  137. package/dist/node_modules/@milaboratories/pf-plots/dist/utils.js.map +1 -1
  138. package/package.json +4 -4
  139. package/dist/node_modules/@milaboratories/miplots4/dist/discrete/components/BandAxis.js.map +0 -1
  140. package/dist/node_modules/@milaboratories/miplots4/dist/discrete/utils/splitTextByWidth.js.map +0 -1
  141. package/dist/node_modules/@milaboratories/miplots4/dist/scatterplot/components/Axis.js +0 -59
  142. package/dist/node_modules/@milaboratories/miplots4/dist/scatterplot/components/Axis.js.map +0 -1
  143. package/dist/node_modules/@milaboratories/pf-plots/dist/node_modules/@milaboratories/pl-error-like/dist/index.js.map +0 -1
  144. package/dist/node_modules/@milaboratories/pf-plots/dist/node_modules/@milaboratories/pl-model-common/dist/index.js +0 -979
  145. package/dist/node_modules/@milaboratories/pf-plots/dist/node_modules/@milaboratories/pl-model-common/dist/index.js.map +0 -1
  146. package/dist/node_modules/@milaboratories/pf-plots/dist/node_modules/@platforma-sdk/model/dist/index.js +0 -1599
  147. package/dist/node_modules/@milaboratories/pf-plots/dist/node_modules/@platforma-sdk/model/dist/index.js.map +0 -1
@@ -1,373 +1,300 @@
1
- import { j as A } from "../node_modules/react/jsx-runtime.js";
2
- import j from "../node_modules/lodash/lodash.js";
3
- import { createRoot as G } from "../node_modules/react-dom/client.js";
4
- import { Error as Y } from "../common/Error.js";
5
- import { DataFrameProvider as U } from "../common/useDataFrame.js";
6
- import { DEFAULT_HEIGHT as v, DEFAULT_WIDTH as L, TITLE_LINE_HEIGHT as B, TITLE_MARGIN as K } from "../constants.js";
7
- import { DEFAULT_COMMON_AES as _, DEFAULT_TICKS_SIZE as W } from "../scatterplot/constants.js";
8
- import { arrangeLegendParts as V } from "../utils/arrangeLegendParts.js";
9
- import { TextMeasurer as Z } from "../utils/TextMeasurer/TextMeasurer.js";
10
- import { ChartsGroup as q } from "./components/ChartsGroup.js";
11
- import { DEFAULT_AES as H, CAPTION_LINE_HEIGHT as N, LEGEND_OFFSET as J, TICK_OFFSET as k, TITLE_LINE as D, MIN_PADDING as F, FACET_TITLE_OFFSET as Q, FACET_TITLE_LINE as tt } from "./constants.js";
12
- import { getChartStatsPadding as O } from "./utils/getChartStatsPadding.js";
13
- import { splitTextByWidth as I } from "./utils/splitTextByWidth.js";
1
+ import { j as L } from "../node_modules/react/jsx-runtime.js";
2
+ import O from "../node_modules/lodash/lodash.js";
3
+ import { createRoot as j } from "../node_modules/react-dom/client.js";
4
+ import { Error as B } from "../common/Error.js";
5
+ import { DataFrameProvider as G } from "../common/useDataFrame.js";
6
+ import { DEFAULT_HEIGHT as z, DEFAULT_WIDTH as w, TITLE_LINE_HEIGHT as X, TITLE_MARGIN as Y } from "../constants.js";
7
+ import { DEFAULT_COMMON_AES as F, DEFAULT_TICKS_SIZE as I } from "../scatterplot/constants.js";
8
+ import { arrangeLegendParts as U } from "../utils/arrangeLegendParts.js";
9
+ import { TextMeasurer as K } from "../utils/TextMeasurer/TextMeasurer.js";
10
+ import { ChartsGroup as V } from "./components/ChartsGroup.js";
11
+ import { DEFAULT_AES as _, LEGEND_OFFSET as Z, TICK_OFFSET as P, TITLE_LINE as W, MIN_PADDING as N, FACET_TITLE_OFFSET as q, FACET_TITLE_LINE as J } from "./constants.js";
12
+ import { getChartStatsPadding as H } from "./utils/getChartStatsPadding.js";
13
+ import { splitTextByWidth as $ } from "../utils/splitTextByWidth.js";
14
+ import { createMultilineDiscreteLabels as Q } from "../utils/createMultilineDiscreteLabels.js";
15
+ import { measureMultilineDiscreteLabels as tt } from "../utils/measureMultilineDiscreteLabels.js";
16
+ import { getFacetRows as st } from "../utils/getFacetRowsColumns.js";
14
17
  import R from "../node_modules/d3-scale/src/ordinal.js";
15
- import X from "../node_modules/d3-scale/src/linear.js";
16
- import z from "../node_modules/d3-scale/src/band.js";
17
- import et from "../node_modules/d3-scale/src/log.js";
18
- var st = Object.defineProperty, it = (u, e, t) => e in u ? st(u, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : u[e] = t, C = (u, e, t) => it(u, typeof e != "symbol" ? e + "" : e, t);
19
- function at(u, e, t, s) {
20
- const i = [];
21
- return u % t === t - 1 && i.push("right"), u % t === 0 && i.push("left"), u < t && i.push("top"), (Math.ceil((u + 1) / t) === s || Math.ceil((u + 1) / t) === s - 1 && u % t > (e - 1) % t) && i.push("bottom"), i;
18
+ import k from "../node_modules/d3-scale/src/linear.js";
19
+ import D from "../node_modules/d3-scale/src/band.js";
20
+ import it from "../node_modules/d3-scale/src/log.js";
21
+ var et = Object.defineProperty, at = (d, s, t) => s in d ? et(d, s, { enumerable: !0, configurable: !0, writable: !0, value: t }) : d[s] = t, S = (d, s, t) => at(d, typeof s != "symbol" ? s + "" : s, t);
22
+ function nt(d, s, t, i) {
23
+ const e = [];
24
+ return d % t === t - 1 && e.push("right"), d % t === 0 && e.push("left"), d < t && e.push("top"), (Math.ceil((d + 1) / t) === i || Math.ceil((d + 1) / t) === i - 1 && d % t > (s - 1) % t) && e.push("bottom"), e;
22
25
  }
23
- function nt(u, e, t, s, i, r, p, h, l, c, f) {
24
- const g = u === "vertical", d = p.includes("left") || g && !(h != null && h.sharedY) || !g && !(h != null && h.sharedX), T = p.includes("left") && t.title !== "", y = p.includes("bottom") || g && !(h != null && h.sharedX) || !g && !(h != null && h.sharedY), a = p.includes("bottom") && e.title !== "", n = s.yAxisCaptionsWidth, o = (t.showTicks ? W : 0) + (t.hiddenLabels ? 0 : k), m = T ? D : 0, x = s.xAxisCaptionsWidthByRows[g ? l : c], S = (e.showTicks ? W : 0) + (e.hiddenLabels ? 0 : k), w = a ? D : 0, E = g ? n + o + m : x + S + w, P = g ? S + x + w : o + 2 * D, b = Math.max(...i.map((M) => r[M].length));
26
+ function ot(d, s, t, i, e, n, r, a, h, u, p) {
27
+ const c = d === "vertical", m = r.includes("left") || c && !(a != null && a.sharedY) || !c && !(a != null && a.sharedX), o = r.includes("left") && t.title !== "", T = r.includes("bottom") || c && !(a != null && a.sharedX) || !c && !(a != null && a.sharedY), l = r.includes("bottom") && s.title !== "", f = i.leftAxisCaptionsWidth, g = (t.showTicks ? I : 0) + (t.hiddenLabels ? 0 : P), C = o ? W : 0, x = c ? i.bottomAxisCaptionsWidthByRows[h] : i.leftAxisCaptionsWidthByColumns[u], y = (s.showTicks ? I : 0) + (s.hiddenLabels ? 0 : P), A = c && l || !c && o ? W : 0, E = c ? f + g + C : x + y + A, v = c ? y + x + A : g + 2 * W, b = Math.max(...e.map((M) => n[M].length));
25
28
  return {
26
- left: d ? E : F,
27
- top: b === 0 ? 0 : Q * 2 + b * tt,
28
- bottom: y ? P : F,
29
- right: f ? 0 : F
29
+ left: m ? E : N,
30
+ top: b === 0 ? 0 : q * 2 + b * J,
31
+ bottom: T ? v : N,
32
+ right: p ? 0 : N
30
33
  };
31
34
  }
32
- function ht(u, e, t) {
33
- const s = new Array(t).fill(null).map(() => []);
34
- for (let i = 0; i < t; i++)
35
- for (let r = 0; r < e; r++)
36
- r * t + i < u.length && s[i].push(u[r * t + i]);
37
- return s;
35
+ function rt(d, s) {
36
+ const t = Math.floor(d / s), i = d - t * s;
37
+ return [t, i];
38
38
  }
39
- function $(u, e, t) {
40
- const s = [];
41
- for (let i = 0; i < e; i++)
42
- s.push(u.slice(i * t, i * t + t));
43
- return s;
39
+ function ht(d) {
40
+ return typeof d == "object" && "type" in d;
44
41
  }
45
- function rt(u, e) {
46
- const t = Math.floor(u / e), s = u - t * e;
47
- return [t, s];
48
- }
49
- function ot(u) {
50
- return typeof u == "object" && "type" in u;
51
- }
52
- class wt {
42
+ class Dt {
53
43
  constructor() {
54
- C(this, "reactRoot", null), C(this, "parentNode", null), C(this, "rootNode", null), C(this, "component", /* @__PURE__ */ A.jsx(A.Fragment, {})), C(this, "chartsDimensions", {}), C(this, "chartSizes", {
55
- chartWidth: L,
44
+ S(this, "reactRoot", null), S(this, "parentNode", null), S(this, "rootNode", null), S(this, "component", /* @__PURE__ */ L.jsx(L.Fragment, {})), S(this, "chartsDimensions", {}), S(this, "chartSizes", {
45
+ chartWidth: w,
56
46
  // width of single chart
57
- chartHeight: v,
47
+ chartHeight: z,
58
48
  // height of single chart
59
- chartsWidth: L,
49
+ chartsWidth: w,
60
50
  // width of all charts in charts row
61
- chartsHeight: v,
51
+ chartsHeight: z,
62
52
  // width of all charts in charts column, without axes
63
- totalWidth: L,
53
+ totalWidth: w,
64
54
  // width of all charts in charts row, plus left axis, plus legend
65
- totalHeight: v
55
+ totalHeight: z
66
56
  // width of all charts in charts height, plus bottom axis, plus top title
67
- }), C(this, "columnsCount", 1), C(this, "rowsCount", 1), C(this, "scales", {
57
+ }), S(this, "columnsCount", 1), S(this, "rowsCount", 1), S(this, "scales", {
68
58
  // Scale from primary grouping categories to every category x coordinate
69
- xPrimary: { null: z().range([0, L]).domain(["1"]) },
59
+ xPrimary: { null: D().range([0, w]).domain(["1"]) },
70
60
  // Scale from secondary grouping categories to x shift inside corresponding primary group
71
- xSecondary: { null: z().range([0, L]).domain(["1"]) },
61
+ xSecondary: { null: D().range([0, w]).domain(["1"]) },
72
62
  // Scale from y value to y coordinate, by facet
73
- y: { null: X().domain([0, 10]).range([v, 0]).nice() },
63
+ y: { null: k().domain([0, 10]).range([z, 0]).nice() },
74
64
  // Scale for link primary grouping category and aesthetics
75
- xPrimaryAes: R().unknown(H),
65
+ xPrimaryAes: R().unknown(_),
76
66
  // Scale for link secondary grouping category and aesthetics
77
- xSecondaryAes: R().unknown(H)
78
- }), C(this, "facetTitles", {}), C(this, "mainTitle", []), C(this, "axisLabelsX", {}), C(this, "captionsSizes", {
79
- xAxisCaptionsWidthByRows: [],
80
- xCaptionsTail: 0,
81
- yAxisCaptionsWidth: 100
82
- }), C(this, "legend", { width: 0, height: 0, items: [] }), C(this, "margins", { left: 0, right: 0, top: 0, bottom: 0 });
67
+ xSecondaryAes: R().unknown(_)
68
+ }), S(this, "facetTitles", {}), S(this, "mainTitle", []), S(this, "axisLabelsX", {}), S(this, "captionsSizes", {
69
+ bottomAxisCaptionsWidthByRows: [],
70
+ leftAxisCaptionsWidthByColumns: [],
71
+ bottomCaptionsTail: 0,
72
+ leftCaptionsTail: 0,
73
+ leftAxisCaptionsWidth: 100
74
+ }), S(this, "legend", { width: 0, height: 0, items: [] }), S(this, "margins", { left: 0, right: 0, top: 0, bottom: 0 });
83
75
  }
84
76
  clear() {
85
- var e;
86
- this.parentNode && this.rootNode && ((e = this.parentNode) == null || e.removeChild(this.rootNode), this.parentNode = null, this.rootNode = null), setTimeout(() => {
77
+ var s;
78
+ this.parentNode && this.rootNode && ((s = this.parentNode) == null || s.removeChild(this.rootNode), this.parentNode = null, this.rootNode = null), setTimeout(() => {
87
79
  var t;
88
80
  (t = this.reactRoot) == null || t.unmount(), this.reactRoot = null;
89
81
  });
90
82
  }
91
- init(e) {
92
- this.parentNode === null && (this.parentNode = e, this.rootNode = document.createElement("div"), this.parentNode.appendChild(this.rootNode), this.reactRoot = G(this.rootNode));
83
+ init(s) {
84
+ this.parentNode === null && (this.parentNode = s, this.rootNode = document.createElement("div"), this.parentNode.appendChild(this.rootNode), this.reactRoot = j(this.rootNode));
93
85
  }
94
- updateChartSize(e, t, s, i, r, p) {
95
- const h = e.innerOffset, l = e.innerOffset, c = O(p, i, e.innerOffset), f = t.length, g = Math.min((s == null ? void 0 : s.nRows) ?? f, f), d = Math.min((s == null ? void 0 : s.nCols) ?? f, f);
96
- this.columnsCount = s != null && s.nRows ? Math.ceil(f / g) : d, this.rowsCount = Math.ceil(f / this.columnsCount);
97
- let { width: T, height: y } = e;
98
- r === "vertical" && c > h && (y += c), r === "horizontal" && c > l && (T += c), this.chartSizes.chartWidth = T, this.chartSizes.chartHeight = y;
86
+ updateChartSize(s, t, i, e, n, r) {
87
+ const a = s.innerOffset, h = s.innerOffset, u = H(r, e, s.innerOffset), p = t.length, c = Math.min((i == null ? void 0 : i.nRows) ?? p, p), m = Math.min((i == null ? void 0 : i.nCols) ?? p, p);
88
+ this.columnsCount = i != null && i.nRows ? Math.ceil(p / c) : m, this.rowsCount = Math.ceil(p / this.columnsCount);
89
+ let { width: o, height: T } = s;
90
+ n === "vertical" && u > a && (T += u), n === "horizontal" && u > h && (o += u), this.chartSizes.chartWidth = o, this.chartSizes.chartHeight = T;
99
91
  }
100
- updateChartDimensions(e, t, s, i, r) {
101
- const { chartWidth: p, chartHeight: h } = this.chartSizes;
102
- let l = 0, c = 0;
103
- this.chartsDimensions = e.reduce((d, T, y) => {
104
- const [a, n] = rt(y, this.columnsCount), o = at(y, e.length, this.columnsCount, this.rowsCount), m = nt(
105
- s,
92
+ updateChartDimensions(s, t, i, e, n) {
93
+ const { chartWidth: r, chartHeight: a } = this.chartSizes;
94
+ let h = 0, u = 0;
95
+ const p = st(s, this.rowsCount, this.columnsCount);
96
+ this.chartsDimensions = s.reduce((o, T, l) => {
97
+ const [f, g] = rt(l, this.columnsCount), C = nt(l, s.length, this.columnsCount, this.rowsCount), x = ot(
106
98
  i,
107
- r,
99
+ e,
100
+ n,
108
101
  this.captionsSizes,
109
- $(e, this.rowsCount, this.columnsCount)[a],
102
+ p[f],
110
103
  this.facetTitles,
111
- o,
104
+ C,
112
105
  t,
113
- a,
114
- n,
115
- n === this.columnsCount - 1
116
- ), x = p + m.left + m.right, S = h + m.top + m.bottom;
117
- return d[T] = {
118
- left: l,
119
- top: c,
120
- chartEdgeSides: o,
121
- padding: m,
122
- inner: { width: p, height: h },
123
- outer: { width: x, height: S }
124
- }, l += x, n === this.columnsCount - 1 && (l = 0, c += S), d;
106
+ f,
107
+ g,
108
+ g === this.columnsCount - 1
109
+ ), y = r + x.left + x.right, A = a + x.top + x.bottom;
110
+ return o[T] = {
111
+ left: h,
112
+ top: u,
113
+ chartEdgeSides: C,
114
+ padding: x,
115
+ inner: { width: r, height: a },
116
+ outer: { width: y, height: A }
117
+ }, h += y, g === this.columnsCount - 1 && (h = 0, u += A), o;
125
118
  }, {});
126
- const f = Math.max(
127
- ...e.map((d) => this.chartsDimensions[d].outer.width + this.chartsDimensions[d].left)
128
- ), g = Math.max(
129
- ...e.map((d) => this.chartsDimensions[d].outer.height + this.chartsDimensions[d].top)
119
+ const c = Math.max(
120
+ ...s.map((o) => this.chartsDimensions[o].outer.width + this.chartsDimensions[o].left)
121
+ ), m = Math.max(
122
+ ...s.map((o) => this.chartsDimensions[o].outer.height + this.chartsDimensions[o].top)
130
123
  );
131
- this.chartSizes.chartsWidth = f, this.chartSizes.chartsHeight = g;
124
+ this.chartSizes.chartsWidth = c, this.chartSizes.chartsHeight = m;
132
125
  }
133
- updateViewport(e, t, s, i, r, p, h, l, c, f) {
134
- const g = c.innerOffset, d = e === "vertical", T = O(l, t, c.innerOffset), y = r === null || r.sharedX, a = r === null || r.sharedY, { chartHeight: n, chartWidth: o } = this.chartSizes;
135
- i.forEach((m) => {
136
- const x = p.scale === "log" ? et() : X(), S = Math.min(...a ? h.map(({ meta: b }) => b.minY) : h.map(({ geoms: b }) => Math.min(...b[m].map(({ boundsY: M }) => M.min)))), w = Math.max(...a ? h.map(({ meta: b }) => b.maxY) : h.map(({ geoms: b }) => Math.max(...b[m].map(({ boundsY: M }) => M.max)))), E = x.copy().domain([S, w]).range(
137
- d ? [n - g, T] : [g, o - T]
126
+ updateViewport(s, t, i, e, n, r, a, h, u, p) {
127
+ const c = u.innerOffset, m = s === "vertical", o = H(h, t, u.innerOffset), T = n === null || n.sharedX, l = n === null || n.sharedY, { chartHeight: f, chartWidth: g } = this.chartSizes;
128
+ e.forEach((C) => {
129
+ const x = r.scale === "log" ? it() : k(), y = Math.min(...l ? a.map(({ meta: b }) => b.minY) : a.map(({ geoms: b }) => Math.min(...b[C].map(({ boundsY: M }) => M.min)))), A = Math.max(...l ? a.map(({ meta: b }) => b.maxY) : a.map(({ geoms: b }) => Math.max(...b[C].map(({ boundsY: M }) => M.max)))), E = x.copy().domain([y, A]).range(
130
+ m ? [f - c, o] : [c, g - o]
138
131
  );
139
- x.domain([E.invert(d ? n : 0), E.invert(d ? 0 : o)]).range(d ? [n, 0] : [0, o]), this.scales.y[m] = x;
140
- const P = y ? t : f[m];
141
- this.scales.xPrimary[m] = z().domain(P).range(d ? [0, o] : [n, 0]), this.scales.xSecondary[m] = z().domain(s).range([0, this.scales.xPrimary[m].bandwidth()]);
132
+ x.domain([E.invert(m ? f : 0), E.invert(m ? 0 : g)]).range(m ? [f, 0] : [0, g]), this.scales.y[C] = x;
133
+ const v = T ? t : p[C];
134
+ this.scales.xPrimary[C] = D().domain(v).range(m ? [0, g] : [f, 0]), this.scales.xSecondary[C] = D().domain(i).range([0, this.scales.xPrimary[C].bandwidth()]);
142
135
  });
143
136
  }
144
- createFacetTitles(e, t) {
145
- this.facetTitles = e.reduce((s, i, r) => (t[r].length === 1 && t[r][0] === "null" ? s[i] = [] : s[i] = I(t[r].join(", "), this.chartSizes.chartWidth, 14), s), {});
137
+ createFacetTitles(s, t) {
138
+ this.facetTitles = s.reduce((i, e, n) => (t[n].length === 1 && t[n][0] === "null" ? i[e] = [] : i[e] = $(t[n].join(", "), this.chartSizes.chartWidth, 14), i), {});
146
139
  }
147
- createMainTitle(e, t) {
148
- const s = this.chartsDimensions[e[0]], i = this.chartsDimensions[e[e.length - 1]];
149
- this.mainTitle = I(
140
+ createMainTitle(s, t) {
141
+ const i = this.chartsDimensions[s[0]], e = this.chartsDimensions[s[s.length - 1]];
142
+ this.mainTitle = $(
150
143
  t.name,
151
- this.chartSizes.chartsWidth - s.padding.left - i.padding.right,
144
+ this.chartSizes.chartsWidth - i.padding.left - e.padding.right,
152
145
  20
153
146
  );
154
147
  }
155
- createAxisLabels(e, t, s, i) {
156
- const r = {
157
- center: 120,
158
- "45deg": 256,
159
- "90deg": 320
160
- }, p = i === "vertical";
161
- function h(l, c) {
162
- return l === "center" ? 1 / 0 : Math.floor(l === "45deg" ? c * Math.sin(Math.PI / 4) / N : c / N);
163
- }
164
- this.axisLabelsX = e.reduce((l, c) => {
165
- const f = this.scales.xPrimary[c], g = f.bandwidth(), d = r[t.labelsPosition], T = t.labelsPosition === "center" ? Math.min(d, g) : d, y = s.valueLabels;
166
- return l[c] = f.domain().reduce((a, n) => {
167
- if (t.hiddenLabels)
168
- return a[n] = [], a;
169
- const o = y[n];
170
- if (!p)
171
- a[n] = [o];
172
- else {
173
- const m = h(t.labelsPosition, g), x = I(o, T, 14);
174
- a[n] = x.length > m ? [o] : x;
175
- }
176
- return a;
177
- }, {}), l;
178
- }, {});
148
+ createAxisLabels(s, t, i, e) {
149
+ this.axisLabelsX = Q(
150
+ s,
151
+ t.labelsPosition,
152
+ i.valueLabels,
153
+ t.hiddenLabels,
154
+ e,
155
+ this.scales.xPrimary
156
+ );
179
157
  }
180
- updateAesScales(e, t) {
181
- if (e.inheritedAes) {
182
- const { inheritedAes: s, keys: i } = e;
183
- this.scales.xPrimaryAes.domain(i).range(i.map((r) => s[r] ?? _));
158
+ updateAesScales(s, t) {
159
+ if (s.inheritedAes) {
160
+ const { inheritedAes: i, keys: e } = s;
161
+ this.scales.xPrimaryAes.domain(e).range(e.map((n) => i[n] ?? F));
184
162
  } else
185
163
  this.scales.xPrimaryAes.domain([]).range([]);
186
164
  if (t.inheritedAes) {
187
- const { inheritedAes: s, keys: i } = t;
188
- this.scales.xSecondaryAes.domain(i).range(i.map((r) => s[r] ?? _));
165
+ const { inheritedAes: i, keys: e } = t;
166
+ this.scales.xSecondaryAes.domain(e).range(e.map((n) => i[n] ?? F));
189
167
  } else
190
168
  this.scales.xSecondaryAes.domain([]).range([]);
191
169
  }
192
- updateCaptionsSize(e, t, s, i) {
193
- const r = new Z("600 14px Manrope"), p = e === "vertical";
194
- function h(a) {
195
- return a.length ? Math.max(...a.map((n) => r.getTextWidth(n))) : 0;
170
+ updateCaptionsSize(s, t, i, e) {
171
+ const n = new K("600 14px Manrope");
172
+ function r(m) {
173
+ return m.length ? Math.max(...m.map((o) => n.getTextWidth(o))) : 0;
196
174
  }
197
- function l(a) {
198
- return a.length ? Math.max(...a.map(h)) : 0;
199
- }
200
- let c = [], f = 0;
201
- const g = $(t, this.rowsCount, this.columnsCount), d = ht(t, this.rowsCount, this.columnsCount);
202
- if (!p)
203
- c = d.map(
204
- (a) => Math.max(
205
- ...a.map(
206
- (n) => l(
207
- this.scales.xPrimary[n].domain().map((o) => this.axisLabelsX[n][o])
208
- )
209
- )
210
- )
211
- );
212
- else {
213
- if (s.labelsPosition === "center" && (c = g.map(
214
- (a) => Math.max(
215
- ...a.map(
216
- (n) => Math.max(
217
- ...this.scales.xPrimary[n].domain().map(
218
- (o) => o ? this.axisLabelsX[n][o].length * N : 0
219
- )
220
- )
221
- )
222
- )
223
- )), s.labelsPosition === "45deg") {
224
- const a = Math.sin(Math.PI / 4);
225
- c = g.map((n) => Math.max(
226
- ...n.map((o) => {
227
- const m = this.scales.xPrimary[o].domain().map((S) => this.axisLabelsX[o][S]), x = l(m);
228
- return x > 0 ? x * a + 14 : 0;
229
- })
230
- )), f = Math.max(
231
- ...d[0].map((n) => {
232
- const o = this.scales.xPrimary[n].domain(), m = this.axisLabelsX[n][o[0]];
233
- return Math.max(
234
- h(m) * a - this.scales.xPrimary[n].bandwidth() / 2 + 14,
235
- 0
236
- );
237
- })
238
- );
239
- }
240
- s.labelsPosition === "90deg" && (c = g.map(
241
- (a) => Math.max(
242
- ...a.map(
243
- (n) => l(
244
- this.scales.xPrimary[n].domain().map((o) => this.axisLabelsX[n][o])
245
- )
246
- )
247
- )
248
- ));
249
- }
250
- const T = j.flatten(
251
- t.map((a) => {
252
- if (i.hiddenLabels)
175
+ const { xTail: a, yTail: h, axisCaptionsWidthByRows: u, axisCaptionsWidthByColumns: p } = tt(t, this.rowsCount, this.columnsCount, i.labelsPosition, this.axisLabelsX, s, this.scales.xPrimary), c = O.flatten(
176
+ t.map((m) => {
177
+ if (e.hiddenLabels)
253
178
  return [];
254
- const n = this.scales.y[a], o = n.ticks(), m = o.some((S) => Math.abs(S) < 1e-4 && S !== 0 || S > 1e4) ? ",e" : ",f", x = n.tickFormat(10, m);
255
- return o.map(x);
179
+ const o = this.scales.y[m], T = o.ticks(), l = T.some((g) => Math.abs(g) < 1e-4 && g !== 0 || g > 1e4) ? ",e" : ",f", f = o.tickFormat(10, l);
180
+ return T.map(f);
256
181
  })
257
- ), y = h(T);
182
+ );
258
183
  this.captionsSizes = {
259
- xCaptionsTail: f,
260
- xAxisCaptionsWidthByRows: c,
261
- yAxisCaptionsWidth: y
184
+ bottomCaptionsTail: a,
185
+ leftCaptionsTail: h,
186
+ bottomAxisCaptionsWidthByRows: u,
187
+ leftAxisCaptionsWidthByColumns: p,
188
+ leftAxisCaptionsWidth: r(c)
262
189
  };
263
190
  }
264
- updateMargins(e, t, s) {
265
- const i = this.chartsDimensions[t[0]], r = this.chartsDimensions[t[t.length - 1]], p = e === "vertical", h = this.mainTitle.length ? B * this.mainTitle.length + K * 2 : 0, l = s.outerOffset;
191
+ updateMargins(s, t, i) {
192
+ const e = this.chartsDimensions[t[0]], n = this.chartsDimensions[t[t.length - 1]], r = s === "vertical", a = this.mainTitle.length ? X * this.mainTitle.length + Y * 2 : 0, h = i.outerOffset;
266
193
  this.margins = {
267
- left: Math.max(l, p ? this.captionsSizes.xCaptionsTail - i.padding.left : 0),
268
- right: this.legend.width + l,
269
- top: Math.max(h, l),
270
- bottom: Math.max(l, p ? 0 : this.captionsSizes.xCaptionsTail - r.padding.bottom)
194
+ left: Math.max(h, r ? this.captionsSizes.bottomCaptionsTail - e.padding.left : 0),
195
+ right: this.legend.width + h,
196
+ top: Math.max(a, h),
197
+ bottom: Math.max(h, r ? 0 : this.captionsSizes.leftCaptionsTail - n.padding.bottom)
271
198
  }, this.chartSizes.totalWidth = this.margins.left + this.chartSizes.chartsWidth + this.margins.right, this.chartSizes.totalHeight = this.margins.top + Math.max(this.chartSizes.chartsHeight, this.legend.height) + this.margins.bottom;
272
199
  }
273
- updateLegendSize(e, t, s, i) {
274
- if (!e.show) {
200
+ updateLegendSize(s, t, i, e) {
201
+ if (!s.show) {
275
202
  this.legend = { width: 0, height: 0, items: [] };
276
203
  return;
277
204
  }
278
- const r = this.chartSizes.chartHeight, p = { width: 0, height: 0, left: 0, top: 0 }, h = [];
279
- function l(a, n) {
280
- return i.some((o) => {
281
- const m = o.aes[n];
282
- return m && ot(m) && m.type === a;
205
+ const n = this.chartSizes.chartHeight, r = { width: 0, height: 0, left: 0, top: 0 }, a = [];
206
+ function h(l, f) {
207
+ return e.some((g) => {
208
+ const C = g.aes[f];
209
+ return C && ht(C) && C.type === l;
283
210
  });
284
211
  }
285
- function c(a) {
212
+ function u(l) {
286
213
  return {
287
- dotFill: l(a, "dotFill"),
288
- fillColor: l(a, "fillColor"),
289
- lineColor: l(a, "lineColor"),
290
- dotShape: l(a, "dotShape"),
291
- lineShape: l(a, "lineShape")
214
+ dotFill: h(l, "dotFill"),
215
+ fillColor: h(l, "fillColor"),
216
+ lineColor: h(l, "lineColor"),
217
+ dotShape: h(l, "dotShape"),
218
+ lineShape: h(l, "lineShape")
292
219
  };
293
220
  }
294
- const f = c("primaryGrouping"), g = c("secondaryGrouping");
295
- if (Object.values(f).some((a) => a) && t.inheritedAes && h.push({
221
+ const p = u("primaryGrouping"), c = u("secondaryGrouping");
222
+ if (Object.values(p).some((l) => l) && t.inheritedAes && a.push({
296
223
  type: "discreteMulti",
297
224
  id: "primary",
298
225
  title: t.label,
299
226
  scale: this.scales.xPrimaryAes,
300
227
  values: t.keys,
301
228
  labels: t.valueLabels,
302
- usedAes: f,
303
- ...p
304
- }), Object.values(g).some((a) => a) && s.inheritedAes && h.push({
229
+ usedAes: p,
230
+ ...r
231
+ }), Object.values(c).some((l) => l) && i.inheritedAes && a.push({
305
232
  type: "discreteMulti",
306
233
  id: "secondary",
307
- title: s.label,
234
+ title: i.label,
308
235
  scale: this.scales.xSecondaryAes,
309
- values: s.keys,
310
- labels: s.valueLabels,
311
- usedAes: g,
312
- ...p
313
- }), !h.length) {
236
+ values: i.keys,
237
+ labels: i.valueLabels,
238
+ usedAes: c,
239
+ ...r
240
+ }), !a.length) {
314
241
  this.legend = { width: 0, height: 0, items: [] };
315
242
  return;
316
243
  }
317
- const d = V(h, this.chartSizes.chartHeight), T = d[d.length - 1], y = T.left + T.width + J;
244
+ const m = U(a, this.chartSizes.chartHeight), o = m[m.length - 1], T = o.left + o.width + Z;
318
245
  this.legend = {
319
- width: y,
320
- height: r,
321
- items: d
246
+ width: T,
247
+ height: n,
248
+ items: m
322
249
  };
323
250
  }
324
- render(e, t, s, i, r, p, h, l, c, f, g, d, T, y) {
325
- var a;
326
- const { orientation: n, xAxis: o, yAxis: m, size: x } = s;
327
- this.updateChartSize(x, h, p, i.keys, n, f), this.updateViewport(
328
- n,
329
- i.keys,
330
- r.keys,
331
- h,
332
- p,
333
- m,
334
- c,
251
+ render(s, t, i, e, n, r, a, h, u, p, c, m, o, T) {
252
+ var l;
253
+ const { orientation: f, xAxis: g, yAxis: C, size: x } = i;
254
+ this.updateChartSize(x, a, r, e.keys, f, p), this.updateViewport(
335
255
  f,
256
+ e.keys,
257
+ n.keys,
258
+ a,
259
+ r,
260
+ C,
261
+ u,
262
+ p,
336
263
  x,
337
- d
338
- ), this.createAxisLabels(h, o, i, n), this.createFacetTitles(h, l), this.updateCaptionsSize(n, h, o, m), this.updateChartDimensions(h, p, n, o, m), this.updateLegendSize(s.legend, i, r, c), this.createMainTitle(h, s.title), this.updateMargins(n, h, x), this.updateAesScales(i, r);
339
- const S = /* @__PURE__ */ A.jsx(U, { dataFrame: e, children: /* @__PURE__ */ A.jsx(
340
- q,
264
+ m
265
+ ), this.createAxisLabels(a, g, e, f), this.createFacetTitles(a, h), this.updateCaptionsSize(f, a, g, C), this.updateChartDimensions(a, r, f, g, C), this.updateLegendSize(i.legend, e, n, u), this.createMainTitle(a, i.title), this.updateMargins(f, a, x), this.updateAesScales(e, n);
266
+ const y = /* @__PURE__ */ L.jsx(G, { dataFrame: s, children: /* @__PURE__ */ L.jsx(
267
+ V,
341
268
  {
342
269
  settingsId: t,
343
- chartSettings: s,
344
- facetKeys: h,
345
- facetSettings: p,
270
+ chartSettings: i,
271
+ facetKeys: a,
272
+ facetSettings: r,
346
273
  facetTitles: this.facetTitles,
347
274
  chartSizes: this.chartSizes,
348
275
  chartsDimensions: this.chartsDimensions,
349
276
  scales: this.scales,
350
- layersData: c,
351
- statsData: f,
277
+ layersData: u,
278
+ statsData: p,
352
279
  legendData: this.legend,
353
280
  margins: this.margins,
354
281
  columnsCount: this.columnsCount,
355
- keyColumn: g,
282
+ keyColumn: c,
356
283
  xLabels: this.axisLabelsX,
357
284
  chartTitle: this.mainTitle,
358
- onlyPositive: T,
359
- secondaryGrouping: r,
360
- onTooltipHintSwitch: y
285
+ onlyPositive: o,
286
+ secondaryGrouping: n,
287
+ onTooltipHintSwitch: T
361
288
  }
362
289
  ) });
363
- this.component = S, (a = this.reactRoot) == null || a.render(S);
290
+ this.component = y, (l = this.reactRoot) == null || l.render(y);
364
291
  }
365
- renderError(e) {
292
+ renderError(s) {
366
293
  var t;
367
- (t = this.reactRoot) == null || t.render(/* @__PURE__ */ A.jsx(Y, { message: e }));
294
+ (t = this.reactRoot) == null || t.render(/* @__PURE__ */ L.jsx(B, { message: s }));
368
295
  }
369
296
  }
370
297
  export {
371
- wt as default
298
+ Dt as default
372
299
  };
373
300
  //# sourceMappingURL=ChartRenderer.js.map