@visactor/vseed 0.1.20 → 0.1.21

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 (121) hide show
  1. package/dist/cjs/index.cjs +2 -2
  2. package/dist/cjs/index.cjs.map +1 -1
  3. package/dist/esm/builder/builder/builder.d.ts +1270 -172
  4. package/dist/esm/pipeline/spec/chart/pipeline/donut.js +3 -3
  5. package/dist/esm/pipeline/spec/chart/pipeline/donut.js.map +1 -1
  6. package/dist/esm/pipeline/spec/chart/pipeline/dualAxis.js +3 -3
  7. package/dist/esm/pipeline/spec/chart/pipeline/dualAxis.js.map +1 -1
  8. package/dist/esm/pipeline/spec/chart/pipeline/pie.js +3 -3
  9. package/dist/esm/pipeline/spec/chart/pipeline/pie.js.map +1 -1
  10. package/dist/esm/pipeline/spec/chart/pipeline/rose.js +3 -3
  11. package/dist/esm/pipeline/spec/chart/pipeline/rose.js.map +1 -1
  12. package/dist/esm/pipeline/spec/chart/pipeline/roseParallel.js +3 -3
  13. package/dist/esm/pipeline/spec/chart/pipeline/roseParallel.js.map +1 -1
  14. package/dist/esm/pipeline/spec/chart/pipes/annotation/annotationAreaBand.js +16 -6
  15. package/dist/esm/pipeline/spec/chart/pipes/annotation/annotationAreaBand.js.map +1 -1
  16. package/dist/esm/pipeline/spec/chart/pipes/dataset/datasetPivot.js.map +1 -1
  17. package/dist/esm/pipeline/spec/chart/pipes/init/pivot.js.map +1 -1
  18. package/dist/esm/pipeline/spec/chart/pipes/label/index.d.ts +1 -0
  19. package/dist/esm/pipeline/spec/chart/pipes/label/index.js +2 -1
  20. package/dist/esm/pipeline/spec/chart/pipes/label/label.d.ts +3 -2
  21. package/dist/esm/pipeline/spec/chart/pipes/label/label.js +8 -11
  22. package/dist/esm/pipeline/spec/chart/pipes/label/label.js.map +1 -1
  23. package/dist/esm/pipeline/spec/chart/pipes/label/labelDualAxis.js +0 -4
  24. package/dist/esm/pipeline/spec/chart/pipes/label/labelDualAxis.js.map +1 -1
  25. package/dist/esm/pipeline/spec/chart/pipes/label/labelPie.d.ts +2 -0
  26. package/dist/esm/pipeline/spec/chart/pipes/label/labelPie.js +22 -0
  27. package/dist/esm/pipeline/spec/chart/pipes/label/labelPie.js.map +1 -0
  28. package/dist/esm/pipeline/spec/chart/pipes/label/labelScatter.js +0 -2
  29. package/dist/esm/pipeline/spec/chart/pipes/label/labelScatter.js.map +1 -1
  30. package/dist/esm/types/advancedVSeed.d.ts +474 -180
  31. package/dist/esm/types/chartType/area/area.d.ts +1 -1
  32. package/dist/esm/types/chartType/area/zArea.d.ts +5 -5
  33. package/dist/esm/types/chartType/area/zArea.js +1 -3
  34. package/dist/esm/types/chartType/area/zArea.js.map +1 -1
  35. package/dist/esm/types/chartType/areaPercent/areaPercent.d.ts +1 -1
  36. package/dist/esm/types/chartType/areaPercent/zAreaPercent.d.ts +5 -5
  37. package/dist/esm/types/chartType/areaPercent/zAreaPercent.js +1 -3
  38. package/dist/esm/types/chartType/areaPercent/zAreaPercent.js.map +1 -1
  39. package/dist/esm/types/chartType/bar/bar.d.ts +1 -1
  40. package/dist/esm/types/chartType/bar/zBar.d.ts +5 -5
  41. package/dist/esm/types/chartType/bar/zBar.js +1 -3
  42. package/dist/esm/types/chartType/bar/zBar.js.map +1 -1
  43. package/dist/esm/types/chartType/barParallel/barParallel.d.ts +1 -1
  44. package/dist/esm/types/chartType/barParallel/zBarParallel.d.ts +5 -5
  45. package/dist/esm/types/chartType/barParallel/zBarParallel.js +1 -3
  46. package/dist/esm/types/chartType/barParallel/zBarParallel.js.map +1 -1
  47. package/dist/esm/types/chartType/barPercent/barPercent.d.ts +1 -1
  48. package/dist/esm/types/chartType/barPercent/zBarPercent.d.ts +5 -5
  49. package/dist/esm/types/chartType/barPercent/zBarPercent.js +1 -3
  50. package/dist/esm/types/chartType/barPercent/zBarPercent.js.map +1 -1
  51. package/dist/esm/types/chartType/column/column.d.ts +1 -1
  52. package/dist/esm/types/chartType/column/zColumn.d.ts +5 -5
  53. package/dist/esm/types/chartType/column/zColumn.js +1 -3
  54. package/dist/esm/types/chartType/column/zColumn.js.map +1 -1
  55. package/dist/esm/types/chartType/columnParallel/columnParallel.d.ts +1 -1
  56. package/dist/esm/types/chartType/columnParallel/zColumnParallel.d.ts +5 -5
  57. package/dist/esm/types/chartType/columnParallel/zColumnParallel.js +1 -3
  58. package/dist/esm/types/chartType/columnParallel/zColumnParallel.js.map +1 -1
  59. package/dist/esm/types/chartType/columnPercent/columnPercent.d.ts +1 -1
  60. package/dist/esm/types/chartType/columnPercent/zColumnPercent.d.ts +5 -5
  61. package/dist/esm/types/chartType/columnPercent/zColumnPercent.js +1 -3
  62. package/dist/esm/types/chartType/columnPercent/zColumnPercent.js.map +1 -1
  63. package/dist/esm/types/chartType/donut/donut.d.ts +2 -2
  64. package/dist/esm/types/chartType/donut/zDonut.d.ts +1 -5
  65. package/dist/esm/types/chartType/donut/zDonut.js +2 -2
  66. package/dist/esm/types/chartType/donut/zDonut.js.map +1 -1
  67. package/dist/esm/types/chartType/dualAxis/dualAxis.d.ts +1 -1
  68. package/dist/esm/types/chartType/dualAxis/zDualAxis.d.ts +5 -5
  69. package/dist/esm/types/chartType/dualAxis/zDualAxis.js +1 -3
  70. package/dist/esm/types/chartType/dualAxis/zDualAxis.js.map +1 -1
  71. package/dist/esm/types/chartType/funnel/funnel.d.ts +1 -1
  72. package/dist/esm/types/chartType/funnel/zFunnel.d.ts +5 -5
  73. package/dist/esm/types/chartType/funnel/zFunnel.js +1 -3
  74. package/dist/esm/types/chartType/funnel/zFunnel.js.map +1 -1
  75. package/dist/esm/types/chartType/heatmap/heatmap.d.ts +1 -1
  76. package/dist/esm/types/chartType/heatmap/zHeatmap.d.ts +5 -5
  77. package/dist/esm/types/chartType/heatmap/zHeatmap.js +1 -3
  78. package/dist/esm/types/chartType/heatmap/zHeatmap.js.map +1 -1
  79. package/dist/esm/types/chartType/line/line.d.ts +1 -1
  80. package/dist/esm/types/chartType/line/zLine.d.ts +5 -5
  81. package/dist/esm/types/chartType/line/zLine.js +1 -3
  82. package/dist/esm/types/chartType/line/zLine.js.map +1 -1
  83. package/dist/esm/types/chartType/pie/pie.d.ts +2 -2
  84. package/dist/esm/types/chartType/pie/zPie.d.ts +1 -5
  85. package/dist/esm/types/chartType/pie/zPie.js +2 -2
  86. package/dist/esm/types/chartType/pie/zPie.js.map +1 -1
  87. package/dist/esm/types/chartType/radar/radar.d.ts +1 -1
  88. package/dist/esm/types/chartType/radar/zRadar.d.ts +5 -5
  89. package/dist/esm/types/chartType/radar/zRadar.js +1 -3
  90. package/dist/esm/types/chartType/radar/zRadar.js.map +1 -1
  91. package/dist/esm/types/chartType/rose/rose.d.ts +3 -3
  92. package/dist/esm/types/chartType/rose/zRose.d.ts +5 -5
  93. package/dist/esm/types/chartType/rose/zRose.js +1 -3
  94. package/dist/esm/types/chartType/rose/zRose.js.map +1 -1
  95. package/dist/esm/types/chartType/roseParallel/roseParallel.d.ts +3 -3
  96. package/dist/esm/types/chartType/roseParallel/zRoseParallel.d.ts +5 -5
  97. package/dist/esm/types/chartType/roseParallel/zRoseParallel.js +1 -3
  98. package/dist/esm/types/chartType/roseParallel/zRoseParallel.js.map +1 -1
  99. package/dist/esm/types/chartType/scatter/scatter.d.ts +1 -1
  100. package/dist/esm/types/chartType/scatter/zScatter.d.ts +5 -5
  101. package/dist/esm/types/chartType/scatter/zScatter.js +1 -3
  102. package/dist/esm/types/chartType/scatter/zScatter.js.map +1 -1
  103. package/dist/esm/types/properties/config/config.d.ts +474 -180
  104. package/dist/esm/types/properties/config/config.js +5 -5
  105. package/dist/esm/types/properties/config/config.js.map +1 -1
  106. package/dist/esm/types/properties/config/label/index.d.ts +2 -0
  107. package/dist/esm/types/properties/config/label/index.js +1 -0
  108. package/dist/esm/types/properties/config/label/label.d.ts +0 -7
  109. package/dist/esm/types/properties/config/label/pieLabel.d.ts +10 -0
  110. package/dist/esm/types/properties/config/label/pieLabel.js +0 -0
  111. package/dist/esm/types/properties/config/label/zLabel.d.ts +0 -5
  112. package/dist/esm/types/properties/config/label/zLabel.js +1 -6
  113. package/dist/esm/types/properties/config/label/zLabel.js.map +1 -1
  114. package/dist/esm/types/properties/config/label/zPieLabel.d.ts +46 -0
  115. package/dist/esm/types/properties/config/label/zPieLabel.js +12 -0
  116. package/dist/esm/types/properties/config/label/zPieLabel.js.map +1 -0
  117. package/dist/esm/types/properties/theme/customTheme.d.ts +474 -180
  118. package/dist/esm/types/zVseed.d.ts +82 -90
  119. package/dist/umd/index.js +85 -93
  120. package/dist/umd/index.js.map +1 -1
  121. package/package.json +7 -3
@@ -76,7 +76,7 @@ export interface Area {
76
76
  * 标签
77
77
  * @description 标签配置, 用于定义图表的数据标签, 包括数据标签的位置, 格式, 样式等.
78
78
  */
79
- label?: Omit<Label, 'labelLayout'>;
79
+ label?: Label;
80
80
  /**
81
81
  * 图例
82
82
  * @description 图例配置, 用于定义图表的图例, 包括图例的位置, 格式, 样式等.
@@ -118,6 +118,10 @@ export declare const zArea: z.ZodObject<{
118
118
  colorMapping: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
119
119
  }, z.core.$strip>>>;
120
120
  label: z.ZodOptional<z.ZodNullable<z.ZodObject<{
121
+ enable: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
122
+ wrap: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
123
+ showValue: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
124
+ showValuePercent: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
121
125
  autoFormat: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
122
126
  numFormat: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodObject<{
123
127
  type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
@@ -149,14 +153,10 @@ export declare const zArea: z.ZodObject<{
149
153
  halfEven: "halfEven";
150
154
  }>>>;
151
155
  }, z.core.$strip>>>>;
152
- labelColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
153
156
  labelFontSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
154
157
  labelFontWeight: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
155
158
  labelBackgroundColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
156
- enable: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
157
- wrap: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
158
- showValue: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
159
- showValuePercent: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
159
+ labelColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
160
160
  labelColorSmartInvert: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
161
161
  labelPosition: z.ZodOptional<z.ZodNullable<z.ZodString>>;
162
162
  labelOverlap: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
@@ -9,9 +9,7 @@ const zArea = z.object({
9
9
  measures: zMeasureTree.nullish(),
10
10
  backgroundColor: zBackgroundColor.nullish(),
11
11
  color: zColor.nullish(),
12
- label: zLabel.omit({
13
- labelLayout: true
14
- }).nullish(),
12
+ label: zLabel.nullish(),
15
13
  legend: zLegend.nullish(),
16
14
  tooltip: zTooltip.nullish(),
17
15
  xAxis: zXBandAxis.nullish(),
@@ -1 +1 @@
1
- {"version":3,"file":"types/chartType/area/zArea.js","sources":["webpack://@visactor/vseed/./src/types/chartType/area/zArea.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zLocale } from '../../i18n'\nimport {\n zAnnotationArea,\n zAnnotationHorizontalLine,\n zAnnotationPoint,\n zAnnotationVerticalLine,\n zAreaStyle,\n zBackgroundColor,\n zColor,\n zCrosshairLine,\n zDataset,\n zDimensions,\n zEncoding,\n zLabel,\n zLegend,\n zLineStyle,\n zMeasureTree,\n zPointStyle,\n zTheme,\n zTooltip,\n zXBandAxis,\n zYLinearAxis,\n} from '../../properties'\n\nexport const zArea = z.object({\n chartType: z.literal('area'),\n dataset: zDataset.nullish(),\n encoding: zEncoding.nullish(),\n dimensions: zDimensions.nullish(),\n measures: zMeasureTree.nullish(),\n backgroundColor: zBackgroundColor.nullish(),\n color: zColor.nullish(),\n label: zLabel.omit({ labelLayout: true }).nullish(),\n legend: zLegend.nullish(),\n tooltip: zTooltip.nullish(),\n xAxis: zXBandAxis.nullish(),\n yAxis: zYLinearAxis.nullish(),\n crosshairLine: zCrosshairLine.nullish(),\n theme: zTheme.nullish(),\n pointStyle: z.array(zPointStyle).or(zPointStyle).nullish(),\n lineStyle: z.array(zLineStyle).or(zLineStyle).nullish(),\n areaStyle: z.array(zAreaStyle).or(zAreaStyle).nullish(),\n annotationPoint: z.array(zAnnotationPoint).or(zAnnotationPoint).nullish(),\n annotationVerticalLine: z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).nullish(),\n annotationHorizontalLine: z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).nullish(),\n annotationArea: z.array(zAnnotationArea).or(zAnnotationArea).nullish(),\n locale: zLocale.nullish(),\n})\n"],"names":["zArea","z","zDataset","zEncoding","zDimensions","zMeasureTree","zBackgroundColor","zColor","zLabel","zLegend","zTooltip","zXBandAxis","zYLinearAxis","zCrosshairLine","zTheme","zPointStyle","zLineStyle","zAreaStyle","zAnnotationPoint","zAnnotationVerticalLine","zAnnotationHorizontalLine","zAnnotationArea","zLocale"],"mappings":";;;AAyBO,MAAMA,QAAQC,EAAE,MAAM,CAAC;IAC5B,WAAWA,EAAE,OAAO,CAAC;IACrB,SAASC,SAAS,OAAO;IACzB,UAAUC,UAAU,OAAO;IAC3B,YAAYC,YAAY,OAAO;IAC/B,UAAUC,aAAa,OAAO;IAC9B,iBAAiBC,iBAAiB,OAAO;IACzC,OAAOC,OAAO,OAAO;IACrB,OAAOC,OAAO,IAAI,CAAC;QAAE,aAAa;IAAK,GAAG,OAAO;IACjD,QAAQC,QAAQ,OAAO;IACvB,SAASC,SAAS,OAAO;IACzB,OAAOC,WAAW,OAAO;IACzB,OAAOC,aAAa,OAAO;IAC3B,eAAeC,eAAe,OAAO;IACrC,OAAOC,OAAO,OAAO;IACrB,YAAYb,EAAE,KAAK,CAACc,aAAa,EAAE,CAACA,aAAa,OAAO;IACxD,WAAWd,EAAE,KAAK,CAACe,YAAY,EAAE,CAACA,YAAY,OAAO;IACrD,WAAWf,EAAE,KAAK,CAACgB,YAAY,EAAE,CAACA,YAAY,OAAO;IACrD,iBAAiBhB,EAAE,KAAK,CAACiB,kBAAkB,EAAE,CAACA,kBAAkB,OAAO;IACvE,wBAAwBjB,EAAE,KAAK,CAACkB,yBAAyB,EAAE,CAACA,yBAAyB,OAAO;IAC5F,0BAA0BlB,EAAE,KAAK,CAACmB,2BAA2B,EAAE,CAACA,2BAA2B,OAAO;IAClG,gBAAgBnB,EAAE,KAAK,CAACoB,iBAAiB,EAAE,CAACA,iBAAiB,OAAO;IACpE,QAAQC,QAAQ,OAAO;AACzB"}
1
+ {"version":3,"file":"types/chartType/area/zArea.js","sources":["webpack://@visactor/vseed/./src/types/chartType/area/zArea.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zLocale } from '../../i18n'\nimport {\n zAnnotationArea,\n zAnnotationHorizontalLine,\n zAnnotationPoint,\n zAnnotationVerticalLine,\n zAreaStyle,\n zBackgroundColor,\n zColor,\n zCrosshairLine,\n zDataset,\n zDimensions,\n zEncoding,\n zLabel,\n zLegend,\n zLineStyle,\n zMeasureTree,\n zPointStyle,\n zTheme,\n zTooltip,\n zXBandAxis,\n zYLinearAxis,\n} from '../../properties'\n\nexport const zArea = z.object({\n chartType: z.literal('area'),\n dataset: zDataset.nullish(),\n encoding: zEncoding.nullish(),\n dimensions: zDimensions.nullish(),\n measures: zMeasureTree.nullish(),\n backgroundColor: zBackgroundColor.nullish(),\n color: zColor.nullish(),\n label: zLabel.nullish(),\n legend: zLegend.nullish(),\n tooltip: zTooltip.nullish(),\n xAxis: zXBandAxis.nullish(),\n yAxis: zYLinearAxis.nullish(),\n crosshairLine: zCrosshairLine.nullish(),\n theme: zTheme.nullish(),\n pointStyle: z.array(zPointStyle).or(zPointStyle).nullish(),\n lineStyle: z.array(zLineStyle).or(zLineStyle).nullish(),\n areaStyle: z.array(zAreaStyle).or(zAreaStyle).nullish(),\n annotationPoint: z.array(zAnnotationPoint).or(zAnnotationPoint).nullish(),\n annotationVerticalLine: z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).nullish(),\n annotationHorizontalLine: z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).nullish(),\n annotationArea: z.array(zAnnotationArea).or(zAnnotationArea).nullish(),\n locale: zLocale.nullish(),\n})\n"],"names":["zArea","z","zDataset","zEncoding","zDimensions","zMeasureTree","zBackgroundColor","zColor","zLabel","zLegend","zTooltip","zXBandAxis","zYLinearAxis","zCrosshairLine","zTheme","zPointStyle","zLineStyle","zAreaStyle","zAnnotationPoint","zAnnotationVerticalLine","zAnnotationHorizontalLine","zAnnotationArea","zLocale"],"mappings":";;;AAyBO,MAAMA,QAAQC,EAAE,MAAM,CAAC;IAC5B,WAAWA,EAAE,OAAO,CAAC;IACrB,SAASC,SAAS,OAAO;IACzB,UAAUC,UAAU,OAAO;IAC3B,YAAYC,YAAY,OAAO;IAC/B,UAAUC,aAAa,OAAO;IAC9B,iBAAiBC,iBAAiB,OAAO;IACzC,OAAOC,OAAO,OAAO;IACrB,OAAOC,OAAO,OAAO;IACrB,QAAQC,QAAQ,OAAO;IACvB,SAASC,SAAS,OAAO;IACzB,OAAOC,WAAW,OAAO;IACzB,OAAOC,aAAa,OAAO;IAC3B,eAAeC,eAAe,OAAO;IACrC,OAAOC,OAAO,OAAO;IACrB,YAAYb,EAAE,KAAK,CAACc,aAAa,EAAE,CAACA,aAAa,OAAO;IACxD,WAAWd,EAAE,KAAK,CAACe,YAAY,EAAE,CAACA,YAAY,OAAO;IACrD,WAAWf,EAAE,KAAK,CAACgB,YAAY,EAAE,CAACA,YAAY,OAAO;IACrD,iBAAiBhB,EAAE,KAAK,CAACiB,kBAAkB,EAAE,CAACA,kBAAkB,OAAO;IACvE,wBAAwBjB,EAAE,KAAK,CAACkB,yBAAyB,EAAE,CAACA,yBAAyB,OAAO;IAC5F,0BAA0BlB,EAAE,KAAK,CAACmB,2BAA2B,EAAE,CAACA,2BAA2B,OAAO;IAClG,gBAAgBnB,EAAE,KAAK,CAACoB,iBAAiB,EAAE,CAACA,iBAAiB,OAAO;IACpE,QAAQC,QAAQ,OAAO;AACzB"}
@@ -68,7 +68,7 @@ export interface AreaPercent {
68
68
  * 标签
69
69
  * @description 标签配置, 用于定义图表的数据标签, 包括数据标签的位置, 格式, 样式等.
70
70
  */
71
- label?: Omit<Label, 'labelLayout'>;
71
+ label?: Label;
72
72
  /**
73
73
  * 图例
74
74
  * @description 图例配置, 用于定义图表的图例, 包括图例的位置, 格式, 样式等.
@@ -118,6 +118,10 @@ export declare const zAreaPercent: z.ZodObject<{
118
118
  colorMapping: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
119
119
  }, z.core.$strip>>>;
120
120
  label: z.ZodOptional<z.ZodNullable<z.ZodObject<{
121
+ enable: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
122
+ wrap: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
123
+ showValue: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
124
+ showValuePercent: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
121
125
  autoFormat: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
122
126
  numFormat: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodObject<{
123
127
  type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
@@ -149,14 +153,10 @@ export declare const zAreaPercent: z.ZodObject<{
149
153
  halfEven: "halfEven";
150
154
  }>>>;
151
155
  }, z.core.$strip>>>>;
152
- labelColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
153
156
  labelFontSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
154
157
  labelFontWeight: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
155
158
  labelBackgroundColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
156
- enable: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
157
- wrap: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
158
- showValue: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
159
- showValuePercent: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
159
+ labelColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
160
160
  labelColorSmartInvert: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
161
161
  labelPosition: z.ZodOptional<z.ZodNullable<z.ZodString>>;
162
162
  labelOverlap: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
@@ -9,9 +9,7 @@ const zAreaPercent = z.object({
9
9
  measures: zMeasureTree.nullish(),
10
10
  backgroundColor: zBackgroundColor.nullish(),
11
11
  color: zColor.nullish(),
12
- label: zLabel.omit({
13
- labelLayout: true
14
- }).nullish(),
12
+ label: zLabel.nullish(),
15
13
  legend: zLegend.nullish(),
16
14
  tooltip: zTooltip.nullish(),
17
15
  xAxis: zXBandAxis.nullish(),
@@ -1 +1 @@
1
- {"version":3,"file":"types/chartType/areaPercent/zAreaPercent.js","sources":["webpack://@visactor/vseed/./src/types/chartType/areaPercent/zAreaPercent.ts"],"sourcesContent":["import { zLocale } from '../../i18n'\nimport {\n zAnnotationArea,\n zAnnotationHorizontalLine,\n zAnnotationPoint,\n zAnnotationVerticalLine,\n zAreaStyle,\n zBackgroundColor,\n zColor,\n zCrosshairLine,\n zDataset,\n zDimensions,\n zEncoding,\n zLabel,\n zLegend,\n zLineStyle,\n zMeasureTree,\n zPointStyle,\n zTheme,\n zTooltip,\n zXBandAxis,\n zYLinearAxis,\n} from '../../properties'\n\nimport { z } from 'zod'\n\nexport const zAreaPercent = z.object({\n chartType: z.literal('areaPercent'),\n dataset: zDataset.nullish(),\n encoding: zEncoding.nullish(),\n dimensions: zDimensions.nullish(),\n measures: zMeasureTree.nullish(),\n backgroundColor: zBackgroundColor.nullish(),\n color: zColor.nullish(),\n label: zLabel.omit({ labelLayout: true }).nullish(),\n legend: zLegend.nullish(),\n tooltip: zTooltip.nullish(),\n xAxis: zXBandAxis.nullish(),\n yAxis: zYLinearAxis.nullish(),\n crosshairLine: zCrosshairLine.nullish(),\n theme: zTheme.nullish(),\n pointStyle: z.array(zPointStyle).or(zPointStyle).nullish(),\n lineStyle: z.array(zLineStyle).or(zLineStyle).nullish(),\n areaStyle: z.array(zAreaStyle).or(zAreaStyle).nullish(),\n annotationPoint: z.array(zAnnotationPoint).or(zAnnotationPoint).nullish(),\n annotationVerticalLine: z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).nullish(),\n annotationHorizontalLine: z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).nullish(),\n annotationArea: z.array(zAnnotationArea).or(zAnnotationArea).nullish(),\n locale: zLocale.nullish(),\n})\n"],"names":["zAreaPercent","z","zDataset","zEncoding","zDimensions","zMeasureTree","zBackgroundColor","zColor","zLabel","zLegend","zTooltip","zXBandAxis","zYLinearAxis","zCrosshairLine","zTheme","zPointStyle","zLineStyle","zAreaStyle","zAnnotationPoint","zAnnotationVerticalLine","zAnnotationHorizontalLine","zAnnotationArea","zLocale"],"mappings":";;;AA0BO,MAAMA,eAAeC,EAAE,MAAM,CAAC;IACnC,WAAWA,EAAE,OAAO,CAAC;IACrB,SAASC,SAAS,OAAO;IACzB,UAAUC,UAAU,OAAO;IAC3B,YAAYC,YAAY,OAAO;IAC/B,UAAUC,aAAa,OAAO;IAC9B,iBAAiBC,iBAAiB,OAAO;IACzC,OAAOC,OAAO,OAAO;IACrB,OAAOC,OAAO,IAAI,CAAC;QAAE,aAAa;IAAK,GAAG,OAAO;IACjD,QAAQC,QAAQ,OAAO;IACvB,SAASC,SAAS,OAAO;IACzB,OAAOC,WAAW,OAAO;IACzB,OAAOC,aAAa,OAAO;IAC3B,eAAeC,eAAe,OAAO;IACrC,OAAOC,OAAO,OAAO;IACrB,YAAYb,EAAE,KAAK,CAACc,aAAa,EAAE,CAACA,aAAa,OAAO;IACxD,WAAWd,EAAE,KAAK,CAACe,YAAY,EAAE,CAACA,YAAY,OAAO;IACrD,WAAWf,EAAE,KAAK,CAACgB,YAAY,EAAE,CAACA,YAAY,OAAO;IACrD,iBAAiBhB,EAAE,KAAK,CAACiB,kBAAkB,EAAE,CAACA,kBAAkB,OAAO;IACvE,wBAAwBjB,EAAE,KAAK,CAACkB,yBAAyB,EAAE,CAACA,yBAAyB,OAAO;IAC5F,0BAA0BlB,EAAE,KAAK,CAACmB,2BAA2B,EAAE,CAACA,2BAA2B,OAAO;IAClG,gBAAgBnB,EAAE,KAAK,CAACoB,iBAAiB,EAAE,CAACA,iBAAiB,OAAO;IACpE,QAAQC,QAAQ,OAAO;AACzB"}
1
+ {"version":3,"file":"types/chartType/areaPercent/zAreaPercent.js","sources":["webpack://@visactor/vseed/./src/types/chartType/areaPercent/zAreaPercent.ts"],"sourcesContent":["import { zLocale } from '../../i18n'\nimport {\n zAnnotationArea,\n zAnnotationHorizontalLine,\n zAnnotationPoint,\n zAnnotationVerticalLine,\n zAreaStyle,\n zBackgroundColor,\n zColor,\n zCrosshairLine,\n zDataset,\n zDimensions,\n zEncoding,\n zLabel,\n zLegend,\n zLineStyle,\n zMeasureTree,\n zPointStyle,\n zTheme,\n zTooltip,\n zXBandAxis,\n zYLinearAxis,\n} from '../../properties'\n\nimport { z } from 'zod'\n\nexport const zAreaPercent = z.object({\n chartType: z.literal('areaPercent'),\n dataset: zDataset.nullish(),\n encoding: zEncoding.nullish(),\n dimensions: zDimensions.nullish(),\n measures: zMeasureTree.nullish(),\n backgroundColor: zBackgroundColor.nullish(),\n color: zColor.nullish(),\n label: zLabel.nullish(),\n legend: zLegend.nullish(),\n tooltip: zTooltip.nullish(),\n xAxis: zXBandAxis.nullish(),\n yAxis: zYLinearAxis.nullish(),\n crosshairLine: zCrosshairLine.nullish(),\n theme: zTheme.nullish(),\n pointStyle: z.array(zPointStyle).or(zPointStyle).nullish(),\n lineStyle: z.array(zLineStyle).or(zLineStyle).nullish(),\n areaStyle: z.array(zAreaStyle).or(zAreaStyle).nullish(),\n annotationPoint: z.array(zAnnotationPoint).or(zAnnotationPoint).nullish(),\n annotationVerticalLine: z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).nullish(),\n annotationHorizontalLine: z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).nullish(),\n annotationArea: z.array(zAnnotationArea).or(zAnnotationArea).nullish(),\n locale: zLocale.nullish(),\n})\n"],"names":["zAreaPercent","z","zDataset","zEncoding","zDimensions","zMeasureTree","zBackgroundColor","zColor","zLabel","zLegend","zTooltip","zXBandAxis","zYLinearAxis","zCrosshairLine","zTheme","zPointStyle","zLineStyle","zAreaStyle","zAnnotationPoint","zAnnotationVerticalLine","zAnnotationHorizontalLine","zAnnotationArea","zLocale"],"mappings":";;;AA0BO,MAAMA,eAAeC,EAAE,MAAM,CAAC;IACnC,WAAWA,EAAE,OAAO,CAAC;IACrB,SAASC,SAAS,OAAO;IACzB,UAAUC,UAAU,OAAO;IAC3B,YAAYC,YAAY,OAAO;IAC/B,UAAUC,aAAa,OAAO;IAC9B,iBAAiBC,iBAAiB,OAAO;IACzC,OAAOC,OAAO,OAAO;IACrB,OAAOC,OAAO,OAAO;IACrB,QAAQC,QAAQ,OAAO;IACvB,SAASC,SAAS,OAAO;IACzB,OAAOC,WAAW,OAAO;IACzB,OAAOC,aAAa,OAAO;IAC3B,eAAeC,eAAe,OAAO;IACrC,OAAOC,OAAO,OAAO;IACrB,YAAYb,EAAE,KAAK,CAACc,aAAa,EAAE,CAACA,aAAa,OAAO;IACxD,WAAWd,EAAE,KAAK,CAACe,YAAY,EAAE,CAACA,YAAY,OAAO;IACrD,WAAWf,EAAE,KAAK,CAACgB,YAAY,EAAE,CAACA,YAAY,OAAO;IACrD,iBAAiBhB,EAAE,KAAK,CAACiB,kBAAkB,EAAE,CAACA,kBAAkB,OAAO;IACvE,wBAAwBjB,EAAE,KAAK,CAACkB,yBAAyB,EAAE,CAACA,yBAAyB,OAAO;IAC5F,0BAA0BlB,EAAE,KAAK,CAACmB,2BAA2B,EAAE,CAACA,2BAA2B,OAAO;IAClG,gBAAgBnB,EAAE,KAAK,CAACoB,iBAAiB,EAAE,CAACA,iBAAiB,OAAO;IACpE,QAAQC,QAAQ,OAAO;AACzB"}
@@ -64,7 +64,7 @@ export interface Bar {
64
64
  /**
65
65
  * @description 标签配置, 用于定义图表的数据标签, 包括数据标签的位置, 格式, 样式等.
66
66
  */
67
- label?: Omit<Label, 'labelLayout'>;
67
+ label?: Label;
68
68
  /**
69
69
  * @description 图例配置, 用于定义图表的图例, 包括图例的位置, 格式, 样式等.
70
70
  */
@@ -118,6 +118,10 @@ export declare const zBar: z.ZodObject<{
118
118
  colorMapping: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
119
119
  }, z.core.$strip>>>;
120
120
  label: z.ZodOptional<z.ZodNullable<z.ZodObject<{
121
+ enable: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
122
+ wrap: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
123
+ showValue: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
124
+ showValuePercent: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
121
125
  autoFormat: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
122
126
  numFormat: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodObject<{
123
127
  type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
@@ -149,14 +153,10 @@ export declare const zBar: z.ZodObject<{
149
153
  halfEven: "halfEven";
150
154
  }>>>;
151
155
  }, z.core.$strip>>>>;
152
- labelColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
153
156
  labelFontSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
154
157
  labelFontWeight: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
155
158
  labelBackgroundColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
156
- enable: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
157
- wrap: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
158
- showValue: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
159
- showValuePercent: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
159
+ labelColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
160
160
  labelColorSmartInvert: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
161
161
  labelPosition: z.ZodOptional<z.ZodNullable<z.ZodString>>;
162
162
  labelOverlap: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
@@ -9,9 +9,7 @@ const zBar = z.object({
9
9
  measures: zMeasureTree.nullish(),
10
10
  backgroundColor: zBackgroundColor.nullish(),
11
11
  color: zColor.nullish(),
12
- label: zLabel.omit({
13
- labelLayout: true
14
- }).nullish(),
12
+ label: zLabel.nullish(),
15
13
  legend: zLegend.nullish(),
16
14
  tooltip: zTooltip.nullish(),
17
15
  xAxis: zXLinearAxis.nullish(),
@@ -1 +1 @@
1
- {"version":3,"file":"types/chartType/bar/zBar.js","sources":["webpack://@visactor/vseed/./src/types/chartType/bar/zBar.ts"],"sourcesContent":["import { zLocale } from '../../i18n'\nimport {\n zAnnotationArea,\n zAnnotationHorizontalLine,\n zAnnotationPoint,\n zAnnotationVerticalLine,\n zBackgroundColor,\n zBarStyle,\n zColor,\n zCrosshairRect,\n zDataset,\n zDimensions,\n zEncoding,\n zLabel,\n zLegend,\n zMeasureTree,\n zStackCornerRadius,\n zTheme,\n zTooltip,\n zXLinearAxis,\n zYBandAxis,\n} from '../../properties'\n\nimport { z } from 'zod'\n\nexport const zBar = z.object({\n chartType: z.literal('bar'),\n dataset: zDataset.nullish(),\n encoding: zEncoding.nullish(),\n dimensions: zDimensions.nullish(),\n measures: zMeasureTree.nullish(),\n backgroundColor: zBackgroundColor.nullish(),\n color: zColor.nullish(),\n label: zLabel.omit({ labelLayout: true }).nullish(),\n legend: zLegend.nullish(),\n tooltip: zTooltip.nullish(),\n xAxis: zXLinearAxis.nullish(),\n yAxis: zYBandAxis.nullish(),\n crosshairRect: zCrosshairRect.nullish(),\n stackCornerRadius: zStackCornerRadius.nullish(),\n theme: zTheme.nullish(),\n barStyle: z.array(zBarStyle).or(zBarStyle).nullish(),\n annotationPoint: z.array(zAnnotationPoint).or(zAnnotationPoint).nullish(),\n annotationVerticalLine: z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).nullish(),\n annotationHorizontalLine: z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).nullish(),\n annotationArea: z.array(zAnnotationArea).or(zAnnotationArea).nullish(),\n locale: zLocale.nullish(),\n})\n"],"names":["zBar","z","zDataset","zEncoding","zDimensions","zMeasureTree","zBackgroundColor","zColor","zLabel","zLegend","zTooltip","zXLinearAxis","zYBandAxis","zCrosshairRect","zStackCornerRadius","zTheme","zBarStyle","zAnnotationPoint","zAnnotationVerticalLine","zAnnotationHorizontalLine","zAnnotationArea","zLocale"],"mappings":";;;AAyBO,MAAMA,OAAOC,EAAE,MAAM,CAAC;IAC3B,WAAWA,EAAE,OAAO,CAAC;IACrB,SAASC,SAAS,OAAO;IACzB,UAAUC,UAAU,OAAO;IAC3B,YAAYC,YAAY,OAAO;IAC/B,UAAUC,aAAa,OAAO;IAC9B,iBAAiBC,iBAAiB,OAAO;IACzC,OAAOC,OAAO,OAAO;IACrB,OAAOC,OAAO,IAAI,CAAC;QAAE,aAAa;IAAK,GAAG,OAAO;IACjD,QAAQC,QAAQ,OAAO;IACvB,SAASC,SAAS,OAAO;IACzB,OAAOC,aAAa,OAAO;IAC3B,OAAOC,WAAW,OAAO;IACzB,eAAeC,eAAe,OAAO;IACrC,mBAAmBC,mBAAmB,OAAO;IAC7C,OAAOC,OAAO,OAAO;IACrB,UAAUd,EAAE,KAAK,CAACe,WAAW,EAAE,CAACA,WAAW,OAAO;IAClD,iBAAiBf,EAAE,KAAK,CAACgB,kBAAkB,EAAE,CAACA,kBAAkB,OAAO;IACvE,wBAAwBhB,EAAE,KAAK,CAACiB,yBAAyB,EAAE,CAACA,yBAAyB,OAAO;IAC5F,0BAA0BjB,EAAE,KAAK,CAACkB,2BAA2B,EAAE,CAACA,2BAA2B,OAAO;IAClG,gBAAgBlB,EAAE,KAAK,CAACmB,iBAAiB,EAAE,CAACA,iBAAiB,OAAO;IACpE,QAAQC,QAAQ,OAAO;AACzB"}
1
+ {"version":3,"file":"types/chartType/bar/zBar.js","sources":["webpack://@visactor/vseed/./src/types/chartType/bar/zBar.ts"],"sourcesContent":["import { zLocale } from '../../i18n'\nimport {\n zAnnotationArea,\n zAnnotationHorizontalLine,\n zAnnotationPoint,\n zAnnotationVerticalLine,\n zBackgroundColor,\n zBarStyle,\n zColor,\n zCrosshairRect,\n zDataset,\n zDimensions,\n zEncoding,\n zLabel,\n zLegend,\n zMeasureTree,\n zStackCornerRadius,\n zTheme,\n zTooltip,\n zXLinearAxis,\n zYBandAxis,\n} from '../../properties'\n\nimport { z } from 'zod'\n\nexport const zBar = z.object({\n chartType: z.literal('bar'),\n dataset: zDataset.nullish(),\n encoding: zEncoding.nullish(),\n dimensions: zDimensions.nullish(),\n measures: zMeasureTree.nullish(),\n backgroundColor: zBackgroundColor.nullish(),\n color: zColor.nullish(),\n label: zLabel.nullish(),\n legend: zLegend.nullish(),\n tooltip: zTooltip.nullish(),\n xAxis: zXLinearAxis.nullish(),\n yAxis: zYBandAxis.nullish(),\n crosshairRect: zCrosshairRect.nullish(),\n stackCornerRadius: zStackCornerRadius.nullish(),\n theme: zTheme.nullish(),\n barStyle: z.array(zBarStyle).or(zBarStyle).nullish(),\n annotationPoint: z.array(zAnnotationPoint).or(zAnnotationPoint).nullish(),\n annotationVerticalLine: z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).nullish(),\n annotationHorizontalLine: z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).nullish(),\n annotationArea: z.array(zAnnotationArea).or(zAnnotationArea).nullish(),\n locale: zLocale.nullish(),\n})\n"],"names":["zBar","z","zDataset","zEncoding","zDimensions","zMeasureTree","zBackgroundColor","zColor","zLabel","zLegend","zTooltip","zXLinearAxis","zYBandAxis","zCrosshairRect","zStackCornerRadius","zTheme","zBarStyle","zAnnotationPoint","zAnnotationVerticalLine","zAnnotationHorizontalLine","zAnnotationArea","zLocale"],"mappings":";;;AAyBO,MAAMA,OAAOC,EAAE,MAAM,CAAC;IAC3B,WAAWA,EAAE,OAAO,CAAC;IACrB,SAASC,SAAS,OAAO;IACzB,UAAUC,UAAU,OAAO;IAC3B,YAAYC,YAAY,OAAO;IAC/B,UAAUC,aAAa,OAAO;IAC9B,iBAAiBC,iBAAiB,OAAO;IACzC,OAAOC,OAAO,OAAO;IACrB,OAAOC,OAAO,OAAO;IACrB,QAAQC,QAAQ,OAAO;IACvB,SAASC,SAAS,OAAO;IACzB,OAAOC,aAAa,OAAO;IAC3B,OAAOC,WAAW,OAAO;IACzB,eAAeC,eAAe,OAAO;IACrC,mBAAmBC,mBAAmB,OAAO;IAC7C,OAAOC,OAAO,OAAO;IACrB,UAAUd,EAAE,KAAK,CAACe,WAAW,EAAE,CAACA,WAAW,OAAO;IAClD,iBAAiBf,EAAE,KAAK,CAACgB,kBAAkB,EAAE,CAACA,kBAAkB,OAAO;IACvE,wBAAwBhB,EAAE,KAAK,CAACiB,yBAAyB,EAAE,CAACA,yBAAyB,OAAO;IAC5F,0BAA0BjB,EAAE,KAAK,CAACkB,2BAA2B,EAAE,CAACA,2BAA2B,OAAO;IAClG,gBAAgBlB,EAAE,KAAK,CAACmB,iBAAiB,EAAE,CAACA,iBAAiB,OAAO;IACpE,QAAQC,QAAQ,OAAO;AACzB"}
@@ -61,7 +61,7 @@ export interface BarParallel {
61
61
  /**
62
62
  * @description 标签配置, 用于定义图表的数据标签, 包括数据标签的位置, 格式, 样式等.
63
63
  */
64
- label?: Omit<Label, 'labelLayout'>;
64
+ label?: Label;
65
65
  /**
66
66
  * @description 图例配置, 用于定义图表的图例, 包括图例的位置, 格式, 样式等.
67
67
  */
@@ -118,6 +118,10 @@ export declare const zBarParallel: z.ZodObject<{
118
118
  colorMapping: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
119
119
  }, z.core.$strip>>>;
120
120
  label: z.ZodOptional<z.ZodNullable<z.ZodObject<{
121
+ enable: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
122
+ wrap: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
123
+ showValue: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
124
+ showValuePercent: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
121
125
  autoFormat: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
122
126
  numFormat: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodObject<{
123
127
  type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
@@ -149,14 +153,10 @@ export declare const zBarParallel: z.ZodObject<{
149
153
  halfEven: "halfEven";
150
154
  }>>>;
151
155
  }, z.core.$strip>>>>;
152
- labelColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
153
156
  labelFontSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
154
157
  labelFontWeight: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
155
158
  labelBackgroundColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
156
- enable: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
157
- wrap: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
158
- showValue: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
159
- showValuePercent: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
159
+ labelColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
160
160
  labelColorSmartInvert: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
161
161
  labelPosition: z.ZodOptional<z.ZodNullable<z.ZodString>>;
162
162
  labelOverlap: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
@@ -9,9 +9,7 @@ const zBarParallel = z.object({
9
9
  measures: zMeasureTree.nullish(),
10
10
  backgroundColor: zBackgroundColor.nullish(),
11
11
  color: zColor.nullish(),
12
- label: zLabel.omit({
13
- labelLayout: true
14
- }).nullish(),
12
+ label: zLabel.nullish(),
15
13
  legend: zLegend.nullish(),
16
14
  tooltip: zTooltip.nullish(),
17
15
  xAxis: zXLinearAxis.nullish(),
@@ -1 +1 @@
1
- {"version":3,"file":"types/chartType/barParallel/zBarParallel.js","sources":["webpack://@visactor/vseed/./src/types/chartType/barParallel/zBarParallel.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zLocale } from '../../i18n'\nimport {\n zAnnotationArea,\n zAnnotationHorizontalLine,\n zAnnotationPoint,\n zAnnotationVerticalLine,\n zBackgroundColor,\n zBarStyle,\n zColor,\n zCrosshairRect,\n zDataset,\n zDimensions,\n zEncoding,\n zLabel,\n zLegend,\n zMeasureTree,\n zStackCornerRadius,\n zTheme,\n zTooltip,\n zXLinearAxis,\n zYBandAxis,\n} from '../../properties'\n\nexport const zBarParallel = z.object({\n chartType: z.literal('barParallel'),\n dataset: zDataset.nullish(),\n encoding: zEncoding.nullish(),\n dimensions: zDimensions.nullish(),\n measures: zMeasureTree.nullish(),\n backgroundColor: zBackgroundColor.nullish(),\n color: zColor.nullish(),\n label: zLabel.omit({ labelLayout: true }).nullish(),\n legend: zLegend.nullish(),\n tooltip: zTooltip.nullish(),\n xAxis: zXLinearAxis.nullish(),\n yAxis: zYBandAxis.nullish(),\n crosshairRect: zCrosshairRect.nullish(),\n stackCornerRadius: zStackCornerRadius.nullish(),\n theme: zTheme.nullish(),\n barStyle: z.array(zBarStyle).or(zBarStyle).nullish(),\n annotationPoint: z.array(zAnnotationPoint).or(zAnnotationPoint).nullish(),\n annotationVerticalLine: z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).nullish(),\n annotationHorizontalLine: z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).nullish(),\n annotationArea: z.array(zAnnotationArea).or(zAnnotationArea).nullish(),\n locale: zLocale.nullish(),\n})\n"],"names":["zBarParallel","z","zDataset","zEncoding","zDimensions","zMeasureTree","zBackgroundColor","zColor","zLabel","zLegend","zTooltip","zXLinearAxis","zYBandAxis","zCrosshairRect","zStackCornerRadius","zTheme","zBarStyle","zAnnotationPoint","zAnnotationVerticalLine","zAnnotationHorizontalLine","zAnnotationArea","zLocale"],"mappings":";;;AAwBO,MAAMA,eAAeC,EAAE,MAAM,CAAC;IACnC,WAAWA,EAAE,OAAO,CAAC;IACrB,SAASC,SAAS,OAAO;IACzB,UAAUC,UAAU,OAAO;IAC3B,YAAYC,YAAY,OAAO;IAC/B,UAAUC,aAAa,OAAO;IAC9B,iBAAiBC,iBAAiB,OAAO;IACzC,OAAOC,OAAO,OAAO;IACrB,OAAOC,OAAO,IAAI,CAAC;QAAE,aAAa;IAAK,GAAG,OAAO;IACjD,QAAQC,QAAQ,OAAO;IACvB,SAASC,SAAS,OAAO;IACzB,OAAOC,aAAa,OAAO;IAC3B,OAAOC,WAAW,OAAO;IACzB,eAAeC,eAAe,OAAO;IACrC,mBAAmBC,mBAAmB,OAAO;IAC7C,OAAOC,OAAO,OAAO;IACrB,UAAUd,EAAE,KAAK,CAACe,WAAW,EAAE,CAACA,WAAW,OAAO;IAClD,iBAAiBf,EAAE,KAAK,CAACgB,kBAAkB,EAAE,CAACA,kBAAkB,OAAO;IACvE,wBAAwBhB,EAAE,KAAK,CAACiB,yBAAyB,EAAE,CAACA,yBAAyB,OAAO;IAC5F,0BAA0BjB,EAAE,KAAK,CAACkB,2BAA2B,EAAE,CAACA,2BAA2B,OAAO;IAClG,gBAAgBlB,EAAE,KAAK,CAACmB,iBAAiB,EAAE,CAACA,iBAAiB,OAAO;IACpE,QAAQC,QAAQ,OAAO;AACzB"}
1
+ {"version":3,"file":"types/chartType/barParallel/zBarParallel.js","sources":["webpack://@visactor/vseed/./src/types/chartType/barParallel/zBarParallel.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zLocale } from '../../i18n'\nimport {\n zAnnotationArea,\n zAnnotationHorizontalLine,\n zAnnotationPoint,\n zAnnotationVerticalLine,\n zBackgroundColor,\n zBarStyle,\n zColor,\n zCrosshairRect,\n zDataset,\n zDimensions,\n zEncoding,\n zLabel,\n zLegend,\n zMeasureTree,\n zStackCornerRadius,\n zTheme,\n zTooltip,\n zXLinearAxis,\n zYBandAxis,\n} from '../../properties'\n\nexport const zBarParallel = z.object({\n chartType: z.literal('barParallel'),\n dataset: zDataset.nullish(),\n encoding: zEncoding.nullish(),\n dimensions: zDimensions.nullish(),\n measures: zMeasureTree.nullish(),\n backgroundColor: zBackgroundColor.nullish(),\n color: zColor.nullish(),\n label: zLabel.nullish(),\n legend: zLegend.nullish(),\n tooltip: zTooltip.nullish(),\n xAxis: zXLinearAxis.nullish(),\n yAxis: zYBandAxis.nullish(),\n crosshairRect: zCrosshairRect.nullish(),\n stackCornerRadius: zStackCornerRadius.nullish(),\n theme: zTheme.nullish(),\n barStyle: z.array(zBarStyle).or(zBarStyle).nullish(),\n annotationPoint: z.array(zAnnotationPoint).or(zAnnotationPoint).nullish(),\n annotationVerticalLine: z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).nullish(),\n annotationHorizontalLine: z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).nullish(),\n annotationArea: z.array(zAnnotationArea).or(zAnnotationArea).nullish(),\n locale: zLocale.nullish(),\n})\n"],"names":["zBarParallel","z","zDataset","zEncoding","zDimensions","zMeasureTree","zBackgroundColor","zColor","zLabel","zLegend","zTooltip","zXLinearAxis","zYBandAxis","zCrosshairRect","zStackCornerRadius","zTheme","zBarStyle","zAnnotationPoint","zAnnotationVerticalLine","zAnnotationHorizontalLine","zAnnotationArea","zLocale"],"mappings":";;;AAwBO,MAAMA,eAAeC,EAAE,MAAM,CAAC;IACnC,WAAWA,EAAE,OAAO,CAAC;IACrB,SAASC,SAAS,OAAO;IACzB,UAAUC,UAAU,OAAO;IAC3B,YAAYC,YAAY,OAAO;IAC/B,UAAUC,aAAa,OAAO;IAC9B,iBAAiBC,iBAAiB,OAAO;IACzC,OAAOC,OAAO,OAAO;IACrB,OAAOC,OAAO,OAAO;IACrB,QAAQC,QAAQ,OAAO;IACvB,SAASC,SAAS,OAAO;IACzB,OAAOC,aAAa,OAAO;IAC3B,OAAOC,WAAW,OAAO;IACzB,eAAeC,eAAe,OAAO;IACrC,mBAAmBC,mBAAmB,OAAO;IAC7C,OAAOC,OAAO,OAAO;IACrB,UAAUd,EAAE,KAAK,CAACe,WAAW,EAAE,CAACA,WAAW,OAAO;IAClD,iBAAiBf,EAAE,KAAK,CAACgB,kBAAkB,EAAE,CAACA,kBAAkB,OAAO;IACvE,wBAAwBhB,EAAE,KAAK,CAACiB,yBAAyB,EAAE,CAACA,yBAAyB,OAAO;IAC5F,0BAA0BjB,EAAE,KAAK,CAACkB,2BAA2B,EAAE,CAACA,2BAA2B,OAAO;IAClG,gBAAgBlB,EAAE,KAAK,CAACmB,iBAAiB,EAAE,CAACA,iBAAiB,OAAO;IACpE,QAAQC,QAAQ,OAAO;AACzB"}
@@ -61,7 +61,7 @@ export interface BarPercent {
61
61
  /**
62
62
  * @description 标签配置, 用于定义图表的数据标签, 包括数据标签的位置, 格式, 样式等.
63
63
  */
64
- label?: Omit<Label, 'labelLayout'>;
64
+ label?: Label;
65
65
  /**
66
66
  * @description 图例配置, 用于定义图表的图例, 包括图例的位置, 格式, 样式等.
67
67
  */
@@ -118,6 +118,10 @@ export declare const zBarPercent: z.ZodObject<{
118
118
  colorMapping: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
119
119
  }, z.core.$strip>>>;
120
120
  label: z.ZodOptional<z.ZodNullable<z.ZodObject<{
121
+ enable: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
122
+ wrap: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
123
+ showValue: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
124
+ showValuePercent: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
121
125
  autoFormat: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
122
126
  numFormat: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodObject<{
123
127
  type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
@@ -149,14 +153,10 @@ export declare const zBarPercent: z.ZodObject<{
149
153
  halfEven: "halfEven";
150
154
  }>>>;
151
155
  }, z.core.$strip>>>>;
152
- labelColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
153
156
  labelFontSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
154
157
  labelFontWeight: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
155
158
  labelBackgroundColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
156
- enable: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
157
- wrap: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
158
- showValue: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
159
- showValuePercent: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
159
+ labelColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
160
160
  labelColorSmartInvert: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
161
161
  labelPosition: z.ZodOptional<z.ZodNullable<z.ZodString>>;
162
162
  labelOverlap: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
@@ -9,9 +9,7 @@ const zBarPercent = z.object({
9
9
  measures: zMeasureTree.nullish(),
10
10
  backgroundColor: zBackgroundColor.nullish(),
11
11
  color: zColor.nullish(),
12
- label: zLabel.omit({
13
- labelLayout: true
14
- }).nullish(),
12
+ label: zLabel.nullish(),
15
13
  legend: zLegend.nullish(),
16
14
  tooltip: zTooltip.nullish(),
17
15
  xAxis: zXLinearAxis.nullish(),
@@ -1 +1 @@
1
- {"version":3,"file":"types/chartType/barPercent/zBarPercent.js","sources":["webpack://@visactor/vseed/./src/types/chartType/barPercent/zBarPercent.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zLocale } from '../../i18n'\nimport {\n zAnnotationArea,\n zAnnotationHorizontalLine,\n zAnnotationPoint,\n zAnnotationVerticalLine,\n zBackgroundColor,\n zBarStyle,\n zColor,\n zCrosshairRect,\n zDataset,\n zDimensions,\n zEncoding,\n zLabel,\n zLegend,\n zMeasureTree,\n zStackCornerRadius,\n zTheme,\n zTooltip,\n zXLinearAxis,\n zYBandAxis,\n} from '../../properties'\n\nexport const zBarPercent = z.object({\n chartType: z.literal('barPercent'),\n dataset: zDataset.nullish(),\n encoding: zEncoding.nullish(),\n dimensions: zDimensions.nullish(),\n measures: zMeasureTree.nullish(),\n backgroundColor: zBackgroundColor.nullish(),\n color: zColor.nullish(),\n label: zLabel.omit({ labelLayout: true }).nullish(),\n legend: zLegend.nullish(),\n tooltip: zTooltip.nullish(),\n xAxis: zXLinearAxis.nullish(),\n yAxis: zYBandAxis.nullish(),\n crosshairRect: zCrosshairRect.nullish(),\n stackCornerRadius: zStackCornerRadius.nullish(),\n theme: zTheme.nullish(),\n barStyle: z.array(zBarStyle).or(zBarStyle).nullish(),\n annotationPoint: z.array(zAnnotationPoint).or(zAnnotationPoint).nullish(),\n annotationVerticalLine: z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).nullish(),\n annotationHorizontalLine: z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).nullish(),\n annotationArea: z.array(zAnnotationArea).or(zAnnotationArea).nullish(),\n locale: zLocale.nullish(),\n})\n"],"names":["zBarPercent","z","zDataset","zEncoding","zDimensions","zMeasureTree","zBackgroundColor","zColor","zLabel","zLegend","zTooltip","zXLinearAxis","zYBandAxis","zCrosshairRect","zStackCornerRadius","zTheme","zBarStyle","zAnnotationPoint","zAnnotationVerticalLine","zAnnotationHorizontalLine","zAnnotationArea","zLocale"],"mappings":";;;AAwBO,MAAMA,cAAcC,EAAE,MAAM,CAAC;IAClC,WAAWA,EAAE,OAAO,CAAC;IACrB,SAASC,SAAS,OAAO;IACzB,UAAUC,UAAU,OAAO;IAC3B,YAAYC,YAAY,OAAO;IAC/B,UAAUC,aAAa,OAAO;IAC9B,iBAAiBC,iBAAiB,OAAO;IACzC,OAAOC,OAAO,OAAO;IACrB,OAAOC,OAAO,IAAI,CAAC;QAAE,aAAa;IAAK,GAAG,OAAO;IACjD,QAAQC,QAAQ,OAAO;IACvB,SAASC,SAAS,OAAO;IACzB,OAAOC,aAAa,OAAO;IAC3B,OAAOC,WAAW,OAAO;IACzB,eAAeC,eAAe,OAAO;IACrC,mBAAmBC,mBAAmB,OAAO;IAC7C,OAAOC,OAAO,OAAO;IACrB,UAAUd,EAAE,KAAK,CAACe,WAAW,EAAE,CAACA,WAAW,OAAO;IAClD,iBAAiBf,EAAE,KAAK,CAACgB,kBAAkB,EAAE,CAACA,kBAAkB,OAAO;IACvE,wBAAwBhB,EAAE,KAAK,CAACiB,yBAAyB,EAAE,CAACA,yBAAyB,OAAO;IAC5F,0BAA0BjB,EAAE,KAAK,CAACkB,2BAA2B,EAAE,CAACA,2BAA2B,OAAO;IAClG,gBAAgBlB,EAAE,KAAK,CAACmB,iBAAiB,EAAE,CAACA,iBAAiB,OAAO;IACpE,QAAQC,QAAQ,OAAO;AACzB"}
1
+ {"version":3,"file":"types/chartType/barPercent/zBarPercent.js","sources":["webpack://@visactor/vseed/./src/types/chartType/barPercent/zBarPercent.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zLocale } from '../../i18n'\nimport {\n zAnnotationArea,\n zAnnotationHorizontalLine,\n zAnnotationPoint,\n zAnnotationVerticalLine,\n zBackgroundColor,\n zBarStyle,\n zColor,\n zCrosshairRect,\n zDataset,\n zDimensions,\n zEncoding,\n zLabel,\n zLegend,\n zMeasureTree,\n zStackCornerRadius,\n zTheme,\n zTooltip,\n zXLinearAxis,\n zYBandAxis,\n} from '../../properties'\n\nexport const zBarPercent = z.object({\n chartType: z.literal('barPercent'),\n dataset: zDataset.nullish(),\n encoding: zEncoding.nullish(),\n dimensions: zDimensions.nullish(),\n measures: zMeasureTree.nullish(),\n backgroundColor: zBackgroundColor.nullish(),\n color: zColor.nullish(),\n label: zLabel.nullish(),\n legend: zLegend.nullish(),\n tooltip: zTooltip.nullish(),\n xAxis: zXLinearAxis.nullish(),\n yAxis: zYBandAxis.nullish(),\n crosshairRect: zCrosshairRect.nullish(),\n stackCornerRadius: zStackCornerRadius.nullish(),\n theme: zTheme.nullish(),\n barStyle: z.array(zBarStyle).or(zBarStyle).nullish(),\n annotationPoint: z.array(zAnnotationPoint).or(zAnnotationPoint).nullish(),\n annotationVerticalLine: z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).nullish(),\n annotationHorizontalLine: z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).nullish(),\n annotationArea: z.array(zAnnotationArea).or(zAnnotationArea).nullish(),\n locale: zLocale.nullish(),\n})\n"],"names":["zBarPercent","z","zDataset","zEncoding","zDimensions","zMeasureTree","zBackgroundColor","zColor","zLabel","zLegend","zTooltip","zXLinearAxis","zYBandAxis","zCrosshairRect","zStackCornerRadius","zTheme","zBarStyle","zAnnotationPoint","zAnnotationVerticalLine","zAnnotationHorizontalLine","zAnnotationArea","zLocale"],"mappings":";;;AAwBO,MAAMA,cAAcC,EAAE,MAAM,CAAC;IAClC,WAAWA,EAAE,OAAO,CAAC;IACrB,SAASC,SAAS,OAAO;IACzB,UAAUC,UAAU,OAAO;IAC3B,YAAYC,YAAY,OAAO;IAC/B,UAAUC,aAAa,OAAO;IAC9B,iBAAiBC,iBAAiB,OAAO;IACzC,OAAOC,OAAO,OAAO;IACrB,OAAOC,OAAO,OAAO;IACrB,QAAQC,QAAQ,OAAO;IACvB,SAASC,SAAS,OAAO;IACzB,OAAOC,aAAa,OAAO;IAC3B,OAAOC,WAAW,OAAO;IACzB,eAAeC,eAAe,OAAO;IACrC,mBAAmBC,mBAAmB,OAAO;IAC7C,OAAOC,OAAO,OAAO;IACrB,UAAUd,EAAE,KAAK,CAACe,WAAW,EAAE,CAACA,WAAW,OAAO;IAClD,iBAAiBf,EAAE,KAAK,CAACgB,kBAAkB,EAAE,CAACA,kBAAkB,OAAO;IACvE,wBAAwBhB,EAAE,KAAK,CAACiB,yBAAyB,EAAE,CAACA,yBAAyB,OAAO;IAC5F,0BAA0BjB,EAAE,KAAK,CAACkB,2BAA2B,EAAE,CAACA,2BAA2B,OAAO;IAClG,gBAAgBlB,EAAE,KAAK,CAACmB,iBAAiB,EAAE,CAACA,iBAAiB,OAAO;IACpE,QAAQC,QAAQ,OAAO;AACzB"}
@@ -61,7 +61,7 @@ export interface Column {
61
61
  /**
62
62
  * @description 标签配置, 用于定义图表的数据标签, 包括数据标签的位置, 格式, 样式等.
63
63
  */
64
- label?: Omit<Label, 'labelLayout'>;
64
+ label?: Label;
65
65
  /**
66
66
  * @description 图例配置, 用于定义图表的图例, 包括图例的位置, 格式, 样式等.
67
67
  */
@@ -118,6 +118,10 @@ export declare const zColumn: z.ZodObject<{
118
118
  colorMapping: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
119
119
  }, z.core.$strip>>>;
120
120
  label: z.ZodOptional<z.ZodNullable<z.ZodObject<{
121
+ enable: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
122
+ wrap: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
123
+ showValue: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
124
+ showValuePercent: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
121
125
  autoFormat: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
122
126
  numFormat: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodObject<{
123
127
  type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
@@ -149,14 +153,10 @@ export declare const zColumn: z.ZodObject<{
149
153
  halfEven: "halfEven";
150
154
  }>>>;
151
155
  }, z.core.$strip>>>>;
152
- labelColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
153
156
  labelFontSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
154
157
  labelFontWeight: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
155
158
  labelBackgroundColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
156
- enable: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
157
- wrap: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
158
- showValue: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
159
- showValuePercent: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
159
+ labelColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
160
160
  labelColorSmartInvert: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
161
161
  labelPosition: z.ZodOptional<z.ZodNullable<z.ZodString>>;
162
162
  labelOverlap: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
@@ -9,9 +9,7 @@ const zColumn = z.object({
9
9
  measures: zMeasureTree.nullish(),
10
10
  backgroundColor: zBackgroundColor.nullish(),
11
11
  color: zColor.nullish(),
12
- label: zLabel.omit({
13
- labelLayout: true
14
- }).nullish(),
12
+ label: zLabel.nullish(),
15
13
  legend: zLegend.nullish(),
16
14
  tooltip: zTooltip.nullish(),
17
15
  xAxis: zXBandAxis.nullish(),
@@ -1 +1 @@
1
- {"version":3,"file":"types/chartType/column/zColumn.js","sources":["webpack://@visactor/vseed/./src/types/chartType/column/zColumn.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zLocale } from '../../i18n'\nimport {\n zAnnotationArea,\n zAnnotationHorizontalLine,\n zAnnotationPoint,\n zAnnotationVerticalLine,\n zBackgroundColor,\n zBarStyle,\n zColor,\n zCrosshairRect,\n zDataset,\n zDimensions,\n zEncoding,\n zLabel,\n zLegend,\n zMeasureTree,\n zStackCornerRadius,\n zTheme,\n zTooltip,\n zXBandAxis,\n zYLinearAxis,\n} from '../../properties'\n\nexport const zColumn = z.object({\n chartType: z.literal('column'),\n dataset: zDataset.nullish(),\n encoding: zEncoding.nullish(),\n dimensions: zDimensions.nullish(),\n measures: zMeasureTree.nullish(),\n backgroundColor: zBackgroundColor.nullish(),\n color: zColor.nullish(),\n label: zLabel.omit({ labelLayout: true }).nullish(),\n legend: zLegend.nullish(),\n tooltip: zTooltip.nullish(),\n xAxis: zXBandAxis.nullish(),\n yAxis: zYLinearAxis.nullish(),\n crosshairRect: zCrosshairRect.nullish(),\n stackCornerRadius: zStackCornerRadius.nullish(),\n theme: zTheme.nullish(),\n barStyle: z.array(zBarStyle).or(zBarStyle).nullish(),\n annotationPoint: z.array(zAnnotationPoint).or(zAnnotationPoint).nullish(),\n annotationVerticalLine: z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).nullish(),\n annotationHorizontalLine: z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).nullish(),\n annotationArea: z.array(zAnnotationArea).or(zAnnotationArea).nullish(),\n locale: zLocale.nullish(),\n})\n"],"names":["zColumn","z","zDataset","zEncoding","zDimensions","zMeasureTree","zBackgroundColor","zColor","zLabel","zLegend","zTooltip","zXBandAxis","zYLinearAxis","zCrosshairRect","zStackCornerRadius","zTheme","zBarStyle","zAnnotationPoint","zAnnotationVerticalLine","zAnnotationHorizontalLine","zAnnotationArea","zLocale"],"mappings":";;;AAwBO,MAAMA,UAAUC,EAAE,MAAM,CAAC;IAC9B,WAAWA,EAAE,OAAO,CAAC;IACrB,SAASC,SAAS,OAAO;IACzB,UAAUC,UAAU,OAAO;IAC3B,YAAYC,YAAY,OAAO;IAC/B,UAAUC,aAAa,OAAO;IAC9B,iBAAiBC,iBAAiB,OAAO;IACzC,OAAOC,OAAO,OAAO;IACrB,OAAOC,OAAO,IAAI,CAAC;QAAE,aAAa;IAAK,GAAG,OAAO;IACjD,QAAQC,QAAQ,OAAO;IACvB,SAASC,SAAS,OAAO;IACzB,OAAOC,WAAW,OAAO;IACzB,OAAOC,aAAa,OAAO;IAC3B,eAAeC,eAAe,OAAO;IACrC,mBAAmBC,mBAAmB,OAAO;IAC7C,OAAOC,OAAO,OAAO;IACrB,UAAUd,EAAE,KAAK,CAACe,WAAW,EAAE,CAACA,WAAW,OAAO;IAClD,iBAAiBf,EAAE,KAAK,CAACgB,kBAAkB,EAAE,CAACA,kBAAkB,OAAO;IACvE,wBAAwBhB,EAAE,KAAK,CAACiB,yBAAyB,EAAE,CAACA,yBAAyB,OAAO;IAC5F,0BAA0BjB,EAAE,KAAK,CAACkB,2BAA2B,EAAE,CAACA,2BAA2B,OAAO;IAClG,gBAAgBlB,EAAE,KAAK,CAACmB,iBAAiB,EAAE,CAACA,iBAAiB,OAAO;IACpE,QAAQC,QAAQ,OAAO;AACzB"}
1
+ {"version":3,"file":"types/chartType/column/zColumn.js","sources":["webpack://@visactor/vseed/./src/types/chartType/column/zColumn.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zLocale } from '../../i18n'\nimport {\n zAnnotationArea,\n zAnnotationHorizontalLine,\n zAnnotationPoint,\n zAnnotationVerticalLine,\n zBackgroundColor,\n zBarStyle,\n zColor,\n zCrosshairRect,\n zDataset,\n zDimensions,\n zEncoding,\n zLabel,\n zLegend,\n zMeasureTree,\n zStackCornerRadius,\n zTheme,\n zTooltip,\n zXBandAxis,\n zYLinearAxis,\n} from '../../properties'\n\nexport const zColumn = z.object({\n chartType: z.literal('column'),\n dataset: zDataset.nullish(),\n encoding: zEncoding.nullish(),\n dimensions: zDimensions.nullish(),\n measures: zMeasureTree.nullish(),\n backgroundColor: zBackgroundColor.nullish(),\n color: zColor.nullish(),\n label: zLabel.nullish(),\n legend: zLegend.nullish(),\n tooltip: zTooltip.nullish(),\n xAxis: zXBandAxis.nullish(),\n yAxis: zYLinearAxis.nullish(),\n crosshairRect: zCrosshairRect.nullish(),\n stackCornerRadius: zStackCornerRadius.nullish(),\n theme: zTheme.nullish(),\n barStyle: z.array(zBarStyle).or(zBarStyle).nullish(),\n annotationPoint: z.array(zAnnotationPoint).or(zAnnotationPoint).nullish(),\n annotationVerticalLine: z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).nullish(),\n annotationHorizontalLine: z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).nullish(),\n annotationArea: z.array(zAnnotationArea).or(zAnnotationArea).nullish(),\n locale: zLocale.nullish(),\n})\n"],"names":["zColumn","z","zDataset","zEncoding","zDimensions","zMeasureTree","zBackgroundColor","zColor","zLabel","zLegend","zTooltip","zXBandAxis","zYLinearAxis","zCrosshairRect","zStackCornerRadius","zTheme","zBarStyle","zAnnotationPoint","zAnnotationVerticalLine","zAnnotationHorizontalLine","zAnnotationArea","zLocale"],"mappings":";;;AAwBO,MAAMA,UAAUC,EAAE,MAAM,CAAC;IAC9B,WAAWA,EAAE,OAAO,CAAC;IACrB,SAASC,SAAS,OAAO;IACzB,UAAUC,UAAU,OAAO;IAC3B,YAAYC,YAAY,OAAO;IAC/B,UAAUC,aAAa,OAAO;IAC9B,iBAAiBC,iBAAiB,OAAO;IACzC,OAAOC,OAAO,OAAO;IACrB,OAAOC,OAAO,OAAO;IACrB,QAAQC,QAAQ,OAAO;IACvB,SAASC,SAAS,OAAO;IACzB,OAAOC,WAAW,OAAO;IACzB,OAAOC,aAAa,OAAO;IAC3B,eAAeC,eAAe,OAAO;IACrC,mBAAmBC,mBAAmB,OAAO;IAC7C,OAAOC,OAAO,OAAO;IACrB,UAAUd,EAAE,KAAK,CAACe,WAAW,EAAE,CAACA,WAAW,OAAO;IAClD,iBAAiBf,EAAE,KAAK,CAACgB,kBAAkB,EAAE,CAACA,kBAAkB,OAAO;IACvE,wBAAwBhB,EAAE,KAAK,CAACiB,yBAAyB,EAAE,CAACA,yBAAyB,OAAO;IAC5F,0BAA0BjB,EAAE,KAAK,CAACkB,2BAA2B,EAAE,CAACA,2BAA2B,OAAO;IAClG,gBAAgBlB,EAAE,KAAK,CAACmB,iBAAiB,EAAE,CAACA,iBAAiB,OAAO;IACpE,QAAQC,QAAQ,OAAO;AACzB"}
@@ -60,7 +60,7 @@ export interface ColumnParallel {
60
60
  /**
61
61
  * @description 标签配置, 用于定义图表的数据标签, 包括数据标签的位置, 格式, 样式等.
62
62
  */
63
- label?: Omit<Label, 'labelLayout'>;
63
+ label?: Label;
64
64
  /**
65
65
  * @description 图例配置, 用于定义图表的图例, 包括图例的位置, 格式, 样式等.
66
66
  */
@@ -118,6 +118,10 @@ export declare const zColumnParallel: z.ZodObject<{
118
118
  colorMapping: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
119
119
  }, z.core.$strip>>>;
120
120
  label: z.ZodOptional<z.ZodNullable<z.ZodObject<{
121
+ enable: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
122
+ wrap: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
123
+ showValue: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
124
+ showValuePercent: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
121
125
  autoFormat: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
122
126
  numFormat: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodObject<{
123
127
  type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
@@ -149,14 +153,10 @@ export declare const zColumnParallel: z.ZodObject<{
149
153
  halfEven: "halfEven";
150
154
  }>>>;
151
155
  }, z.core.$strip>>>>;
152
- labelColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
153
156
  labelFontSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
154
157
  labelFontWeight: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
155
158
  labelBackgroundColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
156
- enable: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
157
- wrap: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
158
- showValue: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
159
- showValuePercent: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
159
+ labelColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
160
160
  labelColorSmartInvert: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
161
161
  labelPosition: z.ZodOptional<z.ZodNullable<z.ZodString>>;
162
162
  labelOverlap: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
@@ -9,9 +9,7 @@ const zColumnParallel = z.object({
9
9
  measures: zMeasureTree.nullish(),
10
10
  backgroundColor: zBackgroundColor.nullish(),
11
11
  color: zColor.nullish(),
12
- label: zLabel.omit({
13
- labelLayout: true
14
- }).nullish(),
12
+ label: zLabel.nullish(),
15
13
  legend: zLegend.nullish(),
16
14
  tooltip: zTooltip.nullish(),
17
15
  xAxis: zXBandAxis.nullish(),
@@ -1 +1 @@
1
- {"version":3,"file":"types/chartType/columnParallel/zColumnParallel.js","sources":["webpack://@visactor/vseed/./src/types/chartType/columnParallel/zColumnParallel.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zLocale } from '../../i18n'\nimport {\n zAnnotationArea,\n zAnnotationHorizontalLine,\n zAnnotationPoint,\n zAnnotationVerticalLine,\n zBackgroundColor,\n zBarStyle,\n zColor,\n zCrosshairRect,\n zDataset,\n zDimensions,\n zEncoding,\n zLabel,\n zLegend,\n zMeasureTree,\n zStackCornerRadius,\n zTheme,\n zTooltip,\n zXBandAxis,\n zYLinearAxis,\n} from '../../properties'\n\nexport const zColumnParallel = z.object({\n chartType: z.literal('columnParallel'),\n dataset: zDataset.nullish(),\n encoding: zEncoding.nullish(),\n dimensions: zDimensions.nullish(),\n measures: zMeasureTree.nullish(),\n backgroundColor: zBackgroundColor.nullish(),\n color: zColor.nullish(),\n label: zLabel.omit({ labelLayout: true }).nullish(),\n legend: zLegend.nullish(),\n tooltip: zTooltip.nullish(),\n xAxis: zXBandAxis.nullish(),\n yAxis: zYLinearAxis.nullish(),\n crosshairRect: zCrosshairRect.nullish(),\n stackCornerRadius: zStackCornerRadius.nullish(),\n theme: zTheme.nullish(),\n barStyle: z.array(zBarStyle).or(zBarStyle).nullish(),\n annotationPoint: z.array(zAnnotationPoint).or(zAnnotationPoint).nullish(),\n annotationVerticalLine: z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).nullish(),\n annotationHorizontalLine: z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).nullish(),\n annotationArea: z.array(zAnnotationArea).or(zAnnotationArea).nullish(),\n locale: zLocale.nullish(),\n})\n"],"names":["zColumnParallel","z","zDataset","zEncoding","zDimensions","zMeasureTree","zBackgroundColor","zColor","zLabel","zLegend","zTooltip","zXBandAxis","zYLinearAxis","zCrosshairRect","zStackCornerRadius","zTheme","zBarStyle","zAnnotationPoint","zAnnotationVerticalLine","zAnnotationHorizontalLine","zAnnotationArea","zLocale"],"mappings":";;;AAwBO,MAAMA,kBAAkBC,EAAE,MAAM,CAAC;IACtC,WAAWA,EAAE,OAAO,CAAC;IACrB,SAASC,SAAS,OAAO;IACzB,UAAUC,UAAU,OAAO;IAC3B,YAAYC,YAAY,OAAO;IAC/B,UAAUC,aAAa,OAAO;IAC9B,iBAAiBC,iBAAiB,OAAO;IACzC,OAAOC,OAAO,OAAO;IACrB,OAAOC,OAAO,IAAI,CAAC;QAAE,aAAa;IAAK,GAAG,OAAO;IACjD,QAAQC,QAAQ,OAAO;IACvB,SAASC,SAAS,OAAO;IACzB,OAAOC,WAAW,OAAO;IACzB,OAAOC,aAAa,OAAO;IAC3B,eAAeC,eAAe,OAAO;IACrC,mBAAmBC,mBAAmB,OAAO;IAC7C,OAAOC,OAAO,OAAO;IACrB,UAAUd,EAAE,KAAK,CAACe,WAAW,EAAE,CAACA,WAAW,OAAO;IAClD,iBAAiBf,EAAE,KAAK,CAACgB,kBAAkB,EAAE,CAACA,kBAAkB,OAAO;IACvE,wBAAwBhB,EAAE,KAAK,CAACiB,yBAAyB,EAAE,CAACA,yBAAyB,OAAO;IAC5F,0BAA0BjB,EAAE,KAAK,CAACkB,2BAA2B,EAAE,CAACA,2BAA2B,OAAO;IAClG,gBAAgBlB,EAAE,KAAK,CAACmB,iBAAiB,EAAE,CAACA,iBAAiB,OAAO;IACpE,QAAQC,QAAQ,OAAO;AACzB"}
1
+ {"version":3,"file":"types/chartType/columnParallel/zColumnParallel.js","sources":["webpack://@visactor/vseed/./src/types/chartType/columnParallel/zColumnParallel.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zLocale } from '../../i18n'\nimport {\n zAnnotationArea,\n zAnnotationHorizontalLine,\n zAnnotationPoint,\n zAnnotationVerticalLine,\n zBackgroundColor,\n zBarStyle,\n zColor,\n zCrosshairRect,\n zDataset,\n zDimensions,\n zEncoding,\n zLabel,\n zLegend,\n zMeasureTree,\n zStackCornerRadius,\n zTheme,\n zTooltip,\n zXBandAxis,\n zYLinearAxis,\n} from '../../properties'\n\nexport const zColumnParallel = z.object({\n chartType: z.literal('columnParallel'),\n dataset: zDataset.nullish(),\n encoding: zEncoding.nullish(),\n dimensions: zDimensions.nullish(),\n measures: zMeasureTree.nullish(),\n backgroundColor: zBackgroundColor.nullish(),\n color: zColor.nullish(),\n label: zLabel.nullish(),\n legend: zLegend.nullish(),\n tooltip: zTooltip.nullish(),\n xAxis: zXBandAxis.nullish(),\n yAxis: zYLinearAxis.nullish(),\n crosshairRect: zCrosshairRect.nullish(),\n stackCornerRadius: zStackCornerRadius.nullish(),\n theme: zTheme.nullish(),\n barStyle: z.array(zBarStyle).or(zBarStyle).nullish(),\n annotationPoint: z.array(zAnnotationPoint).or(zAnnotationPoint).nullish(),\n annotationVerticalLine: z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).nullish(),\n annotationHorizontalLine: z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).nullish(),\n annotationArea: z.array(zAnnotationArea).or(zAnnotationArea).nullish(),\n locale: zLocale.nullish(),\n})\n"],"names":["zColumnParallel","z","zDataset","zEncoding","zDimensions","zMeasureTree","zBackgroundColor","zColor","zLabel","zLegend","zTooltip","zXBandAxis","zYLinearAxis","zCrosshairRect","zStackCornerRadius","zTheme","zBarStyle","zAnnotationPoint","zAnnotationVerticalLine","zAnnotationHorizontalLine","zAnnotationArea","zLocale"],"mappings":";;;AAwBO,MAAMA,kBAAkBC,EAAE,MAAM,CAAC;IACtC,WAAWA,EAAE,OAAO,CAAC;IACrB,SAASC,SAAS,OAAO;IACzB,UAAUC,UAAU,OAAO;IAC3B,YAAYC,YAAY,OAAO;IAC/B,UAAUC,aAAa,OAAO;IAC9B,iBAAiBC,iBAAiB,OAAO;IACzC,OAAOC,OAAO,OAAO;IACrB,OAAOC,OAAO,OAAO;IACrB,QAAQC,QAAQ,OAAO;IACvB,SAASC,SAAS,OAAO;IACzB,OAAOC,WAAW,OAAO;IACzB,OAAOC,aAAa,OAAO;IAC3B,eAAeC,eAAe,OAAO;IACrC,mBAAmBC,mBAAmB,OAAO;IAC7C,OAAOC,OAAO,OAAO;IACrB,UAAUd,EAAE,KAAK,CAACe,WAAW,EAAE,CAACA,WAAW,OAAO;IAClD,iBAAiBf,EAAE,KAAK,CAACgB,kBAAkB,EAAE,CAACA,kBAAkB,OAAO;IACvE,wBAAwBhB,EAAE,KAAK,CAACiB,yBAAyB,EAAE,CAACA,yBAAyB,OAAO;IAC5F,0BAA0BjB,EAAE,KAAK,CAACkB,2BAA2B,EAAE,CAACA,2BAA2B,OAAO;IAClG,gBAAgBlB,EAAE,KAAK,CAACmB,iBAAiB,EAAE,CAACA,iBAAiB,OAAO;IACpE,QAAQC,QAAQ,OAAO;AACzB"}
@@ -65,7 +65,7 @@ export interface ColumnPercent {
65
65
  /**
66
66
  * @description 标签配置, 用于定义图表的数据标签, 包括数据标签的位置, 格式, 样式等.
67
67
  */
68
- label?: Omit<Label, 'labelLayout'>;
68
+ label?: Label;
69
69
  /**
70
70
  * @description 图例配置, 用于定义图表的图例, 包括图例的位置, 格式, 样式等.
71
71
  */
@@ -118,6 +118,10 @@ export declare const zColumnPercent: z.ZodObject<{
118
118
  colorMapping: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
119
119
  }, z.core.$strip>>>;
120
120
  label: z.ZodOptional<z.ZodNullable<z.ZodObject<{
121
+ enable: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
122
+ wrap: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
123
+ showValue: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
124
+ showValuePercent: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
121
125
  autoFormat: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
122
126
  numFormat: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodObject<{
123
127
  type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
@@ -149,14 +153,10 @@ export declare const zColumnPercent: z.ZodObject<{
149
153
  halfEven: "halfEven";
150
154
  }>>>;
151
155
  }, z.core.$strip>>>>;
152
- labelColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
153
156
  labelFontSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
154
157
  labelFontWeight: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
155
158
  labelBackgroundColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
156
- enable: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
157
- wrap: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
158
- showValue: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
159
- showValuePercent: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
159
+ labelColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
160
160
  labelColorSmartInvert: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
161
161
  labelPosition: z.ZodOptional<z.ZodNullable<z.ZodString>>;
162
162
  labelOverlap: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
@@ -9,9 +9,7 @@ const zColumnPercent = z.object({
9
9
  measures: zMeasureTree.nullish(),
10
10
  backgroundColor: zBackgroundColor.nullish(),
11
11
  color: zColor.nullish(),
12
- label: zLabel.omit({
13
- labelLayout: true
14
- }).nullish(),
12
+ label: zLabel.nullish(),
15
13
  legend: zLegend.nullish(),
16
14
  tooltip: zTooltip.nullish(),
17
15
  xAxis: zXBandAxis.nullish(),
@@ -1 +1 @@
1
- {"version":3,"file":"types/chartType/columnPercent/zColumnPercent.js","sources":["webpack://@visactor/vseed/./src/types/chartType/columnPercent/zColumnPercent.ts"],"sourcesContent":["import { zLocale } from '../../i18n'\nimport {\n zAnnotationArea,\n zAnnotationHorizontalLine,\n zAnnotationPoint,\n zAnnotationVerticalLine,\n zBackgroundColor,\n zBarStyle,\n zColor,\n zCrosshairRect,\n zDataset,\n zDimensions,\n zEncoding,\n zLabel,\n zLegend,\n zMeasureTree,\n zStackCornerRadius,\n zTheme,\n zTooltip,\n zXBandAxis,\n zYLinearAxis,\n} from '../../properties'\n\nimport { z } from 'zod'\n\nexport const zColumnPercent = z.object({\n chartType: z.literal('columnPercent'),\n dataset: zDataset.nullish(),\n encoding: zEncoding.nullish(),\n dimensions: zDimensions.nullish(),\n measures: zMeasureTree.nullish(),\n backgroundColor: zBackgroundColor.nullish(),\n color: zColor.nullish(),\n label: zLabel.omit({ labelLayout: true }).nullish(),\n legend: zLegend.nullish(),\n tooltip: zTooltip.nullish(),\n xAxis: zXBandAxis.nullish(),\n yAxis: zYLinearAxis.nullish(),\n crosshairRect: zCrosshairRect.nullish(),\n stackCornerRadius: zStackCornerRadius.nullish(),\n theme: zTheme.nullish(),\n barStyle: z.array(zBarStyle).or(zBarStyle).nullish(),\n annotationPoint: z.array(zAnnotationPoint).or(zAnnotationPoint).nullish(),\n annotationVerticalLine: z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).nullish(),\n annotationHorizontalLine: z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).nullish(),\n annotationArea: z.array(zAnnotationArea).or(zAnnotationArea).nullish(),\n locale: zLocale.nullish(),\n})\n"],"names":["zColumnPercent","z","zDataset","zEncoding","zDimensions","zMeasureTree","zBackgroundColor","zColor","zLabel","zLegend","zTooltip","zXBandAxis","zYLinearAxis","zCrosshairRect","zStackCornerRadius","zTheme","zBarStyle","zAnnotationPoint","zAnnotationVerticalLine","zAnnotationHorizontalLine","zAnnotationArea","zLocale"],"mappings":";;;AAyBO,MAAMA,iBAAiBC,EAAE,MAAM,CAAC;IACrC,WAAWA,EAAE,OAAO,CAAC;IACrB,SAASC,SAAS,OAAO;IACzB,UAAUC,UAAU,OAAO;IAC3B,YAAYC,YAAY,OAAO;IAC/B,UAAUC,aAAa,OAAO;IAC9B,iBAAiBC,iBAAiB,OAAO;IACzC,OAAOC,OAAO,OAAO;IACrB,OAAOC,OAAO,IAAI,CAAC;QAAE,aAAa;IAAK,GAAG,OAAO;IACjD,QAAQC,QAAQ,OAAO;IACvB,SAASC,SAAS,OAAO;IACzB,OAAOC,WAAW,OAAO;IACzB,OAAOC,aAAa,OAAO;IAC3B,eAAeC,eAAe,OAAO;IACrC,mBAAmBC,mBAAmB,OAAO;IAC7C,OAAOC,OAAO,OAAO;IACrB,UAAUd,EAAE,KAAK,CAACe,WAAW,EAAE,CAACA,WAAW,OAAO;IAClD,iBAAiBf,EAAE,KAAK,CAACgB,kBAAkB,EAAE,CAACA,kBAAkB,OAAO;IACvE,wBAAwBhB,EAAE,KAAK,CAACiB,yBAAyB,EAAE,CAACA,yBAAyB,OAAO;IAC5F,0BAA0BjB,EAAE,KAAK,CAACkB,2BAA2B,EAAE,CAACA,2BAA2B,OAAO;IAClG,gBAAgBlB,EAAE,KAAK,CAACmB,iBAAiB,EAAE,CAACA,iBAAiB,OAAO;IACpE,QAAQC,QAAQ,OAAO;AACzB"}
1
+ {"version":3,"file":"types/chartType/columnPercent/zColumnPercent.js","sources":["webpack://@visactor/vseed/./src/types/chartType/columnPercent/zColumnPercent.ts"],"sourcesContent":["import { zLocale } from '../../i18n'\nimport {\n zAnnotationArea,\n zAnnotationHorizontalLine,\n zAnnotationPoint,\n zAnnotationVerticalLine,\n zBackgroundColor,\n zBarStyle,\n zColor,\n zCrosshairRect,\n zDataset,\n zDimensions,\n zEncoding,\n zLabel,\n zLegend,\n zMeasureTree,\n zStackCornerRadius,\n zTheme,\n zTooltip,\n zXBandAxis,\n zYLinearAxis,\n} from '../../properties'\n\nimport { z } from 'zod'\n\nexport const zColumnPercent = z.object({\n chartType: z.literal('columnPercent'),\n dataset: zDataset.nullish(),\n encoding: zEncoding.nullish(),\n dimensions: zDimensions.nullish(),\n measures: zMeasureTree.nullish(),\n backgroundColor: zBackgroundColor.nullish(),\n color: zColor.nullish(),\n label: zLabel.nullish(),\n legend: zLegend.nullish(),\n tooltip: zTooltip.nullish(),\n xAxis: zXBandAxis.nullish(),\n yAxis: zYLinearAxis.nullish(),\n crosshairRect: zCrosshairRect.nullish(),\n stackCornerRadius: zStackCornerRadius.nullish(),\n theme: zTheme.nullish(),\n barStyle: z.array(zBarStyle).or(zBarStyle).nullish(),\n annotationPoint: z.array(zAnnotationPoint).or(zAnnotationPoint).nullish(),\n annotationVerticalLine: z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).nullish(),\n annotationHorizontalLine: z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).nullish(),\n annotationArea: z.array(zAnnotationArea).or(zAnnotationArea).nullish(),\n locale: zLocale.nullish(),\n})\n"],"names":["zColumnPercent","z","zDataset","zEncoding","zDimensions","zMeasureTree","zBackgroundColor","zColor","zLabel","zLegend","zTooltip","zXBandAxis","zYLinearAxis","zCrosshairRect","zStackCornerRadius","zTheme","zBarStyle","zAnnotationPoint","zAnnotationVerticalLine","zAnnotationHorizontalLine","zAnnotationArea","zLocale"],"mappings":";;;AAyBO,MAAMA,iBAAiBC,EAAE,MAAM,CAAC;IACrC,WAAWA,EAAE,OAAO,CAAC;IACrB,SAASC,SAAS,OAAO;IACzB,UAAUC,UAAU,OAAO;IAC3B,YAAYC,YAAY,OAAO;IAC/B,UAAUC,aAAa,OAAO;IAC9B,iBAAiBC,iBAAiB,OAAO;IACzC,OAAOC,OAAO,OAAO;IACrB,OAAOC,OAAO,OAAO;IACrB,QAAQC,QAAQ,OAAO;IACvB,SAASC,SAAS,OAAO;IACzB,OAAOC,WAAW,OAAO;IACzB,OAAOC,aAAa,OAAO;IAC3B,eAAeC,eAAe,OAAO;IACrC,mBAAmBC,mBAAmB,OAAO;IAC7C,OAAOC,OAAO,OAAO;IACrB,UAAUd,EAAE,KAAK,CAACe,WAAW,EAAE,CAACA,WAAW,OAAO;IAClD,iBAAiBf,EAAE,KAAK,CAACgB,kBAAkB,EAAE,CAACA,kBAAkB,OAAO;IACvE,wBAAwBhB,EAAE,KAAK,CAACiB,yBAAyB,EAAE,CAACA,yBAAyB,OAAO;IAC5F,0BAA0BjB,EAAE,KAAK,CAACkB,2BAA2B,EAAE,CAACA,2BAA2B,OAAO;IAClG,gBAAgBlB,EAAE,KAAK,CAACmB,iBAAiB,EAAE,CAACA,iBAAiB,OAAO;IACpE,QAAQC,QAAQ,OAAO;AACzB"}
@@ -1,5 +1,5 @@
1
1
  import { type Locale } from '../../i18n';
2
- import type { BackgroundColor, Color, Dataset, Dimensions, Label, Legend, MeasureTree, Theme, Tooltip } from '../../properties';
2
+ import type { BackgroundColor, Color, Dataset, Dimensions, Legend, MeasureTree, PieLabel, Theme, Tooltip } from '../../properties';
3
3
  /**
4
4
  * @description 环形图,适用于展示单一维度数据的占比关系,中心留有空白区域可展示汇总信息
5
5
  * 适用场景:
@@ -68,7 +68,7 @@ export interface Donut {
68
68
  * 标签
69
69
  * @description 标签配置, 用于定义图表的数据标签, 包括数据标签的位置, 格式, 样式等.
70
70
  */
71
- label?: Label;
71
+ label?: PieLabel;
72
72
  /**
73
73
  * 图例
74
74
  * @description 图例配置, 用于定义图表的图例, 包括图例的位置, 格式, 样式等.
@@ -160,11 +160,7 @@ export declare const zDonut: z.ZodObject<{
160
160
  labelColorSmartInvert: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
161
161
  labelPosition: z.ZodOptional<z.ZodNullable<z.ZodString>>;
162
162
  labelOverlap: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
163
- labelLayout: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
164
- arc: "arc";
165
- labelLine: "labelLine";
166
- edge: "edge";
167
- }>>>;
163
+ labelLayout: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<"arc">, z.ZodLiteral<"labelLine">, z.ZodLiteral<"edge">]>>>;
168
164
  }, z.core.$strip>>>;
169
165
  legend: z.ZodOptional<z.ZodNullable<z.ZodObject<{
170
166
  enable: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
@@ -1,6 +1,6 @@
1
1
  import { z } from "zod";
2
2
  import { zLocale } from "../../i18n/index.js";
3
- import { zBackgroundColor, zColor, zDataset, zDimensions, zEncoding, zLabel, zLegend, zMeasureTree, zTheme, zTooltip } from "../../properties/index.js";
3
+ import { zBackgroundColor, zColor, zDataset, zDimensions, zEncoding, zLegend, zMeasureTree, zPieLabel, zTheme, zTooltip } from "../../properties/index.js";
4
4
  const zDonut = z.object({
5
5
  chartType: z.literal('donut'),
6
6
  dataset: zDataset.nullish(),
@@ -9,7 +9,7 @@ const zDonut = z.object({
9
9
  measures: zMeasureTree.nullish(),
10
10
  backgroundColor: zBackgroundColor.nullish(),
11
11
  color: zColor.nullish(),
12
- label: zLabel.nullish(),
12
+ label: zPieLabel.nullish(),
13
13
  legend: zLegend.nullish(),
14
14
  tooltip: zTooltip.nullish(),
15
15
  theme: zTheme.nullish(),
@@ -1 +1 @@
1
- {"version":3,"file":"types/chartType/donut/zDonut.js","sources":["webpack://@visactor/vseed/./src/types/chartType/donut/zDonut.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zLocale } from '../../i18n'\n\nimport {\n zBackgroundColor,\n zColor,\n zDataset,\n zDimensions,\n zEncoding,\n zLabel,\n zLegend,\n zMeasureTree,\n zTheme,\n zTooltip,\n} from '../../properties'\n\nexport const zDonut = z.object({\n chartType: z.literal('donut'),\n dataset: zDataset.nullish(),\n encoding: zEncoding.nullish(),\n dimensions: zDimensions.nullish(),\n measures: zMeasureTree.nullish(),\n backgroundColor: zBackgroundColor.nullish(),\n color: zColor.nullish(),\n label: zLabel.nullish(),\n legend: zLegend.nullish(),\n tooltip: zTooltip.nullish(),\n theme: zTheme.nullish(),\n locale: zLocale.nullish(),\n})\n"],"names":["zDonut","z","zDataset","zEncoding","zDimensions","zMeasureTree","zBackgroundColor","zColor","zLabel","zLegend","zTooltip","zTheme","zLocale"],"mappings":";;;AAgBO,MAAMA,SAASC,EAAE,MAAM,CAAC;IAC7B,WAAWA,EAAE,OAAO,CAAC;IACrB,SAASC,SAAS,OAAO;IACzB,UAAUC,UAAU,OAAO;IAC3B,YAAYC,YAAY,OAAO;IAC/B,UAAUC,aAAa,OAAO;IAC9B,iBAAiBC,iBAAiB,OAAO;IACzC,OAAOC,OAAO,OAAO;IACrB,OAAOC,OAAO,OAAO;IACrB,QAAQC,QAAQ,OAAO;IACvB,SAASC,SAAS,OAAO;IACzB,OAAOC,OAAO,OAAO;IACrB,QAAQC,QAAQ,OAAO;AACzB"}
1
+ {"version":3,"file":"types/chartType/donut/zDonut.js","sources":["webpack://@visactor/vseed/./src/types/chartType/donut/zDonut.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zLocale } from '../../i18n'\n\nimport {\n zBackgroundColor,\n zColor,\n zDataset,\n zDimensions,\n zEncoding,\n zLegend,\n zMeasureTree,\n zPieLabel,\n zTheme,\n zTooltip,\n} from '../../properties'\n\nexport const zDonut = z.object({\n chartType: z.literal('donut'),\n dataset: zDataset.nullish(),\n encoding: zEncoding.nullish(),\n dimensions: zDimensions.nullish(),\n measures: zMeasureTree.nullish(),\n backgroundColor: zBackgroundColor.nullish(),\n color: zColor.nullish(),\n label: zPieLabel.nullish(),\n legend: zLegend.nullish(),\n tooltip: zTooltip.nullish(),\n theme: zTheme.nullish(),\n locale: zLocale.nullish(),\n})\n"],"names":["zDonut","z","zDataset","zEncoding","zDimensions","zMeasureTree","zBackgroundColor","zColor","zPieLabel","zLegend","zTooltip","zTheme","zLocale"],"mappings":";;;AAgBO,MAAMA,SAASC,EAAE,MAAM,CAAC;IAC7B,WAAWA,EAAE,OAAO,CAAC;IACrB,SAASC,SAAS,OAAO;IACzB,UAAUC,UAAU,OAAO;IAC3B,YAAYC,YAAY,OAAO;IAC/B,UAAUC,aAAa,OAAO;IAC9B,iBAAiBC,iBAAiB,OAAO;IACzC,OAAOC,OAAO,OAAO;IACrB,OAAOC,UAAU,OAAO;IACxB,QAAQC,QAAQ,OAAO;IACvB,SAASC,SAAS,OAAO;IACzB,OAAOC,OAAO,OAAO;IACrB,QAAQC,QAAQ,OAAO;AACzB"}