@milaboratories/graph-maker 1.1.138 → 1.1.139

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