@visactor/vseed 0.1.31 → 0.1.32

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.
Files changed (81) hide show
  1. package/dist/cjs/index.cjs +3 -3
  2. package/dist/cjs/index.cjs.map +1 -1
  3. package/dist/esm/builder/builder/builder.d.ts +6156 -0
  4. package/dist/esm/pipeline/advanced/table/pipes/default/defaultMeasureName.js +1 -1
  5. package/dist/esm/pipeline/advanced/table/pipes/default/defaultMeasureName.js.map +1 -1
  6. package/dist/esm/pipeline/spec/chart/pipes/annotation/annotationArea.js +4 -3
  7. package/dist/esm/pipeline/spec/chart/pipes/annotation/annotationArea.js.map +1 -1
  8. package/dist/esm/pipeline/spec/chart/pipes/annotation/annotationAreaBand.js +4 -3
  9. package/dist/esm/pipeline/spec/chart/pipes/annotation/annotationAreaBand.js.map +1 -1
  10. package/dist/esm/pipeline/spec/chart/pipes/annotation/annotationHorizontalLine.js +20 -9
  11. package/dist/esm/pipeline/spec/chart/pipes/annotation/annotationHorizontalLine.js.map +1 -1
  12. package/dist/esm/pipeline/spec/chart/pipes/annotation/annotationPoint.js +4 -3
  13. package/dist/esm/pipeline/spec/chart/pipes/annotation/annotationPoint.js.map +1 -1
  14. package/dist/esm/pipeline/spec/chart/pipes/annotation/annotationVerticalLine.js +20 -8
  15. package/dist/esm/pipeline/spec/chart/pipes/annotation/annotationVerticalLine.js.map +1 -1
  16. package/dist/esm/pipeline/spec/chart/pipes/axes/xBand.js +2 -1
  17. package/dist/esm/pipeline/spec/chart/pipes/axes/xBand.js.map +1 -1
  18. package/dist/esm/pipeline/spec/chart/pipes/axes/xLinear.js +2 -1
  19. package/dist/esm/pipeline/spec/chart/pipes/axes/xLinear.js.map +1 -1
  20. package/dist/esm/pipeline/spec/chart/pipes/axes/yBand.js +2 -1
  21. package/dist/esm/pipeline/spec/chart/pipes/axes/yBand.js.map +1 -1
  22. package/dist/esm/pipeline/spec/chart/pipes/axes/yLinear.js +2 -1
  23. package/dist/esm/pipeline/spec/chart/pipes/axes/yLinear.js.map +1 -1
  24. package/dist/esm/pipeline/spec/chart/pipes/axes/yLinearPrimary.js +2 -1
  25. package/dist/esm/pipeline/spec/chart/pipes/axes/yLinearPrimary.js.map +1 -1
  26. package/dist/esm/pipeline/spec/chart/pipes/axes/yLinearSecondary.js +2 -1
  27. package/dist/esm/pipeline/spec/chart/pipes/axes/yLinearSecondary.js.map +1 -1
  28. package/dist/esm/pipeline/spec/chart/pipes/crosshair/horizontalCrosshairLine.js +1 -1
  29. package/dist/esm/pipeline/spec/chart/pipes/crosshair/horizontalCrosshairLine.js.map +1 -1
  30. package/dist/esm/pipeline/spec/chart/pipes/crosshair/verticalCrosshairLine.js +1 -1
  31. package/dist/esm/pipeline/spec/chart/pipes/crosshair/verticalCrosshairLine.js.map +1 -1
  32. package/dist/esm/pipeline/spec/chart/pipes/markStyle/pieStyle.js +11 -13
  33. package/dist/esm/pipeline/spec/chart/pipes/markStyle/pieStyle.js.map +1 -1
  34. package/dist/esm/theme/common/annotaion.d.ts +22 -0
  35. package/dist/esm/theme/common/annotaion.js +106 -0
  36. package/dist/esm/theme/common/annotaion.js.map +1 -0
  37. package/dist/esm/theme/common/crosshair.js +5 -5
  38. package/dist/esm/theme/common/crosshair.js.map +1 -1
  39. package/dist/esm/theme/dark/dark.js +23 -11
  40. package/dist/esm/theme/dark/dark.js.map +1 -1
  41. package/dist/esm/theme/light/light.js +23 -11
  42. package/dist/esm/theme/light/light.js.map +1 -1
  43. package/dist/esm/types/advancedVSeed.d.ts +2260 -0
  44. package/dist/esm/types/chartType/area/zArea.d.ts +3 -0
  45. package/dist/esm/types/chartType/areaPercent/zAreaPercent.d.ts +3 -0
  46. package/dist/esm/types/chartType/bar/zBar.d.ts +2 -0
  47. package/dist/esm/types/chartType/barParallel/zBarParallel.d.ts +2 -0
  48. package/dist/esm/types/chartType/barPercent/zBarPercent.d.ts +2 -0
  49. package/dist/esm/types/chartType/column/zColumn.d.ts +2 -0
  50. package/dist/esm/types/chartType/columnParallel/zColumnParallel.d.ts +2 -0
  51. package/dist/esm/types/chartType/columnPercent/zColumnPercent.d.ts +2 -0
  52. package/dist/esm/types/chartType/dualAxis/zDualAxis.d.ts +5 -0
  53. package/dist/esm/types/chartType/line/zLine.d.ts +3 -0
  54. package/dist/esm/types/chartType/scatter/zScatter.d.ts +3 -0
  55. package/dist/esm/types/properties/annotation/annotationArea.d.ts +1 -1
  56. package/dist/esm/types/properties/config/annotation/annotation.d.ts +76 -0
  57. package/dist/esm/types/properties/config/annotation/annotation.js +0 -0
  58. package/dist/esm/types/properties/config/annotation/index.d.ts +2 -0
  59. package/dist/esm/types/properties/config/annotation/index.js +1 -0
  60. package/dist/esm/types/properties/config/annotation/zAnnotaion.d.ts +167 -0
  61. package/dist/esm/types/properties/config/annotation/zAnnotaion.js +57 -0
  62. package/dist/esm/types/properties/config/annotation/zAnnotaion.js.map +1 -0
  63. package/dist/esm/types/properties/config/axes/bandAxis.d.ts +4 -0
  64. package/dist/esm/types/properties/config/axes/linearAxis.d.ts +4 -0
  65. package/dist/esm/types/properties/config/axes/zBandAxis.d.ts +2 -0
  66. package/dist/esm/types/properties/config/axes/zBandAxis.js +2 -1
  67. package/dist/esm/types/properties/config/axes/zBandAxis.js.map +1 -1
  68. package/dist/esm/types/properties/config/axes/zLinearAxis.d.ts +2 -0
  69. package/dist/esm/types/properties/config/axes/zLinearAxis.js +2 -1
  70. package/dist/esm/types/properties/config/axes/zLinearAxis.js.map +1 -1
  71. package/dist/esm/types/properties/config/config.d.ts +2260 -0
  72. package/dist/esm/types/properties/config/config.js +15 -7
  73. package/dist/esm/types/properties/config/config.js.map +1 -1
  74. package/dist/esm/types/properties/config/crosshair/zCrosshair.d.ts +1 -0
  75. package/dist/esm/types/properties/config/crosshair/zCrosshair.js +2 -1
  76. package/dist/esm/types/properties/config/crosshair/zCrosshair.js.map +1 -1
  77. package/dist/esm/types/properties/theme/customTheme.d.ts +2260 -0
  78. package/dist/esm/types/zVseed.d.ts +29 -0
  79. package/dist/umd/index.js +474 -260
  80. package/dist/umd/index.js.map +1 -1
  81. package/package.json +4 -4
package/dist/umd/index.js CHANGED
@@ -1340,7 +1340,7 @@
1340
1340
  if (measures.length > 1 && !result.dimensions?.some((dim)=>dim.id === MeasureName)) result.dimensions?.push({
1341
1341
  id: MeasureName,
1342
1342
  alias: intl.i18n`指标名称`,
1343
- encoding: 'column'
1343
+ encoding: 'row'
1344
1344
  });
1345
1345
  return result;
1346
1346
  };
@@ -2737,7 +2737,8 @@
2737
2737
  visible: grid?.visible,
2738
2738
  style: {
2739
2739
  lineWidth: grid?.gridWidth,
2740
- stroke: grid?.gridColor
2740
+ stroke: grid?.gridColor,
2741
+ lineDash: grid?.gridLineDash
2741
2742
  }
2742
2743
  },
2743
2744
  domainLine: {
@@ -2832,7 +2833,8 @@
2832
2833
  visible: grid?.visible,
2833
2834
  style: {
2834
2835
  lineWidth: grid?.gridWidth,
2835
- stroke: grid?.gridColor
2836
+ stroke: grid?.gridColor,
2837
+ lineDash: grid?.gridLineDash
2836
2838
  }
2837
2839
  },
2838
2840
  domainLine: {
@@ -2875,7 +2877,7 @@
2875
2877
  lineWidth: 1,
2876
2878
  opacity: 1,
2877
2879
  stroke: lineColor,
2878
- lineDash: [
2880
+ lineDash: config.lineDash ?? [
2879
2881
  4,
2880
2882
  2
2881
2883
  ]
@@ -3558,9 +3560,10 @@
3558
3560
  return true;
3559
3561
  });
3560
3562
  const annotationPoint_annotationPoint = (spec, context)=>{
3561
- const { advancedVSeed } = context;
3562
- const { annotation } = advancedVSeed;
3563
+ const { advancedVSeed, vseed } = context;
3564
+ const { annotation, config } = advancedVSeed;
3563
3565
  if (!annotation || !annotation.annotationPoint) return spec;
3566
+ const theme = config?.[vseed.chartType]?.annotation?.annotationPoint;
3564
3567
  const { annotationPoint } = annotation;
3565
3568
  const annotationPointList = Array.isArray(annotationPoint) ? annotationPoint : [
3566
3569
  annotationPoint
@@ -3574,7 +3577,7 @@
3574
3577
  textBaseline: 'top'
3575
3578
  };
3576
3579
  const markPoint = annotationPointList.flatMap((annotationPoint)=>{
3577
- const { selector: selectorPoint, text = '', textColor = '#ffffff', textFontSize = 12, textFontWeight = 400, textAlign = defaultStyle.textAlign, textBaseline = defaultStyle.textBaseline, textBackgroundBorderColor, textBackgroundBorderRadius = 4, textBackgroundBorderWidth = 1, textBackgroundColor = '#212121', textBackgroundPadding = 2, textBackgroundVisible = true, offsetX = 0, offsetY = 0 } = annotationPoint;
3580
+ const { selector: selectorPoint, text = '', textColor = theme?.textColor ?? '#ffffff', textFontSize = theme?.textFontSize ?? 12, textFontWeight = theme?.textFontWeight ?? 400, textAlign = defaultStyle.textAlign, textBaseline = defaultStyle.textBaseline, textBackgroundBorderColor = theme?.textBackgroundBorderColor, textBackgroundBorderRadius = theme?.textBackgroundBorderRadius ?? 4, textBackgroundBorderWidth = theme?.textBackgroundBorderWidth ?? 1, textBackgroundColor = theme?.textBackgroundColor ?? '#212121', textBackgroundPadding = theme?.textBackgroundPadding ?? 2, textBackgroundVisible = theme?.textBackgroundVisible ?? true, offsetX = theme?.offsetX ?? 0, offsetY = theme?.offsetY ?? 0 } = annotationPoint;
3578
3581
  const dataset = advancedVSeed.dataset.flat();
3579
3582
  const selectedData = selectorPoint ? dataset.filter((datum)=>selector_selector(datum, selectorPoint)) : [];
3580
3583
  const dx = -10 - (isHorizontalBar ? textFontSize : 0);
@@ -3629,10 +3632,11 @@
3629
3632
  return Array.isArray(r);
3630
3633
  }
3631
3634
  const annotationVerticalLine_annotationVerticalLine = (spec, context)=>{
3632
- const { advancedVSeed } = context;
3633
- const { annotation, datasetReshapeInfo } = advancedVSeed;
3635
+ const { advancedVSeed, vseed } = context;
3636
+ const { annotation, datasetReshapeInfo, config } = advancedVSeed;
3634
3637
  const { unfoldInfo, foldInfo } = datasetReshapeInfo[0];
3635
3638
  if (!annotation || !annotation.annotationVerticalLine) return spec;
3639
+ const theme = config?.[vseed.chartType]?.annotation?.annotationVerticalLine;
3636
3640
  const { annotationVerticalLine } = annotation;
3637
3641
  const annotationVerticalLineList = Array.isArray(annotationVerticalLine) ? annotationVerticalLine : [
3638
3642
  annotationVerticalLine
@@ -3646,7 +3650,7 @@
3646
3650
  insideEnd: 'insideEndTop'
3647
3651
  };
3648
3652
  const markLine = annotationVerticalLineList.flatMap((annotationVerticalLine)=>{
3649
- const { selector: selectorPoint, xValue, text = '', textPosition = 'insideEnd', textColor = '#ffffff', textFontSize = 12, textFontWeight = 400, textAlign = 'right', textBaseline = 'top', textBackgroundVisible = true, textBackgroundBorderColor = '#212121', textBackgroundColor = '#212121', textBackgroundBorderRadius = 4, textBackgroundBorderWidth = 1, textBackgroundPadding = 2, lineVisible = true, lineColor = '#212121', lineWidth = 1, lineStyle = 'dashed' } = annotationVerticalLine;
3653
+ const { selector: selectorPoint, xValue, text = '', textPosition = 'insideEnd', textColor = theme?.textColor ?? '#ffffff', textFontSize = theme?.textFontSize ?? 12, textFontWeight = theme?.textFontWeight ?? 400, textAlign = 'center', textBaseline = 'top', lineColor = theme?.lineColor ?? '#212121', lineStyle = theme?.lineStyle ?? 'dashed', lineVisible = theme?.lineStyle ?? true, lineWidth = theme?.lineWidth ?? 1, textBackgroundVisible = theme?.textBackgroundVisible ?? true, textBackgroundColor = theme?.textBackgroundColor ?? '#212121', textBackgroundBorderColor = theme?.textBackgroundBorderColor ?? '#212121', textBackgroundBorderRadius = theme?.textBackgroundBorderRadius ?? 4, textBackgroundBorderWidth = theme?.textBackgroundBorderWidth ?? 1, textBackgroundPadding = theme?.textBackgroundPadding ?? 2 } = annotationVerticalLine;
3650
3654
  const dataset = advancedVSeed.dataset.flat();
3651
3655
  const generateOneMarkLine = (x)=>({
3652
3656
  x: x,
@@ -3672,6 +3676,7 @@
3672
3676
  text: text,
3673
3677
  position: positionMap[textPosition || 'insideEnd'],
3674
3678
  style: {
3679
+ dx: 5,
3675
3680
  visible: true,
3676
3681
  stroke: textBackgroundColor,
3677
3682
  lineWidth: 1,
@@ -3679,23 +3684,33 @@
3679
3684
  textBaseline: textBaseline,
3680
3685
  fill: textColor,
3681
3686
  fontSize: textFontSize,
3682
- fontWeight: textFontWeight,
3683
- dy: textFontSize
3687
+ fontWeight: textFontWeight
3684
3688
  },
3685
3689
  labelBackground: {
3686
3690
  visible: textBackgroundVisible,
3687
3691
  padding: textBackgroundPadding,
3688
3692
  style: {
3689
- dy: textFontSize,
3690
- cornerRadius: textBackgroundBorderRadius ?? 4,
3693
+ dx: 5,
3694
+ cornerRadius: textBackgroundBorderRadius,
3691
3695
  fill: textBackgroundColor,
3696
+ fillOpacity: 1,
3692
3697
  stroke: textBackgroundBorderColor,
3693
3698
  lineWidth: textBackgroundBorderWidth
3694
3699
  }
3695
3700
  }
3696
3701
  },
3702
+ startSymbol: {
3703
+ visible: theme?.startSymbolVisible ?? true,
3704
+ symbolType: theme?.startSymbolType ?? 'triangleDown',
3705
+ size: 5 + (lineWidth || 1),
3706
+ style: {
3707
+ dy: -3,
3708
+ fill: lineColor
3709
+ }
3710
+ },
3697
3711
  endSymbol: {
3698
- visible: true,
3712
+ visible: theme?.endSymbolVisible ?? false,
3713
+ symbolType: theme?.endSymbolType ?? 'arrow',
3699
3714
  size: 10 + (lineWidth || 1),
3700
3715
  style: {
3701
3716
  dy: 4,
@@ -3727,10 +3742,11 @@
3727
3742
  };
3728
3743
  };
3729
3744
  const annotationHorizontalLine_annotationHorizontalLine = (spec, context)=>{
3730
- const { advancedVSeed } = context;
3731
- const { annotation, datasetReshapeInfo } = advancedVSeed;
3745
+ const { advancedVSeed, vseed } = context;
3746
+ const { annotation, datasetReshapeInfo, config } = advancedVSeed;
3732
3747
  const { foldInfo, unfoldInfo } = datasetReshapeInfo[0];
3733
3748
  if (!annotation || !annotation.annotationHorizontalLine) return spec;
3749
+ const theme = config?.[vseed.chartType]?.annotation?.annotationHorizontalLine;
3734
3750
  const { annotationHorizontalLine } = annotation;
3735
3751
  const annotationHorizontalLineList = Array.isArray(annotationHorizontalLine) ? annotationHorizontalLine : [
3736
3752
  annotationHorizontalLine
@@ -3744,7 +3760,7 @@
3744
3760
  insideEnd: 'insideEndTop'
3745
3761
  };
3746
3762
  const markLine = annotationHorizontalLineList.flatMap((annotationHorizontalLine)=>{
3747
- 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, textBackgroundVisible = true, textBackgroundColor = '#212121', textBackgroundBorderColor = '#212121', textBackgroundBorderRadius = 4, textBackgroundBorderWidth = 1, textBackgroundPadding = 2 } = annotationHorizontalLine;
3763
+ const { selector: selectorPoint, yValue, text = '', textPosition = 'insideEnd', textColor = theme?.textColor ?? '#ffffff', textFontSize = theme?.textFontSize ?? 12, textFontWeight = theme?.textFontWeight ?? 400, textAlign = 'right', textBaseline = 'bottom', lineColor = theme?.lineColor ?? '#212121', lineStyle = theme?.lineStyle ?? 'dashed', lineVisible = theme?.lineStyle ?? true, lineWidth = theme?.lineWidth ?? 1, textBackgroundVisible = theme?.textBackgroundVisible ?? true, textBackgroundColor = theme?.textBackgroundColor ?? '#212121', textBackgroundBorderColor = theme?.textBackgroundBorderColor ?? '#212121', textBackgroundBorderRadius = theme?.textBackgroundBorderRadius ?? 4, textBackgroundBorderWidth = theme?.textBackgroundBorderWidth ?? 1, textBackgroundPadding = theme?.textBackgroundPadding ?? 2 } = annotationHorizontalLine;
3748
3764
  const dataset = advancedVSeed.dataset.flat();
3749
3765
  const generateOneMarkLine = (y)=>({
3750
3766
  y,
@@ -3753,7 +3769,6 @@
3753
3769
  style: {
3754
3770
  visible: lineVisible,
3755
3771
  stroke: lineColor,
3756
- lineStyle: lineStyle,
3757
3772
  lineWidth: lineWidth,
3758
3773
  lineDash: 'dashed' === lineStyle ? [
3759
3774
  5,
@@ -3771,7 +3786,7 @@
3771
3786
  position: positionMap[textPosition || 'insideEnd'],
3772
3787
  style: {
3773
3788
  visible: true,
3774
- dy: textFontSize,
3789
+ dy: 4,
3775
3790
  stroke: textBackgroundColor,
3776
3791
  lineWidth: 1,
3777
3792
  textAlign: textAlign,
@@ -3784,16 +3799,27 @@
3784
3799
  visible: textBackgroundVisible,
3785
3800
  padding: textBackgroundPadding,
3786
3801
  style: {
3787
- dy: textFontSize,
3788
- cornerRadius: textBackgroundBorderRadius ?? 4,
3802
+ dy: 4,
3803
+ cornerRadius: textBackgroundBorderRadius,
3789
3804
  fill: textBackgroundColor,
3790
3805
  stroke: textBackgroundBorderColor,
3791
- lineWidth: textBackgroundBorderWidth
3806
+ lineWidth: textBackgroundBorderWidth,
3807
+ fillOpacity: 1
3792
3808
  }
3793
3809
  }
3794
3810
  },
3811
+ startSymbol: {
3812
+ visible: theme?.startSymbolVisible ?? true,
3813
+ symbolType: theme?.startSymbolType ?? 'triangleDown',
3814
+ size: 5,
3815
+ style: {
3816
+ dx: 0,
3817
+ fill: lineColor
3818
+ }
3819
+ },
3795
3820
  endSymbol: {
3796
- visible: true,
3821
+ visible: theme?.endSymbolVisible ?? false,
3822
+ symbolType: theme?.endSymbolType ?? 'arrow',
3797
3823
  size: 10 + (lineWidth || 1),
3798
3824
  style: {
3799
3825
  dx: -4,
@@ -3825,9 +3851,10 @@
3825
3851
  };
3826
3852
  };
3827
3853
  const annotationArea_annotationArea = (spec, context)=>{
3828
- const { advancedVSeed } = context;
3829
- const { annotation } = advancedVSeed;
3854
+ const { advancedVSeed, vseed } = context;
3855
+ const { annotation, config } = advancedVSeed;
3830
3856
  if (!annotation || !annotation.annotationArea) return spec;
3857
+ const theme = config?.[vseed.chartType]?.annotation?.annotationArea;
3831
3858
  const { annotationArea } = annotation;
3832
3859
  const annotationAreaList = Array.isArray(annotationArea) ? annotationArea : [
3833
3860
  annotationArea
@@ -3843,7 +3870,7 @@
3843
3870
  right: 'insideRight'
3844
3871
  };
3845
3872
  const markArea = annotationAreaList.flatMap((annotationArea)=>{
3846
- const { selector: selectorPoint, text = '', textPosition = 'top', textColor = '#ffffff', textFontSize = 12, textFontWeight = 400, textAlign = 'center', textBaseline = 'top', textBackgroundVisible = true, textBackgroundColor = '#191d24', textBackgroundBorderColor = '#191d24', textBackgroundBorderWidth = 1, textBackgroundBorderRadius = 4, textBackgroundPadding = 4, areaColor = '#888888', areaColorOpacity = 0.15, areaBorderColor = '#888888', areaBorderRadius = 4, areaBorderWidth = 1, outerPadding = 4 } = annotationArea;
3873
+ const { selector: selectorPoint, text = '', textPosition = 'top', textColor = theme?.textColor ?? '#ffffff', textFontSize = theme?.textFontSize ?? 12, textFontWeight = theme?.textFontWeight ?? 400, textAlign = 'center', textBaseline = 'top', textBackgroundVisible = theme?.textBackgroundVisible ?? true, textBackgroundColor = theme?.textBackgroundColor ?? '#191d24', textBackgroundBorderColor = theme?.textBackgroundBorderColor ?? '#191d24', textBackgroundBorderWidth = theme?.textBackgroundBorderWidth ?? 1, textBackgroundBorderRadius = theme?.textBackgroundBorderRadius ?? 4, textBackgroundPadding = theme?.textBackgroundPadding ?? 4, areaColor = theme?.areaColor ?? '#888888', areaColorOpacity = theme?.areaColorOpacity ?? 0.15, areaBorderColor = theme?.areaBorderColor ?? '#888888', areaBorderRadius = theme?.areaBorderRadius ?? 4, areaBorderWidth = theme?.areaBorderWidth ?? 1, outerPadding = theme?.outerPadding ?? 4 } = annotationArea;
3847
3874
  const dataset = advancedVSeed.dataset.flat();
3848
3875
  const selectedData = selectorPoint ? dataset.filter((datum)=>selector_selector(datum, selectorPoint)) : [];
3849
3876
  const labelPosition = positionMap[textPosition || 'top'];
@@ -4783,9 +4810,10 @@
4783
4810
  };
4784
4811
  };
4785
4812
  const annotationAreaBand = (spec, context)=>{
4786
- const { advancedVSeed } = context;
4787
- const { annotation } = advancedVSeed;
4813
+ const { advancedVSeed, vseed } = context;
4814
+ const { annotation, config } = advancedVSeed;
4788
4815
  if (!annotation || !annotation.annotationArea) return spec;
4816
+ const theme = config?.[vseed.chartType]?.annotation?.annotationArea;
4789
4817
  const { annotationArea } = annotation;
4790
4818
  const annotationAreaList = Array.isArray(annotationArea) ? annotationArea : [
4791
4819
  annotationArea
@@ -4801,7 +4829,7 @@
4801
4829
  right: 'insideRight'
4802
4830
  };
4803
4831
  const markArea = annotationAreaList.flatMap((annotationArea)=>{
4804
- const { selector: selectorPoint, text = '', textPosition = 'top', textColor = '#ffffff', textFontSize = 12, textFontWeight = 400, textAlign = 'center', textBaseline = 'top', textBackgroundVisible = true, textBackgroundColor = '#191d24', textBackgroundBorderColor = '#191d24', textBackgroundBorderWidth = 1, textBackgroundBorderRadius = 4, textBackgroundPadding = 4, areaColor = '#888888', areaColorOpacity = 0.15, areaBorderColor = '#888888', areaBorderRadius = 4, areaBorderWidth = 1, outerPadding = 4 } = annotationArea;
4832
+ const { selector: selectorPoint, text = '', textPosition = 'top', textColor = theme?.textColor ?? '#ffffff', textFontSize = theme?.textFontSize ?? 12, textFontWeight = theme?.textFontWeight ?? 400, textAlign = 'center', textBaseline = 'top', textBackgroundVisible = theme?.textBackgroundVisible ?? true, textBackgroundColor = theme?.textBackgroundColor ?? '#191d24', textBackgroundBorderColor = theme?.textBackgroundBorderColor ?? '#191d24', textBackgroundBorderWidth = theme?.textBackgroundBorderWidth ?? 1, textBackgroundBorderRadius = theme?.textBackgroundBorderRadius ?? 4, textBackgroundPadding = theme?.textBackgroundPadding ?? 4, areaColor = theme?.areaColor ?? '#888888', areaColorOpacity = theme?.areaColorOpacity ?? 0.15, areaBorderColor = theme?.areaBorderColor ?? '#888888', areaBorderRadius = theme?.areaBorderRadius ?? 4, areaBorderWidth = theme?.areaBorderWidth ?? 1, outerPadding = theme?.outerPadding ?? 4 } = annotationArea;
4805
4833
  const dy = textPosition?.includes('bottom') ? -1 * textFontSize : textFontSize;
4806
4834
  const dataset = advancedVSeed.dataset.flat();
4807
4835
  const selectedData = selectorPoint ? dataset.filter((datum)=>selector_selector(datum, selectorPoint)) : [];
@@ -5459,7 +5487,8 @@
5459
5487
  visible: grid?.visible,
5460
5488
  style: {
5461
5489
  lineWidth: grid?.gridWidth,
5462
- stroke: grid?.gridColor
5490
+ stroke: grid?.gridColor,
5491
+ lineDash: grid?.gridLineDash
5463
5492
  }
5464
5493
  },
5465
5494
  domainLine: {
@@ -5539,7 +5568,8 @@
5539
5568
  visible: grid?.visible,
5540
5569
  style: {
5541
5570
  lineWidth: grid?.gridWidth,
5542
- stroke: grid?.gridColor
5571
+ stroke: grid?.gridColor,
5572
+ lineDash: grid?.gridLineDash
5543
5573
  }
5544
5574
  },
5545
5575
  domainLine: {
@@ -6662,7 +6692,7 @@
6662
6692
  lineWidth: 1,
6663
6693
  opacity: 1,
6664
6694
  stroke: lineColor,
6665
- lineDash: [
6695
+ lineDash: config.lineDash ?? [
6666
6696
  4,
6667
6697
  2
6668
6698
  ]
@@ -7513,7 +7543,8 @@
7513
7543
  visible: grid?.visible,
7514
7544
  style: {
7515
7545
  lineWidth: grid?.gridWidth,
7516
- stroke: grid?.gridColor
7546
+ stroke: grid?.gridColor,
7547
+ lineDash: grid?.gridLineDash
7517
7548
  }
7518
7549
  },
7519
7550
  domainLine: {
@@ -7605,7 +7636,8 @@
7605
7636
  visible: onlySecondary ? true : grid?.visible,
7606
7637
  style: {
7607
7638
  lineWidth: grid?.gridWidth,
7608
- stroke: grid?.gridColor
7639
+ stroke: grid?.gridColor,
7640
+ lineDash: grid?.gridLineDash
7609
7641
  }
7610
7642
  },
7611
7643
  domainLine: {
@@ -7874,29 +7906,27 @@
7874
7906
  return result;
7875
7907
  };
7876
7908
  const pieStyle = (spec, context)=>{
7877
- const { advancedVSeed } = context;
7909
+ const { advancedVSeed, vseed } = context;
7910
+ const { chartType } = vseed;
7878
7911
  const { dataset } = advancedVSeed;
7879
7912
  const showStroke = dataset.length <= 30;
7913
+ const config = advancedVSeed.config?.[chartType];
7880
7914
  const result = {
7881
7915
  ...spec,
7882
- pie: {
7883
- style: {}
7884
- }
7885
- };
7886
- return {
7887
- ...result,
7888
7916
  pie: {
7889
7917
  style: {
7890
- stroke: '#ffffff',
7918
+ stroke: config?.backgroundColor ?? '#ffffff',
7891
7919
  lineWidth: showStroke ? 1 : 0
7892
- },
7893
- state: {
7894
- hover: {
7895
- outerRadius: 1.1 * result.outerRadius
7896
- }
7897
7920
  }
7898
7921
  }
7899
7922
  };
7923
+ if (spec.outerRadius) result.pie.state = {
7924
+ hover: {
7925
+ outerRadius: 1.1 * spec.outerRadius
7926
+ }
7927
+ };
7928
+ if (config?.cornerRadius) result.pie.style.cornerRadius = config.cornerRadius;
7929
+ return result;
7900
7930
  };
7901
7931
  const labelPie = (spec, context)=>{
7902
7932
  const result = {
@@ -9122,9 +9152,9 @@
9122
9152
  const getDarkCrosshairLine = ()=>({
9123
9153
  visible: true,
9124
9154
  labelVisible: true,
9125
- labelColor: '#4B4F54',
9126
- labelBackgroundColor: '#ffffff',
9127
- lineColor: '#E2E3E6'
9155
+ labelColor: '#ffffff',
9156
+ labelBackgroundColor: '#404349',
9157
+ lineColor: '#55595F'
9128
9158
  });
9129
9159
  const getDarkCrosshairRect = ()=>({
9130
9160
  visible: true,
@@ -9137,8 +9167,8 @@
9137
9167
  visible: true,
9138
9168
  labelVisible: true,
9139
9169
  labelColor: '#ffffff',
9140
- labelBackgroundColor: '#364159',
9141
- lineColor: '#3641594d'
9170
+ labelBackgroundColor: '##21252C',
9171
+ lineColor: '#000000'
9142
9172
  });
9143
9173
  const getLightCrosshairRect = ()=>({
9144
9174
  visible: true,
@@ -9402,6 +9432,108 @@
9402
9432
  lineWidth: 1
9403
9433
  }
9404
9434
  });
9435
+ const getLightAnnotationPoint = ()=>({
9436
+ textColor: '#ffffff',
9437
+ textBackgroundVisible: true,
9438
+ textBackgroundColor: '#364159',
9439
+ textBackgroundBorderColor: '#3641594d',
9440
+ textFontSize: 12,
9441
+ textFontWeight: 400,
9442
+ textBackgroundBorderRadius: 4,
9443
+ textBackgroundBorderWidth: 1,
9444
+ textBackgroundPadding: 2
9445
+ });
9446
+ const getLightAnnotationHorizontalLine = ()=>({
9447
+ lineColor: '#BCC1CB',
9448
+ lineWidth: 1,
9449
+ lineStyle: 'solid',
9450
+ lineVisible: true,
9451
+ textColor: '#ffffff',
9452
+ textFontSize: 12,
9453
+ textFontWeight: 400,
9454
+ startSymbolVisible: true,
9455
+ endSymbolVisible: false,
9456
+ textBackgroundVisible: true,
9457
+ textBackgroundColor: '#BCC1CB',
9458
+ textBackgroundBorderColor: '#BCC1CB',
9459
+ textBackgroundBorderWidth: 1,
9460
+ textBackgroundBorderRadius: 0,
9461
+ textBackgroundPadding: 2
9462
+ });
9463
+ const getLightAnnotationVerticalLine = ()=>getLightAnnotationHorizontalLine();
9464
+ const getLightAnnotationArea = ()=>({
9465
+ textColor: '#ffffff',
9466
+ textFontSize: 12,
9467
+ textFontWeight: 400,
9468
+ textBackgroundVisible: true,
9469
+ textBackgroundColor: '#364159',
9470
+ textBackgroundBorderColor: '#3641594d',
9471
+ textBackgroundBorderWidth: 1,
9472
+ textBackgroundBorderRadius: 4,
9473
+ textBackgroundPadding: 4,
9474
+ areaColor: '#364159',
9475
+ areaColorOpacity: 0.15,
9476
+ areaBorderColor: '#364159',
9477
+ areaBorderWidth: 1,
9478
+ areaBorderRadius: 4,
9479
+ outerPadding: 4
9480
+ });
9481
+ const getLightAnnotation = ()=>({
9482
+ annotationPoint: getLightAnnotationPoint(),
9483
+ annotationHorizontalLine: getLightAnnotationHorizontalLine(),
9484
+ annotationVerticalLine: getLightAnnotationVerticalLine(),
9485
+ annotationArea: getLightAnnotationArea()
9486
+ });
9487
+ const getDarkAnnotationPoint = ()=>({
9488
+ textColor: '#4B4F54',
9489
+ textBackgroundVisible: true,
9490
+ textBackgroundColor: '#ffffff',
9491
+ textBackgroundBorderColor: '#ffffff',
9492
+ textFontSize: 12,
9493
+ textFontWeight: 400,
9494
+ textBackgroundBorderRadius: 4,
9495
+ textBackgroundBorderWidth: 1,
9496
+ textBackgroundPadding: 2
9497
+ });
9498
+ const getDarkAnnotationHorizontalLine = ()=>({
9499
+ lineColor: '#55595F',
9500
+ lineWidth: 1,
9501
+ lineStyle: 'solid',
9502
+ lineVisible: true,
9503
+ textFontSize: 12,
9504
+ textFontWeight: 400,
9505
+ textBackgroundVisible: true,
9506
+ textColor: '#E2E3E6',
9507
+ textBackgroundColor: '#55595F',
9508
+ textBackgroundBorderColor: '#55595F',
9509
+ textBackgroundBorderWidth: 1,
9510
+ textBackgroundBorderRadius: 0,
9511
+ textBackgroundPadding: 2
9512
+ });
9513
+ const getDarkAnnotationVerticalLine = ()=>getDarkAnnotationHorizontalLine();
9514
+ const getDarkAnnotationArea = ()=>({
9515
+ textColor: '#4B4F54',
9516
+ textFontSize: 12,
9517
+ textFontWeight: 400,
9518
+ textBackgroundVisible: true,
9519
+ textBackgroundColor: '#ffffff',
9520
+ textBackgroundBorderColor: '#ffffff',
9521
+ textBackgroundBorderWidth: 1,
9522
+ textBackgroundBorderRadius: 4,
9523
+ textBackgroundPadding: 4,
9524
+ areaColor: '#E2E3E6',
9525
+ areaColorOpacity: 0.15,
9526
+ areaBorderColor: '#E2E3E6',
9527
+ areaBorderWidth: 1,
9528
+ areaBorderRadius: 4,
9529
+ outerPadding: 4
9530
+ });
9531
+ const getDarkAnnotation = ()=>({
9532
+ annotationPoint: getDarkAnnotationPoint(),
9533
+ annotationHorizontalLine: getDarkAnnotationHorizontalLine(),
9534
+ annotationVerticalLine: getDarkAnnotationVerticalLine(),
9535
+ annotationArea: getDarkAnnotationArea()
9536
+ });
9405
9537
  const lightTheme = ()=>{
9406
9538
  const linearAxis = getLightLinearAxis();
9407
9539
  const bandAxis = getLightBandAxis();
@@ -9437,7 +9569,8 @@
9437
9569
  xAxis: bandAxis,
9438
9570
  yAxis: linearAxis,
9439
9571
  crosshairLine,
9440
- pivotGrid: getLightPivotChartGridConfig()
9572
+ pivotGrid: getLightPivotChartGridConfig(),
9573
+ annotation: getLightAnnotation()
9441
9574
  },
9442
9575
  column: {
9443
9576
  ...baseConfig,
@@ -9450,7 +9583,8 @@
9450
9583
  0,
9451
9584
  0
9452
9585
  ],
9453
- pivotGrid: getLightPivotChartGridConfig()
9586
+ pivotGrid: getLightPivotChartGridConfig(),
9587
+ annotation: getLightAnnotation()
9454
9588
  },
9455
9589
  columnParallel: {
9456
9590
  ...baseConfig,
@@ -9463,7 +9597,8 @@
9463
9597
  0,
9464
9598
  0
9465
9599
  ],
9466
- pivotGrid: getLightPivotChartGridConfig()
9600
+ pivotGrid: getLightPivotChartGridConfig(),
9601
+ annotation: getLightAnnotation()
9467
9602
  },
9468
9603
  columnPercent: {
9469
9604
  ...baseConfig,
@@ -9478,7 +9613,8 @@
9478
9613
  0,
9479
9614
  0
9480
9615
  ],
9481
- pivotGrid: getLightPivotChartGridConfig()
9616
+ pivotGrid: getLightPivotChartGridConfig(),
9617
+ annotation: getLightAnnotation()
9482
9618
  },
9483
9619
  bar: {
9484
9620
  ...baseConfig,
@@ -9491,7 +9627,8 @@
9491
9627
  4,
9492
9628
  0
9493
9629
  ],
9494
- pivotGrid: getLightPivotChartGridConfig()
9630
+ pivotGrid: getLightPivotChartGridConfig(),
9631
+ annotation: getLightAnnotation()
9495
9632
  },
9496
9633
  barParallel: {
9497
9634
  ...baseConfig,
@@ -9504,7 +9641,8 @@
9504
9641
  4,
9505
9642
  0
9506
9643
  ],
9507
- pivotGrid: getLightPivotChartGridConfig()
9644
+ pivotGrid: getLightPivotChartGridConfig(),
9645
+ annotation: getLightAnnotation()
9508
9646
  },
9509
9647
  barPercent: {
9510
9648
  ...baseConfig,
@@ -9519,14 +9657,16 @@
9519
9657
  4,
9520
9658
  0
9521
9659
  ],
9522
- pivotGrid: getLightPivotChartGridConfig()
9660
+ pivotGrid: getLightPivotChartGridConfig(),
9661
+ annotation: getLightAnnotation()
9523
9662
  },
9524
9663
  area: {
9525
9664
  ...baseConfig,
9526
9665
  xAxis: bandAxis,
9527
9666
  yAxis: linearAxis,
9528
9667
  crosshairLine,
9529
- pivotGrid: getLightPivotChartGridConfig()
9668
+ pivotGrid: getLightPivotChartGridConfig(),
9669
+ annotation: getLightAnnotation()
9530
9670
  },
9531
9671
  areaPercent: {
9532
9672
  ...baseConfig,
@@ -9535,7 +9675,8 @@
9535
9675
  ...linearAxis
9536
9676
  },
9537
9677
  crosshairLine,
9538
- pivotGrid: getLightPivotChartGridConfig()
9678
+ pivotGrid: getLightPivotChartGridConfig(),
9679
+ annotation: getLightAnnotation()
9539
9680
  },
9540
9681
  scatter: {
9541
9682
  ...baseConfig,
@@ -9563,7 +9704,8 @@
9563
9704
  showValue: false,
9564
9705
  showValuePercent: false
9565
9706
  },
9566
- pivotGrid: getLightPivotChartGridConfig()
9707
+ pivotGrid: getLightPivotChartGridConfig(),
9708
+ annotation: getLightAnnotation()
9567
9709
  },
9568
9710
  dualAxis: {
9569
9711
  ...baseConfig,
@@ -9580,7 +9722,8 @@
9580
9722
  secondary: 'line'
9581
9723
  },
9582
9724
  crosshairRect,
9583
- pivotGrid: getLightPivotChartGridConfig()
9725
+ pivotGrid: getLightPivotChartGridConfig(),
9726
+ annotation: getLightAnnotation()
9584
9727
  },
9585
9728
  pie: {
9586
9729
  ...baseConfig,
@@ -9674,7 +9817,8 @@
9674
9817
  xAxis: bandAxis,
9675
9818
  yAxis: linearAxis,
9676
9819
  crosshairLine: crosshairLine,
9677
- pivotGrid: getDarkPivotChartGridConfig()
9820
+ pivotGrid: getDarkPivotChartGridConfig(),
9821
+ annotation: getDarkAnnotation()
9678
9822
  },
9679
9823
  column: {
9680
9824
  ...baseConfig,
@@ -9687,7 +9831,8 @@
9687
9831
  0,
9688
9832
  0
9689
9833
  ],
9690
- pivotGrid: getDarkPivotChartGridConfig()
9834
+ pivotGrid: getDarkPivotChartGridConfig(),
9835
+ annotation: getDarkAnnotation()
9691
9836
  },
9692
9837
  columnParallel: {
9693
9838
  ...baseConfig,
@@ -9700,7 +9845,8 @@
9700
9845
  0,
9701
9846
  0
9702
9847
  ],
9703
- pivotGrid: getDarkPivotChartGridConfig()
9848
+ pivotGrid: getDarkPivotChartGridConfig(),
9849
+ annotation: getDarkAnnotation()
9704
9850
  },
9705
9851
  columnPercent: {
9706
9852
  ...baseConfig,
@@ -9713,7 +9859,8 @@
9713
9859
  0,
9714
9860
  0
9715
9861
  ],
9716
- pivotGrid: getDarkPivotChartGridConfig()
9862
+ pivotGrid: getDarkPivotChartGridConfig(),
9863
+ annotation: getDarkAnnotation()
9717
9864
  },
9718
9865
  bar: {
9719
9866
  ...baseConfig,
@@ -9726,7 +9873,8 @@
9726
9873
  4,
9727
9874
  0
9728
9875
  ],
9729
- pivotGrid: getDarkPivotChartGridConfig()
9876
+ pivotGrid: getDarkPivotChartGridConfig(),
9877
+ annotation: getDarkAnnotation()
9730
9878
  },
9731
9879
  barParallel: {
9732
9880
  ...baseConfig,
@@ -9739,7 +9887,8 @@
9739
9887
  4,
9740
9888
  0
9741
9889
  ],
9742
- pivotGrid: getDarkPivotChartGridConfig()
9890
+ pivotGrid: getDarkPivotChartGridConfig(),
9891
+ annotation: getDarkAnnotation()
9743
9892
  },
9744
9893
  barPercent: {
9745
9894
  ...baseConfig,
@@ -9752,21 +9901,24 @@
9752
9901
  4,
9753
9902
  0
9754
9903
  ],
9755
- pivotGrid: getDarkPivotChartGridConfig()
9904
+ pivotGrid: getDarkPivotChartGridConfig(),
9905
+ annotation: getDarkAnnotation()
9756
9906
  },
9757
9907
  area: {
9758
9908
  ...baseConfig,
9759
9909
  xAxis: bandAxis,
9760
9910
  yAxis: linearAxis,
9761
9911
  crosshairLine: crosshairLine,
9762
- pivotGrid: getDarkPivotChartGridConfig()
9912
+ pivotGrid: getDarkPivotChartGridConfig(),
9913
+ annotation: getDarkAnnotation()
9763
9914
  },
9764
9915
  areaPercent: {
9765
9916
  ...baseConfig,
9766
9917
  xAxis: bandAxis,
9767
9918
  yAxis: linearAxis,
9768
9919
  crosshairLine: crosshairLine,
9769
- pivotGrid: getDarkPivotChartGridConfig()
9920
+ pivotGrid: getDarkPivotChartGridConfig(),
9921
+ annotation: getDarkAnnotation()
9770
9922
  },
9771
9923
  scatter: {
9772
9924
  ...baseConfig,
@@ -9794,7 +9946,8 @@
9794
9946
  showValue: false,
9795
9947
  showValuePercent: false
9796
9948
  },
9797
- pivotGrid: getDarkPivotChartGridConfig()
9949
+ pivotGrid: getDarkPivotChartGridConfig(),
9950
+ annotation: getDarkAnnotation()
9798
9951
  },
9799
9952
  dualAxis: {
9800
9953
  ...baseConfig,
@@ -9811,7 +9964,8 @@
9811
9964
  secondary: 'line'
9812
9965
  },
9813
9966
  crosshairRect,
9814
- pivotGrid: getDarkPivotChartGridConfig()
9967
+ pivotGrid: getDarkPivotChartGridConfig(),
9968
+ annotation: getDarkAnnotation()
9815
9969
  },
9816
9970
  pie: {
9817
9971
  ...baseConfig,
@@ -13494,7 +13648,8 @@
13494
13648
  grid: schemas_object({
13495
13649
  visible: schemas_boolean().default(false).nullish(),
13496
13650
  gridColor: schemas_string().default('rgba(54, 65, 89, 0.15)').nullish(),
13497
- gridWidth: schemas_number().default(0.5).nullish()
13651
+ gridWidth: schemas_number().default(0.5).nullish(),
13652
+ gridLineDash: schemas_array(schemas_number()).nullish()
13498
13653
  }).nullish()
13499
13654
  });
13500
13655
  const zYBandAxis = zXBandAxis;
@@ -13536,7 +13691,8 @@
13536
13691
  grid: schemas_object({
13537
13692
  visible: schemas_boolean().default(false).nullish(),
13538
13693
  gridColor: schemas_string().default('rgba(54, 65, 89, 0.15)').nullish(),
13539
- gridWidth: schemas_number().default(0.5).nullish()
13694
+ gridWidth: schemas_number().default(0.5).nullish(),
13695
+ gridLineDash: schemas_array(schemas_number()).nullish()
13540
13696
  }).nullish()
13541
13697
  });
13542
13698
  const zYLinearAxis = zXLinearAxis;
@@ -13545,7 +13701,8 @@
13545
13701
  lineColor: schemas_string().nullish(),
13546
13702
  labelColor: schemas_string().nullish(),
13547
13703
  labelVisible: schemas_boolean().nullish(),
13548
- labelBackgroundColor: schemas_string().nullish()
13704
+ labelBackgroundColor: schemas_string().nullish(),
13705
+ lineDash: schemas_array(schemas_number()).nullish()
13549
13706
  });
13550
13707
  const zCrosshairRect = schemas_object({
13551
13708
  visible: schemas_boolean().nullish(),
@@ -13674,6 +13831,231 @@
13674
13831
  const zTooltip = schemas_object({
13675
13832
  enable: schemas_boolean().default(true).nullish()
13676
13833
  });
13834
+ const zSelector = union([
13835
+ schemas_string(),
13836
+ schemas_number(),
13837
+ schemas_object({
13838
+ field: schemas_string(),
13839
+ operator: schemas_enum([
13840
+ '=',
13841
+ '==',
13842
+ '!=',
13843
+ '>',
13844
+ '<',
13845
+ '>=',
13846
+ '<=',
13847
+ 'between'
13848
+ ]).nullish(),
13849
+ op: schemas_enum([
13850
+ '=',
13851
+ '==',
13852
+ '!=',
13853
+ '>',
13854
+ '<',
13855
+ '>=',
13856
+ '<=',
13857
+ 'between'
13858
+ ]).nullish(),
13859
+ value: union([
13860
+ schemas_string(),
13861
+ schemas_number(),
13862
+ schemas_array(union([
13863
+ schemas_string(),
13864
+ schemas_number()
13865
+ ]))
13866
+ ])
13867
+ }),
13868
+ schemas_object({
13869
+ field: schemas_string(),
13870
+ operator: schemas_enum([
13871
+ 'in',
13872
+ 'not in'
13873
+ ]).nullish(),
13874
+ op: schemas_enum([
13875
+ 'in',
13876
+ 'not in'
13877
+ ]).nullish(),
13878
+ value: union([
13879
+ schemas_string(),
13880
+ schemas_number(),
13881
+ schemas_array(union([
13882
+ schemas_string(),
13883
+ schemas_number()
13884
+ ]))
13885
+ ])
13886
+ })
13887
+ ]);
13888
+ const zSelectors = schemas_array(zSelector);
13889
+ const zAnnotationPoint = schemas_object({
13890
+ selector: union([
13891
+ zSelector,
13892
+ zSelectors
13893
+ ]).nullish(),
13894
+ text: schemas_string().or(schemas_array(schemas_string())).nullish(),
13895
+ textColor: schemas_string().default('#ffffff').nullish(),
13896
+ textFontSize: schemas_number().default(12).nullish(),
13897
+ textFontWeight: schemas_number().default(400).nullish(),
13898
+ textAlign: schemas_enum([
13899
+ 'left',
13900
+ 'right',
13901
+ 'center'
13902
+ ]).default('center').nullish(),
13903
+ textBaseline: schemas_enum([
13904
+ 'top',
13905
+ 'middle',
13906
+ 'bottom'
13907
+ ]).default('middle').nullish(),
13908
+ textBackgroundVisible: schemas_boolean().default(true).nullish(),
13909
+ textBackgroundColor: schemas_string().default('#212121').nullish(),
13910
+ textBackgroundBorderColor: schemas_string().nullish(),
13911
+ textBackgroundBorderWidth: schemas_number().default(1).nullish(),
13912
+ textBackgroundBorderRadius: schemas_number().default(4).nullish(),
13913
+ textBackgroundPadding: schemas_number().nullish(),
13914
+ offsetY: schemas_number().default(0).nullish(),
13915
+ offsetX: schemas_number().default(0).nullish()
13916
+ });
13917
+ const zAnnotationHorizontalLine = schemas_object({
13918
+ selector: union([
13919
+ zSelector,
13920
+ zSelectors
13921
+ ]).nullish(),
13922
+ yValue: union([
13923
+ schemas_number(),
13924
+ schemas_string(),
13925
+ schemas_array(union([
13926
+ schemas_number(),
13927
+ schemas_string()
13928
+ ]))
13929
+ ]).nullish(),
13930
+ text: schemas_string().or(schemas_array(schemas_string())).nullish(),
13931
+ textPosition: schemas_enum([
13932
+ 'outsideStart',
13933
+ 'outsideEnd',
13934
+ 'outsideMiddle',
13935
+ 'insideStart',
13936
+ 'insideMiddle',
13937
+ 'insideEnd'
13938
+ ]).default('insideEnd').nullish(),
13939
+ textColor: schemas_string().default('#ffffff').nullish(),
13940
+ textFontSize: schemas_number().default(12).nullish(),
13941
+ textFontWeight: schemas_number().default(400).nullish(),
13942
+ textAlign: schemas_enum([
13943
+ 'left',
13944
+ 'right',
13945
+ 'center'
13946
+ ]).default('right').nullish(),
13947
+ textBaseline: schemas_enum([
13948
+ 'top',
13949
+ 'middle',
13950
+ 'bottom'
13951
+ ]).default('top').nullish(),
13952
+ lineVisible: schemas_boolean().default(true).nullish(),
13953
+ lineColor: schemas_string().default('#212121').nullish(),
13954
+ lineWidth: schemas_number().default(1).nullish(),
13955
+ lineStyle: union([
13956
+ literal('solid'),
13957
+ literal('dashed'),
13958
+ literal('dotted')
13959
+ ]).default('dashed').nullish(),
13960
+ textBackgroundVisible: schemas_boolean().default(true).nullish(),
13961
+ textBackgroundColor: schemas_string().default('#212121').nullish(),
13962
+ textBackgroundBorderColor: schemas_string().default('#212121').nullish(),
13963
+ textBackgroundBorderRadius: schemas_number().default(4).nullish(),
13964
+ textBackgroundBorderWidth: schemas_number().default(1).nullish(),
13965
+ textBackgroundPadding: schemas_number().default(2).nullish()
13966
+ });
13967
+ const zAnnotationArea = schemas_object({
13968
+ selector: union([
13969
+ zSelector,
13970
+ zSelectors
13971
+ ]).nullish(),
13972
+ textPosition: schemas_enum([
13973
+ 'top',
13974
+ 'topRight',
13975
+ 'topLeft',
13976
+ 'bottom',
13977
+ 'bottomLeft',
13978
+ 'bottomRight',
13979
+ 'left',
13980
+ 'right'
13981
+ ]).default('top').nullish(),
13982
+ text: schemas_string().or(schemas_array(schemas_string())).nullish(),
13983
+ textColor: schemas_string().default('#ffffff').nullish(),
13984
+ textFontSize: schemas_number().default(12).nullish(),
13985
+ textFontWeight: schemas_number().default(400).nullish(),
13986
+ textAlign: schemas_enum([
13987
+ 'left',
13988
+ 'right',
13989
+ 'center'
13990
+ ]).default('center').nullish(),
13991
+ textBaseline: schemas_enum([
13992
+ 'top',
13993
+ 'middle',
13994
+ 'bottom'
13995
+ ]).default('top').nullish(),
13996
+ textBackgroundVisible: schemas_boolean().default(true).nullish(),
13997
+ textBackgroundColor: schemas_string().default('#191d24').nullish(),
13998
+ textBackgroundBorderColor: schemas_string().default('#191d24').nullish(),
13999
+ textBackgroundBorderWidth: schemas_number().default(1).nullish(),
14000
+ textBackgroundBorderRadius: schemas_number().default(4).nullish(),
14001
+ textBackgroundPadding: schemas_number().default(4).nullish(),
14002
+ areaColor: schemas_string().default('#888888').nullish(),
14003
+ areaColorOpacity: schemas_number().default(0.15).nullish(),
14004
+ areaBorderColor: schemas_string().default('#888888').nullish(),
14005
+ areaBorderWidth: schemas_number().default(1).nullish(),
14006
+ areaBorderRadius: schemas_number().default(4).nullish(),
14007
+ outerPadding: schemas_number().default(4).nullish()
14008
+ });
14009
+ const zAnnotationPointConfig = zAnnotationPoint.omit({
14010
+ selector: true,
14011
+ text: true
14012
+ }).partial();
14013
+ const zAnnotationHorizontalLineConfig = zAnnotationHorizontalLine.pick({
14014
+ lineColor: true,
14015
+ lineWidth: true,
14016
+ lineVisible: true,
14017
+ lineStyle: true,
14018
+ textBackgroundVisible: true,
14019
+ textColor: true,
14020
+ textFontSize: true,
14021
+ textFontWeight: true,
14022
+ textBackgroundColor: true,
14023
+ textBackgroundBorderColor: true,
14024
+ textBackgroundBorderWidth: true,
14025
+ textBackgroundBorderRadius: true,
14026
+ textBackgroundPadding: true
14027
+ }).extend({
14028
+ endSymbolVisible: schemas_boolean().nullish(),
14029
+ endSymbolType: schemas_string().nullish(),
14030
+ endSymbolSize: schemas_number().nullish(),
14031
+ startSymbolVisible: schemas_boolean().nullish(),
14032
+ startSymbolType: schemas_string().nullish(),
14033
+ startSymbolSize: schemas_number().nullish()
14034
+ }).partial();
14035
+ const zAnnotationVerticalLineConfig = zAnnotationHorizontalLineConfig.clone();
14036
+ const zAnnotationAreaConfig = zAnnotationArea.pick({
14037
+ textColor: true,
14038
+ textFontSize: true,
14039
+ textFontWeight: true,
14040
+ textBackgroundVisible: true,
14041
+ textBackgroundColor: true,
14042
+ textBackgroundBorderColor: true,
14043
+ textBackgroundBorderWidth: true,
14044
+ textBackgroundBorderRadius: true,
14045
+ textBackgroundPadding: true,
14046
+ areaColor: true,
14047
+ areaColorOpacity: true,
14048
+ areaBorderColor: true,
14049
+ areaBorderWidth: true,
14050
+ areaBorderRadius: true,
14051
+ outerPadding: true
14052
+ }).partial();
14053
+ const zAnnotaionConfig = schemas_object({
14054
+ annotationPoint: zAnnotationPointConfig.nullish(),
14055
+ annotationHorizontalLine: zAnnotationHorizontalLineConfig.nullish(),
14056
+ annotationVerticalLine: zAnnotationVerticalLineConfig.nullish(),
14057
+ annotationArea: zAnnotationAreaConfig.nullish()
14058
+ });
13677
14059
  const zTableConfig = schemas_object({
13678
14060
  backgroundColor: zBackgroundColor.nullish(),
13679
14061
  borderColor: schemas_string().nullish(),
@@ -13708,7 +14090,8 @@
13708
14090
  xAxis: zXBandAxis.nullish(),
13709
14091
  yAxis: zYLinearAxis.nullish(),
13710
14092
  crosshairLine: zCrosshairLine.nullish(),
13711
- pivotGrid: zPivotChartGridConfig.nullish()
14093
+ pivotGrid: zPivotChartGridConfig.nullish(),
14094
+ annotation: zAnnotaionConfig.nullish()
13712
14095
  });
13713
14096
  const zColumnConfig = schemas_object({
13714
14097
  backgroundColor: zBackgroundColor.nullish(),
@@ -13720,7 +14103,8 @@
13720
14103
  yAxis: zYLinearAxis.nullish(),
13721
14104
  crosshairRect: zCrosshairRect.nullish(),
13722
14105
  stackCornerRadius: zStackCornerRadius.nullish(),
13723
- pivotGrid: zPivotChartGridConfig.nullish()
14106
+ pivotGrid: zPivotChartGridConfig.nullish(),
14107
+ annotation: zAnnotaionConfig.nullish()
13724
14108
  });
13725
14109
  const zColumnParallelConfig = zColumnConfig;
13726
14110
  const zColumnPercentConfig = zColumnConfig;
@@ -13734,7 +14118,8 @@
13734
14118
  yAxis: zYBandAxis.nullish(),
13735
14119
  crosshairRect: zCrosshairRect.nullish(),
13736
14120
  stackCornerRadius: zStackCornerRadius.nullish(),
13737
- pivotGrid: zPivotChartGridConfig.nullish()
14121
+ pivotGrid: zPivotChartGridConfig.nullish(),
14122
+ annotation: zAnnotaionConfig.nullish()
13738
14123
  });
13739
14124
  const zBarParallelConfig = zBarConfig;
13740
14125
  const zBarPercentConfig = zBarConfig;
@@ -13747,7 +14132,8 @@
13747
14132
  xAxis: zXBandAxis.nullish(),
13748
14133
  yAxis: zYLinearAxis.nullish(),
13749
14134
  crosshairLine: zCrosshairLine.nullish(),
13750
- pivotGrid: zPivotChartGridConfig.nullish()
14135
+ pivotGrid: zPivotChartGridConfig.nullish(),
14136
+ annotation: zAnnotaionConfig.nullish()
13751
14137
  });
13752
14138
  const zAreaPercentConfig = zAreaConfig;
13753
14139
  const zDualAxisConfig = schemas_object({
@@ -13762,7 +14148,8 @@
13762
14148
  secondaryYAxis: schemas_array(zYLinearAxis).or(zYLinearAxis).nullish(),
13763
14149
  xAxis: zXBandAxis.nullish(),
13764
14150
  crosshairRect: zCrosshairRect.nullish(),
13765
- pivotGrid: zPivotChartGridConfig.nullish()
14151
+ pivotGrid: zPivotChartGridConfig.nullish(),
14152
+ annotation: zAnnotaionConfig.nullish()
13766
14153
  });
13767
14154
  const zScatterConfig = schemas_object({
13768
14155
  backgroundColor: zBackgroundColor.nullish(),
@@ -13775,7 +14162,8 @@
13775
14162
  crosshairLine: zCrosshairLine.nullish(),
13776
14163
  size: schemas_number().or(schemas_array(schemas_number())).nullish(),
13777
14164
  sizeRange: schemas_number().or(schemas_array(schemas_number())).nullish(),
13778
- pivotGrid: zPivotChartGridConfig.nullish()
14165
+ pivotGrid: zPivotChartGridConfig.nullish(),
14166
+ annotation: zAnnotaionConfig.nullish()
13779
14167
  });
13780
14168
  const zRoseConfig = schemas_object({
13781
14169
  backgroundColor: zBackgroundColor.nullish(),
@@ -13792,7 +14180,8 @@
13792
14180
  color: zColor.nullish(),
13793
14181
  tooltip: zTooltip.nullish(),
13794
14182
  legend: zLegend.nullish(),
13795
- pivotGrid: zPivotChartGridConfig.nullish()
14183
+ pivotGrid: zPivotChartGridConfig.nullish(),
14184
+ cornerRadius: schemas_number().nullish()
13796
14185
  });
13797
14186
  const zDonutConfig = zPieConfig;
13798
14187
  const zRadarConfig = zPieConfig;
@@ -13825,61 +14214,6 @@
13825
14214
  });
13826
14215
  const zCustomTheme = record(schemas_string(), zCustomThemeConfig).nullish();
13827
14216
  const zTheme = schemas_string();
13828
- const zSelector = union([
13829
- schemas_string(),
13830
- schemas_number(),
13831
- schemas_object({
13832
- field: schemas_string(),
13833
- operator: schemas_enum([
13834
- '=',
13835
- '==',
13836
- '!=',
13837
- '>',
13838
- '<',
13839
- '>=',
13840
- '<=',
13841
- 'between'
13842
- ]).nullish(),
13843
- op: schemas_enum([
13844
- '=',
13845
- '==',
13846
- '!=',
13847
- '>',
13848
- '<',
13849
- '>=',
13850
- '<=',
13851
- 'between'
13852
- ]).nullish(),
13853
- value: union([
13854
- schemas_string(),
13855
- schemas_number(),
13856
- schemas_array(union([
13857
- schemas_string(),
13858
- schemas_number()
13859
- ]))
13860
- ])
13861
- }),
13862
- schemas_object({
13863
- field: schemas_string(),
13864
- operator: schemas_enum([
13865
- 'in',
13866
- 'not in'
13867
- ]).nullish(),
13868
- op: schemas_enum([
13869
- 'in',
13870
- 'not in'
13871
- ]).nullish(),
13872
- value: union([
13873
- schemas_string(),
13874
- schemas_number(),
13875
- schemas_array(union([
13876
- schemas_string(),
13877
- schemas_number()
13878
- ]))
13879
- ])
13880
- })
13881
- ]);
13882
- const zSelectors = schemas_array(zSelector);
13883
14217
  const zBarStyle = schemas_object({
13884
14218
  selector: union([
13885
14219
  zSelector,
@@ -13952,34 +14286,6 @@
13952
14286
  lineStyle: zLineStyle.or(schemas_array(zLineStyle)).nullish(),
13953
14287
  areaStyle: zAreaStyle.or(schemas_array(zAreaStyle)).nullish()
13954
14288
  });
13955
- const zAnnotationPoint = schemas_object({
13956
- selector: union([
13957
- zSelector,
13958
- zSelectors
13959
- ]).nullish(),
13960
- text: schemas_string().or(schemas_array(schemas_string())).nullish(),
13961
- textColor: schemas_string().default('#ffffff').nullish(),
13962
- textFontSize: schemas_number().default(12).nullish(),
13963
- textFontWeight: schemas_number().default(400).nullish(),
13964
- textAlign: schemas_enum([
13965
- 'left',
13966
- 'right',
13967
- 'center'
13968
- ]).default('center').nullish(),
13969
- textBaseline: schemas_enum([
13970
- 'top',
13971
- 'middle',
13972
- 'bottom'
13973
- ]).default('middle').nullish(),
13974
- textBackgroundVisible: schemas_boolean().default(true).nullish(),
13975
- textBackgroundColor: schemas_string().default('#212121').nullish(),
13976
- textBackgroundBorderColor: schemas_string().nullish(),
13977
- textBackgroundBorderWidth: schemas_number().default(1).nullish(),
13978
- textBackgroundBorderRadius: schemas_number().default(4).nullish(),
13979
- textBackgroundPadding: schemas_number().nullish(),
13980
- offsetY: schemas_number().default(0).nullish(),
13981
- offsetX: schemas_number().default(0).nullish()
13982
- });
13983
14289
  const zAnnotationVerticalLine = schemas_object({
13984
14290
  selector: union([
13985
14291
  zSelector,
@@ -14030,98 +14336,6 @@
14030
14336
  literal('dotted')
14031
14337
  ]).default('dashed').nullish()
14032
14338
  });
14033
- const zAnnotationHorizontalLine = schemas_object({
14034
- selector: union([
14035
- zSelector,
14036
- zSelectors
14037
- ]).nullish(),
14038
- yValue: union([
14039
- schemas_number(),
14040
- schemas_string(),
14041
- schemas_array(union([
14042
- schemas_number(),
14043
- schemas_string()
14044
- ]))
14045
- ]).nullish(),
14046
- text: schemas_string().or(schemas_array(schemas_string())).nullish(),
14047
- textPosition: schemas_enum([
14048
- 'outsideStart',
14049
- 'outsideEnd',
14050
- 'outsideMiddle',
14051
- 'insideStart',
14052
- 'insideMiddle',
14053
- 'insideEnd'
14054
- ]).default('insideEnd').nullish(),
14055
- textColor: schemas_string().default('#ffffff').nullish(),
14056
- textFontSize: schemas_number().default(12).nullish(),
14057
- textFontWeight: schemas_number().default(400).nullish(),
14058
- textAlign: schemas_enum([
14059
- 'left',
14060
- 'right',
14061
- 'center'
14062
- ]).default('right').nullish(),
14063
- textBaseline: schemas_enum([
14064
- 'top',
14065
- 'middle',
14066
- 'bottom'
14067
- ]).default('top').nullish(),
14068
- lineVisible: schemas_boolean().default(true).nullish(),
14069
- lineColor: schemas_string().default('#212121').nullish(),
14070
- lineWidth: schemas_number().default(1).nullish(),
14071
- lineStyle: union([
14072
- literal('solid'),
14073
- literal('dashed'),
14074
- literal('dotted')
14075
- ]).default('dashed').nullish(),
14076
- textBackgroundVisible: schemas_boolean().default(true).nullish(),
14077
- textBackgroundColor: schemas_string().default('#212121').nullish(),
14078
- textBackgroundBorderColor: schemas_string().default('#212121').nullish(),
14079
- textBackgroundBorderRadius: schemas_number().default(4).nullish(),
14080
- textBackgroundBorderWidth: schemas_number().default(1).nullish(),
14081
- textBackgroundPadding: schemas_number().default(2).nullish()
14082
- });
14083
- const zAnnotationArea = schemas_object({
14084
- selector: union([
14085
- zSelector,
14086
- zSelectors
14087
- ]).nullish(),
14088
- textPosition: schemas_enum([
14089
- 'top',
14090
- 'topRight',
14091
- 'topLeft',
14092
- 'bottom',
14093
- 'bottomLeft',
14094
- 'bottomRight',
14095
- 'left',
14096
- 'right'
14097
- ]).default('top').nullish(),
14098
- text: schemas_string().or(schemas_array(schemas_string())).nullish(),
14099
- textColor: schemas_string().default('#ffffff').nullish(),
14100
- textFontSize: schemas_number().default(12).nullish(),
14101
- textFontWeight: schemas_number().default(400).nullish(),
14102
- textAlign: schemas_enum([
14103
- 'left',
14104
- 'right',
14105
- 'center'
14106
- ]).default('center').nullish(),
14107
- textBaseline: schemas_enum([
14108
- 'top',
14109
- 'middle',
14110
- 'bottom'
14111
- ]).default('top').nullish(),
14112
- textBackgroundVisible: schemas_boolean().default(true).nullish(),
14113
- textBackgroundColor: schemas_string().default('#191d24').nullish(),
14114
- textBackgroundBorderColor: schemas_string().default('#191d24').nullish(),
14115
- textBackgroundBorderWidth: schemas_number().default(1).nullish(),
14116
- textBackgroundBorderRadius: schemas_number().default(4).nullish(),
14117
- textBackgroundPadding: schemas_number().default(4).nullish(),
14118
- areaColor: schemas_string().default('#888888').nullish(),
14119
- areaColorOpacity: schemas_number().default(0.15).nullish(),
14120
- areaBorderColor: schemas_string().default('#888888').nullish(),
14121
- areaBorderWidth: schemas_number().default(1).nullish(),
14122
- areaBorderRadius: schemas_number().default(4).nullish(),
14123
- outerPadding: schemas_number().default(4).nullish()
14124
- });
14125
14339
  const zAnnotation = schemas_object({
14126
14340
  annotationPoint: zAnnotationPoint.or(schemas_array(zAnnotationPoint)).nullish(),
14127
14341
  annotationVerticalLine: zAnnotationVerticalLine.or(schemas_array(zAnnotationVerticalLine)).nullish(),