@visactor/vseed 0.0.19 → 0.0.20
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/builder/builder/advanced/colorItems.d.ts +2 -0
- package/dist/builder/builder/advanced/index.d.ts +1 -0
- package/dist/builder/builder/builder.d.ts +132 -110
- package/dist/builder/register/chartType.d.ts +2 -0
- package/dist/builder/register/index.d.ts +1 -1
- package/dist/dataReshape/foldMeasures.d.ts +3 -3
- package/dist/index.cjs +580 -137
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +501 -130
- package/dist/index.js.map +1 -1
- package/dist/pipeline/advanced/chart/index.d.ts +1 -0
- package/dist/pipeline/advanced/{pipeline → chart/pipeline}/area.d.ts +1 -1
- package/dist/pipeline/advanced/{pipeline → chart/pipeline}/areaPercent.d.ts +1 -1
- package/dist/pipeline/advanced/{pipeline → chart/pipeline}/bar.d.ts +1 -1
- package/dist/pipeline/advanced/{pipeline → chart/pipeline}/barParallel.d.ts +1 -1
- package/dist/pipeline/advanced/{pipeline → chart/pipeline}/barPercent.d.ts +1 -1
- package/dist/pipeline/advanced/{pipeline → chart/pipeline}/column.d.ts +1 -1
- package/dist/pipeline/advanced/{pipeline → chart/pipeline}/columnParallel.d.ts +1 -1
- package/dist/pipeline/advanced/{pipeline → chart/pipeline}/columnPercent.d.ts +1 -1
- package/dist/pipeline/advanced/{pipeline → chart/pipeline}/donut.d.ts +1 -1
- package/dist/pipeline/advanced/{pipeline → chart/pipeline}/funnel.d.ts +1 -1
- package/dist/pipeline/advanced/{pipeline → chart/pipeline}/line.d.ts +1 -1
- package/dist/pipeline/advanced/{pipeline → chart/pipeline}/pie.d.ts +1 -1
- package/dist/pipeline/advanced/{pipeline → chart/pipeline}/rose.d.ts +1 -1
- package/dist/pipeline/advanced/{pipeline → chart/pipeline}/roseParallel.d.ts +1 -1
- package/dist/pipeline/advanced/{pipeline → chart/pipeline}/scatter.d.ts +1 -1
- package/dist/pipeline/advanced/chart/pipes/annotation/annotation.d.ts +2 -0
- package/dist/pipeline/advanced/{pipes → chart/pipes}/config/config.d.ts +1 -1
- package/dist/pipeline/advanced/chart/pipes/encoding/encodingFunnel.d.ts +2 -0
- package/dist/pipeline/advanced/chart/pipes/encoding/encodingPie.d.ts +2 -0
- package/dist/pipeline/advanced/chart/pipes/encoding/encodingRose.d.ts +2 -0
- package/dist/pipeline/advanced/chart/pipes/encoding/encodingXY.d.ts +2 -0
- package/dist/pipeline/advanced/chart/pipes/encoding/encodingYX.d.ts +2 -0
- package/dist/pipeline/advanced/chart/pipes/encoding/encodingYY.d.ts +2 -0
- package/dist/pipeline/advanced/{pipes → chart/pipes}/encoding/index.d.ts +1 -0
- package/dist/pipeline/advanced/{pipes → chart/pipes}/index.d.ts +0 -1
- package/dist/pipeline/advanced/chart/pipes/init/autoDimensions.d.ts +2 -0
- package/dist/pipeline/advanced/chart/pipes/init/autoMeasures.d.ts +2 -0
- package/dist/pipeline/advanced/chart/pipes/init/initAdvancedVSeed.d.ts +2 -0
- package/dist/pipeline/advanced/chart/pipes/markStyle/markStyle.d.ts +2 -0
- package/dist/pipeline/advanced/{pipes → chart/pipes}/pivot/pivotAdapter.d.ts +1 -1
- package/dist/pipeline/advanced/{pipes → chart/pipes}/reshape/pivotReshapeTo1D1M.d.ts +1 -1
- package/dist/pipeline/advanced/{pipes → chart/pipes}/reshape/pivotReshapeTo1D2M.d.ts +1 -1
- package/dist/pipeline/advanced/{pipes → chart/pipes}/reshape/pivotReshapeTo2D1M.d.ts +1 -1
- package/dist/pipeline/advanced/{pipes → chart/pipes}/reshape/reshapeTo1D1M.d.ts +1 -1
- package/dist/pipeline/advanced/{pipes → chart/pipes}/reshape/reshapeTo1D2M.d.ts +1 -1
- package/dist/pipeline/advanced/{pipes → chart/pipes}/reshape/reshapeTo2D1M.d.ts +1 -1
- package/dist/pipeline/advanced/chart/pipes/theme/theme.d.ts +2 -0
- package/dist/pipeline/advanced/index.d.ts +2 -1
- package/dist/pipeline/advanced/table/index.d.ts +1 -0
- package/dist/pipeline/advanced/table/pipeline/index.d.ts +2 -0
- package/dist/pipeline/advanced/table/pipeline/pivotTable.d.ts +2 -0
- package/dist/pipeline/advanced/table/pipeline/table.d.ts +2 -0
- package/dist/pipeline/advanced/table/pipes/index.d.ts +2 -0
- package/dist/pipeline/advanced/table/pipes/init/autoDimensions.d.ts +2 -0
- package/dist/pipeline/advanced/table/pipes/init/autoMeasures.d.ts +2 -0
- package/dist/pipeline/advanced/table/pipes/init/autoPivotDimensions.d.ts +2 -0
- package/dist/pipeline/advanced/table/pipes/init/autoPivotMeasures.d.ts +2 -0
- package/dist/pipeline/advanced/table/pipes/init/index.d.ts +5 -0
- package/dist/pipeline/advanced/table/pipes/init/initAdvancedVSeed.d.ts +2 -0
- package/dist/pipeline/advanced/table/pipes/records/index.d.ts +1 -0
- package/dist/pipeline/advanced/table/pipes/records/records.d.ts +2 -0
- package/dist/pipeline/spec/chart/index.d.ts +1 -0
- package/dist/pipeline/spec/chart/pipeline/area.d.ts +1 -0
- package/dist/pipeline/spec/chart/pipeline/areaPercent.d.ts +1 -0
- package/dist/pipeline/spec/chart/pipeline/bar.d.ts +2 -0
- package/dist/pipeline/spec/{pipeline → chart/pipeline}/barParallel.d.ts +1 -1
- package/dist/pipeline/spec/{pipeline → chart/pipeline}/barPercent.d.ts +1 -1
- package/dist/pipeline/spec/chart/pipeline/column.d.ts +1 -0
- package/dist/pipeline/spec/{pipeline → chart/pipeline}/columnParallel.d.ts +1 -1
- package/dist/pipeline/spec/{pipeline → chart/pipeline}/columnPercent.d.ts +1 -1
- package/dist/pipeline/spec/chart/pipeline/donut.d.ts +2 -0
- package/dist/pipeline/spec/{pipeline → chart/pipeline}/funnel.d.ts +1 -1
- package/dist/pipeline/spec/chart/pipeline/line.d.ts +2 -0
- package/dist/pipeline/spec/chart/pipeline/pie.d.ts +2 -0
- package/dist/pipeline/spec/chart/pipeline/rose.d.ts +1 -0
- package/dist/pipeline/spec/{pipeline → chart/pipeline}/roseParallel.d.ts +1 -1
- package/dist/pipeline/spec/{pipeline → chart/pipeline}/scatter.d.ts +1 -1
- package/dist/pipeline/spec/chart/pipes/index.d.ts +14 -0
- package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/init/index.d.ts +1 -0
- package/dist/pipeline/spec/index.d.ts +2 -1
- package/dist/pipeline/spec/table/index.d.ts +1 -0
- package/dist/pipeline/spec/table/pipeline/index.d.ts +2 -0
- package/dist/pipeline/spec/table/pipeline/pivotTable.d.ts +2 -0
- package/dist/pipeline/spec/table/pipeline/table.d.ts +2 -0
- package/dist/pipeline/spec/table/pipes/columns/index.d.ts +2 -0
- package/dist/pipeline/spec/table/pipes/columns/measuresToColumns.d.ts +3 -0
- package/dist/pipeline/spec/table/pipes/columns/pivotColumns.d.ts +2 -0
- package/dist/pipeline/spec/table/pipes/index.d.ts +4 -0
- package/dist/pipeline/spec/table/pipes/indicators/index.d.ts +1 -0
- package/dist/pipeline/spec/table/pipes/indicators/pivotIndicators.d.ts +2 -0
- package/dist/pipeline/spec/table/pipes/init/index.d.ts +2 -0
- package/dist/pipeline/spec/table/pipes/init/pivotTable.d.ts +2 -0
- package/dist/pipeline/spec/table/pipes/init/table.d.ts +2 -0
- package/dist/pipeline/spec/table/pipes/rows/index.d.ts +1 -0
- package/dist/pipeline/spec/table/pipes/rows/pivotRows.d.ts +2 -0
- package/dist/pipeline/utils/chatType.d.ts +4 -2
- package/dist/pipeline/utils/dimensions/find.d.ts +4 -0
- package/dist/pipeline/utils/dimensions/index.d.ts +1 -0
- package/dist/pipeline/utils/index.d.ts +2 -0
- package/dist/pipeline/utils/measures/find.d.ts +4 -0
- package/dist/pipeline/utils/measures/index.d.ts +1 -1
- package/dist/pipeline/utils/tree/index.d.ts +1 -0
- package/dist/pipeline/utils/tree/traverse.d.ts +11 -0
- package/dist/types/advancedVSeed.d.ts +16 -5
- package/dist/types/builder/builder.d.ts +1 -0
- package/dist/types/chartType/area/area.d.ts +7 -8
- package/dist/types/chartType/areaPercent/areaPercent.d.ts +7 -8
- package/dist/types/chartType/bar/bar.d.ts +7 -8
- package/dist/types/chartType/barParallel/barParallel.d.ts +7 -8
- package/dist/types/chartType/barPercent/barPercent.d.ts +7 -8
- package/dist/types/chartType/column/column.d.ts +7 -8
- package/dist/types/chartType/columnParallel/columnParallel.d.ts +7 -8
- package/dist/types/chartType/columnPercent/columnPercent.d.ts +7 -8
- package/dist/types/chartType/donut/donut.d.ts +7 -8
- package/dist/types/chartType/dualAxis/dualAxis.d.ts +3 -3
- package/dist/types/chartType/funnel/funnel.d.ts +7 -8
- package/dist/types/chartType/index.d.ts +3 -3
- package/dist/types/chartType/line/line.d.ts +7 -8
- package/dist/types/chartType/pie/pie.d.ts +7 -8
- package/dist/types/chartType/pivotTable/index.d.ts +1 -1
- package/dist/types/chartType/pivotTable/pivotTable.d.ts +58 -3
- package/dist/types/chartType/rose/rose.d.ts +4 -5
- package/dist/types/chartType/roseParallel/roseParallel.d.ts +4 -5
- package/dist/types/chartType/scatter/scatter.d.ts +7 -8
- package/dist/types/chartType/table/index.d.ts +1 -1
- package/dist/types/chartType/table/table.d.ts +98 -4
- package/dist/types/properties/dimensions/dimensions.d.ts +48 -6
- package/dist/types/properties/dimensions/index.d.ts +1 -2
- package/dist/types/properties/measures/measures.d.ts +39 -3
- package/dist/types/vseed.d.ts +205 -76
- package/dist/umd/index.js +532 -137
- package/dist/umd/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/pipeline/advanced/pipes/annotation/annotation.d.ts +0 -2
- package/dist/pipeline/advanced/pipes/encoding/encodingFunnel.d.ts +0 -2
- package/dist/pipeline/advanced/pipes/encoding/encodingPie.d.ts +0 -2
- package/dist/pipeline/advanced/pipes/encoding/encodingRose.d.ts +0 -2
- package/dist/pipeline/advanced/pipes/encoding/encodingXY.d.ts +0 -2
- package/dist/pipeline/advanced/pipes/encoding/encodingYX.d.ts +0 -2
- package/dist/pipeline/advanced/pipes/encoding/encodingYY.d.ts +0 -2
- package/dist/pipeline/advanced/pipes/i18n/index.d.ts +0 -1
- package/dist/pipeline/advanced/pipes/i18n/locale.d.ts +0 -2
- package/dist/pipeline/advanced/pipes/init/autoDimensions.d.ts +0 -2
- package/dist/pipeline/advanced/pipes/init/autoMeasures.d.ts +0 -2
- package/dist/pipeline/advanced/pipes/init/initAdvancedVSeed.d.ts +0 -2
- package/dist/pipeline/advanced/pipes/init/utils.d.ts +0 -1
- package/dist/pipeline/advanced/pipes/markStyle/markStyle.d.ts +0 -2
- package/dist/pipeline/advanced/pipes/theme/theme.d.ts +0 -2
- package/dist/pipeline/spec/pipeline/area.d.ts +0 -1
- package/dist/pipeline/spec/pipeline/areaPercent.d.ts +0 -1
- package/dist/pipeline/spec/pipeline/bar.d.ts +0 -2
- package/dist/pipeline/spec/pipeline/column.d.ts +0 -1
- package/dist/pipeline/spec/pipeline/donut.d.ts +0 -2
- package/dist/pipeline/spec/pipeline/line.d.ts +0 -2
- package/dist/pipeline/spec/pipeline/pie.d.ts +0 -2
- package/dist/pipeline/spec/pipeline/rose.d.ts +0 -1
- package/dist/pipeline/spec/pipes/index.d.ts +0 -14
- package/dist/pipeline/utils/measures/findMeasureById.d.ts +0 -3
- /package/dist/pipeline/advanced/{pipeline → chart/pipeline}/index.d.ts +0 -0
- /package/dist/pipeline/advanced/{pipes → chart/pipes}/annotation/index.d.ts +0 -0
- /package/dist/pipeline/advanced/{pipes → chart/pipes}/config/index.d.ts +0 -0
- /package/dist/pipeline/advanced/{pipes → chart/pipes}/init/index.d.ts +0 -0
- /package/dist/pipeline/advanced/{pipes → chart/pipes}/markStyle/index.d.ts +0 -0
- /package/dist/pipeline/advanced/{pipes → chart/pipes}/pivot/index.d.ts +0 -0
- /package/dist/pipeline/advanced/{pipes → chart/pipes}/reshape/index.d.ts +0 -0
- /package/dist/pipeline/advanced/{pipes → chart/pipes}/theme/index.d.ts +0 -0
- /package/dist/pipeline/spec/{pipeline → chart/pipeline}/index.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/annotation/annotationArea.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/annotation/annotationAreaBand.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/annotation/annotationHorizontalLine.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/annotation/annotationPoint.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/annotation/annotationVerticalLine.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/annotation/index.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/annotation/utils.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/axes/a.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/axes/angle.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/axes/index.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/axes/radius.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/axes/xBand.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/axes/xLinear.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/axes/yBand.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/axes/yLinear.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/backgroundColor/background.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/backgroundColor/index.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/color/color.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/color/index.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/crosshair/horizontalCrosshairLine.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/crosshair/horizontalCrosshairRect.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/crosshair/index.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/crosshair/verticalCrosshairLine.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/crosshair/verticalCrosshairRect.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/dataset/dataset.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/dataset/datasetPivot.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/dataset/index.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/init/area.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/init/bar.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/init/barParallel.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/init/column.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/init/columnParallel.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/init/donut.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/init/funnel.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/init/line.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/init/pie.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/init/pivot.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/init/rose.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/init/roseParallel.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/init/scatter.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/label/index.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/label/label.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/legend/discreteLegend.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/legend/index.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/legend/pivotDiscreteLegend.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/markStyle/areaStyle.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/markStyle/barStyle.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/markStyle/index.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/markStyle/lineStyle.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/markStyle/pointState.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/markStyle/pointStyle.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/percent/index.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/percent/percent.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/pivotChart/index.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/pivotChart/pivotAdapter.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/pivotChart/pivotColumnDimensions.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/pivotChart/pivotGridStyle.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/pivotChart/pivotIndicators.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/pivotChart/pivotRowDimensions.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/stack/index.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/stack/stack.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/stack/stackCornerRadius.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/tooltip/index.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/tooltip/tooltip.d.ts +0 -0
- /package/dist/pipeline/{constant.d.ts → utils/constant.d.ts} +0 -0
package/dist/index.cjs
CHANGED
@@ -30,6 +30,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
30
30
|
pieAdvancedPipeline: ()=>pieAdvancedPipeline,
|
31
31
|
execPipeline: ()=>execPipeline,
|
32
32
|
areaSpecPipeline: ()=>areaSpecPipeline,
|
33
|
+
isTable: ()=>isTable,
|
33
34
|
zDonut: ()=>zDonut,
|
34
35
|
zRoseConfig: ()=>zRoseConfig,
|
35
36
|
findFirstMeasure: ()=>findFirstMeasure,
|
@@ -40,16 +41,21 @@ __webpack_require__.d(__webpack_exports__, {
|
|
40
41
|
columnPercentAdvancedPipeline: ()=>columnPercentAdvancedPipeline,
|
41
42
|
zColumnConfig: ()=>zColumnConfig,
|
42
43
|
zAnnotation: ()=>zAnnotation,
|
44
|
+
pivotTableAdvancedPipeline: ()=>pivotTableAdvancedPipeline,
|
43
45
|
zYBandAxis: ()=>zYBandAxis,
|
44
46
|
dataReshapeFor1D2M: ()=>dataReshapeFor1D2M,
|
45
47
|
zAnnotationHorizontalLine: ()=>zAnnotationHorizontalLine,
|
46
48
|
zMarkStyle: ()=>zMarkStyle,
|
47
|
-
|
49
|
+
registerFunnel: ()=>registerFunnel,
|
48
50
|
Separator: ()=>Separator,
|
51
|
+
zYLinearAxis: ()=>zYLinearAxis,
|
49
52
|
columnAdvancedPipeline: ()=>columnAdvancedPipeline,
|
50
53
|
zLabel: ()=>zLabel,
|
51
54
|
registerColumn: ()=>registerColumn,
|
55
|
+
findAllMeasures: ()=>findAllMeasures,
|
52
56
|
funnelSpecPipeline: ()=>funnelSpecPipeline,
|
57
|
+
preorderTraverse: ()=>preorderTraverse,
|
58
|
+
zDimensionTree: ()=>zDimensionTree,
|
53
59
|
roseParallelSpecPipeline: ()=>roseParallelSpecPipeline,
|
54
60
|
zLineStyle: ()=>zLineStyle,
|
55
61
|
dataReshapeFor1D1M: ()=>dataReshapeFor1D1M,
|
@@ -59,6 +65,8 @@ __webpack_require__.d(__webpack_exports__, {
|
|
59
65
|
UnfoldDimensionGroupId: ()=>UnfoldDimensionGroupId,
|
60
66
|
zNumFormat: ()=>zNumFormat,
|
61
67
|
barPercentAdvancedPipeline: ()=>barPercentAdvancedPipeline,
|
68
|
+
findAllDimensions: ()=>findAllDimensions,
|
69
|
+
findDimensionById: ()=>findDimensionById,
|
62
70
|
zArea: ()=>zArea,
|
63
71
|
zColumnParallel: ()=>zColumnParallel,
|
64
72
|
zDimensions: ()=>zDimensions,
|
@@ -76,29 +84,39 @@ __webpack_require__.d(__webpack_exports__, {
|
|
76
84
|
zCrosshairLine: ()=>zCrosshairLine,
|
77
85
|
registerBarPercent: ()=>registerBarPercent,
|
78
86
|
roseSpecPipeline: ()=>roseSpecPipeline,
|
87
|
+
zPivotTable: ()=>zPivotTable,
|
79
88
|
registerLightTheme: ()=>registerLightTheme,
|
80
89
|
roseAdvancedPipeline: ()=>roseAdvancedPipeline,
|
81
90
|
zBarParallel: ()=>zBarParallel,
|
91
|
+
zAnnotationVerticalLine: ()=>zAnnotationVerticalLine,
|
82
92
|
zChartType: ()=>zChartType,
|
93
|
+
tableAdvancedPipeline: ()=>tableAdvancedPipeline,
|
83
94
|
registerDarkTheme: ()=>registerDarkTheme,
|
84
|
-
|
95
|
+
registerPivotTable: ()=>registerPivotTable,
|
85
96
|
pieSpecPipeline: ()=>pieSpecPipeline,
|
86
|
-
|
97
|
+
zMeasureTree: ()=>zMeasureTree,
|
87
98
|
barSpecPipeline: ()=>barSpecPipeline,
|
99
|
+
zStackCornerRadius: ()=>zStackCornerRadius,
|
100
|
+
registerRose: ()=>registerRose,
|
88
101
|
zRose: ()=>zRose,
|
89
102
|
unfoldDimensions: ()=>unfoldDimensions,
|
90
103
|
roseParallelAdvancedPipeline: ()=>roseParallelAdvancedPipeline,
|
91
|
-
|
104
|
+
registerTable: ()=>registerTable,
|
92
105
|
autoFormatter: ()=>autoFormatter,
|
106
|
+
findFirstDimension: ()=>findFirstDimension,
|
93
107
|
Builder: ()=>Builder,
|
94
|
-
registerBar: ()=>registerBar,
|
95
108
|
registerAll: ()=>registerAll,
|
109
|
+
registerBar: ()=>registerBar,
|
96
110
|
isVChart: ()=>isVChart,
|
111
|
+
zPieConfig: ()=>zPieConfig,
|
112
|
+
zTable: ()=>zTable,
|
97
113
|
registerLine: ()=>registerLine,
|
98
114
|
registerCustomTheme: ()=>registerCustomTheme,
|
99
115
|
zColor: ()=>zColor,
|
100
|
-
|
116
|
+
registerRoseParallel: ()=>registerRoseParallel,
|
117
|
+
registerDonut: ()=>registerDonut,
|
101
118
|
zDonutConfig: ()=>zDonutConfig,
|
119
|
+
zMeasureGroup: ()=>zMeasureGroup,
|
102
120
|
zUnfoldInfo: ()=>zUnfoldInfo,
|
103
121
|
zFunnelConfig: ()=>zFunnelConfig,
|
104
122
|
zMeasures: ()=>zMeasures,
|
@@ -138,13 +156,16 @@ __webpack_require__.d(__webpack_exports__, {
|
|
138
156
|
registerBarParallel: ()=>registerBarParallel,
|
139
157
|
zMeasure: ()=>zMeasure,
|
140
158
|
zLocale: ()=>zLocale,
|
159
|
+
pivotTableSpecPipeline: ()=>pivotTableSpecPipeline,
|
160
|
+
registerScatter: ()=>registerScatter,
|
141
161
|
zEncoding: ()=>zEncoding,
|
142
162
|
autoNumFormatter: ()=>autoNumFormatter,
|
143
163
|
zAdvancedVSeed: ()=>zAdvancedVSeed,
|
144
|
-
|
164
|
+
tableSpecPipeline: ()=>tableSpecPipeline,
|
145
165
|
zConfig: ()=>zConfig,
|
146
166
|
zRoseParallelConfig: ()=>zRoseParallelConfig,
|
147
167
|
zBarStyle: ()=>zBarStyle,
|
168
|
+
zXLinearAxis: ()=>zXLinearAxis,
|
148
169
|
zAreaPercent: ()=>zAreaPercent,
|
149
170
|
columnParallelAdvancedPipeline: ()=>columnParallelAdvancedPipeline,
|
150
171
|
zColumnPercent: ()=>zColumnPercent,
|
@@ -152,9 +173,10 @@ __webpack_require__.d(__webpack_exports__, {
|
|
152
173
|
zScatter: ()=>zScatter,
|
153
174
|
foldMeasures: ()=>foldMeasures,
|
154
175
|
dataReshapeFor2D1M: ()=>dataReshapeFor2D1M,
|
176
|
+
isPivotTable: ()=>isPivotTable,
|
177
|
+
registerPie: ()=>registerPie,
|
155
178
|
zFunnel: ()=>zFunnel,
|
156
179
|
zScatterConfig: ()=>zScatterConfig,
|
157
|
-
zTooltip: ()=>zTooltip,
|
158
180
|
zBarParallelConfig: ()=>zBarParallelConfig,
|
159
181
|
barParallelAdvancedPipeline: ()=>barParallelAdvancedPipeline,
|
160
182
|
FoldMeasureValue: ()=>FoldMeasureValue,
|
@@ -162,7 +184,9 @@ __webpack_require__.d(__webpack_exports__, {
|
|
162
184
|
barPercentSpecPipeline: ()=>barPercentSpecPipeline,
|
163
185
|
lineAdvancedPipeline: ()=>lineAdvancedPipeline,
|
164
186
|
lineSpecPipeline: ()=>lineSpecPipeline,
|
187
|
+
zTooltip: ()=>zTooltip,
|
165
188
|
createFormatter: ()=>createFormatter,
|
189
|
+
zDimensionGroup: ()=>zDimensionGroup,
|
166
190
|
columnPercentSpecPipeline: ()=>columnPercentSpecPipeline,
|
167
191
|
areaAdvancedPipeline: ()=>areaAdvancedPipeline,
|
168
192
|
areaPercentSpecPipeline: ()=>areaPercentSpecPipeline,
|
@@ -171,23 +195,27 @@ __webpack_require__.d(__webpack_exports__, {
|
|
171
195
|
});
|
172
196
|
const initAdvancedVSeed = (advancedVSeed, context)=>{
|
173
197
|
const { vseed } = context;
|
174
|
-
const { chartType } = vseed;
|
198
|
+
const { chartType, locale } = vseed;
|
175
199
|
return {
|
176
200
|
...advancedVSeed,
|
177
|
-
chartType
|
201
|
+
chartType,
|
202
|
+
locale: locale || 'zh-CN'
|
178
203
|
};
|
179
204
|
};
|
180
205
|
const execPipeline = (pipeline, context, initialValue = {})=>{
|
181
206
|
const result = pipeline.reduce((prev, cur)=>cur(prev, context), initialValue);
|
182
207
|
return result;
|
183
208
|
};
|
209
|
+
const isTable = (vseed)=>'table' === vseed.chartType;
|
210
|
+
const isPivotTable = (vseed)=>'pivotTable' === vseed.chartType;
|
184
211
|
const isVTable = (vseed)=>[
|
185
212
|
'table',
|
186
213
|
'pivotTable'
|
187
214
|
].includes(vseed.chartType);
|
188
215
|
const isVChart = (vseed)=>!isVTable(vseed);
|
189
216
|
const isPivotChart = (vseed)=>{
|
190
|
-
|
217
|
+
if (isVTable(vseed)) return false;
|
218
|
+
const { measures = [], dimensions = [] } = vseed;
|
191
219
|
const hasRowOrColumnDimension = dimensions && dimensions.some((dimension)=>'rowDimension' === dimension.location || 'columnDimension' === dimension.location);
|
192
220
|
const hasMeasureGroup = measures && measures.find((measure)=>measure && measure.children);
|
193
221
|
return hasRowOrColumnDimension || hasMeasureGroup;
|
@@ -278,32 +306,92 @@ const autoNumFormatter = (value, locale = intl.getLocale())=>{
|
|
278
306
|
};
|
279
307
|
const createFormatter = (format)=>createNumFormatter(format);
|
280
308
|
const autoFormatter = (value, locale)=>autoNumFormatter(value, locale);
|
281
|
-
const
|
282
|
-
if (!
|
309
|
+
const preorderTraverse = (tree, callback)=>{
|
310
|
+
if (!tree || 0 === tree.length) return;
|
283
311
|
const stack = [
|
284
|
-
...
|
285
|
-
];
|
312
|
+
...tree
|
313
|
+
].reverse();
|
286
314
|
while(stack.length > 0){
|
287
|
-
const
|
288
|
-
|
289
|
-
if (
|
290
|
-
if ('children' in
|
315
|
+
const node = stack.pop();
|
316
|
+
const stop = callback(node);
|
317
|
+
if (true === stop) return;
|
318
|
+
if (!('children' in node)) continue;
|
319
|
+
const children = node.children;
|
320
|
+
if (children && children.length > 0) for(let i = children.length - 1; i >= 0; i--){
|
321
|
+
const child = children[i];
|
322
|
+
stack.push(child);
|
323
|
+
}
|
291
324
|
}
|
292
325
|
};
|
326
|
+
const findMeasureById = (measures = [], id)=>{
|
327
|
+
if (!measures) return;
|
328
|
+
let result;
|
329
|
+
preorderTraverse(measures, (node)=>{
|
330
|
+
if (!('children' in node)) {
|
331
|
+
if (node.id === id) {
|
332
|
+
result = node;
|
333
|
+
return true;
|
334
|
+
}
|
335
|
+
}
|
336
|
+
return false;
|
337
|
+
});
|
338
|
+
return result;
|
339
|
+
};
|
293
340
|
const findFirstMeasure = (measures = [])=>{
|
294
341
|
if (!measures) return;
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
if (!current) continue;
|
301
|
-
if (!('children' in current)) return current;
|
302
|
-
if ('children' in current && current.children) {
|
303
|
-
const children = (current.children || []).reverse();
|
304
|
-
stack.push(...children);
|
342
|
+
let result;
|
343
|
+
preorderTraverse(measures, (node)=>{
|
344
|
+
if (!('children' in node)) {
|
345
|
+
result = node;
|
346
|
+
return true;
|
305
347
|
}
|
306
|
-
|
348
|
+
return false;
|
349
|
+
});
|
350
|
+
return result;
|
351
|
+
};
|
352
|
+
const findAllMeasures = (measures = [])=>{
|
353
|
+
if (!measures) return [];
|
354
|
+
const result = [];
|
355
|
+
preorderTraverse(measures, (node)=>{
|
356
|
+
if (!('children' in node)) result.push(node);
|
357
|
+
return false;
|
358
|
+
});
|
359
|
+
return result;
|
360
|
+
};
|
361
|
+
const findDimensionById = (dimensions = [], id)=>{
|
362
|
+
if (!dimensions) return;
|
363
|
+
let result;
|
364
|
+
preorderTraverse(dimensions, (node)=>{
|
365
|
+
if (!('children' in node)) {
|
366
|
+
if (node.id === id) {
|
367
|
+
result = node;
|
368
|
+
return true;
|
369
|
+
}
|
370
|
+
}
|
371
|
+
return false;
|
372
|
+
});
|
373
|
+
return result;
|
374
|
+
};
|
375
|
+
const findFirstDimension = (dimensions = [])=>{
|
376
|
+
if (!dimensions) return;
|
377
|
+
let result;
|
378
|
+
preorderTraverse(dimensions, (node)=>{
|
379
|
+
if (!('children' in node)) {
|
380
|
+
result = node;
|
381
|
+
return true;
|
382
|
+
}
|
383
|
+
return false;
|
384
|
+
});
|
385
|
+
return result;
|
386
|
+
};
|
387
|
+
const findAllDimensions = (dimensions = [])=>{
|
388
|
+
if (!dimensions) return [];
|
389
|
+
const result = [];
|
390
|
+
preorderTraverse(dimensions, (node)=>{
|
391
|
+
if (!('children' in node)) result.push(node);
|
392
|
+
return false;
|
393
|
+
});
|
394
|
+
return result;
|
307
395
|
};
|
308
396
|
const autoMeasures = (advancedVSeed, context)=>{
|
309
397
|
const result = {
|
@@ -382,7 +470,7 @@ const autoDimensions = (advancedVSeed, context)=>{
|
|
382
470
|
};
|
383
471
|
const { vseed } = context;
|
384
472
|
const { dimensions, dataset } = vseed;
|
385
|
-
const
|
473
|
+
const measures = findAllMeasures(advancedVSeed.measures);
|
386
474
|
if (!dataset) throw new Error('dataset is required');
|
387
475
|
if (0 === dataset.length) return result;
|
388
476
|
if (dimensions) {
|
@@ -435,7 +523,10 @@ const unfoldDimensions = (dataset, dimensions, measures, unfoldStartIndex = 0, u
|
|
435
523
|
for(let i = 0; i < dataset.length; i++){
|
436
524
|
const datum = dataset[i];
|
437
525
|
const colorName = generateDimGroupName(dimensionsToBeUnfolded, datum, dimensionsSeparator);
|
438
|
-
const colorId =
|
526
|
+
const colorId = [
|
527
|
+
colorName,
|
528
|
+
datum[foldMeasureId] || 'id'
|
529
|
+
].join(dimensionsSeparator);
|
439
530
|
datum[unfoldGroupName] = colorName;
|
440
531
|
datum[unfoldGroupId] = colorId;
|
441
532
|
colorItems.push(colorId);
|
@@ -735,7 +826,8 @@ const pivotReshapeTo1D1M = (advancedVSeed, context)=>{
|
|
735
826
|
};
|
736
827
|
const { vseed } = context;
|
737
828
|
const { dataset } = vseed;
|
738
|
-
const {
|
829
|
+
const { measures } = advancedVSeed;
|
830
|
+
const dimensions = advancedVSeed.dimensions;
|
739
831
|
if (!measures || !dimensions) return result;
|
740
832
|
const measureGroups = [];
|
741
833
|
if (measures) measures.forEach((measure)=>{
|
@@ -774,7 +866,8 @@ const pivotReshapeTo1D2M = (advancedVSeed, context)=>{
|
|
774
866
|
};
|
775
867
|
const { vseed } = context;
|
776
868
|
const { dataset } = vseed;
|
777
|
-
const {
|
869
|
+
const { measures } = advancedVSeed;
|
870
|
+
const dimensions = advancedVSeed.dimensions;
|
778
871
|
if (!measures || !dimensions) return result;
|
779
872
|
const measureGroups = [];
|
780
873
|
if (measures) measures.forEach((measure)=>{
|
@@ -813,7 +906,8 @@ const pivotReshapeTo2D1M = (advancedVSeed, context)=>{
|
|
813
906
|
};
|
814
907
|
const { vseed } = context;
|
815
908
|
const { dataset } = vseed;
|
816
|
-
const {
|
909
|
+
const { measures } = advancedVSeed;
|
910
|
+
const dimensions = advancedVSeed.dimensions;
|
817
911
|
if (!measures || !dimensions) return result;
|
818
912
|
const measureGroups = [];
|
819
913
|
if (measures) measures.forEach((measure)=>{
|
@@ -918,6 +1012,42 @@ const encodingYX = (advancedVSeed)=>{
|
|
918
1012
|
encoding
|
919
1013
|
};
|
920
1014
|
};
|
1015
|
+
const encodingYY = (advancedVSeed)=>{
|
1016
|
+
const result = {
|
1017
|
+
...advancedVSeed
|
1018
|
+
};
|
1019
|
+
const { datasetReshapeInfo, measures } = advancedVSeed;
|
1020
|
+
if (!datasetReshapeInfo || !measures) return result;
|
1021
|
+
const firstMeasure = findFirstMeasure(measures);
|
1022
|
+
const encoding = datasetReshapeInfo.reduce((prev, cur)=>{
|
1023
|
+
const { foldInfo, unfoldInfo } = cur;
|
1024
|
+
const x = [
|
1025
|
+
firstMeasure?.id
|
1026
|
+
];
|
1027
|
+
const y = [
|
1028
|
+
foldInfo.measureValue
|
1029
|
+
];
|
1030
|
+
const group = [
|
1031
|
+
unfoldInfo.groupId
|
1032
|
+
];
|
1033
|
+
const color = [
|
1034
|
+
unfoldInfo.groupId
|
1035
|
+
];
|
1036
|
+
return [
|
1037
|
+
...prev,
|
1038
|
+
{
|
1039
|
+
x,
|
1040
|
+
y,
|
1041
|
+
group,
|
1042
|
+
color
|
1043
|
+
}
|
1044
|
+
];
|
1045
|
+
}, []);
|
1046
|
+
return {
|
1047
|
+
...result,
|
1048
|
+
encoding
|
1049
|
+
};
|
1050
|
+
};
|
921
1051
|
const encodingRose = (advancedVSeed)=>{
|
922
1052
|
const result = {
|
923
1053
|
...advancedVSeed
|
@@ -1158,17 +1288,8 @@ const annotation_annotation = (advancedVSeed, context)=>{
|
|
1158
1288
|
annotation
|
1159
1289
|
};
|
1160
1290
|
};
|
1161
|
-
const locale_locale = (advancedVSeed, context)=>{
|
1162
|
-
const { vseed } = context;
|
1163
|
-
const { locale } = vseed;
|
1164
|
-
return {
|
1165
|
-
...advancedVSeed,
|
1166
|
-
locale: locale || 'zh-CN'
|
1167
|
-
};
|
1168
|
-
};
|
1169
1291
|
const lineAdvancedPipeline = [
|
1170
1292
|
initAdvancedVSeed,
|
1171
|
-
locale_locale,
|
1172
1293
|
autoMeasures,
|
1173
1294
|
autoDimensions,
|
1174
1295
|
pivotAdapter([
|
@@ -1184,7 +1305,6 @@ const lineAdvancedPipeline = [
|
|
1184
1305
|
];
|
1185
1306
|
const barAdvancedPipeline = [
|
1186
1307
|
initAdvancedVSeed,
|
1187
|
-
locale_locale,
|
1188
1308
|
autoMeasures,
|
1189
1309
|
autoDimensions,
|
1190
1310
|
pivotAdapter([
|
@@ -1200,7 +1320,6 @@ const barAdvancedPipeline = [
|
|
1200
1320
|
];
|
1201
1321
|
const barParallelAdvancedPipeline = [
|
1202
1322
|
initAdvancedVSeed,
|
1203
|
-
locale_locale,
|
1204
1323
|
autoMeasures,
|
1205
1324
|
autoDimensions,
|
1206
1325
|
pivotAdapter([
|
@@ -1216,7 +1335,6 @@ const barParallelAdvancedPipeline = [
|
|
1216
1335
|
];
|
1217
1336
|
const barPercentAdvancedPipeline = [
|
1218
1337
|
initAdvancedVSeed,
|
1219
|
-
locale_locale,
|
1220
1338
|
autoMeasures,
|
1221
1339
|
autoDimensions,
|
1222
1340
|
pivotAdapter([
|
@@ -1232,7 +1350,6 @@ const barPercentAdvancedPipeline = [
|
|
1232
1350
|
];
|
1233
1351
|
const columnAdvancedPipeline = [
|
1234
1352
|
initAdvancedVSeed,
|
1235
|
-
locale_locale,
|
1236
1353
|
autoMeasures,
|
1237
1354
|
autoDimensions,
|
1238
1355
|
pivotAdapter([
|
@@ -1248,7 +1365,6 @@ const columnAdvancedPipeline = [
|
|
1248
1365
|
];
|
1249
1366
|
const columnParallelAdvancedPipeline = [
|
1250
1367
|
initAdvancedVSeed,
|
1251
|
-
locale_locale,
|
1252
1368
|
autoMeasures,
|
1253
1369
|
autoDimensions,
|
1254
1370
|
pivotAdapter([
|
@@ -1264,7 +1380,6 @@ const columnParallelAdvancedPipeline = [
|
|
1264
1380
|
];
|
1265
1381
|
const columnPercentAdvancedPipeline = [
|
1266
1382
|
initAdvancedVSeed,
|
1267
|
-
locale_locale,
|
1268
1383
|
autoMeasures,
|
1269
1384
|
autoDimensions,
|
1270
1385
|
pivotAdapter([
|
@@ -1280,7 +1395,6 @@ const columnPercentAdvancedPipeline = [
|
|
1280
1395
|
];
|
1281
1396
|
const areaAdvancedPipeline = [
|
1282
1397
|
initAdvancedVSeed,
|
1283
|
-
locale_locale,
|
1284
1398
|
autoMeasures,
|
1285
1399
|
autoDimensions,
|
1286
1400
|
pivotAdapter([
|
@@ -1296,7 +1410,6 @@ const areaAdvancedPipeline = [
|
|
1296
1410
|
];
|
1297
1411
|
const areaPercentAdvancedPipeline = [
|
1298
1412
|
initAdvancedVSeed,
|
1299
|
-
locale_locale,
|
1300
1413
|
autoMeasures,
|
1301
1414
|
autoDimensions,
|
1302
1415
|
pivotAdapter([
|
@@ -1312,7 +1425,6 @@ const areaPercentAdvancedPipeline = [
|
|
1312
1425
|
];
|
1313
1426
|
const pieAdvancedPipeline = [
|
1314
1427
|
initAdvancedVSeed,
|
1315
|
-
locale_locale,
|
1316
1428
|
autoMeasures,
|
1317
1429
|
autoDimensions,
|
1318
1430
|
pivotAdapter([
|
@@ -1327,7 +1439,6 @@ const pieAdvancedPipeline = [
|
|
1327
1439
|
];
|
1328
1440
|
const donutAdvancedPipeline = [
|
1329
1441
|
initAdvancedVSeed,
|
1330
|
-
locale_locale,
|
1331
1442
|
autoMeasures,
|
1332
1443
|
autoDimensions,
|
1333
1444
|
pivotAdapter([
|
@@ -1342,7 +1453,6 @@ const donutAdvancedPipeline = [
|
|
1342
1453
|
];
|
1343
1454
|
const roseAdvancedPipeline = [
|
1344
1455
|
initAdvancedVSeed,
|
1345
|
-
locale_locale,
|
1346
1456
|
autoMeasures,
|
1347
1457
|
autoDimensions,
|
1348
1458
|
pivotAdapter([
|
@@ -1358,7 +1468,6 @@ const roseAdvancedPipeline = [
|
|
1358
1468
|
];
|
1359
1469
|
const roseParallelAdvancedPipeline = [
|
1360
1470
|
initAdvancedVSeed,
|
1361
|
-
locale_locale,
|
1362
1471
|
autoMeasures,
|
1363
1472
|
autoDimensions,
|
1364
1473
|
pivotAdapter([
|
@@ -1374,7 +1483,6 @@ const roseParallelAdvancedPipeline = [
|
|
1374
1483
|
];
|
1375
1484
|
const funnelAdvancedPipeline = [
|
1376
1485
|
initAdvancedVSeed,
|
1377
|
-
locale_locale,
|
1378
1486
|
autoMeasures,
|
1379
1487
|
autoDimensions,
|
1380
1488
|
pivotAdapter([
|
@@ -1387,45 +1495,8 @@ const funnelAdvancedPipeline = [
|
|
1387
1495
|
theme_theme,
|
1388
1496
|
annotation_annotation
|
1389
1497
|
];
|
1390
|
-
const encodingYY = (advancedVSeed)=>{
|
1391
|
-
const result = {
|
1392
|
-
...advancedVSeed
|
1393
|
-
};
|
1394
|
-
const { datasetReshapeInfo, measures } = advancedVSeed;
|
1395
|
-
if (!datasetReshapeInfo || !measures) return result;
|
1396
|
-
const firstMeasure = findFirstMeasure(measures);
|
1397
|
-
const encoding = datasetReshapeInfo.reduce((prev, cur)=>{
|
1398
|
-
const { foldInfo, unfoldInfo } = cur;
|
1399
|
-
const x = [
|
1400
|
-
firstMeasure?.id
|
1401
|
-
];
|
1402
|
-
const y = [
|
1403
|
-
foldInfo.measureValue
|
1404
|
-
];
|
1405
|
-
const group = [
|
1406
|
-
unfoldInfo.groupId
|
1407
|
-
];
|
1408
|
-
const color = [
|
1409
|
-
unfoldInfo.groupId
|
1410
|
-
];
|
1411
|
-
return [
|
1412
|
-
...prev,
|
1413
|
-
{
|
1414
|
-
x,
|
1415
|
-
y,
|
1416
|
-
group,
|
1417
|
-
color
|
1418
|
-
}
|
1419
|
-
];
|
1420
|
-
}, []);
|
1421
|
-
return {
|
1422
|
-
...result,
|
1423
|
-
encoding
|
1424
|
-
};
|
1425
|
-
};
|
1426
1498
|
const scatterAdvancedPipeline = [
|
1427
1499
|
initAdvancedVSeed,
|
1428
|
-
locale_locale,
|
1429
1500
|
autoMeasures,
|
1430
1501
|
autoDimensions,
|
1431
1502
|
pivotAdapter([
|
@@ -1439,6 +1510,158 @@ const scatterAdvancedPipeline = [
|
|
1439
1510
|
markStyle_markStyle,
|
1440
1511
|
annotation_annotation
|
1441
1512
|
];
|
1513
|
+
const autoMeasures_autoMeasures = (advancedVSeed, context)=>{
|
1514
|
+
const result = {
|
1515
|
+
...advancedVSeed
|
1516
|
+
};
|
1517
|
+
const { vseed } = context;
|
1518
|
+
const { measures, dataset } = vseed;
|
1519
|
+
if (!dataset) throw new Error('dataset is required');
|
1520
|
+
if (0 === dataset.length) return result;
|
1521
|
+
if (measures && measures.length > 0) {
|
1522
|
+
result.measures = measures;
|
1523
|
+
return result;
|
1524
|
+
}
|
1525
|
+
const top100dataset = dataset.slice(0, 100);
|
1526
|
+
const sample = top100dataset.reduce((prev, cur)=>({
|
1527
|
+
...prev,
|
1528
|
+
...cur
|
1529
|
+
}), {});
|
1530
|
+
result.measures = Object.keys(sample).filter((key)=>top100dataset.some((item)=>'number' == typeof item[key]) && ![
|
1531
|
+
'',
|
1532
|
+
null,
|
1533
|
+
void 0
|
1534
|
+
].includes(key)).map((measure)=>({
|
1535
|
+
id: measure,
|
1536
|
+
alias: measure
|
1537
|
+
}));
|
1538
|
+
return result;
|
1539
|
+
};
|
1540
|
+
const autoDimensions_autoDimensions = (advancedVSeed, context)=>{
|
1541
|
+
const result = {
|
1542
|
+
...advancedVSeed
|
1543
|
+
};
|
1544
|
+
const { vseed } = context;
|
1545
|
+
const { dimensions, dataset } = vseed;
|
1546
|
+
const measures = findAllMeasures(advancedVSeed.measures);
|
1547
|
+
if (!dataset) throw new Error('dataset is required');
|
1548
|
+
if (0 === dataset.length) return result;
|
1549
|
+
if (dimensions && dimensions.length > 0) {
|
1550
|
+
result.dimensions = dimensions;
|
1551
|
+
return result;
|
1552
|
+
}
|
1553
|
+
const top100dataset = dataset.slice(0, 100);
|
1554
|
+
const sample = top100dataset.reduce((prev, cur)=>({
|
1555
|
+
...prev,
|
1556
|
+
...cur
|
1557
|
+
}), {});
|
1558
|
+
result.dimensions = Object.keys(sample).filter((key)=>top100dataset.some((item)=>'string' == typeof item[key]) && ![
|
1559
|
+
'',
|
1560
|
+
null,
|
1561
|
+
void 0
|
1562
|
+
].includes(key) && !measures.some((measure)=>measure.id === key)).map((dim)=>({
|
1563
|
+
id: dim,
|
1564
|
+
alias: dim,
|
1565
|
+
location: 'dimension'
|
1566
|
+
}));
|
1567
|
+
return result;
|
1568
|
+
};
|
1569
|
+
const autoPivotDimensions = (advancedVSeed, context)=>{
|
1570
|
+
const result = {
|
1571
|
+
...advancedVSeed
|
1572
|
+
};
|
1573
|
+
const { vseed } = context;
|
1574
|
+
const { dimensions, dataset } = vseed;
|
1575
|
+
const measures = findAllMeasures(advancedVSeed.measures);
|
1576
|
+
if (!dataset) throw new Error('dataset is required');
|
1577
|
+
if (0 === dataset.length) return result;
|
1578
|
+
if (dimensions && dimensions.length > 0) {
|
1579
|
+
const newDimensions = findAllDimensions(dimensions);
|
1580
|
+
result.dimensions = newDimensions.map((item, index)=>{
|
1581
|
+
if ('rowDimension' === item.location || 'columnDimension' === item.location) return item;
|
1582
|
+
return {
|
1583
|
+
...item,
|
1584
|
+
location: index % 2 === 0 ? 'columnDimension' : 'rowDimension'
|
1585
|
+
};
|
1586
|
+
});
|
1587
|
+
return result;
|
1588
|
+
}
|
1589
|
+
const top100dataset = dataset.slice(0, 100);
|
1590
|
+
const sample = top100dataset.reduce((prev, cur)=>({
|
1591
|
+
...prev,
|
1592
|
+
...cur
|
1593
|
+
}), {});
|
1594
|
+
let i = 0;
|
1595
|
+
result.dimensions = Object.keys(sample).filter((key)=>top100dataset.some((item)=>'string' == typeof item[key]) && ![
|
1596
|
+
'',
|
1597
|
+
null,
|
1598
|
+
void 0
|
1599
|
+
].includes(key) && !measures.some((measure)=>measure.id === key)).map((dim)=>({
|
1600
|
+
id: dim,
|
1601
|
+
alias: dim,
|
1602
|
+
location: i++ % 2 === 0 ? 'columnDimension' : 'rowDimension'
|
1603
|
+
}));
|
1604
|
+
return result;
|
1605
|
+
};
|
1606
|
+
const autoPivotMeasures = (advancedVSeed, context)=>{
|
1607
|
+
const result = {
|
1608
|
+
...advancedVSeed
|
1609
|
+
};
|
1610
|
+
const { vseed } = context;
|
1611
|
+
const { dataset } = vseed;
|
1612
|
+
const measures = findAllMeasures(vseed.measures);
|
1613
|
+
if (!dataset) throw new Error('dataset is required');
|
1614
|
+
if (0 === dataset.length) return result;
|
1615
|
+
if (measures && measures.length > 0) {
|
1616
|
+
result.measures = findAllMeasures(measures);
|
1617
|
+
return result;
|
1618
|
+
}
|
1619
|
+
const top100dataset = dataset.slice(0, 100);
|
1620
|
+
const sample = top100dataset.reduce((prev, cur)=>({
|
1621
|
+
...prev,
|
1622
|
+
...cur
|
1623
|
+
}), {});
|
1624
|
+
result.measures = Object.keys(sample).filter((key)=>top100dataset.some((item)=>'number' == typeof item[key]) && ![
|
1625
|
+
'',
|
1626
|
+
null,
|
1627
|
+
void 0
|
1628
|
+
].includes(key)).map((measure)=>({
|
1629
|
+
id: measure,
|
1630
|
+
alias: measure
|
1631
|
+
}));
|
1632
|
+
return result;
|
1633
|
+
};
|
1634
|
+
const initAdvancedVSeed_initAdvancedVSeed = (advancedVSeed, context)=>{
|
1635
|
+
const { vseed } = context;
|
1636
|
+
const { chartType, locale } = vseed;
|
1637
|
+
return {
|
1638
|
+
...advancedVSeed,
|
1639
|
+
chartType,
|
1640
|
+
locale: locale || 'zh-CN'
|
1641
|
+
};
|
1642
|
+
};
|
1643
|
+
const records_records = (advancedVSeed, context)=>{
|
1644
|
+
const { vseed } = context;
|
1645
|
+
const { dataset } = vseed;
|
1646
|
+
return {
|
1647
|
+
...advancedVSeed,
|
1648
|
+
dataset
|
1649
|
+
};
|
1650
|
+
};
|
1651
|
+
const pivotTableAdvancedPipeline = [
|
1652
|
+
initAdvancedVSeed_initAdvancedVSeed,
|
1653
|
+
autoPivotMeasures,
|
1654
|
+
autoPivotDimensions,
|
1655
|
+
records_records,
|
1656
|
+
theme_theme
|
1657
|
+
];
|
1658
|
+
const tableAdvancedPipeline = [
|
1659
|
+
initAdvancedVSeed_initAdvancedVSeed,
|
1660
|
+
autoMeasures_autoMeasures,
|
1661
|
+
autoDimensions_autoDimensions,
|
1662
|
+
records_records,
|
1663
|
+
theme_theme
|
1664
|
+
];
|
1442
1665
|
const dataset_dataset = (spec, context)=>{
|
1443
1666
|
const { advancedVSeed } = context;
|
1444
1667
|
const { encoding } = advancedVSeed;
|
@@ -1816,6 +2039,27 @@ const initFunnel = (spec, context)=>{
|
|
1816
2039
|
result.animation = true;
|
1817
2040
|
return result;
|
1818
2041
|
};
|
2042
|
+
const initScatter = (spec, context)=>{
|
2043
|
+
const result = {
|
2044
|
+
...spec
|
2045
|
+
};
|
2046
|
+
const { advancedVSeed } = context;
|
2047
|
+
const { encoding } = advancedVSeed;
|
2048
|
+
if (!encoding[0].y || !encoding[0].x || !encoding[0].group) return result;
|
2049
|
+
result.type = 'scatter';
|
2050
|
+
result.direction = 'vertical';
|
2051
|
+
result.xField = encoding[0].x[0];
|
2052
|
+
result.yField = encoding[0].y[0];
|
2053
|
+
result.seriesField = encoding[0].group[0];
|
2054
|
+
result.padding = 0;
|
2055
|
+
result.region = [
|
2056
|
+
{
|
2057
|
+
clip: true
|
2058
|
+
}
|
2059
|
+
];
|
2060
|
+
result.animation = true;
|
2061
|
+
return result;
|
2062
|
+
};
|
1819
2063
|
const xBand = (spec, context)=>{
|
1820
2064
|
const result = {
|
1821
2065
|
...spec
|
@@ -2811,7 +3055,7 @@ const pivotColumnDimensions = (spec, context)=>{
|
|
2811
3055
|
...spec
|
2812
3056
|
};
|
2813
3057
|
const { advancedVSeed } = context;
|
2814
|
-
const
|
3058
|
+
const dimensions = advancedVSeed.dimensions;
|
2815
3059
|
if (!dimensions) return result;
|
2816
3060
|
const columnDimensions = dimensions.filter((dim)=>'columnDimension' === dim.location);
|
2817
3061
|
const columns = columnDimensions.map((dim)=>({
|
@@ -2828,7 +3072,7 @@ const pivotRowDimensions = (spec, context)=>{
|
|
2828
3072
|
...spec
|
2829
3073
|
};
|
2830
3074
|
const { advancedVSeed } = context;
|
2831
|
-
const
|
3075
|
+
const dimensions = advancedVSeed.dimensions;
|
2832
3076
|
if (!dimensions) return result;
|
2833
3077
|
const rowDimensions = dimensions.filter((dim)=>'rowDimension' === dim.location);
|
2834
3078
|
const rows = rowDimensions.map((dim)=>({
|
@@ -4465,27 +4709,6 @@ const pivotFunnel = [
|
|
4465
4709
|
const funnelSpecPipeline = [
|
4466
4710
|
pivotAdapter_pivotAdapter(funnel, pivotFunnel)
|
4467
4711
|
];
|
4468
|
-
const initScatter = (spec, context)=>{
|
4469
|
-
const result = {
|
4470
|
-
...spec
|
4471
|
-
};
|
4472
|
-
const { advancedVSeed } = context;
|
4473
|
-
const { encoding } = advancedVSeed;
|
4474
|
-
if (!encoding[0].y || !encoding[0].x || !encoding[0].group) return result;
|
4475
|
-
result.type = 'scatter';
|
4476
|
-
result.direction = 'vertical';
|
4477
|
-
result.xField = encoding[0].x[0];
|
4478
|
-
result.yField = encoding[0].y[0];
|
4479
|
-
result.seriesField = encoding[0].group[0];
|
4480
|
-
result.padding = 0;
|
4481
|
-
result.region = [
|
4482
|
-
{
|
4483
|
-
clip: true
|
4484
|
-
}
|
4485
|
-
];
|
4486
|
-
result.animation = true;
|
4487
|
-
return result;
|
4488
|
-
};
|
4489
4712
|
const scatter = [
|
4490
4713
|
initScatter,
|
4491
4714
|
color_color,
|
@@ -4535,6 +4758,128 @@ const pivotScatter = [
|
|
4535
4758
|
const scatterSpecPipeline = [
|
4536
4759
|
pivotAdapter_pivotAdapter(scatter, pivotScatter)
|
4537
4760
|
];
|
4761
|
+
const initTable = (spec, context)=>{
|
4762
|
+
const { advancedVSeed } = context;
|
4763
|
+
const { dataset } = advancedVSeed;
|
4764
|
+
return {
|
4765
|
+
...spec,
|
4766
|
+
records: dataset,
|
4767
|
+
widthMode: 'standard',
|
4768
|
+
heightMode: 'autoHeight',
|
4769
|
+
autoWrapText: true,
|
4770
|
+
columnResizeMode: 'all',
|
4771
|
+
showHeader: true
|
4772
|
+
};
|
4773
|
+
};
|
4774
|
+
const measureTreeToColumns = (spec, context)=>{
|
4775
|
+
const { advancedVSeed } = context;
|
4776
|
+
const measures = advancedVSeed.measures;
|
4777
|
+
const result = {
|
4778
|
+
...spec
|
4779
|
+
};
|
4780
|
+
const columns = treeTreeToColumns(measures);
|
4781
|
+
return {
|
4782
|
+
...result,
|
4783
|
+
columns: [
|
4784
|
+
...result.columns || [],
|
4785
|
+
...columns
|
4786
|
+
]
|
4787
|
+
};
|
4788
|
+
};
|
4789
|
+
const dimensionTreeToColumns = (spec, context)=>{
|
4790
|
+
const { advancedVSeed } = context;
|
4791
|
+
const dimensions = advancedVSeed.dimensions;
|
4792
|
+
const result = {
|
4793
|
+
...spec
|
4794
|
+
};
|
4795
|
+
const columns = treeTreeToColumns(dimensions);
|
4796
|
+
return {
|
4797
|
+
...result,
|
4798
|
+
columns: [
|
4799
|
+
...result.columns || [],
|
4800
|
+
...columns
|
4801
|
+
]
|
4802
|
+
};
|
4803
|
+
};
|
4804
|
+
const treeTreeToColumns = (tree = [])=>{
|
4805
|
+
const result = tree.map((item)=>{
|
4806
|
+
const field = item.id;
|
4807
|
+
const title = item.alias ?? item.id;
|
4808
|
+
if ('children' in item && Array.isArray(item.children)) return {
|
4809
|
+
field,
|
4810
|
+
title,
|
4811
|
+
columns: treeTreeToColumns(item.children)
|
4812
|
+
};
|
4813
|
+
return {
|
4814
|
+
field,
|
4815
|
+
title
|
4816
|
+
};
|
4817
|
+
});
|
4818
|
+
return result || [];
|
4819
|
+
};
|
4820
|
+
const tableSpecPipeline = [
|
4821
|
+
initTable,
|
4822
|
+
dimensionTreeToColumns,
|
4823
|
+
measureTreeToColumns
|
4824
|
+
];
|
4825
|
+
const initPivotTable = (spec, context)=>{
|
4826
|
+
const { advancedVSeed } = context;
|
4827
|
+
const { dataset } = advancedVSeed;
|
4828
|
+
return {
|
4829
|
+
...spec,
|
4830
|
+
records: dataset,
|
4831
|
+
widthMode: 'standard',
|
4832
|
+
heightMode: 'autoHeight',
|
4833
|
+
autoWrapText: true,
|
4834
|
+
columnResizeMode: 'all'
|
4835
|
+
};
|
4836
|
+
};
|
4837
|
+
const pivotColumns = (spec, context)=>{
|
4838
|
+
const { advancedVSeed } = context;
|
4839
|
+
const dimensions = advancedVSeed.dimensions;
|
4840
|
+
const columns = dimensions.filter((item)=>'columnDimension' === item['location']);
|
4841
|
+
return {
|
4842
|
+
...spec,
|
4843
|
+
columns: columns.map((item)=>({
|
4844
|
+
dimensionKey: item.id,
|
4845
|
+
title: item.alias || item.id,
|
4846
|
+
width: 'auto'
|
4847
|
+
}))
|
4848
|
+
};
|
4849
|
+
};
|
4850
|
+
const pivotRows = (spec, context)=>{
|
4851
|
+
const { advancedVSeed } = context;
|
4852
|
+
const dimensions = advancedVSeed.dimensions;
|
4853
|
+
const rows = dimensions.filter((item)=>'rowDimension' === item['location']);
|
4854
|
+
return {
|
4855
|
+
...spec,
|
4856
|
+
rows: rows.map((item)=>({
|
4857
|
+
dimensionKey: item.id,
|
4858
|
+
title: item.alias || item.id,
|
4859
|
+
width: 'auto'
|
4860
|
+
}))
|
4861
|
+
};
|
4862
|
+
};
|
4863
|
+
const pivotIndicators_pivotIndicators = (spec, context)=>{
|
4864
|
+
const { advancedVSeed } = context;
|
4865
|
+
const measures = advancedVSeed.measures;
|
4866
|
+
return {
|
4867
|
+
...spec,
|
4868
|
+
indicatorsAsCol: true,
|
4869
|
+
indicators: measures.map((item)=>({
|
4870
|
+
cellType: 'text',
|
4871
|
+
indicatorKey: item.id,
|
4872
|
+
title: item.alias || item.id,
|
4873
|
+
width: 'auto'
|
4874
|
+
}))
|
4875
|
+
};
|
4876
|
+
};
|
4877
|
+
const pivotTableSpecPipeline = [
|
4878
|
+
initPivotTable,
|
4879
|
+
pivotColumns,
|
4880
|
+
pivotRows,
|
4881
|
+
pivotIndicators_pivotIndicators
|
4882
|
+
];
|
4538
4883
|
const buildAdvanced = (builder)=>{
|
4539
4884
|
const { chartType } = builder.vseed;
|
4540
4885
|
if (!chartType) throw new Error('chartType is nil in buildAdvanced');
|
@@ -4575,6 +4920,17 @@ const build = (builder)=>{
|
|
4575
4920
|
builder.spec = spec;
|
4576
4921
|
return spec;
|
4577
4922
|
};
|
4923
|
+
const getColorItems = (builder)=>{
|
4924
|
+
const advancedVSeed = builder.advancedVSeed;
|
4925
|
+
if (!advancedVSeed) return [];
|
4926
|
+
const { datasetReshapeInfo } = advancedVSeed;
|
4927
|
+
const colorItems = (0, external_remeda_namespaceObject.unique)(datasetReshapeInfo.flatMap((d)=>d.unfoldInfo.colorItems));
|
4928
|
+
const colorIdMap = datasetReshapeInfo.reduce((prev, cur)=>({
|
4929
|
+
...prev,
|
4930
|
+
...cur.unfoldInfo.colorIdMap
|
4931
|
+
}), {});
|
4932
|
+
return colorItems.map((d)=>colorIdMap[d]);
|
4933
|
+
};
|
4578
4934
|
class Builder {
|
4579
4935
|
_vseed;
|
4580
4936
|
_advancedVSeed = null;
|
@@ -4590,6 +4946,7 @@ class Builder {
|
|
4590
4946
|
getSpecPipeline = (chartType)=>Builder._specPipelineMap[chartType];
|
4591
4947
|
getTheme = (themeKey)=>Builder._themeMap[themeKey];
|
4592
4948
|
getThemeMap = ()=>Builder._themeMap;
|
4949
|
+
getColorItems = ()=>getColorItems(this);
|
4593
4950
|
get vseed() {
|
4594
4951
|
return this._vseed;
|
4595
4952
|
}
|
@@ -4673,6 +5030,14 @@ const registerScatter = ()=>{
|
|
4673
5030
|
Builder._advancedPipelineMap.scatter = scatterAdvancedPipeline;
|
4674
5031
|
Builder._specPipelineMap.scatter = scatterSpecPipeline;
|
4675
5032
|
};
|
5033
|
+
const registerTable = ()=>{
|
5034
|
+
Builder._advancedPipelineMap.table = tableAdvancedPipeline;
|
5035
|
+
Builder._specPipelineMap.table = tableSpecPipeline;
|
5036
|
+
};
|
5037
|
+
const registerPivotTable = ()=>{
|
5038
|
+
Builder._advancedPipelineMap.pivotTable = pivotTableAdvancedPipeline;
|
5039
|
+
Builder._specPipelineMap.pivotTable = pivotTableSpecPipeline;
|
5040
|
+
};
|
4676
5041
|
const lightTheme = ()=>{
|
4677
5042
|
const linearAxis = {
|
4678
5043
|
nice: true,
|
@@ -5261,6 +5626,8 @@ const registerAll = ()=>{
|
|
5261
5626
|
registerRoseParallel();
|
5262
5627
|
registerFunnel();
|
5263
5628
|
registerScatter();
|
5629
|
+
registerTable();
|
5630
|
+
registerPivotTable();
|
5264
5631
|
registerLightTheme();
|
5265
5632
|
registerDarkTheme();
|
5266
5633
|
};
|
@@ -5290,14 +5657,21 @@ const zDataset = external_zod_namespaceObject.z.array(zDatum);
|
|
5290
5657
|
const zDimension = external_zod_namespaceObject.z.object({
|
5291
5658
|
id: external_zod_namespaceObject.z.string(),
|
5292
5659
|
alias: external_zod_namespaceObject.z.string().optional(),
|
5293
|
-
visible: external_zod_namespaceObject.z.boolean().default(true).optional(),
|
5294
5660
|
location: external_zod_namespaceObject.z["enum"]([
|
5295
5661
|
'dimension',
|
5296
5662
|
'rowDimension',
|
5297
5663
|
'columnDimension'
|
5298
5664
|
]).default('dimension').optional()
|
5299
5665
|
});
|
5300
|
-
const
|
5666
|
+
const zDimensionGroup = external_zod_namespaceObject.z.object({
|
5667
|
+
id: external_zod_namespaceObject.z.string(),
|
5668
|
+
alias: external_zod_namespaceObject.z.string().optional(),
|
5669
|
+
get children () {
|
5670
|
+
return external_zod_namespaceObject.z.array(zDimensionGroup.or(zDimension)).optional();
|
5671
|
+
}
|
5672
|
+
});
|
5673
|
+
const zDimensions = external_zod_namespaceObject.z.array(zDimension);
|
5674
|
+
const zDimensionTree = external_zod_namespaceObject.z.array(zDimensionGroup.or(zDimension));
|
5301
5675
|
const zNumFormat = external_zod_namespaceObject.z.object({
|
5302
5676
|
type: external_zod_namespaceObject.z["enum"]([
|
5303
5677
|
'number',
|
@@ -5341,7 +5715,8 @@ const zMeasureGroup = external_zod_namespaceObject.z.object({
|
|
5341
5715
|
return external_zod_namespaceObject.z.array(zMeasureGroup.or(zMeasure)).optional();
|
5342
5716
|
}
|
5343
5717
|
});
|
5344
|
-
const zMeasures = external_zod_namespaceObject.z.array(
|
5718
|
+
const zMeasures = external_zod_namespaceObject.z.array(zMeasure);
|
5719
|
+
const zMeasureTree = external_zod_namespaceObject.z.array(zMeasureGroup.or(zMeasure));
|
5345
5720
|
const zFoldInfo = external_zod_namespaceObject.z.object({
|
5346
5721
|
foldMap: external_zod_namespaceObject.z.record(external_zod_namespaceObject.z.string(), external_zod_namespaceObject.z.string().or(external_zod_namespaceObject.z.undefined())),
|
5347
5722
|
measureId: external_zod_namespaceObject.z.string(),
|
@@ -6004,11 +6379,29 @@ const zLocale = external_zod_namespaceObject.z["enum"]([
|
|
6004
6379
|
'zh-CN',
|
6005
6380
|
'en-US'
|
6006
6381
|
]).default('zh-CN');
|
6382
|
+
const zTable = external_zod_namespaceObject.z.object({
|
6383
|
+
chartType: external_zod_namespaceObject.z.literal('table'),
|
6384
|
+
dataset: zDataset.optional(),
|
6385
|
+
dimensions: zDimensions.optional(),
|
6386
|
+
measures: zMeasureTree.optional(),
|
6387
|
+
backgroundColor: zBackgroundColor.optional(),
|
6388
|
+
theme: zTheme.optional(),
|
6389
|
+
locale: zLocale.optional()
|
6390
|
+
});
|
6391
|
+
const zPivotTable = external_zod_namespaceObject.z.object({
|
6392
|
+
chartType: external_zod_namespaceObject.z.literal('pivotTable'),
|
6393
|
+
dataset: zDataset.optional(),
|
6394
|
+
dimensions: zDimensions.optional(),
|
6395
|
+
measures: zMeasures.optional(),
|
6396
|
+
backgroundColor: zBackgroundColor.optional(),
|
6397
|
+
theme: zTheme.optional(),
|
6398
|
+
locale: zLocale.optional()
|
6399
|
+
});
|
6007
6400
|
const zLine = external_zod_namespaceObject.z.object({
|
6008
6401
|
chartType: external_zod_namespaceObject.z.literal('line'),
|
6009
6402
|
dataset: zDataset.optional(),
|
6010
6403
|
dimensions: zDimensions.optional(),
|
6011
|
-
measures:
|
6404
|
+
measures: zMeasureTree.optional(),
|
6012
6405
|
backgroundColor: zBackgroundColor.optional(),
|
6013
6406
|
color: zColor.optional(),
|
6014
6407
|
label: zLabel.optional(),
|
@@ -6030,7 +6423,7 @@ const zColumn = external_zod_namespaceObject.z.object({
|
|
6030
6423
|
chartType: external_zod_namespaceObject.z.literal('column'),
|
6031
6424
|
dataset: zDataset.optional(),
|
6032
6425
|
dimensions: zDimensions.optional(),
|
6033
|
-
measures:
|
6426
|
+
measures: zMeasureTree.optional(),
|
6034
6427
|
backgroundColor: zBackgroundColor.optional(),
|
6035
6428
|
color: zColor.optional(),
|
6036
6429
|
label: zLabel.optional(),
|
@@ -6052,7 +6445,7 @@ const zColumnParallel = external_zod_namespaceObject.z.object({
|
|
6052
6445
|
chartType: external_zod_namespaceObject.z.literal('columnParallel'),
|
6053
6446
|
dataset: zDataset.optional(),
|
6054
6447
|
dimensions: zDimensions.optional(),
|
6055
|
-
measures:
|
6448
|
+
measures: zMeasureTree.optional(),
|
6056
6449
|
backgroundColor: zBackgroundColor.optional(),
|
6057
6450
|
color: zColor.optional(),
|
6058
6451
|
label: zLabel.optional(),
|
@@ -6074,7 +6467,7 @@ const zColumnPercent = external_zod_namespaceObject.z.object({
|
|
6074
6467
|
chartType: external_zod_namespaceObject.z.literal('columnPercent'),
|
6075
6468
|
dataset: zDataset.optional(),
|
6076
6469
|
dimensions: zDimensions.optional(),
|
6077
|
-
measures:
|
6470
|
+
measures: zMeasureTree.optional(),
|
6078
6471
|
backgroundColor: zBackgroundColor.optional(),
|
6079
6472
|
color: zColor.optional(),
|
6080
6473
|
label: zLabel.optional(),
|
@@ -6096,7 +6489,7 @@ const zBar = external_zod_namespaceObject.z.object({
|
|
6096
6489
|
chartType: external_zod_namespaceObject.z.literal('bar'),
|
6097
6490
|
dataset: zDataset.optional(),
|
6098
6491
|
dimensions: zDimensions.optional(),
|
6099
|
-
measures:
|
6492
|
+
measures: zMeasureTree.optional(),
|
6100
6493
|
backgroundColor: zBackgroundColor.optional(),
|
6101
6494
|
color: zColor.optional(),
|
6102
6495
|
label: zLabel.optional(),
|
@@ -6118,7 +6511,7 @@ const zBarParallel = external_zod_namespaceObject.z.object({
|
|
6118
6511
|
chartType: external_zod_namespaceObject.z.literal('barParallel'),
|
6119
6512
|
dataset: zDataset.optional(),
|
6120
6513
|
dimensions: zDimensions.optional(),
|
6121
|
-
measures:
|
6514
|
+
measures: zMeasureTree.optional(),
|
6122
6515
|
backgroundColor: zBackgroundColor.optional(),
|
6123
6516
|
color: zColor.optional(),
|
6124
6517
|
label: zLabel.optional(),
|
@@ -6140,7 +6533,7 @@ const zBarPercent = external_zod_namespaceObject.z.object({
|
|
6140
6533
|
chartType: external_zod_namespaceObject.z.literal('barPercent'),
|
6141
6534
|
dataset: zDataset.optional(),
|
6142
6535
|
dimensions: zDimensions.optional(),
|
6143
|
-
measures:
|
6536
|
+
measures: zMeasureTree.optional(),
|
6144
6537
|
backgroundColor: zBackgroundColor.optional(),
|
6145
6538
|
color: zColor.optional(),
|
6146
6539
|
label: zLabel.optional(),
|
@@ -6162,7 +6555,7 @@ const zArea = external_zod_namespaceObject.z.object({
|
|
6162
6555
|
chartType: external_zod_namespaceObject.z.literal('area'),
|
6163
6556
|
dataset: zDataset.optional(),
|
6164
6557
|
dimensions: zDimensions.optional(),
|
6165
|
-
measures:
|
6558
|
+
measures: zMeasureTree.optional(),
|
6166
6559
|
backgroundColor: zBackgroundColor.optional(),
|
6167
6560
|
color: zColor.optional(),
|
6168
6561
|
label: zLabel.optional(),
|
@@ -6185,7 +6578,7 @@ const zAreaPercent = external_zod_namespaceObject.z.object({
|
|
6185
6578
|
chartType: external_zod_namespaceObject.z.literal('areaPercent'),
|
6186
6579
|
dataset: zDataset.optional(),
|
6187
6580
|
dimensions: zDimensions.optional(),
|
6188
|
-
measures:
|
6581
|
+
measures: zMeasureTree.optional(),
|
6189
6582
|
backgroundColor: zBackgroundColor.optional(),
|
6190
6583
|
color: zColor.optional(),
|
6191
6584
|
label: zLabel.optional(),
|
@@ -6208,7 +6601,7 @@ const zRose = external_zod_namespaceObject.z.object({
|
|
6208
6601
|
chartType: external_zod_namespaceObject.z.literal('rose'),
|
6209
6602
|
dataset: zDataset.optional(),
|
6210
6603
|
dimensions: zDimensions.optional(),
|
6211
|
-
measures:
|
6604
|
+
measures: zMeasureTree.optional(),
|
6212
6605
|
backgroundColor: zBackgroundColor.optional(),
|
6213
6606
|
color: zColor.optional(),
|
6214
6607
|
label: zLabel.optional(),
|
@@ -6221,7 +6614,7 @@ const zRoseParallel = external_zod_namespaceObject.z.object({
|
|
6221
6614
|
chartType: external_zod_namespaceObject.z.literal('roseParallel'),
|
6222
6615
|
dataset: zDataset.optional(),
|
6223
6616
|
dimensions: zDimensions.optional(),
|
6224
|
-
measures:
|
6617
|
+
measures: zMeasureTree.optional(),
|
6225
6618
|
backgroundColor: zBackgroundColor.optional(),
|
6226
6619
|
color: zColor.optional(),
|
6227
6620
|
label: zLabel.optional(),
|
@@ -6234,7 +6627,7 @@ const zPie = external_zod_namespaceObject.z.object({
|
|
6234
6627
|
chartType: external_zod_namespaceObject.z.literal('pie'),
|
6235
6628
|
dataset: zDataset.optional(),
|
6236
6629
|
dimensions: zDimensions.optional(),
|
6237
|
-
measures:
|
6630
|
+
measures: zMeasureTree.optional(),
|
6238
6631
|
backgroundColor: zBackgroundColor.optional(),
|
6239
6632
|
color: zColor.optional(),
|
6240
6633
|
label: zLabel.optional(),
|
@@ -6247,7 +6640,7 @@ const zDonut = external_zod_namespaceObject.z.object({
|
|
6247
6640
|
chartType: external_zod_namespaceObject.z.literal('donut'),
|
6248
6641
|
dataset: zDataset.optional(),
|
6249
6642
|
dimensions: zDimensions.optional(),
|
6250
|
-
measures:
|
6643
|
+
measures: zMeasureTree.optional(),
|
6251
6644
|
backgroundColor: zBackgroundColor.optional(),
|
6252
6645
|
color: zColor.optional(),
|
6253
6646
|
label: zLabel.optional(),
|
@@ -6260,7 +6653,7 @@ const zScatter = external_zod_namespaceObject.z.object({
|
|
6260
6653
|
chartType: external_zod_namespaceObject.z.literal('scatter'),
|
6261
6654
|
dataset: zDataset.optional(),
|
6262
6655
|
dimensions: zDimensions.optional(),
|
6263
|
-
measures:
|
6656
|
+
measures: zMeasureTree.optional(),
|
6264
6657
|
backgroundColor: zBackgroundColor.optional(),
|
6265
6658
|
color: zColor.optional(),
|
6266
6659
|
label: zLabel.optional(),
|
@@ -6281,7 +6674,7 @@ const zFunnel = external_zod_namespaceObject.z.object({
|
|
6281
6674
|
chartType: external_zod_namespaceObject.z.literal('funnel'),
|
6282
6675
|
dataset: zDataset.optional(),
|
6283
6676
|
dimensions: zDimensions.optional(),
|
6284
|
-
measures:
|
6677
|
+
measures: zMeasureTree.optional(),
|
6285
6678
|
backgroundColor: zBackgroundColor.optional(),
|
6286
6679
|
color: zColor.optional(),
|
6287
6680
|
label: zLabel.optional(),
|
@@ -6291,6 +6684,8 @@ const zFunnel = external_zod_namespaceObject.z.object({
|
|
6291
6684
|
locale: zLocale.optional()
|
6292
6685
|
});
|
6293
6686
|
const zVSeed = external_zod_namespaceObject.z.discriminatedUnion('chartType', [
|
6687
|
+
zTable,
|
6688
|
+
zPivotTable,
|
6294
6689
|
zLine,
|
6295
6690
|
zColumn,
|
6296
6691
|
zColumnParallel,
|
@@ -6311,8 +6706,8 @@ const zAdvancedVSeed = external_zod_namespaceObject.z.object({
|
|
6311
6706
|
chartType: zChartType,
|
6312
6707
|
dataset: zDataset,
|
6313
6708
|
datasetReshapeInfo: zDatasetReshapeInfo,
|
6314
|
-
dimensions:
|
6315
|
-
measures:
|
6709
|
+
dimensions: zDimensionTree,
|
6710
|
+
measures: zMeasureTree,
|
6316
6711
|
encoding: zEncoding,
|
6317
6712
|
config: zConfig,
|
6318
6713
|
theme: zTheme,
|
@@ -6356,6 +6751,10 @@ exports.dataReshapeFor2D1M = __webpack_exports__.dataReshapeFor2D1M;
|
|
6356
6751
|
exports.donutAdvancedPipeline = __webpack_exports__.donutAdvancedPipeline;
|
6357
6752
|
exports.donutSpecPipeline = __webpack_exports__.donutSpecPipeline;
|
6358
6753
|
exports.execPipeline = __webpack_exports__.execPipeline;
|
6754
|
+
exports.findAllDimensions = __webpack_exports__.findAllDimensions;
|
6755
|
+
exports.findAllMeasures = __webpack_exports__.findAllMeasures;
|
6756
|
+
exports.findDimensionById = __webpack_exports__.findDimensionById;
|
6757
|
+
exports.findFirstDimension = __webpack_exports__.findFirstDimension;
|
6359
6758
|
exports.findFirstMeasure = __webpack_exports__.findFirstMeasure;
|
6360
6759
|
exports.findMeasureById = __webpack_exports__.findMeasureById;
|
6361
6760
|
exports.foldMeasures = __webpack_exports__.foldMeasures;
|
@@ -6364,6 +6763,8 @@ exports.funnelSpecPipeline = __webpack_exports__.funnelSpecPipeline;
|
|
6364
6763
|
exports.i18n = __webpack_exports__.i18n;
|
6365
6764
|
exports.intl = __webpack_exports__.intl;
|
6366
6765
|
exports.isPivotChart = __webpack_exports__.isPivotChart;
|
6766
|
+
exports.isPivotTable = __webpack_exports__.isPivotTable;
|
6767
|
+
exports.isTable = __webpack_exports__.isTable;
|
6367
6768
|
exports.isVChart = __webpack_exports__.isVChart;
|
6368
6769
|
exports.isVTable = __webpack_exports__.isVTable;
|
6369
6770
|
exports.lightTheme = __webpack_exports__.lightTheme;
|
@@ -6371,6 +6772,9 @@ exports.lineAdvancedPipeline = __webpack_exports__.lineAdvancedPipeline;
|
|
6371
6772
|
exports.lineSpecPipeline = __webpack_exports__.lineSpecPipeline;
|
6372
6773
|
exports.pieAdvancedPipeline = __webpack_exports__.pieAdvancedPipeline;
|
6373
6774
|
exports.pieSpecPipeline = __webpack_exports__.pieSpecPipeline;
|
6775
|
+
exports.pivotTableAdvancedPipeline = __webpack_exports__.pivotTableAdvancedPipeline;
|
6776
|
+
exports.pivotTableSpecPipeline = __webpack_exports__.pivotTableSpecPipeline;
|
6777
|
+
exports.preorderTraverse = __webpack_exports__.preorderTraverse;
|
6374
6778
|
exports.registerAll = __webpack_exports__.registerAll;
|
6375
6779
|
exports.registerArea = __webpack_exports__.registerArea;
|
6376
6780
|
exports.registerAreaPercent = __webpack_exports__.registerAreaPercent;
|
@@ -6382,14 +6786,24 @@ exports.registerColumnParallel = __webpack_exports__.registerColumnParallel;
|
|
6382
6786
|
exports.registerColumnPercent = __webpack_exports__.registerColumnPercent;
|
6383
6787
|
exports.registerCustomTheme = __webpack_exports__.registerCustomTheme;
|
6384
6788
|
exports.registerDarkTheme = __webpack_exports__.registerDarkTheme;
|
6789
|
+
exports.registerDonut = __webpack_exports__.registerDonut;
|
6790
|
+
exports.registerFunnel = __webpack_exports__.registerFunnel;
|
6385
6791
|
exports.registerLightTheme = __webpack_exports__.registerLightTheme;
|
6386
6792
|
exports.registerLine = __webpack_exports__.registerLine;
|
6793
|
+
exports.registerPie = __webpack_exports__.registerPie;
|
6794
|
+
exports.registerPivotTable = __webpack_exports__.registerPivotTable;
|
6795
|
+
exports.registerRose = __webpack_exports__.registerRose;
|
6796
|
+
exports.registerRoseParallel = __webpack_exports__.registerRoseParallel;
|
6797
|
+
exports.registerScatter = __webpack_exports__.registerScatter;
|
6798
|
+
exports.registerTable = __webpack_exports__.registerTable;
|
6387
6799
|
exports.roseAdvancedPipeline = __webpack_exports__.roseAdvancedPipeline;
|
6388
6800
|
exports.roseParallelAdvancedPipeline = __webpack_exports__.roseParallelAdvancedPipeline;
|
6389
6801
|
exports.roseParallelSpecPipeline = __webpack_exports__.roseParallelSpecPipeline;
|
6390
6802
|
exports.roseSpecPipeline = __webpack_exports__.roseSpecPipeline;
|
6391
6803
|
exports.scatterAdvancedPipeline = __webpack_exports__.scatterAdvancedPipeline;
|
6392
6804
|
exports.scatterSpecPipeline = __webpack_exports__.scatterSpecPipeline;
|
6805
|
+
exports.tableAdvancedPipeline = __webpack_exports__.tableAdvancedPipeline;
|
6806
|
+
exports.tableSpecPipeline = __webpack_exports__.tableSpecPipeline;
|
6393
6807
|
exports.unfoldDimensions = __webpack_exports__.unfoldDimensions;
|
6394
6808
|
exports.zAdvancedVSeed = __webpack_exports__.zAdvancedVSeed;
|
6395
6809
|
exports.zAnnotation = __webpack_exports__.zAnnotation;
|
@@ -6428,6 +6842,8 @@ exports.zDataset = __webpack_exports__.zDataset;
|
|
6428
6842
|
exports.zDatasetReshapeInfo = __webpack_exports__.zDatasetReshapeInfo;
|
6429
6843
|
exports.zDatum = __webpack_exports__.zDatum;
|
6430
6844
|
exports.zDimension = __webpack_exports__.zDimension;
|
6845
|
+
exports.zDimensionGroup = __webpack_exports__.zDimensionGroup;
|
6846
|
+
exports.zDimensionTree = __webpack_exports__.zDimensionTree;
|
6431
6847
|
exports.zDimensions = __webpack_exports__.zDimensions;
|
6432
6848
|
exports.zDonut = __webpack_exports__.zDonut;
|
6433
6849
|
exports.zDonutConfig = __webpack_exports__.zDonutConfig;
|
@@ -6445,10 +6861,12 @@ exports.zLocale = __webpack_exports__.zLocale;
|
|
6445
6861
|
exports.zMarkStyle = __webpack_exports__.zMarkStyle;
|
6446
6862
|
exports.zMeasure = __webpack_exports__.zMeasure;
|
6447
6863
|
exports.zMeasureGroup = __webpack_exports__.zMeasureGroup;
|
6864
|
+
exports.zMeasureTree = __webpack_exports__.zMeasureTree;
|
6448
6865
|
exports.zMeasures = __webpack_exports__.zMeasures;
|
6449
6866
|
exports.zNumFormat = __webpack_exports__.zNumFormat;
|
6450
6867
|
exports.zPie = __webpack_exports__.zPie;
|
6451
6868
|
exports.zPieConfig = __webpack_exports__.zPieConfig;
|
6869
|
+
exports.zPivotTable = __webpack_exports__.zPivotTable;
|
6452
6870
|
exports.zPointStyle = __webpack_exports__.zPointStyle;
|
6453
6871
|
exports.zRose = __webpack_exports__.zRose;
|
6454
6872
|
exports.zRoseConfig = __webpack_exports__.zRoseConfig;
|
@@ -6457,6 +6875,7 @@ exports.zRoseParallelConfig = __webpack_exports__.zRoseParallelConfig;
|
|
6457
6875
|
exports.zScatter = __webpack_exports__.zScatter;
|
6458
6876
|
exports.zScatterConfig = __webpack_exports__.zScatterConfig;
|
6459
6877
|
exports.zStackCornerRadius = __webpack_exports__.zStackCornerRadius;
|
6878
|
+
exports.zTable = __webpack_exports__.zTable;
|
6460
6879
|
exports.zTheme = __webpack_exports__.zTheme;
|
6461
6880
|
exports.zTooltip = __webpack_exports__.zTooltip;
|
6462
6881
|
exports.zUnfoldInfo = __webpack_exports__.zUnfoldInfo;
|
@@ -6501,6 +6920,10 @@ for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|
|
6501
6920
|
"donutAdvancedPipeline",
|
6502
6921
|
"donutSpecPipeline",
|
6503
6922
|
"execPipeline",
|
6923
|
+
"findAllDimensions",
|
6924
|
+
"findAllMeasures",
|
6925
|
+
"findDimensionById",
|
6926
|
+
"findFirstDimension",
|
6504
6927
|
"findFirstMeasure",
|
6505
6928
|
"findMeasureById",
|
6506
6929
|
"foldMeasures",
|
@@ -6509,6 +6932,8 @@ for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|
|
6509
6932
|
"i18n",
|
6510
6933
|
"intl",
|
6511
6934
|
"isPivotChart",
|
6935
|
+
"isPivotTable",
|
6936
|
+
"isTable",
|
6512
6937
|
"isVChart",
|
6513
6938
|
"isVTable",
|
6514
6939
|
"lightTheme",
|
@@ -6516,6 +6941,9 @@ for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|
|
6516
6941
|
"lineSpecPipeline",
|
6517
6942
|
"pieAdvancedPipeline",
|
6518
6943
|
"pieSpecPipeline",
|
6944
|
+
"pivotTableAdvancedPipeline",
|
6945
|
+
"pivotTableSpecPipeline",
|
6946
|
+
"preorderTraverse",
|
6519
6947
|
"registerAll",
|
6520
6948
|
"registerArea",
|
6521
6949
|
"registerAreaPercent",
|
@@ -6527,14 +6955,24 @@ for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|
|
6527
6955
|
"registerColumnPercent",
|
6528
6956
|
"registerCustomTheme",
|
6529
6957
|
"registerDarkTheme",
|
6958
|
+
"registerDonut",
|
6959
|
+
"registerFunnel",
|
6530
6960
|
"registerLightTheme",
|
6531
6961
|
"registerLine",
|
6962
|
+
"registerPie",
|
6963
|
+
"registerPivotTable",
|
6964
|
+
"registerRose",
|
6965
|
+
"registerRoseParallel",
|
6966
|
+
"registerScatter",
|
6967
|
+
"registerTable",
|
6532
6968
|
"roseAdvancedPipeline",
|
6533
6969
|
"roseParallelAdvancedPipeline",
|
6534
6970
|
"roseParallelSpecPipeline",
|
6535
6971
|
"roseSpecPipeline",
|
6536
6972
|
"scatterAdvancedPipeline",
|
6537
6973
|
"scatterSpecPipeline",
|
6974
|
+
"tableAdvancedPipeline",
|
6975
|
+
"tableSpecPipeline",
|
6538
6976
|
"unfoldDimensions",
|
6539
6977
|
"zAdvancedVSeed",
|
6540
6978
|
"zAnnotation",
|
@@ -6573,6 +7011,8 @@ for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|
|
6573
7011
|
"zDatasetReshapeInfo",
|
6574
7012
|
"zDatum",
|
6575
7013
|
"zDimension",
|
7014
|
+
"zDimensionGroup",
|
7015
|
+
"zDimensionTree",
|
6576
7016
|
"zDimensions",
|
6577
7017
|
"zDonut",
|
6578
7018
|
"zDonutConfig",
|
@@ -6590,10 +7030,12 @@ for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|
|
6590
7030
|
"zMarkStyle",
|
6591
7031
|
"zMeasure",
|
6592
7032
|
"zMeasureGroup",
|
7033
|
+
"zMeasureTree",
|
6593
7034
|
"zMeasures",
|
6594
7035
|
"zNumFormat",
|
6595
7036
|
"zPie",
|
6596
7037
|
"zPieConfig",
|
7038
|
+
"zPivotTable",
|
6597
7039
|
"zPointStyle",
|
6598
7040
|
"zRose",
|
6599
7041
|
"zRoseConfig",
|
@@ -6602,6 +7044,7 @@ for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|
|
6602
7044
|
"zScatter",
|
6603
7045
|
"zScatterConfig",
|
6604
7046
|
"zStackCornerRadius",
|
7047
|
+
"zTable",
|
6605
7048
|
"zTheme",
|
6606
7049
|
"zTooltip",
|
6607
7050
|
"zUnfoldInfo",
|