@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.js
CHANGED
@@ -394,14 +394,17 @@ const dataReshapeFor2D1M = (dataset, dimensions, measures, options)=>{
|
|
394
394
|
};
|
395
395
|
}
|
396
396
|
{
|
397
|
-
const
|
398
|
-
|
399
|
-
|
400
|
-
|
401
|
-
|
402
|
-
|
403
|
-
|
404
|
-
|
397
|
+
const onlyOneMeasure = 1 === measures.length;
|
398
|
+
const onlyOneDimension = 1 === dimensions.length;
|
399
|
+
const dims = [
|
400
|
+
...dimensions
|
401
|
+
];
|
402
|
+
if (!onlyOneMeasure || onlyOneDimension) dims.push({
|
403
|
+
id: foldMeasureName,
|
404
|
+
alias: i18n`指标名称`,
|
405
|
+
location: 'dimension'
|
406
|
+
});
|
407
|
+
const { dataset: finalDataset, unfoldInfo } = unfoldDimensions(foldedDataset, dims, [
|
405
408
|
{
|
406
409
|
id: foldMeasureValue,
|
407
410
|
alias: i18n`指标值`
|
@@ -453,14 +456,17 @@ const dataReshapeFor1D1M = (dataset, dimensions, measures, options)=>{
|
|
453
456
|
};
|
454
457
|
}
|
455
458
|
{
|
456
|
-
const
|
459
|
+
const dims = 1 === measures.length ? [
|
460
|
+
...dimensions
|
461
|
+
] : [
|
457
462
|
...dimensions,
|
458
463
|
{
|
459
464
|
id: foldMeasureName,
|
460
465
|
alias: i18n`指标名称`,
|
461
466
|
location: 'dimension'
|
462
467
|
}
|
463
|
-
]
|
468
|
+
];
|
469
|
+
const { dataset: finalDataset, unfoldInfo } = unfoldDimensions(foldedDataset, dims, [
|
464
470
|
{
|
465
471
|
id: foldMeasureValue,
|
466
472
|
alias: i18n`指标值`
|
@@ -1527,7 +1533,8 @@ const initPie = (spec, context)=>{
|
|
1527
1533
|
result.pie = {
|
1528
1534
|
style: {
|
1529
1535
|
stroke: '#ffffff',
|
1530
|
-
lineWidth: 1
|
1536
|
+
lineWidth: 1,
|
1537
|
+
centerOffset: 0
|
1531
1538
|
},
|
1532
1539
|
state: {
|
1533
1540
|
hover: {
|
@@ -3145,7 +3152,7 @@ const annotationVerticalLine_annotationVerticalLine = (spec, context)=>{
|
|
3145
3152
|
insideEnd: 'insideEndTop'
|
3146
3153
|
};
|
3147
3154
|
const markLine = annotationVerticalLineList.flatMap((annotationVerticalLine)=>{
|
3148
|
-
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,
|
3155
|
+
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;
|
3149
3156
|
const dataset = advancedVSeed.dataset.flat();
|
3150
3157
|
const generateOneMarkLine = (x)=>({
|
3151
3158
|
x: x,
|
@@ -3153,8 +3160,6 @@ const annotationVerticalLine_annotationVerticalLine = (spec, context)=>{
|
|
3153
3160
|
line: {
|
3154
3161
|
visible: lineVisible,
|
3155
3162
|
style: {
|
3156
|
-
offsetX,
|
3157
|
-
offsetY,
|
3158
3163
|
stroke: lineColor,
|
3159
3164
|
lineStyle: lineStyle,
|
3160
3165
|
lineWidth: lineWidth,
|
@@ -3173,8 +3178,6 @@ const annotationVerticalLine_annotationVerticalLine = (spec, context)=>{
|
|
3173
3178
|
text: text,
|
3174
3179
|
position: positionMap[textPosition],
|
3175
3180
|
style: {
|
3176
|
-
offsetX,
|
3177
|
-
offsetY,
|
3178
3181
|
visible: true,
|
3179
3182
|
textAlign: textAlign,
|
3180
3183
|
textBaseline: textBaseline,
|
@@ -3186,8 +3189,6 @@ const annotationVerticalLine_annotationVerticalLine = (spec, context)=>{
|
|
3186
3189
|
visible: backgroundVisible,
|
3187
3190
|
padding: backgroundPadding,
|
3188
3191
|
style: {
|
3189
|
-
offsetX,
|
3190
|
-
offsetY,
|
3191
3192
|
cornerRadius: backgroundBorderRadius ?? 4,
|
3192
3193
|
fill: backgroundColor,
|
3193
3194
|
stroke: backgroundBorderColor,
|
@@ -3242,7 +3243,7 @@ const annotationHorizontalLine_annotationHorizontalLine = (spec, context)=>{
|
|
3242
3243
|
insideEnd: 'insideEndTop'
|
3243
3244
|
};
|
3244
3245
|
const markLine = annotationVerticalLineList.flatMap((annotationVerticalLine)=>{
|
3245
|
-
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,
|
3246
|
+
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;
|
3246
3247
|
const dataset = advancedVSeed.dataset.flat();
|
3247
3248
|
const generateOneMarkLine = (y)=>({
|
3248
3249
|
y,
|
@@ -3250,8 +3251,6 @@ const annotationHorizontalLine_annotationHorizontalLine = (spec, context)=>{
|
|
3250
3251
|
line: {
|
3251
3252
|
visible: lineVisible,
|
3252
3253
|
style: {
|
3253
|
-
offsetX,
|
3254
|
-
offsetY,
|
3255
3254
|
stroke: lineColor,
|
3256
3255
|
lineStyle: lineStyle,
|
3257
3256
|
lineWidth: lineWidth,
|
@@ -3270,8 +3269,6 @@ const annotationHorizontalLine_annotationHorizontalLine = (spec, context)=>{
|
|
3270
3269
|
text: text,
|
3271
3270
|
position: positionMap[textPosition],
|
3272
3271
|
style: {
|
3273
|
-
offsetX,
|
3274
|
-
offsetY,
|
3275
3272
|
visible: true,
|
3276
3273
|
textAlign: textAlign,
|
3277
3274
|
textBaseline: textBaseline,
|
@@ -3283,8 +3280,6 @@ const annotationHorizontalLine_annotationHorizontalLine = (spec, context)=>{
|
|
3283
3280
|
visible: backgroundVisible,
|
3284
3281
|
padding: backgroundPadding,
|
3285
3282
|
style: {
|
3286
|
-
offsetX,
|
3287
|
-
offsetY,
|
3288
3283
|
cornerRadius: backgroundBorderRadius ?? 4,
|
3289
3284
|
fill: backgroundColor,
|
3290
3285
|
stroke: backgroundBorderColor,
|
@@ -5121,7 +5116,7 @@ const zDimension = z.object({
|
|
5121
5116
|
'dimension',
|
5122
5117
|
'rowDimension',
|
5123
5118
|
'columnDimension'
|
5124
|
-
])
|
5119
|
+
]).default('dimension').optional()
|
5125
5120
|
});
|
5126
5121
|
const zDimensions = z.array(zDimension).optional();
|
5127
5122
|
const zNumFormat = z.object({
|
@@ -5612,9 +5607,7 @@ const zAnnotationVerticalLine = z.object({
|
|
5612
5607
|
backgroundBorderColor: z.string().optional(),
|
5613
5608
|
backgroundBorderWidth: z.number().default(1).optional(),
|
5614
5609
|
backgroundBorderRadius: z.number().default(4).optional(),
|
5615
|
-
backgroundPadding: z.number().optional()
|
5616
|
-
offsetY: z.number().default(0).optional(),
|
5617
|
-
offsetX: z.number().default(0).optional()
|
5610
|
+
backgroundPadding: z.number().optional()
|
5618
5611
|
});
|
5619
5612
|
const zAnnotationHorizontalLine = z.object({
|
5620
5613
|
selector: z.union([
|
@@ -5664,9 +5657,7 @@ const zAnnotationHorizontalLine = z.object({
|
|
5664
5657
|
backgroundBorderColor: z.string().optional(),
|
5665
5658
|
backgroundBorderWidth: z.number().default(1).optional(),
|
5666
5659
|
backgroundBorderRadius: z.number().default(4).optional(),
|
5667
|
-
backgroundPadding: z.number().optional()
|
5668
|
-
offsetY: z.number().default(0).optional(),
|
5669
|
-
offsetX: z.number().default(0).optional()
|
5660
|
+
backgroundPadding: z.number().optional()
|
5670
5661
|
});
|
5671
5662
|
const zAnnotationArea = z.object({
|
5672
5663
|
selector: z.union([
|
@@ -5796,30 +5787,8 @@ const zLocale = z["enum"]([
|
|
5796
5787
|
'zh-CN',
|
5797
5788
|
'en-US'
|
5798
5789
|
]).default('zh-CN');
|
5799
|
-
const
|
5800
|
-
chartType: z.literal('
|
5801
|
-
dataset: zDataset.optional(),
|
5802
|
-
dimensions: zDimensions.optional(),
|
5803
|
-
measures: zMeasures.optional(),
|
5804
|
-
backgroundColor: zBackgroundColor.optional(),
|
5805
|
-
color: zColor.optional(),
|
5806
|
-
label: zLabel.optional(),
|
5807
|
-
legend: zLegend.optional(),
|
5808
|
-
tooltip: zTooltip.optional(),
|
5809
|
-
xAxis: zXLinearAxis.optional(),
|
5810
|
-
yAxis: zYBandAxis.optional(),
|
5811
|
-
crosshairRect: zCrosshairRect.optional(),
|
5812
|
-
stackCornerRadius: zStackCornerRadius.optional(),
|
5813
|
-
theme: zTheme.optional(),
|
5814
|
-
barStyle: zBarStyle.optional(),
|
5815
|
-
annotationPoint: zAnnotationPoint.optional(),
|
5816
|
-
annotationVerticalLine: zAnnotationVerticalLine.optional(),
|
5817
|
-
annotationHorizontalLine: zAnnotationHorizontalLine.optional(),
|
5818
|
-
annotationArea: zAnnotationArea.optional(),
|
5819
|
-
locale: zLocale.optional()
|
5820
|
-
});
|
5821
|
-
const zBarParallel = z.object({
|
5822
|
-
chartType: z.literal('barParallel'),
|
5790
|
+
const zLine = z.object({
|
5791
|
+
chartType: z.literal('line'),
|
5823
5792
|
dataset: zDataset.optional(),
|
5824
5793
|
dimensions: zDimensions.optional(),
|
5825
5794
|
measures: zMeasures.optional(),
|
@@ -5828,16 +5797,16 @@ const zBarParallel = z.object({
|
|
5828
5797
|
label: zLabel.optional(),
|
5829
5798
|
legend: zLegend.optional(),
|
5830
5799
|
tooltip: zTooltip.optional(),
|
5831
|
-
xAxis:
|
5832
|
-
yAxis:
|
5833
|
-
|
5834
|
-
stackCornerRadius: zStackCornerRadius.optional(),
|
5800
|
+
xAxis: zXBandAxis.optional(),
|
5801
|
+
yAxis: zYLinearAxis.optional(),
|
5802
|
+
crosshairLine: zCrosshairLine.optional(),
|
5835
5803
|
theme: zTheme.optional(),
|
5836
|
-
|
5837
|
-
|
5838
|
-
|
5839
|
-
|
5840
|
-
|
5804
|
+
pointStyle: zPointStyle.optional(),
|
5805
|
+
lineStyle: zLineStyle.optional(),
|
5806
|
+
annotationPoint: z.array(zAnnotationPoint).or(zAnnotationPoint).optional(),
|
5807
|
+
annotationVerticalLine: z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).optional(),
|
5808
|
+
annotationHorizontalLine: z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).optional(),
|
5809
|
+
annotationArea: z.array(zAnnotationArea).or(zAnnotationArea).optional(),
|
5841
5810
|
locale: zLocale.optional()
|
5842
5811
|
});
|
5843
5812
|
const zColumn = z.object({
|
@@ -5856,10 +5825,10 @@ const zColumn = z.object({
|
|
5856
5825
|
stackCornerRadius: zStackCornerRadius.optional(),
|
5857
5826
|
theme: zTheme.optional(),
|
5858
5827
|
barStyle: zBarStyle.optional(),
|
5859
|
-
annotationPoint: zAnnotationPoint.optional(),
|
5860
|
-
annotationVerticalLine: zAnnotationVerticalLine.optional(),
|
5861
|
-
annotationHorizontalLine: zAnnotationHorizontalLine.optional(),
|
5862
|
-
annotationArea: zAnnotationArea.optional(),
|
5828
|
+
annotationPoint: z.array(zAnnotationPoint).or(zAnnotationPoint).optional(),
|
5829
|
+
annotationVerticalLine: z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).optional(),
|
5830
|
+
annotationHorizontalLine: z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).optional(),
|
5831
|
+
annotationArea: z.array(zAnnotationArea).or(zAnnotationArea).optional(),
|
5863
5832
|
locale: zLocale.optional()
|
5864
5833
|
});
|
5865
5834
|
const zColumnParallel = z.object({
|
@@ -5878,10 +5847,10 @@ const zColumnParallel = z.object({
|
|
5878
5847
|
stackCornerRadius: zStackCornerRadius.optional(),
|
5879
5848
|
theme: zTheme.optional(),
|
5880
5849
|
barStyle: zBarStyle.optional(),
|
5881
|
-
annotationPoint: zAnnotationPoint.optional(),
|
5882
|
-
annotationVerticalLine: zAnnotationVerticalLine.optional(),
|
5883
|
-
annotationHorizontalLine: zAnnotationHorizontalLine.optional(),
|
5884
|
-
annotationArea: zAnnotationArea.optional(),
|
5850
|
+
annotationPoint: z.array(zAnnotationPoint).or(zAnnotationPoint).optional(),
|
5851
|
+
annotationVerticalLine: z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).optional(),
|
5852
|
+
annotationHorizontalLine: z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).optional(),
|
5853
|
+
annotationArea: z.array(zAnnotationArea).or(zAnnotationArea).optional(),
|
5885
5854
|
locale: zLocale.optional()
|
5886
5855
|
});
|
5887
5856
|
const zColumnPercent = z.object({
|
@@ -5900,14 +5869,14 @@ const zColumnPercent = z.object({
|
|
5900
5869
|
stackCornerRadius: zStackCornerRadius.optional(),
|
5901
5870
|
theme: zTheme.optional(),
|
5902
5871
|
barStyle: zBarStyle.optional(),
|
5903
|
-
annotationPoint: zAnnotationPoint.optional(),
|
5904
|
-
annotationVerticalLine: zAnnotationVerticalLine.optional(),
|
5905
|
-
annotationHorizontalLine: zAnnotationHorizontalLine.optional(),
|
5906
|
-
annotationArea: zAnnotationArea.optional(),
|
5872
|
+
annotationPoint: z.array(zAnnotationPoint).or(zAnnotationPoint).optional(),
|
5873
|
+
annotationVerticalLine: z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).optional(),
|
5874
|
+
annotationHorizontalLine: z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).optional(),
|
5875
|
+
annotationArea: z.array(zAnnotationArea).or(zAnnotationArea).optional(),
|
5907
5876
|
locale: zLocale.optional()
|
5908
5877
|
});
|
5909
|
-
const
|
5910
|
-
chartType: z.literal('
|
5878
|
+
const zBar = z.object({
|
5879
|
+
chartType: z.literal('bar'),
|
5911
5880
|
dataset: zDataset.optional(),
|
5912
5881
|
dimensions: zDimensions.optional(),
|
5913
5882
|
measures: zMeasures.optional(),
|
@@ -5916,20 +5885,20 @@ const zLine = z.object({
|
|
5916
5885
|
label: zLabel.optional(),
|
5917
5886
|
legend: zLegend.optional(),
|
5918
5887
|
tooltip: zTooltip.optional(),
|
5919
|
-
xAxis:
|
5920
|
-
yAxis:
|
5921
|
-
|
5888
|
+
xAxis: zXLinearAxis.optional(),
|
5889
|
+
yAxis: zYBandAxis.optional(),
|
5890
|
+
crosshairRect: zCrosshairRect.optional(),
|
5891
|
+
stackCornerRadius: zStackCornerRadius.optional(),
|
5922
5892
|
theme: zTheme.optional(),
|
5923
|
-
|
5924
|
-
|
5925
|
-
|
5926
|
-
|
5927
|
-
|
5928
|
-
annotationArea: zAnnotationArea.optional(),
|
5893
|
+
barStyle: zBarStyle.optional(),
|
5894
|
+
annotationPoint: z.array(zAnnotationPoint).or(zAnnotationPoint).optional(),
|
5895
|
+
annotationVerticalLine: z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).optional(),
|
5896
|
+
annotationHorizontalLine: z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).optional(),
|
5897
|
+
annotationArea: z.array(zAnnotationArea).or(zAnnotationArea).optional(),
|
5929
5898
|
locale: zLocale.optional()
|
5930
5899
|
});
|
5931
|
-
const
|
5932
|
-
chartType: z.literal('
|
5900
|
+
const zBarParallel = z.object({
|
5901
|
+
chartType: z.literal('barParallel'),
|
5933
5902
|
dataset: zDataset.optional(),
|
5934
5903
|
dimensions: zDimensions.optional(),
|
5935
5904
|
measures: zMeasures.optional(),
|
@@ -5938,7 +5907,16 @@ const zRose = z.object({
|
|
5938
5907
|
label: zLabel.optional(),
|
5939
5908
|
legend: zLegend.optional(),
|
5940
5909
|
tooltip: zTooltip.optional(),
|
5910
|
+
xAxis: zXLinearAxis.optional(),
|
5911
|
+
yAxis: zYBandAxis.optional(),
|
5912
|
+
crosshairRect: zCrosshairRect.optional(),
|
5913
|
+
stackCornerRadius: zStackCornerRadius.optional(),
|
5941
5914
|
theme: zTheme.optional(),
|
5915
|
+
barStyle: zBarStyle.optional(),
|
5916
|
+
annotationPoint: z.array(zAnnotationPoint).or(zAnnotationPoint).optional(),
|
5917
|
+
annotationVerticalLine: z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).optional(),
|
5918
|
+
annotationHorizontalLine: z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).optional(),
|
5919
|
+
annotationArea: z.array(zAnnotationArea).or(zAnnotationArea).optional(),
|
5942
5920
|
locale: zLocale.optional()
|
5943
5921
|
});
|
5944
5922
|
const zBarPercent = z.object({
|
@@ -5957,14 +5935,14 @@ const zBarPercent = z.object({
|
|
5957
5935
|
stackCornerRadius: zStackCornerRadius.optional(),
|
5958
5936
|
theme: zTheme.optional(),
|
5959
5937
|
barStyle: zBarStyle.optional(),
|
5960
|
-
annotationPoint: zAnnotationPoint.optional(),
|
5961
|
-
annotationVerticalLine: zAnnotationVerticalLine.optional(),
|
5962
|
-
annotationHorizontalLine: zAnnotationHorizontalLine.optional(),
|
5963
|
-
annotationArea: zAnnotationArea.optional(),
|
5938
|
+
annotationPoint: z.array(zAnnotationPoint).or(zAnnotationPoint).optional(),
|
5939
|
+
annotationVerticalLine: z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).optional(),
|
5940
|
+
annotationHorizontalLine: z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).optional(),
|
5941
|
+
annotationArea: z.array(zAnnotationArea).or(zAnnotationArea).optional(),
|
5964
5942
|
locale: zLocale.optional()
|
5965
5943
|
});
|
5966
|
-
const
|
5967
|
-
chartType: z.literal('
|
5944
|
+
const zArea = z.object({
|
5945
|
+
chartType: z.literal('area'),
|
5968
5946
|
dataset: zDataset.optional(),
|
5969
5947
|
dimensions: zDimensions.optional(),
|
5970
5948
|
measures: zMeasures.optional(),
|
@@ -5973,11 +5951,21 @@ const zPie = z.object({
|
|
5973
5951
|
label: zLabel.optional(),
|
5974
5952
|
legend: zLegend.optional(),
|
5975
5953
|
tooltip: zTooltip.optional(),
|
5954
|
+
xAxis: zXBandAxis.optional(),
|
5955
|
+
yAxis: zYLinearAxis.optional(),
|
5956
|
+
crosshairLine: zCrosshairLine.optional(),
|
5976
5957
|
theme: zTheme.optional(),
|
5958
|
+
pointStyle: zPointStyle.optional(),
|
5959
|
+
lineStyle: zLineStyle.optional(),
|
5960
|
+
areaStyle: zAreaStyle.optional(),
|
5961
|
+
annotationPoint: z.array(zAnnotationPoint).or(zAnnotationPoint).optional(),
|
5962
|
+
annotationVerticalLine: z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).optional(),
|
5963
|
+
annotationHorizontalLine: z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).optional(),
|
5964
|
+
annotationArea: z.array(zAnnotationArea).or(zAnnotationArea).optional(),
|
5977
5965
|
locale: zLocale.optional()
|
5978
5966
|
});
|
5979
|
-
const
|
5980
|
-
chartType: z.literal('
|
5967
|
+
const zAreaPercent = z.object({
|
5968
|
+
chartType: z.literal('areaPercent'),
|
5981
5969
|
dataset: zDataset.optional(),
|
5982
5970
|
dimensions: zDimensions.optional(),
|
5983
5971
|
measures: zMeasures.optional(),
|
@@ -5986,11 +5974,21 @@ const zDonut = z.object({
|
|
5986
5974
|
label: zLabel.optional(),
|
5987
5975
|
legend: zLegend.optional(),
|
5988
5976
|
tooltip: zTooltip.optional(),
|
5977
|
+
xAxis: zXBandAxis.optional(),
|
5978
|
+
yAxis: zYLinearAxis.optional(),
|
5979
|
+
crosshairLine: zCrosshairLine.optional(),
|
5989
5980
|
theme: zTheme.optional(),
|
5981
|
+
pointStyle: zPointStyle.optional(),
|
5982
|
+
lineStyle: zLineStyle.optional(),
|
5983
|
+
areaStyle: zAreaStyle.optional(),
|
5984
|
+
annotationPoint: z.array(zAnnotationPoint).or(zAnnotationPoint).optional(),
|
5985
|
+
annotationVerticalLine: z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).optional(),
|
5986
|
+
annotationHorizontalLine: z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).optional(),
|
5987
|
+
annotationArea: z.array(zAnnotationArea).or(zAnnotationArea).optional(),
|
5990
5988
|
locale: zLocale.optional()
|
5991
5989
|
});
|
5992
|
-
const
|
5993
|
-
chartType: z.literal('
|
5990
|
+
const zRose = z.object({
|
5991
|
+
chartType: z.literal('rose'),
|
5994
5992
|
dataset: zDataset.optional(),
|
5995
5993
|
dimensions: zDimensions.optional(),
|
5996
5994
|
measures: zMeasures.optional(),
|
@@ -5999,21 +5997,11 @@ const zArea = z.object({
|
|
5999
5997
|
label: zLabel.optional(),
|
6000
5998
|
legend: zLegend.optional(),
|
6001
5999
|
tooltip: zTooltip.optional(),
|
6002
|
-
xAxis: zXBandAxis.optional(),
|
6003
|
-
yAxis: zYLinearAxis.optional(),
|
6004
|
-
crosshairLine: zCrosshairLine.optional(),
|
6005
6000
|
theme: zTheme.optional(),
|
6006
|
-
pointStyle: zPointStyle.optional(),
|
6007
|
-
lineStyle: zLineStyle.optional(),
|
6008
|
-
areaStyle: zAreaStyle.optional(),
|
6009
|
-
annotationPoint: zAnnotationPoint.optional(),
|
6010
|
-
annotationVerticalLine: zAnnotationVerticalLine.optional(),
|
6011
|
-
annotationHorizontalLine: zAnnotationHorizontalLine.optional(),
|
6012
|
-
annotationArea: zAnnotationArea.optional(),
|
6013
6001
|
locale: zLocale.optional()
|
6014
6002
|
});
|
6015
|
-
const
|
6016
|
-
chartType: z.literal('
|
6003
|
+
const zRoseParallel = z.object({
|
6004
|
+
chartType: z.literal('roseParallel'),
|
6017
6005
|
dataset: zDataset.optional(),
|
6018
6006
|
dimensions: zDimensions.optional(),
|
6019
6007
|
measures: zMeasures.optional(),
|
@@ -6022,21 +6010,24 @@ const zAreaPercent = z.object({
|
|
6022
6010
|
label: zLabel.optional(),
|
6023
6011
|
legend: zLegend.optional(),
|
6024
6012
|
tooltip: zTooltip.optional(),
|
6025
|
-
xAxis: zXBandAxis.optional(),
|
6026
|
-
yAxis: zYLinearAxis.optional(),
|
6027
|
-
crosshairLine: zCrosshairLine.optional(),
|
6028
6013
|
theme: zTheme.optional(),
|
6029
|
-
pointStyle: zPointStyle.optional(),
|
6030
|
-
lineStyle: zLineStyle.optional(),
|
6031
|
-
areaStyle: zAreaStyle.optional(),
|
6032
|
-
annotationPoint: zAnnotationPoint.optional(),
|
6033
|
-
annotationVerticalLine: zAnnotationVerticalLine.optional(),
|
6034
|
-
annotationHorizontalLine: zAnnotationHorizontalLine.optional(),
|
6035
|
-
annotationArea: zAnnotationArea.optional(),
|
6036
6014
|
locale: zLocale.optional()
|
6037
6015
|
});
|
6038
|
-
const
|
6039
|
-
chartType: z.literal('
|
6016
|
+
const zPie = z.object({
|
6017
|
+
chartType: z.literal('pie'),
|
6018
|
+
dataset: zDataset.optional(),
|
6019
|
+
dimensions: zDimensions.optional(),
|
6020
|
+
measures: zMeasures.optional(),
|
6021
|
+
backgroundColor: zBackgroundColor.optional(),
|
6022
|
+
color: zColor.optional(),
|
6023
|
+
label: zLabel.optional(),
|
6024
|
+
legend: zLegend.optional(),
|
6025
|
+
tooltip: zTooltip.optional(),
|
6026
|
+
theme: zTheme.optional(),
|
6027
|
+
locale: zLocale.optional()
|
6028
|
+
});
|
6029
|
+
const zDonut = z.object({
|
6030
|
+
chartType: z.literal('donut'),
|
6040
6031
|
dataset: zDataset.optional(),
|
6041
6032
|
dimensions: zDimensions.optional(),
|
6042
6033
|
measures: zMeasures.optional(),
|
@@ -6063,10 +6054,10 @@ const zScatter = z.object({
|
|
6063
6054
|
crosshairLine: zCrosshairLine.optional(),
|
6064
6055
|
theme: zTheme.optional(),
|
6065
6056
|
pointStyle: zPointStyle.optional(),
|
6066
|
-
annotationPoint: zAnnotationPoint.optional(),
|
6067
|
-
annotationVerticalLine: zAnnotationVerticalLine.optional(),
|
6068
|
-
annotationHorizontalLine: zAnnotationHorizontalLine.optional(),
|
6069
|
-
annotationArea: zAnnotationArea.optional(),
|
6057
|
+
annotationPoint: z.array(zAnnotationPoint).or(zAnnotationPoint).optional(),
|
6058
|
+
annotationVerticalLine: z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).optional(),
|
6059
|
+
annotationHorizontalLine: z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).optional(),
|
6060
|
+
annotationArea: z.array(zAnnotationArea).or(zAnnotationArea).optional(),
|
6070
6061
|
locale: zLocale.optional()
|
6071
6062
|
});
|
6072
6063
|
const zFunnel = z.object({
|
@@ -6099,6 +6090,21 @@ const zVSeed = z.discriminatedUnion('chartType', [
|
|
6099
6090
|
zDonut,
|
6100
6091
|
zFunnel
|
6101
6092
|
]);
|
6102
|
-
|
6093
|
+
const zAdvancedVSeed = z.object({
|
6094
|
+
chartType: zChartType,
|
6095
|
+
dataset: zDataset,
|
6096
|
+
datasetReshapeInfo: zDatasetReshapeInfo,
|
6097
|
+
dimensions: zDimensions,
|
6098
|
+
measures: zMeasures,
|
6099
|
+
encoding: zEncoding,
|
6100
|
+
baseConfig: zBaseConfig,
|
6101
|
+
config: zConfig,
|
6102
|
+
theme: zTheme,
|
6103
|
+
markStyle: zMarkStyle,
|
6104
|
+
customTheme: zCustomTheme,
|
6105
|
+
annotation: zAnnotation,
|
6106
|
+
locale: zLocale
|
6107
|
+
});
|
6108
|
+
export { Builder, FoldMeasureId, FoldMeasureName, FoldMeasureValue, ORIGINAL_DATA, Separator, UnfoldDimensionGroup, UnfoldDimensionGroupId, areaAdvancedPipeline, areaPercentAdvancedPipeline, areaPercentSpecPipeline, areaSpecPipeline, autoFormatter, autoNumFormatter, barAdvancedPipeline, barParallelAdvancedPipeline, barParallelSpecPipeline, barPercentAdvancedPipeline, barPercentSpecPipeline, barSpecPipeline, columnAdvancedPipeline, columnParallelAdvancedPipeline, columnParallelSpecPipeline, columnPercentAdvancedPipeline, columnPercentSpecPipeline, columnSpecPipeline, createFormatter, createNumFormatter, darkTheme, dataReshapeFor1D1M, dataReshapeFor1D2M, dataReshapeFor2D1M, donutAdvancedPipeline, donutSpecPipeline, execPipeline, findFirstMeasure, findMeasureById, foldMeasures, funnelAdvancedPipeline, funnelSpecPipeline, i18n, intl, isPivotChart, isVChart, isVTable, lightTheme, lineAdvancedPipeline, lineSpecPipeline, pieAdvancedPipeline, pieSpecPipeline, registerAll, registerArea, registerAreaPercent, registerBar, registerBarParallel, registerBarPercent, registerColumn, registerColumnParallel, registerColumnPercent, registerCustomTheme, registerDarkTheme, registerLightTheme, registerLine, roseAdvancedPipeline, roseParallelAdvancedPipeline, roseParallelSpecPipeline, roseSpecPipeline, scatterAdvancedPipeline, scatterSpecPipeline, unfoldDimensions, zAdvancedVSeed, zAnnotation, zAnnotationArea, zAnnotationHorizontalLine, zAnnotationPoint, zAnnotationVerticalLine, zArea, zAreaPercent, zAreaStyle, zAxis, zBackgroundColor, zBar, zBarParallel, zBarPercent, zBarStyle, zBaseConfig, zChartType, zColor, zColumn, zColumnParallel, zColumnPercent, zConfig, zCrosshairLine, zCrosshairRect, zCustomTheme, zCustomThemeConfig, zDataset, zDatasetReshapeInfo, zDatum, zDimension, zDimensions, zDonut, zEncoding, zFoldInfo, zFunnel, zLabel, zLegend, zLine, zLineStyle, zLocale, zMarkStyle, zMeasure, zMeasureGroup, zMeasures, zNumFormat, zPie, zPointStyle, zRose, zRoseParallel, zScatter, zStackCornerRadius, zTheme, zTooltip, zUnfoldInfo, zVSeed, zXBandAxis, zXLinearAxis, zYBandAxis, zYLinearAxis };
|
6103
6109
|
|
6104
6110
|
//# sourceMappingURL=index.js.map
|