@visactor/vseed 0.0.17 → 0.0.18
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/builder.d.ts +3 -67
- package/dist/builder/builder/builder.d.ts.map +1 -1
- package/dist/dataReshape/dataReshapeFor1D1M.d.ts.map +1 -1
- package/dist/dataReshape/dataReshapeFor2D1M.d.ts.map +1 -1
- package/dist/index.cjs +246 -189
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +135 -129
- package/dist/index.js.map +1 -1
- package/dist/pipeline/spec/pipes/vchart/annotation/annotationHorizontalLine.d.ts.map +1 -1
- package/dist/pipeline/spec/pipes/vchart/annotation/annotationVerticalLine.d.ts.map +1 -1
- package/dist/pipeline/spec/pipes/vchart/init/pie.d.ts.map +1 -1
- package/dist/types/advancedVSeed.d.ts +2 -18
- package/dist/types/advancedVSeed.d.ts.map +1 -1
- package/dist/types/chartType/area/area.d.ts +414 -14
- package/dist/types/chartType/area/area.d.ts.map +1 -1
- package/dist/types/chartType/areaPercent/areaPercent.d.ts +414 -14
- package/dist/types/chartType/areaPercent/areaPercent.d.ts.map +1 -1
- package/dist/types/chartType/bar/bar.d.ts +414 -14
- package/dist/types/chartType/bar/bar.d.ts.map +1 -1
- package/dist/types/chartType/barParallel/barParallel.d.ts +414 -14
- package/dist/types/chartType/barParallel/barParallel.d.ts.map +1 -1
- package/dist/types/chartType/barPercent/barPercent.d.ts +414 -14
- package/dist/types/chartType/barPercent/barPercent.d.ts.map +1 -1
- package/dist/types/chartType/column/column.d.ts +414 -14
- package/dist/types/chartType/column/column.d.ts.map +1 -1
- package/dist/types/chartType/columnParallel/columnParallel.d.ts +414 -14
- package/dist/types/chartType/columnParallel/columnParallel.d.ts.map +1 -1
- package/dist/types/chartType/columnPercent/columnPercent.d.ts +414 -14
- package/dist/types/chartType/columnPercent/columnPercent.d.ts.map +1 -1
- package/dist/types/chartType/donut/donut.d.ts +2 -2
- package/dist/types/chartType/funnel/funnel.d.ts +2 -2
- package/dist/types/chartType/line/line.d.ts +414 -14
- package/dist/types/chartType/line/line.d.ts.map +1 -1
- package/dist/types/chartType/pie/pie.d.ts +2 -2
- package/dist/types/chartType/rose/rose.d.ts +2 -2
- package/dist/types/chartType/roseParallel/roseParallel.d.ts +2 -2
- package/dist/types/chartType/scatter/scatter.d.ts +414 -14
- package/dist/types/chartType/scatter/scatter.d.ts.map +1 -1
- package/dist/types/index.d.ts +3 -3
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/properties/annotation/annotation.d.ts +0 -8
- package/dist/types/properties/annotation/annotation.d.ts.map +1 -1
- package/dist/types/properties/annotation/annotationHorizontalLine.d.ts +0 -2
- package/dist/types/properties/annotation/annotationHorizontalLine.d.ts.map +1 -1
- package/dist/types/properties/annotation/annotationVerticalLine.d.ts +0 -2
- package/dist/types/properties/annotation/annotationVerticalLine.d.ts.map +1 -1
- package/dist/types/properties/config/axis.d.ts +1 -1
- package/dist/types/properties/dimensions/dimensions.d.ts +4 -4
- package/dist/types/properties/theme/customTheme.d.ts +0 -16
- package/dist/types/properties/theme/customTheme.d.ts.map +1 -1
- package/dist/types/vseed.d.ts +5898 -1898
- package/dist/types/vseed.d.ts.map +1 -1
- package/dist/umd/999.js +3574 -0
- package/dist/umd/999.js.map +1 -0
- package/dist/umd/index.js +6164 -9537
- package/dist/umd/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -24,118 +24,135 @@ var __webpack_require__ = {};
|
|
|
24
24
|
var __webpack_exports__ = {};
|
|
25
25
|
__webpack_require__.r(__webpack_exports__);
|
|
26
26
|
__webpack_require__.d(__webpack_exports__, {
|
|
27
|
-
registerBar: ()=>registerBar,
|
|
28
|
-
isVChart: ()=>isVChart,
|
|
29
27
|
funnelAdvancedPipeline: ()=>funnelAdvancedPipeline,
|
|
30
|
-
|
|
31
|
-
|
|
28
|
+
zPie: ()=>zPie,
|
|
29
|
+
zBar: ()=>zBar,
|
|
32
30
|
pieAdvancedPipeline: ()=>pieAdvancedPipeline,
|
|
33
31
|
execPipeline: ()=>execPipeline,
|
|
34
32
|
areaSpecPipeline: ()=>areaSpecPipeline,
|
|
35
|
-
|
|
36
|
-
registerLine: ()=>registerLine,
|
|
37
|
-
zBaseConfig: ()=>zBaseConfig,
|
|
38
|
-
zColor: ()=>zColor,
|
|
33
|
+
zDonut: ()=>zDonut,
|
|
39
34
|
findFirstMeasure: ()=>findFirstMeasure,
|
|
40
35
|
scatterAdvancedPipeline: ()=>scatterAdvancedPipeline,
|
|
36
|
+
zCrosshairRect: ()=>zCrosshairRect,
|
|
37
|
+
scatterSpecPipeline: ()=>scatterSpecPipeline,
|
|
38
|
+
intl: ()=>intl,
|
|
39
|
+
columnPercentAdvancedPipeline: ()=>columnPercentAdvancedPipeline,
|
|
40
|
+
zAnnotation: ()=>zAnnotation,
|
|
41
|
+
zYBandAxis: ()=>zYBandAxis,
|
|
42
|
+
dataReshapeFor1D2M: ()=>dataReshapeFor1D2M,
|
|
43
|
+
zAnnotationHorizontalLine: ()=>zAnnotationHorizontalLine,
|
|
44
|
+
zMarkStyle: ()=>zMarkStyle,
|
|
45
|
+
zYLinearAxis: ()=>zYLinearAxis,
|
|
46
|
+
Separator: ()=>Separator,
|
|
47
|
+
columnAdvancedPipeline: ()=>columnAdvancedPipeline,
|
|
48
|
+
zLabel: ()=>zLabel,
|
|
49
|
+
registerColumn: ()=>registerColumn,
|
|
50
|
+
funnelSpecPipeline: ()=>funnelSpecPipeline,
|
|
51
|
+
roseParallelSpecPipeline: ()=>roseParallelSpecPipeline,
|
|
52
|
+
zLineStyle: ()=>zLineStyle,
|
|
53
|
+
dataReshapeFor1D1M: ()=>dataReshapeFor1D1M,
|
|
54
|
+
registerArea: ()=>registerArea,
|
|
55
|
+
zRoseParallel: ()=>zRoseParallel,
|
|
56
|
+
zDataset: ()=>zDataset,
|
|
57
|
+
UnfoldDimensionGroupId: ()=>UnfoldDimensionGroupId,
|
|
58
|
+
zNumFormat: ()=>zNumFormat,
|
|
59
|
+
barPercentAdvancedPipeline: ()=>barPercentAdvancedPipeline,
|
|
60
|
+
zArea: ()=>zArea,
|
|
61
|
+
zColumnParallel: ()=>zColumnParallel,
|
|
62
|
+
zDimensions: ()=>zDimensions,
|
|
63
|
+
zLegend: ()=>zLegend,
|
|
64
|
+
FoldMeasureId: ()=>FoldMeasureId,
|
|
65
|
+
zTheme: ()=>zTheme,
|
|
66
|
+
donutSpecPipeline: ()=>donutSpecPipeline,
|
|
67
|
+
registerAreaPercent: ()=>registerAreaPercent,
|
|
68
|
+
zBarPercent: ()=>zBarPercent,
|
|
69
|
+
zDatum: ()=>zDatum,
|
|
70
|
+
barAdvancedPipeline: ()=>barAdvancedPipeline,
|
|
71
|
+
zCustomThemeConfig: ()=>zCustomThemeConfig,
|
|
72
|
+
registerColumnPercent: ()=>registerColumnPercent,
|
|
73
|
+
zCrosshairLine: ()=>zCrosshairLine,
|
|
74
|
+
registerBarPercent: ()=>registerBarPercent,
|
|
75
|
+
roseSpecPipeline: ()=>roseSpecPipeline,
|
|
76
|
+
registerLightTheme: ()=>registerLightTheme,
|
|
77
|
+
roseAdvancedPipeline: ()=>roseAdvancedPipeline,
|
|
78
|
+
zBarParallel: ()=>zBarParallel,
|
|
79
|
+
zChartType: ()=>zChartType,
|
|
80
|
+
registerDarkTheme: ()=>registerDarkTheme,
|
|
81
|
+
zAnnotationVerticalLine: ()=>zAnnotationVerticalLine,
|
|
82
|
+
pieSpecPipeline: ()=>pieSpecPipeline,
|
|
83
|
+
zStackCornerRadius: ()=>zStackCornerRadius,
|
|
84
|
+
barSpecPipeline: ()=>barSpecPipeline,
|
|
85
|
+
zRose: ()=>zRose,
|
|
86
|
+
unfoldDimensions: ()=>unfoldDimensions,
|
|
87
|
+
roseParallelAdvancedPipeline: ()=>roseParallelAdvancedPipeline,
|
|
88
|
+
autoFormatter: ()=>autoFormatter,
|
|
89
|
+
Builder: ()=>Builder,
|
|
90
|
+
registerBar: ()=>registerBar,
|
|
91
|
+
registerAll: ()=>registerAll,
|
|
92
|
+
isVChart: ()=>isVChart,
|
|
93
|
+
registerLine: ()=>registerLine,
|
|
94
|
+
registerCustomTheme: ()=>registerCustomTheme,
|
|
95
|
+
zColor: ()=>zColor,
|
|
41
96
|
zMeasureGroup: ()=>zMeasureGroup,
|
|
42
|
-
zMeasures: ()=>zMeasures,
|
|
43
97
|
zUnfoldInfo: ()=>zUnfoldInfo,
|
|
44
|
-
|
|
98
|
+
zMeasures: ()=>zMeasures,
|
|
45
99
|
FoldMeasureName: ()=>FoldMeasureName,
|
|
46
|
-
intl: ()=>intl,
|
|
47
100
|
darkTheme: ()=>darkTheme,
|
|
48
101
|
createNumFormatter: ()=>createNumFormatter,
|
|
49
|
-
columnPercentAdvancedPipeline: ()=>columnPercentAdvancedPipeline,
|
|
50
|
-
scatterSpecPipeline: ()=>scatterSpecPipeline,
|
|
51
|
-
isVTable: ()=>isVTable,
|
|
52
|
-
zAnnotation: ()=>zAnnotation,
|
|
53
102
|
zAxis: ()=>zAxis,
|
|
54
|
-
|
|
103
|
+
isVTable: ()=>isVTable,
|
|
104
|
+
zLine: ()=>zLine,
|
|
55
105
|
columnSpecPipeline: ()=>columnSpecPipeline,
|
|
56
106
|
UnfoldDimensionGroup: ()=>UnfoldDimensionGroup,
|
|
57
107
|
zDatasetReshapeInfo: ()=>zDatasetReshapeInfo,
|
|
58
108
|
zFoldInfo: ()=>zFoldInfo,
|
|
59
|
-
zStackCornerRadius: ()=>zStackCornerRadius,
|
|
60
109
|
zAreaStyle: ()=>zAreaStyle,
|
|
61
110
|
ORIGINAL_DATA: ()=>ORIGINAL_DATA,
|
|
62
|
-
dataReshapeFor1D2M: ()=>dataReshapeFor1D2M,
|
|
63
111
|
zAnnotationArea: ()=>zAnnotationArea,
|
|
64
|
-
zAnnotationHorizontalLine: ()=>zAnnotationHorizontalLine,
|
|
65
|
-
zMarkStyle: ()=>zMarkStyle,
|
|
66
|
-
Separator: ()=>Separator,
|
|
67
|
-
zTooltip: ()=>zTooltip,
|
|
68
|
-
columnAdvancedPipeline: ()=>columnAdvancedPipeline,
|
|
69
112
|
columnParallelSpecPipeline: ()=>columnParallelSpecPipeline,
|
|
70
|
-
zLabel: ()=>zLabel,
|
|
71
113
|
i18n: ()=>i18n,
|
|
72
|
-
|
|
114
|
+
zPointStyle: ()=>zPointStyle,
|
|
73
115
|
zAnnotationPoint: ()=>zAnnotationPoint,
|
|
74
116
|
lightTheme: ()=>lightTheme,
|
|
75
117
|
registerColumnParallel: ()=>registerColumnParallel,
|
|
76
118
|
zDimension: ()=>zDimension,
|
|
77
|
-
funnelSpecPipeline: ()=>funnelSpecPipeline,
|
|
78
|
-
zPointStyle: ()=>zPointStyle,
|
|
79
|
-
zYBandAxis: ()=>zYBandAxis,
|
|
80
|
-
zYLinearAxis: ()=>zYLinearAxis,
|
|
81
119
|
isPivotChart: ()=>isPivotChart,
|
|
120
|
+
zColumn: ()=>zColumn,
|
|
82
121
|
zCustomTheme: ()=>zCustomTheme,
|
|
83
|
-
roseParallelSpecPipeline: ()=>roseParallelSpecPipeline,
|
|
84
|
-
zLineStyle: ()=>zLineStyle,
|
|
85
122
|
zXBandAxis: ()=>zXBandAxis,
|
|
86
|
-
dataReshapeFor1D1M: ()=>dataReshapeFor1D1M,
|
|
87
|
-
registerArea: ()=>registerArea,
|
|
88
123
|
findMeasureById: ()=>findMeasureById,
|
|
89
|
-
zDataset: ()=>zDataset,
|
|
90
|
-
UnfoldDimensionGroupId: ()=>UnfoldDimensionGroupId,
|
|
91
|
-
zNumFormat: ()=>zNumFormat,
|
|
92
|
-
barPercentAdvancedPipeline: ()=>barPercentAdvancedPipeline,
|
|
93
|
-
areaPercentAdvancedPipeline: ()=>areaPercentAdvancedPipeline,
|
|
94
124
|
zVSeed: ()=>zVSeed,
|
|
125
|
+
areaPercentAdvancedPipeline: ()=>areaPercentAdvancedPipeline,
|
|
95
126
|
zBackgroundColor: ()=>zBackgroundColor,
|
|
96
127
|
registerBarParallel: ()=>registerBarParallel,
|
|
97
128
|
zMeasure: ()=>zMeasure,
|
|
98
|
-
|
|
99
|
-
zLegend: ()=>zLegend,
|
|
100
|
-
FoldMeasureId: ()=>FoldMeasureId,
|
|
101
|
-
zTheme: ()=>zTheme,
|
|
102
|
-
donutSpecPipeline: ()=>donutSpecPipeline,
|
|
103
|
-
registerAreaPercent: ()=>registerAreaPercent,
|
|
129
|
+
zLocale: ()=>zLocale,
|
|
104
130
|
zEncoding: ()=>zEncoding,
|
|
105
131
|
autoNumFormatter: ()=>autoNumFormatter,
|
|
132
|
+
zAdvancedVSeed: ()=>zAdvancedVSeed,
|
|
106
133
|
zXLinearAxis: ()=>zXLinearAxis,
|
|
107
134
|
zConfig: ()=>zConfig,
|
|
108
|
-
zDatum: ()=>zDatum,
|
|
109
135
|
zBarStyle: ()=>zBarStyle,
|
|
110
|
-
|
|
111
|
-
zCustomThemeConfig: ()=>zCustomThemeConfig,
|
|
136
|
+
zAreaPercent: ()=>zAreaPercent,
|
|
112
137
|
columnParallelAdvancedPipeline: ()=>columnParallelAdvancedPipeline,
|
|
113
|
-
|
|
138
|
+
zColumnPercent: ()=>zColumnPercent,
|
|
114
139
|
donutAdvancedPipeline: ()=>donutAdvancedPipeline,
|
|
115
|
-
|
|
140
|
+
zScatter: ()=>zScatter,
|
|
116
141
|
foldMeasures: ()=>foldMeasures,
|
|
142
|
+
zFunnel: ()=>zFunnel,
|
|
117
143
|
dataReshapeFor2D1M: ()=>dataReshapeFor2D1M,
|
|
118
|
-
|
|
119
|
-
roseAdvancedPipeline: ()=>roseAdvancedPipeline,
|
|
120
|
-
roseSpecPipeline: ()=>roseSpecPipeline,
|
|
121
|
-
registerDarkTheme: ()=>registerDarkTheme,
|
|
122
|
-
zAnnotationVerticalLine: ()=>zAnnotationVerticalLine,
|
|
144
|
+
zTooltip: ()=>zTooltip,
|
|
123
145
|
barParallelAdvancedPipeline: ()=>barParallelAdvancedPipeline,
|
|
124
146
|
FoldMeasureValue: ()=>FoldMeasureValue,
|
|
125
147
|
barPercentSpecPipeline: ()=>barPercentSpecPipeline,
|
|
126
148
|
lineAdvancedPipeline: ()=>lineAdvancedPipeline,
|
|
127
|
-
pieSpecPipeline: ()=>pieSpecPipeline,
|
|
128
|
-
barSpecPipeline: ()=>barSpecPipeline,
|
|
129
149
|
lineSpecPipeline: ()=>lineSpecPipeline,
|
|
130
|
-
zChartType: ()=>zChartType,
|
|
131
150
|
createFormatter: ()=>createFormatter,
|
|
132
|
-
|
|
151
|
+
zBaseConfig: ()=>zBaseConfig,
|
|
133
152
|
columnPercentSpecPipeline: ()=>columnPercentSpecPipeline,
|
|
134
153
|
areaAdvancedPipeline: ()=>areaAdvancedPipeline,
|
|
135
|
-
Builder: ()=>Builder,
|
|
136
|
-
barParallelSpecPipeline: ()=>barParallelSpecPipeline,
|
|
137
154
|
areaPercentSpecPipeline: ()=>areaPercentSpecPipeline,
|
|
138
|
-
|
|
155
|
+
barParallelSpecPipeline: ()=>barParallelSpecPipeline
|
|
139
156
|
});
|
|
140
157
|
const initAdvancedVSeed = (advancedVSeed, context)=>{
|
|
141
158
|
const { vseed } = context;
|
|
@@ -532,14 +549,17 @@ const dataReshapeFor2D1M = (dataset, dimensions, measures, options)=>{
|
|
|
532
549
|
};
|
|
533
550
|
}
|
|
534
551
|
{
|
|
535
|
-
const
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
552
|
+
const onlyOneMeasure = 1 === measures.length;
|
|
553
|
+
const onlyOneDimension = 1 === dimensions.length;
|
|
554
|
+
const dims = [
|
|
555
|
+
...dimensions
|
|
556
|
+
];
|
|
557
|
+
if (!onlyOneMeasure || onlyOneDimension) dims.push({
|
|
558
|
+
id: foldMeasureName,
|
|
559
|
+
alias: i18n`指标名称`,
|
|
560
|
+
location: 'dimension'
|
|
561
|
+
});
|
|
562
|
+
const { dataset: finalDataset, unfoldInfo } = unfoldDimensions(foldedDataset, dims, [
|
|
543
563
|
{
|
|
544
564
|
id: foldMeasureValue,
|
|
545
565
|
alias: i18n`指标值`
|
|
@@ -591,14 +611,17 @@ const dataReshapeFor1D1M = (dataset, dimensions, measures, options)=>{
|
|
|
591
611
|
};
|
|
592
612
|
}
|
|
593
613
|
{
|
|
594
|
-
const
|
|
614
|
+
const dims = 1 === measures.length ? [
|
|
615
|
+
...dimensions
|
|
616
|
+
] : [
|
|
595
617
|
...dimensions,
|
|
596
618
|
{
|
|
597
619
|
id: foldMeasureName,
|
|
598
620
|
alias: i18n`指标名称`,
|
|
599
621
|
location: 'dimension'
|
|
600
622
|
}
|
|
601
|
-
]
|
|
623
|
+
];
|
|
624
|
+
const { dataset: finalDataset, unfoldInfo } = unfoldDimensions(foldedDataset, dims, [
|
|
602
625
|
{
|
|
603
626
|
id: foldMeasureValue,
|
|
604
627
|
alias: i18n`指标值`
|
|
@@ -1665,7 +1688,8 @@ const initPie = (spec, context)=>{
|
|
|
1665
1688
|
result.pie = {
|
|
1666
1689
|
style: {
|
|
1667
1690
|
stroke: '#ffffff',
|
|
1668
|
-
lineWidth: 1
|
|
1691
|
+
lineWidth: 1,
|
|
1692
|
+
centerOffset: 0
|
|
1669
1693
|
},
|
|
1670
1694
|
state: {
|
|
1671
1695
|
hover: {
|
|
@@ -3283,7 +3307,7 @@ const annotationVerticalLine_annotationVerticalLine = (spec, context)=>{
|
|
|
3283
3307
|
insideEnd: 'insideEndTop'
|
|
3284
3308
|
};
|
|
3285
3309
|
const markLine = annotationVerticalLineList.flatMap((annotationVerticalLine)=>{
|
|
3286
|
-
const { selector: selectorPoint, xValue, text = '', textPosition = 'insideEnd', textColor = '#ffffff', textFontSize = 12, textFontWeight = 400, textAlign = 'right', textBaseline = 'top', backgroundBorderColor, backgroundBorderRadius = 4, backgroundBorderWidth = 1, backgroundColor = '#212121', backgroundPadding = 2, backgroundVisible = true,
|
|
3310
|
+
const { selector: selectorPoint, xValue, text = '', textPosition = 'insideEnd', textColor = '#ffffff', textFontSize = 12, textFontWeight = 400, textAlign = 'right', textBaseline = 'top', backgroundBorderColor, backgroundBorderRadius = 4, backgroundBorderWidth = 1, backgroundColor = '#212121', backgroundPadding = 2, backgroundVisible = true, lineColor = '#212121', lineStyle = 'dashed', lineVisible = true, lineWidth = 1 } = annotationVerticalLine;
|
|
3287
3311
|
const dataset = advancedVSeed.dataset.flat();
|
|
3288
3312
|
const generateOneMarkLine = (x)=>({
|
|
3289
3313
|
x: x,
|
|
@@ -3291,8 +3315,6 @@ const annotationVerticalLine_annotationVerticalLine = (spec, context)=>{
|
|
|
3291
3315
|
line: {
|
|
3292
3316
|
visible: lineVisible,
|
|
3293
3317
|
style: {
|
|
3294
|
-
offsetX,
|
|
3295
|
-
offsetY,
|
|
3296
3318
|
stroke: lineColor,
|
|
3297
3319
|
lineStyle: lineStyle,
|
|
3298
3320
|
lineWidth: lineWidth,
|
|
@@ -3311,8 +3333,6 @@ const annotationVerticalLine_annotationVerticalLine = (spec, context)=>{
|
|
|
3311
3333
|
text: text,
|
|
3312
3334
|
position: positionMap[textPosition],
|
|
3313
3335
|
style: {
|
|
3314
|
-
offsetX,
|
|
3315
|
-
offsetY,
|
|
3316
3336
|
visible: true,
|
|
3317
3337
|
textAlign: textAlign,
|
|
3318
3338
|
textBaseline: textBaseline,
|
|
@@ -3324,8 +3344,6 @@ const annotationVerticalLine_annotationVerticalLine = (spec, context)=>{
|
|
|
3324
3344
|
visible: backgroundVisible,
|
|
3325
3345
|
padding: backgroundPadding,
|
|
3326
3346
|
style: {
|
|
3327
|
-
offsetX,
|
|
3328
|
-
offsetY,
|
|
3329
3347
|
cornerRadius: backgroundBorderRadius ?? 4,
|
|
3330
3348
|
fill: backgroundColor,
|
|
3331
3349
|
stroke: backgroundBorderColor,
|
|
@@ -3380,7 +3398,7 @@ const annotationHorizontalLine_annotationHorizontalLine = (spec, context)=>{
|
|
|
3380
3398
|
insideEnd: 'insideEndTop'
|
|
3381
3399
|
};
|
|
3382
3400
|
const markLine = annotationVerticalLineList.flatMap((annotationVerticalLine)=>{
|
|
3383
|
-
const { selector: selectorPoint, yValue, text = '', textPosition = 'insideEnd', textColor = '#ffffff', textFontSize = 12, textFontWeight = 400, textAlign = 'center', textBaseline = 'bottom', backgroundBorderColor, backgroundBorderRadius = 4, backgroundBorderWidth = 1, backgroundColor = '#212121', backgroundPadding = 2, backgroundVisible = true,
|
|
3401
|
+
const { selector: selectorPoint, yValue, text = '', textPosition = 'insideEnd', textColor = '#ffffff', textFontSize = 12, textFontWeight = 400, textAlign = 'center', textBaseline = 'bottom', backgroundBorderColor, backgroundBorderRadius = 4, backgroundBorderWidth = 1, backgroundColor = '#212121', backgroundPadding = 2, backgroundVisible = true, lineColor = '#212121', lineStyle = 'dashed', lineVisible = true, lineWidth = 1 } = annotationVerticalLine;
|
|
3384
3402
|
const dataset = advancedVSeed.dataset.flat();
|
|
3385
3403
|
const generateOneMarkLine = (y)=>({
|
|
3386
3404
|
y,
|
|
@@ -3388,8 +3406,6 @@ const annotationHorizontalLine_annotationHorizontalLine = (spec, context)=>{
|
|
|
3388
3406
|
line: {
|
|
3389
3407
|
visible: lineVisible,
|
|
3390
3408
|
style: {
|
|
3391
|
-
offsetX,
|
|
3392
|
-
offsetY,
|
|
3393
3409
|
stroke: lineColor,
|
|
3394
3410
|
lineStyle: lineStyle,
|
|
3395
3411
|
lineWidth: lineWidth,
|
|
@@ -3408,8 +3424,6 @@ const annotationHorizontalLine_annotationHorizontalLine = (spec, context)=>{
|
|
|
3408
3424
|
text: text,
|
|
3409
3425
|
position: positionMap[textPosition],
|
|
3410
3426
|
style: {
|
|
3411
|
-
offsetX,
|
|
3412
|
-
offsetY,
|
|
3413
3427
|
visible: true,
|
|
3414
3428
|
textAlign: textAlign,
|
|
3415
3429
|
textBaseline: textBaseline,
|
|
@@ -3421,8 +3435,6 @@ const annotationHorizontalLine_annotationHorizontalLine = (spec, context)=>{
|
|
|
3421
3435
|
visible: backgroundVisible,
|
|
3422
3436
|
padding: backgroundPadding,
|
|
3423
3437
|
style: {
|
|
3424
|
-
offsetX,
|
|
3425
|
-
offsetY,
|
|
3426
3438
|
cornerRadius: backgroundBorderRadius ?? 4,
|
|
3427
3439
|
fill: backgroundColor,
|
|
3428
3440
|
stroke: backgroundBorderColor,
|
|
@@ -5260,7 +5272,7 @@ const zDimension = external_zod_namespaceObject.z.object({
|
|
|
5260
5272
|
'dimension',
|
|
5261
5273
|
'rowDimension',
|
|
5262
5274
|
'columnDimension'
|
|
5263
|
-
])
|
|
5275
|
+
]).default('dimension').optional()
|
|
5264
5276
|
});
|
|
5265
5277
|
const zDimensions = external_zod_namespaceObject.z.array(zDimension).optional();
|
|
5266
5278
|
const zNumFormat = external_zod_namespaceObject.z.object({
|
|
@@ -5751,9 +5763,7 @@ const zAnnotationVerticalLine = external_zod_namespaceObject.z.object({
|
|
|
5751
5763
|
backgroundBorderColor: external_zod_namespaceObject.z.string().optional(),
|
|
5752
5764
|
backgroundBorderWidth: external_zod_namespaceObject.z.number().default(1).optional(),
|
|
5753
5765
|
backgroundBorderRadius: external_zod_namespaceObject.z.number().default(4).optional(),
|
|
5754
|
-
backgroundPadding: external_zod_namespaceObject.z.number().optional()
|
|
5755
|
-
offsetY: external_zod_namespaceObject.z.number().default(0).optional(),
|
|
5756
|
-
offsetX: external_zod_namespaceObject.z.number().default(0).optional()
|
|
5766
|
+
backgroundPadding: external_zod_namespaceObject.z.number().optional()
|
|
5757
5767
|
});
|
|
5758
5768
|
const zAnnotationHorizontalLine = external_zod_namespaceObject.z.object({
|
|
5759
5769
|
selector: external_zod_namespaceObject.z.union([
|
|
@@ -5803,9 +5813,7 @@ const zAnnotationHorizontalLine = external_zod_namespaceObject.z.object({
|
|
|
5803
5813
|
backgroundBorderColor: external_zod_namespaceObject.z.string().optional(),
|
|
5804
5814
|
backgroundBorderWidth: external_zod_namespaceObject.z.number().default(1).optional(),
|
|
5805
5815
|
backgroundBorderRadius: external_zod_namespaceObject.z.number().default(4).optional(),
|
|
5806
|
-
backgroundPadding: external_zod_namespaceObject.z.number().optional()
|
|
5807
|
-
offsetY: external_zod_namespaceObject.z.number().default(0).optional(),
|
|
5808
|
-
offsetX: external_zod_namespaceObject.z.number().default(0).optional()
|
|
5816
|
+
backgroundPadding: external_zod_namespaceObject.z.number().optional()
|
|
5809
5817
|
});
|
|
5810
5818
|
const zAnnotationArea = external_zod_namespaceObject.z.object({
|
|
5811
5819
|
selector: external_zod_namespaceObject.z.union([
|
|
@@ -5935,30 +5943,8 @@ const zLocale = external_zod_namespaceObject.z["enum"]([
|
|
|
5935
5943
|
'zh-CN',
|
|
5936
5944
|
'en-US'
|
|
5937
5945
|
]).default('zh-CN');
|
|
5938
|
-
const
|
|
5939
|
-
chartType: external_zod_namespaceObject.z.literal('
|
|
5940
|
-
dataset: zDataset.optional(),
|
|
5941
|
-
dimensions: zDimensions.optional(),
|
|
5942
|
-
measures: zMeasures.optional(),
|
|
5943
|
-
backgroundColor: zBackgroundColor.optional(),
|
|
5944
|
-
color: zColor.optional(),
|
|
5945
|
-
label: zLabel.optional(),
|
|
5946
|
-
legend: zLegend.optional(),
|
|
5947
|
-
tooltip: zTooltip.optional(),
|
|
5948
|
-
xAxis: zXLinearAxis.optional(),
|
|
5949
|
-
yAxis: zYBandAxis.optional(),
|
|
5950
|
-
crosshairRect: zCrosshairRect.optional(),
|
|
5951
|
-
stackCornerRadius: zStackCornerRadius.optional(),
|
|
5952
|
-
theme: zTheme.optional(),
|
|
5953
|
-
barStyle: zBarStyle.optional(),
|
|
5954
|
-
annotationPoint: zAnnotationPoint.optional(),
|
|
5955
|
-
annotationVerticalLine: zAnnotationVerticalLine.optional(),
|
|
5956
|
-
annotationHorizontalLine: zAnnotationHorizontalLine.optional(),
|
|
5957
|
-
annotationArea: zAnnotationArea.optional(),
|
|
5958
|
-
locale: zLocale.optional()
|
|
5959
|
-
});
|
|
5960
|
-
const zBarParallel = external_zod_namespaceObject.z.object({
|
|
5961
|
-
chartType: external_zod_namespaceObject.z.literal('barParallel'),
|
|
5946
|
+
const zLine = external_zod_namespaceObject.z.object({
|
|
5947
|
+
chartType: external_zod_namespaceObject.z.literal('line'),
|
|
5962
5948
|
dataset: zDataset.optional(),
|
|
5963
5949
|
dimensions: zDimensions.optional(),
|
|
5964
5950
|
measures: zMeasures.optional(),
|
|
@@ -5967,16 +5953,16 @@ const zBarParallel = external_zod_namespaceObject.z.object({
|
|
|
5967
5953
|
label: zLabel.optional(),
|
|
5968
5954
|
legend: zLegend.optional(),
|
|
5969
5955
|
tooltip: zTooltip.optional(),
|
|
5970
|
-
xAxis:
|
|
5971
|
-
yAxis:
|
|
5972
|
-
|
|
5973
|
-
stackCornerRadius: zStackCornerRadius.optional(),
|
|
5956
|
+
xAxis: zXBandAxis.optional(),
|
|
5957
|
+
yAxis: zYLinearAxis.optional(),
|
|
5958
|
+
crosshairLine: zCrosshairLine.optional(),
|
|
5974
5959
|
theme: zTheme.optional(),
|
|
5975
|
-
|
|
5976
|
-
|
|
5977
|
-
|
|
5978
|
-
|
|
5979
|
-
|
|
5960
|
+
pointStyle: zPointStyle.optional(),
|
|
5961
|
+
lineStyle: zLineStyle.optional(),
|
|
5962
|
+
annotationPoint: external_zod_namespaceObject.z.array(zAnnotationPoint).or(zAnnotationPoint).optional(),
|
|
5963
|
+
annotationVerticalLine: external_zod_namespaceObject.z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).optional(),
|
|
5964
|
+
annotationHorizontalLine: external_zod_namespaceObject.z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).optional(),
|
|
5965
|
+
annotationArea: external_zod_namespaceObject.z.array(zAnnotationArea).or(zAnnotationArea).optional(),
|
|
5980
5966
|
locale: zLocale.optional()
|
|
5981
5967
|
});
|
|
5982
5968
|
const zColumn = external_zod_namespaceObject.z.object({
|
|
@@ -5995,10 +5981,10 @@ const zColumn = external_zod_namespaceObject.z.object({
|
|
|
5995
5981
|
stackCornerRadius: zStackCornerRadius.optional(),
|
|
5996
5982
|
theme: zTheme.optional(),
|
|
5997
5983
|
barStyle: zBarStyle.optional(),
|
|
5998
|
-
annotationPoint: zAnnotationPoint.optional(),
|
|
5999
|
-
annotationVerticalLine: zAnnotationVerticalLine.optional(),
|
|
6000
|
-
annotationHorizontalLine: zAnnotationHorizontalLine.optional(),
|
|
6001
|
-
annotationArea: zAnnotationArea.optional(),
|
|
5984
|
+
annotationPoint: external_zod_namespaceObject.z.array(zAnnotationPoint).or(zAnnotationPoint).optional(),
|
|
5985
|
+
annotationVerticalLine: external_zod_namespaceObject.z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).optional(),
|
|
5986
|
+
annotationHorizontalLine: external_zod_namespaceObject.z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).optional(),
|
|
5987
|
+
annotationArea: external_zod_namespaceObject.z.array(zAnnotationArea).or(zAnnotationArea).optional(),
|
|
6002
5988
|
locale: zLocale.optional()
|
|
6003
5989
|
});
|
|
6004
5990
|
const zColumnParallel = external_zod_namespaceObject.z.object({
|
|
@@ -6017,10 +6003,10 @@ const zColumnParallel = external_zod_namespaceObject.z.object({
|
|
|
6017
6003
|
stackCornerRadius: zStackCornerRadius.optional(),
|
|
6018
6004
|
theme: zTheme.optional(),
|
|
6019
6005
|
barStyle: zBarStyle.optional(),
|
|
6020
|
-
annotationPoint: zAnnotationPoint.optional(),
|
|
6021
|
-
annotationVerticalLine: zAnnotationVerticalLine.optional(),
|
|
6022
|
-
annotationHorizontalLine: zAnnotationHorizontalLine.optional(),
|
|
6023
|
-
annotationArea: zAnnotationArea.optional(),
|
|
6006
|
+
annotationPoint: external_zod_namespaceObject.z.array(zAnnotationPoint).or(zAnnotationPoint).optional(),
|
|
6007
|
+
annotationVerticalLine: external_zod_namespaceObject.z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).optional(),
|
|
6008
|
+
annotationHorizontalLine: external_zod_namespaceObject.z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).optional(),
|
|
6009
|
+
annotationArea: external_zod_namespaceObject.z.array(zAnnotationArea).or(zAnnotationArea).optional(),
|
|
6024
6010
|
locale: zLocale.optional()
|
|
6025
6011
|
});
|
|
6026
6012
|
const zColumnPercent = external_zod_namespaceObject.z.object({
|
|
@@ -6039,14 +6025,14 @@ const zColumnPercent = external_zod_namespaceObject.z.object({
|
|
|
6039
6025
|
stackCornerRadius: zStackCornerRadius.optional(),
|
|
6040
6026
|
theme: zTheme.optional(),
|
|
6041
6027
|
barStyle: zBarStyle.optional(),
|
|
6042
|
-
annotationPoint: zAnnotationPoint.optional(),
|
|
6043
|
-
annotationVerticalLine: zAnnotationVerticalLine.optional(),
|
|
6044
|
-
annotationHorizontalLine: zAnnotationHorizontalLine.optional(),
|
|
6045
|
-
annotationArea: zAnnotationArea.optional(),
|
|
6028
|
+
annotationPoint: external_zod_namespaceObject.z.array(zAnnotationPoint).or(zAnnotationPoint).optional(),
|
|
6029
|
+
annotationVerticalLine: external_zod_namespaceObject.z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).optional(),
|
|
6030
|
+
annotationHorizontalLine: external_zod_namespaceObject.z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).optional(),
|
|
6031
|
+
annotationArea: external_zod_namespaceObject.z.array(zAnnotationArea).or(zAnnotationArea).optional(),
|
|
6046
6032
|
locale: zLocale.optional()
|
|
6047
6033
|
});
|
|
6048
|
-
const
|
|
6049
|
-
chartType: external_zod_namespaceObject.z.literal('
|
|
6034
|
+
const zBar = external_zod_namespaceObject.z.object({
|
|
6035
|
+
chartType: external_zod_namespaceObject.z.literal('bar'),
|
|
6050
6036
|
dataset: zDataset.optional(),
|
|
6051
6037
|
dimensions: zDimensions.optional(),
|
|
6052
6038
|
measures: zMeasures.optional(),
|
|
@@ -6055,20 +6041,20 @@ const zLine = external_zod_namespaceObject.z.object({
|
|
|
6055
6041
|
label: zLabel.optional(),
|
|
6056
6042
|
legend: zLegend.optional(),
|
|
6057
6043
|
tooltip: zTooltip.optional(),
|
|
6058
|
-
xAxis:
|
|
6059
|
-
yAxis:
|
|
6060
|
-
|
|
6044
|
+
xAxis: zXLinearAxis.optional(),
|
|
6045
|
+
yAxis: zYBandAxis.optional(),
|
|
6046
|
+
crosshairRect: zCrosshairRect.optional(),
|
|
6047
|
+
stackCornerRadius: zStackCornerRadius.optional(),
|
|
6061
6048
|
theme: zTheme.optional(),
|
|
6062
|
-
|
|
6063
|
-
|
|
6064
|
-
|
|
6065
|
-
|
|
6066
|
-
|
|
6067
|
-
annotationArea: zAnnotationArea.optional(),
|
|
6049
|
+
barStyle: zBarStyle.optional(),
|
|
6050
|
+
annotationPoint: external_zod_namespaceObject.z.array(zAnnotationPoint).or(zAnnotationPoint).optional(),
|
|
6051
|
+
annotationVerticalLine: external_zod_namespaceObject.z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).optional(),
|
|
6052
|
+
annotationHorizontalLine: external_zod_namespaceObject.z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).optional(),
|
|
6053
|
+
annotationArea: external_zod_namespaceObject.z.array(zAnnotationArea).or(zAnnotationArea).optional(),
|
|
6068
6054
|
locale: zLocale.optional()
|
|
6069
6055
|
});
|
|
6070
|
-
const
|
|
6071
|
-
chartType: external_zod_namespaceObject.z.literal('
|
|
6056
|
+
const zBarParallel = external_zod_namespaceObject.z.object({
|
|
6057
|
+
chartType: external_zod_namespaceObject.z.literal('barParallel'),
|
|
6072
6058
|
dataset: zDataset.optional(),
|
|
6073
6059
|
dimensions: zDimensions.optional(),
|
|
6074
6060
|
measures: zMeasures.optional(),
|
|
@@ -6077,7 +6063,16 @@ const zRose = external_zod_namespaceObject.z.object({
|
|
|
6077
6063
|
label: zLabel.optional(),
|
|
6078
6064
|
legend: zLegend.optional(),
|
|
6079
6065
|
tooltip: zTooltip.optional(),
|
|
6066
|
+
xAxis: zXLinearAxis.optional(),
|
|
6067
|
+
yAxis: zYBandAxis.optional(),
|
|
6068
|
+
crosshairRect: zCrosshairRect.optional(),
|
|
6069
|
+
stackCornerRadius: zStackCornerRadius.optional(),
|
|
6080
6070
|
theme: zTheme.optional(),
|
|
6071
|
+
barStyle: zBarStyle.optional(),
|
|
6072
|
+
annotationPoint: external_zod_namespaceObject.z.array(zAnnotationPoint).or(zAnnotationPoint).optional(),
|
|
6073
|
+
annotationVerticalLine: external_zod_namespaceObject.z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).optional(),
|
|
6074
|
+
annotationHorizontalLine: external_zod_namespaceObject.z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).optional(),
|
|
6075
|
+
annotationArea: external_zod_namespaceObject.z.array(zAnnotationArea).or(zAnnotationArea).optional(),
|
|
6081
6076
|
locale: zLocale.optional()
|
|
6082
6077
|
});
|
|
6083
6078
|
const zBarPercent = external_zod_namespaceObject.z.object({
|
|
@@ -6096,14 +6091,14 @@ const zBarPercent = external_zod_namespaceObject.z.object({
|
|
|
6096
6091
|
stackCornerRadius: zStackCornerRadius.optional(),
|
|
6097
6092
|
theme: zTheme.optional(),
|
|
6098
6093
|
barStyle: zBarStyle.optional(),
|
|
6099
|
-
annotationPoint: zAnnotationPoint.optional(),
|
|
6100
|
-
annotationVerticalLine: zAnnotationVerticalLine.optional(),
|
|
6101
|
-
annotationHorizontalLine: zAnnotationHorizontalLine.optional(),
|
|
6102
|
-
annotationArea: zAnnotationArea.optional(),
|
|
6094
|
+
annotationPoint: external_zod_namespaceObject.z.array(zAnnotationPoint).or(zAnnotationPoint).optional(),
|
|
6095
|
+
annotationVerticalLine: external_zod_namespaceObject.z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).optional(),
|
|
6096
|
+
annotationHorizontalLine: external_zod_namespaceObject.z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).optional(),
|
|
6097
|
+
annotationArea: external_zod_namespaceObject.z.array(zAnnotationArea).or(zAnnotationArea).optional(),
|
|
6103
6098
|
locale: zLocale.optional()
|
|
6104
6099
|
});
|
|
6105
|
-
const
|
|
6106
|
-
chartType: external_zod_namespaceObject.z.literal('
|
|
6100
|
+
const zArea = external_zod_namespaceObject.z.object({
|
|
6101
|
+
chartType: external_zod_namespaceObject.z.literal('area'),
|
|
6107
6102
|
dataset: zDataset.optional(),
|
|
6108
6103
|
dimensions: zDimensions.optional(),
|
|
6109
6104
|
measures: zMeasures.optional(),
|
|
@@ -6112,11 +6107,21 @@ const zPie = external_zod_namespaceObject.z.object({
|
|
|
6112
6107
|
label: zLabel.optional(),
|
|
6113
6108
|
legend: zLegend.optional(),
|
|
6114
6109
|
tooltip: zTooltip.optional(),
|
|
6110
|
+
xAxis: zXBandAxis.optional(),
|
|
6111
|
+
yAxis: zYLinearAxis.optional(),
|
|
6112
|
+
crosshairLine: zCrosshairLine.optional(),
|
|
6115
6113
|
theme: zTheme.optional(),
|
|
6114
|
+
pointStyle: zPointStyle.optional(),
|
|
6115
|
+
lineStyle: zLineStyle.optional(),
|
|
6116
|
+
areaStyle: zAreaStyle.optional(),
|
|
6117
|
+
annotationPoint: external_zod_namespaceObject.z.array(zAnnotationPoint).or(zAnnotationPoint).optional(),
|
|
6118
|
+
annotationVerticalLine: external_zod_namespaceObject.z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).optional(),
|
|
6119
|
+
annotationHorizontalLine: external_zod_namespaceObject.z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).optional(),
|
|
6120
|
+
annotationArea: external_zod_namespaceObject.z.array(zAnnotationArea).or(zAnnotationArea).optional(),
|
|
6116
6121
|
locale: zLocale.optional()
|
|
6117
6122
|
});
|
|
6118
|
-
const
|
|
6119
|
-
chartType: external_zod_namespaceObject.z.literal('
|
|
6123
|
+
const zAreaPercent = external_zod_namespaceObject.z.object({
|
|
6124
|
+
chartType: external_zod_namespaceObject.z.literal('areaPercent'),
|
|
6120
6125
|
dataset: zDataset.optional(),
|
|
6121
6126
|
dimensions: zDimensions.optional(),
|
|
6122
6127
|
measures: zMeasures.optional(),
|
|
@@ -6125,11 +6130,21 @@ const zDonut = external_zod_namespaceObject.z.object({
|
|
|
6125
6130
|
label: zLabel.optional(),
|
|
6126
6131
|
legend: zLegend.optional(),
|
|
6127
6132
|
tooltip: zTooltip.optional(),
|
|
6133
|
+
xAxis: zXBandAxis.optional(),
|
|
6134
|
+
yAxis: zYLinearAxis.optional(),
|
|
6135
|
+
crosshairLine: zCrosshairLine.optional(),
|
|
6128
6136
|
theme: zTheme.optional(),
|
|
6137
|
+
pointStyle: zPointStyle.optional(),
|
|
6138
|
+
lineStyle: zLineStyle.optional(),
|
|
6139
|
+
areaStyle: zAreaStyle.optional(),
|
|
6140
|
+
annotationPoint: external_zod_namespaceObject.z.array(zAnnotationPoint).or(zAnnotationPoint).optional(),
|
|
6141
|
+
annotationVerticalLine: external_zod_namespaceObject.z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).optional(),
|
|
6142
|
+
annotationHorizontalLine: external_zod_namespaceObject.z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).optional(),
|
|
6143
|
+
annotationArea: external_zod_namespaceObject.z.array(zAnnotationArea).or(zAnnotationArea).optional(),
|
|
6129
6144
|
locale: zLocale.optional()
|
|
6130
6145
|
});
|
|
6131
|
-
const
|
|
6132
|
-
chartType: external_zod_namespaceObject.z.literal('
|
|
6146
|
+
const zRose = external_zod_namespaceObject.z.object({
|
|
6147
|
+
chartType: external_zod_namespaceObject.z.literal('rose'),
|
|
6133
6148
|
dataset: zDataset.optional(),
|
|
6134
6149
|
dimensions: zDimensions.optional(),
|
|
6135
6150
|
measures: zMeasures.optional(),
|
|
@@ -6138,21 +6153,11 @@ const zArea = external_zod_namespaceObject.z.object({
|
|
|
6138
6153
|
label: zLabel.optional(),
|
|
6139
6154
|
legend: zLegend.optional(),
|
|
6140
6155
|
tooltip: zTooltip.optional(),
|
|
6141
|
-
xAxis: zXBandAxis.optional(),
|
|
6142
|
-
yAxis: zYLinearAxis.optional(),
|
|
6143
|
-
crosshairLine: zCrosshairLine.optional(),
|
|
6144
6156
|
theme: zTheme.optional(),
|
|
6145
|
-
pointStyle: zPointStyle.optional(),
|
|
6146
|
-
lineStyle: zLineStyle.optional(),
|
|
6147
|
-
areaStyle: zAreaStyle.optional(),
|
|
6148
|
-
annotationPoint: zAnnotationPoint.optional(),
|
|
6149
|
-
annotationVerticalLine: zAnnotationVerticalLine.optional(),
|
|
6150
|
-
annotationHorizontalLine: zAnnotationHorizontalLine.optional(),
|
|
6151
|
-
annotationArea: zAnnotationArea.optional(),
|
|
6152
6157
|
locale: zLocale.optional()
|
|
6153
6158
|
});
|
|
6154
|
-
const
|
|
6155
|
-
chartType: external_zod_namespaceObject.z.literal('
|
|
6159
|
+
const zRoseParallel = external_zod_namespaceObject.z.object({
|
|
6160
|
+
chartType: external_zod_namespaceObject.z.literal('roseParallel'),
|
|
6156
6161
|
dataset: zDataset.optional(),
|
|
6157
6162
|
dimensions: zDimensions.optional(),
|
|
6158
6163
|
measures: zMeasures.optional(),
|
|
@@ -6161,21 +6166,24 @@ const zAreaPercent = external_zod_namespaceObject.z.object({
|
|
|
6161
6166
|
label: zLabel.optional(),
|
|
6162
6167
|
legend: zLegend.optional(),
|
|
6163
6168
|
tooltip: zTooltip.optional(),
|
|
6164
|
-
xAxis: zXBandAxis.optional(),
|
|
6165
|
-
yAxis: zYLinearAxis.optional(),
|
|
6166
|
-
crosshairLine: zCrosshairLine.optional(),
|
|
6167
6169
|
theme: zTheme.optional(),
|
|
6168
|
-
pointStyle: zPointStyle.optional(),
|
|
6169
|
-
lineStyle: zLineStyle.optional(),
|
|
6170
|
-
areaStyle: zAreaStyle.optional(),
|
|
6171
|
-
annotationPoint: zAnnotationPoint.optional(),
|
|
6172
|
-
annotationVerticalLine: zAnnotationVerticalLine.optional(),
|
|
6173
|
-
annotationHorizontalLine: zAnnotationHorizontalLine.optional(),
|
|
6174
|
-
annotationArea: zAnnotationArea.optional(),
|
|
6175
6170
|
locale: zLocale.optional()
|
|
6176
6171
|
});
|
|
6177
|
-
const
|
|
6178
|
-
chartType: external_zod_namespaceObject.z.literal('
|
|
6172
|
+
const zPie = external_zod_namespaceObject.z.object({
|
|
6173
|
+
chartType: external_zod_namespaceObject.z.literal('pie'),
|
|
6174
|
+
dataset: zDataset.optional(),
|
|
6175
|
+
dimensions: zDimensions.optional(),
|
|
6176
|
+
measures: zMeasures.optional(),
|
|
6177
|
+
backgroundColor: zBackgroundColor.optional(),
|
|
6178
|
+
color: zColor.optional(),
|
|
6179
|
+
label: zLabel.optional(),
|
|
6180
|
+
legend: zLegend.optional(),
|
|
6181
|
+
tooltip: zTooltip.optional(),
|
|
6182
|
+
theme: zTheme.optional(),
|
|
6183
|
+
locale: zLocale.optional()
|
|
6184
|
+
});
|
|
6185
|
+
const zDonut = external_zod_namespaceObject.z.object({
|
|
6186
|
+
chartType: external_zod_namespaceObject.z.literal('donut'),
|
|
6179
6187
|
dataset: zDataset.optional(),
|
|
6180
6188
|
dimensions: zDimensions.optional(),
|
|
6181
6189
|
measures: zMeasures.optional(),
|
|
@@ -6202,10 +6210,10 @@ const zScatter = external_zod_namespaceObject.z.object({
|
|
|
6202
6210
|
crosshairLine: zCrosshairLine.optional(),
|
|
6203
6211
|
theme: zTheme.optional(),
|
|
6204
6212
|
pointStyle: zPointStyle.optional(),
|
|
6205
|
-
annotationPoint: zAnnotationPoint.optional(),
|
|
6206
|
-
annotationVerticalLine: zAnnotationVerticalLine.optional(),
|
|
6207
|
-
annotationHorizontalLine: zAnnotationHorizontalLine.optional(),
|
|
6208
|
-
annotationArea: zAnnotationArea.optional(),
|
|
6213
|
+
annotationPoint: external_zod_namespaceObject.z.array(zAnnotationPoint).or(zAnnotationPoint).optional(),
|
|
6214
|
+
annotationVerticalLine: external_zod_namespaceObject.z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).optional(),
|
|
6215
|
+
annotationHorizontalLine: external_zod_namespaceObject.z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).optional(),
|
|
6216
|
+
annotationArea: external_zod_namespaceObject.z.array(zAnnotationArea).or(zAnnotationArea).optional(),
|
|
6209
6217
|
locale: zLocale.optional()
|
|
6210
6218
|
});
|
|
6211
6219
|
const zFunnel = external_zod_namespaceObject.z.object({
|
|
@@ -6238,6 +6246,21 @@ const zVSeed = external_zod_namespaceObject.z.discriminatedUnion('chartType', [
|
|
|
6238
6246
|
zDonut,
|
|
6239
6247
|
zFunnel
|
|
6240
6248
|
]);
|
|
6249
|
+
const zAdvancedVSeed = external_zod_namespaceObject.z.object({
|
|
6250
|
+
chartType: zChartType,
|
|
6251
|
+
dataset: zDataset,
|
|
6252
|
+
datasetReshapeInfo: zDatasetReshapeInfo,
|
|
6253
|
+
dimensions: zDimensions,
|
|
6254
|
+
measures: zMeasures,
|
|
6255
|
+
encoding: zEncoding,
|
|
6256
|
+
baseConfig: zBaseConfig,
|
|
6257
|
+
config: zConfig,
|
|
6258
|
+
theme: zTheme,
|
|
6259
|
+
markStyle: zMarkStyle,
|
|
6260
|
+
customTheme: zCustomTheme,
|
|
6261
|
+
annotation: zAnnotation,
|
|
6262
|
+
locale: zLocale
|
|
6263
|
+
});
|
|
6241
6264
|
exports.Builder = __webpack_exports__.Builder;
|
|
6242
6265
|
exports.FoldMeasureId = __webpack_exports__.FoldMeasureId;
|
|
6243
6266
|
exports.FoldMeasureName = __webpack_exports__.FoldMeasureName;
|
|
@@ -6308,18 +6331,27 @@ exports.roseSpecPipeline = __webpack_exports__.roseSpecPipeline;
|
|
|
6308
6331
|
exports.scatterAdvancedPipeline = __webpack_exports__.scatterAdvancedPipeline;
|
|
6309
6332
|
exports.scatterSpecPipeline = __webpack_exports__.scatterSpecPipeline;
|
|
6310
6333
|
exports.unfoldDimensions = __webpack_exports__.unfoldDimensions;
|
|
6334
|
+
exports.zAdvancedVSeed = __webpack_exports__.zAdvancedVSeed;
|
|
6311
6335
|
exports.zAnnotation = __webpack_exports__.zAnnotation;
|
|
6312
6336
|
exports.zAnnotationArea = __webpack_exports__.zAnnotationArea;
|
|
6313
6337
|
exports.zAnnotationHorizontalLine = __webpack_exports__.zAnnotationHorizontalLine;
|
|
6314
6338
|
exports.zAnnotationPoint = __webpack_exports__.zAnnotationPoint;
|
|
6315
6339
|
exports.zAnnotationVerticalLine = __webpack_exports__.zAnnotationVerticalLine;
|
|
6340
|
+
exports.zArea = __webpack_exports__.zArea;
|
|
6341
|
+
exports.zAreaPercent = __webpack_exports__.zAreaPercent;
|
|
6316
6342
|
exports.zAreaStyle = __webpack_exports__.zAreaStyle;
|
|
6317
6343
|
exports.zAxis = __webpack_exports__.zAxis;
|
|
6318
6344
|
exports.zBackgroundColor = __webpack_exports__.zBackgroundColor;
|
|
6345
|
+
exports.zBar = __webpack_exports__.zBar;
|
|
6346
|
+
exports.zBarParallel = __webpack_exports__.zBarParallel;
|
|
6347
|
+
exports.zBarPercent = __webpack_exports__.zBarPercent;
|
|
6319
6348
|
exports.zBarStyle = __webpack_exports__.zBarStyle;
|
|
6320
6349
|
exports.zBaseConfig = __webpack_exports__.zBaseConfig;
|
|
6321
6350
|
exports.zChartType = __webpack_exports__.zChartType;
|
|
6322
6351
|
exports.zColor = __webpack_exports__.zColor;
|
|
6352
|
+
exports.zColumn = __webpack_exports__.zColumn;
|
|
6353
|
+
exports.zColumnParallel = __webpack_exports__.zColumnParallel;
|
|
6354
|
+
exports.zColumnPercent = __webpack_exports__.zColumnPercent;
|
|
6323
6355
|
exports.zConfig = __webpack_exports__.zConfig;
|
|
6324
6356
|
exports.zCrosshairLine = __webpack_exports__.zCrosshairLine;
|
|
6325
6357
|
exports.zCrosshairRect = __webpack_exports__.zCrosshairRect;
|
|
@@ -6330,17 +6362,25 @@ exports.zDatasetReshapeInfo = __webpack_exports__.zDatasetReshapeInfo;
|
|
|
6330
6362
|
exports.zDatum = __webpack_exports__.zDatum;
|
|
6331
6363
|
exports.zDimension = __webpack_exports__.zDimension;
|
|
6332
6364
|
exports.zDimensions = __webpack_exports__.zDimensions;
|
|
6365
|
+
exports.zDonut = __webpack_exports__.zDonut;
|
|
6333
6366
|
exports.zEncoding = __webpack_exports__.zEncoding;
|
|
6334
6367
|
exports.zFoldInfo = __webpack_exports__.zFoldInfo;
|
|
6368
|
+
exports.zFunnel = __webpack_exports__.zFunnel;
|
|
6335
6369
|
exports.zLabel = __webpack_exports__.zLabel;
|
|
6336
6370
|
exports.zLegend = __webpack_exports__.zLegend;
|
|
6371
|
+
exports.zLine = __webpack_exports__.zLine;
|
|
6337
6372
|
exports.zLineStyle = __webpack_exports__.zLineStyle;
|
|
6373
|
+
exports.zLocale = __webpack_exports__.zLocale;
|
|
6338
6374
|
exports.zMarkStyle = __webpack_exports__.zMarkStyle;
|
|
6339
6375
|
exports.zMeasure = __webpack_exports__.zMeasure;
|
|
6340
6376
|
exports.zMeasureGroup = __webpack_exports__.zMeasureGroup;
|
|
6341
6377
|
exports.zMeasures = __webpack_exports__.zMeasures;
|
|
6342
6378
|
exports.zNumFormat = __webpack_exports__.zNumFormat;
|
|
6379
|
+
exports.zPie = __webpack_exports__.zPie;
|
|
6343
6380
|
exports.zPointStyle = __webpack_exports__.zPointStyle;
|
|
6381
|
+
exports.zRose = __webpack_exports__.zRose;
|
|
6382
|
+
exports.zRoseParallel = __webpack_exports__.zRoseParallel;
|
|
6383
|
+
exports.zScatter = __webpack_exports__.zScatter;
|
|
6344
6384
|
exports.zStackCornerRadius = __webpack_exports__.zStackCornerRadius;
|
|
6345
6385
|
exports.zTheme = __webpack_exports__.zTheme;
|
|
6346
6386
|
exports.zTooltip = __webpack_exports__.zTooltip;
|
|
@@ -6421,18 +6461,27 @@ for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|
|
|
6421
6461
|
"scatterAdvancedPipeline",
|
|
6422
6462
|
"scatterSpecPipeline",
|
|
6423
6463
|
"unfoldDimensions",
|
|
6464
|
+
"zAdvancedVSeed",
|
|
6424
6465
|
"zAnnotation",
|
|
6425
6466
|
"zAnnotationArea",
|
|
6426
6467
|
"zAnnotationHorizontalLine",
|
|
6427
6468
|
"zAnnotationPoint",
|
|
6428
6469
|
"zAnnotationVerticalLine",
|
|
6470
|
+
"zArea",
|
|
6471
|
+
"zAreaPercent",
|
|
6429
6472
|
"zAreaStyle",
|
|
6430
6473
|
"zAxis",
|
|
6431
6474
|
"zBackgroundColor",
|
|
6475
|
+
"zBar",
|
|
6476
|
+
"zBarParallel",
|
|
6477
|
+
"zBarPercent",
|
|
6432
6478
|
"zBarStyle",
|
|
6433
6479
|
"zBaseConfig",
|
|
6434
6480
|
"zChartType",
|
|
6435
6481
|
"zColor",
|
|
6482
|
+
"zColumn",
|
|
6483
|
+
"zColumnParallel",
|
|
6484
|
+
"zColumnPercent",
|
|
6436
6485
|
"zConfig",
|
|
6437
6486
|
"zCrosshairLine",
|
|
6438
6487
|
"zCrosshairRect",
|
|
@@ -6443,17 +6492,25 @@ for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|
|
|
6443
6492
|
"zDatum",
|
|
6444
6493
|
"zDimension",
|
|
6445
6494
|
"zDimensions",
|
|
6495
|
+
"zDonut",
|
|
6446
6496
|
"zEncoding",
|
|
6447
6497
|
"zFoldInfo",
|
|
6498
|
+
"zFunnel",
|
|
6448
6499
|
"zLabel",
|
|
6449
6500
|
"zLegend",
|
|
6501
|
+
"zLine",
|
|
6450
6502
|
"zLineStyle",
|
|
6503
|
+
"zLocale",
|
|
6451
6504
|
"zMarkStyle",
|
|
6452
6505
|
"zMeasure",
|
|
6453
6506
|
"zMeasureGroup",
|
|
6454
6507
|
"zMeasures",
|
|
6455
6508
|
"zNumFormat",
|
|
6509
|
+
"zPie",
|
|
6456
6510
|
"zPointStyle",
|
|
6511
|
+
"zRose",
|
|
6512
|
+
"zRoseParallel",
|
|
6513
|
+
"zScatter",
|
|
6457
6514
|
"zStackCornerRadius",
|
|
6458
6515
|
"zTheme",
|
|
6459
6516
|
"zTooltip",
|