@milaboratories/graph-maker 1.1.138 → 1.1.140
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/GraphMaker/components/Chart.vue.d.ts.map +1 -1
- package/dist/GraphMaker/components/Chart.vue.js +1 -0
- package/dist/GraphMaker/components/Chart.vue.js.map +1 -1
- package/dist/GraphMaker/components/LassoControls/index.vue.js +15 -13
- package/dist/GraphMaker/components/LassoControls/index.vue.js.map +1 -1
- package/dist/GraphMaker/dataBindAes.d.ts +5 -5
- package/dist/GraphMaker/dataBindAes.d.ts.map +1 -1
- package/dist/GraphMaker/dataBindAes.js +52 -49
- package/dist/GraphMaker/dataBindAes.js.map +1 -1
- package/dist/GraphMaker/forms/LayersForm/AesSelector.vue.js +14 -14
- package/dist/GraphMaker/forms/LayersForm/AesSelector.vue.js.map +1 -1
- package/dist/GraphMaker/index.vue.d.ts.map +1 -1
- package/dist/GraphMaker/index.vue.js +125 -124
- package/dist/GraphMaker/index.vue.js.map +1 -1
- package/dist/GraphMaker/types.d.ts +1 -1
- package/dist/GraphMaker/types.d.ts.map +1 -1
- package/dist/GraphMaker/utils/createChartSettingsForRender/composeBubbleSettings.d.ts +6 -0
- package/dist/GraphMaker/utils/createChartSettingsForRender/composeBubbleSettings.d.ts.map +1 -1
- package/dist/GraphMaker/utils/createChartSettingsForRender/composeChartSettings.d.ts +4 -8
- package/dist/GraphMaker/utils/createChartSettingsForRender/composeChartSettings.d.ts.map +1 -1
- package/dist/GraphMaker/utils/createChartSettingsForRender/composeChartSettings.js.map +1 -1
- package/dist/GraphMaker/utils/createChartSettingsForRender/composeDendroSettings.d.ts +15 -0
- package/dist/GraphMaker/utils/createChartSettingsForRender/composeDendroSettings.d.ts.map +1 -1
- package/dist/GraphMaker/utils/createChartSettingsForRender/composeDiscreteSettings.d.ts +12 -3
- package/dist/GraphMaker/utils/createChartSettingsForRender/composeDiscreteSettings.d.ts.map +1 -1
- package/dist/GraphMaker/utils/createChartSettingsForRender/composeHeatmapSettings.d.ts +21 -0
- package/dist/GraphMaker/utils/createChartSettingsForRender/composeHeatmapSettings.d.ts.map +1 -1
- package/dist/GraphMaker/utils/createChartSettingsForRender/composeHistogramSettings.d.ts +10 -6
- package/dist/GraphMaker/utils/createChartSettingsForRender/composeHistogramSettings.d.ts.map +1 -1
- package/dist/GraphMaker/utils/createChartSettingsForRender/composeScatterplotSettings.d.ts +31 -13
- package/dist/GraphMaker/utils/createChartSettingsForRender/composeScatterplotSettings.d.ts.map +1 -1
- package/dist/GraphMaker/utils/createChartSettingsForRender/composeScatterplotSettings.js +56 -62
- package/dist/GraphMaker/utils/createChartSettingsForRender/composeScatterplotSettings.js.map +1 -1
- package/dist/GraphMaker/utils/createChartSettingsForRender/composeScatterplotUmapSettings.d.ts +29 -13
- package/dist/GraphMaker/utils/createChartSettingsForRender/composeScatterplotUmapSettings.d.ts.map +1 -1
- package/dist/GraphMaker/utils/createChartSettingsForRender/composeScatterplotUmapSettings.js +20 -19
- package/dist/GraphMaker/utils/createChartSettingsForRender/composeScatterplotUmapSettings.js.map +1 -1
- package/dist/GraphMaker/utils/loadUniqueValuesToSave.d.ts.map +1 -1
- package/dist/GraphMaker/utils/loadUniqueValuesToSave.js +57 -54
- package/dist/GraphMaker/utils/loadUniqueValuesToSave.js.map +1 -1
- package/dist/lib.js +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/AbstractChart.js +5 -5
- package/dist/node_modules/@milaboratories/miplots4/dist/AbstractChart.js.map +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/DataFrame.js +95 -72
- package/dist/node_modules/@milaboratories/miplots4/dist/DataFrame.js.map +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/MiPlots.js +8 -5
- package/dist/node_modules/@milaboratories/miplots4/dist/MiPlots.js.map +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/bubble/ChartRenderer.js +124 -122
- package/dist/node_modules/@milaboratories/miplots4/dist/bubble/ChartRenderer.js.map +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/bubble/components/Chart.js +72 -91
- package/dist/node_modules/@milaboratories/miplots4/dist/bubble/components/Chart.js.map +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/bubble/components/ChartsGroup.js +43 -41
- package/dist/node_modules/@milaboratories/miplots4/dist/bubble/components/ChartsGroup.js.map +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/bubble/getCellTooltip.js +28 -0
- package/dist/node_modules/@milaboratories/miplots4/dist/bubble/getCellTooltip.js.map +1 -0
- package/dist/node_modules/@milaboratories/miplots4/dist/bubble/getGroupedCellsData.js +94 -0
- package/dist/node_modules/@milaboratories/miplots4/dist/bubble/getGroupedCellsData.js.map +1 -0
- package/dist/node_modules/@milaboratories/miplots4/dist/bubble/index.js +38 -34
- package/dist/node_modules/@milaboratories/miplots4/dist/bubble/index.js.map +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/bubble/utils/calculateCaptionTails.js.map +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/common/Error.js +4 -22
- package/dist/node_modules/@milaboratories/miplots4/dist/common/Error.js.map +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/common/Legend.js.map +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/common/Tooltip.js +11 -11
- package/dist/node_modules/@milaboratories/miplots4/dist/common/Tooltip.js.map +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/common/useDataFrame.js +20 -0
- package/dist/node_modules/@milaboratories/miplots4/dist/common/useDataFrame.js.map +1 -0
- package/dist/node_modules/@milaboratories/miplots4/dist/dendro/ChartRenderer.js +181 -181
- package/dist/node_modules/@milaboratories/miplots4/dist/dendro/ChartRenderer.js.map +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/dendro/DendroSettingsImpl.js +2 -2
- package/dist/node_modules/@milaboratories/miplots4/dist/dendro/DendroSettingsImpl.js.map +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/dendro/components/Chart.js +45 -45
- package/dist/node_modules/@milaboratories/miplots4/dist/dendro/components/Chart.js.map +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/dendro/components/Heatmap.js +27 -27
- package/dist/node_modules/@milaboratories/miplots4/dist/dendro/components/Heatmap.js.map +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/dendro/components/Legend.js.map +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/dendro/components/LinksGroup.js +18 -18
- package/dist/node_modules/@milaboratories/miplots4/dist/dendro/components/LinksGroup.js.map +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/dendro/components/NodesGroup.js +36 -36
- package/dist/node_modules/@milaboratories/miplots4/dist/dendro/components/NodesGroup.js.map +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/dendro/getHeatmapData.js +45 -41
- package/dist/node_modules/@milaboratories/miplots4/dist/dendro/getHeatmapData.js.map +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/dendro/getHierarchyData.js +33 -33
- package/dist/node_modules/@milaboratories/miplots4/dist/dendro/getHierarchyData.js.map +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/dendro/index.js +90 -93
- package/dist/node_modules/@milaboratories/miplots4/dist/dendro/index.js.map +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/discrete/ChartRenderer.js +199 -198
- package/dist/node_modules/@milaboratories/miplots4/dist/discrete/ChartRenderer.js.map +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/discrete/DiscreteSettingsImpl.js +17 -17
- package/dist/node_modules/@milaboratories/miplots4/dist/discrete/DiscreteSettingsImpl.js.map +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/discrete/components/layers/BoxElement.js.map +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/discrete/index.js +102 -99
- package/dist/node_modules/@milaboratories/miplots4/dist/discrete/index.js.map +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/discrete/layers/bar.js +31 -36
- package/dist/node_modules/@milaboratories/miplots4/dist/discrete/layers/bar.js.map +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/discrete/layers/binnedDots.js +62 -74
- package/dist/node_modules/@milaboratories/miplots4/dist/discrete/layers/binnedDots.js.map +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/discrete/layers/boxes.js +52 -53
- package/dist/node_modules/@milaboratories/miplots4/dist/discrete/layers/boxes.js.map +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/discrete/layers/dots.js +32 -32
- package/dist/node_modules/@milaboratories/miplots4/dist/discrete/layers/dots.js.map +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/discrete/layers/lines.js +7 -6
- package/dist/node_modules/@milaboratories/miplots4/dist/discrete/layers/lines.js.map +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/discrete/layers/logo.js +23 -23
- package/dist/node_modules/@milaboratories/miplots4/dist/discrete/layers/logo.js.map +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/discrete/layers/pairedPoints.js +63 -63
- package/dist/node_modules/@milaboratories/miplots4/dist/discrete/layers/pairedPoints.js.map +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/discrete/layers/sina.js +60 -64
- package/dist/node_modules/@milaboratories/miplots4/dist/discrete/layers/sina.js.map +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/discrete/layers/stackedBar.js +23 -23
- package/dist/node_modules/@milaboratories/miplots4/dist/discrete/layers/stackedBar.js.map +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/discrete/utils/getOutliersBounds.js +5 -5
- package/dist/node_modules/@milaboratories/miplots4/dist/discrete/utils/getOutliersBounds.js.map +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/discrete/utils/splitTextByWidth.js +13 -13
- package/dist/node_modules/@milaboratories/miplots4/dist/discrete/utils/splitTextByWidth.js.map +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/heatmap/ChartRenderer.js +258 -256
- package/dist/node_modules/@milaboratories/miplots4/dist/heatmap/ChartRenderer.js.map +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/heatmap/HeatmapSettingsImpl.js +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/heatmap/HeatmapSettingsImpl.js.map +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/heatmap/components/Annotations/Annotation.js +81 -79
- package/dist/node_modules/@milaboratories/miplots4/dist/heatmap/components/Annotations/Annotation.js.map +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/heatmap/components/Chart.js +140 -134
- package/dist/node_modules/@milaboratories/miplots4/dist/heatmap/components/Chart.js.map +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/heatmap/components/ChartsGroup.js +17 -17
- package/dist/node_modules/@milaboratories/miplots4/dist/heatmap/components/ChartsGroup.js.map +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/heatmap/getCells.js +99 -95
- package/dist/node_modules/@milaboratories/miplots4/dist/heatmap/getCells.js.map +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/heatmap/index.js +32 -31
- package/dist/node_modules/@milaboratories/miplots4/dist/heatmap/index.js.map +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/heatmap/utils/calculateAnnotationTitleSizes.js +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/heatmap/utils/calculateAnnotationTitleSizes.js.map +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/heatmap/utils/calculateCaptionTails.js.map +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/histogram/ChartRenderer.js +143 -142
- package/dist/node_modules/@milaboratories/miplots4/dist/histogram/ChartRenderer.js.map +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/histogram/HistogramSettingsImpl.js.map +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/histogram/components/Chart.js +30 -30
- package/dist/node_modules/@milaboratories/miplots4/dist/histogram/components/Chart.js.map +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/histogram/components/ChartsGroup.js +7 -7
- package/dist/node_modules/@milaboratories/miplots4/dist/histogram/getHistogramData.js +53 -54
- package/dist/node_modules/@milaboratories/miplots4/dist/histogram/getHistogramData.js.map +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/histogram/index.js +62 -58
- package/dist/node_modules/@milaboratories/miplots4/dist/histogram/index.js.map +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/node_modules/@d3fc/d3fc-axis/src/axisBase.js +7 -7
- package/dist/node_modules/@milaboratories/miplots4/dist/node_modules/d3-array/src/min.js +6 -12
- package/dist/node_modules/@milaboratories/miplots4/dist/node_modules/d3-array/src/min.js.map +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/node_modules/d3-shape/src/line.js.map +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/node_modules/kdbush/index.js +148 -0
- package/dist/node_modules/@milaboratories/miplots4/dist/node_modules/kdbush/index.js.map +1 -0
- package/dist/node_modules/@milaboratories/miplots4/dist/scatterplot/ChartRenderer.js +172 -168
- package/dist/node_modules/@milaboratories/miplots4/dist/scatterplot/ChartRenderer.js.map +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/scatterplot/ScatterplotSettingsImpl.js +28 -28
- package/dist/node_modules/@milaboratories/miplots4/dist/scatterplot/ScatterplotSettingsImpl.js.map +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/scatterplot/components/Chart.js +11 -11
- package/dist/node_modules/@milaboratories/miplots4/dist/scatterplot/components/ChartAxisTitles.js +30 -29
- package/dist/node_modules/@milaboratories/miplots4/dist/scatterplot/components/ChartAxisTitles.js.map +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/scatterplot/components/ChartLayersData.js +135 -153
- package/dist/node_modules/@milaboratories/miplots4/dist/scatterplot/components/ChartLayersData.js.map +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/scatterplot/components/ChartTooltip.js +35 -32
- package/dist/node_modules/@milaboratories/miplots4/dist/scatterplot/components/ChartTooltip.js.map +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/scatterplot/components/ChartTrendsData.js +27 -27
- package/dist/node_modules/@milaboratories/miplots4/dist/scatterplot/components/ChartTrendsData.js.map +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/scatterplot/components/ChartsGroup.js +14 -14
- package/dist/node_modules/@milaboratories/miplots4/dist/scatterplot/constants.js.map +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/scatterplot/dots.js +24 -25
- package/dist/node_modules/@milaboratories/miplots4/dist/scatterplot/dots.js.map +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/scatterplot/getLayersData.js +13 -13
- package/dist/node_modules/@milaboratories/miplots4/dist/scatterplot/getLayersData.js.map +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/scatterplot/index.js +69 -76
- package/dist/node_modules/@milaboratories/miplots4/dist/scatterplot/index.js.map +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/scatterplot/linearRegression.js +85 -83
- package/dist/node_modules/@milaboratories/miplots4/dist/scatterplot/linearRegression.js.map +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/scatterplot/utils/createAesGetter.js +20 -20
- package/dist/node_modules/@milaboratories/miplots4/dist/scatterplot/utils/createAesGetter.js.map +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/scatterplot/utils/createLegendInfo.js +50 -38
- package/dist/node_modules/@milaboratories/miplots4/dist/scatterplot/utils/createLegendInfo.js.map +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/scatterplot/utils/formatColumnValue.js +11 -0
- package/dist/node_modules/@milaboratories/miplots4/dist/scatterplot/utils/formatColumnValue.js.map +1 -0
- package/dist/node_modules/@milaboratories/miplots4/dist/scatterplot/utils/getVisibleLabels.js +46 -56
- package/dist/node_modules/@milaboratories/miplots4/dist/scatterplot/utils/getVisibleLabels.js.map +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/scatterplot/utils/sortDotsByGrouping.js +18 -0
- package/dist/node_modules/@milaboratories/miplots4/dist/scatterplot/utils/sortDotsByGrouping.js.map +1 -0
- package/dist/node_modules/@milaboratories/miplots4/dist/scatterplot-umap/ChartRenderer.js +223 -205
- package/dist/node_modules/@milaboratories/miplots4/dist/scatterplot-umap/ChartRenderer.js.map +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/scatterplot-umap/SettingsImpl.js +26 -26
- package/dist/node_modules/@milaboratories/miplots4/dist/scatterplot-umap/SettingsImpl.js.map +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/scatterplot-umap/colors.js +42 -0
- package/dist/node_modules/@milaboratories/miplots4/dist/scatterplot-umap/colors.js.map +1 -0
- package/dist/node_modules/@milaboratories/miplots4/dist/scatterplot-umap/components/LowerSVG.js +84 -81
- package/dist/node_modules/@milaboratories/miplots4/dist/scatterplot-umap/components/LowerSVG.js.map +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/scatterplot-umap/components/SVGLayer.js +11 -11
- package/dist/node_modules/@milaboratories/miplots4/dist/scatterplot-umap/components/UpperSVG.js +15 -14
- package/dist/node_modules/@milaboratories/miplots4/dist/scatterplot-umap/components/UpperSVG.js.map +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/scatterplot-umap/index.js +97 -118
- package/dist/node_modules/@milaboratories/miplots4/dist/scatterplot-umap/index.js.map +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/types/common.js +3 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/types/common.js.map +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/types/dendro.js +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/types/dendro.js.map +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/types/discrete.js +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/types/discrete.js.map +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/types/heatmap.js +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/types/heatmap.js.map +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/types/histogram.js +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/types/histogram.js.map +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/types/scatterplot-umap.js +23 -17
- package/dist/node_modules/@milaboratories/miplots4/dist/types/scatterplot-umap.js.map +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/types/scatterplot.js +25 -19
- package/dist/node_modules/@milaboratories/miplots4/dist/types/scatterplot.js.map +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/utils/TextMeasurer/TextMeasurer.js +39 -0
- package/dist/node_modules/@milaboratories/miplots4/dist/utils/TextMeasurer/TextMeasurer.js.map +1 -0
- package/dist/node_modules/@milaboratories/miplots4/dist/utils/TextMeasurer/charToWidth.json.js +101 -0
- package/dist/node_modules/@milaboratories/miplots4/dist/utils/TextMeasurer/charToWidth.json.js.map +1 -0
- package/dist/node_modules/@milaboratories/miplots4/dist/utils/arrangeLegendParts.js +4 -4
- package/dist/node_modules/@milaboratories/miplots4/dist/utils/arrangeLegendParts.js.map +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/utils/arraysAreDifferent.js +7 -0
- package/dist/node_modules/@milaboratories/miplots4/dist/utils/arraysAreDifferent.js.map +1 -0
- package/dist/node_modules/@milaboratories/miplots4/dist/utils/getLegendWidth.js +3 -3
- package/dist/node_modules/@milaboratories/miplots4/dist/utils/getLegendWidth.js.map +1 -1
- package/dist/node_modules/@milaboratories/pf-plots/dist/index.js +1111 -1097
- package/dist/node_modules/@milaboratories/pf-plots/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/dist/node_modules/@milaboratories/miplots4/dist/bubble/getCells.js +0 -91
- package/dist/node_modules/@milaboratories/miplots4/dist/bubble/getCells.js.map +0 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/node_modules/d3-quadtree/src/add.js +0 -30
- package/dist/node_modules/@milaboratories/miplots4/dist/node_modules/d3-quadtree/src/add.js.map +0 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/node_modules/d3-quadtree/src/cover.js +0 -29
- package/dist/node_modules/@milaboratories/miplots4/dist/node_modules/d3-quadtree/src/cover.js.map +0 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/node_modules/d3-quadtree/src/data.js +0 -12
- package/dist/node_modules/@milaboratories/miplots4/dist/node_modules/d3-quadtree/src/data.js.map +0 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/node_modules/d3-quadtree/src/extent.js +0 -7
- package/dist/node_modules/@milaboratories/miplots4/dist/node_modules/d3-quadtree/src/extent.js.map +0 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/node_modules/d3-quadtree/src/find.js +0 -26
- package/dist/node_modules/@milaboratories/miplots4/dist/node_modules/d3-quadtree/src/find.js.map +0 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/node_modules/d3-quadtree/src/quad.js +0 -7
- package/dist/node_modules/@milaboratories/miplots4/dist/node_modules/d3-quadtree/src/quad.js.map +0 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/node_modules/d3-quadtree/src/quadtree.js +0 -51
- package/dist/node_modules/@milaboratories/miplots4/dist/node_modules/d3-quadtree/src/quadtree.js.map +0 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/node_modules/d3-quadtree/src/remove.js +0 -21
- package/dist/node_modules/@milaboratories/miplots4/dist/node_modules/d3-quadtree/src/remove.js.map +0 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/node_modules/d3-quadtree/src/root.js +0 -7
- package/dist/node_modules/@milaboratories/miplots4/dist/node_modules/d3-quadtree/src/root.js.map +0 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/node_modules/d3-quadtree/src/size.js +0 -12
- package/dist/node_modules/@milaboratories/miplots4/dist/node_modules/d3-quadtree/src/size.js.map +0 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/node_modules/d3-quadtree/src/visit.js +0 -14
- package/dist/node_modules/@milaboratories/miplots4/dist/node_modules/d3-quadtree/src/visit.js.map +0 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/node_modules/d3-quadtree/src/visitAfter.js +0 -19
- package/dist/node_modules/@milaboratories/miplots4/dist/node_modules/d3-quadtree/src/visitAfter.js.map +0 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/node_modules/d3-quadtree/src/x.js +0 -11
- package/dist/node_modules/@milaboratories/miplots4/dist/node_modules/d3-quadtree/src/x.js.map +0 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/node_modules/d3-quadtree/src/y.js +0 -11
- package/dist/node_modules/@milaboratories/miplots4/dist/node_modules/d3-quadtree/src/y.js.map +0 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/utils/TextMeasurer.js +0 -24
- package/dist/node_modules/@milaboratories/miplots4/dist/utils/TextMeasurer.js.map +0 -1
|
@@ -1,84 +1,85 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
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
|
|
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
15
|
import X from "../node_modules/d3-scale/src/linear.js";
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
var
|
|
18
|
-
function
|
|
19
|
-
const
|
|
20
|
-
return
|
|
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
|
|
23
|
-
const g =
|
|
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:
|
|
26
|
-
top:
|
|
27
|
-
bottom:
|
|
28
|
-
right: f ? 0 :
|
|
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
|
|
32
|
+
function ht(u, e, t) {
|
|
32
33
|
const s = new Array(t).fill(null).map(() => []);
|
|
33
|
-
for (let
|
|
34
|
-
for (let
|
|
35
|
-
|
|
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
|
|
39
|
+
function $(u, e, t) {
|
|
39
40
|
const s = [];
|
|
40
|
-
for (let
|
|
41
|
-
s.push(
|
|
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
|
|
45
|
-
const t = Math.floor(
|
|
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(
|
|
49
|
-
return typeof
|
|
49
|
+
function ot(u) {
|
|
50
|
+
return typeof u == "object" && "type" in u;
|
|
50
51
|
}
|
|
51
|
-
class
|
|
52
|
+
class wt {
|
|
52
53
|
constructor() {
|
|
53
|
-
|
|
54
|
-
chartWidth:
|
|
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:
|
|
57
|
+
chartHeight: v,
|
|
57
58
|
// height of single chart
|
|
58
|
-
chartsWidth:
|
|
59
|
+
chartsWidth: L,
|
|
59
60
|
// width of all charts in charts row
|
|
60
|
-
chartsHeight:
|
|
61
|
+
chartsHeight: v,
|
|
61
62
|
// width of all charts in charts column, without axes
|
|
62
|
-
totalWidth:
|
|
63
|
+
totalWidth: L,
|
|
63
64
|
// width of all charts in charts row, plus left axis, plus legend
|
|
64
|
-
totalHeight:
|
|
65
|
+
totalHeight: v
|
|
65
66
|
// width of all charts in charts height, plus bottom axis, plus top title
|
|
66
|
-
}),
|
|
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:
|
|
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:
|
|
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([
|
|
73
|
+
y: { null: X().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
|
-
}),
|
|
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
|
-
}),
|
|
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 =
|
|
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,
|
|
94
|
-
const
|
|
95
|
-
this.columnsCount = s != null && s.nRows ? Math.ceil(f / g) :
|
|
96
|
-
let { width: T, height:
|
|
97
|
-
|
|
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,
|
|
100
|
-
const { chartWidth:
|
|
101
|
-
let
|
|
102
|
-
this.chartsDimensions = e.reduce((
|
|
103
|
-
const [
|
|
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
|
-
|
|
106
|
-
|
|
106
|
+
i,
|
|
107
|
+
r,
|
|
107
108
|
this.captionsSizes,
|
|
108
|
-
|
|
109
|
+
$(e, this.rowsCount, this.columnsCount)[a],
|
|
109
110
|
this.facetTitles,
|
|
110
111
|
o,
|
|
111
112
|
t,
|
|
112
|
-
|
|
113
|
+
a,
|
|
113
114
|
n,
|
|
114
115
|
n === this.columnsCount - 1
|
|
115
|
-
), x =
|
|
116
|
-
return
|
|
117
|
-
left:
|
|
118
|
-
top:
|
|
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:
|
|
121
|
-
inner: { width:
|
|
122
|
-
outer: { width: x, height:
|
|
123
|
-
},
|
|
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((
|
|
127
|
+
...e.map((d) => this.chartsDimensions[d].outer.width + this.chartsDimensions[d].left)
|
|
127
128
|
), g = Math.max(
|
|
128
|
-
...e.map((
|
|
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,
|
|
133
|
-
const g =
|
|
134
|
-
|
|
135
|
-
const x =
|
|
136
|
-
|
|
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]
|
|
137
138
|
);
|
|
138
|
-
x.domain([
|
|
139
|
-
const P =
|
|
140
|
-
this.scales.xPrimary[
|
|
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,
|
|
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]],
|
|
148
|
-
this.mainTitle =
|
|
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 -
|
|
151
|
+
this.chartSizes.chartsWidth - s.padding.left - i.padding.right,
|
|
151
152
|
20
|
|
152
153
|
);
|
|
153
154
|
}
|
|
154
|
-
createAxisLabels(e, t, s,
|
|
155
|
-
const
|
|
155
|
+
createAxisLabels(e, t, s, i) {
|
|
156
|
+
const r = {
|
|
156
157
|
center: 120,
|
|
157
158
|
"45deg": 256,
|
|
158
159
|
"90deg": 320
|
|
159
|
-
},
|
|
160
|
-
function l
|
|
161
|
-
return
|
|
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((
|
|
164
|
-
const f = this.scales.xPrimary[
|
|
165
|
-
return
|
|
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
|
|
168
|
-
const o =
|
|
169
|
-
if (!
|
|
170
|
-
|
|
168
|
+
return a[n] = [], a;
|
|
169
|
+
const o = y[n];
|
|
170
|
+
if (!p)
|
|
171
|
+
a[n] = [o];
|
|
171
172
|
else {
|
|
172
|
-
const
|
|
173
|
-
|
|
173
|
+
const m = h(t.labelsPosition, g), x = I(o, T, 14);
|
|
174
|
+
a[n] = x.length > m ? [o] : x;
|
|
174
175
|
}
|
|
175
|
-
return
|
|
176
|
-
}, {}),
|
|
176
|
+
return a;
|
|
177
|
+
}, {}), l;
|
|
177
178
|
}, {});
|
|
178
179
|
}
|
|
179
180
|
updateAesScales(e, t) {
|
|
180
181
|
if (e.inheritedAes) {
|
|
181
|
-
const { inheritedAes: s, keys:
|
|
182
|
-
this.scales.xPrimaryAes.domain(
|
|
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:
|
|
187
|
-
this.scales.xSecondaryAes.domain(
|
|
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,
|
|
192
|
-
const
|
|
193
|
-
function
|
|
194
|
-
return
|
|
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
|
|
197
|
-
return
|
|
197
|
+
function l(a) {
|
|
198
|
+
return a.length ? Math.max(...a.map(h)) : 0;
|
|
198
199
|
}
|
|
199
|
-
let
|
|
200
|
-
const g =
|
|
201
|
-
if (!
|
|
202
|
-
|
|
203
|
-
(
|
|
204
|
-
...
|
|
205
|
-
(n) =>
|
|
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(
|
|
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" && (
|
|
213
|
-
(
|
|
214
|
-
...
|
|
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 *
|
|
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
|
|
224
|
-
|
|
224
|
+
const a = Math.sin(Math.PI / 4);
|
|
225
|
+
c = g.map((n) => Math.max(
|
|
225
226
|
...n.map((o) => {
|
|
226
|
-
const
|
|
227
|
-
return x > 0 ? x *
|
|
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
|
-
...
|
|
231
|
-
const o = this.scales.xPrimary[n].domain(),
|
|
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
|
-
|
|
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" && (
|
|
240
|
-
(
|
|
241
|
-
...
|
|
242
|
-
(n) =>
|
|
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 =
|
|
250
|
-
t.map((
|
|
251
|
-
if (
|
|
250
|
+
const T = j.flatten(
|
|
251
|
+
t.map((a) => {
|
|
252
|
+
if (i.hiddenLabels)
|
|
252
253
|
return [];
|
|
253
|
-
const n = this.scales.y[
|
|
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
|
-
),
|
|
257
|
+
), y = h(T);
|
|
257
258
|
this.captionsSizes = {
|
|
258
259
|
xCaptionsTail: f,
|
|
259
|
-
xAxisCaptionsWidthByRows:
|
|
260
|
-
yAxisCaptionsWidth:
|
|
260
|
+
xAxisCaptionsWidthByRows: c,
|
|
261
|
+
yAxisCaptionsWidth: y
|
|
261
262
|
};
|
|
262
263
|
}
|
|
263
264
|
updateMargins(e, t, s) {
|
|
264
|
-
const
|
|
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(
|
|
267
|
-
right: this.legend.width +
|
|
268
|
-
top: Math.max(
|
|
269
|
-
bottom: Math.max(
|
|
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,
|
|
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
|
|
278
|
-
function
|
|
279
|
-
return
|
|
280
|
-
const
|
|
281
|
-
return
|
|
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
|
|
285
|
+
function c(a) {
|
|
285
286
|
return {
|
|
286
|
-
dotFill:
|
|
287
|
-
fillColor:
|
|
288
|
-
lineColor:
|
|
289
|
-
dotShape:
|
|
290
|
-
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 =
|
|
294
|
-
if (Object.values(f).some((
|
|
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
|
-
...
|
|
303
|
-
}), Object.values(g).some((
|
|
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
|
-
...
|
|
312
|
-
}), !
|
|
312
|
+
...p
|
|
313
|
+
}), !h.length) {
|
|
313
314
|
this.legend = { width: 0, height: 0, items: [] };
|
|
314
315
|
return;
|
|
315
316
|
}
|
|
316
|
-
const
|
|
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:
|
|
319
|
-
height:
|
|
320
|
-
items:
|
|
319
|
+
width: y,
|
|
320
|
+
height: r,
|
|
321
|
+
items: d
|
|
321
322
|
};
|
|
322
323
|
}
|
|
323
|
-
render(e, t, s,
|
|
324
|
-
var
|
|
325
|
-
const { orientation:
|
|
326
|
-
this.updateChartSize(
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
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
|
-
|
|
333
|
-
r,
|
|
332
|
+
p,
|
|
334
333
|
m,
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
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:
|
|
342
|
-
chartSettings:
|
|
343
|
-
facetKeys:
|
|
344
|
-
facetSettings:
|
|
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:
|
|
350
|
-
statsData:
|
|
350
|
+
layersData: c,
|
|
351
|
+
statsData: f,
|
|
351
352
|
legendData: this.legend,
|
|
352
353
|
margins: this.margins,
|
|
353
354
|
columnsCount: this.columnsCount,
|
|
354
|
-
keyColumn:
|
|
355
|
+
keyColumn: g,
|
|
355
356
|
xLabels: this.axisLabelsX,
|
|
356
357
|
chartTitle: this.mainTitle,
|
|
357
|
-
onlyPositive:
|
|
358
|
-
secondaryGrouping:
|
|
359
|
-
onTooltipHintSwitch:
|
|
358
|
+
onlyPositive: T,
|
|
359
|
+
secondaryGrouping: r,
|
|
360
|
+
onTooltipHintSwitch: y
|
|
360
361
|
}
|
|
361
|
-
);
|
|
362
|
-
this.component =
|
|
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__ */
|
|
367
|
+
(t = this.reactRoot) == null || t.render(/* @__PURE__ */ A.jsx(Y, { message: e }));
|
|
367
368
|
}
|
|
368
369
|
}
|
|
369
370
|
export {
|
|
370
|
-
|
|
371
|
+
wt as default
|
|
371
372
|
};
|
|
372
373
|
//# sourceMappingURL=ChartRenderer.js.map
|