@visactor/vseed 0.0.25 → 0.0.27
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 -0
- package/dist/index.cjs +101 -35
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +101 -35
- package/dist/index.js.map +1 -1
- package/dist/pipeline/spec/chart/pipes/dataset/index.d.ts +1 -0
- package/dist/pipeline/spec/chart/pipes/dataset/progressive.d.ts +2 -0
- package/dist/types/chartType/area/area.d.ts +237 -6
- package/dist/types/chartType/areaPercent/areaPercent.d.ts +237 -6
- package/dist/types/chartType/areaRange/areaRange.d.ts +237 -6
- package/dist/types/chartType/bar/bar.d.ts +78 -2
- package/dist/types/chartType/barParallel/barParallel.d.ts +78 -2
- package/dist/types/chartType/barPercent/barPercent.d.ts +78 -2
- package/dist/types/chartType/column/column.d.ts +78 -2
- package/dist/types/chartType/columnParallel/columnParallel.d.ts +78 -2
- package/dist/types/chartType/columnPercent/columnPercent.d.ts +78 -2
- package/dist/types/chartType/line/line.d.ts +163 -4
- package/dist/types/chartType/scatter/scatter.d.ts +82 -2
- package/dist/types/vseed.d.ts +1505 -117
- package/dist/umd/index.js +101 -35
- package/dist/umd/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -2167,6 +2167,20 @@ const datasetPivot = (spec, context)=>{
|
|
2167
2167
|
records: records
|
2168
2168
|
};
|
2169
2169
|
};
|
2170
|
+
const progressive = (spec, context)=>{
|
2171
|
+
const result = {
|
2172
|
+
...spec
|
2173
|
+
};
|
2174
|
+
const { advancedVSeed } = context;
|
2175
|
+
const { dataset } = advancedVSeed;
|
2176
|
+
const size = dataset.length;
|
2177
|
+
if (size < 5000) return result;
|
2178
|
+
result.large = true;
|
2179
|
+
result.largeThreshold = 5000;
|
2180
|
+
result.progressiveStep = 400;
|
2181
|
+
result.progressiveThreshold = 8000;
|
2182
|
+
return result;
|
2183
|
+
};
|
2170
2184
|
const initColumn = (spec, context)=>{
|
2171
2185
|
const result = {
|
2172
2186
|
...spec
|
@@ -2221,7 +2235,7 @@ const initBarParallel = (spec, context)=>{
|
|
2221
2235
|
result.direction = 'horizontal';
|
2222
2236
|
result.yField = [
|
2223
2237
|
encoding[0].y[0],
|
2224
|
-
unfoldInfo.
|
2238
|
+
unfoldInfo.groupId
|
2225
2239
|
];
|
2226
2240
|
result.xField = encoding[0].x[0];
|
2227
2241
|
result.seriesField = encoding[0].group[0];
|
@@ -2370,7 +2384,7 @@ const initColumnParallel = (spec, context)=>{
|
|
2370
2384
|
result.direction = 'vertical';
|
2371
2385
|
result.xField = [
|
2372
2386
|
encoding[0].x[0],
|
2373
|
-
unfoldInfo.
|
2387
|
+
unfoldInfo.groupId
|
2374
2388
|
];
|
2375
2389
|
result.yField = encoding[0].y[0];
|
2376
2390
|
result.seriesField = encoding[0].group[0];
|
@@ -2390,7 +2404,7 @@ const initPie = (spec, context)=>{
|
|
2390
2404
|
const { advancedVSeed } = context;
|
2391
2405
|
const { encoding, dataset } = advancedVSeed;
|
2392
2406
|
if (!encoding[0].angle || !encoding[0].radius || !encoding[0].group) return result;
|
2393
|
-
const showStroke = dataset.length
|
2407
|
+
const showStroke = dataset.length <= 30;
|
2394
2408
|
result.type = 'pie';
|
2395
2409
|
result.outerRadius = 0.8;
|
2396
2410
|
result.innerRadius = 0;
|
@@ -2426,7 +2440,7 @@ const initDonut = (spec, context)=>{
|
|
2426
2440
|
const { advancedVSeed } = context;
|
2427
2441
|
const { encoding, dataset } = advancedVSeed;
|
2428
2442
|
if (!encoding[0].angle || !encoding[0].radius || !encoding[0].group) return result;
|
2429
|
-
const showStroke = dataset.length
|
2443
|
+
const showStroke = dataset.length <= 30;
|
2430
2444
|
result.type = 'pie';
|
2431
2445
|
result.outerRadius = 0.8;
|
2432
2446
|
result.innerRadius = 0.8 * result.outerRadius;
|
@@ -2501,7 +2515,7 @@ const initRoseParallel = (spec, context)=>{
|
|
2501
2515
|
result.type = 'rose';
|
2502
2516
|
result.categoryField = [
|
2503
2517
|
encoding[0].angle[0],
|
2504
|
-
unfoldInfo.
|
2518
|
+
unfoldInfo.groupId
|
2505
2519
|
];
|
2506
2520
|
result.valueField = encoding[0].radius[0];
|
2507
2521
|
result.seriesField = encoding[0].group[0];
|
@@ -3149,7 +3163,7 @@ const tooltip_tooltip = (spec, context)=>{
|
|
3149
3163
|
...spec
|
3150
3164
|
};
|
3151
3165
|
const { advancedVSeed } = context;
|
3152
|
-
const { measures, datasetReshapeInfo, chartType } = advancedVSeed;
|
3166
|
+
const { measures, datasetReshapeInfo, chartType, locale } = advancedVSeed;
|
3153
3167
|
const baseConfig = advancedVSeed.config[chartType];
|
3154
3168
|
const { tooltip = {
|
3155
3169
|
enable: true
|
@@ -3178,7 +3192,7 @@ const tooltip_tooltip = (spec, context)=>{
|
|
3178
3192
|
const formatter = createFormatter(format);
|
3179
3193
|
return formatter(value);
|
3180
3194
|
}
|
3181
|
-
if (autoFormat) return autoFormatter(value);
|
3195
|
+
if (autoFormat) return autoFormatter(value, locale);
|
3182
3196
|
return String(value);
|
3183
3197
|
}
|
3184
3198
|
}
|
@@ -3200,7 +3214,7 @@ const tooltip_tooltip = (spec, context)=>{
|
|
3200
3214
|
const formatter = createFormatter(format);
|
3201
3215
|
return formatter(value);
|
3202
3216
|
}
|
3203
|
-
if (autoFormat) return autoFormatter(value);
|
3217
|
+
if (autoFormat) return autoFormatter(value, locale);
|
3204
3218
|
return String(value);
|
3205
3219
|
}
|
3206
3220
|
}
|
@@ -3891,14 +3905,15 @@ const isDimensionSelector = (selector)=>'object' == typeof selector && null !==
|
|
3891
3905
|
].includes(selector.op));
|
3892
3906
|
const barStyle_barStyle = (spec, context)=>{
|
3893
3907
|
const { advancedVSeed } = context;
|
3894
|
-
const { markStyle } = advancedVSeed;
|
3908
|
+
const { markStyle, dataset } = advancedVSeed;
|
3895
3909
|
const { barStyle } = markStyle;
|
3910
|
+
const showStroke = dataset.length <= 100;
|
3896
3911
|
const result = {
|
3897
3912
|
...spec,
|
3898
3913
|
bar: {
|
3899
3914
|
style: {
|
3900
3915
|
stroke: '#fff',
|
3901
|
-
lineWidth: 1
|
3916
|
+
lineWidth: showStroke ? 1 : 0
|
3902
3917
|
},
|
3903
3918
|
state: {
|
3904
3919
|
hover: {
|
@@ -3934,10 +3949,13 @@ const barStyle_barStyle = (spec, context)=>{
|
|
3934
3949
|
style: {
|
3935
3950
|
fill: barColor,
|
3936
3951
|
fillOpacity: barColorOpacity,
|
3937
|
-
|
3938
|
-
|
3939
|
-
|
3940
|
-
|
3952
|
+
cornerRadius: barRadius,
|
3953
|
+
innerBorder: {
|
3954
|
+
stroke: barBorderColor,
|
3955
|
+
lineWidth: barBorderWidth,
|
3956
|
+
distance: (barBorderWidth || 0) / 2,
|
3957
|
+
lineDash: lineDash
|
3958
|
+
}
|
3941
3959
|
}
|
3942
3960
|
}
|
3943
3961
|
};
|
@@ -3986,9 +4004,12 @@ const pointStyle_pointStyle = (spec, context)=>{
|
|
3986
4004
|
size: pointSize,
|
3987
4005
|
fill: pointColor,
|
3988
4006
|
fillOpacity: pointColorOpacity,
|
3989
|
-
|
3990
|
-
|
3991
|
-
|
4007
|
+
innerBorder: {
|
4008
|
+
stroke: pointBorderColor,
|
4009
|
+
lineWidth: pointBorderWidth,
|
4010
|
+
distance: (pointBorderWidth || 0) / 2,
|
4011
|
+
lineDash: lineDash
|
4012
|
+
}
|
3992
4013
|
}
|
3993
4014
|
}
|
3994
4015
|
};
|
@@ -4806,6 +4827,7 @@ const line_line = [
|
|
4806
4827
|
color_color,
|
4807
4828
|
background_backgroundColor,
|
4808
4829
|
datasetXY,
|
4830
|
+
progressive,
|
4809
4831
|
xBand,
|
4810
4832
|
yLinear,
|
4811
4833
|
label_label,
|
@@ -4830,6 +4852,7 @@ const pivotLine = [
|
|
4830
4852
|
color_color,
|
4831
4853
|
background_backgroundColor,
|
4832
4854
|
datasetXY,
|
4855
|
+
progressive,
|
4833
4856
|
xBand,
|
4834
4857
|
yLinear,
|
4835
4858
|
label_label,
|
@@ -4857,6 +4880,7 @@ const column = [
|
|
4857
4880
|
color_color,
|
4858
4881
|
background_backgroundColor,
|
4859
4882
|
datasetXY,
|
4883
|
+
progressive,
|
4860
4884
|
xBand,
|
4861
4885
|
yLinear,
|
4862
4886
|
label_label,
|
@@ -4881,6 +4905,7 @@ const pivotColumn = [
|
|
4881
4905
|
color_color,
|
4882
4906
|
background_backgroundColor,
|
4883
4907
|
datasetXY,
|
4908
|
+
progressive,
|
4884
4909
|
xBand,
|
4885
4910
|
yLinear,
|
4886
4911
|
label_label,
|
@@ -4905,6 +4930,7 @@ const columnParallel = [
|
|
4905
4930
|
color_color,
|
4906
4931
|
background_backgroundColor,
|
4907
4932
|
datasetXY,
|
4933
|
+
progressive,
|
4908
4934
|
xBand,
|
4909
4935
|
yLinear,
|
4910
4936
|
label_label,
|
@@ -4928,6 +4954,7 @@ const pivotColumnParallel = [
|
|
4928
4954
|
color_color,
|
4929
4955
|
background_backgroundColor,
|
4930
4956
|
datasetXY,
|
4957
|
+
progressive,
|
4931
4958
|
xBand,
|
4932
4959
|
yLinear,
|
4933
4960
|
label_label,
|
@@ -4954,6 +4981,7 @@ const columnPercent = [
|
|
4954
4981
|
background_backgroundColor,
|
4955
4982
|
percent,
|
4956
4983
|
datasetXY,
|
4984
|
+
progressive,
|
4957
4985
|
xBand,
|
4958
4986
|
yLinear,
|
4959
4987
|
label_label,
|
@@ -4979,6 +5007,7 @@ const pivotColumnPercent = [
|
|
4979
5007
|
percent,
|
4980
5008
|
background_backgroundColor,
|
4981
5009
|
datasetXY,
|
5010
|
+
progressive,
|
4982
5011
|
xBand,
|
4983
5012
|
yLinear,
|
4984
5013
|
label_label,
|
@@ -5003,6 +5032,7 @@ const bar = [
|
|
5003
5032
|
color_color,
|
5004
5033
|
background_backgroundColor,
|
5005
5034
|
datasetYX,
|
5035
|
+
progressive,
|
5006
5036
|
xLinear,
|
5007
5037
|
yBand,
|
5008
5038
|
label_label,
|
@@ -5026,6 +5056,7 @@ const pivotBar = [
|
|
5026
5056
|
color_color,
|
5027
5057
|
background_backgroundColor,
|
5028
5058
|
datasetYX,
|
5059
|
+
progressive,
|
5029
5060
|
xLinear,
|
5030
5061
|
yBand,
|
5031
5062
|
label_label,
|
@@ -5051,6 +5082,7 @@ const barParallel = [
|
|
5051
5082
|
color_color,
|
5052
5083
|
background_backgroundColor,
|
5053
5084
|
datasetYX,
|
5085
|
+
progressive,
|
5054
5086
|
xLinear,
|
5055
5087
|
yBand,
|
5056
5088
|
label_label,
|
@@ -5099,6 +5131,7 @@ const barPercent = [
|
|
5099
5131
|
background_backgroundColor,
|
5100
5132
|
percent,
|
5101
5133
|
datasetYX,
|
5134
|
+
progressive,
|
5102
5135
|
xLinear,
|
5103
5136
|
yBand,
|
5104
5137
|
label_label,
|
@@ -5147,6 +5180,7 @@ const area_area = [
|
|
5147
5180
|
color_color,
|
5148
5181
|
background_backgroundColor,
|
5149
5182
|
datasetXY,
|
5183
|
+
progressive,
|
5150
5184
|
xBand,
|
5151
5185
|
yLinear,
|
5152
5186
|
label_label,
|
@@ -5173,6 +5207,7 @@ const pivotArea = [
|
|
5173
5207
|
background_backgroundColor,
|
5174
5208
|
stackInverse,
|
5175
5209
|
datasetXY,
|
5210
|
+
progressive,
|
5176
5211
|
xBand,
|
5177
5212
|
yLinear,
|
5178
5213
|
label_label,
|
@@ -5201,6 +5236,7 @@ const areaPercent = [
|
|
5201
5236
|
background_backgroundColor,
|
5202
5237
|
percent,
|
5203
5238
|
datasetXY,
|
5239
|
+
progressive,
|
5204
5240
|
xBand,
|
5205
5241
|
yLinear,
|
5206
5242
|
label_label,
|
@@ -5227,6 +5263,7 @@ const pivotAreaPercent = [
|
|
5227
5263
|
background_backgroundColor,
|
5228
5264
|
percent,
|
5229
5265
|
datasetXY,
|
5266
|
+
progressive,
|
5230
5267
|
xBand,
|
5231
5268
|
yLinear,
|
5232
5269
|
label_label,
|
@@ -5263,6 +5300,7 @@ const areaRange = [
|
|
5263
5300
|
pointStateDimensionHover
|
5264
5301
|
]),
|
5265
5302
|
datasetXY,
|
5303
|
+
progressive,
|
5266
5304
|
background_backgroundColor,
|
5267
5305
|
xBand,
|
5268
5306
|
yLinear,
|
@@ -5295,6 +5333,7 @@ const pivotAreaRange = [
|
|
5295
5333
|
]),
|
5296
5334
|
background_backgroundColor,
|
5297
5335
|
datasetXY,
|
5336
|
+
progressive,
|
5298
5337
|
xBand,
|
5299
5338
|
yLinear,
|
5300
5339
|
label_label,
|
@@ -5315,6 +5354,7 @@ const scatter = [
|
|
5315
5354
|
color_color,
|
5316
5355
|
background_backgroundColor,
|
5317
5356
|
datasetXY,
|
5357
|
+
progressive,
|
5318
5358
|
xLinear,
|
5319
5359
|
yLinear,
|
5320
5360
|
label_label,
|
@@ -5339,6 +5379,7 @@ const pivotScatter = [
|
|
5339
5379
|
color_color,
|
5340
5380
|
background_backgroundColor,
|
5341
5381
|
datasetXY,
|
5382
|
+
progressive,
|
5342
5383
|
xLinear,
|
5343
5384
|
yLinear,
|
5344
5385
|
label_label,
|
@@ -5364,6 +5405,7 @@ const pie = [
|
|
5364
5405
|
color_color,
|
5365
5406
|
background_backgroundColor,
|
5366
5407
|
datasetXY,
|
5408
|
+
progressive,
|
5367
5409
|
label_label,
|
5368
5410
|
tooltip_tooltip,
|
5369
5411
|
discreteLegend,
|
@@ -5382,6 +5424,7 @@ const pivotPie = [
|
|
5382
5424
|
color_color,
|
5383
5425
|
background_backgroundColor,
|
5384
5426
|
datasetXY,
|
5427
|
+
progressive,
|
5385
5428
|
label_label,
|
5386
5429
|
tooltip_tooltip,
|
5387
5430
|
annotationPoint_annotationPoint,
|
@@ -5401,6 +5444,7 @@ const donut = [
|
|
5401
5444
|
color_color,
|
5402
5445
|
background_backgroundColor,
|
5403
5446
|
datasetXY,
|
5447
|
+
progressive,
|
5404
5448
|
label_label,
|
5405
5449
|
tooltip_tooltip,
|
5406
5450
|
discreteLegend,
|
@@ -5419,6 +5463,7 @@ const pivotDonut = [
|
|
5419
5463
|
color_color,
|
5420
5464
|
background_backgroundColor,
|
5421
5465
|
datasetXY,
|
5466
|
+
progressive,
|
5422
5467
|
label_label,
|
5423
5468
|
tooltip_tooltip,
|
5424
5469
|
annotationPoint_annotationPoint,
|
@@ -5440,6 +5485,7 @@ const rose = [
|
|
5440
5485
|
color_color,
|
5441
5486
|
background_backgroundColor,
|
5442
5487
|
datasetXY,
|
5488
|
+
progressive,
|
5443
5489
|
radiusAxis,
|
5444
5490
|
angleAxis,
|
5445
5491
|
label_label,
|
@@ -5459,6 +5505,7 @@ const pivotRose = [
|
|
5459
5505
|
color_color,
|
5460
5506
|
background_backgroundColor,
|
5461
5507
|
datasetXY,
|
5508
|
+
progressive,
|
5462
5509
|
radiusAxis,
|
5463
5510
|
angleAxis,
|
5464
5511
|
label_label,
|
@@ -5478,6 +5525,7 @@ const roseParallel = [
|
|
5478
5525
|
color_color,
|
5479
5526
|
background_backgroundColor,
|
5480
5527
|
datasetXY,
|
5528
|
+
progressive,
|
5481
5529
|
radiusAxis,
|
5482
5530
|
angleAxis,
|
5483
5531
|
label_label,
|
@@ -5500,6 +5548,7 @@ const pivotRoseParallel = [
|
|
5500
5548
|
color_color,
|
5501
5549
|
background_backgroundColor,
|
5502
5550
|
datasetXY,
|
5551
|
+
progressive,
|
5503
5552
|
radiusAxis,
|
5504
5553
|
angleAxis,
|
5505
5554
|
label_label,
|
@@ -5522,6 +5571,7 @@ const radar = [
|
|
5522
5571
|
color_color,
|
5523
5572
|
background_backgroundColor,
|
5524
5573
|
datasetXY,
|
5574
|
+
progressive,
|
5525
5575
|
radarAngleAxis,
|
5526
5576
|
radarRadiusAxis,
|
5527
5577
|
label_label,
|
@@ -5543,6 +5593,7 @@ const pivotRadar = [
|
|
5543
5593
|
color_color,
|
5544
5594
|
background_backgroundColor,
|
5545
5595
|
datasetXY,
|
5596
|
+
progressive,
|
5546
5597
|
radarAngleAxis,
|
5547
5598
|
radarRadiusAxis,
|
5548
5599
|
label_label,
|
@@ -6109,6 +6160,7 @@ const pivotTableSpecPipeline = [
|
|
6109
6160
|
selectionStyle
|
6110
6161
|
];
|
6111
6162
|
const buildAdvanced = (builder)=>{
|
6163
|
+
const start = 'undefined' != typeof performance ? performance.now() : Date.now();
|
6112
6164
|
const { chartType } = builder.vseed;
|
6113
6165
|
if (!chartType) throw new Error('chartType is nil in buildAdvanced');
|
6114
6166
|
const pipeline = builder.getAdvancedPipeline(chartType);
|
@@ -6122,9 +6174,13 @@ const buildAdvanced = (builder)=>{
|
|
6122
6174
|
} catch (e) {
|
6123
6175
|
console.error(e);
|
6124
6176
|
throw new Error("buildAdvanced error, see error info in console");
|
6177
|
+
} finally{
|
6178
|
+
const end = 'undefined' != typeof performance ? performance.now() : Date.now();
|
6179
|
+
builder.performance['buildAdvanced'] = `${(end - start).toFixed(4)}ms`;
|
6125
6180
|
}
|
6126
6181
|
};
|
6127
6182
|
const buildSpec = (builder, advancedVSeed)=>{
|
6183
|
+
const start = 'undefined' != typeof performance ? performance.now() : Date.now();
|
6128
6184
|
const { chartType } = builder.vseed;
|
6129
6185
|
if (!chartType) throw new Error('chartType is nil in buildSpec');
|
6130
6186
|
const pipeline = builder.getSpecPipeline(chartType);
|
@@ -6138,6 +6194,9 @@ const buildSpec = (builder, advancedVSeed)=>{
|
|
6138
6194
|
} catch (e) {
|
6139
6195
|
console.error(e);
|
6140
6196
|
throw new Error("buildSpec error, see error info in console");
|
6197
|
+
} finally{
|
6198
|
+
const end = 'undefined' != typeof performance ? performance.now() : Date.now();
|
6199
|
+
builder.performance['buildSpec'] = `${(end - start).toFixed(4)}ms`;
|
6141
6200
|
}
|
6142
6201
|
};
|
6143
6202
|
const build = (builder)=>{
|
@@ -6173,6 +6232,7 @@ class Builder {
|
|
6173
6232
|
_vseed;
|
6174
6233
|
_advancedVSeed = null;
|
6175
6234
|
_spec = null;
|
6235
|
+
_performance = {};
|
6176
6236
|
constructor(vseed){
|
6177
6237
|
this._vseed = vseed;
|
6178
6238
|
this._vseed.locale = vseed.locale || intl.getLocale();
|
@@ -6214,6 +6274,12 @@ class Builder {
|
|
6214
6274
|
set spec(value) {
|
6215
6275
|
this._spec = value;
|
6216
6276
|
}
|
6277
|
+
get performance() {
|
6278
|
+
return this._performance;
|
6279
|
+
}
|
6280
|
+
set performance(value) {
|
6281
|
+
this._performance = value;
|
6282
|
+
}
|
6217
6283
|
static _advancedPipelineMap = {};
|
6218
6284
|
static _specPipelineMap = {};
|
6219
6285
|
static _customAdvancedPipe = {};
|
@@ -7813,8 +7879,8 @@ const zLine = z.object({
|
|
7813
7879
|
sortAxis: zSortAxis.optional(),
|
7814
7880
|
sortLegend: zSortLegend.optional(),
|
7815
7881
|
theme: zTheme.optional(),
|
7816
|
-
pointStyle: zPointStyle.optional(),
|
7817
|
-
lineStyle: zLineStyle.optional(),
|
7882
|
+
pointStyle: z.array(zPointStyle).or(zPointStyle).optional(),
|
7883
|
+
lineStyle: z.array(zLineStyle).or(zLineStyle).optional(),
|
7818
7884
|
annotationPoint: z.array(zAnnotationPoint).or(zAnnotationPoint).optional(),
|
7819
7885
|
annotationVerticalLine: z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).optional(),
|
7820
7886
|
annotationHorizontalLine: z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).optional(),
|
@@ -7836,7 +7902,7 @@ const zColumn = z.object({
|
|
7836
7902
|
crosshairRect: zCrosshairRect.optional(),
|
7837
7903
|
stackCornerRadius: zStackCornerRadius.optional(),
|
7838
7904
|
theme: zTheme.optional(),
|
7839
|
-
barStyle: zBarStyle.optional(),
|
7905
|
+
barStyle: z.array(zBarStyle).or(zBarStyle).optional(),
|
7840
7906
|
annotationPoint: z.array(zAnnotationPoint).or(zAnnotationPoint).optional(),
|
7841
7907
|
annotationVerticalLine: z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).optional(),
|
7842
7908
|
annotationHorizontalLine: z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).optional(),
|
@@ -7858,7 +7924,7 @@ const zColumnParallel = z.object({
|
|
7858
7924
|
crosshairRect: zCrosshairRect.optional(),
|
7859
7925
|
stackCornerRadius: zStackCornerRadius.optional(),
|
7860
7926
|
theme: zTheme.optional(),
|
7861
|
-
barStyle: zBarStyle.optional(),
|
7927
|
+
barStyle: z.array(zBarStyle).or(zBarStyle).optional(),
|
7862
7928
|
annotationPoint: z.array(zAnnotationPoint).or(zAnnotationPoint).optional(),
|
7863
7929
|
annotationVerticalLine: z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).optional(),
|
7864
7930
|
annotationHorizontalLine: z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).optional(),
|
@@ -7880,7 +7946,7 @@ const zColumnPercent = z.object({
|
|
7880
7946
|
crosshairRect: zCrosshairRect.optional(),
|
7881
7947
|
stackCornerRadius: zStackCornerRadius.optional(),
|
7882
7948
|
theme: zTheme.optional(),
|
7883
|
-
barStyle: zBarStyle.optional(),
|
7949
|
+
barStyle: z.array(zBarStyle).or(zBarStyle).optional(),
|
7884
7950
|
annotationPoint: z.array(zAnnotationPoint).or(zAnnotationPoint).optional(),
|
7885
7951
|
annotationVerticalLine: z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).optional(),
|
7886
7952
|
annotationHorizontalLine: z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).optional(),
|
@@ -7902,7 +7968,7 @@ const zBar = z.object({
|
|
7902
7968
|
crosshairRect: zCrosshairRect.optional(),
|
7903
7969
|
stackCornerRadius: zStackCornerRadius.optional(),
|
7904
7970
|
theme: zTheme.optional(),
|
7905
|
-
barStyle: zBarStyle.optional(),
|
7971
|
+
barStyle: z.array(zBarStyle).or(zBarStyle).optional(),
|
7906
7972
|
annotationPoint: z.array(zAnnotationPoint).or(zAnnotationPoint).optional(),
|
7907
7973
|
annotationVerticalLine: z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).optional(),
|
7908
7974
|
annotationHorizontalLine: z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).optional(),
|
@@ -7924,7 +7990,7 @@ const zBarParallel = z.object({
|
|
7924
7990
|
crosshairRect: zCrosshairRect.optional(),
|
7925
7991
|
stackCornerRadius: zStackCornerRadius.optional(),
|
7926
7992
|
theme: zTheme.optional(),
|
7927
|
-
barStyle: zBarStyle.optional(),
|
7993
|
+
barStyle: z.array(zBarStyle).or(zBarStyle).optional(),
|
7928
7994
|
annotationPoint: z.array(zAnnotationPoint).or(zAnnotationPoint).optional(),
|
7929
7995
|
annotationVerticalLine: z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).optional(),
|
7930
7996
|
annotationHorizontalLine: z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).optional(),
|
@@ -7946,7 +8012,7 @@ const zBarPercent = z.object({
|
|
7946
8012
|
crosshairRect: zCrosshairRect.optional(),
|
7947
8013
|
stackCornerRadius: zStackCornerRadius.optional(),
|
7948
8014
|
theme: zTheme.optional(),
|
7949
|
-
barStyle: zBarStyle.optional(),
|
8015
|
+
barStyle: z.array(zBarStyle).or(zBarStyle).optional(),
|
7950
8016
|
annotationPoint: z.array(zAnnotationPoint).or(zAnnotationPoint).optional(),
|
7951
8017
|
annotationVerticalLine: z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).optional(),
|
7952
8018
|
annotationHorizontalLine: z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).optional(),
|
@@ -7967,9 +8033,9 @@ const zArea = z.object({
|
|
7967
8033
|
yAxis: zYLinearAxis.optional(),
|
7968
8034
|
crosshairLine: zCrosshairLine.optional(),
|
7969
8035
|
theme: zTheme.optional(),
|
7970
|
-
pointStyle: zPointStyle.optional(),
|
7971
|
-
lineStyle: zLineStyle.optional(),
|
7972
|
-
areaStyle: zAreaStyle.optional(),
|
8036
|
+
pointStyle: z.array(zPointStyle).or(zPointStyle).optional(),
|
8037
|
+
lineStyle: z.array(zLineStyle).or(zLineStyle).optional(),
|
8038
|
+
areaStyle: z.array(zAreaStyle).or(zAreaStyle).optional(),
|
7973
8039
|
annotationPoint: z.array(zAnnotationPoint).or(zAnnotationPoint).optional(),
|
7974
8040
|
annotationVerticalLine: z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).optional(),
|
7975
8041
|
annotationHorizontalLine: z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).optional(),
|
@@ -7990,9 +8056,9 @@ const zAreaPercent = z.object({
|
|
7990
8056
|
yAxis: zYLinearAxis.optional(),
|
7991
8057
|
crosshairLine: zCrosshairLine.optional(),
|
7992
8058
|
theme: zTheme.optional(),
|
7993
|
-
pointStyle: zPointStyle.optional(),
|
7994
|
-
lineStyle: zLineStyle.optional(),
|
7995
|
-
areaStyle: zAreaStyle.optional(),
|
8059
|
+
pointStyle: z.array(zPointStyle).or(zPointStyle).optional(),
|
8060
|
+
lineStyle: z.array(zLineStyle).or(zLineStyle).optional(),
|
8061
|
+
areaStyle: z.array(zAreaStyle).or(zAreaStyle).optional(),
|
7996
8062
|
annotationPoint: z.array(zAnnotationPoint).or(zAnnotationPoint).optional(),
|
7997
8063
|
annotationVerticalLine: z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).optional(),
|
7998
8064
|
annotationHorizontalLine: z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).optional(),
|
@@ -8010,9 +8076,9 @@ const zAreaRange = z.object({
|
|
8010
8076
|
yAxis: zYLinearAxis.optional(),
|
8011
8077
|
crosshairLine: zCrosshairLine.optional(),
|
8012
8078
|
theme: zTheme.optional(),
|
8013
|
-
pointStyle: zPointStyle.optional(),
|
8014
|
-
lineStyle: zLineStyle.optional(),
|
8015
|
-
areaStyle: zAreaStyle.optional(),
|
8079
|
+
pointStyle: z.array(zPointStyle).or(zPointStyle).optional(),
|
8080
|
+
lineStyle: z.array(zLineStyle).or(zLineStyle).optional(),
|
8081
|
+
areaStyle: z.array(zAreaStyle).or(zAreaStyle).optional(),
|
8016
8082
|
annotationPoint: z.array(zAnnotationPoint).or(zAnnotationPoint).optional(),
|
8017
8083
|
annotationVerticalLine: z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).optional(),
|
8018
8084
|
annotationHorizontalLine: z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).optional(),
|
@@ -8033,7 +8099,7 @@ const zScatter = z.object({
|
|
8033
8099
|
yAxis: zYLinearAxis.optional(),
|
8034
8100
|
crosshairLine: zCrosshairLine.optional(),
|
8035
8101
|
theme: zTheme.optional(),
|
8036
|
-
pointStyle: zPointStyle.optional(),
|
8102
|
+
pointStyle: z.array(zPointStyle).or(zPointStyle).optional(),
|
8037
8103
|
annotationPoint: z.array(zAnnotationPoint).or(zAnnotationPoint).optional(),
|
8038
8104
|
annotationVerticalLine: z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).optional(),
|
8039
8105
|
annotationHorizontalLine: z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).optional(),
|