@visactor/vseed 0.1.17 → 0.1.19

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 (131) hide show
  1. package/dist/cjs/index.cjs +1 -1
  2. package/dist/cjs/index.cjs.map +1 -1
  3. package/dist/esm/builder/builder/builder.d.ts +108 -0
  4. package/dist/esm/pipeline/advanced/chart/pipes/reshape/pivotReshapeWithEncoding.js.map +1 -1
  5. package/dist/esm/pipeline/spec/chart/pipeline/heatmap.js +0 -1
  6. package/dist/esm/pipeline/spec/chart/pipeline/heatmap.js.map +1 -1
  7. package/dist/esm/pipeline/spec/chart/pipeline/rose.js +1 -3
  8. package/dist/esm/pipeline/spec/chart/pipeline/rose.js.map +1 -1
  9. package/dist/esm/pipeline/spec/chart/pipeline/roseParallel.js +1 -3
  10. package/dist/esm/pipeline/spec/chart/pipeline/roseParallel.js.map +1 -1
  11. package/dist/esm/pipeline/spec/chart/pipes/axes/index.d.ts +0 -1
  12. package/dist/esm/pipeline/spec/chart/pipes/axes/index.js +1 -2
  13. package/dist/esm/pipeline/spec/chart/pipes/axes/radius.js +2 -17
  14. package/dist/esm/pipeline/spec/chart/pipes/axes/radius.js.map +1 -1
  15. package/dist/esm/pipeline/spec/chart/pipes/init/barParallel.js +3 -2
  16. package/dist/esm/pipeline/spec/chart/pipes/init/barParallel.js.map +1 -1
  17. package/dist/esm/pipeline/spec/chart/pipes/init/columnParallel.js +3 -2
  18. package/dist/esm/pipeline/spec/chart/pipes/init/columnParallel.js.map +1 -1
  19. package/dist/esm/pipeline/spec/chart/pipes/init/pivot.js +19 -1
  20. package/dist/esm/pipeline/spec/chart/pipes/init/pivot.js.map +1 -1
  21. package/dist/esm/pipeline/spec/chart/pipes/init/roseParallel.js +3 -2
  22. package/dist/esm/pipeline/spec/chart/pipes/init/roseParallel.js.map +1 -1
  23. package/dist/esm/pipeline/spec/chart/pipes/label/label.js +4 -1
  24. package/dist/esm/pipeline/spec/chart/pipes/label/label.js.map +1 -1
  25. package/dist/esm/pipeline/spec/chart/pipes/legend/colorLegend.js +1 -9
  26. package/dist/esm/pipeline/spec/chart/pipes/legend/colorLegend.js.map +1 -1
  27. package/dist/esm/pipeline/spec/chart/pipes/legend/pivotColorLegend.js +1 -9
  28. package/dist/esm/pipeline/spec/chart/pipes/legend/pivotColorLegend.js.map +1 -1
  29. package/dist/esm/pipeline/spec/chart/pipes/pivotChart/pivotGridStyle.js +93 -51
  30. package/dist/esm/pipeline/spec/chart/pipes/pivotChart/pivotGridStyle.js.map +1 -1
  31. package/dist/esm/pipeline/spec/table/pipes/init/pivotTable.js +1 -0
  32. package/dist/esm/pipeline/spec/table/pipes/init/pivotTable.js.map +1 -1
  33. package/dist/esm/pipeline/spec/table/pipes/init/table.js +1 -0
  34. package/dist/esm/pipeline/spec/table/pipes/init/table.js.map +1 -1
  35. package/dist/esm/pipeline/spec/table/pipes/theme/cornerHeaderStyle.js +7 -7
  36. package/dist/esm/pipeline/spec/table/pipes/theme/cornerHeaderStyle.js.map +1 -1
  37. package/dist/esm/pipeline/spec/table/pipes/theme/frameStyle.js +1 -1
  38. package/dist/esm/pipeline/spec/table/pipes/theme/frameStyle.js.map +1 -1
  39. package/dist/esm/pipeline/spec/table/pipes/theme/headerStyle.js +7 -7
  40. package/dist/esm/pipeline/spec/table/pipes/theme/headerStyle.js.map +1 -1
  41. package/dist/esm/pipeline/spec/table/pipes/theme/rowHeaderStyle.js +7 -7
  42. package/dist/esm/pipeline/spec/table/pipes/theme/rowHeaderStyle.js.map +1 -1
  43. package/dist/esm/theme/dark.js +8 -2
  44. package/dist/esm/theme/dark.js.map +1 -1
  45. package/dist/esm/theme/light.js +8 -2
  46. package/dist/esm/theme/light.js.map +1 -1
  47. package/dist/esm/types/advancedVSeed.d.ts +180 -0
  48. package/dist/esm/types/chartType/area/area.d.ts +2 -2
  49. package/dist/esm/types/chartType/area/zArea.d.ts +5 -5
  50. package/dist/esm/types/chartType/area/zArea.js +3 -1
  51. package/dist/esm/types/chartType/area/zArea.js.map +1 -1
  52. package/dist/esm/types/chartType/areaPercent/areaPercent.d.ts +2 -2
  53. package/dist/esm/types/chartType/areaPercent/zAreaPercent.d.ts +5 -5
  54. package/dist/esm/types/chartType/areaPercent/zAreaPercent.js +3 -1
  55. package/dist/esm/types/chartType/areaPercent/zAreaPercent.js.map +1 -1
  56. package/dist/esm/types/chartType/bar/bar.d.ts +2 -2
  57. package/dist/esm/types/chartType/bar/zBar.d.ts +5 -5
  58. package/dist/esm/types/chartType/bar/zBar.js +3 -1
  59. package/dist/esm/types/chartType/bar/zBar.js.map +1 -1
  60. package/dist/esm/types/chartType/barParallel/barParallel.d.ts +2 -2
  61. package/dist/esm/types/chartType/barParallel/zBarParallel.d.ts +5 -5
  62. package/dist/esm/types/chartType/barParallel/zBarParallel.js +3 -1
  63. package/dist/esm/types/chartType/barParallel/zBarParallel.js.map +1 -1
  64. package/dist/esm/types/chartType/barPercent/barPercent.d.ts +2 -2
  65. package/dist/esm/types/chartType/barPercent/zBarPercent.d.ts +5 -5
  66. package/dist/esm/types/chartType/barPercent/zBarPercent.js +3 -1
  67. package/dist/esm/types/chartType/barPercent/zBarPercent.js.map +1 -1
  68. package/dist/esm/types/chartType/column/column.d.ts +2 -2
  69. package/dist/esm/types/chartType/column/zColumn.d.ts +5 -5
  70. package/dist/esm/types/chartType/column/zColumn.js +3 -1
  71. package/dist/esm/types/chartType/column/zColumn.js.map +1 -1
  72. package/dist/esm/types/chartType/columnParallel/columnParallel.d.ts +2 -2
  73. package/dist/esm/types/chartType/columnParallel/zColumnParallel.d.ts +5 -5
  74. package/dist/esm/types/chartType/columnParallel/zColumnParallel.js +3 -1
  75. package/dist/esm/types/chartType/columnParallel/zColumnParallel.js.map +1 -1
  76. package/dist/esm/types/chartType/columnPercent/columnPercent.d.ts +2 -2
  77. package/dist/esm/types/chartType/columnPercent/zColumnPercent.d.ts +5 -5
  78. package/dist/esm/types/chartType/columnPercent/zColumnPercent.js +3 -1
  79. package/dist/esm/types/chartType/columnPercent/zColumnPercent.js.map +1 -1
  80. package/dist/esm/types/chartType/donut/donut.d.ts +1 -1
  81. package/dist/esm/types/chartType/donut/zDonut.d.ts +5 -0
  82. package/dist/esm/types/chartType/dualAxis/dualAxis.d.ts +1 -1
  83. package/dist/esm/types/chartType/dualAxis/zDualAxis.d.ts +5 -5
  84. package/dist/esm/types/chartType/dualAxis/zDualAxis.js +3 -1
  85. package/dist/esm/types/chartType/dualAxis/zDualAxis.js.map +1 -1
  86. package/dist/esm/types/chartType/funnel/funnel.d.ts +2 -2
  87. package/dist/esm/types/chartType/funnel/zFunnel.d.ts +5 -5
  88. package/dist/esm/types/chartType/funnel/zFunnel.js +3 -1
  89. package/dist/esm/types/chartType/funnel/zFunnel.js.map +1 -1
  90. package/dist/esm/types/chartType/heatmap/heatmap.d.ts +1 -1
  91. package/dist/esm/types/chartType/heatmap/zHeatmap.d.ts +5 -5
  92. package/dist/esm/types/chartType/heatmap/zHeatmap.js +3 -1
  93. package/dist/esm/types/chartType/heatmap/zHeatmap.js.map +1 -1
  94. package/dist/esm/types/chartType/line/line.d.ts +1 -1
  95. package/dist/esm/types/chartType/line/zLine.d.ts +5 -5
  96. package/dist/esm/types/chartType/line/zLine.js +3 -1
  97. package/dist/esm/types/chartType/line/zLine.js.map +1 -1
  98. package/dist/esm/types/chartType/pie/pie.d.ts +1 -1
  99. package/dist/esm/types/chartType/pie/zPie.d.ts +5 -0
  100. package/dist/esm/types/chartType/radar/radar.d.ts +1 -1
  101. package/dist/esm/types/chartType/radar/zRadar.d.ts +5 -5
  102. package/dist/esm/types/chartType/radar/zRadar.js +3 -1
  103. package/dist/esm/types/chartType/radar/zRadar.js.map +1 -1
  104. package/dist/esm/types/chartType/rose/rose.d.ts +2 -2
  105. package/dist/esm/types/chartType/rose/zRose.d.ts +5 -5
  106. package/dist/esm/types/chartType/rose/zRose.js +3 -1
  107. package/dist/esm/types/chartType/rose/zRose.js.map +1 -1
  108. package/dist/esm/types/chartType/roseParallel/roseParallel.d.ts +1 -1
  109. package/dist/esm/types/chartType/roseParallel/zRoseParallel.d.ts +5 -5
  110. package/dist/esm/types/chartType/roseParallel/zRoseParallel.js +3 -1
  111. package/dist/esm/types/chartType/roseParallel/zRoseParallel.js.map +1 -1
  112. package/dist/esm/types/chartType/scatter/scatter.d.ts +1 -1
  113. package/dist/esm/types/chartType/scatter/zScatter.d.ts +5 -5
  114. package/dist/esm/types/chartType/scatter/zScatter.js +3 -1
  115. package/dist/esm/types/chartType/scatter/zScatter.js.map +1 -1
  116. package/dist/esm/types/chartType/table/table.d.ts +1 -1
  117. package/dist/esm/types/properties/config/config.d.ts +180 -0
  118. package/dist/esm/types/properties/config/label/label.d.ts +7 -0
  119. package/dist/esm/types/properties/config/label/zLabel.d.ts +5 -0
  120. package/dist/esm/types/properties/config/label/zLabel.js +6 -1
  121. package/dist/esm/types/properties/config/label/zLabel.js.map +1 -1
  122. package/dist/esm/types/properties/format/numFormat.d.ts +1 -5
  123. package/dist/esm/types/properties/format/numFormat.js.map +1 -1
  124. package/dist/esm/types/properties/theme/customTheme.d.ts +180 -0
  125. package/dist/esm/types/zVseed.d.ts +90 -80
  126. package/dist/umd/index.js +260 -185
  127. package/dist/umd/index.js.map +1 -1
  128. package/package.json +3 -3
  129. package/dist/esm/pipeline/spec/chart/pipes/axes/angle.d.ts +0 -2
  130. package/dist/esm/pipeline/spec/chart/pipes/axes/angle.js +0 -46
  131. package/dist/esm/pipeline/spec/chart/pipes/axes/angle.js.map +0 -1
@@ -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.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"}
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"}
@@ -46,7 +46,7 @@ export interface BarParallel {
46
46
  dimensions?: Dimensions;
47
47
  /**
48
48
  * @description 指标, 并列条形图指标会自动合并为一个指标, 映射到X轴, 存在多个指标时, 指标名称会与其余维度合并, 作为图例项展示.
49
- * @type {DimensionTree}
49
+ * @type {MeasureTree}
50
50
  * @example [{id: 'value1', alias: '指标1'}, {id: 'value2', alias: '指标2'}]
51
51
  */
52
52
  measures?: MeasureTree;
@@ -61,7 +61,7 @@ export interface BarParallel {
61
61
  /**
62
62
  * @description 标签配置, 用于定义图表的数据标签, 包括数据标签的位置, 格式, 样式等.
63
63
  */
64
- label?: Label;
64
+ label?: Omit<Label, 'labelLayout'>;
65
65
  /**
66
66
  * @description 图例配置, 用于定义图表的图例, 包括图例的位置, 格式, 样式等.
67
67
  */
@@ -118,10 +118,6 @@ 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>>;
125
121
  autoFormat: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
126
122
  numFormat: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodObject<{
127
123
  type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
@@ -153,10 +149,14 @@ export declare const zBarParallel: z.ZodObject<{
153
149
  halfEven: "halfEven";
154
150
  }>>>;
155
151
  }, z.core.$strip>>>>;
152
+ labelColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
156
153
  labelFontSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
157
154
  labelFontWeight: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
158
155
  labelBackgroundColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
159
- labelColor: 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>>;
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,7 +9,9 @@ const zBarParallel = z.object({
9
9
  measures: zMeasureTree.nullish(),
10
10
  backgroundColor: zBackgroundColor.nullish(),
11
11
  color: zColor.nullish(),
12
- label: zLabel.nullish(),
12
+ label: zLabel.omit({
13
+ labelLayout: true
14
+ }).nullish(),
13
15
  legend: zLegend.nullish(),
14
16
  tooltip: zTooltip.nullish(),
15
17
  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.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"}
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"}
@@ -46,7 +46,7 @@ export interface BarPercent {
46
46
  dimensions?: Dimensions;
47
47
  /**
48
48
  * @description 指标, 指标会自动合并为一个指标, 映射到X轴, 存在多个指标时, 指标名称会与其余维度合并, 作为图例项展示.
49
- * @type {DimensionTree}
49
+ * @type {MeasureTree}
50
50
  * @example [{id: 'value', alias: '数值占比', format: 'percent'}]
51
51
  */
52
52
  measures?: MeasureTree;
@@ -61,7 +61,7 @@ export interface BarPercent {
61
61
  /**
62
62
  * @description 标签配置, 用于定义图表的数据标签, 包括数据标签的位置, 格式, 样式等.
63
63
  */
64
- label?: Label;
64
+ label?: Omit<Label, 'labelLayout'>;
65
65
  /**
66
66
  * @description 图例配置, 用于定义图表的图例, 包括图例的位置, 格式, 样式等.
67
67
  */
@@ -118,10 +118,6 @@ 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>>;
125
121
  autoFormat: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
126
122
  numFormat: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodObject<{
127
123
  type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
@@ -153,10 +149,14 @@ export declare const zBarPercent: z.ZodObject<{
153
149
  halfEven: "halfEven";
154
150
  }>>>;
155
151
  }, z.core.$strip>>>>;
152
+ labelColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
156
153
  labelFontSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
157
154
  labelFontWeight: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
158
155
  labelBackgroundColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
159
- labelColor: 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>>;
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,7 +9,9 @@ const zBarPercent = z.object({
9
9
  measures: zMeasureTree.nullish(),
10
10
  backgroundColor: zBackgroundColor.nullish(),
11
11
  color: zColor.nullish(),
12
- label: zLabel.nullish(),
12
+ label: zLabel.omit({
13
+ labelLayout: true
14
+ }).nullish(),
13
15
  legend: zLegend.nullish(),
14
16
  tooltip: zTooltip.nullish(),
15
17
  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.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"}
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"}
@@ -46,7 +46,7 @@ export interface Column {
46
46
  dimensions?: Dimensions;
47
47
  /**
48
48
  * @description 柱状图的所有指标会自动合并为一个指标, 映射到Y轴, 存在多个指标时, 指标名称会与其余维度合并, 作为图例项展示.
49
- * @type {DimensionTree}
49
+ * @type {MeasureTree}
50
50
  * @example [{id: "value", alias: "数值"}]
51
51
  */
52
52
  measures?: MeasureTree;
@@ -61,7 +61,7 @@ export interface Column {
61
61
  /**
62
62
  * @description 标签配置, 用于定义图表的数据标签, 包括数据标签的位置, 格式, 样式等.
63
63
  */
64
- label?: Label;
64
+ label?: Omit<Label, 'labelLayout'>;
65
65
  /**
66
66
  * @description 图例配置, 用于定义图表的图例, 包括图例的位置, 格式, 样式等.
67
67
  */
@@ -118,10 +118,6 @@ 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>>;
125
121
  autoFormat: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
126
122
  numFormat: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodObject<{
127
123
  type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
@@ -153,10 +149,14 @@ export declare const zColumn: z.ZodObject<{
153
149
  halfEven: "halfEven";
154
150
  }>>>;
155
151
  }, z.core.$strip>>>>;
152
+ labelColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
156
153
  labelFontSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
157
154
  labelFontWeight: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
158
155
  labelBackgroundColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
159
- labelColor: 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>>;
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,7 +9,9 @@ const zColumn = z.object({
9
9
  measures: zMeasureTree.nullish(),
10
10
  backgroundColor: zBackgroundColor.nullish(),
11
11
  color: zColor.nullish(),
12
- label: zLabel.nullish(),
12
+ label: zLabel.omit({
13
+ labelLayout: true
14
+ }).nullish(),
13
15
  legend: zLegend.nullish(),
14
16
  tooltip: zTooltip.nullish(),
15
17
  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.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"}
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"}
@@ -44,7 +44,7 @@ export interface ColumnParallel {
44
44
  dimensions?: Dimensions;
45
45
  /**
46
46
  * @description 指标, 并列柱状图的所有指标会自动合并为一个指标, 映射到Y轴, 存在多个指标时, 指标名称会与其余维度合并, 作为图例项展示.
47
- * @type {DimensionTree}
47
+ * @type {MeasureTree}
48
48
  Axis * @example [{id: 'value1', alias: '指标1'}, {id: 'value2', alias: '指标2'}]
49
49
  */
50
50
  measures?: MeasureTree;
@@ -60,7 +60,7 @@ export interface ColumnParallel {
60
60
  /**
61
61
  * @description 标签配置, 用于定义图表的数据标签, 包括数据标签的位置, 格式, 样式等.
62
62
  */
63
- label?: Label;
63
+ label?: Omit<Label, 'labelLayout'>;
64
64
  /**
65
65
  * @description 图例配置, 用于定义图表的图例, 包括图例的位置, 格式, 样式等.
66
66
  */
@@ -118,10 +118,6 @@ 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>>;
125
121
  autoFormat: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
126
122
  numFormat: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodObject<{
127
123
  type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
@@ -153,10 +149,14 @@ export declare const zColumnParallel: z.ZodObject<{
153
149
  halfEven: "halfEven";
154
150
  }>>>;
155
151
  }, z.core.$strip>>>>;
152
+ labelColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
156
153
  labelFontSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
157
154
  labelFontWeight: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
158
155
  labelBackgroundColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
159
- labelColor: 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>>;
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,7 +9,9 @@ const zColumnParallel = z.object({
9
9
  measures: zMeasureTree.nullish(),
10
10
  backgroundColor: zBackgroundColor.nullish(),
11
11
  color: zColor.nullish(),
12
- label: zLabel.nullish(),
12
+ label: zLabel.omit({
13
+ labelLayout: true
14
+ }).nullish(),
13
15
  legend: zLegend.nullish(),
14
16
  tooltip: zTooltip.nullish(),
15
17
  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.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"}
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"}
@@ -50,7 +50,7 @@ export interface ColumnPercent {
50
50
  /**
51
51
  * 指标
52
52
  * @description 百分比柱状图指标会自动合并为一个指标, 映射到Y轴, 存在多个指标时, 指标名称会与其余维度合并, 作为图例项展示.
53
- * @type {DimensionTree}
53
+ * @type {MeasureTree}
54
54
  * @example [{id: 'value', alias: '数值占比', format: 'percent'}]
55
55
  */
56
56
  measures?: MeasureTree;
@@ -65,7 +65,7 @@ export interface ColumnPercent {
65
65
  /**
66
66
  * @description 标签配置, 用于定义图表的数据标签, 包括数据标签的位置, 格式, 样式等.
67
67
  */
68
- label?: Label;
68
+ label?: Omit<Label, 'labelLayout'>;
69
69
  /**
70
70
  * @description 图例配置, 用于定义图表的图例, 包括图例的位置, 格式, 样式等.
71
71
  */
@@ -118,10 +118,6 @@ 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>>;
125
121
  autoFormat: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
126
122
  numFormat: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodObject<{
127
123
  type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
@@ -153,10 +149,14 @@ export declare const zColumnPercent: z.ZodObject<{
153
149
  halfEven: "halfEven";
154
150
  }>>>;
155
151
  }, z.core.$strip>>>>;
152
+ labelColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
156
153
  labelFontSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
157
154
  labelFontWeight: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
158
155
  labelBackgroundColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
159
- labelColor: 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>>;
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,7 +9,9 @@ const zColumnPercent = z.object({
9
9
  measures: zMeasureTree.nullish(),
10
10
  backgroundColor: zBackgroundColor.nullish(),
11
11
  color: zColor.nullish(),
12
- label: zLabel.nullish(),
12
+ label: zLabel.omit({
13
+ labelLayout: true
14
+ }).nullish(),
13
15
  legend: zLegend.nullish(),
14
16
  tooltip: zTooltip.nullish(),
15
17
  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.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
+ {"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"}
@@ -49,7 +49,7 @@ export interface Donut {
49
49
  /**
50
50
  * 指标
51
51
  * @description 环形图的所有指标会自动合并为一个指标, 映射到饼图的半径, 存在多个指标时, 指标名称会与其余维度合并, 并作为图例项展示.
52
- * @type {DimensionTree}
52
+ * @type {MeasureTree}
53
53
  * @example [{id: 'value', alias: '数值占比', format: 'percent'}]
54
54
  */
55
55
  measures?: MeasureTree;
@@ -160,6 +160,11 @@ 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
168
  }, z.core.$strip>>>;
164
169
  legend: z.ZodOptional<z.ZodNullable<z.ZodObject<{
165
170
  enable: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
@@ -162,7 +162,7 @@ export interface DualAxis {
162
162
  /**
163
163
  * @description 标签配置, 用于定义图表的数据标签, 包括数据标签的位置, 格式, 样式等.
164
164
  */
165
- label?: Label;
165
+ label?: Omit<Label, 'labelLayout'>;
166
166
  /**
167
167
  * @description 图例配置, 用于定义图表的图例, 包括图例的位置, 格式, 样式等.
168
168
  */
@@ -744,10 +744,6 @@ export declare const zDualAxis: z.ZodObject<{
744
744
  colorMapping: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
745
745
  }, z.core.$strip>>>;
746
746
  label: z.ZodOptional<z.ZodNullable<z.ZodObject<{
747
- enable: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
748
- wrap: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
749
- showValue: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
750
- showValuePercent: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
751
747
  autoFormat: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
752
748
  numFormat: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodObject<{
753
749
  type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
@@ -779,10 +775,14 @@ export declare const zDualAxis: z.ZodObject<{
779
775
  halfEven: "halfEven";
780
776
  }>>>;
781
777
  }, z.core.$strip>>>>;
778
+ labelColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
782
779
  labelFontSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
783
780
  labelFontWeight: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
784
781
  labelBackgroundColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
785
- labelColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
782
+ enable: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
783
+ wrap: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
784
+ showValue: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
785
+ showValuePercent: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
786
786
  labelColorSmartInvert: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
787
787
  labelPosition: z.ZodOptional<z.ZodNullable<z.ZodString>>;
788
788
  labelOverlap: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
@@ -14,7 +14,9 @@ const zDualAxis = z.object({
14
14
  xAxis: zXBandAxis.nullish(),
15
15
  backgroundColor: zBackgroundColor.nullish(),
16
16
  color: zColor.nullish(),
17
- label: zLabel.nullish(),
17
+ label: zLabel.omit({
18
+ labelLayout: true
19
+ }).nullish(),
18
20
  legend: zLegend.nullish(),
19
21
  tooltip: zTooltip.nullish(),
20
22
  crosshairRect: zCrosshairRect.nullish(),
@@ -1 +1 @@
1
- {"version":3,"file":"types/chartType/dualAxis/zDualAxis.js","sources":["webpack://@visactor/vseed/./src/types/chartType/dualAxis/zDualAxis.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zLocale } from 'src/types/i18n'\nimport {\n zAnnotationArea,\n zAnnotationHorizontalLine,\n zAnnotationPoint,\n zAnnotationVerticalLine,\n zAreaStyle,\n zBackgroundColor,\n zBarStyle,\n zColor,\n zCrosshairRect,\n zDataset,\n zDimensions,\n zDualChartType,\n zDualMeasures,\n zLabel,\n zLegend,\n zLineStyle,\n zMeasureTree,\n zPointStyle,\n zSort,\n zSortLegend,\n zTheme,\n zTooltip,\n zXBandAxis,\n zYLinearAxis,\n} from 'src/types/properties'\n\nexport const zDualAxis = z.object({\n chartType: z.literal('dualAxis'),\n\n dataset: zDataset.nullish(),\n dimensions: zDimensions.nullish(),\n measures: zMeasureTree.nullish(),\n dualMeasures: zDualMeasures.nullish(),\n\n dualChartType: z.array(zDualChartType).or(zDualChartType).nullish(),\n alignTicks: z.array(z.boolean()).or(z.boolean()).nullish(),\n \n primaryYAxis: z.array(zYLinearAxis).or(zYLinearAxis).nullish(),\n secondaryYAxis: z.array(zYLinearAxis).or(zYLinearAxis).nullish(),\n xAxis: zXBandAxis.nullish(),\n\n backgroundColor: zBackgroundColor.nullish(),\n color: zColor.nullish(),\n label: zLabel.nullish(),\n legend: zLegend.nullish(),\n tooltip: zTooltip.nullish(),\n\n crosshairRect: zCrosshairRect.nullish(),\n sort: zSort.nullish(),\n sortLegend: zSortLegend.nullish(),\n theme: zTheme.nullish(),\n\n barStyle: z.array(zBarStyle).or(zBarStyle).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\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\n locale: zLocale.nullish(),\n})\n"],"names":["zDualAxis","z","zDataset","zDimensions","zMeasureTree","zDualMeasures","zDualChartType","zYLinearAxis","zXBandAxis","zBackgroundColor","zColor","zLabel","zLegend","zTooltip","zCrosshairRect","zSort","zSortLegend","zTheme","zBarStyle","zPointStyle","zLineStyle","zAreaStyle","zAnnotationPoint","zAnnotationVerticalLine","zAnnotationHorizontalLine","zAnnotationArea","zLocale"],"mappings":";;;AA6BO,MAAMA,YAAYC,EAAE,MAAM,CAAC;IAChC,WAAWA,EAAE,OAAO,CAAC;IAErB,SAASC,SAAS,OAAO;IACzB,YAAYC,YAAY,OAAO;IAC/B,UAAUC,aAAa,OAAO;IAC9B,cAAcC,cAAc,OAAO;IAEnC,eAAeJ,EAAE,KAAK,CAACK,gBAAgB,EAAE,CAACA,gBAAgB,OAAO;IACjE,YAAYL,EAAE,KAAK,CAACA,EAAE,OAAO,IAAI,EAAE,CAACA,EAAE,OAAO,IAAI,OAAO;IAExD,cAAcA,EAAE,KAAK,CAACM,cAAc,EAAE,CAACA,cAAc,OAAO;IAC5D,gBAAgBN,EAAE,KAAK,CAACM,cAAc,EAAE,CAACA,cAAc,OAAO;IAC9D,OAAOC,WAAW,OAAO;IAEzB,iBAAiBC,iBAAiB,OAAO;IACzC,OAAOC,OAAO,OAAO;IACrB,OAAOC,OAAO,OAAO;IACrB,QAAQC,QAAQ,OAAO;IACvB,SAASC,SAAS,OAAO;IAEzB,eAAeC,eAAe,OAAO;IACrC,MAAMC,MAAM,OAAO;IACnB,YAAYC,YAAY,OAAO;IAC/B,OAAOC,OAAO,OAAO;IAErB,UAAUhB,EAAE,KAAK,CAACiB,WAAW,EAAE,CAACA,WAAW,OAAO;IAClD,YAAYjB,EAAE,KAAK,CAACkB,aAAa,EAAE,CAACA,aAAa,OAAO;IACxD,WAAWlB,EAAE,KAAK,CAACmB,YAAY,EAAE,CAACA,YAAY,OAAO;IACrD,WAAWnB,EAAE,KAAK,CAACoB,YAAY,EAAE,CAACA,YAAY,OAAO;IAErD,iBAAiBpB,EAAE,KAAK,CAACqB,kBAAkB,EAAE,CAACA,kBAAkB,OAAO;IACvE,wBAAwBrB,EAAE,KAAK,CAACsB,yBAAyB,EAAE,CAACA,yBAAyB,OAAO;IAC5F,0BAA0BtB,EAAE,KAAK,CAACuB,2BAA2B,EAAE,CAACA,2BAA2B,OAAO;IAClG,gBAAgBvB,EAAE,KAAK,CAACwB,iBAAiB,EAAE,CAACA,iBAAiB,OAAO;IAEpE,QAAQC,QAAQ,OAAO;AACzB"}
1
+ {"version":3,"file":"types/chartType/dualAxis/zDualAxis.js","sources":["webpack://@visactor/vseed/./src/types/chartType/dualAxis/zDualAxis.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zLocale } from 'src/types/i18n'\nimport {\n zAnnotationArea,\n zAnnotationHorizontalLine,\n zAnnotationPoint,\n zAnnotationVerticalLine,\n zAreaStyle,\n zBackgroundColor,\n zBarStyle,\n zColor,\n zCrosshairRect,\n zDataset,\n zDimensions,\n zDualChartType,\n zDualMeasures,\n zLabel,\n zLegend,\n zLineStyle,\n zMeasureTree,\n zPointStyle,\n zSort,\n zSortLegend,\n zTheme,\n zTooltip,\n zXBandAxis,\n zYLinearAxis,\n} from 'src/types/properties'\n\nexport const zDualAxis = z.object({\n chartType: z.literal('dualAxis'),\n\n dataset: zDataset.nullish(),\n dimensions: zDimensions.nullish(),\n measures: zMeasureTree.nullish(),\n dualMeasures: zDualMeasures.nullish(),\n\n dualChartType: z.array(zDualChartType).or(zDualChartType).nullish(),\n alignTicks: z.array(z.boolean()).or(z.boolean()).nullish(),\n \n primaryYAxis: z.array(zYLinearAxis).or(zYLinearAxis).nullish(),\n secondaryYAxis: z.array(zYLinearAxis).or(zYLinearAxis).nullish(),\n xAxis: zXBandAxis.nullish(),\n\n backgroundColor: zBackgroundColor.nullish(),\n color: zColor.nullish(),\n label: zLabel.omit({ labelLayout: true }).nullish(),\n legend: zLegend.nullish(),\n tooltip: zTooltip.nullish(),\n\n crosshairRect: zCrosshairRect.nullish(),\n sort: zSort.nullish(),\n sortLegend: zSortLegend.nullish(),\n theme: zTheme.nullish(),\n\n barStyle: z.array(zBarStyle).or(zBarStyle).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\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\n locale: zLocale.nullish(),\n})\n"],"names":["zDualAxis","z","zDataset","zDimensions","zMeasureTree","zDualMeasures","zDualChartType","zYLinearAxis","zXBandAxis","zBackgroundColor","zColor","zLabel","zLegend","zTooltip","zCrosshairRect","zSort","zSortLegend","zTheme","zBarStyle","zPointStyle","zLineStyle","zAreaStyle","zAnnotationPoint","zAnnotationVerticalLine","zAnnotationHorizontalLine","zAnnotationArea","zLocale"],"mappings":";;;AA6BO,MAAMA,YAAYC,EAAE,MAAM,CAAC;IAChC,WAAWA,EAAE,OAAO,CAAC;IAErB,SAASC,SAAS,OAAO;IACzB,YAAYC,YAAY,OAAO;IAC/B,UAAUC,aAAa,OAAO;IAC9B,cAAcC,cAAc,OAAO;IAEnC,eAAeJ,EAAE,KAAK,CAACK,gBAAgB,EAAE,CAACA,gBAAgB,OAAO;IACjE,YAAYL,EAAE,KAAK,CAACA,EAAE,OAAO,IAAI,EAAE,CAACA,EAAE,OAAO,IAAI,OAAO;IAExD,cAAcA,EAAE,KAAK,CAACM,cAAc,EAAE,CAACA,cAAc,OAAO;IAC5D,gBAAgBN,EAAE,KAAK,CAACM,cAAc,EAAE,CAACA,cAAc,OAAO;IAC9D,OAAOC,WAAW,OAAO;IAEzB,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;IAEzB,eAAeC,eAAe,OAAO;IACrC,MAAMC,MAAM,OAAO;IACnB,YAAYC,YAAY,OAAO;IAC/B,OAAOC,OAAO,OAAO;IAErB,UAAUhB,EAAE,KAAK,CAACiB,WAAW,EAAE,CAACA,WAAW,OAAO;IAClD,YAAYjB,EAAE,KAAK,CAACkB,aAAa,EAAE,CAACA,aAAa,OAAO;IACxD,WAAWlB,EAAE,KAAK,CAACmB,YAAY,EAAE,CAACA,YAAY,OAAO;IACrD,WAAWnB,EAAE,KAAK,CAACoB,YAAY,EAAE,CAACA,YAAY,OAAO;IAErD,iBAAiBpB,EAAE,KAAK,CAACqB,kBAAkB,EAAE,CAACA,kBAAkB,OAAO;IACvE,wBAAwBrB,EAAE,KAAK,CAACsB,yBAAyB,EAAE,CAACA,yBAAyB,OAAO;IAC5F,0BAA0BtB,EAAE,KAAK,CAACuB,2BAA2B,EAAE,CAACA,2BAA2B,OAAO;IAClG,gBAAgBvB,EAAE,KAAK,CAACwB,iBAAiB,EAAE,CAACA,iBAAiB,OAAO;IAEpE,QAAQC,QAAQ,OAAO;AACzB"}
@@ -48,7 +48,7 @@ export interface Funnel {
48
48
  /**
49
49
  * 指标
50
50
  * @description 漏斗图的所有指标会自动合并为一个指标, 存在多个指标时, 指标名称会与其余维度合并, 作为图例项展示.
51
- * @type {DimensionTree}
51
+ * @type {MeasureTree}
52
52
  * @example [{id: 'value', alias: '数值占比', format: 'percent'}]
53
53
  */
54
54
  measures?: MeasureTree;
@@ -65,7 +65,7 @@ export interface Funnel {
65
65
  /**
66
66
  * @description 标签配置, 用于定义图表的数据标签, 包括数据标签的位置, 格式, 样式等.
67
67
  */
68
- label?: Label;
68
+ label?: Omit<Label, 'labelLayout'>;
69
69
  /**
70
70
  * @description 颜色图例配置, 用于定义图表的图例, 包括图例的位置, 格式, 样式等.
71
71
  */
@@ -118,10 +118,6 @@ export declare const zFunnel: 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>>;
125
121
  autoFormat: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
126
122
  numFormat: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodObject<{
127
123
  type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
@@ -153,10 +149,14 @@ export declare const zFunnel: z.ZodObject<{
153
149
  halfEven: "halfEven";
154
150
  }>>>;
155
151
  }, z.core.$strip>>>>;
152
+ labelColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
156
153
  labelFontSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
157
154
  labelFontWeight: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
158
155
  labelBackgroundColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
159
- labelColor: 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>>;
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,7 +9,9 @@ const zFunnel = z.object({
9
9
  measures: zMeasureTree.nullish(),
10
10
  backgroundColor: zBackgroundColor.nullish(),
11
11
  color: zColor.nullish(),
12
- label: zLabel.nullish(),
12
+ label: zLabel.omit({
13
+ labelLayout: true
14
+ }).nullish(),
13
15
  legend: zColorLegend.nullish(),
14
16
  tooltip: zTooltip.nullish(),
15
17
  theme: zTheme.nullish(),
@@ -1 +1 @@
1
- {"version":3,"file":"types/chartType/funnel/zFunnel.js","sources":["webpack://@visactor/vseed/./src/types/chartType/funnel/zFunnel.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zLocale } from '../../i18n'\nimport {\n zBackgroundColor,\n zColor,\n zColorLegend,\n zDataset,\n zDimensions,\n zEncoding,\n zLabel,\n zMeasureTree,\n zTheme,\n zTooltip,\n} from '../../properties'\n\nexport const zFunnel = z.object({\n chartType: z.literal('funnel'),\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: zColorLegend.nullish(),\n tooltip: zTooltip.nullish(),\n theme: zTheme.nullish(),\n locale: zLocale.nullish(),\n})\n"],"names":["zFunnel","z","zDataset","zEncoding","zDimensions","zMeasureTree","zBackgroundColor","zColor","zLabel","zColorLegend","zTooltip","zTheme","zLocale"],"mappings":";;;AAeO,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,aAAa,OAAO;IAC5B,SAASC,SAAS,OAAO;IACzB,OAAOC,OAAO,OAAO;IACrB,QAAQC,QAAQ,OAAO;AACzB"}
1
+ {"version":3,"file":"types/chartType/funnel/zFunnel.js","sources":["webpack://@visactor/vseed/./src/types/chartType/funnel/zFunnel.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zLocale } from '../../i18n'\nimport {\n zBackgroundColor,\n zColor,\n zColorLegend,\n zDataset,\n zDimensions,\n zEncoding,\n zLabel,\n zMeasureTree,\n zTheme,\n zTooltip,\n} from '../../properties'\n\nexport const zFunnel = z.object({\n chartType: z.literal('funnel'),\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: zColorLegend.nullish(),\n tooltip: zTooltip.nullish(),\n theme: zTheme.nullish(),\n locale: zLocale.nullish(),\n})\n"],"names":["zFunnel","z","zDataset","zEncoding","zDimensions","zMeasureTree","zBackgroundColor","zColor","zLabel","zColorLegend","zTooltip","zTheme","zLocale"],"mappings":";;;AAeO,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,aAAa,OAAO;IAC5B,SAASC,SAAS,OAAO;IACzB,OAAOC,OAAO,OAAO;IACrB,QAAQC,QAAQ,OAAO;AACzB"}
@@ -69,7 +69,7 @@ export interface Heatmap {
69
69
  /**
70
70
  * @description 热力图标签配置, 用于定义图表的数据标签, 自动开启标签反色, 确保标签可读性.
71
71
  */
72
- label?: Label;
72
+ label?: Omit<Label, 'labelLayout'>;
73
73
  /**
74
74
  * 图例
75
75
  * @description 热力图的颜色图例配置, 用于定义图表的图例, 包括图例的位置, 格式, 样式等.
@@ -104,10 +104,6 @@ export declare const zHeatmap: z.ZodObject<{
104
104
  colorMapping: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
105
105
  }, z.core.$strip>>>;
106
106
  label: z.ZodOptional<z.ZodNullable<z.ZodObject<{
107
- enable: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
108
- wrap: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
109
- showValue: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
110
- showValuePercent: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
111
107
  autoFormat: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
112
108
  numFormat: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodObject<{
113
109
  type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
@@ -139,10 +135,14 @@ export declare const zHeatmap: z.ZodObject<{
139
135
  halfEven: "halfEven";
140
136
  }>>>;
141
137
  }, z.core.$strip>>>>;
138
+ labelColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
142
139
  labelFontSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
143
140
  labelFontWeight: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
144
141
  labelBackgroundColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
145
- labelColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
142
+ enable: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
143
+ wrap: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
144
+ showValue: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
145
+ showValuePercent: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
146
146
  labelColorSmartInvert: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
147
147
  labelPosition: z.ZodOptional<z.ZodNullable<z.ZodString>>;
148
148
  labelOverlap: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
@@ -8,7 +8,9 @@ const zHeatmap = z.object({
8
8
  measures: zMeasureTree.nullish(),
9
9
  backgroundColor: zBackgroundColor.nullish(),
10
10
  color: zColor.nullish(),
11
- label: zLabel.nullish(),
11
+ label: zLabel.omit({
12
+ labelLayout: true
13
+ }).nullish(),
12
14
  legend: zColorLegend.nullish(),
13
15
  tooltip: zTooltip.nullish(),
14
16
  theme: zTheme.nullish(),