@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
|
@@ -10,18 +10,21 @@ export declare function composeHeatmapSettings(settings: HeatmapSettings, reacti
|
|
|
10
10
|
xColumn: {
|
|
11
11
|
type: "column";
|
|
12
12
|
value: string;
|
|
13
|
+
format?: string | undefined;
|
|
13
14
|
label?: string | undefined;
|
|
14
15
|
valueLabels?: string | undefined;
|
|
15
16
|
};
|
|
16
17
|
yColumn: {
|
|
17
18
|
type: "column";
|
|
18
19
|
value: string;
|
|
20
|
+
format?: string | undefined;
|
|
19
21
|
label?: string | undefined;
|
|
20
22
|
valueLabels?: string | undefined;
|
|
21
23
|
};
|
|
22
24
|
valueColumn: {
|
|
23
25
|
type: "column";
|
|
24
26
|
value: string;
|
|
27
|
+
format?: string | undefined;
|
|
25
28
|
label?: string | undefined;
|
|
26
29
|
valueLabels?: string | undefined;
|
|
27
30
|
};
|
|
@@ -48,6 +51,7 @@ export declare function composeHeatmapSettings(settings: HeatmapSettings, reacti
|
|
|
48
51
|
content?: {
|
|
49
52
|
type: "column";
|
|
50
53
|
value: string;
|
|
54
|
+
format?: string | undefined;
|
|
51
55
|
label?: string | undefined;
|
|
52
56
|
valueLabels?: string | undefined;
|
|
53
57
|
}[] | undefined;
|
|
@@ -88,6 +92,7 @@ export declare function composeHeatmapSettings(settings: HeatmapSettings, reacti
|
|
|
88
92
|
facetBy?: {
|
|
89
93
|
type: "column";
|
|
90
94
|
value: string;
|
|
95
|
+
format?: string | undefined;
|
|
91
96
|
label?: string | undefined;
|
|
92
97
|
valueLabels?: string | undefined;
|
|
93
98
|
}[] | undefined;
|
|
@@ -101,12 +106,14 @@ export declare function composeHeatmapSettings(settings: HeatmapSettings, reacti
|
|
|
101
106
|
xGroupBy?: {
|
|
102
107
|
type: "column";
|
|
103
108
|
value: string;
|
|
109
|
+
format?: string | undefined;
|
|
104
110
|
label?: string | undefined;
|
|
105
111
|
valueLabels?: string | undefined;
|
|
106
112
|
}[] | undefined;
|
|
107
113
|
yGroupBy?: {
|
|
108
114
|
type: "column";
|
|
109
115
|
value: string;
|
|
116
|
+
format?: string | undefined;
|
|
110
117
|
label?: string | undefined;
|
|
111
118
|
valueLabels?: string | undefined;
|
|
112
119
|
}[] | undefined;
|
|
@@ -115,6 +122,7 @@ export declare function composeHeatmapSettings(settings: HeatmapSettings, reacti
|
|
|
115
122
|
valueColumn: {
|
|
116
123
|
type: "column";
|
|
117
124
|
value: string;
|
|
125
|
+
format?: string | undefined;
|
|
118
126
|
label?: string | undefined;
|
|
119
127
|
valueLabels?: string | undefined;
|
|
120
128
|
};
|
|
@@ -128,6 +136,7 @@ export declare function composeHeatmapSettings(settings: HeatmapSettings, reacti
|
|
|
128
136
|
valueColumn: {
|
|
129
137
|
type: "column";
|
|
130
138
|
value: string;
|
|
139
|
+
format?: string | undefined;
|
|
131
140
|
label?: string | undefined;
|
|
132
141
|
valueLabels?: string | undefined;
|
|
133
142
|
};
|
|
@@ -143,36 +152,42 @@ export declare function composeHeatmapSettings(settings: HeatmapSettings, reacti
|
|
|
143
152
|
dotFill?: string | {
|
|
144
153
|
type: "column";
|
|
145
154
|
value: string;
|
|
155
|
+
format?: string | undefined;
|
|
146
156
|
label?: string | undefined;
|
|
147
157
|
valueLabels?: string | undefined;
|
|
148
158
|
} | undefined;
|
|
149
159
|
dotShape?: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "13" | "14" | "15" | "16" | "17" | "18" | "20" | "21" | "22" | "23" | "24" | "25" | {
|
|
150
160
|
type: "column";
|
|
151
161
|
value: string;
|
|
162
|
+
format?: string | undefined;
|
|
152
163
|
label?: string | undefined;
|
|
153
164
|
valueLabels?: string | undefined;
|
|
154
165
|
} | undefined;
|
|
155
166
|
dotSize?: number | {
|
|
156
167
|
type: "column";
|
|
157
168
|
value: string;
|
|
169
|
+
format?: string | undefined;
|
|
158
170
|
label?: string | undefined;
|
|
159
171
|
valueLabels?: string | undefined;
|
|
160
172
|
} | undefined;
|
|
161
173
|
lineWidth?: number | {
|
|
162
174
|
type: "column";
|
|
163
175
|
value: string;
|
|
176
|
+
format?: string | undefined;
|
|
164
177
|
label?: string | undefined;
|
|
165
178
|
valueLabels?: string | undefined;
|
|
166
179
|
} | undefined;
|
|
167
180
|
lineShape?: {
|
|
168
181
|
type: "column";
|
|
169
182
|
value: string;
|
|
183
|
+
format?: string | undefined;
|
|
170
184
|
label?: string | undefined;
|
|
171
185
|
valueLabels?: string | undefined;
|
|
172
186
|
} | "solid" | "dashed" | "dotted" | "dotdash" | "longdash" | "twodash" | undefined;
|
|
173
187
|
lineColor?: string | {
|
|
174
188
|
type: "column";
|
|
175
189
|
value: string;
|
|
190
|
+
format?: string | undefined;
|
|
176
191
|
label?: string | undefined;
|
|
177
192
|
valueLabels?: string | undefined;
|
|
178
193
|
} | undefined;
|
|
@@ -191,36 +206,42 @@ export declare function composeHeatmapSettings(settings: HeatmapSettings, reacti
|
|
|
191
206
|
dotFill?: string | {
|
|
192
207
|
type: "column";
|
|
193
208
|
value: string;
|
|
209
|
+
format?: string | undefined;
|
|
194
210
|
label?: string | undefined;
|
|
195
211
|
valueLabels?: string | undefined;
|
|
196
212
|
} | undefined;
|
|
197
213
|
dotShape?: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "13" | "14" | "15" | "16" | "17" | "18" | "20" | "21" | "22" | "23" | "24" | "25" | {
|
|
198
214
|
type: "column";
|
|
199
215
|
value: string;
|
|
216
|
+
format?: string | undefined;
|
|
200
217
|
label?: string | undefined;
|
|
201
218
|
valueLabels?: string | undefined;
|
|
202
219
|
} | undefined;
|
|
203
220
|
dotSize?: number | {
|
|
204
221
|
type: "column";
|
|
205
222
|
value: string;
|
|
223
|
+
format?: string | undefined;
|
|
206
224
|
label?: string | undefined;
|
|
207
225
|
valueLabels?: string | undefined;
|
|
208
226
|
} | undefined;
|
|
209
227
|
lineWidth?: number | {
|
|
210
228
|
type: "column";
|
|
211
229
|
value: string;
|
|
230
|
+
format?: string | undefined;
|
|
212
231
|
label?: string | undefined;
|
|
213
232
|
valueLabels?: string | undefined;
|
|
214
233
|
} | undefined;
|
|
215
234
|
lineShape?: {
|
|
216
235
|
type: "column";
|
|
217
236
|
value: string;
|
|
237
|
+
format?: string | undefined;
|
|
218
238
|
label?: string | undefined;
|
|
219
239
|
valueLabels?: string | undefined;
|
|
220
240
|
} | "solid" | "dashed" | "dotted" | "dotdash" | "longdash" | "twodash" | undefined;
|
|
221
241
|
lineColor?: string | {
|
|
222
242
|
type: "column";
|
|
223
243
|
value: string;
|
|
244
|
+
format?: string | undefined;
|
|
224
245
|
label?: string | undefined;
|
|
225
246
|
valueLabels?: string | undefined;
|
|
226
247
|
} | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"composeHeatmapSettings.d.ts","sourceRoot":"","sources":["../../../../src/GraphMaker/utils/createChartSettingsForRender/composeHeatmapSettings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAM3D,OAAO,EAAwB,aAAa,EAAE,MAAM,aAAa,CAAC;AAGlE,wBAAgB,sBAAsB,CACpC,QAAQ,EAAE,eAAe,EACzB,aAAa,EAAE,aAAa;;;;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;gBAAsC,CAAC;eAAiM,CAAC;iBAAuC,CAAC;iBAAuC,CAAC;iBAAmG,CAAC;iBAAuC,CAAC;;EAAzroD"}
|
|
@@ -29,6 +29,7 @@ export declare function composeHistogramSettings(settings: HistogramSettings, re
|
|
|
29
29
|
valueColumn: {
|
|
30
30
|
type: "column";
|
|
31
31
|
value: string;
|
|
32
|
+
format?: string | undefined;
|
|
32
33
|
label?: string | undefined;
|
|
33
34
|
valueLabels?: string | undefined;
|
|
34
35
|
};
|
|
@@ -41,6 +42,7 @@ export declare function composeHistogramSettings(settings: HistogramSettings, re
|
|
|
41
42
|
grouping?: {
|
|
42
43
|
type: "column";
|
|
43
44
|
value: string;
|
|
45
|
+
format?: string | undefined;
|
|
44
46
|
label?: string | undefined;
|
|
45
47
|
valueLabels?: string | undefined;
|
|
46
48
|
} | undefined;
|
|
@@ -61,6 +63,7 @@ export declare function composeHistogramSettings(settings: HistogramSettings, re
|
|
|
61
63
|
title?: string | {
|
|
62
64
|
type: "column";
|
|
63
65
|
value: string;
|
|
66
|
+
format?: string | undefined;
|
|
64
67
|
label?: string | undefined;
|
|
65
68
|
valueLabels?: string | undefined;
|
|
66
69
|
} | undefined;
|
|
@@ -75,12 +78,6 @@ export declare function composeHistogramSettings(settings: HistogramSettings, re
|
|
|
75
78
|
showTicks?: boolean | undefined;
|
|
76
79
|
hiddenLabels?: boolean | undefined;
|
|
77
80
|
} | undefined;
|
|
78
|
-
facetBy?: {
|
|
79
|
-
type: "column";
|
|
80
|
-
value: string;
|
|
81
|
-
label?: string | undefined;
|
|
82
|
-
valueLabels?: string | undefined;
|
|
83
|
-
}[] | undefined;
|
|
84
81
|
inheritedAes?: Record<string, Record<string, {
|
|
85
82
|
dotFill?: string | undefined;
|
|
86
83
|
dotShape?: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "13" | "14" | "15" | "16" | "17" | "18" | "20" | "21" | "22" | "23" | "24" | "25" | undefined;
|
|
@@ -90,6 +87,13 @@ export declare function composeHistogramSettings(settings: HistogramSettings, re
|
|
|
90
87
|
lineColor?: string | undefined;
|
|
91
88
|
fillColor?: string | undefined;
|
|
92
89
|
}>> | undefined;
|
|
90
|
+
facetBy?: {
|
|
91
|
+
type: "column";
|
|
92
|
+
value: string;
|
|
93
|
+
format?: string | undefined;
|
|
94
|
+
label?: string | undefined;
|
|
95
|
+
valueLabels?: string | undefined;
|
|
96
|
+
}[] | undefined;
|
|
93
97
|
binsCount?: number | undefined;
|
|
94
98
|
groupingStack?: "vertical" | "horizontal" | undefined;
|
|
95
99
|
groupingDirection?: "reverse" | "straight" | undefined;
|
package/dist/GraphMaker/utils/createChartSettingsForRender/composeHistogramSettings.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"composeHistogramSettings.d.ts","sourceRoot":"","sources":["../../../../src/GraphMaker/utils/createChartSettingsForRender/composeHistogramSettings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAK7D,OAAO,EAEL,aAAa,EACb,uBAAuB,EACxB,MAAM,aAAa,CAAC;AAarB,wBAAgB,wBAAwB,CACtC,QAAQ,EAAE,iBAAiB,EAC3B,aAAa,EAAE,aAAa,EAC5B,gBAAgB,EAAE,uBAAuB;;;;
|
|
1
|
+
{"version":3,"file":"composeHistogramSettings.d.ts","sourceRoot":"","sources":["../../../../src/GraphMaker/utils/createChartSettingsForRender/composeHistogramSettings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAK7D,OAAO,EAEL,aAAa,EACb,uBAAuB,EACxB,MAAM,aAAa,CAAC;AAarB,wBAAgB,wBAAwB,CACtC,QAAQ,EAAE,iBAAiB,EAC3B,aAAa,EAAE,aAAa,EAC5B,gBAAgB,EAAE,uBAAuB;;;;YAoCq9iB,CAAC;gBAAuC,CAAC;;;;WAAkG,CAAC;qBAAyB,CAAC;mBAAyC,CAAC;qBAA2C,CAAC;;;uBAAqG,CAAC;;;oBAA+F,CAAC;sBAAsD,CAAC;;;;;WAAyH,CAAC;;;;;cAA4G,CAAC;aAAmC,CAAC;mBAAyC,CAAC;;;aAAuD,CAAC;cAAoC,CAAC;mBAAyC,CAAC;mBAAyC,CAAC;;;;;cAAuH,CAAC;aAAmC,CAAC;mBAAyC,CAAC;;;YAAoE,CAAC;gBAAuC,CAAC;;;YAAkG,CAAC;;;eAA4H,CAAC;eAAsC,CAAC;aAAoC,CAAC;aAAmC,CAAC;;;aAAoE,CAAC;;;kBAAsF,CAAC;iBAAuC,CAAC;uBAA6C,CAAC;;aAA0D,CAAC;gBAAgD,CAAC;iBAAwC,CAAC;oBAA2C,CAAC;;;aAAqE,CAAC;gBAAgD,CAAC;iBAAwC,CAAC;oBAA2C,CAAC;;;eAA4G,CAAC;gBAAsC,CAAC;eAAiM,CAAC;iBAAuC,CAAC;iBAAuC,CAAC;iBAAmG,CAAC;iBAAuC,CAAC;;;;;cAAwH,CAAC;aAAmC,CAAC;mBAAyC,CAAC;;;;;;EADz9oB"}
|
|
@@ -14,18 +14,21 @@ export declare function composeScatterplotSettings(settings: ScatterplotSettings
|
|
|
14
14
|
keyColumn: {
|
|
15
15
|
type: "column";
|
|
16
16
|
value: string;
|
|
17
|
+
format?: string | undefined;
|
|
17
18
|
label?: string | undefined;
|
|
18
19
|
valueLabels?: string | undefined;
|
|
19
20
|
};
|
|
20
21
|
x: {
|
|
21
22
|
type: "column";
|
|
22
23
|
value: string;
|
|
24
|
+
format?: string | undefined;
|
|
23
25
|
label?: string | undefined;
|
|
24
26
|
valueLabels?: string | undefined;
|
|
25
27
|
};
|
|
26
28
|
y: {
|
|
27
29
|
type: "column";
|
|
28
30
|
value: string;
|
|
31
|
+
format?: string | undefined;
|
|
29
32
|
label?: string | undefined;
|
|
30
33
|
valueLabels?: string | undefined;
|
|
31
34
|
};
|
|
@@ -40,6 +43,7 @@ export declare function composeScatterplotSettings(settings: ScatterplotSettings
|
|
|
40
43
|
columnName: {
|
|
41
44
|
type: "column";
|
|
42
45
|
value: string;
|
|
46
|
+
format?: string | undefined;
|
|
43
47
|
label?: string | undefined;
|
|
44
48
|
valueLabels?: string | undefined;
|
|
45
49
|
};
|
|
@@ -56,6 +60,7 @@ export declare function composeScatterplotSettings(settings: ScatterplotSettings
|
|
|
56
60
|
columnName: {
|
|
57
61
|
type: "column";
|
|
58
62
|
value: string;
|
|
63
|
+
format?: string | undefined;
|
|
59
64
|
label?: string | undefined;
|
|
60
65
|
valueLabels?: string | undefined;
|
|
61
66
|
};
|
|
@@ -77,6 +82,7 @@ export declare function composeScatterplotSettings(settings: ScatterplotSettings
|
|
|
77
82
|
columnName: {
|
|
78
83
|
type: "column";
|
|
79
84
|
value: string;
|
|
85
|
+
format?: string | undefined;
|
|
80
86
|
label?: string | undefined;
|
|
81
87
|
valueLabels?: string | undefined;
|
|
82
88
|
};
|
|
@@ -95,14 +101,29 @@ export declare function composeScatterplotSettings(settings: ScatterplotSettings
|
|
|
95
101
|
label?: {
|
|
96
102
|
type: "column";
|
|
97
103
|
value: string;
|
|
104
|
+
format?: string | undefined;
|
|
98
105
|
label?: string | undefined;
|
|
99
106
|
valueLabels?: string | undefined;
|
|
100
107
|
} | undefined;
|
|
101
108
|
grouping?: {
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
109
|
+
columnName: {
|
|
110
|
+
type: "column";
|
|
111
|
+
value: string;
|
|
112
|
+
format?: string | undefined;
|
|
113
|
+
label?: string | undefined;
|
|
114
|
+
valueLabels?: string | undefined;
|
|
115
|
+
};
|
|
116
|
+
order?: (string | number | null)[] | undefined;
|
|
117
|
+
inheritedAes?: Record<string, {
|
|
118
|
+
dotFill?: string | undefined;
|
|
119
|
+
dotShape?: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "13" | "14" | "15" | "16" | "17" | "18" | "20" | "21" | "22" | "23" | "24" | "25" | undefined;
|
|
120
|
+
dotSize?: number | undefined;
|
|
121
|
+
lineWidth?: number | undefined;
|
|
122
|
+
lineShape?: "solid" | "dashed" | "dotted" | "dotdash" | "longdash" | "twodash" | undefined;
|
|
123
|
+
lineColor?: string | undefined;
|
|
124
|
+
fillColor?: string | undefined;
|
|
125
|
+
}> | undefined;
|
|
126
|
+
allowNullGroup?: boolean | undefined;
|
|
106
127
|
}[] | undefined;
|
|
107
128
|
legend?: {
|
|
108
129
|
show?: boolean | undefined;
|
|
@@ -113,6 +134,7 @@ export declare function composeScatterplotSettings(settings: ScatterplotSettings
|
|
|
113
134
|
content?: {
|
|
114
135
|
type: "column";
|
|
115
136
|
value: string;
|
|
137
|
+
format?: string | undefined;
|
|
116
138
|
label?: string | undefined;
|
|
117
139
|
valueLabels?: string | undefined;
|
|
118
140
|
}[] | undefined;
|
|
@@ -130,6 +152,7 @@ export declare function composeScatterplotSettings(settings: ScatterplotSettings
|
|
|
130
152
|
title?: string | {
|
|
131
153
|
type: "column";
|
|
132
154
|
value: string;
|
|
155
|
+
format?: string | undefined;
|
|
133
156
|
label?: string | undefined;
|
|
134
157
|
valueLabels?: string | undefined;
|
|
135
158
|
} | undefined;
|
|
@@ -149,6 +172,7 @@ export declare function composeScatterplotSettings(settings: ScatterplotSettings
|
|
|
149
172
|
title?: string | {
|
|
150
173
|
type: "column";
|
|
151
174
|
value: string;
|
|
175
|
+
format?: string | undefined;
|
|
152
176
|
label?: string | undefined;
|
|
153
177
|
valueLabels?: string | undefined;
|
|
154
178
|
} | undefined;
|
|
@@ -167,24 +191,17 @@ export declare function composeScatterplotSettings(settings: ScatterplotSettings
|
|
|
167
191
|
facetBy?: {
|
|
168
192
|
type: "column";
|
|
169
193
|
value: string;
|
|
194
|
+
format?: string | undefined;
|
|
170
195
|
label?: string | undefined;
|
|
171
196
|
valueLabels?: string | undefined;
|
|
172
197
|
}[] | undefined;
|
|
173
198
|
highlight?: {
|
|
174
199
|
type: "column";
|
|
175
200
|
value: string;
|
|
201
|
+
format?: string | undefined;
|
|
176
202
|
label?: string | undefined;
|
|
177
203
|
valueLabels?: string | undefined;
|
|
178
204
|
} | undefined;
|
|
179
|
-
inheritedAes?: Record<string, Record<string, {
|
|
180
|
-
dotFill?: string | undefined;
|
|
181
|
-
dotShape?: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "13" | "14" | "15" | "16" | "17" | "18" | "20" | "21" | "22" | "23" | "24" | "25" | undefined;
|
|
182
|
-
dotSize?: number | undefined;
|
|
183
|
-
lineWidth?: number | undefined;
|
|
184
|
-
lineShape?: "solid" | "dashed" | "dotted" | "dotdash" | "longdash" | "twodash" | undefined;
|
|
185
|
-
lineColor?: string | undefined;
|
|
186
|
-
fillColor?: string | undefined;
|
|
187
|
-
}>> | undefined;
|
|
188
205
|
trend?: {
|
|
189
206
|
color?: string | {
|
|
190
207
|
type: "grouping";
|
|
@@ -194,6 +211,7 @@ export declare function composeScatterplotSettings(settings: ScatterplotSettings
|
|
|
194
211
|
columnName: {
|
|
195
212
|
type: "column";
|
|
196
213
|
value: string;
|
|
214
|
+
format?: string | undefined;
|
|
197
215
|
label?: string | undefined;
|
|
198
216
|
valueLabels?: string | undefined;
|
|
199
217
|
};
|
package/dist/GraphMaker/utils/createChartSettingsForRender/composeScatterplotSettings.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"composeScatterplotSettings.d.ts","sourceRoot":"","sources":["../../../../src/GraphMaker/utils/createChartSettingsForRender/composeScatterplotSettings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AACxF,OAAO,EACL,oBAAoB,EACpB,oBAAoB,EACpB,UAAU,EACV,UAAU,EACV,mBAAmB,EAEpB,MAAM,0BAA0B,CAAC;AAelC,OAAO,EACL,qBAAqB,EAKtB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,aAAa,EAEb,uBAAuB,EACxB,MAAM,aAAa,CAAC;AAGrB,wBAAgB,6BAA6B,CAC3C,QAAQ,EAAE,mBAAmB,GAAG,uBAAuB,EACvD,QAAQ,EAAE,oBAAoB,GAAG,oBAAoB,EACrD,CAAC,EAAE,oBAAoB,GAAG,oBAAoB,EAC9C,CAAC,EAAE,oBAAoB,GAAG,oBAAoB,EAC9C,UAAU,EAAE,UAAU,CAAC,UAAU,CAAC,QAiFnC;AAED,wBAAgB,iBAAiB,CAC/B,QAAQ,EAAE,mBAAmB,GAAG,uBAAuB,EACvD,QAAQ,EAAE,oBAAoB,GAAG,oBAAoB,EACrD,KAAK,EAAE,oBAAoB,GAAG,oBAAoB,GAAG,SAAS,EAC9D,gBAAgB,EAAE,uBAAuB,EACzC,WAAW,EAAE,qBAAqB,
|
|
1
|
+
{"version":3,"file":"composeScatterplotSettings.d.ts","sourceRoot":"","sources":["../../../../src/GraphMaker/utils/createChartSettingsForRender/composeScatterplotSettings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AACxF,OAAO,EACL,oBAAoB,EACpB,oBAAoB,EACpB,UAAU,EACV,UAAU,EACV,mBAAmB,EAEpB,MAAM,0BAA0B,CAAC;AAelC,OAAO,EACL,qBAAqB,EAKtB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,aAAa,EAEb,uBAAuB,EACxB,MAAM,aAAa,CAAC;AAGrB,wBAAgB,6BAA6B,CAC3C,QAAQ,EAAE,mBAAmB,GAAG,uBAAuB,EACvD,QAAQ,EAAE,oBAAoB,GAAG,oBAAoB,EACrD,CAAC,EAAE,oBAAoB,GAAG,oBAAoB,EAC9C,CAAC,EAAE,oBAAoB,GAAG,oBAAoB,EAC9C,UAAU,EAAE,UAAU,CAAC,UAAU,CAAC,QAiFnC;AAED,wBAAgB,iBAAiB,CAC/B,QAAQ,EAAE,mBAAmB,GAAG,uBAAuB,E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AAuC,CAAC;;;YAAqG,CAAC;eAAsC,CAAC;;;kBAA6E,CAAC;iBAAuC,CAAC;uBAA6C,CAAC;;;;YAA4F,CAAC;;;eAA4H,CAAC;eAAsC,CAAC;aAAoC,CAAC;aAAmC,CAAC;;;aAAoE,CAAC;;;kBAAsF,CAAC;iBAAuC,CAAC;uBAA6C,CAAC;;aAA0D,CAAC;gBAAgD,CAAC;8BAAqD,CAAC;iBAAwC,CAAC;sBAA6C,CAAC;wBAAoE,CAAC;6BAAqD,CAAC;sBAAwG,CAAC;kBAAwC,CAAC;kBAAwC,CAAC;oBAA0C,CAAC;;;aAAqE,CAAC;;;kBAAsF,CAAC;iBAAuC,CAAC;uBAA6C,CAAC;;aAA0D,CAAC;gBAAgD,CAAC;8BAAqD,CAAC;iBAAwC,CAAC;sBAA6C,CAAC;wBAAoE,CAAC;6BAAqD,CAAC;sBAAwG,CAAC;kBAAwC,CAAC;kBAAwC,CAAC;oBAA0C,CAAC;;;;;cAAuH,CAAC;aAAmC,CAAC;mBAAyC,CAAC;;;;;cAA0H,CAAC;aAAmC,CAAC;mBAAyC,CAAC;;;aAAoE,CAAC;;;mBAAyF,CAAC;;;;;sBAAqJ,CAAC;qBAA2C,CAAC;2BAAiD,CAAC;;;;gBAAgH,CAAC;;eAAsE,CAAC;;EAA16qE"}
|
|
@@ -1,88 +1,82 @@
|
|
|
1
|
-
import { PALETTE_MAP as
|
|
2
|
-
import { SCATTERPLOT_TEMPLATES_MAP as
|
|
3
|
-
import { getScatterplotAes as M, DEFAULT_LINE_WIDTH as U, DEFAULT_DOT_SIZE as Y, DEFAULT_DOT_SHAPE as
|
|
4
|
-
import { getScatterplotLayersSettings as
|
|
5
|
-
import { getAxesDataFromForms as
|
|
1
|
+
import { PALETTE_MAP as D, DEFAULT_CATEGORICAL_PALETTE as F, UNKNOWN_COLOR as C, DEFAULT_BLACK as P } from "../../constantsAesthetic.js";
|
|
2
|
+
import { SCATTERPLOT_TEMPLATES_MAP as R, isMappedAes as K, THRESHOLDS_KEY as N, PALETTE_KEY as I, UPPER_LIMIT_KEY as y, LOWER_LIMIT_KEY as T, SYMMETRIC_RANGE_KEY as L } from "../../constantsCommon.js";
|
|
3
|
+
import { getScatterplotAes as M, DEFAULT_LINE_WIDTH as U, DEFAULT_DOT_SIZE as Y, DEFAULT_DOT_SHAPE as H } from "../../dataBindAes.js";
|
|
4
|
+
import { getScatterplotLayersSettings as V } from "./getLayersDataFromForms.js";
|
|
5
|
+
import { getAxesDataFromForms as W } from "./getAxesDataFromForms.js";
|
|
6
6
|
import "../../../node_modules/@milaboratories/pf-plots/dist/index.js";
|
|
7
7
|
import "vue";
|
|
8
|
-
function
|
|
9
|
-
var
|
|
10
|
-
const
|
|
11
|
-
if (
|
|
12
|
-
const
|
|
13
|
-
if (
|
|
14
|
-
const { columnId:
|
|
15
|
-
|
|
16
|
-
}),
|
|
17
|
-
const
|
|
8
|
+
function j(o, f, n, m, r) {
|
|
9
|
+
var x, E, u, A;
|
|
10
|
+
const s = (x = f.selectorStates[0]) == null ? void 0 : x.selectedSource, i = (E = n.selectorStates[0]) == null ? void 0 : E.selectedSource, c = (u = m.selectorStates[0]) == null ? void 0 : u.selectedSource, t = r.getSourceInfo(i), e = r.getSourceInfo(c);
|
|
11
|
+
if (f.selectorStates.length) {
|
|
12
|
+
const a = r.getSourceInfo(s).annotations;
|
|
13
|
+
if (a != null && a[N] && (JSON.parse(a[N]) ?? []).forEach((_) => {
|
|
14
|
+
const { columnId: l, value: S } = _;
|
|
15
|
+
l && t.kind === "column" && t.type === l.valueType && t.name === l.name && (o.xAxis.significantLines || (o.xAxis.significantLines = []), o.xAxis.significantLines.push(Number(S))), l && e.kind === "column" && e.type === l.valueType && e.name === l.name && (o.yAxis.significantLines || (o.yAxis.significantLines = []), o.yAxis.significantLines.push(Number(S)));
|
|
16
|
+
}), a != null && a[I]) {
|
|
17
|
+
const d = JSON.parse(a[I]), { mapping: _ = {}, name: l = "" } = d;
|
|
18
18
|
o.layers.forEach((p) => {
|
|
19
|
-
p.type === "dots" && (p.aes || (p.aes = {}), p.aes.dotFill = { type: "grouping", value:
|
|
19
|
+
p.type === "dots" && (p.aes || (p.aes = {}), p.aes.dotFill = { type: "grouping", value: s });
|
|
20
20
|
});
|
|
21
|
-
const S = [...Object.entries(_), ["null",
|
|
22
|
-
o.inheritedAes[
|
|
23
|
-
const
|
|
24
|
-
return p[
|
|
25
|
-
fillColor:
|
|
26
|
-
lineColor:
|
|
27
|
-
dotFill:
|
|
28
|
-
dotShape:
|
|
21
|
+
const S = [...Object.entries(_), ["null", C]], O = ((A = D[l]) == null ? void 0 : A.colors) ?? [];
|
|
22
|
+
o.inheritedAes[s] = S.reduce((p, [b, g]) => {
|
|
23
|
+
const h = O[Number(g)] ?? P;
|
|
24
|
+
return p[b] = {
|
|
25
|
+
fillColor: h,
|
|
26
|
+
lineColor: h,
|
|
27
|
+
dotFill: h,
|
|
28
|
+
dotShape: H,
|
|
29
29
|
dotSize: Y,
|
|
30
30
|
lineWidth: U
|
|
31
31
|
}, p;
|
|
32
32
|
}, {});
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
|
-
t.annotations && (t.annotations[
|
|
35
|
+
t.annotations && (t.annotations[y] && (o.xAxis.upperValue = Number(t.annotations[y])), t.annotations[T] && (o.xAxis.lowerValue = Number(t.annotations[T])), t.annotations[L] && (o.xAxis.symmetricRange = Number(t.annotations[L]))), e.annotations && (e.annotations[y] && (o.yAxis.upperValue = Number(e.annotations[y])), e.annotations[T] && (o.yAxis.lowerValue = Number(e.annotations[T])), e.annotations[L] && (o.yAxis.symmetricRange = Number(e.annotations[L])));
|
|
36
36
|
}
|
|
37
|
-
function
|
|
38
|
-
|
|
39
|
-
const
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
const
|
|
47
|
-
if (
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
const A = e[E];
|
|
52
|
-
if (g(A) && A.value === a) {
|
|
53
|
-
const y = ((s = b[((u = i[a]) == null ? void 0 : u.palette) ?? C]) == null ? void 0 : s.colors) ?? [];
|
|
54
|
-
A.palette = y;
|
|
55
|
-
}
|
|
56
|
-
});
|
|
37
|
+
function k(o, f, n, m, r) {
|
|
38
|
+
(f.selectorStates.length || n != null && n.selectorStates.length) && (o.grouping = [...o.grouping ?? []].map((s) => ({ ...s })), o.grouping.forEach((s) => {
|
|
39
|
+
const i = s.columnName.value, c = M(i, m, r);
|
|
40
|
+
c.order.length ? (s.order = c.order, s.inheritedAes = c.inheritedAes) : o.layers.forEach((t) => {
|
|
41
|
+
const e = t.aes;
|
|
42
|
+
if (!e)
|
|
43
|
+
return;
|
|
44
|
+
Object.keys(e).forEach((E) => {
|
|
45
|
+
var A, a;
|
|
46
|
+
const u = e[E];
|
|
47
|
+
if (K(u) && u.value === i) {
|
|
48
|
+
const d = ((a = D[((A = r[i]) == null ? void 0 : A.palette) ?? F]) == null ? void 0 : a.colors) ?? [];
|
|
49
|
+
u.palette = d;
|
|
50
|
+
}
|
|
57
51
|
});
|
|
58
|
-
})
|
|
59
|
-
}
|
|
52
|
+
});
|
|
53
|
+
}));
|
|
60
54
|
}
|
|
61
|
-
function X(o,
|
|
62
|
-
var
|
|
63
|
-
o.layers =
|
|
64
|
-
|
|
55
|
+
function X(o, f, n, m, r) {
|
|
56
|
+
var c, t;
|
|
57
|
+
o.layers = V(
|
|
58
|
+
R[n.template],
|
|
65
59
|
n.layersSettings,
|
|
66
|
-
|
|
60
|
+
f,
|
|
67
61
|
n.optionsState,
|
|
68
62
|
n.dataBindAes,
|
|
69
63
|
m,
|
|
70
|
-
o == null ? void 0 : o.grouping
|
|
71
|
-
),
|
|
64
|
+
(c = o == null ? void 0 : o.grouping) == null ? void 0 : c.map((e) => e.columnName)
|
|
65
|
+
), k(
|
|
72
66
|
o,
|
|
73
67
|
n.optionsState.components.grouping,
|
|
74
68
|
n.optionsState.components.shape,
|
|
75
|
-
|
|
69
|
+
r,
|
|
76
70
|
n.dataBindAes
|
|
77
71
|
);
|
|
78
|
-
const
|
|
79
|
-
return
|
|
80
|
-
color: (
|
|
72
|
+
const s = n.statisticsSettings, i = o.layers.find((e) => e.type === "dots");
|
|
73
|
+
return s.trend.on && i && (o.trend = {
|
|
74
|
+
color: (t = i.aes) == null ? void 0 : t.dotFill,
|
|
81
75
|
bounded: !1
|
|
82
76
|
}), Object.assign(
|
|
83
77
|
o,
|
|
84
|
-
|
|
85
|
-
),
|
|
78
|
+
W(n.axesSettings, n.chartType)
|
|
79
|
+
), j(
|
|
86
80
|
o,
|
|
87
81
|
n.optionsState.components.grouping,
|
|
88
82
|
n.optionsState.components.x,
|
|
@@ -91,8 +85,8 @@ function X(o, l, n, m, i) {
|
|
|
91
85
|
), o;
|
|
92
86
|
}
|
|
93
87
|
export {
|
|
94
|
-
|
|
95
|
-
|
|
88
|
+
j as applyChartInfoFromAnnotations,
|
|
89
|
+
k as applyInheritedAes,
|
|
96
90
|
X as composeScatterplotSettings
|
|
97
91
|
};
|
|
98
92
|
//# sourceMappingURL=composeScatterplotSettings.js.map
|
package/dist/GraphMaker/utils/createChartSettingsForRender/composeScatterplotSettings.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"composeScatterplotSettings.js","sources":["../../../../src/GraphMaker/utils/createChartSettingsForRender/composeScatterplotSettings.ts"],"sourcesContent":["import { ScatterplotSettings, ScatterplotUmapSettings } from '@milaboratories/miplots4';\nimport {\n ComponentStateFilter,\n ComponentStateSimple,\n InputGuide,\n InputState,\n PlotDataAndSettings,\n ScatterplotUIState\n} from '@milaboratories/pf-plots';\nimport {\n DEFAULT_BLACK,\n DEFAULT_CATEGORICAL_PALETTE,\n PALETTE_MAP,\n UNKNOWN_COLOR\n} from '../../constantsAesthetic';\nimport {\n isMappedAes,\n LOWER_LIMIT_KEY, MappingLink,\n PALETTE_KEY,\n SCATTERPLOT_TEMPLATES_MAP,\n ScatterplotStatisticsState, SYMMETRIC_RANGE_KEY,\n THRESHOLDS_KEY, UPPER_LIMIT_KEY\n} from '../../constantsCommon';\nimport {\n AestheticMappingState,\n DEFAULT_DOT_SHAPE,\n DEFAULT_DOT_SIZE,\n DEFAULT_LINE_WIDTH,\n getScatterplotAes\n} from '../../dataBindAes';\nimport {\n ReactiveState,\n ScatterplotLayersTemplate,\n UniqueValuesBySourceMap\n} from '../../types';\nimport { getAxesDataFromForms, getScatterplotLayersSettings } from '../index';\n\nexport function applyChartInfoFromAnnotations (\n settings: ScatterplotSettings | ScatterplotUmapSettings,\n grouping: ComponentStateSimple | ComponentStateFilter,\n x: ComponentStateSimple | ComponentStateFilter,\n y: ComponentStateSimple | ComponentStateFilter,\n inputGuide: InputGuide<InputState>\n) {\n const groupingSource = grouping.selectorStates[0]?.selectedSource;\n const xSource = x.selectorStates[0]?.selectedSource;\n const ySource = y.selectorStates[0]?.selectedSource;\n const xInfo = inputGuide.getSourceInfo(xSource);\n const yInfo = inputGuide.getSourceInfo(ySource);\n\n if (grouping.selectorStates.length) {\n const annotations = inputGuide.getSourceInfo(groupingSource).annotations;\n if (annotations?.[THRESHOLDS_KEY]) {\n const thresholdsData = JSON.parse(annotations[THRESHOLDS_KEY]) ?? [];\n\n thresholdsData.forEach((thresholdData: { columnId: Record<string, string>, value: number }) => {\n const { columnId, value } = thresholdData;\n if (columnId && (xInfo.kind === 'column' && xInfo.type === columnId.valueType && xInfo.name === columnId.name)) {\n if (!settings.xAxis!.significantLines) {\n settings.xAxis!.significantLines = [];\n }\n settings.xAxis!.significantLines.push(Number(value));\n }\n\n if (columnId && (yInfo.kind === 'column' && yInfo.type === columnId.valueType && yInfo.name === columnId.name)) {\n if (!settings.yAxis!.significantLines) {\n settings.yAxis!.significantLines = [];\n }\n settings.yAxis!.significantLines.push(Number(value));\n }\n });\n }\n\n if (annotations?.[PALETTE_KEY]) {\n const paletteData = JSON.parse(annotations[PALETTE_KEY]);\n const { mapping = {}, name = '' } = paletteData;\n settings.layers.forEach(layer => {\n if (layer.type === 'dots') {\n if (!layer.aes) {\n layer.aes = {};\n }\n layer.aes.dotFill = { type: 'grouping', value: groupingSource };\n }\n });\n const paletteEntries = [...Object.entries(mapping), ['null', UNKNOWN_COLOR]];\n const paletteColors = PALETTE_MAP[name as keyof typeof PALETTE_MAP]?.colors ?? [];\n settings.inheritedAes![groupingSource] = paletteEntries.reduce((res: Record<string, any>, [key, value]) => {\n const color = paletteColors[Number(value)] ?? DEFAULT_BLACK;\n res[key] = {\n fillColor: color,\n lineColor: color,\n dotFill: color,\n dotShape: DEFAULT_DOT_SHAPE,\n dotSize: DEFAULT_DOT_SIZE,\n lineWidth: DEFAULT_LINE_WIDTH\n };\n return res;\n }, {});\n }\n }\n if (xInfo.annotations) {\n if (xInfo.annotations[UPPER_LIMIT_KEY]) {\n settings.xAxis!.upperValue = Number(xInfo.annotations[UPPER_LIMIT_KEY]);\n }\n if (xInfo.annotations[LOWER_LIMIT_KEY]) {\n settings.xAxis!.lowerValue = Number(xInfo.annotations[LOWER_LIMIT_KEY]);\n }\n if (xInfo.annotations[SYMMETRIC_RANGE_KEY]) {\n settings.xAxis!.symmetricRange = Number(xInfo.annotations[SYMMETRIC_RANGE_KEY]);\n }\n }\n\n if (yInfo.annotations) {\n if (yInfo.annotations[UPPER_LIMIT_KEY]) {\n settings.yAxis!.upperValue = Number(yInfo.annotations[UPPER_LIMIT_KEY]);\n }\n if (yInfo.annotations[LOWER_LIMIT_KEY]) {\n settings.yAxis!.lowerValue = Number(yInfo.annotations[LOWER_LIMIT_KEY]);\n }\n if (yInfo.annotations[SYMMETRIC_RANGE_KEY]) {\n settings.yAxis!.symmetricRange = Number(yInfo.annotations[SYMMETRIC_RANGE_KEY]);\n }\n }\n}\n\nexport function applyInheritedAes(\n settings: ScatterplotSettings | ScatterplotUmapSettings,\n grouping: ComponentStateSimple | ComponentStateFilter,\n shape: ComponentStateSimple | ComponentStateFilter | undefined,\n uniqueValuesData: UniqueValuesBySourceMap,\n dataBindAes: AestheticMappingState\n) {\n if (grouping.selectorStates.length || shape?.selectorStates.length) {\n const states = [...grouping.selectorStates, ...(shape?.selectorStates ?? [])];\n const inheritedAes: Record<string, Record<string, unknown>> = {};\n states.forEach(({ selectedSource }) => {\n inheritedAes[selectedSource] = getScatterplotAes(\n selectedSource,\n uniqueValuesData,\n dataBindAes\n );\n // if mapping exists but doesn't have saved order and value-color pairs - add just colors list to chart settings, chart will use it\n if (!Object.keys(inheritedAes[selectedSource]).length) {\n settings.layers.forEach(layer=> {\n const layerAes = layer.aes;\n if (!layerAes) {\n return;\n }\n const aesKeys = Object.keys(layerAes);\n aesKeys.forEach((aesKey) => {\n const value = layerAes[aesKey as keyof typeof layerAes] as unknown;\n if (isMappedAes(value) && value.value === selectedSource) {\n const colors = PALETTE_MAP[dataBindAes[selectedSource]?.palette ?? DEFAULT_CATEGORICAL_PALETTE]?.colors ?? [];\n (value as MappingLink & {palette: string[]}).palette = colors;\n }\n })\n })\n }\n });\n\n Object.assign(settings, { inheritedAes });\n }\n}\nexport function composeScatterplotSettings(\n settings: ScatterplotSettings,\n dataByColumns: PlotDataAndSettings['data']['byColumns'],\n reactiveState: ReactiveState,\n inputGuide: InputGuide<InputState>,\n uniqueValuesData: UniqueValuesBySourceMap\n) {\n settings.layers = getScatterplotLayersSettings(\n SCATTERPLOT_TEMPLATES_MAP[reactiveState.template as ScatterplotLayersTemplate],\n reactiveState.layersSettings,\n dataByColumns,\n reactiveState.optionsState as ScatterplotUIState,\n reactiveState.dataBindAes,\n inputGuide,\n settings?.grouping\n );\n\n applyInheritedAes(\n settings,\n reactiveState.optionsState.components.grouping,\n reactiveState.optionsState.components.shape,\n uniqueValuesData,\n reactiveState.dataBindAes\n );\n\n const statisticsSettings = reactiveState.statisticsSettings as ScatterplotStatisticsState;\n const dotsLayer = settings.layers.find(layer => layer.type === 'dots');\n if (statisticsSettings.trend.on && dotsLayer) {\n settings.trend = {\n color: dotsLayer.aes?.dotFill,\n bounded: false\n };\n }\n\n Object.assign(\n settings,\n getAxesDataFromForms(reactiveState.axesSettings, reactiveState.chartType)\n );\n\n applyChartInfoFromAnnotations(\n settings,\n reactiveState.optionsState.components.grouping,\n reactiveState.optionsState.components.x,\n reactiveState.optionsState.components.y,\n inputGuide\n );\n\n return settings;\n}"],"names":["applyChartInfoFromAnnotations","settings","grouping","x","y","inputGuide","groupingSource","_a","xSource","_b","ySource","_c","xInfo","yInfo","annotations","THRESHOLDS_KEY","thresholdData","columnId","value","PALETTE_KEY","paletteData","mapping","name","layer","paletteEntries","UNKNOWN_COLOR","paletteColors","_d","PALETTE_MAP","res","key","color","DEFAULT_BLACK","DEFAULT_DOT_SHAPE","DEFAULT_DOT_SIZE","DEFAULT_LINE_WIDTH","UPPER_LIMIT_KEY","LOWER_LIMIT_KEY","SYMMETRIC_RANGE_KEY","applyInheritedAes","shape","uniqueValuesData","dataBindAes","states","inheritedAes","selectedSource","getScatterplotAes","layerAes","aesKey","isMappedAes","colors","DEFAULT_CATEGORICAL_PALETTE","composeScatterplotSettings","dataByColumns","reactiveState","getScatterplotLayersSettings","SCATTERPLOT_TEMPLATES_MAP","statisticsSettings","dotsLayer","getAxesDataFromForms"],"mappings":";;;;;;;AAqCO,SAASA,EACdC,GACAC,GACAC,GACAC,GACAC,GACA;;AACA,QAAMC,KAAiBC,IAAAL,EAAS,eAAe,CAAC,MAAzB,gBAAAK,EAA4B,gBAC7CC,KAAUC,IAAAN,EAAE,eAAe,CAAC,MAAlB,gBAAAM,EAAqB,gBAC/BC,KAAUC,IAAAP,EAAE,eAAe,CAAC,MAAlB,gBAAAO,EAAqB,gBAC/BC,IAAQP,EAAW,cAAcG,CAAO,GACxCK,IAAQR,EAAW,cAAcK,CAAO;AAE9C,MAAIR,EAAS,eAAe,QAAQ;AAClC,UAAMY,IAAcT,EAAW,cAAcC,CAAc,EAAE;AAsB7D,QArBIQ,KAAA,QAAAA,EAAcC,OACO,KAAK,MAAMD,EAAYC,CAAc,CAAC,KAAK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AA,IACtCjD;AAAA,EAAA,GAGKJ;AACT;"}
|
|
1
|
+
{"version":3,"file":"composeScatterplotSettings.js","sources":["../../../../src/GraphMaker/utils/createChartSettingsForRender/composeScatterplotSettings.ts"],"sourcesContent":["import { ScatterplotSettings, ScatterplotUmapSettings } from '@milaboratories/miplots4';\nimport {\n ComponentStateFilter,\n ComponentStateSimple,\n InputGuide,\n InputState,\n PlotDataAndSettings,\n ScatterplotUIState\n} from '@milaboratories/pf-plots';\nimport {\n DEFAULT_BLACK,\n DEFAULT_CATEGORICAL_PALETTE,\n PALETTE_MAP,\n UNKNOWN_COLOR\n} from '../../constantsAesthetic';\nimport {\n isMappedAes,\n LOWER_LIMIT_KEY, MappingLink,\n PALETTE_KEY,\n SCATTERPLOT_TEMPLATES_MAP,\n ScatterplotStatisticsState, SYMMETRIC_RANGE_KEY,\n THRESHOLDS_KEY, UPPER_LIMIT_KEY\n} from '../../constantsCommon';\nimport {\n AestheticMappingState,\n DEFAULT_DOT_SHAPE,\n DEFAULT_DOT_SIZE,\n DEFAULT_LINE_WIDTH,\n getScatterplotAes\n} from '../../dataBindAes';\nimport {\n ReactiveState,\n ScatterplotLayersTemplate,\n UniqueValuesBySourceMap\n} from '../../types';\nimport { getAxesDataFromForms, getScatterplotLayersSettings } from '../index';\n\nexport function applyChartInfoFromAnnotations (\n settings: ScatterplotSettings | ScatterplotUmapSettings,\n grouping: ComponentStateSimple | ComponentStateFilter,\n x: ComponentStateSimple | ComponentStateFilter,\n y: ComponentStateSimple | ComponentStateFilter,\n inputGuide: InputGuide<InputState>\n) {\n const groupingSource = grouping.selectorStates[0]?.selectedSource;\n const xSource = x.selectorStates[0]?.selectedSource;\n const ySource = y.selectorStates[0]?.selectedSource;\n const xInfo = inputGuide.getSourceInfo(xSource);\n const yInfo = inputGuide.getSourceInfo(ySource);\n\n if (grouping.selectorStates.length) {\n const annotations = inputGuide.getSourceInfo(groupingSource).annotations;\n if (annotations?.[THRESHOLDS_KEY]) {\n const thresholdsData = JSON.parse(annotations[THRESHOLDS_KEY]) ?? [];\n\n thresholdsData.forEach((thresholdData: { columnId: Record<string, string>, value: number }) => {\n const { columnId, value } = thresholdData;\n if (columnId && (xInfo.kind === 'column' && xInfo.type === columnId.valueType && xInfo.name === columnId.name)) {\n if (!settings.xAxis!.significantLines) {\n settings.xAxis!.significantLines = [];\n }\n settings.xAxis!.significantLines.push(Number(value));\n }\n\n if (columnId && (yInfo.kind === 'column' && yInfo.type === columnId.valueType && yInfo.name === columnId.name)) {\n if (!settings.yAxis!.significantLines) {\n settings.yAxis!.significantLines = [];\n }\n settings.yAxis!.significantLines.push(Number(value));\n }\n });\n }\n\n if (annotations?.[PALETTE_KEY]) {\n const paletteData = JSON.parse(annotations[PALETTE_KEY]);\n const { mapping = {}, name = '' } = paletteData;\n settings.layers.forEach(layer => {\n if (layer.type === 'dots') {\n if (!layer.aes) {\n layer.aes = {};\n }\n layer.aes.dotFill = { type: 'grouping', value: groupingSource };\n }\n });\n const paletteEntries = [...Object.entries(mapping), ['null', UNKNOWN_COLOR]];\n const paletteColors = PALETTE_MAP[name as keyof typeof PALETTE_MAP]?.colors ?? [];\n settings.inheritedAes![groupingSource] = paletteEntries.reduce((res: Record<string, any>, [key, value]) => {\n const color = paletteColors[Number(value)] ?? DEFAULT_BLACK;\n res[key] = {\n fillColor: color,\n lineColor: color,\n dotFill: color,\n dotShape: DEFAULT_DOT_SHAPE,\n dotSize: DEFAULT_DOT_SIZE,\n lineWidth: DEFAULT_LINE_WIDTH\n };\n return res;\n }, {});\n }\n }\n if (xInfo.annotations) {\n if (xInfo.annotations[UPPER_LIMIT_KEY]) {\n settings.xAxis!.upperValue = Number(xInfo.annotations[UPPER_LIMIT_KEY]);\n }\n if (xInfo.annotations[LOWER_LIMIT_KEY]) {\n settings.xAxis!.lowerValue = Number(xInfo.annotations[LOWER_LIMIT_KEY]);\n }\n if (xInfo.annotations[SYMMETRIC_RANGE_KEY]) {\n settings.xAxis!.symmetricRange = Number(xInfo.annotations[SYMMETRIC_RANGE_KEY]);\n }\n }\n\n if (yInfo.annotations) {\n if (yInfo.annotations[UPPER_LIMIT_KEY]) {\n settings.yAxis!.upperValue = Number(yInfo.annotations[UPPER_LIMIT_KEY]);\n }\n if (yInfo.annotations[LOWER_LIMIT_KEY]) {\n settings.yAxis!.lowerValue = Number(yInfo.annotations[LOWER_LIMIT_KEY]);\n }\n if (yInfo.annotations[SYMMETRIC_RANGE_KEY]) {\n settings.yAxis!.symmetricRange = Number(yInfo.annotations[SYMMETRIC_RANGE_KEY]);\n }\n }\n}\n\nexport function applyInheritedAes(\n settings: ScatterplotSettings | ScatterplotUmapSettings,\n grouping: ComponentStateSimple | ComponentStateFilter,\n shape: ComponentStateSimple | ComponentStateFilter | undefined,\n uniqueValuesData: UniqueValuesBySourceMap,\n dataBindAes: AestheticMappingState\n) {\n if (grouping.selectorStates.length || shape?.selectorStates.length) {\n settings.grouping = [...(settings.grouping ?? [])].map(v => ({...v}));\n settings.grouping.forEach((el) => {\n const selectedSource = el.columnName.value;\n const savedData = getScatterplotAes(selectedSource, uniqueValuesData, dataBindAes); // get saved or default color or shape mapping\n // if mapping exists but doesn't have saved order and value-color pairs - add just colors list to chart settings, chart will use it\n if (!savedData.order.length) {\n settings.layers.forEach(layer=> {\n const layerAes = layer.aes;\n if (!layerAes) {\n return;\n }\n const aesKeys = Object.keys(layerAes);\n aesKeys.forEach((aesKey) => {\n const value = layerAes[aesKey as keyof typeof layerAes] as unknown;\n if (isMappedAes(value) && value.value === selectedSource) {\n const colors = PALETTE_MAP[dataBindAes[selectedSource]?.palette ?? DEFAULT_CATEGORICAL_PALETTE]?.colors ?? [];\n (value as MappingLink & {palette: string[]}).palette = colors;\n }\n })\n })\n } else {\n el.order = savedData.order;\n el.inheritedAes = savedData.inheritedAes;\n }\n });\n }\n}\nexport function composeScatterplotSettings(\n settings: ScatterplotSettings,\n dataByColumns: PlotDataAndSettings['data']['byColumns'],\n reactiveState: ReactiveState,\n inputGuide: InputGuide<InputState>,\n uniqueValuesData: UniqueValuesBySourceMap\n) {\n settings.layers = getScatterplotLayersSettings(\n SCATTERPLOT_TEMPLATES_MAP[reactiveState.template as ScatterplotLayersTemplate],\n reactiveState.layersSettings,\n dataByColumns,\n reactiveState.optionsState as ScatterplotUIState,\n reactiveState.dataBindAes,\n inputGuide,\n settings?.grouping?.map(v => v.columnName)\n );\n\n applyInheritedAes(\n settings,\n reactiveState.optionsState.components.grouping,\n reactiveState.optionsState.components.shape,\n uniqueValuesData,\n reactiveState.dataBindAes\n );\n\n const statisticsSettings = reactiveState.statisticsSettings as ScatterplotStatisticsState;\n const dotsLayer = settings.layers.find(layer => layer.type === 'dots');\n if (statisticsSettings.trend.on && dotsLayer) {\n settings.trend = {\n color: dotsLayer.aes?.dotFill,\n bounded: false\n };\n }\n\n Object.assign(\n settings,\n getAxesDataFromForms(reactiveState.axesSettings, reactiveState.chartType)\n );\n\n applyChartInfoFromAnnotations(\n settings,\n reactiveState.optionsState.components.grouping,\n reactiveState.optionsState.components.x,\n reactiveState.optionsState.components.y,\n inputGuide\n );\n\n return settings;\n}"],"names":["applyChartInfoFromAnnotations","settings","grouping","x","y","inputGuide","groupingSource","_a","xSource","_b","ySource","_c","xInfo","yInfo","annotations","THRESHOLDS_KEY","thresholdData","columnId","value","PALETTE_KEY","paletteData","mapping","name","layer","paletteEntries","UNKNOWN_COLOR","paletteColors","_d","PALETTE_MAP","res","key","color","DEFAULT_BLACK","DEFAULT_DOT_SHAPE","DEFAULT_DOT_SIZE","DEFAULT_LINE_WIDTH","UPPER_LIMIT_KEY","LOWER_LIMIT_KEY","SYMMETRIC_RANGE_KEY","applyInheritedAes","shape","uniqueValuesData","dataBindAes","v","el","selectedSource","savedData","getScatterplotAes","layerAes","aesKey","isMappedAes","colors","DEFAULT_CATEGORICAL_PALETTE","composeScatterplotSettings","dataByColumns","reactiveState","getScatterplotLayersSettings","SCATTERPLOT_TEMPLATES_MAP","statisticsSettings","dotsLayer","getAxesDataFromForms"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