@visactor/vseed 0.0.26 → 0.0.28

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/index.js CHANGED
@@ -1,5 +1,4 @@
1
1
  import { clone, groupBy, isArray, isEmpty, isNullish, isNumber, isString, mergeDeep, omit, pick, sort, unique } from "remeda";
2
- import { color as external_d3_color_color } from "d3-color";
3
2
  import zod, { z } from "zod";
4
3
  const initAdvancedVSeed = (advancedVSeed, context)=>{
5
4
  const { vseed } = context;
@@ -2167,6 +2166,20 @@ const datasetPivot = (spec, context)=>{
2167
2166
  records: records
2168
2167
  };
2169
2168
  };
2169
+ const progressive = (spec, context)=>{
2170
+ const result = {
2171
+ ...spec
2172
+ };
2173
+ const { advancedVSeed } = context;
2174
+ const { dataset } = advancedVSeed;
2175
+ const size = dataset.length;
2176
+ if (size < 5000) return result;
2177
+ result.large = true;
2178
+ result.largeThreshold = 5000;
2179
+ result.progressiveStep = 400;
2180
+ result.progressiveThreshold = 8000;
2181
+ return result;
2182
+ };
2170
2183
  const initColumn = (spec, context)=>{
2171
2184
  const result = {
2172
2185
  ...spec
@@ -2390,7 +2403,7 @@ const initPie = (spec, context)=>{
2390
2403
  const { advancedVSeed } = context;
2391
2404
  const { encoding, dataset } = advancedVSeed;
2392
2405
  if (!encoding[0].angle || !encoding[0].radius || !encoding[0].group) return result;
2393
- const showStroke = dataset.length > 20;
2406
+ const showStroke = dataset.length <= 30;
2394
2407
  result.type = 'pie';
2395
2408
  result.outerRadius = 0.8;
2396
2409
  result.innerRadius = 0;
@@ -2426,7 +2439,7 @@ const initDonut = (spec, context)=>{
2426
2439
  const { advancedVSeed } = context;
2427
2440
  const { encoding, dataset } = advancedVSeed;
2428
2441
  if (!encoding[0].angle || !encoding[0].radius || !encoding[0].group) return result;
2429
- const showStroke = dataset.length > 20;
2442
+ const showStroke = dataset.length <= 30;
2430
2443
  result.type = 'pie';
2431
2444
  result.outerRadius = 0.8;
2432
2445
  result.innerRadius = 0.8 * result.outerRadius;
@@ -3149,7 +3162,7 @@ const tooltip_tooltip = (spec, context)=>{
3149
3162
  ...spec
3150
3163
  };
3151
3164
  const { advancedVSeed } = context;
3152
- const { measures, datasetReshapeInfo, chartType } = advancedVSeed;
3165
+ const { measures, datasetReshapeInfo, chartType, locale } = advancedVSeed;
3153
3166
  const baseConfig = advancedVSeed.config[chartType];
3154
3167
  const { tooltip = {
3155
3168
  enable: true
@@ -3178,7 +3191,7 @@ const tooltip_tooltip = (spec, context)=>{
3178
3191
  const formatter = createFormatter(format);
3179
3192
  return formatter(value);
3180
3193
  }
3181
- if (autoFormat) return autoFormatter(value);
3194
+ if (autoFormat) return autoFormatter(value, locale);
3182
3195
  return String(value);
3183
3196
  }
3184
3197
  }
@@ -3200,7 +3213,7 @@ const tooltip_tooltip = (spec, context)=>{
3200
3213
  const formatter = createFormatter(format);
3201
3214
  return formatter(value);
3202
3215
  }
3203
- if (autoFormat) return autoFormatter(value);
3216
+ if (autoFormat) return autoFormatter(value, locale);
3204
3217
  return String(value);
3205
3218
  }
3206
3219
  }
@@ -3891,14 +3904,15 @@ const isDimensionSelector = (selector)=>'object' == typeof selector && null !==
3891
3904
  ].includes(selector.op));
3892
3905
  const barStyle_barStyle = (spec, context)=>{
3893
3906
  const { advancedVSeed } = context;
3894
- const { markStyle } = advancedVSeed;
3907
+ const { markStyle, dataset } = advancedVSeed;
3895
3908
  const { barStyle } = markStyle;
3909
+ const showStroke = dataset.length <= 100;
3896
3910
  const result = {
3897
3911
  ...spec,
3898
3912
  bar: {
3899
3913
  style: {
3900
3914
  stroke: '#fff',
3901
- lineWidth: 1
3915
+ lineWidth: showStroke ? 1 : 0
3902
3916
  },
3903
3917
  state: {
3904
3918
  hover: {
@@ -3934,10 +3948,13 @@ const barStyle_barStyle = (spec, context)=>{
3934
3948
  style: {
3935
3949
  fill: barColor,
3936
3950
  fillOpacity: barColorOpacity,
3937
- stroke: barBorderColor,
3938
- lineWidth: barBorderWidth,
3939
- lineDash: lineDash,
3940
- cornerRadius: barRadius
3951
+ cornerRadius: barRadius,
3952
+ innerBorder: {
3953
+ stroke: barBorderColor,
3954
+ lineWidth: barBorderWidth,
3955
+ distance: (barBorderWidth || 0) / 2,
3956
+ lineDash: lineDash
3957
+ }
3941
3958
  }
3942
3959
  }
3943
3960
  };
@@ -3986,9 +4003,12 @@ const pointStyle_pointStyle = (spec, context)=>{
3986
4003
  size: pointSize,
3987
4004
  fill: pointColor,
3988
4005
  fillOpacity: pointColorOpacity,
3989
- stroke: pointBorderColor,
3990
- lineWidth: pointBorderWidth,
3991
- lineDash: lineDash
4006
+ innerBorder: {
4007
+ stroke: pointBorderColor,
4008
+ lineWidth: pointBorderWidth,
4009
+ distance: (pointBorderWidth || 0) / 2,
4010
+ lineDash: lineDash
4011
+ }
3992
4012
  }
3993
4013
  }
3994
4014
  };
@@ -4806,6 +4826,7 @@ const line_line = [
4806
4826
  color_color,
4807
4827
  background_backgroundColor,
4808
4828
  datasetXY,
4829
+ progressive,
4809
4830
  xBand,
4810
4831
  yLinear,
4811
4832
  label_label,
@@ -4830,6 +4851,7 @@ const pivotLine = [
4830
4851
  color_color,
4831
4852
  background_backgroundColor,
4832
4853
  datasetXY,
4854
+ progressive,
4833
4855
  xBand,
4834
4856
  yLinear,
4835
4857
  label_label,
@@ -4857,6 +4879,7 @@ const column = [
4857
4879
  color_color,
4858
4880
  background_backgroundColor,
4859
4881
  datasetXY,
4882
+ progressive,
4860
4883
  xBand,
4861
4884
  yLinear,
4862
4885
  label_label,
@@ -4881,6 +4904,7 @@ const pivotColumn = [
4881
4904
  color_color,
4882
4905
  background_backgroundColor,
4883
4906
  datasetXY,
4907
+ progressive,
4884
4908
  xBand,
4885
4909
  yLinear,
4886
4910
  label_label,
@@ -4905,6 +4929,7 @@ const columnParallel = [
4905
4929
  color_color,
4906
4930
  background_backgroundColor,
4907
4931
  datasetXY,
4932
+ progressive,
4908
4933
  xBand,
4909
4934
  yLinear,
4910
4935
  label_label,
@@ -4928,6 +4953,7 @@ const pivotColumnParallel = [
4928
4953
  color_color,
4929
4954
  background_backgroundColor,
4930
4955
  datasetXY,
4956
+ progressive,
4931
4957
  xBand,
4932
4958
  yLinear,
4933
4959
  label_label,
@@ -4954,6 +4980,7 @@ const columnPercent = [
4954
4980
  background_backgroundColor,
4955
4981
  percent,
4956
4982
  datasetXY,
4983
+ progressive,
4957
4984
  xBand,
4958
4985
  yLinear,
4959
4986
  label_label,
@@ -4979,6 +5006,7 @@ const pivotColumnPercent = [
4979
5006
  percent,
4980
5007
  background_backgroundColor,
4981
5008
  datasetXY,
5009
+ progressive,
4982
5010
  xBand,
4983
5011
  yLinear,
4984
5012
  label_label,
@@ -5003,6 +5031,7 @@ const bar = [
5003
5031
  color_color,
5004
5032
  background_backgroundColor,
5005
5033
  datasetYX,
5034
+ progressive,
5006
5035
  xLinear,
5007
5036
  yBand,
5008
5037
  label_label,
@@ -5026,6 +5055,7 @@ const pivotBar = [
5026
5055
  color_color,
5027
5056
  background_backgroundColor,
5028
5057
  datasetYX,
5058
+ progressive,
5029
5059
  xLinear,
5030
5060
  yBand,
5031
5061
  label_label,
@@ -5051,6 +5081,7 @@ const barParallel = [
5051
5081
  color_color,
5052
5082
  background_backgroundColor,
5053
5083
  datasetYX,
5084
+ progressive,
5054
5085
  xLinear,
5055
5086
  yBand,
5056
5087
  label_label,
@@ -5099,6 +5130,7 @@ const barPercent = [
5099
5130
  background_backgroundColor,
5100
5131
  percent,
5101
5132
  datasetYX,
5133
+ progressive,
5102
5134
  xLinear,
5103
5135
  yBand,
5104
5136
  label_label,
@@ -5147,6 +5179,7 @@ const area_area = [
5147
5179
  color_color,
5148
5180
  background_backgroundColor,
5149
5181
  datasetXY,
5182
+ progressive,
5150
5183
  xBand,
5151
5184
  yLinear,
5152
5185
  label_label,
@@ -5173,6 +5206,7 @@ const pivotArea = [
5173
5206
  background_backgroundColor,
5174
5207
  stackInverse,
5175
5208
  datasetXY,
5209
+ progressive,
5176
5210
  xBand,
5177
5211
  yLinear,
5178
5212
  label_label,
@@ -5201,6 +5235,7 @@ const areaPercent = [
5201
5235
  background_backgroundColor,
5202
5236
  percent,
5203
5237
  datasetXY,
5238
+ progressive,
5204
5239
  xBand,
5205
5240
  yLinear,
5206
5241
  label_label,
@@ -5227,6 +5262,7 @@ const pivotAreaPercent = [
5227
5262
  background_backgroundColor,
5228
5263
  percent,
5229
5264
  datasetXY,
5265
+ progressive,
5230
5266
  xBand,
5231
5267
  yLinear,
5232
5268
  label_label,
@@ -5263,6 +5299,7 @@ const areaRange = [
5263
5299
  pointStateDimensionHover
5264
5300
  ]),
5265
5301
  datasetXY,
5302
+ progressive,
5266
5303
  background_backgroundColor,
5267
5304
  xBand,
5268
5305
  yLinear,
@@ -5295,6 +5332,7 @@ const pivotAreaRange = [
5295
5332
  ]),
5296
5333
  background_backgroundColor,
5297
5334
  datasetXY,
5335
+ progressive,
5298
5336
  xBand,
5299
5337
  yLinear,
5300
5338
  label_label,
@@ -5315,6 +5353,7 @@ const scatter = [
5315
5353
  color_color,
5316
5354
  background_backgroundColor,
5317
5355
  datasetXY,
5356
+ progressive,
5318
5357
  xLinear,
5319
5358
  yLinear,
5320
5359
  label_label,
@@ -5339,6 +5378,7 @@ const pivotScatter = [
5339
5378
  color_color,
5340
5379
  background_backgroundColor,
5341
5380
  datasetXY,
5381
+ progressive,
5342
5382
  xLinear,
5343
5383
  yLinear,
5344
5384
  label_label,
@@ -5364,6 +5404,7 @@ const pie = [
5364
5404
  color_color,
5365
5405
  background_backgroundColor,
5366
5406
  datasetXY,
5407
+ progressive,
5367
5408
  label_label,
5368
5409
  tooltip_tooltip,
5369
5410
  discreteLegend,
@@ -5382,6 +5423,7 @@ const pivotPie = [
5382
5423
  color_color,
5383
5424
  background_backgroundColor,
5384
5425
  datasetXY,
5426
+ progressive,
5385
5427
  label_label,
5386
5428
  tooltip_tooltip,
5387
5429
  annotationPoint_annotationPoint,
@@ -5401,6 +5443,7 @@ const donut = [
5401
5443
  color_color,
5402
5444
  background_backgroundColor,
5403
5445
  datasetXY,
5446
+ progressive,
5404
5447
  label_label,
5405
5448
  tooltip_tooltip,
5406
5449
  discreteLegend,
@@ -5419,6 +5462,7 @@ const pivotDonut = [
5419
5462
  color_color,
5420
5463
  background_backgroundColor,
5421
5464
  datasetXY,
5465
+ progressive,
5422
5466
  label_label,
5423
5467
  tooltip_tooltip,
5424
5468
  annotationPoint_annotationPoint,
@@ -5440,6 +5484,7 @@ const rose = [
5440
5484
  color_color,
5441
5485
  background_backgroundColor,
5442
5486
  datasetXY,
5487
+ progressive,
5443
5488
  radiusAxis,
5444
5489
  angleAxis,
5445
5490
  label_label,
@@ -5459,6 +5504,7 @@ const pivotRose = [
5459
5504
  color_color,
5460
5505
  background_backgroundColor,
5461
5506
  datasetXY,
5507
+ progressive,
5462
5508
  radiusAxis,
5463
5509
  angleAxis,
5464
5510
  label_label,
@@ -5478,6 +5524,7 @@ const roseParallel = [
5478
5524
  color_color,
5479
5525
  background_backgroundColor,
5480
5526
  datasetXY,
5527
+ progressive,
5481
5528
  radiusAxis,
5482
5529
  angleAxis,
5483
5530
  label_label,
@@ -5500,6 +5547,7 @@ const pivotRoseParallel = [
5500
5547
  color_color,
5501
5548
  background_backgroundColor,
5502
5549
  datasetXY,
5550
+ progressive,
5503
5551
  radiusAxis,
5504
5552
  angleAxis,
5505
5553
  label_label,
@@ -5522,6 +5570,7 @@ const radar = [
5522
5570
  color_color,
5523
5571
  background_backgroundColor,
5524
5572
  datasetXY,
5573
+ progressive,
5525
5574
  radarAngleAxis,
5526
5575
  radarRadiusAxis,
5527
5576
  label_label,
@@ -5543,6 +5592,7 @@ const pivotRadar = [
5543
5592
  color_color,
5544
5593
  background_backgroundColor,
5545
5594
  datasetXY,
5595
+ progressive,
5546
5596
  radarAngleAxis,
5547
5597
  radarRadiusAxis,
5548
5598
  label_label,
@@ -5865,16 +5915,14 @@ const bodyStyle = (spec, context)=>{
5865
5915
  };
5866
5916
  const { advancedVSeed } = context;
5867
5917
  const { customTheme, chartType } = advancedVSeed;
5868
- const themConfig = customTheme?.config?.[chartType];
5869
- if (!result.theme || !themConfig) return result;
5870
- const borderColor = themConfig.borderColor || 'rgb(224, 224, 224)';
5871
- const backgroundColor = themConfig.bodyBackgroundColor || '#fff';
5872
- const fontColor = themConfig.bodyFontColor || '#1B1F23';
5873
- const fontSize = themConfig.bodyFontSize || 12;
5874
- const hoverCellBgColor = themConfig.hoverBodyBackgroundColor || '#bedaff';
5875
- const hoverInlineColor = external_d3_color_color(hoverCellBgColor)?.copy({
5876
- opacity: 0.2
5877
- }).toString();
5918
+ const themeConfig = customTheme?.config?.[chartType];
5919
+ if (!result.theme || !themeConfig) return result;
5920
+ const borderColor = themeConfig.borderColor || 'rgb(224, 224, 224)';
5921
+ const backgroundColor = themeConfig.bodyBackgroundColor || '#fff';
5922
+ const fontColor = themeConfig.bodyFontColor || '#1B1F23';
5923
+ const fontSize = themeConfig.bodyFontSize || 12;
5924
+ const hoverCellBgColor = themeConfig.hoverBodyBackgroundColor || '#bedaff';
5925
+ const hoverInlineColor = themeConfig.hoverBodyInlineBackgroundColor || '#bedaff';
5878
5926
  result.theme.bodyStyle = {
5879
5927
  borderColor: borderColor,
5880
5928
  borderLineWidth: 1,
@@ -5913,7 +5961,7 @@ const headerStyle = (spec, context)=>{
5913
5961
  const fontColor = themConfig.headerFontColor || '#1B1F23';
5914
5962
  const fontSize = themConfig.headerFontSize || 12;
5915
5963
  const hoverCellBgColor = themConfig.hoverHeaderBackgroundColor || '#bedaff';
5916
- const hoverInlineColor = themConfig.hoverHeaderBackgroundColor;
5964
+ const hoverInlineColor = themConfig.hoverHeaderInlineBackgroundColor || '#bedaff';
5917
5965
  result.theme.headerStyle = {
5918
5966
  borderColor: borderColor,
5919
5967
  borderLineWidth: 1,
@@ -5925,9 +5973,7 @@ const headerStyle = (spec, context)=>{
5925
5973
  ],
5926
5974
  textAlign: 'center',
5927
5975
  hover: {
5928
- cellBgColor: external_d3_color_color(hoverCellBgColor)?.copy({
5929
- opacity: 1
5930
- }).brighter(0.5).toString(),
5976
+ cellBgColor: hoverCellBgColor,
5931
5977
  inlineRowBgColor: hoverInlineColor,
5932
5978
  inlineColumnBgColor: hoverInlineColor
5933
5979
  },
@@ -5963,7 +6009,7 @@ const rowHeaderStyle = (spec, context)=>{
5963
6009
  const fontColor = themConfig.headerFontColor || '#1B1F23';
5964
6010
  const fontSize = themConfig.headerFontSize || 12;
5965
6011
  const hoverCellBgColor = themConfig.hoverHeaderBackgroundColor || '#bedaff';
5966
- const hoverInlineColor = themConfig.hoverHeaderBackgroundColor;
6012
+ const hoverInlineColor = themConfig.hoverBodyInlineBackgroundColor || '#bedaff';
5967
6013
  result.theme.rowHeaderStyle = {
5968
6014
  borderColor: borderColor,
5969
6015
  borderLineWidth: 1,
@@ -5975,9 +6021,7 @@ const rowHeaderStyle = (spec, context)=>{
5975
6021
  ],
5976
6022
  textAlign: 'left',
5977
6023
  hover: {
5978
- cellBgColor: external_d3_color_color(hoverCellBgColor)?.copy({
5979
- opacity: 1
5980
- }).brighter(0.5).toString(),
6024
+ cellBgColor: hoverCellBgColor,
5981
6025
  inlineRowBgColor: hoverInlineColor,
5982
6026
  inlineColumnBgColor: hoverInlineColor
5983
6027
  },
@@ -6012,8 +6056,8 @@ const cornerHeaderStyle = (spec, context)=>{
6012
6056
  const backgroundColor = themConfig.headerBackgroundColor || '#EEF1F5';
6013
6057
  const fontColor = themConfig.headerFontColor || '#1B1F23';
6014
6058
  const fontSize = themConfig.headerFontSize || 12;
6015
- const hoverCellBgColor = themConfig.hoverHeaderBackgroundColor || '#bedaff';
6016
- const hoverInlineColor = themConfig.hoverHeaderBackgroundColor;
6059
+ const hoverInlineColor = themConfig.hoverHeaderInlineBackgroundColor;
6060
+ const hoverCellColor = themConfig.hoverHeaderBackgroundColor;
6017
6061
  result.theme.cornerHeaderStyle = {
6018
6062
  borderColor: [
6019
6063
  borderColor,
@@ -6028,9 +6072,7 @@ const cornerHeaderStyle = (spec, context)=>{
6028
6072
  ],
6029
6073
  textAlign: 'left',
6030
6074
  hover: {
6031
- cellBgColor: external_d3_color_color(hoverCellBgColor)?.copy({
6032
- opacity: 1
6033
- }).brighter(0.5).toString(),
6075
+ cellBgColor: hoverCellColor,
6034
6076
  inlineRowBgColor: hoverInlineColor,
6035
6077
  inlineColumnBgColor: hoverInlineColor
6036
6078
  },
@@ -6078,12 +6120,11 @@ const selectionStyle = (spec, context)=>{
6078
6120
  const themConfig = customTheme?.config?.[chartType];
6079
6121
  if (!result.theme || !themConfig) return result;
6080
6122
  const borderColor = themConfig.selectedBorderColor || 'rgb(224, 224, 224)';
6123
+ const backgroundColor = themConfig.selectedBackgroundColor || 'rgb(224, 224, 224, 0.5)';
6081
6124
  result.theme.selectionStyle = {
6082
6125
  cellBorderColor: borderColor,
6083
6126
  cellBorderLineWidth: 2,
6084
- cellBgColor: external_d3_color_color(borderColor)?.copy({
6085
- opacity: 0.15
6086
- }).toString()
6127
+ cellBgColor: backgroundColor
6087
6128
  };
6088
6129
  return result;
6089
6130
  };
@@ -6109,6 +6150,7 @@ const pivotTableSpecPipeline = [
6109
6150
  selectionStyle
6110
6151
  ];
6111
6152
  const buildAdvanced = (builder)=>{
6153
+ const start = 'undefined' != typeof performance ? performance.now() : Date.now();
6112
6154
  const { chartType } = builder.vseed;
6113
6155
  if (!chartType) throw new Error('chartType is nil in buildAdvanced');
6114
6156
  const pipeline = builder.getAdvancedPipeline(chartType);
@@ -6122,9 +6164,13 @@ const buildAdvanced = (builder)=>{
6122
6164
  } catch (e) {
6123
6165
  console.error(e);
6124
6166
  throw new Error("buildAdvanced error, see error info in console");
6167
+ } finally{
6168
+ const end = 'undefined' != typeof performance ? performance.now() : Date.now();
6169
+ builder.performance['buildAdvanced'] = `${(end - start).toFixed(4)}ms`;
6125
6170
  }
6126
6171
  };
6127
6172
  const buildSpec = (builder, advancedVSeed)=>{
6173
+ const start = 'undefined' != typeof performance ? performance.now() : Date.now();
6128
6174
  const { chartType } = builder.vseed;
6129
6175
  if (!chartType) throw new Error('chartType is nil in buildSpec');
6130
6176
  const pipeline = builder.getSpecPipeline(chartType);
@@ -6138,6 +6184,9 @@ const buildSpec = (builder, advancedVSeed)=>{
6138
6184
  } catch (e) {
6139
6185
  console.error(e);
6140
6186
  throw new Error("buildSpec error, see error info in console");
6187
+ } finally{
6188
+ const end = 'undefined' != typeof performance ? performance.now() : Date.now();
6189
+ builder.performance['buildSpec'] = `${(end - start).toFixed(4)}ms`;
6141
6190
  }
6142
6191
  };
6143
6192
  const build = (builder)=>{
@@ -6173,6 +6222,7 @@ class Builder {
6173
6222
  _vseed;
6174
6223
  _advancedVSeed = null;
6175
6224
  _spec = null;
6225
+ _performance = {};
6176
6226
  constructor(vseed){
6177
6227
  this._vseed = vseed;
6178
6228
  this._vseed.locale = vseed.locale || intl.getLocale();
@@ -6214,6 +6264,12 @@ class Builder {
6214
6264
  set spec(value) {
6215
6265
  this._spec = value;
6216
6266
  }
6267
+ get performance() {
6268
+ return this._performance;
6269
+ }
6270
+ set performance(value) {
6271
+ this._performance = value;
6272
+ }
6217
6273
  static _advancedPipelineMap = {};
6218
6274
  static _specPipelineMap = {};
6219
6275
  static _customAdvancedPipe = {};
@@ -6447,8 +6503,11 @@ const darkTheme = ()=>{
6447
6503
  headerFontColor: '#fdfdfd',
6448
6504
  headerBackgroundColor: '#36393e',
6449
6505
  hoverBodyBackgroundColor: '#4284ff66',
6450
- hoverHeaderBackgroundColor: '#5f5f5f88',
6451
- selectedBorderColor: '#3073F2'
6506
+ hoverBodyInlineBackgroundColor: '#4284ff10',
6507
+ hoverHeaderBackgroundColor: '#6f7984cc',
6508
+ hoverHeaderInlineBackgroundColor: '#4b4f54',
6509
+ selectedBorderColor: '#3073F2',
6510
+ selectedBackgroundColor: '#3073F210'
6452
6511
  };
6453
6512
  return {
6454
6513
  config: {
@@ -6753,8 +6812,11 @@ const lightTheme = ()=>{
6753
6812
  headerFontColor: '#21252c',
6754
6813
  headerBackgroundColor: '#f6f7f9',
6755
6814
  hoverBodyBackgroundColor: '#bedaff',
6756
- hoverHeaderBackgroundColor: '#D9DDE488',
6757
- selectedBorderColor: '#4080ff'
6815
+ hoverBodyInlineBackgroundColor: '#bedaff33',
6816
+ hoverHeaderBackgroundColor: '#D9DDE4',
6817
+ hoverHeaderInlineBackgroundColor: '#D9DDE455',
6818
+ selectedBorderColor: '#4080ffee',
6819
+ selectedBackgroundColor: '#4080ff10'
6758
6820
  };
6759
6821
  return {
6760
6822
  config: {
@@ -7288,11 +7350,14 @@ const zTableConfig = z.object({
7288
7350
  bodyFontColor: z.string().optional(),
7289
7351
  bodyBackgroundColor: z.string().optional(),
7290
7352
  hoverBodyBackgroundColor: z.string().optional(),
7353
+ hoverBodyInlineBackgroundColor: z.string().optional(),
7291
7354
  headerFontSize: z.number().optional(),
7292
7355
  headerFontColor: z.string().optional(),
7293
7356
  headerBackgroundColor: z.string().optional(),
7294
7357
  hoverHeaderBackgroundColor: z.string().optional(),
7295
- selectedBorderColor: z.string().optional()
7358
+ hoverHeaderInlineBackgroundColor: z.string().optional(),
7359
+ selectedBorderColor: z.string().optional(),
7360
+ selectedBackgroundColor: z.string().optional()
7296
7361
  });
7297
7362
  const zPivotTableConfig = zTableConfig;
7298
7363
  const zLineConfig = z.object({
@@ -7813,8 +7878,8 @@ const zLine = z.object({
7813
7878
  sortAxis: zSortAxis.optional(),
7814
7879
  sortLegend: zSortLegend.optional(),
7815
7880
  theme: zTheme.optional(),
7816
- pointStyle: zPointStyle.optional(),
7817
- lineStyle: zLineStyle.optional(),
7881
+ pointStyle: z.array(zPointStyle).or(zPointStyle).optional(),
7882
+ lineStyle: z.array(zLineStyle).or(zLineStyle).optional(),
7818
7883
  annotationPoint: z.array(zAnnotationPoint).or(zAnnotationPoint).optional(),
7819
7884
  annotationVerticalLine: z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).optional(),
7820
7885
  annotationHorizontalLine: z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).optional(),
@@ -7836,7 +7901,7 @@ const zColumn = z.object({
7836
7901
  crosshairRect: zCrosshairRect.optional(),
7837
7902
  stackCornerRadius: zStackCornerRadius.optional(),
7838
7903
  theme: zTheme.optional(),
7839
- barStyle: zBarStyle.optional(),
7904
+ barStyle: z.array(zBarStyle).or(zBarStyle).optional(),
7840
7905
  annotationPoint: z.array(zAnnotationPoint).or(zAnnotationPoint).optional(),
7841
7906
  annotationVerticalLine: z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).optional(),
7842
7907
  annotationHorizontalLine: z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).optional(),
@@ -7858,7 +7923,7 @@ const zColumnParallel = z.object({
7858
7923
  crosshairRect: zCrosshairRect.optional(),
7859
7924
  stackCornerRadius: zStackCornerRadius.optional(),
7860
7925
  theme: zTheme.optional(),
7861
- barStyle: zBarStyle.optional(),
7926
+ barStyle: z.array(zBarStyle).or(zBarStyle).optional(),
7862
7927
  annotationPoint: z.array(zAnnotationPoint).or(zAnnotationPoint).optional(),
7863
7928
  annotationVerticalLine: z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).optional(),
7864
7929
  annotationHorizontalLine: z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).optional(),
@@ -7880,7 +7945,7 @@ const zColumnPercent = z.object({
7880
7945
  crosshairRect: zCrosshairRect.optional(),
7881
7946
  stackCornerRadius: zStackCornerRadius.optional(),
7882
7947
  theme: zTheme.optional(),
7883
- barStyle: zBarStyle.optional(),
7948
+ barStyle: z.array(zBarStyle).or(zBarStyle).optional(),
7884
7949
  annotationPoint: z.array(zAnnotationPoint).or(zAnnotationPoint).optional(),
7885
7950
  annotationVerticalLine: z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).optional(),
7886
7951
  annotationHorizontalLine: z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).optional(),
@@ -7902,7 +7967,7 @@ const zBar = z.object({
7902
7967
  crosshairRect: zCrosshairRect.optional(),
7903
7968
  stackCornerRadius: zStackCornerRadius.optional(),
7904
7969
  theme: zTheme.optional(),
7905
- barStyle: zBarStyle.optional(),
7970
+ barStyle: z.array(zBarStyle).or(zBarStyle).optional(),
7906
7971
  annotationPoint: z.array(zAnnotationPoint).or(zAnnotationPoint).optional(),
7907
7972
  annotationVerticalLine: z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).optional(),
7908
7973
  annotationHorizontalLine: z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).optional(),
@@ -7924,7 +7989,7 @@ const zBarParallel = z.object({
7924
7989
  crosshairRect: zCrosshairRect.optional(),
7925
7990
  stackCornerRadius: zStackCornerRadius.optional(),
7926
7991
  theme: zTheme.optional(),
7927
- barStyle: zBarStyle.optional(),
7992
+ barStyle: z.array(zBarStyle).or(zBarStyle).optional(),
7928
7993
  annotationPoint: z.array(zAnnotationPoint).or(zAnnotationPoint).optional(),
7929
7994
  annotationVerticalLine: z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).optional(),
7930
7995
  annotationHorizontalLine: z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).optional(),
@@ -7946,7 +8011,7 @@ const zBarPercent = z.object({
7946
8011
  crosshairRect: zCrosshairRect.optional(),
7947
8012
  stackCornerRadius: zStackCornerRadius.optional(),
7948
8013
  theme: zTheme.optional(),
7949
- barStyle: zBarStyle.optional(),
8014
+ barStyle: z.array(zBarStyle).or(zBarStyle).optional(),
7950
8015
  annotationPoint: z.array(zAnnotationPoint).or(zAnnotationPoint).optional(),
7951
8016
  annotationVerticalLine: z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).optional(),
7952
8017
  annotationHorizontalLine: z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).optional(),
@@ -7967,9 +8032,9 @@ const zArea = z.object({
7967
8032
  yAxis: zYLinearAxis.optional(),
7968
8033
  crosshairLine: zCrosshairLine.optional(),
7969
8034
  theme: zTheme.optional(),
7970
- pointStyle: zPointStyle.optional(),
7971
- lineStyle: zLineStyle.optional(),
7972
- areaStyle: zAreaStyle.optional(),
8035
+ pointStyle: z.array(zPointStyle).or(zPointStyle).optional(),
8036
+ lineStyle: z.array(zLineStyle).or(zLineStyle).optional(),
8037
+ areaStyle: z.array(zAreaStyle).or(zAreaStyle).optional(),
7973
8038
  annotationPoint: z.array(zAnnotationPoint).or(zAnnotationPoint).optional(),
7974
8039
  annotationVerticalLine: z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).optional(),
7975
8040
  annotationHorizontalLine: z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).optional(),
@@ -7990,9 +8055,9 @@ const zAreaPercent = z.object({
7990
8055
  yAxis: zYLinearAxis.optional(),
7991
8056
  crosshairLine: zCrosshairLine.optional(),
7992
8057
  theme: zTheme.optional(),
7993
- pointStyle: zPointStyle.optional(),
7994
- lineStyle: zLineStyle.optional(),
7995
- areaStyle: zAreaStyle.optional(),
8058
+ pointStyle: z.array(zPointStyle).or(zPointStyle).optional(),
8059
+ lineStyle: z.array(zLineStyle).or(zLineStyle).optional(),
8060
+ areaStyle: z.array(zAreaStyle).or(zAreaStyle).optional(),
7996
8061
  annotationPoint: z.array(zAnnotationPoint).or(zAnnotationPoint).optional(),
7997
8062
  annotationVerticalLine: z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).optional(),
7998
8063
  annotationHorizontalLine: z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).optional(),
@@ -8010,9 +8075,9 @@ const zAreaRange = z.object({
8010
8075
  yAxis: zYLinearAxis.optional(),
8011
8076
  crosshairLine: zCrosshairLine.optional(),
8012
8077
  theme: zTheme.optional(),
8013
- pointStyle: zPointStyle.optional(),
8014
- lineStyle: zLineStyle.optional(),
8015
- areaStyle: zAreaStyle.optional(),
8078
+ pointStyle: z.array(zPointStyle).or(zPointStyle).optional(),
8079
+ lineStyle: z.array(zLineStyle).or(zLineStyle).optional(),
8080
+ areaStyle: z.array(zAreaStyle).or(zAreaStyle).optional(),
8016
8081
  annotationPoint: z.array(zAnnotationPoint).or(zAnnotationPoint).optional(),
8017
8082
  annotationVerticalLine: z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).optional(),
8018
8083
  annotationHorizontalLine: z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).optional(),
@@ -8033,7 +8098,7 @@ const zScatter = z.object({
8033
8098
  yAxis: zYLinearAxis.optional(),
8034
8099
  crosshairLine: zCrosshairLine.optional(),
8035
8100
  theme: zTheme.optional(),
8036
- pointStyle: zPointStyle.optional(),
8101
+ pointStyle: z.array(zPointStyle).or(zPointStyle).optional(),
8037
8102
  annotationPoint: z.array(zAnnotationPoint).or(zAnnotationPoint).optional(),
8038
8103
  annotationVerticalLine: z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).optional(),
8039
8104
  annotationHorizontalLine: z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).optional(),