@visactor/vseed 0.0.31 → 0.0.33

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
@@ -489,7 +489,7 @@
489
489
  const { measures, dataset } = vseed;
490
490
  if (!dataset) throw new Error('dataset is required');
491
491
  if (0 === dataset.length) return result;
492
- if (measures && measures.length > 0) {
492
+ if (measures) {
493
493
  result.measures = measures;
494
494
  return result;
495
495
  }
@@ -569,7 +569,7 @@
569
569
  const measures = findAllMeasures(advancedVSeed.measures);
570
570
  if (!dataset) throw new Error('dataset is required');
571
571
  if (0 === dataset.length) return result;
572
- if (dimensions && dimensions.length > 0) {
572
+ if (dimensions) {
573
573
  result.dimensions = dimensions;
574
574
  return result;
575
575
  }
@@ -924,7 +924,7 @@
924
924
  const measures = findAllMeasures(vseed.measures);
925
925
  if (!dataset) throw new Error('dataset is required');
926
926
  if (0 === dataset.length) return result;
927
- if (measures && measures.length > 0) {
927
+ if (measures) {
928
928
  result.measures = findAllMeasures(measures);
929
929
  return result;
930
930
  }
@@ -987,7 +987,7 @@
987
987
  const measures = findAllMeasures(advancedVSeed.measures);
988
988
  if (!dataset) throw new Error('dataset is required');
989
989
  if (0 === dataset.length) return result;
990
- if (dimensions && dimensions.length > 0) {
990
+ if (dimensions) {
991
991
  const newDimensions = findAllDimensions(dimensions);
992
992
  result.dimensions = newDimensions.map((item, index)=>{
993
993
  if ('rowDimension' === item.location || 'columnDimension' === item.location) return item;
@@ -1599,7 +1599,7 @@
1599
1599
  };
1600
1600
  const { datasetReshapeInfo, dimensions } = advancedVSeed;
1601
1601
  if (!datasetReshapeInfo || !dimensions) return result;
1602
- const xDimension = dimensions.find((item)=>'rowDimension' !== item.location && 'columnDimension' !== item.location);
1602
+ const xDimension = dimensions.find((item)=>'rowDimension' !== item.location && 'columnDimension' !== item.location) || dimensions[0];
1603
1603
  const isZeroDimension = 0 === dimensions.length;
1604
1604
  const encoding = datasetReshapeInfo.reduce((prev, cur)=>{
1605
1605
  const { foldInfo, unfoldInfo } = cur;
@@ -2370,7 +2370,7 @@
2370
2370
  const baseConfig = advancedVSeed.config[chartType];
2371
2371
  if (!baseConfig || !baseConfig.legend) return result;
2372
2372
  const { legend } = baseConfig;
2373
- const { enable, position = 'bottom', labelFontColor, labelFontSize = 12, labelFontWeight, maxSize, border, shapeType = 'rectRound' } = legend || {};
2373
+ const { enable, position = 'bottom', labelFontColor, labelFontSize = 12, labelFontWeight, maxSize = 1, border, shapeType = 'rectRound' } = legend || {};
2374
2374
  const orient = [
2375
2375
  'bottom',
2376
2376
  'bottomLeft',
@@ -2412,8 +2412,8 @@
2412
2412
  result.legends = {
2413
2413
  type: 'discrete',
2414
2414
  visible: enable,
2415
- maxCol: maxSize,
2416
- maxRow: maxSize,
2415
+ maxCol: Math.max(1, maxSize),
2416
+ maxRow: Math.max(1, maxSize),
2417
2417
  autoPage: true,
2418
2418
  orient,
2419
2419
  position: legendPosition,
@@ -2427,7 +2427,7 @@
2427
2427
  }) : void 0,
2428
2428
  item: {
2429
2429
  focus: true,
2430
- maxWidth: 260,
2430
+ maxWidth: '30%',
2431
2431
  focusIconStyle: {
2432
2432
  size: labelFontSize + 2,
2433
2433
  fill: labelFontColor,
@@ -2735,7 +2735,7 @@
2735
2735
  annotationPoint
2736
2736
  ];
2737
2737
  const markPoint = annotationPointList.flatMap((annotationPoint)=>{
2738
- const { selector: selectorPoint, text = '', textColor = '#cccccc', textFontSize = 12, textFontWeight = 400, textAlign = 'center', textBaseline = 'middle', backgroundBorderColor, backgroundBorderRadius = 4, backgroundBorderWidth = 1, backgroundColor = '#212121', backgroundPadding = 2, backgroundVisible = true, offsetX = 0, offsetY = 0 } = annotationPoint;
2738
+ const { selector: selectorPoint, text = '', textColor = '#ffffff', textFontSize = 12, textFontWeight = 400, textAlign = 'center', textBaseline = 'top', backgroundBorderColor, backgroundBorderRadius = 4, backgroundBorderWidth = 1, backgroundColor = '#212121', backgroundPadding = 2, backgroundVisible = true, offsetX = 0, offsetY = 0 } = annotationPoint;
2739
2739
  const dataset = advancedVSeed.dataset.flat();
2740
2740
  const selectedData = selectorPoint ? dataset.filter((datum)=>selector_selector(datum, selectorPoint)) : [];
2741
2741
  return selectedData.map((datum)=>({
@@ -2767,7 +2767,8 @@
2767
2767
  stroke: backgroundColor,
2768
2768
  lineWidth: 1,
2769
2769
  fontSize: textFontSize,
2770
- fontWeight: textFontWeight
2770
+ fontWeight: textFontWeight,
2771
+ dy: textFontSize
2771
2772
  },
2772
2773
  labelBackground: {
2773
2774
  visible: backgroundVisible,
@@ -2776,7 +2777,8 @@
2776
2777
  cornerRadius: backgroundBorderRadius ?? 4,
2777
2778
  fill: backgroundColor,
2778
2779
  stroke: backgroundBorderColor,
2779
- lineWidth: backgroundBorderWidth
2780
+ lineWidth: backgroundBorderWidth,
2781
+ dy: textFontSize
2780
2782
  }
2781
2783
  }
2782
2784
  }
@@ -2811,7 +2813,7 @@
2811
2813
  insideEnd: 'insideEndTop'
2812
2814
  };
2813
2815
  const markLine = annotationVerticalLineList.flatMap((annotationVerticalLine)=>{
2814
- const { selector: selectorPoint, xValue, text = '', textPosition = 'insideEnd', textColor = '#cccccc', textFontSize = 12, textFontWeight = 400, textAlign = 'right', textBaseline = 'top', backgroundBorderColor, backgroundBorderRadius = 4, backgroundBorderWidth = 1, backgroundColor = '#212121', backgroundPadding = 2, backgroundVisible = true, lineColor = '#212121', lineStyle = 'dashed', lineVisible = true, lineWidth = 1, offsetX = 0, offsetY = 0 } = annotationVerticalLine;
2816
+ const { selector: selectorPoint, xValue, text = '', textPosition = 'insideEnd', textColor = '#ffffff', textFontSize = 12, textFontWeight = 400, textAlign = 'right', textBaseline = 'top', backgroundVisible = true, backgroundBorderColor = '#212121', backgroundColor = '#212121', backgroundBorderRadius = 4, backgroundBorderWidth = 1, backgroundPadding = 2, lineVisible = true, lineColor = '#212121', lineWidth = 1, lineStyle = 'dashed', offsetX = 0, offsetY = 0 } = annotationVerticalLine;
2815
2817
  const dataset = advancedVSeed.dataset.flat();
2816
2818
  const generateOneMarkLine = (x)=>({
2817
2819
  x: x,
@@ -2853,6 +2855,7 @@
2853
2855
  visible: backgroundVisible,
2854
2856
  padding: backgroundPadding,
2855
2857
  style: {
2858
+ dy: textFontSize,
2856
2859
  cornerRadius: backgroundBorderRadius ?? 4,
2857
2860
  fill: backgroundColor,
2858
2861
  stroke: backgroundBorderColor,
@@ -2862,6 +2865,7 @@
2862
2865
  },
2863
2866
  endSymbol: {
2864
2867
  visible: true,
2868
+ size: 10 + lineWidth,
2865
2869
  style: {
2866
2870
  dy: 4,
2867
2871
  fill: lineColor
@@ -2908,7 +2912,7 @@
2908
2912
  insideEnd: 'insideEndTop'
2909
2913
  };
2910
2914
  const markLine = annotationVerticalLineList.flatMap((annotationVerticalLine)=>{
2911
- const { selector: selectorPoint, yValue, text = '', textPosition = 'insideEnd', textColor = '#ffffff', textFontSize = 12, textFontWeight = 400, textAlign = 'center', textBaseline = 'bottom', backgroundBorderColor, backgroundBorderRadius = 4, backgroundBorderWidth = 1, backgroundColor = '#212121', backgroundPadding = 2, backgroundVisible = true, lineColor = '#212121', lineStyle = 'dashed', lineVisible = true, lineWidth = 1, offsetX = 0, offsetY = 0 } = annotationVerticalLine;
2915
+ const { selector: selectorPoint, yValue, text = '', textPosition = 'insideEnd', textColor = '#ffffff', textFontSize = 12, textFontWeight = 400, textAlign = 'right', textBaseline = 'top', lineColor = '#212121', lineStyle = 'dashed', lineVisible = true, lineWidth = 1, backgroundVisible = true, backgroundColor = '#212121', backgroundBorderColor = '#212121', backgroundBorderRadius = 4, backgroundBorderWidth = 1, backgroundPadding = 2, offsetX = 0, offsetY = 0 } = annotationVerticalLine;
2912
2916
  const dataset = advancedVSeed.dataset.flat();
2913
2917
  const generateOneMarkLine = (y)=>({
2914
2918
  y,
@@ -2950,6 +2954,7 @@
2950
2954
  visible: backgroundVisible,
2951
2955
  padding: backgroundPadding,
2952
2956
  style: {
2957
+ dy: textFontSize,
2953
2958
  cornerRadius: backgroundBorderRadius ?? 4,
2954
2959
  fill: backgroundColor,
2955
2960
  stroke: backgroundBorderColor,
@@ -2959,6 +2964,7 @@
2959
2964
  },
2960
2965
  endSymbol: {
2961
2966
  visible: true,
2967
+ size: 10 + lineWidth,
2962
2968
  style: {
2963
2969
  dx: -4,
2964
2970
  fill: lineColor
@@ -3007,7 +3013,7 @@
3007
3013
  right: 'insideRight'
3008
3014
  };
3009
3015
  const markArea = annotationAreaList.flatMap((annotationArea)=>{
3010
- const { selector: selectorPoint, text = '', textPosition = 'top', textColor = '#ffffff', textFontSize = 12, textFontWeight = 400, textAlign = 'center', textBaseline = 'top', backgroundBorderColor, backgroundBorderRadius = 4, backgroundBorderWidth = 1, backgroundColor = '#191d24', backgroundPadding = 10, backgroundVisible = true, outerPadding = 4, areaColor = '#888888', areaColorOpacity = 0.15, areaBorderColor, areaBorderRadius, areaBorderWidth, offsetX = 0, offsetY = 0 } = annotationArea;
3016
+ const { selector: selectorPoint, text = '', textPosition = 'top', textColor = '#ffffff', textFontSize = 12, textFontWeight = 400, textAlign = 'center', textBaseline = 'top', backgroundVisible = true, backgroundColor = '#191d24', backgroundBorderColor = '#191d24', backgroundBorderWidth = 1, backgroundBorderRadius = 4, backgroundPadding = 4, areaColor = '#888888', areaColorOpacity = 0.15, areaBorderColor = '#888888', areaBorderRadius = 4, areaBorderWidth = 1, outerPadding = 4, offsetX = 0, offsetY = 0 } = annotationArea;
3011
3017
  const dataset = advancedVSeed.dataset.flat();
3012
3018
  const selectedData = selectorPoint ? dataset.filter((datum)=>selector_selector(datum, selectorPoint)) : [];
3013
3019
  return {
@@ -3077,6 +3083,7 @@
3077
3083
  visible: true,
3078
3084
  text: text,
3079
3085
  style: {
3086
+ dy: textFontSize,
3080
3087
  textAlign: textAlign,
3081
3088
  textBaseline: textBaseline,
3082
3089
  fill: textColor,
@@ -3089,6 +3096,7 @@
3089
3096
  visible: backgroundVisible,
3090
3097
  padding: backgroundPadding,
3091
3098
  style: {
3099
+ dy: textFontSize,
3092
3100
  cornerRadius: backgroundBorderRadius ?? 4,
3093
3101
  fill: backgroundColor,
3094
3102
  stroke: backgroundBorderColor,
@@ -3382,7 +3390,7 @@
3382
3390
  }), {});
3383
3391
  const { legend, color } = baseConfig;
3384
3392
  const { colorScheme } = color;
3385
- const { enable, position = 'bottom', labelFontColor, labelFontSize = 12, labelFontWeight = 400, maxSize, border, shapeType = 'rectRound' } = legend || {};
3393
+ const { enable, position = 'bottom', labelFontColor, labelFontSize = 12, labelFontWeight = 400, maxSize = 1, border, shapeType = 'rectRound' } = legend || {};
3386
3394
  const orient = [
3387
3395
  'bottom',
3388
3396
  'bottomLeft',
@@ -3426,8 +3434,8 @@
3426
3434
  type: 'discrete',
3427
3435
  orient,
3428
3436
  position: legendPosition,
3429
- maxCol: maxSize,
3430
- maxRow: maxSize,
3437
+ maxCol: Math.max(1, maxSize),
3438
+ maxRow: Math.max(1, maxSize),
3431
3439
  data: colorItems.map((d, index)=>({
3432
3440
  label: d,
3433
3441
  shape: {
@@ -3441,7 +3449,7 @@
3441
3449
  })),
3442
3450
  item: {
3443
3451
  focus: true,
3444
- maxWidth: 260,
3452
+ maxWidth: '30%',
3445
3453
  focusIconStyle: {
3446
3454
  size: labelFontSize + 2,
3447
3455
  fill: labelFontColor,
@@ -3844,7 +3852,7 @@
3844
3852
  right: 'insideRight'
3845
3853
  };
3846
3854
  const markArea = annotationAreaList.flatMap((annotationArea)=>{
3847
- const { selector: selectorPoint, text = '', textPosition = 'top', textColor = '#ffffff', textFontSize = 12, textFontWeight = 400, textAlign = 'center', textBaseline = 'top', backgroundBorderColor, backgroundBorderRadius = 4, backgroundBorderWidth = 1, backgroundColor = '#191d24', backgroundPadding = 4, backgroundVisible = true, outerPadding = 8, areaColor = '#888888', areaColorOpacity = 0.15, areaBorderColor, areaBorderRadius, areaBorderWidth, offsetX, offsetY } = annotationArea;
3855
+ const { selector: selectorPoint, text = '', textPosition = 'top', textColor = '#ffffff', textFontSize = 12, textFontWeight = 400, textAlign = 'center', textBaseline = 'top', backgroundVisible = true, backgroundColor = '#191d24', backgroundBorderColor = '#191d24', backgroundBorderWidth = 1, backgroundBorderRadius = 4, backgroundPadding = 4, areaColor = '#888888', areaColorOpacity = 0.15, areaBorderColor = '#888888', areaBorderRadius = 4, areaBorderWidth = 1, outerPadding = 4, offsetX = 0, offsetY = 0 } = annotationArea;
3848
3856
  const dataset = advancedVSeed.dataset.flat();
3849
3857
  const selectedData = selectorPoint ? dataset.filter((datum)=>selector_selector(datum, selectorPoint)) : [];
3850
3858
  return {
@@ -3918,6 +3926,7 @@
3918
3926
  visible: true,
3919
3927
  text: text,
3920
3928
  style: {
3929
+ dy: textFontSize,
3921
3930
  textAlign: textAlign,
3922
3931
  textBaseline: textBaseline,
3923
3932
  stroke: backgroundColor,
@@ -3930,6 +3939,7 @@
3930
3939
  visible: backgroundVisible,
3931
3940
  padding: backgroundPadding,
3932
3941
  style: {
3942
+ dy: textFontSize,
3933
3943
  cornerRadius: backgroundBorderRadius ?? 4,
3934
3944
  fill: backgroundColor,
3935
3945
  stroke: backgroundBorderColor,
@@ -4191,7 +4201,7 @@
4191
4201
  };
4192
4202
  const { datasetReshapeInfo, dimensions } = advancedVSeed;
4193
4203
  if (!datasetReshapeInfo || !dimensions) return result;
4194
- const yDimension = dimensions.find((item)=>'rowDimension' !== item.location && 'columnDimension' !== item.location);
4204
+ const yDimension = dimensions.find((item)=>'rowDimension' !== item.location && 'columnDimension' !== item.location) || dimensions[0];
4195
4205
  const isZeroDimension = 0 === dimensions.length;
4196
4206
  const encoding = datasetReshapeInfo.reduce((prev, cur)=>{
4197
4207
  const { foldInfo, unfoldInfo } = cur;
@@ -5111,8 +5121,8 @@
5111
5121
  const result = {
5112
5122
  ...advancedVSeed
5113
5123
  };
5114
- const { datasetReshapeInfo, dimensions, measures } = advancedVSeed;
5115
- if (!datasetReshapeInfo || !dimensions || !measures) return result;
5124
+ const { datasetReshapeInfo, measures } = advancedVSeed;
5125
+ if (!datasetReshapeInfo || !measures) return result;
5116
5126
  const encoding = datasetReshapeInfo.reduce((prev, cur, index)=>{
5117
5127
  const measure = measures[index];
5118
5128
  if ('children' in measure) {
@@ -5847,8 +5857,8 @@
5847
5857
  const result = {
5848
5858
  ...advancedVSeed
5849
5859
  };
5850
- const { datasetReshapeInfo, dimensions } = advancedVSeed;
5851
- if (!datasetReshapeInfo || !dimensions) return result;
5860
+ const { datasetReshapeInfo } = advancedVSeed;
5861
+ if (!datasetReshapeInfo) return result;
5852
5862
  const encoding = datasetReshapeInfo.reduce((prev, cur)=>{
5853
5863
  const { foldInfo, unfoldInfo } = cur;
5854
5864
  const radius = [
@@ -6067,7 +6077,7 @@
6067
6077
  };
6068
6078
  const { datasetReshapeInfo, dimensions, measures } = advancedVSeed;
6069
6079
  if (!datasetReshapeInfo || !dimensions || !measures) return result;
6070
- const angleDimension = dimensions.find((item)=>'rowDimension' !== item.location && 'columnDimension' !== item.location);
6080
+ const angleDimension = dimensions.find((item)=>'rowDimension' !== item.location && 'columnDimension' !== item.location) || dimensions[0];
6071
6081
  const is1D1M = 1 === dimensions.length && 1 === measures.length;
6072
6082
  const isZeroDimension = 0 === dimensions.length;
6073
6083
  const encoding = datasetReshapeInfo.reduce((prev, cur)=>{
@@ -6381,7 +6391,7 @@
6381
6391
  };
6382
6392
  const { datasetReshapeInfo, dimensions, measures } = advancedVSeed;
6383
6393
  if (!datasetReshapeInfo || !dimensions || !measures) return result;
6384
- const angleDimension = dimensions.find((item)=>'rowDimension' !== item.location && 'columnDimension' !== item.location);
6394
+ const angleDimension = dimensions.find((item)=>'rowDimension' !== item.location && 'columnDimension' !== item.location) || dimensions[0];
6385
6395
  const isZeroDimension = 0 === dimensions.length;
6386
6396
  const encoding = datasetReshapeInfo.reduce((prev, cur)=>{
6387
6397
  const { foldInfo, unfoldInfo } = cur;
@@ -6554,8 +6564,8 @@
6554
6564
  const result = {
6555
6565
  ...advancedVSeed
6556
6566
  };
6557
- const { datasetReshapeInfo, dimensions } = advancedVSeed;
6558
- if (!datasetReshapeInfo || !dimensions) return result;
6567
+ const { datasetReshapeInfo } = advancedVSeed;
6568
+ if (!datasetReshapeInfo) return result;
6559
6569
  const encoding = datasetReshapeInfo.reduce((prev, cur)=>{
6560
6570
  const { foldInfo, unfoldInfo } = cur;
6561
6571
  const size = [
@@ -6767,7 +6777,7 @@
6767
6777
  };
6768
6778
  const { datasetReshapeInfo, dimensions } = advancedVSeed;
6769
6779
  if (!datasetReshapeInfo || !dimensions) return result;
6770
- const xDimension = dimensions.find((item)=>'rowDimension' !== item.location && 'columnDimension' !== item.location);
6780
+ const xDimension = dimensions.find((item)=>'rowDimension' !== item.location && 'columnDimension' !== item.location) || dimensions[0];
6771
6781
  const isZeroDimension = 0 === dimensions.length;
6772
6782
  const encoding = datasetReshapeInfo.reduce((prev, cur)=>{
6773
6783
  const { foldInfo, unfoldInfo } = cur;
@@ -11547,20 +11557,20 @@
11547
11557
  'middle',
11548
11558
  'bottom'
11549
11559
  ]).default('top').optional(),
11550
- lineVisible: schemas_boolean().optional(),
11551
- lineColor: schemas_string().optional(),
11552
- lineWidth: schemas_number().optional(),
11560
+ lineVisible: schemas_boolean().default(true).optional(),
11561
+ lineColor: schemas_string().default('#212121').optional(),
11562
+ lineWidth: schemas_number().default(1).optional(),
11553
11563
  lineStyle: union([
11554
11564
  literal('solid'),
11555
11565
  literal('dashed'),
11556
11566
  literal('dotted')
11557
- ]).optional(),
11567
+ ]).default('dashed').optional(),
11558
11568
  backgroundVisible: schemas_boolean().default(true).optional(),
11559
11569
  backgroundColor: schemas_string().default('#212121').optional(),
11560
- backgroundBorderColor: schemas_string().optional(),
11561
- backgroundBorderWidth: schemas_number().default(1).optional(),
11570
+ backgroundBorderColor: schemas_string().default('#212121').optional(),
11562
11571
  backgroundBorderRadius: schemas_number().default(4).optional(),
11563
- backgroundPadding: schemas_number().optional(),
11572
+ backgroundBorderWidth: schemas_number().default(1).optional(),
11573
+ backgroundPadding: schemas_number().default(2).optional(),
11564
11574
  offsetX: schemas_number().default(0),
11565
11575
  offsetY: schemas_number().default(0)
11566
11576
  });
@@ -11585,7 +11595,7 @@
11585
11595
  'insideStart',
11586
11596
  'insideMiddle',
11587
11597
  'insideEnd'
11588
- ]).default('insideMiddle').optional(),
11598
+ ]).default('insideEnd').optional(),
11589
11599
  textColor: schemas_string().default('#ffffff').optional(),
11590
11600
  textFontSize: schemas_number().default(12).optional(),
11591
11601
  textFontWeight: schemas_number().default(400).optional(),
@@ -11593,26 +11603,26 @@
11593
11603
  'left',
11594
11604
  'right',
11595
11605
  'center'
11596
- ]).default('center').optional(),
11606
+ ]).default('right').optional(),
11597
11607
  textBaseline: schemas_enum([
11598
11608
  'top',
11599
11609
  'middle',
11600
11610
  'bottom'
11601
- ]).default('bottom').optional(),
11602
- lineVisible: schemas_boolean().optional(),
11603
- lineColor: schemas_string().optional(),
11604
- lineWidth: schemas_number().optional(),
11611
+ ]).default('top').optional(),
11612
+ lineVisible: schemas_boolean().default(true).optional(),
11613
+ lineColor: schemas_string().default('#212121').optional(),
11614
+ lineWidth: schemas_number().default(1).optional(),
11605
11615
  lineStyle: union([
11606
11616
  literal('solid'),
11607
11617
  literal('dashed'),
11608
11618
  literal('dotted')
11609
- ]).optional(),
11619
+ ]).default('dashed').optional(),
11610
11620
  backgroundVisible: schemas_boolean().default(true).optional(),
11611
11621
  backgroundColor: schemas_string().default('#212121').optional(),
11612
- backgroundBorderColor: schemas_string().optional(),
11613
- backgroundBorderWidth: schemas_number().default(1).optional(),
11622
+ backgroundBorderColor: schemas_string().default('#212121').optional(),
11614
11623
  backgroundBorderRadius: schemas_number().default(4).optional(),
11615
- backgroundPadding: schemas_number().optional(),
11624
+ backgroundBorderWidth: schemas_number().default(1).optional(),
11625
+ backgroundPadding: schemas_number().default(2).optional(),
11616
11626
  offsetX: schemas_number().default(0),
11617
11627
  offsetY: schemas_number().default(0)
11618
11628
  });
@@ -11644,21 +11654,21 @@
11644
11654
  'top',
11645
11655
  'middle',
11646
11656
  'bottom'
11647
- ]).default('middle').optional(),
11657
+ ]).default('top').optional(),
11648
11658
  backgroundVisible: schemas_boolean().default(true).optional(),
11649
- backgroundColor: schemas_string().default('#212121').optional(),
11650
- backgroundBorderColor: schemas_string().optional(),
11659
+ backgroundColor: schemas_string().default('#191d24').optional(),
11660
+ backgroundBorderColor: schemas_string().default('#191d24').optional(),
11651
11661
  backgroundBorderWidth: schemas_number().default(1).optional(),
11652
11662
  backgroundBorderRadius: schemas_number().default(4).optional(),
11653
- backgroundPadding: schemas_number().optional(),
11654
- areaColor: schemas_string().default('red').optional(),
11655
- areaColorOpacity: schemas_number().default(0.5).optional(),
11656
- areaBorderColor: schemas_number().optional(),
11657
- areaBorderWidth: schemas_number().default(2).optional(),
11663
+ backgroundPadding: schemas_number().default(4).optional(),
11664
+ areaColor: schemas_string().default('#888888').optional(),
11665
+ areaColorOpacity: schemas_number().default(0.15).optional(),
11666
+ areaBorderColor: schemas_string().default('#888888').optional(),
11667
+ areaBorderWidth: schemas_number().default(1).optional(),
11658
11668
  areaBorderRadius: schemas_number().default(4).optional(),
11659
- outerPadding: schemas_number().optional(),
11660
- offsetX: schemas_number().optional(),
11661
- offsetY: schemas_number().optional()
11669
+ outerPadding: schemas_number().default(4).optional(),
11670
+ offsetX: schemas_number().default(0).optional(),
11671
+ offsetY: schemas_number().default(0).optional()
11662
11672
  });
11663
11673
  const zAnnotation = schemas_object({
11664
11674
  annotationPoint: zAnnotationPoint.or(schemas_array(zAnnotationPoint)).optional(),