@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/umd/index.js CHANGED
@@ -294,7 +294,7 @@
294
294
  defineLazy: ()=>defineLazy,
295
295
  esc: ()=>esc,
296
296
  escapeRegex: ()=>escapeRegex,
297
- extend: ()=>util_extend,
297
+ extend: ()=>extend,
298
298
  finalizeIssue: ()=>finalizeIssue,
299
299
  floatSafeRemainder: ()=>floatSafeRemainder,
300
300
  getElementAtPath: ()=>getElementAtPath,
@@ -3201,6 +3201,20 @@
3201
3201
  records: records
3202
3202
  };
3203
3203
  };
3204
+ const progressive = (spec, context)=>{
3205
+ const result = {
3206
+ ...spec
3207
+ };
3208
+ const { advancedVSeed } = context;
3209
+ const { dataset } = advancedVSeed;
3210
+ const size = dataset.length;
3211
+ if (size < 5000) return result;
3212
+ result.large = true;
3213
+ result.largeThreshold = 5000;
3214
+ result.progressiveStep = 400;
3215
+ result.progressiveThreshold = 8000;
3216
+ return result;
3217
+ };
3204
3218
  const initColumn = (spec, context)=>{
3205
3219
  const result = {
3206
3220
  ...spec
@@ -3424,7 +3438,7 @@
3424
3438
  const { advancedVSeed } = context;
3425
3439
  const { encoding, dataset } = advancedVSeed;
3426
3440
  if (!encoding[0].angle || !encoding[0].radius || !encoding[0].group) return result;
3427
- const showStroke = dataset.length > 20;
3441
+ const showStroke = dataset.length <= 30;
3428
3442
  result.type = 'pie';
3429
3443
  result.outerRadius = 0.8;
3430
3444
  result.innerRadius = 0;
@@ -3460,7 +3474,7 @@
3460
3474
  const { advancedVSeed } = context;
3461
3475
  const { encoding, dataset } = advancedVSeed;
3462
3476
  if (!encoding[0].angle || !encoding[0].radius || !encoding[0].group) return result;
3463
- const showStroke = dataset.length > 20;
3477
+ const showStroke = dataset.length <= 30;
3464
3478
  result.type = 'pie';
3465
3479
  result.outerRadius = 0.8;
3466
3480
  result.innerRadius = 0.8 * result.outerRadius;
@@ -4186,7 +4200,7 @@
4186
4200
  ...spec
4187
4201
  };
4188
4202
  const { advancedVSeed } = context;
4189
- const { measures, datasetReshapeInfo, chartType } = advancedVSeed;
4203
+ const { measures, datasetReshapeInfo, chartType, locale } = advancedVSeed;
4190
4204
  const baseConfig = advancedVSeed.config[chartType];
4191
4205
  const { tooltip = {
4192
4206
  enable: true
@@ -4215,7 +4229,7 @@
4215
4229
  const formatter = createFormatter(format);
4216
4230
  return formatter(value);
4217
4231
  }
4218
- if (autoFormat) return autoFormatter(value);
4232
+ if (autoFormat) return autoFormatter(value, locale);
4219
4233
  return String(value);
4220
4234
  }
4221
4235
  }
@@ -4237,7 +4251,7 @@
4237
4251
  const formatter = createFormatter(format);
4238
4252
  return formatter(value);
4239
4253
  }
4240
- if (autoFormat) return autoFormatter(value);
4254
+ if (autoFormat) return autoFormatter(value, locale);
4241
4255
  return String(value);
4242
4256
  }
4243
4257
  }
@@ -4928,14 +4942,15 @@
4928
4942
  ].includes(selector.op));
4929
4943
  const barStyle_barStyle = (spec, context)=>{
4930
4944
  const { advancedVSeed } = context;
4931
- const { markStyle } = advancedVSeed;
4945
+ const { markStyle, dataset } = advancedVSeed;
4932
4946
  const { barStyle } = markStyle;
4947
+ const showStroke = dataset.length <= 100;
4933
4948
  const result = {
4934
4949
  ...spec,
4935
4950
  bar: {
4936
4951
  style: {
4937
4952
  stroke: '#fff',
4938
- lineWidth: 1
4953
+ lineWidth: showStroke ? 1 : 0
4939
4954
  },
4940
4955
  state: {
4941
4956
  hover: {
@@ -4971,10 +4986,13 @@
4971
4986
  style: {
4972
4987
  fill: barColor,
4973
4988
  fillOpacity: barColorOpacity,
4974
- stroke: barBorderColor,
4975
- lineWidth: barBorderWidth,
4976
- lineDash: lineDash,
4977
- cornerRadius: barRadius
4989
+ cornerRadius: barRadius,
4990
+ innerBorder: {
4991
+ stroke: barBorderColor,
4992
+ lineWidth: barBorderWidth,
4993
+ distance: (barBorderWidth || 0) / 2,
4994
+ lineDash: lineDash
4995
+ }
4978
4996
  }
4979
4997
  }
4980
4998
  };
@@ -5023,9 +5041,12 @@
5023
5041
  size: pointSize,
5024
5042
  fill: pointColor,
5025
5043
  fillOpacity: pointColorOpacity,
5026
- stroke: pointBorderColor,
5027
- lineWidth: pointBorderWidth,
5028
- lineDash: lineDash
5044
+ innerBorder: {
5045
+ stroke: pointBorderColor,
5046
+ lineWidth: pointBorderWidth,
5047
+ distance: (pointBorderWidth || 0) / 2,
5048
+ lineDash: lineDash
5049
+ }
5029
5050
  }
5030
5051
  }
5031
5052
  };
@@ -5865,6 +5886,7 @@
5865
5886
  color_color,
5866
5887
  background_backgroundColor,
5867
5888
  datasetXY,
5889
+ progressive,
5868
5890
  xBand,
5869
5891
  yLinear,
5870
5892
  label_label,
@@ -5889,6 +5911,7 @@
5889
5911
  color_color,
5890
5912
  background_backgroundColor,
5891
5913
  datasetXY,
5914
+ progressive,
5892
5915
  xBand,
5893
5916
  yLinear,
5894
5917
  label_label,
@@ -5916,6 +5939,7 @@
5916
5939
  color_color,
5917
5940
  background_backgroundColor,
5918
5941
  datasetXY,
5942
+ progressive,
5919
5943
  xBand,
5920
5944
  yLinear,
5921
5945
  label_label,
@@ -5940,6 +5964,7 @@
5940
5964
  color_color,
5941
5965
  background_backgroundColor,
5942
5966
  datasetXY,
5967
+ progressive,
5943
5968
  xBand,
5944
5969
  yLinear,
5945
5970
  label_label,
@@ -5964,6 +5989,7 @@
5964
5989
  color_color,
5965
5990
  background_backgroundColor,
5966
5991
  datasetXY,
5992
+ progressive,
5967
5993
  xBand,
5968
5994
  yLinear,
5969
5995
  label_label,
@@ -5987,6 +6013,7 @@
5987
6013
  color_color,
5988
6014
  background_backgroundColor,
5989
6015
  datasetXY,
6016
+ progressive,
5990
6017
  xBand,
5991
6018
  yLinear,
5992
6019
  label_label,
@@ -6013,6 +6040,7 @@
6013
6040
  background_backgroundColor,
6014
6041
  percent,
6015
6042
  datasetXY,
6043
+ progressive,
6016
6044
  xBand,
6017
6045
  yLinear,
6018
6046
  label_label,
@@ -6038,6 +6066,7 @@
6038
6066
  percent,
6039
6067
  background_backgroundColor,
6040
6068
  datasetXY,
6069
+ progressive,
6041
6070
  xBand,
6042
6071
  yLinear,
6043
6072
  label_label,
@@ -6062,6 +6091,7 @@
6062
6091
  color_color,
6063
6092
  background_backgroundColor,
6064
6093
  datasetYX,
6094
+ progressive,
6065
6095
  xLinear,
6066
6096
  yBand,
6067
6097
  label_label,
@@ -6085,6 +6115,7 @@
6085
6115
  color_color,
6086
6116
  background_backgroundColor,
6087
6117
  datasetYX,
6118
+ progressive,
6088
6119
  xLinear,
6089
6120
  yBand,
6090
6121
  label_label,
@@ -6110,6 +6141,7 @@
6110
6141
  color_color,
6111
6142
  background_backgroundColor,
6112
6143
  datasetYX,
6144
+ progressive,
6113
6145
  xLinear,
6114
6146
  yBand,
6115
6147
  label_label,
@@ -6158,6 +6190,7 @@
6158
6190
  background_backgroundColor,
6159
6191
  percent,
6160
6192
  datasetYX,
6193
+ progressive,
6161
6194
  xLinear,
6162
6195
  yBand,
6163
6196
  label_label,
@@ -6206,6 +6239,7 @@
6206
6239
  color_color,
6207
6240
  background_backgroundColor,
6208
6241
  datasetXY,
6242
+ progressive,
6209
6243
  xBand,
6210
6244
  yLinear,
6211
6245
  label_label,
@@ -6232,6 +6266,7 @@
6232
6266
  background_backgroundColor,
6233
6267
  stackInverse,
6234
6268
  datasetXY,
6269
+ progressive,
6235
6270
  xBand,
6236
6271
  yLinear,
6237
6272
  label_label,
@@ -6260,6 +6295,7 @@
6260
6295
  background_backgroundColor,
6261
6296
  percent,
6262
6297
  datasetXY,
6298
+ progressive,
6263
6299
  xBand,
6264
6300
  yLinear,
6265
6301
  label_label,
@@ -6286,6 +6322,7 @@
6286
6322
  background_backgroundColor,
6287
6323
  percent,
6288
6324
  datasetXY,
6325
+ progressive,
6289
6326
  xBand,
6290
6327
  yLinear,
6291
6328
  label_label,
@@ -6322,6 +6359,7 @@
6322
6359
  pointStateDimensionHover
6323
6360
  ]),
6324
6361
  datasetXY,
6362
+ progressive,
6325
6363
  background_backgroundColor,
6326
6364
  xBand,
6327
6365
  yLinear,
@@ -6354,6 +6392,7 @@
6354
6392
  ]),
6355
6393
  background_backgroundColor,
6356
6394
  datasetXY,
6395
+ progressive,
6357
6396
  xBand,
6358
6397
  yLinear,
6359
6398
  label_label,
@@ -6374,6 +6413,7 @@
6374
6413
  color_color,
6375
6414
  background_backgroundColor,
6376
6415
  datasetXY,
6416
+ progressive,
6377
6417
  xLinear,
6378
6418
  yLinear,
6379
6419
  label_label,
@@ -6398,6 +6438,7 @@
6398
6438
  color_color,
6399
6439
  background_backgroundColor,
6400
6440
  datasetXY,
6441
+ progressive,
6401
6442
  xLinear,
6402
6443
  yLinear,
6403
6444
  label_label,
@@ -6423,6 +6464,7 @@
6423
6464
  color_color,
6424
6465
  background_backgroundColor,
6425
6466
  datasetXY,
6467
+ progressive,
6426
6468
  label_label,
6427
6469
  tooltip_tooltip,
6428
6470
  discreteLegend,
@@ -6441,6 +6483,7 @@
6441
6483
  color_color,
6442
6484
  background_backgroundColor,
6443
6485
  datasetXY,
6486
+ progressive,
6444
6487
  label_label,
6445
6488
  tooltip_tooltip,
6446
6489
  annotationPoint_annotationPoint,
@@ -6460,6 +6503,7 @@
6460
6503
  color_color,
6461
6504
  background_backgroundColor,
6462
6505
  datasetXY,
6506
+ progressive,
6463
6507
  label_label,
6464
6508
  tooltip_tooltip,
6465
6509
  discreteLegend,
@@ -6478,6 +6522,7 @@
6478
6522
  color_color,
6479
6523
  background_backgroundColor,
6480
6524
  datasetXY,
6525
+ progressive,
6481
6526
  label_label,
6482
6527
  tooltip_tooltip,
6483
6528
  annotationPoint_annotationPoint,
@@ -6499,6 +6544,7 @@
6499
6544
  color_color,
6500
6545
  background_backgroundColor,
6501
6546
  datasetXY,
6547
+ progressive,
6502
6548
  radiusAxis,
6503
6549
  angleAxis,
6504
6550
  label_label,
@@ -6518,6 +6564,7 @@
6518
6564
  color_color,
6519
6565
  background_backgroundColor,
6520
6566
  datasetXY,
6567
+ progressive,
6521
6568
  radiusAxis,
6522
6569
  angleAxis,
6523
6570
  label_label,
@@ -6537,6 +6584,7 @@
6537
6584
  color_color,
6538
6585
  background_backgroundColor,
6539
6586
  datasetXY,
6587
+ progressive,
6540
6588
  radiusAxis,
6541
6589
  angleAxis,
6542
6590
  label_label,
@@ -6559,6 +6607,7 @@
6559
6607
  color_color,
6560
6608
  background_backgroundColor,
6561
6609
  datasetXY,
6610
+ progressive,
6562
6611
  radiusAxis,
6563
6612
  angleAxis,
6564
6613
  label_label,
@@ -6581,6 +6630,7 @@
6581
6630
  color_color,
6582
6631
  background_backgroundColor,
6583
6632
  datasetXY,
6633
+ progressive,
6584
6634
  radarAngleAxis,
6585
6635
  radarRadiusAxis,
6586
6636
  label_label,
@@ -6602,6 +6652,7 @@
6602
6652
  color_color,
6603
6653
  background_backgroundColor,
6604
6654
  datasetXY,
6655
+ progressive,
6605
6656
  radarAngleAxis,
6606
6657
  radarRadiusAxis,
6607
6658
  label_label,
@@ -6918,345 +6969,20 @@
6918
6969
  }))
6919
6970
  };
6920
6971
  };
6921
- function src_define(constructor, factory, prototype) {
6922
- constructor.prototype = factory.prototype = prototype;
6923
- prototype.constructor = constructor;
6924
- }
6925
- function extend(parent, definition) {
6926
- var prototype = Object.create(parent.prototype);
6927
- for(var key in definition)prototype[key] = definition[key];
6928
- return prototype;
6929
- }
6930
- function Color() {}
6931
- var darker = 0.7;
6932
- var brighter = 1 / darker;
6933
- var reI = "\\s*([+-]?\\d+)\\s*", reN = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", reP = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", reHex = /^#([0-9a-f]{3,8})$/, reRgbInteger = new RegExp(`^rgb\\(${reI},${reI},${reI}\\)$`), reRgbPercent = new RegExp(`^rgb\\(${reP},${reP},${reP}\\)$`), reRgbaInteger = new RegExp(`^rgba\\(${reI},${reI},${reI},${reN}\\)$`), reRgbaPercent = new RegExp(`^rgba\\(${reP},${reP},${reP},${reN}\\)$`), reHslPercent = new RegExp(`^hsl\\(${reN},${reP},${reP}\\)$`), reHslaPercent = new RegExp(`^hsla\\(${reN},${reP},${reP},${reN}\\)$`);
6934
- var named = {
6935
- aliceblue: 0xf0f8ff,
6936
- antiquewhite: 0xfaebd7,
6937
- aqua: 0x00ffff,
6938
- aquamarine: 0x7fffd4,
6939
- azure: 0xf0ffff,
6940
- beige: 0xf5f5dc,
6941
- bisque: 0xffe4c4,
6942
- black: 0x000000,
6943
- blanchedalmond: 0xffebcd,
6944
- blue: 0x0000ff,
6945
- blueviolet: 0x8a2be2,
6946
- brown: 0xa52a2a,
6947
- burlywood: 0xdeb887,
6948
- cadetblue: 0x5f9ea0,
6949
- chartreuse: 0x7fff00,
6950
- chocolate: 0xd2691e,
6951
- coral: 0xff7f50,
6952
- cornflowerblue: 0x6495ed,
6953
- cornsilk: 0xfff8dc,
6954
- crimson: 0xdc143c,
6955
- cyan: 0x00ffff,
6956
- darkblue: 0x00008b,
6957
- darkcyan: 0x008b8b,
6958
- darkgoldenrod: 0xb8860b,
6959
- darkgray: 0xa9a9a9,
6960
- darkgreen: 0x006400,
6961
- darkgrey: 0xa9a9a9,
6962
- darkkhaki: 0xbdb76b,
6963
- darkmagenta: 0x8b008b,
6964
- darkolivegreen: 0x556b2f,
6965
- darkorange: 0xff8c00,
6966
- darkorchid: 0x9932cc,
6967
- darkred: 0x8b0000,
6968
- darksalmon: 0xe9967a,
6969
- darkseagreen: 0x8fbc8f,
6970
- darkslateblue: 0x483d8b,
6971
- darkslategray: 0x2f4f4f,
6972
- darkslategrey: 0x2f4f4f,
6973
- darkturquoise: 0x00ced1,
6974
- darkviolet: 0x9400d3,
6975
- deeppink: 0xff1493,
6976
- deepskyblue: 0x00bfff,
6977
- dimgray: 0x696969,
6978
- dimgrey: 0x696969,
6979
- dodgerblue: 0x1e90ff,
6980
- firebrick: 0xb22222,
6981
- floralwhite: 0xfffaf0,
6982
- forestgreen: 0x228b22,
6983
- fuchsia: 0xff00ff,
6984
- gainsboro: 0xdcdcdc,
6985
- ghostwhite: 0xf8f8ff,
6986
- gold: 0xffd700,
6987
- goldenrod: 0xdaa520,
6988
- gray: 0x808080,
6989
- green: 0x008000,
6990
- greenyellow: 0xadff2f,
6991
- grey: 0x808080,
6992
- honeydew: 0xf0fff0,
6993
- hotpink: 0xff69b4,
6994
- indianred: 0xcd5c5c,
6995
- indigo: 0x4b0082,
6996
- ivory: 0xfffff0,
6997
- khaki: 0xf0e68c,
6998
- lavender: 0xe6e6fa,
6999
- lavenderblush: 0xfff0f5,
7000
- lawngreen: 0x7cfc00,
7001
- lemonchiffon: 0xfffacd,
7002
- lightblue: 0xadd8e6,
7003
- lightcoral: 0xf08080,
7004
- lightcyan: 0xe0ffff,
7005
- lightgoldenrodyellow: 0xfafad2,
7006
- lightgray: 0xd3d3d3,
7007
- lightgreen: 0x90ee90,
7008
- lightgrey: 0xd3d3d3,
7009
- lightpink: 0xffb6c1,
7010
- lightsalmon: 0xffa07a,
7011
- lightseagreen: 0x20b2aa,
7012
- lightskyblue: 0x87cefa,
7013
- lightslategray: 0x778899,
7014
- lightslategrey: 0x778899,
7015
- lightsteelblue: 0xb0c4de,
7016
- lightyellow: 0xffffe0,
7017
- lime: 0x00ff00,
7018
- limegreen: 0x32cd32,
7019
- linen: 0xfaf0e6,
7020
- magenta: 0xff00ff,
7021
- maroon: 0x800000,
7022
- mediumaquamarine: 0x66cdaa,
7023
- mediumblue: 0x0000cd,
7024
- mediumorchid: 0xba55d3,
7025
- mediumpurple: 0x9370db,
7026
- mediumseagreen: 0x3cb371,
7027
- mediumslateblue: 0x7b68ee,
7028
- mediumspringgreen: 0x00fa9a,
7029
- mediumturquoise: 0x48d1cc,
7030
- mediumvioletred: 0xc71585,
7031
- midnightblue: 0x191970,
7032
- mintcream: 0xf5fffa,
7033
- mistyrose: 0xffe4e1,
7034
- moccasin: 0xffe4b5,
7035
- navajowhite: 0xffdead,
7036
- navy: 0x000080,
7037
- oldlace: 0xfdf5e6,
7038
- olive: 0x808000,
7039
- olivedrab: 0x6b8e23,
7040
- orange: 0xffa500,
7041
- orangered: 0xff4500,
7042
- orchid: 0xda70d6,
7043
- palegoldenrod: 0xeee8aa,
7044
- palegreen: 0x98fb98,
7045
- paleturquoise: 0xafeeee,
7046
- palevioletred: 0xdb7093,
7047
- papayawhip: 0xffefd5,
7048
- peachpuff: 0xffdab9,
7049
- peru: 0xcd853f,
7050
- pink: 0xffc0cb,
7051
- plum: 0xdda0dd,
7052
- powderblue: 0xb0e0e6,
7053
- purple: 0x800080,
7054
- rebeccapurple: 0x663399,
7055
- red: 0xff0000,
7056
- rosybrown: 0xbc8f8f,
7057
- royalblue: 0x4169e1,
7058
- saddlebrown: 0x8b4513,
7059
- salmon: 0xfa8072,
7060
- sandybrown: 0xf4a460,
7061
- seagreen: 0x2e8b57,
7062
- seashell: 0xfff5ee,
7063
- sienna: 0xa0522d,
7064
- silver: 0xc0c0c0,
7065
- skyblue: 0x87ceeb,
7066
- slateblue: 0x6a5acd,
7067
- slategray: 0x708090,
7068
- slategrey: 0x708090,
7069
- snow: 0xfffafa,
7070
- springgreen: 0x00ff7f,
7071
- steelblue: 0x4682b4,
7072
- tan: 0xd2b48c,
7073
- teal: 0x008080,
7074
- thistle: 0xd8bfd8,
7075
- tomato: 0xff6347,
7076
- turquoise: 0x40e0d0,
7077
- violet: 0xee82ee,
7078
- wheat: 0xf5deb3,
7079
- white: 0xffffff,
7080
- whitesmoke: 0xf5f5f5,
7081
- yellow: 0xffff00,
7082
- yellowgreen: 0x9acd32
7083
- };
7084
- src_define(Color, src_color_color, {
7085
- copy (channels) {
7086
- return Object.assign(new this.constructor, this, channels);
7087
- },
7088
- displayable () {
7089
- return this.rgb().displayable();
7090
- },
7091
- hex: color_formatHex,
7092
- formatHex: color_formatHex,
7093
- formatHex8: color_formatHex8,
7094
- formatHsl: color_formatHsl,
7095
- formatRgb: color_formatRgb,
7096
- toString: color_formatRgb
7097
- });
7098
- function color_formatHex() {
7099
- return this.rgb().formatHex();
7100
- }
7101
- function color_formatHex8() {
7102
- return this.rgb().formatHex8();
7103
- }
7104
- function color_formatHsl() {
7105
- return hslConvert(this).formatHsl();
7106
- }
7107
- function color_formatRgb() {
7108
- return this.rgb().formatRgb();
7109
- }
7110
- function src_color_color(format) {
7111
- var m, l;
7112
- format = (format + "").trim().toLowerCase();
7113
- return (m = reHex.exec(format)) ? (l = m[1].length, m = parseInt(m[1], 16), 6 === l ? rgbn(m) : 3 === l ? new Rgb(m >> 8 & 0xf | m >> 4 & 0xf0, m >> 4 & 0xf | 0xf0 & m, (0xf & m) << 4 | 0xf & m, 1) : 8 === l ? rgba(m >> 24 & 0xff, m >> 16 & 0xff, m >> 8 & 0xff, (0xff & m) / 0xff) : 4 === l ? rgba(m >> 12 & 0xf | m >> 8 & 0xf0, m >> 8 & 0xf | m >> 4 & 0xf0, m >> 4 & 0xf | 0xf0 & m, ((0xf & m) << 4 | 0xf & m) / 0xff) : null) : (m = reRgbInteger.exec(format)) ? new Rgb(m[1], m[2], m[3], 1) : (m = reRgbPercent.exec(format)) ? new Rgb(255 * m[1] / 100, 255 * m[2] / 100, 255 * m[3] / 100, 1) : (m = reRgbaInteger.exec(format)) ? rgba(m[1], m[2], m[3], m[4]) : (m = reRgbaPercent.exec(format)) ? rgba(255 * m[1] / 100, 255 * m[2] / 100, 255 * m[3] / 100, m[4]) : (m = reHslPercent.exec(format)) ? hsla(m[1], m[2] / 100, m[3] / 100, 1) : (m = reHslaPercent.exec(format)) ? hsla(m[1], m[2] / 100, m[3] / 100, m[4]) : named.hasOwnProperty(format) ? rgbn(named[format]) : "transparent" === format ? new Rgb(NaN, NaN, NaN, 0) : null;
7114
- }
7115
- function rgbn(n) {
7116
- return new Rgb(n >> 16 & 0xff, n >> 8 & 0xff, 0xff & n, 1);
7117
- }
7118
- function rgba(r, g, b, a) {
7119
- if (a <= 0) r = g = b = NaN;
7120
- return new Rgb(r, g, b, a);
7121
- }
7122
- function rgbConvert(o) {
7123
- if (!(o instanceof Color)) o = src_color_color(o);
7124
- if (!o) return new Rgb;
7125
- o = o.rgb();
7126
- return new Rgb(o.r, o.g, o.b, o.opacity);
7127
- }
7128
- function rgb(r, g, b, opacity) {
7129
- return 1 === arguments.length ? rgbConvert(r) : new Rgb(r, g, b, null == opacity ? 1 : opacity);
7130
- }
7131
- function Rgb(r, g, b, opacity) {
7132
- this.r = +r;
7133
- this.g = +g;
7134
- this.b = +b;
7135
- this.opacity = +opacity;
7136
- }
7137
- src_define(Rgb, rgb, extend(Color, {
7138
- brighter (k) {
7139
- k = null == k ? brighter : Math.pow(brighter, k);
7140
- return new Rgb(this.r * k, this.g * k, this.b * k, this.opacity);
7141
- },
7142
- darker (k) {
7143
- k = null == k ? darker : Math.pow(darker, k);
7144
- return new Rgb(this.r * k, this.g * k, this.b * k, this.opacity);
7145
- },
7146
- rgb () {
7147
- return this;
7148
- },
7149
- clamp () {
7150
- return new Rgb(clampi(this.r), clampi(this.g), clampi(this.b), clampa(this.opacity));
7151
- },
7152
- displayable () {
7153
- return -0.5 <= this.r && this.r < 255.5 && -0.5 <= this.g && this.g < 255.5 && -0.5 <= this.b && this.b < 255.5 && 0 <= this.opacity && this.opacity <= 1;
7154
- },
7155
- hex: rgb_formatHex,
7156
- formatHex: rgb_formatHex,
7157
- formatHex8: rgb_formatHex8,
7158
- formatRgb: rgb_formatRgb,
7159
- toString: rgb_formatRgb
7160
- }));
7161
- function rgb_formatHex() {
7162
- return `#${hex(this.r)}${hex(this.g)}${hex(this.b)}`;
7163
- }
7164
- function rgb_formatHex8() {
7165
- return `#${hex(this.r)}${hex(this.g)}${hex(this.b)}${hex((isNaN(this.opacity) ? 1 : this.opacity) * 255)}`;
7166
- }
7167
- function rgb_formatRgb() {
7168
- const a = clampa(this.opacity);
7169
- return `${1 === a ? "rgb(" : "rgba("}${clampi(this.r)}, ${clampi(this.g)}, ${clampi(this.b)}${1 === a ? ")" : `, ${a})`}`;
7170
- }
7171
- function clampa(opacity) {
7172
- return isNaN(opacity) ? 1 : Math.max(0, Math.min(1, opacity));
7173
- }
7174
- function clampi(value) {
7175
- return Math.max(0, Math.min(255, Math.round(value) || 0));
7176
- }
7177
- function hex(value) {
7178
- value = clampi(value);
7179
- return (value < 16 ? "0" : "") + value.toString(16);
7180
- }
7181
- function hsla(h, s, l, a) {
7182
- if (a <= 0) h = s = l = NaN;
7183
- else if (l <= 0 || l >= 1) h = s = NaN;
7184
- else if (s <= 0) h = NaN;
7185
- return new Hsl(h, s, l, a);
7186
- }
7187
- function hslConvert(o) {
7188
- if (o instanceof Hsl) return new Hsl(o.h, o.s, o.l, o.opacity);
7189
- if (!(o instanceof Color)) o = src_color_color(o);
7190
- if (!o) return new Hsl;
7191
- if (o instanceof Hsl) return o;
7192
- o = o.rgb();
7193
- var r = o.r / 255, g = o.g / 255, b = o.b / 255, min = Math.min(r, g, b), max = Math.max(r, g, b), h = NaN, s = max - min, l = (max + min) / 2;
7194
- if (s) {
7195
- h = r === max ? (g - b) / s + (g < b) * 6 : g === max ? (b - r) / s + 2 : (r - g) / s + 4;
7196
- s /= l < 0.5 ? max + min : 2 - max - min;
7197
- h *= 60;
7198
- } else s = l > 0 && l < 1 ? 0 : h;
7199
- return new Hsl(h, s, l, o.opacity);
7200
- }
7201
- function hsl(h, s, l, opacity) {
7202
- return 1 === arguments.length ? hslConvert(h) : new Hsl(h, s, l, null == opacity ? 1 : opacity);
7203
- }
7204
- function Hsl(h, s, l, opacity) {
7205
- this.h = +h;
7206
- this.s = +s;
7207
- this.l = +l;
7208
- this.opacity = +opacity;
7209
- }
7210
- src_define(Hsl, hsl, extend(Color, {
7211
- brighter (k) {
7212
- k = null == k ? brighter : Math.pow(brighter, k);
7213
- return new Hsl(this.h, this.s, this.l * k, this.opacity);
7214
- },
7215
- darker (k) {
7216
- k = null == k ? darker : Math.pow(darker, k);
7217
- return new Hsl(this.h, this.s, this.l * k, this.opacity);
7218
- },
7219
- rgb () {
7220
- var h = this.h % 360 + (this.h < 0) * 360, s = isNaN(h) || isNaN(this.s) ? 0 : this.s, l = this.l, m2 = l + (l < 0.5 ? l : 1 - l) * s, m1 = 2 * l - m2;
7221
- return new Rgb(hsl2rgb(h >= 240 ? h - 240 : h + 120, m1, m2), hsl2rgb(h, m1, m2), hsl2rgb(h < 120 ? h + 240 : h - 120, m1, m2), this.opacity);
7222
- },
7223
- clamp () {
7224
- return new Hsl(clamph(this.h), clampt(this.s), clampt(this.l), clampa(this.opacity));
7225
- },
7226
- displayable () {
7227
- return (0 <= this.s && this.s <= 1 || isNaN(this.s)) && 0 <= this.l && this.l <= 1 && 0 <= this.opacity && this.opacity <= 1;
7228
- },
7229
- formatHsl () {
7230
- const a = clampa(this.opacity);
7231
- return `${1 === a ? "hsl(" : "hsla("}${clamph(this.h)}, ${100 * clampt(this.s)}%, ${100 * clampt(this.l)}%${1 === a ? ")" : `, ${a})`}`;
7232
- }
7233
- }));
7234
- function clamph(value) {
7235
- value = (value || 0) % 360;
7236
- return value < 0 ? value + 360 : value;
7237
- }
7238
- function clampt(value) {
7239
- return Math.max(0, Math.min(1, value || 0));
7240
- }
7241
- function hsl2rgb(h, m1, m2) {
7242
- return (h < 60 ? m1 + (m2 - m1) * h / 60 : h < 180 ? m2 : h < 240 ? m1 + (m2 - m1) * (240 - h) / 60 : m1) * 255;
7243
- }
7244
6972
  const bodyStyle = (spec, context)=>{
7245
6973
  const result = {
7246
6974
  ...spec
7247
6975
  };
7248
6976
  const { advancedVSeed } = context;
7249
6977
  const { customTheme, chartType } = advancedVSeed;
7250
- const themConfig = customTheme?.config?.[chartType];
7251
- if (!result.theme || !themConfig) return result;
7252
- const borderColor = themConfig.borderColor || 'rgb(224, 224, 224)';
7253
- const backgroundColor = themConfig.bodyBackgroundColor || '#fff';
7254
- const fontColor = themConfig.bodyFontColor || '#1B1F23';
7255
- const fontSize = themConfig.bodyFontSize || 12;
7256
- const hoverCellBgColor = themConfig.hoverBodyBackgroundColor || '#bedaff';
7257
- const hoverInlineColor = src_color_color(hoverCellBgColor)?.copy({
7258
- opacity: 0.2
7259
- }).toString();
6978
+ const themeConfig = customTheme?.config?.[chartType];
6979
+ if (!result.theme || !themeConfig) return result;
6980
+ const borderColor = themeConfig.borderColor || 'rgb(224, 224, 224)';
6981
+ const backgroundColor = themeConfig.bodyBackgroundColor || '#fff';
6982
+ const fontColor = themeConfig.bodyFontColor || '#1B1F23';
6983
+ const fontSize = themeConfig.bodyFontSize || 12;
6984
+ const hoverCellBgColor = themeConfig.hoverBodyBackgroundColor || '#bedaff';
6985
+ const hoverInlineColor = themeConfig.hoverBodyInlineBackgroundColor || '#bedaff';
7260
6986
  result.theme.bodyStyle = {
7261
6987
  borderColor: borderColor,
7262
6988
  borderLineWidth: 1,
@@ -7295,7 +7021,7 @@
7295
7021
  const fontColor = themConfig.headerFontColor || '#1B1F23';
7296
7022
  const fontSize = themConfig.headerFontSize || 12;
7297
7023
  const hoverCellBgColor = themConfig.hoverHeaderBackgroundColor || '#bedaff';
7298
- const hoverInlineColor = themConfig.hoverHeaderBackgroundColor;
7024
+ const hoverInlineColor = themConfig.hoverHeaderInlineBackgroundColor || '#bedaff';
7299
7025
  result.theme.headerStyle = {
7300
7026
  borderColor: borderColor,
7301
7027
  borderLineWidth: 1,
@@ -7307,9 +7033,7 @@
7307
7033
  ],
7308
7034
  textAlign: 'center',
7309
7035
  hover: {
7310
- cellBgColor: src_color_color(hoverCellBgColor)?.copy({
7311
- opacity: 1
7312
- }).brighter(0.5).toString(),
7036
+ cellBgColor: hoverCellBgColor,
7313
7037
  inlineRowBgColor: hoverInlineColor,
7314
7038
  inlineColumnBgColor: hoverInlineColor
7315
7039
  },
@@ -7345,7 +7069,7 @@
7345
7069
  const fontColor = themConfig.headerFontColor || '#1B1F23';
7346
7070
  const fontSize = themConfig.headerFontSize || 12;
7347
7071
  const hoverCellBgColor = themConfig.hoverHeaderBackgroundColor || '#bedaff';
7348
- const hoverInlineColor = themConfig.hoverHeaderBackgroundColor;
7072
+ const hoverInlineColor = themConfig.hoverBodyInlineBackgroundColor || '#bedaff';
7349
7073
  result.theme.rowHeaderStyle = {
7350
7074
  borderColor: borderColor,
7351
7075
  borderLineWidth: 1,
@@ -7357,9 +7081,7 @@
7357
7081
  ],
7358
7082
  textAlign: 'left',
7359
7083
  hover: {
7360
- cellBgColor: src_color_color(hoverCellBgColor)?.copy({
7361
- opacity: 1
7362
- }).brighter(0.5).toString(),
7084
+ cellBgColor: hoverCellBgColor,
7363
7085
  inlineRowBgColor: hoverInlineColor,
7364
7086
  inlineColumnBgColor: hoverInlineColor
7365
7087
  },
@@ -7394,8 +7116,8 @@
7394
7116
  const backgroundColor = themConfig.headerBackgroundColor || '#EEF1F5';
7395
7117
  const fontColor = themConfig.headerFontColor || '#1B1F23';
7396
7118
  const fontSize = themConfig.headerFontSize || 12;
7397
- const hoverCellBgColor = themConfig.hoverHeaderBackgroundColor || '#bedaff';
7398
- const hoverInlineColor = themConfig.hoverHeaderBackgroundColor;
7119
+ const hoverInlineColor = themConfig.hoverHeaderInlineBackgroundColor;
7120
+ const hoverCellColor = themConfig.hoverHeaderBackgroundColor;
7399
7121
  result.theme.cornerHeaderStyle = {
7400
7122
  borderColor: [
7401
7123
  borderColor,
@@ -7410,9 +7132,7 @@
7410
7132
  ],
7411
7133
  textAlign: 'left',
7412
7134
  hover: {
7413
- cellBgColor: src_color_color(hoverCellBgColor)?.copy({
7414
- opacity: 1
7415
- }).brighter(0.5).toString(),
7135
+ cellBgColor: hoverCellColor,
7416
7136
  inlineRowBgColor: hoverInlineColor,
7417
7137
  inlineColumnBgColor: hoverInlineColor
7418
7138
  },
@@ -7460,12 +7180,11 @@
7460
7180
  const themConfig = customTheme?.config?.[chartType];
7461
7181
  if (!result.theme || !themConfig) return result;
7462
7182
  const borderColor = themConfig.selectedBorderColor || 'rgb(224, 224, 224)';
7183
+ const backgroundColor = themConfig.selectedBackgroundColor || 'rgb(224, 224, 224, 0.5)';
7463
7184
  result.theme.selectionStyle = {
7464
7185
  cellBorderColor: borderColor,
7465
7186
  cellBorderLineWidth: 2,
7466
- cellBgColor: src_color_color(borderColor)?.copy({
7467
- opacity: 0.15
7468
- }).toString()
7187
+ cellBgColor: backgroundColor
7469
7188
  };
7470
7189
  return result;
7471
7190
  };
@@ -7491,6 +7210,7 @@
7491
7210
  selectionStyle
7492
7211
  ];
7493
7212
  const buildAdvanced = (builder)=>{
7213
+ const start = 'undefined' != typeof performance ? performance.now() : Date.now();
7494
7214
  const { chartType } = builder.vseed;
7495
7215
  if (!chartType) throw new Error('chartType is nil in buildAdvanced');
7496
7216
  const pipeline = builder.getAdvancedPipeline(chartType);
@@ -7504,9 +7224,13 @@
7504
7224
  } catch (e) {
7505
7225
  console.error(e);
7506
7226
  throw new Error("buildAdvanced error, see error info in console");
7227
+ } finally{
7228
+ const end = 'undefined' != typeof performance ? performance.now() : Date.now();
7229
+ builder.performance['buildAdvanced'] = `${(end - start).toFixed(4)}ms`;
7507
7230
  }
7508
7231
  };
7509
7232
  const buildSpec = (builder, advancedVSeed)=>{
7233
+ const start = 'undefined' != typeof performance ? performance.now() : Date.now();
7510
7234
  const { chartType } = builder.vseed;
7511
7235
  if (!chartType) throw new Error('chartType is nil in buildSpec');
7512
7236
  const pipeline = builder.getSpecPipeline(chartType);
@@ -7520,6 +7244,9 @@
7520
7244
  } catch (e) {
7521
7245
  console.error(e);
7522
7246
  throw new Error("buildSpec error, see error info in console");
7247
+ } finally{
7248
+ const end = 'undefined' != typeof performance ? performance.now() : Date.now();
7249
+ builder.performance['buildSpec'] = `${(end - start).toFixed(4)}ms`;
7523
7250
  }
7524
7251
  };
7525
7252
  const build = (builder)=>{
@@ -7555,6 +7282,7 @@
7555
7282
  _vseed;
7556
7283
  _advancedVSeed = null;
7557
7284
  _spec = null;
7285
+ _performance = {};
7558
7286
  constructor(vseed){
7559
7287
  this._vseed = vseed;
7560
7288
  this._vseed.locale = vseed.locale || intl.getLocale();
@@ -7596,6 +7324,12 @@
7596
7324
  set spec(value) {
7597
7325
  this._spec = value;
7598
7326
  }
7327
+ get performance() {
7328
+ return this._performance;
7329
+ }
7330
+ set performance(value) {
7331
+ this._performance = value;
7332
+ }
7599
7333
  static _advancedPipelineMap = {};
7600
7334
  static _specPipelineMap = {};
7601
7335
  static _customAdvancedPipe = {};
@@ -7830,8 +7564,11 @@
7830
7564
  headerFontColor: '#21252c',
7831
7565
  headerBackgroundColor: '#f6f7f9',
7832
7566
  hoverBodyBackgroundColor: '#bedaff',
7833
- hoverHeaderBackgroundColor: '#D9DDE488',
7834
- selectedBorderColor: '#4080ff'
7567
+ hoverBodyInlineBackgroundColor: '#bedaff33',
7568
+ hoverHeaderBackgroundColor: '#D9DDE4',
7569
+ hoverHeaderInlineBackgroundColor: '#D9DDE455',
7570
+ selectedBorderColor: '#4080ffee',
7571
+ selectedBackgroundColor: '#4080ff10'
7835
7572
  };
7836
7573
  return {
7837
7574
  config: {
@@ -8149,8 +7886,11 @@
8149
7886
  headerFontColor: '#fdfdfd',
8150
7887
  headerBackgroundColor: '#36393e',
8151
7888
  hoverBodyBackgroundColor: '#4284ff66',
8152
- hoverHeaderBackgroundColor: '#5f5f5f88',
8153
- selectedBorderColor: '#3073F2'
7889
+ hoverBodyInlineBackgroundColor: '#4284ff10',
7890
+ hoverHeaderBackgroundColor: '#6f7984cc',
7891
+ hoverHeaderInlineBackgroundColor: '#4b4f54',
7892
+ selectedBorderColor: '#3073F2',
7893
+ selectedBackgroundColor: '#3073F210'
8154
7894
  };
8155
7895
  return {
8156
7896
  config: {
@@ -8801,7 +8541,7 @@
8801
8541
  });
8802
8542
  return clone(schema, def);
8803
8543
  }
8804
- function util_extend(schema, shape) {
8544
+ function extend(schema, shape) {
8805
8545
  if (!isPlainObject(shape)) throw new Error("Invalid input to extend: expected a plain object");
8806
8546
  const def = mergeDefs(schema._zod.def, {
8807
8547
  get shape () {
@@ -12685,7 +12425,7 @@
12685
12425
  ...inst._zod.def,
12686
12426
  catchall: void 0
12687
12427
  });
12688
- inst.extend = (incoming)=>util_extend(inst, incoming);
12428
+ inst.extend = (incoming)=>extend(inst, incoming);
12689
12429
  inst.merge = (other)=>merge(inst, other);
12690
12430
  inst.pick = (mask)=>pick(inst, mask);
12691
12431
  inst.omit = (mask)=>omit(inst, mask);
@@ -13475,11 +13215,14 @@
13475
13215
  bodyFontColor: schemas_string().optional(),
13476
13216
  bodyBackgroundColor: schemas_string().optional(),
13477
13217
  hoverBodyBackgroundColor: schemas_string().optional(),
13218
+ hoverBodyInlineBackgroundColor: schemas_string().optional(),
13478
13219
  headerFontSize: schemas_number().optional(),
13479
13220
  headerFontColor: schemas_string().optional(),
13480
13221
  headerBackgroundColor: schemas_string().optional(),
13481
13222
  hoverHeaderBackgroundColor: schemas_string().optional(),
13482
- selectedBorderColor: schemas_string().optional()
13223
+ hoverHeaderInlineBackgroundColor: schemas_string().optional(),
13224
+ selectedBorderColor: schemas_string().optional(),
13225
+ selectedBackgroundColor: schemas_string().optional()
13483
13226
  });
13484
13227
  const zPivotTableConfig = zTableConfig;
13485
13228
  const zLineConfig = schemas_object({
@@ -19709,8 +19452,8 @@
19709
19452
  sortAxis: zSortAxis.optional(),
19710
19453
  sortLegend: zSortLegend.optional(),
19711
19454
  theme: zTheme.optional(),
19712
- pointStyle: zPointStyle.optional(),
19713
- lineStyle: zLineStyle.optional(),
19455
+ pointStyle: schemas_array(zPointStyle).or(zPointStyle).optional(),
19456
+ lineStyle: schemas_array(zLineStyle).or(zLineStyle).optional(),
19714
19457
  annotationPoint: schemas_array(zAnnotationPoint).or(zAnnotationPoint).optional(),
19715
19458
  annotationVerticalLine: schemas_array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).optional(),
19716
19459
  annotationHorizontalLine: schemas_array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).optional(),
@@ -19732,7 +19475,7 @@
19732
19475
  crosshairRect: zCrosshairRect.optional(),
19733
19476
  stackCornerRadius: zStackCornerRadius.optional(),
19734
19477
  theme: zTheme.optional(),
19735
- barStyle: zBarStyle.optional(),
19478
+ barStyle: schemas_array(zBarStyle).or(zBarStyle).optional(),
19736
19479
  annotationPoint: schemas_array(zAnnotationPoint).or(zAnnotationPoint).optional(),
19737
19480
  annotationVerticalLine: schemas_array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).optional(),
19738
19481
  annotationHorizontalLine: schemas_array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).optional(),
@@ -19754,7 +19497,7 @@
19754
19497
  crosshairRect: zCrosshairRect.optional(),
19755
19498
  stackCornerRadius: zStackCornerRadius.optional(),
19756
19499
  theme: zTheme.optional(),
19757
- barStyle: zBarStyle.optional(),
19500
+ barStyle: schemas_array(zBarStyle).or(zBarStyle).optional(),
19758
19501
  annotationPoint: schemas_array(zAnnotationPoint).or(zAnnotationPoint).optional(),
19759
19502
  annotationVerticalLine: schemas_array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).optional(),
19760
19503
  annotationHorizontalLine: schemas_array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).optional(),
@@ -19776,7 +19519,7 @@
19776
19519
  crosshairRect: zCrosshairRect.optional(),
19777
19520
  stackCornerRadius: zStackCornerRadius.optional(),
19778
19521
  theme: zTheme.optional(),
19779
- barStyle: zBarStyle.optional(),
19522
+ barStyle: schemas_array(zBarStyle).or(zBarStyle).optional(),
19780
19523
  annotationPoint: schemas_array(zAnnotationPoint).or(zAnnotationPoint).optional(),
19781
19524
  annotationVerticalLine: schemas_array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).optional(),
19782
19525
  annotationHorizontalLine: schemas_array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).optional(),
@@ -19798,7 +19541,7 @@
19798
19541
  crosshairRect: zCrosshairRect.optional(),
19799
19542
  stackCornerRadius: zStackCornerRadius.optional(),
19800
19543
  theme: zTheme.optional(),
19801
- barStyle: zBarStyle.optional(),
19544
+ barStyle: schemas_array(zBarStyle).or(zBarStyle).optional(),
19802
19545
  annotationPoint: schemas_array(zAnnotationPoint).or(zAnnotationPoint).optional(),
19803
19546
  annotationVerticalLine: schemas_array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).optional(),
19804
19547
  annotationHorizontalLine: schemas_array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).optional(),
@@ -19820,7 +19563,7 @@
19820
19563
  crosshairRect: zCrosshairRect.optional(),
19821
19564
  stackCornerRadius: zStackCornerRadius.optional(),
19822
19565
  theme: zTheme.optional(),
19823
- barStyle: zBarStyle.optional(),
19566
+ barStyle: schemas_array(zBarStyle).or(zBarStyle).optional(),
19824
19567
  annotationPoint: schemas_array(zAnnotationPoint).or(zAnnotationPoint).optional(),
19825
19568
  annotationVerticalLine: schemas_array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).optional(),
19826
19569
  annotationHorizontalLine: schemas_array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).optional(),
@@ -19842,7 +19585,7 @@
19842
19585
  crosshairRect: zCrosshairRect.optional(),
19843
19586
  stackCornerRadius: zStackCornerRadius.optional(),
19844
19587
  theme: zTheme.optional(),
19845
- barStyle: zBarStyle.optional(),
19588
+ barStyle: schemas_array(zBarStyle).or(zBarStyle).optional(),
19846
19589
  annotationPoint: schemas_array(zAnnotationPoint).or(zAnnotationPoint).optional(),
19847
19590
  annotationVerticalLine: schemas_array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).optional(),
19848
19591
  annotationHorizontalLine: schemas_array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).optional(),
@@ -19863,9 +19606,9 @@
19863
19606
  yAxis: zYLinearAxis.optional(),
19864
19607
  crosshairLine: zCrosshairLine.optional(),
19865
19608
  theme: zTheme.optional(),
19866
- pointStyle: zPointStyle.optional(),
19867
- lineStyle: zLineStyle.optional(),
19868
- areaStyle: zAreaStyle.optional(),
19609
+ pointStyle: schemas_array(zPointStyle).or(zPointStyle).optional(),
19610
+ lineStyle: schemas_array(zLineStyle).or(zLineStyle).optional(),
19611
+ areaStyle: schemas_array(zAreaStyle).or(zAreaStyle).optional(),
19869
19612
  annotationPoint: schemas_array(zAnnotationPoint).or(zAnnotationPoint).optional(),
19870
19613
  annotationVerticalLine: schemas_array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).optional(),
19871
19614
  annotationHorizontalLine: schemas_array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).optional(),
@@ -19886,9 +19629,9 @@
19886
19629
  yAxis: zYLinearAxis.optional(),
19887
19630
  crosshairLine: zCrosshairLine.optional(),
19888
19631
  theme: zTheme.optional(),
19889
- pointStyle: zPointStyle.optional(),
19890
- lineStyle: zLineStyle.optional(),
19891
- areaStyle: zAreaStyle.optional(),
19632
+ pointStyle: schemas_array(zPointStyle).or(zPointStyle).optional(),
19633
+ lineStyle: schemas_array(zLineStyle).or(zLineStyle).optional(),
19634
+ areaStyle: schemas_array(zAreaStyle).or(zAreaStyle).optional(),
19892
19635
  annotationPoint: schemas_array(zAnnotationPoint).or(zAnnotationPoint).optional(),
19893
19636
  annotationVerticalLine: schemas_array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).optional(),
19894
19637
  annotationHorizontalLine: schemas_array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).optional(),
@@ -19906,9 +19649,9 @@
19906
19649
  yAxis: zYLinearAxis.optional(),
19907
19650
  crosshairLine: zCrosshairLine.optional(),
19908
19651
  theme: zTheme.optional(),
19909
- pointStyle: zPointStyle.optional(),
19910
- lineStyle: zLineStyle.optional(),
19911
- areaStyle: zAreaStyle.optional(),
19652
+ pointStyle: schemas_array(zPointStyle).or(zPointStyle).optional(),
19653
+ lineStyle: schemas_array(zLineStyle).or(zLineStyle).optional(),
19654
+ areaStyle: schemas_array(zAreaStyle).or(zAreaStyle).optional(),
19912
19655
  annotationPoint: schemas_array(zAnnotationPoint).or(zAnnotationPoint).optional(),
19913
19656
  annotationVerticalLine: schemas_array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).optional(),
19914
19657
  annotationHorizontalLine: schemas_array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).optional(),
@@ -19929,7 +19672,7 @@
19929
19672
  yAxis: zYLinearAxis.optional(),
19930
19673
  crosshairLine: zCrosshairLine.optional(),
19931
19674
  theme: zTheme.optional(),
19932
- pointStyle: zPointStyle.optional(),
19675
+ pointStyle: schemas_array(zPointStyle).or(zPointStyle).optional(),
19933
19676
  annotationPoint: schemas_array(zAnnotationPoint).or(zAnnotationPoint).optional(),
19934
19677
  annotationVerticalLine: schemas_array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).optional(),
19935
19678
  annotationHorizontalLine: schemas_array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).optional(),