@milaboratories/graph-maker 1.1.137 → 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.
- package/README.md +120 -24
- package/dist/GraphMaker/components/LassoControls/index.vue.js +15 -13
- package/dist/GraphMaker/components/LassoControls/index.vue.js.map +1 -1
- package/dist/GraphMaker/components/SettingsTabs/icons/AxesIcon.vue.d.ts.map +1 -0
- package/dist/GraphMaker/{icons → components/SettingsTabs/icons}/AxesIcon.vue.js +1 -1
- package/dist/GraphMaker/components/SettingsTabs/icons/AxesIcon.vue.js.map +1 -0
- package/dist/GraphMaker/components/SettingsTabs/icons/DeleteChartIcon.vue.d.ts.map +1 -0
- package/dist/GraphMaker/{icons → components/SettingsTabs/icons}/DeleteChartIcon.vue.js +1 -1
- package/dist/GraphMaker/components/SettingsTabs/icons/DeleteChartIcon.vue.js.map +1 -0
- package/dist/GraphMaker/components/SettingsTabs/icons/ExportIcon.vue.d.ts.map +1 -0
- package/dist/GraphMaker/{icons → components/SettingsTabs/icons}/ExportIcon.vue.js +1 -1
- package/dist/GraphMaker/components/SettingsTabs/icons/ExportIcon.vue.js.map +1 -0
- package/dist/GraphMaker/components/SettingsTabs/icons/LayersIcon.vue.d.ts.map +1 -0
- package/dist/GraphMaker/{icons → components/SettingsTabs/icons}/LayersIcon.vue.js +1 -1
- package/dist/GraphMaker/components/SettingsTabs/icons/LayersIcon.vue.js.map +1 -0
- package/dist/GraphMaker/components/SettingsTabs/icons/LinkIcon.vue.d.ts.map +1 -0
- package/dist/GraphMaker/{icons → components/SettingsTabs/icons}/LinkIcon.vue.js +1 -1
- package/dist/GraphMaker/components/SettingsTabs/icons/LinkIcon.vue.js.map +1 -0
- package/dist/GraphMaker/components/SettingsTabs/icons/LogIcon.vue.d.ts +3 -0
- package/dist/GraphMaker/components/SettingsTabs/icons/LogIcon.vue.d.ts.map +1 -0
- package/dist/GraphMaker/components/SettingsTabs/icons/LogIcon.vue.js +12 -0
- package/dist/GraphMaker/components/SettingsTabs/icons/LogIcon.vue.js.map +1 -0
- package/dist/GraphMaker/components/SettingsTabs/icons/LogIcon.vue2.js +5 -0
- package/dist/GraphMaker/components/SettingsTabs/icons/LogIcon.vue2.js.map +1 -0
- package/dist/GraphMaker/components/SettingsTabs/icons/SettingsIcon.vue.d.ts.map +1 -0
- package/dist/GraphMaker/components/SettingsTabs/index.vue.d.ts +2 -0
- package/dist/GraphMaker/components/SettingsTabs/index.vue.d.ts.map +1 -1
- package/dist/GraphMaker/components/SettingsTabs/index.vue.js +17 -15
- package/dist/GraphMaker/components/SettingsTabs/index.vue.js.map +1 -1
- package/dist/GraphMaker/forms/LogForm.vue.d.ts +19 -0
- package/dist/GraphMaker/forms/LogForm.vue.d.ts.map +1 -0
- package/dist/GraphMaker/forms/LogForm.vue.js +22 -0
- package/dist/GraphMaker/forms/LogForm.vue.js.map +1 -0
- package/dist/GraphMaker/forms/index.d.ts +22 -0
- package/dist/GraphMaker/forms/index.d.ts.map +1 -1
- package/dist/GraphMaker/forms/index.js +35 -28
- package/dist/GraphMaker/forms/index.js.map +1 -1
- package/dist/GraphMaker/index.vue.d.ts +1 -0
- package/dist/GraphMaker/index.vue.d.ts.map +1 -1
- package/dist/GraphMaker/index.vue.js +146 -144
- package/dist/GraphMaker/index.vue.js.map +1 -1
- package/dist/GraphMaker/store.d.ts.map +1 -1
- package/dist/GraphMaker/store.js +71 -67
- package/dist/GraphMaker/store.js.map +1 -1
- package/dist/GraphMaker/utils/createChartSettingsForRender/composeBubbleSettings.d.ts +9 -3
- package/dist/GraphMaker/utils/createChartSettingsForRender/composeBubbleSettings.d.ts.map +1 -1
- package/dist/GraphMaker/utils/createChartSettingsForRender/composeDendroSettings.d.ts +17 -2
- package/dist/GraphMaker/utils/createChartSettingsForRender/composeDendroSettings.d.ts.map +1 -1
- package/dist/GraphMaker/utils/createChartSettingsForRender/composeDiscreteSettings.d.ts +13 -4
- package/dist/GraphMaker/utils/createChartSettingsForRender/composeDiscreteSettings.d.ts.map +1 -1
- package/dist/GraphMaker/utils/createChartSettingsForRender/composeHeatmapSettings.d.ts +28 -7
- package/dist/GraphMaker/utils/createChartSettingsForRender/composeHeatmapSettings.d.ts.map +1 -1
- package/dist/GraphMaker/utils/createChartSettingsForRender/composeHistogramSettings.d.ts +6 -2
- package/dist/GraphMaker/utils/createChartSettingsForRender/composeHistogramSettings.d.ts.map +1 -1
- package/dist/GraphMaker/utils/createChartSettingsForRender/composeScatterplotSettings.d.ts +16 -2
- package/dist/GraphMaker/utils/createChartSettingsForRender/composeScatterplotSettings.d.ts.map +1 -1
- package/dist/GraphMaker/utils/createChartSettingsForRender/composeScatterplotUmapSettings.d.ts +14 -2
- package/dist/GraphMaker/utils/createChartSettingsForRender/composeScatterplotUmapSettings.d.ts.map +1 -1
- package/dist/lib.js +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 +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 +42 -38
- 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/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 +200 -199
- 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 +45 -44
- 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 +107 -106
- 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 +18 -18
- 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 +30 -29
- 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 +59 -55
- 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 +26 -26
- 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 -22
- package/dist/node_modules/@milaboratories/miplots4/dist/scatterplot/dots.js.map +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/scatterplot/getLayersData.js +11 -14
- package/dist/node_modules/@milaboratories/miplots4/dist/scatterplot/getLayersData.js.map +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/scatterplot/index.js +57 -58
- 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 +44 -37
- 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-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 +22 -22
- 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 +89 -114
- 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 +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/types/scatterplot-umap.js.map +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/types/scatterplot.js +4 -4
- 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/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 +1031 -1023
- package/dist/node_modules/@milaboratories/pf-plots/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/dist/GraphMaker/icons/AxesIcon.vue.d.ts.map +0 -1
- package/dist/GraphMaker/icons/AxesIcon.vue.js.map +0 -1
- package/dist/GraphMaker/icons/DeleteChartIcon.vue.d.ts.map +0 -1
- package/dist/GraphMaker/icons/DeleteChartIcon.vue.js.map +0 -1
- package/dist/GraphMaker/icons/ExportIcon.vue.d.ts.map +0 -1
- package/dist/GraphMaker/icons/ExportIcon.vue.js.map +0 -1
- package/dist/GraphMaker/icons/LayersIcon.vue.d.ts.map +0 -1
- package/dist/GraphMaker/icons/LayersIcon.vue.js.map +0 -1
- package/dist/GraphMaker/icons/LinkIcon.vue.d.ts.map +0 -1
- package/dist/GraphMaker/icons/LinkIcon.vue.js.map +0 -1
- package/dist/GraphMaker/icons/SettingsIcon.vue.d.ts.map +0 -1
- 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
- /package/dist/GraphMaker/{icons → components/SettingsTabs/icons}/AxesIcon.vue.d.ts +0 -0
- /package/dist/GraphMaker/{icons → components/SettingsTabs/icons}/DeleteChartIcon.vue.d.ts +0 -0
- /package/dist/GraphMaker/{icons → components/SettingsTabs/icons}/ExportIcon.vue.d.ts +0 -0
- /package/dist/GraphMaker/{icons → components/SettingsTabs/icons}/LayersIcon.vue.d.ts +0 -0
- /package/dist/GraphMaker/{icons → components/SettingsTabs/icons}/LinkIcon.vue.d.ts +0 -0
- /package/dist/GraphMaker/{icons → components/SettingsTabs/icons}/SettingsIcon.vue.d.ts +0 -0
- /package/dist/GraphMaker/{icons → components/SettingsTabs/icons}/SettingsIcon.vue.js +0 -0
- /package/dist/GraphMaker/{icons → components/SettingsTabs/icons}/SettingsIcon.vue.js.map +0 -0
- /package/dist/GraphMaker/{icons → components/SettingsTabs/icons}/SettingsIcon.vue2.js +0 -0
- /package/dist/GraphMaker/{icons → components/SettingsTabs/icons}/SettingsIcon.vue2.js.map +0 -0
|
@@ -1,92 +1,94 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import
|
|
18
|
-
import
|
|
1
|
+
import { j as F } from "../node_modules/react/jsx-runtime.js";
|
|
2
|
+
import et from "../node_modules/lodash/lodash.js";
|
|
3
|
+
import { createRoot as st } from "../node_modules/react-dom/client.js";
|
|
4
|
+
import { Error as ot } from "../common/Error.js";
|
|
5
|
+
import { DataFrameProvider as it } from "../common/useDataFrame.js";
|
|
6
|
+
import { TITLE_LINE_HEIGHT as at, TITLE_MARGIN as rt, DEFAULT_HEIGHT as P, DEFAULT_WIDTH as U } from "../constants.js";
|
|
7
|
+
import { arrangeLegendParts as nt } from "../utils/arrangeLegendParts.js";
|
|
8
|
+
import { getChartEdgeSides as lt } from "../utils/getChartEdgeSides.js";
|
|
9
|
+
import { getContinuousLegendTicks as q } from "../utils/getContinuousLegendTicks.js";
|
|
10
|
+
import { TextMeasurer as ht } from "../utils/TextMeasurer/TextMeasurer.js";
|
|
11
|
+
import { ChartsGroup as ct } from "./components/ChartsGroup.js";
|
|
12
|
+
import { MIN_MARGIN as N, LEGEND_OFFSET as ut, DEFAULT_AES as Y, CHART_SIDE_ELEMENTS as dt, MIN_PADDING as pt, TITLE_LINE as X } from "./constants.js";
|
|
13
|
+
import { calculateChartSideElementSizes as mt } from "./utils/calculateChartSideElementSizes.js";
|
|
14
|
+
import { calculateSideElementsBBoxes as gt } from "./utils/calculateSideElementsBBoxes.js";
|
|
15
|
+
import { createDiscreteColorScale as V, createContinuousColorScale as yt } from "./utils/createColorScales.js";
|
|
16
|
+
import { calculateAnnotationTitleSizes as ft } from "./utils/calculateAnnotationTitleSizes.js";
|
|
17
|
+
import { calculateCaptionTails as Ct } from "./utils/calculateCaptionTails.js";
|
|
18
|
+
import H from "../node_modules/d3-scale/src/ordinal.js";
|
|
19
|
+
import I from "../node_modules/d3-scale/src/linear.js";
|
|
19
20
|
import xt from "../node_modules/d3-array/src/extent.js";
|
|
20
21
|
import J from "../node_modules/d3-hierarchy/src/cluster.js";
|
|
21
|
-
var St = Object.defineProperty,
|
|
22
|
-
const
|
|
23
|
-
function Z(
|
|
24
|
-
function
|
|
25
|
-
|
|
22
|
+
var St = Object.defineProperty, bt = (u, e, s) => e in u ? St(u, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : u[e] = s, A = (u, e, s) => bt(u, typeof e != "symbol" ? e + "" : e, s);
|
|
23
|
+
const At = Math.cos(Math.PI / 4), Gt = 5;
|
|
24
|
+
function Z(u, e, s) {
|
|
25
|
+
function t(r) {
|
|
26
|
+
r[s] = e(r.data.height), r.children && r.children.forEach(t);
|
|
26
27
|
}
|
|
27
|
-
|
|
28
|
+
t(u);
|
|
28
29
|
}
|
|
29
|
-
function Q(
|
|
30
|
-
function
|
|
31
|
-
i[
|
|
30
|
+
function Q(u, e, s, t = s) {
|
|
31
|
+
function r(i) {
|
|
32
|
+
i[t] = i[s] + e, i.children && i.children.forEach(r);
|
|
32
33
|
}
|
|
33
|
-
|
|
34
|
+
r(u);
|
|
34
35
|
}
|
|
35
|
-
const
|
|
36
|
-
const
|
|
37
|
-
if (
|
|
38
|
-
const
|
|
39
|
-
for (let
|
|
40
|
-
|
|
41
|
-
return
|
|
36
|
+
const zt = (u, e) => {
|
|
37
|
+
const s = Math.min(...e), t = Math.max(...e);
|
|
38
|
+
if (s === t) {
|
|
39
|
+
const n = u % 2 === 0 ? [] : [s];
|
|
40
|
+
for (let l = 1; l < u / 2 + 1; l++)
|
|
41
|
+
n.push(s + l), n.unshift(s - l);
|
|
42
|
+
return n;
|
|
42
43
|
}
|
|
43
|
-
if (
|
|
44
|
-
return [
|
|
45
|
-
const
|
|
46
|
-
for (let
|
|
47
|
-
i.push(
|
|
48
|
-
return i.push(
|
|
44
|
+
if (u < 2)
|
|
45
|
+
return [s, t];
|
|
46
|
+
const r = (t - s) / (u - 1), i = [];
|
|
47
|
+
for (let n = 0; n < u - 1; n++)
|
|
48
|
+
i.push(s + r * n);
|
|
49
|
+
return i.push(t), i;
|
|
49
50
|
};
|
|
50
|
-
function tt(
|
|
51
|
-
let
|
|
52
|
-
return
|
|
51
|
+
function tt(u, e, s) {
|
|
52
|
+
let t = s;
|
|
53
|
+
return u && (u.colorRange && (t = u.colorRange), u.method === "standardScaling" && (t = [-2, 2]), u.method === "meanNormalization" && (t = [-0.75, 0.75])), zt(e, t);
|
|
53
54
|
}
|
|
54
|
-
function
|
|
55
|
-
let
|
|
56
|
-
for (const
|
|
57
|
-
|
|
58
|
-
i
|
|
55
|
+
function k(u, e, s) {
|
|
56
|
+
let t = 0;
|
|
57
|
+
for (const r of u) {
|
|
58
|
+
if (e[r] === void 0) continue;
|
|
59
|
+
const i = s.getTextWidth(e[r]);
|
|
60
|
+
i > t && (t = i);
|
|
59
61
|
}
|
|
60
|
-
return
|
|
62
|
+
return t;
|
|
61
63
|
}
|
|
62
|
-
function
|
|
63
|
-
return
|
|
64
|
+
function O(u, e) {
|
|
65
|
+
return e === 90 ? u : e === 45 ? u * At + (u > 0 ? 2 * Gt : 0) : X;
|
|
64
66
|
}
|
|
65
|
-
class
|
|
67
|
+
class Ut {
|
|
66
68
|
constructor() {
|
|
67
|
-
A(this, "reactRoot", null), A(this, "parentNode", null), A(this, "rootNode", null), A(this, "component", /* @__PURE__ */
|
|
68
|
-
chartWidth:
|
|
69
|
+
A(this, "reactRoot", null), A(this, "parentNode", null), A(this, "rootNode", null), A(this, "component", /* @__PURE__ */ F.jsx(F.Fragment, {})), A(this, "chartsDimensions", {}), A(this, "chartSizes", {
|
|
70
|
+
chartWidth: U,
|
|
69
71
|
// width of single chart
|
|
70
|
-
chartHeight:
|
|
72
|
+
chartHeight: P,
|
|
71
73
|
// height of single chart
|
|
72
|
-
chartsWidth:
|
|
74
|
+
chartsWidth: U,
|
|
73
75
|
// width of all charts in charts row
|
|
74
|
-
chartsHeight:
|
|
76
|
+
chartsHeight: P,
|
|
75
77
|
// width of all charts in charts column, without axes
|
|
76
|
-
totalWidth:
|
|
78
|
+
totalWidth: U,
|
|
77
79
|
// width of all charts in charts row, plus left axis, plus legend
|
|
78
|
-
totalHeight:
|
|
80
|
+
totalHeight: P
|
|
79
81
|
// width of all charts in charts height, plus bottom axis, plus top title
|
|
80
82
|
}), A(this, "margins", {
|
|
81
|
-
top:
|
|
82
|
-
bottom:
|
|
83
|
-
left:
|
|
84
|
-
right:
|
|
83
|
+
top: N,
|
|
84
|
+
bottom: N,
|
|
85
|
+
left: N,
|
|
86
|
+
right: N
|
|
85
87
|
}), A(this, "captionsSizes", {
|
|
86
88
|
xAxisCaptions: 100,
|
|
87
89
|
yAxisCaptions: 100,
|
|
88
|
-
xGroupCaptions:
|
|
89
|
-
yGroupCaptions:
|
|
90
|
+
xGroupCaptions: X,
|
|
91
|
+
yGroupCaptions: X,
|
|
90
92
|
xCaptionTail: 0,
|
|
91
93
|
yCaptionTail: 0
|
|
92
94
|
}), A(this, "labelAngles", {
|
|
@@ -96,279 +98,279 @@ class Ft {
|
|
|
96
98
|
yGroupLabels: 0
|
|
97
99
|
}), A(this, "columnsCount", 1), A(this, "rowsCount", 1), A(this, "scales", {
|
|
98
100
|
// scales grouped by facet
|
|
99
|
-
x: { null:
|
|
100
|
-
y: { null:
|
|
101
|
-
}), A(this, "step", { x: {}, y: {} }), A(this, "colorScale",
|
|
101
|
+
x: { null: H().domain(["null"]).range([1]) },
|
|
102
|
+
y: { null: H().domain(["null"]).range([1]) }
|
|
103
|
+
}), A(this, "step", { x: {}, y: {} }), A(this, "colorScale", I().domain([0, 1]).range(["white", "black"])), A(this, "annotationColorScales", {}), A(this, "dendrogramAesScales", {}), A(this, "legend", {
|
|
102
104
|
width: 0,
|
|
103
105
|
height: 0,
|
|
104
106
|
items: []
|
|
105
107
|
}), A(this, "dendrograms", {});
|
|
106
108
|
}
|
|
107
109
|
clear() {
|
|
108
|
-
var
|
|
109
|
-
this.parentNode && this.rootNode && ((
|
|
110
|
-
var
|
|
111
|
-
(
|
|
110
|
+
var e;
|
|
111
|
+
this.parentNode && this.rootNode && ((e = this.parentNode) == null || e.removeChild(this.rootNode), this.parentNode = null, this.rootNode = null), setTimeout(() => {
|
|
112
|
+
var s;
|
|
113
|
+
(s = this.reactRoot) == null || s.unmount(), this.reactRoot = null;
|
|
112
114
|
});
|
|
113
115
|
}
|
|
114
|
-
init(
|
|
115
|
-
this.parentNode === null && (this.parentNode =
|
|
116
|
+
init(e) {
|
|
117
|
+
this.parentNode === null && (this.parentNode = e, this.rootNode = document.createElement("div"), this.parentNode.appendChild(this.rootNode), this.reactRoot = st(this.rootNode));
|
|
116
118
|
}
|
|
117
|
-
updateMargins(
|
|
119
|
+
updateMargins(e) {
|
|
118
120
|
this.margins = {
|
|
119
|
-
top:
|
|
120
|
-
bottom:
|
|
121
|
-
left:
|
|
122
|
-
right: this.legend.width +
|
|
121
|
+
top: e.show ? at + rt * 2 : N,
|
|
122
|
+
bottom: N,
|
|
123
|
+
left: N,
|
|
124
|
+
right: this.legend.width + N
|
|
123
125
|
}, this.chartSizes.totalWidth = this.margins.left + this.chartSizes.chartsWidth + this.margins.right, this.chartSizes.totalHeight = this.margins.top + Math.max(this.chartSizes.chartsHeight + this.margins.bottom, this.legend.height);
|
|
124
126
|
}
|
|
125
|
-
updateLegendSize(s, t,
|
|
126
|
-
if (!
|
|
127
|
+
updateLegendSize(e, s, t, r, i) {
|
|
128
|
+
if (!s.show) {
|
|
127
129
|
this.legend = { width: 0, height: 0, items: [] };
|
|
128
130
|
return;
|
|
129
131
|
}
|
|
130
|
-
const
|
|
131
|
-
if (
|
|
132
|
-
const c = this.colorScale,
|
|
133
|
-
|
|
132
|
+
const n = this.chartSizes.chartHeight, l = [], p = { width: 0, height: 0, left: 0, top: 0 }, G = (c) => c.reduce((h, a) => (h[a] = String(a), h), {});
|
|
133
|
+
if (e === "continuous") {
|
|
134
|
+
const c = this.colorScale, h = q(c, i), a = I([h[0], h[h.length - 1]], [n, 0]), o = r.label ?? r.value;
|
|
135
|
+
l.push({
|
|
134
136
|
...p,
|
|
135
137
|
type: "continuous",
|
|
136
138
|
id: "heatmapValue",
|
|
137
139
|
scale: c,
|
|
138
|
-
values:
|
|
140
|
+
values: h,
|
|
139
141
|
title: o,
|
|
140
142
|
tickPositionScale: a
|
|
141
143
|
});
|
|
142
|
-
} else if (
|
|
143
|
-
const c = this.colorScale,
|
|
144
|
-
|
|
144
|
+
} else if (e === "discrete") {
|
|
145
|
+
const c = this.colorScale, h = r.label ?? r.value, a = c.domain(), o = G(a);
|
|
146
|
+
l.push({ ...p, type: "discreteColor", id: "heatmapValue", title: h, scale: c, values: a, labels: o });
|
|
145
147
|
}
|
|
146
|
-
if (
|
|
147
|
-
const
|
|
148
|
+
if (t.forEach((c) => {
|
|
149
|
+
const h = c.valueColumn.label ?? c.valueColumn.value;
|
|
148
150
|
if (c.type === "continuous") {
|
|
149
|
-
const a = this.annotationColorScales[c.id].scale, o =
|
|
150
|
-
|
|
151
|
+
const a = this.annotationColorScales[c.id].scale, o = q(a, i), f = I([o[0], o[o.length - 1]], [n, 0]);
|
|
152
|
+
l.push({ ...p, type: "continuous", id: c.id, tickPositionScale: f, title: h, scale: a, values: o });
|
|
151
153
|
}
|
|
152
154
|
if (c.type === "discrete") {
|
|
153
|
-
const a = this.annotationColorScales[c.id].scale, o = a.domain(),
|
|
154
|
-
|
|
155
|
+
const a = this.annotationColorScales[c.id].scale, o = a.domain(), f = G(o);
|
|
156
|
+
l.push({ ...p, type: "discreteColor", id: c.id, title: h, scale: a, values: o, labels: f });
|
|
155
157
|
}
|
|
156
|
-
}), !
|
|
158
|
+
}), !l.length) {
|
|
157
159
|
this.legend = { width: 0, height: 0, items: [] };
|
|
158
160
|
return;
|
|
159
161
|
}
|
|
160
|
-
const
|
|
162
|
+
const y = nt(l, this.chartSizes.chartHeight), g = y[y.length - 1], S = g.left + g.width + ut;
|
|
161
163
|
this.legend = {
|
|
162
|
-
width:
|
|
163
|
-
height:
|
|
164
|
-
items:
|
|
164
|
+
width: S,
|
|
165
|
+
height: n,
|
|
166
|
+
items: y
|
|
165
167
|
};
|
|
166
168
|
}
|
|
167
|
-
updateCaptionsSize(s, t,
|
|
168
|
-
const i = new
|
|
169
|
+
updateCaptionsSize(e, s, t, r) {
|
|
170
|
+
const i = new ht("bold 16px Manrope"), { xGroupKeys: n, yGroupKeys: l, xGroupLabels: p, yGroupLabels: G, xKeysByGroups: y, yKeysByGroups: g, xLabels: S, yLabels: c } = e.meta;
|
|
169
171
|
this.labelAngles = {
|
|
170
|
-
xAxisLabels:
|
|
171
|
-
yAxisLabels:
|
|
172
|
-
xGroupLabels:
|
|
173
|
-
yGroupLabels:
|
|
172
|
+
xAxisLabels: s.axisLabelsAngle,
|
|
173
|
+
yAxisLabels: t.axisLabelsAngle,
|
|
174
|
+
xGroupLabels: s.groupLabelsAngle,
|
|
175
|
+
yGroupLabels: t.groupLabelsAngle
|
|
174
176
|
};
|
|
175
|
-
const
|
|
177
|
+
const h = n.reduce((C, x) => Math.max(C, k(y[x], S, i)), 0), a = l.reduce((C, x) => Math.max(C, k(g[x], c, i)), 0), o = k(n, p, i), f = k(l, G, i), { xCaptionTail: d, yCaptionTail: m } = Ct(
|
|
176
178
|
this.labelAngles,
|
|
177
|
-
|
|
179
|
+
r,
|
|
178
180
|
this.scales,
|
|
179
181
|
this.step,
|
|
180
|
-
|
|
182
|
+
e,
|
|
181
183
|
i
|
|
182
184
|
);
|
|
183
185
|
this.captionsSizes = {
|
|
184
|
-
xCaptionTail:
|
|
185
|
-
yCaptionTail:
|
|
186
|
-
xGroupCaptions:
|
|
187
|
-
yGroupCaptions:
|
|
188
|
-
xAxisCaptions:
|
|
189
|
-
yAxisCaptions:
|
|
186
|
+
xCaptionTail: d,
|
|
187
|
+
yCaptionTail: m,
|
|
188
|
+
xGroupCaptions: O(o, this.labelAngles.xGroupLabels),
|
|
189
|
+
yGroupCaptions: O(f, this.labelAngles.yGroupLabels),
|
|
190
|
+
xAxisCaptions: O(h, this.labelAngles.xAxisLabels),
|
|
191
|
+
yAxisCaptions: O(a, this.labelAngles.yAxisLabels)
|
|
190
192
|
};
|
|
191
193
|
}
|
|
192
|
-
updateChartDimensions(s, t,
|
|
193
|
-
const
|
|
194
|
-
this.columnsCount = i.nRows ? Math.ceil(
|
|
195
|
-
const { width:
|
|
194
|
+
updateChartDimensions(e, s, t, r, i, n, l, p, G, y) {
|
|
195
|
+
const g = s.length, S = Math.min(i.nRows ?? g, g), c = Math.min(i.nCols ?? g, g);
|
|
196
|
+
this.columnsCount = i.nRows ? Math.ceil(g / S) : c, this.rowsCount = Math.ceil(g / this.columnsCount);
|
|
197
|
+
const { width: h, height: a } = e, { sharedX: o, sharedY: f } = i;
|
|
196
198
|
this.chartsDimensions = {};
|
|
197
|
-
let
|
|
198
|
-
|
|
199
|
-
const
|
|
200
|
-
|
|
201
|
-
|
|
199
|
+
let d = 0, m = 0;
|
|
200
|
+
s.forEach((z, E) => {
|
|
201
|
+
const w = E % this.columnsCount + 1, v = lt(E, s.length, this.columnsCount, this.rowsCount), D = this.step.x[z], R = this.step.y[z], M = mt(
|
|
202
|
+
n,
|
|
203
|
+
l,
|
|
202
204
|
this.captionsSizes,
|
|
203
205
|
p,
|
|
204
206
|
G,
|
|
205
|
-
S,
|
|
206
|
-
T,
|
|
207
|
-
o,
|
|
208
207
|
y,
|
|
208
|
+
v,
|
|
209
|
+
o,
|
|
210
|
+
f,
|
|
211
|
+
s,
|
|
209
212
|
t,
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
function N(w) {
|
|
213
|
+
r,
|
|
214
|
+
D,
|
|
215
|
+
R
|
|
216
|
+
), W = ft(p, v, o, f);
|
|
217
|
+
function B(K) {
|
|
216
218
|
return Math.max(
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
219
|
+
dt[K].reduce((b, L) => b + M[K][L], 0),
|
|
220
|
+
W[K],
|
|
221
|
+
pt
|
|
220
222
|
);
|
|
221
223
|
}
|
|
222
|
-
const
|
|
223
|
-
left:
|
|
224
|
-
right:
|
|
225
|
-
top:
|
|
226
|
-
bottom:
|
|
224
|
+
const T = {
|
|
225
|
+
left: B("left"),
|
|
226
|
+
right: B("right"),
|
|
227
|
+
top: B("top"),
|
|
228
|
+
bottom: B("bottom")
|
|
227
229
|
};
|
|
228
|
-
|
|
229
|
-
const
|
|
230
|
-
this.chartsDimensions[
|
|
231
|
-
left:
|
|
232
|
-
top:
|
|
233
|
-
inner: { width:
|
|
234
|
-
outer: { width:
|
|
235
|
-
padding:
|
|
236
|
-
sideElementBBoxes:
|
|
237
|
-
chartEdgeSides:
|
|
238
|
-
},
|
|
230
|
+
T.left < this.captionsSizes.xCaptionTail && (T.left = this.captionsSizes.xCaptionTail), T.bottom < this.captionsSizes.yCaptionTail && (T.bottom = this.captionsSizes.yCaptionTail);
|
|
231
|
+
const j = gt(M, h, a), _ = h + T.left + T.right, $ = a + T.top + T.bottom;
|
|
232
|
+
this.chartsDimensions[z] = {
|
|
233
|
+
left: d,
|
|
234
|
+
top: m,
|
|
235
|
+
inner: { width: h, height: a },
|
|
236
|
+
outer: { width: _, height: $ },
|
|
237
|
+
padding: T,
|
|
238
|
+
sideElementBBoxes: j,
|
|
239
|
+
chartEdgeSides: v
|
|
240
|
+
}, d += _, w === this.columnsCount && (d = 0, m += $);
|
|
239
241
|
});
|
|
240
|
-
const
|
|
241
|
-
this.chartSizes.chartsWidth =
|
|
242
|
+
const C = s.slice(0, this.columnsCount).reduce((z, E) => z + this.chartsDimensions[E].outer.width, 0), x = s.filter((z, E) => E % this.columnsCount === 0).reduce((z, E) => z + this.chartsDimensions[E].outer.height, 0);
|
|
243
|
+
this.chartSizes.chartsWidth = C, this.chartSizes.chartsHeight = x;
|
|
242
244
|
}
|
|
243
|
-
updateChartsSizes(
|
|
244
|
-
const { width:
|
|
245
|
-
this.chartSizes.chartWidth =
|
|
245
|
+
updateChartsSizes(e) {
|
|
246
|
+
const { width: s, height: t } = e;
|
|
247
|
+
this.chartSizes.chartWidth = s, this.chartSizes.chartHeight = t;
|
|
246
248
|
}
|
|
247
249
|
// update scales for cell positions, x and y for each facet
|
|
248
|
-
updateScales(s, t,
|
|
249
|
-
const { width:
|
|
250
|
-
(
|
|
251
|
-
),
|
|
252
|
-
(
|
|
250
|
+
updateScales(e, s, t, r, i, n, l, p, G) {
|
|
251
|
+
const { width: y, height: g } = i, { meta: S, facets: c } = s, { sharedX: h, sharedY: a } = r, o = (d, m = {}) => d.sort(
|
|
252
|
+
(C, x) => n.sorting === "asc" ? (m[C] ?? C).localeCompare(m[x] ?? x, "en", { numeric: !0 }) : (m[x] ?? x).localeCompare(m[C] ?? C, "en", { numeric: !0 })
|
|
253
|
+
), f = (d, m = {}) => d.sort(
|
|
254
|
+
(C, x) => l.sorting === "asc" ? (m[C] ?? C).localeCompare(m[x] ?? x, "en", { numeric: !0 }) : (m[x] ?? x).localeCompare(m[C] ?? C, "en", { numeric: !0 })
|
|
253
255
|
);
|
|
254
|
-
|
|
255
|
-
const
|
|
256
|
-
let
|
|
257
|
-
|
|
258
|
-
const
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
}),
|
|
256
|
+
e.forEach((d) => {
|
|
257
|
+
const m = c[d], C = o(S.xGroupKeys), x = f(S.yGroupKeys), { xKeysByGroups: z } = h ? S : m, { yKeysByGroups: E } = a ? S : m, w = C.map((b) => z[b].length), v = x.map((b) => E[b].length), D = w.reduce((b, L) => b + L, 0), R = v.reduce((b, L) => b + L, 0), M = (y - (w.filter((b) => b > 0).length - 1) * t) / D, W = (g - (v.filter((b) => b > 0).length - 1) * t) / R, B = [], T = [];
|
|
258
|
+
let j = 0;
|
|
259
|
+
C.forEach((b) => {
|
|
260
|
+
const L = p ? z[b] : o(z[b], S.xLabels);
|
|
261
|
+
T.push(...L), L.forEach(() => {
|
|
262
|
+
B.push(j), j += M;
|
|
263
|
+
}), L.length > 0 && (j += t);
|
|
262
264
|
});
|
|
263
|
-
const
|
|
264
|
-
let
|
|
265
|
+
const _ = [], $ = [];
|
|
266
|
+
let K = 0;
|
|
265
267
|
x.forEach((b) => {
|
|
266
|
-
const
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
}),
|
|
270
|
-
}), this.scales.x[
|
|
268
|
+
const L = G ? E[b] : f(E[b], S.yLabels);
|
|
269
|
+
$.push(...L), L.forEach(() => {
|
|
270
|
+
_.push(K), K += W;
|
|
271
|
+
}), L.length > 0 && (K += t);
|
|
272
|
+
}), this.scales.x[d] = H().domain(T).range(B), this.scales.y[d] = H().domain($).range(_), this.step.x[d] = M, this.step.y[d] = W;
|
|
271
273
|
});
|
|
272
274
|
}
|
|
273
|
-
updateAesScale(s, t,
|
|
274
|
-
if (
|
|
275
|
-
|
|
276
|
-
else if (
|
|
277
|
-
const
|
|
278
|
-
this.colorScale =
|
|
279
|
-
} else
|
|
275
|
+
updateAesScale(e, s, t, r, i, n, l) {
|
|
276
|
+
if (e === "continuous")
|
|
277
|
+
t.valueColors ? this.colorScale = I().domain(t.valuesByColors ?? tt(l, t.valueColors.length, s)).range(t.valueColors) : t.colorsList && (this.colorScale = I().domain(tt(l, t.colorsList.length, s)).range(t.colorsList));
|
|
278
|
+
else if (t.colorsMap) {
|
|
279
|
+
const y = Object.entries(t.colorsMap);
|
|
280
|
+
this.colorScale = H().domain(y.map((g) => g[0])).range(y.map((g) => g[1])).unknown("#ccc");
|
|
281
|
+
} else t.colorsList && (this.colorScale = V(t.colorsList, n.map(String)));
|
|
280
282
|
const { xDataByKeys: p, yDataByKeys: G } = i.meta;
|
|
281
|
-
|
|
282
|
-
const { colors:
|
|
283
|
-
if (
|
|
284
|
-
const o =
|
|
285
|
-
this.annotationColorScales[
|
|
283
|
+
r.forEach((y) => {
|
|
284
|
+
const { colors: g, type: S, axis: c, valueColumn: h } = y, a = (c === "x" ? p : G)[h.value];
|
|
285
|
+
if (S === "discrete") {
|
|
286
|
+
const o = et.uniq(Object.values(a).map(String)).sort();
|
|
287
|
+
this.annotationColorScales[y.id] = {
|
|
286
288
|
type: "discrete",
|
|
287
|
-
scale:
|
|
289
|
+
scale: V(g, o)
|
|
288
290
|
};
|
|
289
291
|
} else {
|
|
290
292
|
const o = Object.values(a).map(Number);
|
|
291
293
|
if (!o.length)
|
|
292
294
|
return;
|
|
293
|
-
const [
|
|
294
|
-
this.annotationColorScales[
|
|
295
|
+
const [f = o[0], d = o[0]] = xt(o);
|
|
296
|
+
this.annotationColorScales[y.id] = {
|
|
295
297
|
type: "continuous",
|
|
296
|
-
scale:
|
|
298
|
+
scale: yt(g, f, d, 0, 0.5, 1)
|
|
297
299
|
};
|
|
298
300
|
}
|
|
299
301
|
});
|
|
300
302
|
}
|
|
301
|
-
updateDendrogram(s, t,
|
|
302
|
-
|
|
303
|
-
this.dendrograms[p] = { x: { treesByGroupKey: {}, data:
|
|
304
|
-
const { xKeysByGroups: G, yKeysByGroups:
|
|
305
|
-
if (
|
|
306
|
-
const c =
|
|
303
|
+
updateDendrogram(e, s, t, r, i, n, l) {
|
|
304
|
+
e.forEach((p) => {
|
|
305
|
+
this.dendrograms[p] = { x: { treesByGroupKey: {}, data: n }, y: { treesByGroupKey: {}, data: l } };
|
|
306
|
+
const { xKeysByGroups: G, yKeysByGroups: y } = r[p], { hierarchyByGroupX: g, hierarchyByGroupY: S } = i[p];
|
|
307
|
+
if (n) {
|
|
308
|
+
const c = s.reduce((h, a) => {
|
|
307
309
|
var o;
|
|
308
|
-
return Math.max(
|
|
310
|
+
return Math.max(h, (o = g[a]) == null ? void 0 : o.data.height);
|
|
309
311
|
}, 0);
|
|
310
|
-
this.dendrograms[p].x.treesByGroupKey =
|
|
311
|
-
const o =
|
|
312
|
-
J().separation(() => 1).size([
|
|
312
|
+
this.dendrograms[p].x.treesByGroupKey = s.reduce((h, a) => {
|
|
313
|
+
const o = g[a], f = G[a];
|
|
314
|
+
J().separation(() => 1).size([f.length * this.step.x[p], n.size])(
|
|
313
315
|
o
|
|
314
316
|
);
|
|
315
|
-
const
|
|
316
|
-
return Z(
|
|
317
|
-
}, {}), this.dendrograms[p].x.data =
|
|
317
|
+
const d = o, m = I().domain(n.position === "top" ? [0, c] : [c, 0]).range([n.size, 0]);
|
|
318
|
+
return Z(d, m, "y"), Q(d, this.scales.x[p](f[0]), "x"), h[a] = d, h;
|
|
319
|
+
}, {}), this.dendrograms[p].x.data = n;
|
|
318
320
|
}
|
|
319
|
-
if (
|
|
320
|
-
const c =
|
|
321
|
+
if (l) {
|
|
322
|
+
const c = t.reduce((h, a) => {
|
|
321
323
|
var o;
|
|
322
|
-
return Math.max(
|
|
324
|
+
return Math.max(h, (o = S[a]) == null ? void 0 : o.data.height);
|
|
323
325
|
}, 0);
|
|
324
|
-
this.dendrograms[p].y.treesByGroupKey =
|
|
325
|
-
const o =
|
|
326
|
-
J().separation(() => 1).size([
|
|
326
|
+
this.dendrograms[p].y.treesByGroupKey = t.reduce((h, a) => {
|
|
327
|
+
const o = S[a], f = y[a];
|
|
328
|
+
J().separation(() => 1).size([f.length * this.step.y[p], l.size])(
|
|
327
329
|
o
|
|
328
330
|
);
|
|
329
|
-
const
|
|
330
|
-
return Q(
|
|
331
|
-
}, {}), this.dendrograms[p].y.data =
|
|
331
|
+
const d = o, m = I().domain(l.position === "left" ? [0, c] : [c, 0]).range([l.size, 0]);
|
|
332
|
+
return Q(d, this.scales.y[p](f[0]), "x", "y"), Z(d, m, "x"), h[a] = d, h;
|
|
333
|
+
}, {}), this.dendrograms[p].y.data = l;
|
|
332
334
|
}
|
|
333
335
|
});
|
|
334
336
|
}
|
|
335
|
-
updateDendrogramAesScales(
|
|
336
|
-
if (!
|
|
337
|
+
updateDendrogramAesScales(e) {
|
|
338
|
+
if (!e)
|
|
337
339
|
return;
|
|
338
|
-
const
|
|
339
|
-
this.dendrogramAesScales =
|
|
340
|
-
const i =
|
|
341
|
-
return
|
|
342
|
-
|
|
340
|
+
const s = Object.keys(e);
|
|
341
|
+
this.dendrogramAesScales = s.reduce((t, r) => {
|
|
342
|
+
const i = e[r], n = Object.keys(i);
|
|
343
|
+
return t[r] = H().domain(n).range(
|
|
344
|
+
n.map((l) => ({
|
|
343
345
|
...Y,
|
|
344
|
-
...i[
|
|
346
|
+
...i[l]
|
|
345
347
|
}))
|
|
346
|
-
).unknown(Y),
|
|
348
|
+
).unknown(Y), t;
|
|
347
349
|
}, {});
|
|
348
350
|
}
|
|
349
|
-
render(s, t,
|
|
350
|
-
var
|
|
351
|
-
const { meta:
|
|
352
|
-
this.updateChartsSizes(
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
e,
|
|
358
|
-
L,
|
|
359
|
-
z,
|
|
351
|
+
render(e, s, t, r, i, n, l, p, G, y, g, S, c, h, a) {
|
|
352
|
+
var o;
|
|
353
|
+
const { meta: f, facets: d } = n, { facetKeys: m, xGroupKeys: C, yGroupKeys: x, valueExtent: z } = f, { xAxis: E, yAxis: w, title: v, size: D, valueType: R } = t;
|
|
354
|
+
this.updateChartsSizes(D), this.updateAesScale(R, z, i, l, n, c, h), this.updateScales(m, n, i.groupGap, r, D, t.xAxis, t.yAxis, G, y), this.updateCaptionsSize(n, E, w, r), this.updateChartDimensions(
|
|
355
|
+
D,
|
|
356
|
+
m,
|
|
357
|
+
C,
|
|
358
|
+
x,
|
|
360
359
|
r,
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
360
|
+
E,
|
|
361
|
+
w,
|
|
362
|
+
l,
|
|
363
|
+
G,
|
|
364
|
+
y
|
|
365
|
+
), this.updateLegendSize(R, t.legend, l, p, z), this.updateMargins(v), this.updateDendrogram(m, C, x, d, g, G, y), this.updateDendrogramAesScales(S);
|
|
366
|
+
const M = /* @__PURE__ */ F.jsx(it, { dataFrame: e, children: /* @__PURE__ */ F.jsx(
|
|
367
|
+
ct,
|
|
366
368
|
{
|
|
367
|
-
aes:
|
|
368
|
-
annotations:
|
|
369
|
+
aes: i,
|
|
370
|
+
annotations: l,
|
|
369
371
|
annotationColorScales: this.annotationColorScales,
|
|
370
372
|
captionsSizes: this.captionsSizes,
|
|
371
|
-
cellsMeta:
|
|
373
|
+
cellsMeta: f,
|
|
372
374
|
columnsCount: this.columnsCount,
|
|
373
375
|
chartsDimensions: this.chartsDimensions,
|
|
374
376
|
chartSettings: t,
|
|
@@ -376,28 +378,28 @@ class Ft {
|
|
|
376
378
|
colorScale: this.colorScale,
|
|
377
379
|
dendrogramAesScales: this.dendrogramAesScales,
|
|
378
380
|
dendrograms: this.dendrograms,
|
|
379
|
-
facetKeys:
|
|
380
|
-
facetSettings:
|
|
381
|
-
groupedCells:
|
|
381
|
+
facetKeys: m,
|
|
382
|
+
facetSettings: r,
|
|
383
|
+
groupedCells: d,
|
|
382
384
|
labelAngles: this.labelAngles,
|
|
383
385
|
legend: this.legend,
|
|
384
386
|
margins: this.margins,
|
|
385
387
|
scales: this.scales,
|
|
386
388
|
settingsId: s,
|
|
387
389
|
step: this.step,
|
|
388
|
-
xGroupKeys:
|
|
389
|
-
yGroupKeys:
|
|
390
|
-
onTooltipHintSwitch:
|
|
390
|
+
xGroupKeys: C,
|
|
391
|
+
yGroupKeys: x,
|
|
392
|
+
onTooltipHintSwitch: a
|
|
391
393
|
}
|
|
392
|
-
);
|
|
393
|
-
this.component =
|
|
394
|
+
) });
|
|
395
|
+
this.component = M, (o = this.reactRoot) == null || o.render(M);
|
|
394
396
|
}
|
|
395
|
-
renderError(
|
|
396
|
-
var
|
|
397
|
-
(
|
|
397
|
+
renderError(e) {
|
|
398
|
+
var s;
|
|
399
|
+
(s = this.reactRoot) == null || s.render(/* @__PURE__ */ F.jsx(ot, { message: e }));
|
|
398
400
|
}
|
|
399
401
|
}
|
|
400
402
|
export {
|
|
401
|
-
|
|
403
|
+
Ut as default
|
|
402
404
|
};
|
|
403
405
|
//# sourceMappingURL=ChartRenderer.js.map
|