@visactor/vseed 0.1.20 → 0.1.22

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 (152) 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 +1282 -172
  4. package/dist/esm/pipeline/spec/chart/pipeline/donut.js +4 -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/funnel.js +2 -1
  9. package/dist/esm/pipeline/spec/chart/pipeline/funnel.js.map +1 -1
  10. package/dist/esm/pipeline/spec/chart/pipeline/pie.js +4 -3
  11. package/dist/esm/pipeline/spec/chart/pipeline/pie.js.map +1 -1
  12. package/dist/esm/pipeline/spec/chart/pipeline/radar.js +2 -1
  13. package/dist/esm/pipeline/spec/chart/pipeline/radar.js.map +1 -1
  14. package/dist/esm/pipeline/spec/chart/pipeline/rose.js +4 -3
  15. package/dist/esm/pipeline/spec/chart/pipeline/rose.js.map +1 -1
  16. package/dist/esm/pipeline/spec/chart/pipeline/roseParallel.js +4 -3
  17. package/dist/esm/pipeline/spec/chart/pipeline/roseParallel.js.map +1 -1
  18. package/dist/esm/pipeline/spec/chart/pipes/annotation/annotationAreaBand.js +16 -6
  19. package/dist/esm/pipeline/spec/chart/pipes/annotation/annotationAreaBand.js.map +1 -1
  20. package/dist/esm/pipeline/spec/chart/pipes/dataset/datasetPivot.js.map +1 -1
  21. package/dist/esm/pipeline/spec/chart/pipes/init/pivot.js.map +1 -1
  22. package/dist/esm/pipeline/spec/chart/pipes/label/index.d.ts +1 -0
  23. package/dist/esm/pipeline/spec/chart/pipes/label/index.js +2 -1
  24. package/dist/esm/pipeline/spec/chart/pipes/label/label.d.ts +3 -2
  25. package/dist/esm/pipeline/spec/chart/pipes/label/label.js +8 -11
  26. package/dist/esm/pipeline/spec/chart/pipes/label/label.js.map +1 -1
  27. package/dist/esm/pipeline/spec/chart/pipes/label/labelDualAxis.js +0 -4
  28. package/dist/esm/pipeline/spec/chart/pipes/label/labelDualAxis.js.map +1 -1
  29. package/dist/esm/pipeline/spec/chart/pipes/label/labelPie.d.ts +2 -0
  30. package/dist/esm/pipeline/spec/chart/pipes/label/labelPie.js +22 -0
  31. package/dist/esm/pipeline/spec/chart/pipes/label/labelPie.js.map +1 -0
  32. package/dist/esm/pipeline/spec/chart/pipes/label/labelScatter.js +0 -2
  33. package/dist/esm/pipeline/spec/chart/pipes/label/labelScatter.js.map +1 -1
  34. package/dist/esm/pipeline/spec/chart/pipes/markStyle/areaStyle.js +9 -1
  35. package/dist/esm/pipeline/spec/chart/pipes/markStyle/areaStyle.js.map +1 -1
  36. package/dist/esm/pipeline/spec/chart/pipes/markStyle/curve/curve.d.ts +3 -0
  37. package/dist/esm/pipeline/spec/chart/pipes/markStyle/curve/curve.js +12 -0
  38. package/dist/esm/pipeline/spec/chart/pipes/markStyle/curve/curve.js.map +1 -0
  39. package/dist/esm/pipeline/spec/chart/pipes/markStyle/curve/index.d.ts +1 -0
  40. package/dist/esm/pipeline/spec/chart/pipes/markStyle/curve/index.js +2 -0
  41. package/dist/esm/pipeline/spec/chart/pipes/markStyle/lineStyle.js +4 -1
  42. package/dist/esm/pipeline/spec/chart/pipes/markStyle/lineStyle.js.map +1 -1
  43. package/dist/esm/pipeline/spec/chart/pipes/pivotChart/index.d.ts +1 -0
  44. package/dist/esm/pipeline/spec/chart/pipes/pivotChart/index.js +2 -1
  45. package/dist/esm/pipeline/spec/chart/pipes/pivotChart/pivotGridStyle.js +7 -4
  46. package/dist/esm/pipeline/spec/chart/pipes/pivotChart/pivotGridStyle.js.map +1 -1
  47. package/dist/esm/pipeline/spec/chart/pipes/pivotChart/pivotHideIndicatorName.d.ts +2 -0
  48. package/dist/esm/pipeline/spec/chart/pipes/pivotChart/pivotHideIndicatorName.js +7 -0
  49. package/dist/esm/pipeline/spec/chart/pipes/pivotChart/pivotHideIndicatorName.js.map +1 -0
  50. package/dist/esm/pipeline/spec/chart/pipes/size/scatterSize.js +2 -1
  51. package/dist/esm/pipeline/spec/chart/pipes/size/scatterSize.js.map +1 -1
  52. package/dist/esm/pipeline/utils/chatType.d.ts +16 -0
  53. package/dist/esm/pipeline/utils/chatType.js +12 -7
  54. package/dist/esm/pipeline/utils/chatType.js.map +1 -1
  55. package/dist/esm/theme/dark.js +5 -1
  56. package/dist/esm/theme/dark.js.map +1 -1
  57. package/dist/esm/theme/light.js +5 -1
  58. package/dist/esm/theme/light.js.map +1 -1
  59. package/dist/esm/types/advancedVSeed.d.ts +478 -180
  60. package/dist/esm/types/chartType/area/area.d.ts +1 -1
  61. package/dist/esm/types/chartType/area/zArea.d.ts +5 -5
  62. package/dist/esm/types/chartType/area/zArea.js +1 -3
  63. package/dist/esm/types/chartType/area/zArea.js.map +1 -1
  64. package/dist/esm/types/chartType/areaPercent/areaPercent.d.ts +1 -1
  65. package/dist/esm/types/chartType/areaPercent/zAreaPercent.d.ts +5 -5
  66. package/dist/esm/types/chartType/areaPercent/zAreaPercent.js +1 -3
  67. package/dist/esm/types/chartType/areaPercent/zAreaPercent.js.map +1 -1
  68. package/dist/esm/types/chartType/bar/bar.d.ts +1 -1
  69. package/dist/esm/types/chartType/bar/zBar.d.ts +5 -5
  70. package/dist/esm/types/chartType/bar/zBar.js +1 -3
  71. package/dist/esm/types/chartType/bar/zBar.js.map +1 -1
  72. package/dist/esm/types/chartType/barParallel/barParallel.d.ts +1 -1
  73. package/dist/esm/types/chartType/barParallel/zBarParallel.d.ts +5 -5
  74. package/dist/esm/types/chartType/barParallel/zBarParallel.js +1 -3
  75. package/dist/esm/types/chartType/barParallel/zBarParallel.js.map +1 -1
  76. package/dist/esm/types/chartType/barPercent/barPercent.d.ts +1 -1
  77. package/dist/esm/types/chartType/barPercent/zBarPercent.d.ts +5 -5
  78. package/dist/esm/types/chartType/barPercent/zBarPercent.js +1 -3
  79. package/dist/esm/types/chartType/barPercent/zBarPercent.js.map +1 -1
  80. package/dist/esm/types/chartType/column/column.d.ts +1 -1
  81. package/dist/esm/types/chartType/column/zColumn.d.ts +5 -5
  82. package/dist/esm/types/chartType/column/zColumn.js +1 -3
  83. package/dist/esm/types/chartType/column/zColumn.js.map +1 -1
  84. package/dist/esm/types/chartType/columnParallel/columnParallel.d.ts +1 -1
  85. package/dist/esm/types/chartType/columnParallel/zColumnParallel.d.ts +5 -5
  86. package/dist/esm/types/chartType/columnParallel/zColumnParallel.js +1 -3
  87. package/dist/esm/types/chartType/columnParallel/zColumnParallel.js.map +1 -1
  88. package/dist/esm/types/chartType/columnPercent/columnPercent.d.ts +1 -1
  89. package/dist/esm/types/chartType/columnPercent/zColumnPercent.d.ts +5 -5
  90. package/dist/esm/types/chartType/columnPercent/zColumnPercent.js +1 -3
  91. package/dist/esm/types/chartType/columnPercent/zColumnPercent.js.map +1 -1
  92. package/dist/esm/types/chartType/donut/donut.d.ts +2 -2
  93. package/dist/esm/types/chartType/donut/zDonut.d.ts +1 -5
  94. package/dist/esm/types/chartType/donut/zDonut.js +2 -2
  95. package/dist/esm/types/chartType/donut/zDonut.js.map +1 -1
  96. package/dist/esm/types/chartType/dualAxis/dualAxis.d.ts +1 -1
  97. package/dist/esm/types/chartType/dualAxis/zDualAxis.d.ts +5 -5
  98. package/dist/esm/types/chartType/dualAxis/zDualAxis.js +1 -3
  99. package/dist/esm/types/chartType/dualAxis/zDualAxis.js.map +1 -1
  100. package/dist/esm/types/chartType/funnel/funnel.d.ts +3 -3
  101. package/dist/esm/types/chartType/funnel/zFunnel.d.ts +5 -5
  102. package/dist/esm/types/chartType/funnel/zFunnel.js +1 -3
  103. package/dist/esm/types/chartType/funnel/zFunnel.js.map +1 -1
  104. package/dist/esm/types/chartType/heatmap/heatmap.d.ts +3 -3
  105. package/dist/esm/types/chartType/heatmap/zHeatmap.d.ts +5 -5
  106. package/dist/esm/types/chartType/heatmap/zHeatmap.js +1 -3
  107. package/dist/esm/types/chartType/heatmap/zHeatmap.js.map +1 -1
  108. package/dist/esm/types/chartType/line/line.d.ts +1 -1
  109. package/dist/esm/types/chartType/line/zLine.d.ts +5 -5
  110. package/dist/esm/types/chartType/line/zLine.js +1 -3
  111. package/dist/esm/types/chartType/line/zLine.js.map +1 -1
  112. package/dist/esm/types/chartType/pie/pie.d.ts +2 -2
  113. package/dist/esm/types/chartType/pie/zPie.d.ts +1 -5
  114. package/dist/esm/types/chartType/pie/zPie.js +2 -2
  115. package/dist/esm/types/chartType/pie/zPie.js.map +1 -1
  116. package/dist/esm/types/chartType/radar/radar.d.ts +1 -1
  117. package/dist/esm/types/chartType/radar/zRadar.d.ts +5 -5
  118. package/dist/esm/types/chartType/radar/zRadar.js +1 -3
  119. package/dist/esm/types/chartType/radar/zRadar.js.map +1 -1
  120. package/dist/esm/types/chartType/rose/rose.d.ts +3 -3
  121. package/dist/esm/types/chartType/rose/zRose.d.ts +5 -5
  122. package/dist/esm/types/chartType/rose/zRose.js +1 -3
  123. package/dist/esm/types/chartType/rose/zRose.js.map +1 -1
  124. package/dist/esm/types/chartType/roseParallel/roseParallel.d.ts +3 -3
  125. package/dist/esm/types/chartType/roseParallel/zRoseParallel.d.ts +5 -5
  126. package/dist/esm/types/chartType/roseParallel/zRoseParallel.js +1 -3
  127. package/dist/esm/types/chartType/roseParallel/zRoseParallel.js.map +1 -1
  128. package/dist/esm/types/chartType/scatter/scatter.d.ts +1 -1
  129. package/dist/esm/types/chartType/scatter/zScatter.d.ts +5 -5
  130. package/dist/esm/types/chartType/scatter/zScatter.js +1 -3
  131. package/dist/esm/types/chartType/scatter/zScatter.js.map +1 -1
  132. package/dist/esm/types/properties/config/color/color.d.ts +0 -8
  133. package/dist/esm/types/properties/config/color/color.js.map +1 -1
  134. package/dist/esm/types/properties/config/config.d.ts +478 -180
  135. package/dist/esm/types/properties/config/config.js +8 -6
  136. package/dist/esm/types/properties/config/config.js.map +1 -1
  137. package/dist/esm/types/properties/config/label/index.d.ts +2 -0
  138. package/dist/esm/types/properties/config/label/index.js +1 -0
  139. package/dist/esm/types/properties/config/label/label.d.ts +0 -7
  140. package/dist/esm/types/properties/config/label/pieLabel.d.ts +10 -0
  141. package/dist/esm/types/properties/config/label/pieLabel.js +0 -0
  142. package/dist/esm/types/properties/config/label/zLabel.d.ts +0 -5
  143. package/dist/esm/types/properties/config/label/zLabel.js +1 -6
  144. package/dist/esm/types/properties/config/label/zLabel.js.map +1 -1
  145. package/dist/esm/types/properties/config/label/zPieLabel.d.ts +46 -0
  146. package/dist/esm/types/properties/config/label/zPieLabel.js +12 -0
  147. package/dist/esm/types/properties/config/label/zPieLabel.js.map +1 -0
  148. package/dist/esm/types/properties/theme/customTheme.d.ts +478 -180
  149. package/dist/esm/types/zVseed.d.ts +82 -90
  150. package/dist/umd/index.js +155 -115
  151. package/dist/umd/index.js.map +1 -1
  152. package/package.json +7 -3
@@ -4,7 +4,7 @@ import { zCrosshairLine, zCrosshairRect } from "./crosshair/index.js";
4
4
  import { zStackCornerRadius } from "./stackCornerRadius/stackCornerRadius.js";
5
5
  import { zBackgroundColor } from "./backgroundColor/backgroundColor.js";
6
6
  import { zColor } from "./color/color.js";
7
- import { zLabel } from "./label/index.js";
7
+ import { zLabel, zPieLabel } from "./label/index.js";
8
8
  import { zLegend } from "./legend/legend.js";
9
9
  import { zTooltip } from "./tooltip/tooltip.js";
10
10
  import { zDualChartType } from "../chartType/index.js";
@@ -93,11 +93,13 @@ const zScatterConfig = z.object({
93
93
  legend: zLegend.nullish(),
94
94
  xAxis: zXLinearAxis.nullish(),
95
95
  yAxis: zYLinearAxis.nullish(),
96
- crosshairLine: zCrosshairLine.nullish()
96
+ crosshairLine: zCrosshairLine.nullish(),
97
+ size: z.number().or(z.array(z.number())).nullish(),
98
+ sizeRange: z.number().or(z.array(z.number())).nullish()
97
99
  });
98
100
  const zRoseConfig = z.object({
99
101
  backgroundColor: zBackgroundColor.nullish(),
100
- label: zLabel.nullish(),
102
+ label: zPieLabel.nullish(),
101
103
  color: zColor.nullish(),
102
104
  tooltip: zTooltip.nullish(),
103
105
  legend: zLegend.nullish()
@@ -105,15 +107,15 @@ const zRoseConfig = z.object({
105
107
  const zRoseParallelConfig = zRoseConfig;
106
108
  const zPieConfig = z.object({
107
109
  backgroundColor: zBackgroundColor.nullish(),
108
- label: zLabel.nullish(),
110
+ label: zPieLabel.nullish(),
109
111
  color: zColor.nullish(),
110
112
  tooltip: zTooltip.nullish(),
111
113
  legend: zLegend.nullish()
112
114
  });
113
115
  const zDonutConfig = zPieConfig;
114
116
  const zRadarConfig = zPieConfig;
115
- const zFunnelConfig = zPieConfig;
116
- const zHeatmapConfig = zPieConfig;
117
+ const zFunnelConfig = zAreaConfig;
118
+ const zHeatmapConfig = zAreaConfig;
117
119
  const zConfig = z.object({
118
120
  table: zTableConfig.nullish(),
119
121
  pivotTable: zPivotTableConfig.nullish(),
@@ -1 +1 @@
1
- {"version":3,"file":"types/properties/config/config.js","sources":["webpack://@visactor/vseed/./src/types/properties/config/config.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zXBandAxis, zYBandAxis, zXLinearAxis, zYLinearAxis } from './axes'\nimport { zCrosshairLine, zCrosshairRect } from './crosshair'\nimport { zStackCornerRadius } from './stackCornerRadius/stackCornerRadius'\nimport { zBackgroundColor } from './backgroundColor/backgroundColor'\nimport { zColor } from './color/color'\nimport { zLabel } from './label'\nimport { zLegend } from './legend/legend'\nimport { zTooltip } from './tooltip/tooltip'\nimport { zDualChartType } from '../chartType'\n\n/**\n * zConfig by 图表类型\n */\nexport const zTableConfig = z.object({\n backgroundColor: zBackgroundColor.nullish(),\n\n // Border\n borderColor: z.string().nullish(),\n\n // Body\n bodyFontSize: z.number().nullish(),\n bodyFontColor: z.string().nullish(),\n bodyBackgroundColor: z.string().nullish(),\n // Body interaction\n hoverBodyBackgroundColor: z.string().nullish(),\n hoverBodyInlineBackgroundColor: z.string().nullish(),\n\n // Header\n headerFontSize: z.number().nullish(),\n headerFontColor: z.string().nullish(),\n headerBackgroundColor: z.string().nullish(),\n // Header interaction\n hoverHeaderBackgroundColor: z.string().nullish(),\n hoverHeaderInlineBackgroundColor: z.string().nullish(),\n\n // Interaction\n selectedBorderColor: z.string().nullish(),\n selectedBackgroundColor: z.string().nullish(),\n})\nexport const zPivotTableConfig = zTableConfig\n\nexport const zLineConfig = z.object({\n backgroundColor: zBackgroundColor.nullish(),\n label: zLabel.nullish(),\n color: zColor.nullish(),\n tooltip: zTooltip.nullish(),\n legend: zLegend.nullish(),\n\n xAxis: zXBandAxis.nullish(),\n yAxis: zYLinearAxis.nullish(),\n crosshairLine: zCrosshairLine.nullish(),\n})\nexport const zColumnConfig = z.object({\n backgroundColor: zBackgroundColor.nullish(),\n label: zLabel.nullish(),\n color: zColor.nullish(),\n tooltip: zTooltip.nullish(),\n legend: zLegend.nullish(),\n\n xAxis: zXBandAxis.nullish(),\n yAxis: zYLinearAxis.nullish(),\n crosshairRect: zCrosshairRect.nullish(),\n stackCornerRadius: zStackCornerRadius.nullish(),\n})\nexport const zColumnParallelConfig = zColumnConfig\nexport const zColumnPercentConfig = zColumnConfig\nexport const zBarConfig = z.object({\n backgroundColor: zBackgroundColor.nullish(),\n label: zLabel.nullish(),\n color: zColor.nullish(),\n tooltip: zTooltip.nullish(),\n legend: zLegend.nullish(),\n\n xAxis: zXLinearAxis.nullish(),\n yAxis: zYBandAxis.nullish(),\n crosshairRect: zCrosshairRect.nullish(),\n stackCornerRadius: zStackCornerRadius.nullish(),\n})\nexport const zBarParallelConfig = zBarConfig\nexport const zBarPercentConfig = zBarConfig\nexport const zAreaConfig = z.object({\n backgroundColor: zBackgroundColor.nullish(),\n label: zLabel.nullish(),\n color: zColor.nullish(),\n tooltip: zTooltip.nullish(),\n legend: zLegend.nullish(),\n\n xAxis: zXBandAxis.nullish(),\n yAxis: zYLinearAxis.nullish(),\n crosshairLine: zCrosshairLine.nullish(),\n})\nexport const zAreaPercentConfig = zAreaConfig\n\nexport const zDualAxisConfig = z.object({\n backgroundColor: zBackgroundColor.nullish(),\n label: zLabel.nullish(),\n color: zColor.nullish(),\n tooltip: zTooltip.nullish(),\n legend: zLegend.nullish(),\n\n dualChartType: z.array(zDualChartType).or(zDualChartType).nullish(),\n alignTicks: z.array(z.boolean()).or(z.boolean()).nullish(),\n primaryYAxis: z.array(zYLinearAxis).or(zYLinearAxis).nullish(),\n secondaryYAxis: z.array(zYLinearAxis).or(zYLinearAxis).nullish(),\n\n xAxis: zXBandAxis.nullish(),\n crosshairRect: zCrosshairRect.nullish(),\n})\nexport const zScatterConfig = z.object({\n backgroundColor: zBackgroundColor.nullish(),\n label: zLabel.nullish(),\n color: zColor.nullish(),\n tooltip: zTooltip.nullish(),\n legend: zLegend.nullish(),\n\n xAxis: zXLinearAxis.nullish(),\n yAxis: zYLinearAxis.nullish(),\n crosshairLine: zCrosshairLine.nullish(),\n})\n\n// polar\nexport const zRoseConfig = z.object({\n backgroundColor: zBackgroundColor.nullish(),\n label: zLabel.nullish(),\n color: zColor.nullish(),\n tooltip: zTooltip.nullish(),\n legend: zLegend.nullish(),\n})\nexport const zRoseParallelConfig = zRoseConfig\nexport const zPieConfig = z.object({\n backgroundColor: zBackgroundColor.nullish(),\n label: zLabel.nullish(),\n color: zColor.nullish(),\n tooltip: zTooltip.nullish(),\n legend: zLegend.nullish(),\n})\nexport const zDonutConfig = zPieConfig\nexport const zRadarConfig = zPieConfig\n// other\nexport const zFunnelConfig = zPieConfig\nexport const zHeatmapConfig = zPieConfig\n\n/**\n * ---\n * Type config by chart type\n */\nexport type TableConfig = z.infer<typeof zTableConfig>\nexport type PivotTableConfig = z.infer<typeof zPivotTableConfig>\n// cartesian\nexport type LineConfig = z.infer<typeof zLineConfig>\nexport type ColumnConfig = z.infer<typeof zColumnConfig>\nexport type ColumnParallelConfig = z.infer<typeof zColumnParallelConfig>\nexport type ColumnPercentConfig = z.infer<typeof zColumnPercentConfig>\nexport type BarConfig = z.infer<typeof zBarConfig>\nexport type BarParallelConfig = z.infer<typeof zBarParallelConfig>\nexport type BarPercentConfig = z.infer<typeof zBarPercentConfig>\nexport type AreaConfig = z.infer<typeof zAreaConfig>\nexport type AreaPercentConfig = z.infer<typeof zAreaPercentConfig>\n\nexport type ScatterConfig = z.infer<typeof zScatterConfig>\nexport type DualAxisConfig = z.infer<typeof zDualAxisConfig>\n// polar\nexport type RoseConfig = z.infer<typeof zRoseConfig>\nexport type RoseParallelConfig = z.infer<typeof zRoseParallelConfig>\nexport type PieConfig = z.infer<typeof zPieConfig>\nexport type DonutConfig = z.infer<typeof zDonutConfig>\nexport type RadarConfig = z.infer<typeof zRadarConfig>\n// other\nexport type FunnelConfig = z.infer<typeof zFunnelConfig>\nexport type HeatmapConfig = z.infer<typeof zHeatmapConfig>\n\n/**\n * config and type\n */\nexport type Config = z.infer<typeof zConfig>\nexport const zConfig = z.object({\n table: zTableConfig.nullish(),\n pivotTable: zPivotTableConfig.nullish(),\n\n // cartesian\n line: zLineConfig.nullish(),\n column: zColumnConfig.nullish(),\n columnParallel: zColumnParallelConfig.nullish(),\n columnPercent: zColumnPercentConfig.nullish(),\n bar: zBarConfig.nullish(),\n barParallel: zBarParallelConfig.nullish(),\n barPercent: zBarPercentConfig.nullish(),\n area: zAreaConfig.nullish(),\n areaPercent: zAreaPercentConfig.nullish(),\n\n scatter: zScatterConfig.nullish(),\n dualAxis: zDualAxisConfig.nullish(),\n\n // polar\n rose: zRoseConfig.nullish(),\n roseParallel: zRoseParallelConfig.nullish(),\n pie: zPieConfig.nullish(),\n donut: zDonutConfig.nullish(),\n radar: zRadarConfig.nullish(),\n // other\n funnel: zFunnelConfig.nullish(),\n heatmap: zHeatmapConfig.nullish(),\n})\n"],"names":["zTableConfig","z","zBackgroundColor","zPivotTableConfig","zLineConfig","zLabel","zColor","zTooltip","zLegend","zXBandAxis","zYLinearAxis","zCrosshairLine","zColumnConfig","zCrosshairRect","zStackCornerRadius","zColumnParallelConfig","zColumnPercentConfig","zBarConfig","zXLinearAxis","zYBandAxis","zBarParallelConfig","zBarPercentConfig","zAreaConfig","zAreaPercentConfig","zDualAxisConfig","zDualChartType","zScatterConfig","zRoseConfig","zRoseParallelConfig","zPieConfig","zDonutConfig","zRadarConfig","zFunnelConfig","zHeatmapConfig","zConfig"],"mappings":";;;;;;;;;;AAcO,MAAMA,eAAeC,EAAE,MAAM,CAAC;IACnC,iBAAiBC,iBAAiB,OAAO;IAGzC,aAAaD,EAAE,MAAM,GAAG,OAAO;IAG/B,cAAcA,EAAE,MAAM,GAAG,OAAO;IAChC,eAAeA,EAAE,MAAM,GAAG,OAAO;IACjC,qBAAqBA,EAAE,MAAM,GAAG,OAAO;IAEvC,0BAA0BA,EAAE,MAAM,GAAG,OAAO;IAC5C,gCAAgCA,EAAE,MAAM,GAAG,OAAO;IAGlD,gBAAgBA,EAAE,MAAM,GAAG,OAAO;IAClC,iBAAiBA,EAAE,MAAM,GAAG,OAAO;IACnC,uBAAuBA,EAAE,MAAM,GAAG,OAAO;IAEzC,4BAA4BA,EAAE,MAAM,GAAG,OAAO;IAC9C,kCAAkCA,EAAE,MAAM,GAAG,OAAO;IAGpD,qBAAqBA,EAAE,MAAM,GAAG,OAAO;IACvC,yBAAyBA,EAAE,MAAM,GAAG,OAAO;AAC7C;AACO,MAAME,oBAAoBH;AAE1B,MAAMI,cAAcH,EAAE,MAAM,CAAC;IAClC,iBAAiBC,iBAAiB,OAAO;IACzC,OAAOG,OAAO,OAAO;IACrB,OAAOC,OAAO,OAAO;IACrB,SAASC,SAAS,OAAO;IACzB,QAAQC,QAAQ,OAAO;IAEvB,OAAOC,WAAW,OAAO;IACzB,OAAOC,aAAa,OAAO;IAC3B,eAAeC,eAAe,OAAO;AACvC;AACO,MAAMC,gBAAgBX,EAAE,MAAM,CAAC;IACpC,iBAAiBC,iBAAiB,OAAO;IACzC,OAAOG,OAAO,OAAO;IACrB,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BAAgB,OAAO;IAGjC,MAAMG,YAAY,OAAO;IACzB,cAAcC,oBAAoB,OAAO;IACzC,KAAKC,WAAW,OAAO;IACvB,OAAOC,aAAa,OAAO;IAC3B,OAAOC,aAAa,OAAO;IAE3B,QAAQC,cAAc,OAAO;IAC7B,SAASC,eAAe,OAAO;AACjC"}
1
+ {"version":3,"file":"types/properties/config/config.js","sources":["webpack://@visactor/vseed/./src/types/properties/config/config.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zXBandAxis, zYBandAxis, zXLinearAxis, zYLinearAxis } from './axes'\nimport { zCrosshairLine, zCrosshairRect } from './crosshair'\nimport { zStackCornerRadius } from './stackCornerRadius/stackCornerRadius'\nimport { zBackgroundColor } from './backgroundColor/backgroundColor'\nimport { zColor } from './color/color'\nimport { zLabel, zPieLabel } from './label'\nimport { zLegend } from './legend/legend'\nimport { zTooltip } from './tooltip/tooltip'\nimport { zDualChartType } from '../chartType'\n\n/**\n * zConfig by 图表类型\n */\nexport const zTableConfig = z.object({\n backgroundColor: zBackgroundColor.nullish(),\n\n // Border\n borderColor: z.string().nullish(),\n\n // Body\n bodyFontSize: z.number().nullish(),\n bodyFontColor: z.string().nullish(),\n bodyBackgroundColor: z.string().nullish(),\n // Body interaction\n hoverBodyBackgroundColor: z.string().nullish(),\n hoverBodyInlineBackgroundColor: z.string().nullish(),\n\n // Header\n headerFontSize: z.number().nullish(),\n headerFontColor: z.string().nullish(),\n headerBackgroundColor: z.string().nullish(),\n // Header interaction\n hoverHeaderBackgroundColor: z.string().nullish(),\n hoverHeaderInlineBackgroundColor: z.string().nullish(),\n\n // Interaction\n selectedBorderColor: z.string().nullish(),\n selectedBackgroundColor: z.string().nullish(),\n})\nexport const zPivotTableConfig = zTableConfig\n\nexport const zLineConfig = z.object({\n backgroundColor: zBackgroundColor.nullish(),\n label: zLabel.nullish(),\n color: zColor.nullish(),\n tooltip: zTooltip.nullish(),\n legend: zLegend.nullish(),\n\n xAxis: zXBandAxis.nullish(),\n yAxis: zYLinearAxis.nullish(),\n crosshairLine: zCrosshairLine.nullish(),\n})\nexport const zColumnConfig = z.object({\n backgroundColor: zBackgroundColor.nullish(),\n label: zLabel.nullish(),\n color: zColor.nullish(),\n tooltip: zTooltip.nullish(),\n legend: zLegend.nullish(),\n\n xAxis: zXBandAxis.nullish(),\n yAxis: zYLinearAxis.nullish(),\n crosshairRect: zCrosshairRect.nullish(),\n stackCornerRadius: zStackCornerRadius.nullish(),\n})\nexport const zColumnParallelConfig = zColumnConfig\nexport const zColumnPercentConfig = zColumnConfig\nexport const zBarConfig = z.object({\n backgroundColor: zBackgroundColor.nullish(),\n label: zLabel.nullish(),\n color: zColor.nullish(),\n tooltip: zTooltip.nullish(),\n legend: zLegend.nullish(),\n\n xAxis: zXLinearAxis.nullish(),\n yAxis: zYBandAxis.nullish(),\n crosshairRect: zCrosshairRect.nullish(),\n stackCornerRadius: zStackCornerRadius.nullish(),\n})\nexport const zBarParallelConfig = zBarConfig\nexport const zBarPercentConfig = zBarConfig\nexport const zAreaConfig = z.object({\n backgroundColor: zBackgroundColor.nullish(),\n label: zLabel.nullish(),\n color: zColor.nullish(),\n tooltip: zTooltip.nullish(),\n legend: zLegend.nullish(),\n\n xAxis: zXBandAxis.nullish(),\n yAxis: zYLinearAxis.nullish(),\n crosshairLine: zCrosshairLine.nullish(),\n})\nexport const zAreaPercentConfig = zAreaConfig\n\nexport const zDualAxisConfig = z.object({\n backgroundColor: zBackgroundColor.nullish(),\n label: zLabel.nullish(),\n color: zColor.nullish(),\n tooltip: zTooltip.nullish(),\n legend: zLegend.nullish(),\n\n dualChartType: z.array(zDualChartType).or(zDualChartType).nullish(),\n alignTicks: z.array(z.boolean()).or(z.boolean()).nullish(),\n primaryYAxis: z.array(zYLinearAxis).or(zYLinearAxis).nullish(),\n secondaryYAxis: z.array(zYLinearAxis).or(zYLinearAxis).nullish(),\n\n xAxis: zXBandAxis.nullish(),\n crosshairRect: zCrosshairRect.nullish(),\n})\nexport const zScatterConfig = z.object({\n backgroundColor: zBackgroundColor.nullish(),\n label: zLabel.nullish(),\n color: zColor.nullish(),\n tooltip: zTooltip.nullish(),\n legend: zLegend.nullish(),\n\n xAxis: zXLinearAxis.nullish(),\n yAxis: zYLinearAxis.nullish(),\n crosshairLine: zCrosshairLine.nullish(),\n size: z.number().or(z.array(z.number())).nullish(),\n sizeRange: z.number().or(z.array(z.number())).nullish(),\n})\n\n// polar\nexport const zRoseConfig = z.object({\n backgroundColor: zBackgroundColor.nullish(),\n label: zPieLabel.nullish(),\n color: zColor.nullish(),\n tooltip: zTooltip.nullish(),\n legend: zLegend.nullish(),\n})\nexport const zRoseParallelConfig = zRoseConfig\nexport const zPieConfig = z.object({\n backgroundColor: zBackgroundColor.nullish(),\n label: zPieLabel.nullish(),\n color: zColor.nullish(),\n tooltip: zTooltip.nullish(),\n legend: zLegend.nullish(),\n})\nexport const zDonutConfig = zPieConfig\nexport const zRadarConfig = zPieConfig\n// other\nexport const zFunnelConfig = zAreaConfig\nexport const zHeatmapConfig = zAreaConfig\n\n/**\n * ---\n * Type config by chart type\n */\nexport type TableConfig = z.infer<typeof zTableConfig>\nexport type PivotTableConfig = z.infer<typeof zPivotTableConfig>\n// cartesian\nexport type LineConfig = z.infer<typeof zLineConfig>\nexport type ColumnConfig = z.infer<typeof zColumnConfig>\nexport type ColumnParallelConfig = z.infer<typeof zColumnParallelConfig>\nexport type ColumnPercentConfig = z.infer<typeof zColumnPercentConfig>\nexport type BarConfig = z.infer<typeof zBarConfig>\nexport type BarParallelConfig = z.infer<typeof zBarParallelConfig>\nexport type BarPercentConfig = z.infer<typeof zBarPercentConfig>\nexport type AreaConfig = z.infer<typeof zAreaConfig>\nexport type AreaPercentConfig = z.infer<typeof zAreaPercentConfig>\n\nexport type ScatterConfig = z.infer<typeof zScatterConfig>\nexport type DualAxisConfig = z.infer<typeof zDualAxisConfig>\n// polar\nexport type RoseConfig = z.infer<typeof zRoseConfig>\nexport type RoseParallelConfig = z.infer<typeof zRoseParallelConfig>\nexport type PieConfig = z.infer<typeof zPieConfig>\nexport type DonutConfig = z.infer<typeof zDonutConfig>\nexport type RadarConfig = z.infer<typeof zRadarConfig>\n// other\nexport type FunnelConfig = z.infer<typeof zFunnelConfig>\nexport type HeatmapConfig = z.infer<typeof zHeatmapConfig>\n\n/**\n * config and type\n */\nexport type Config = z.infer<typeof zConfig>\nexport const zConfig = z.object({\n table: zTableConfig.nullish(),\n pivotTable: zPivotTableConfig.nullish(),\n\n // cartesian\n line: zLineConfig.nullish(),\n column: zColumnConfig.nullish(),\n columnParallel: zColumnParallelConfig.nullish(),\n columnPercent: zColumnPercentConfig.nullish(),\n bar: zBarConfig.nullish(),\n barParallel: zBarParallelConfig.nullish(),\n barPercent: zBarPercentConfig.nullish(),\n area: zAreaConfig.nullish(),\n areaPercent: zAreaPercentConfig.nullish(),\n\n scatter: zScatterConfig.nullish(),\n dualAxis: zDualAxisConfig.nullish(),\n\n // polar\n rose: zRoseConfig.nullish(),\n roseParallel: zRoseParallelConfig.nullish(),\n pie: zPieConfig.nullish(),\n donut: zDonutConfig.nullish(),\n radar: zRadarConfig.nullish(),\n // other\n funnel: zFunnelConfig.nullish(),\n heatmap: zHeatmapConfig.nullish(),\n})\n"],"names":["zTableConfig","z","zBackgroundColor","zPivotTableConfig","zLineConfig","zLabel","zColor","zTooltip","zLegend","zXBandAxis","zYLinearAxis","zCrosshairLine","zColumnConfig","zCrosshairRect","zStackCornerRadius","zColumnParallelConfig","zColumnPercentConfig","zBarConfig","zXLinearAxis","zYBandAxis","zBarParallelConfig","zBarPercentConfig","zAreaConfig","zAreaPercentConfig","zDualAxisConfig","zDualChartType","zScatterConfig","zRoseConfig","zPieLabel","zRoseParallelConfig","zPieConfig","zDonutConfig","zRadarConfig","zFunnelConfig","zHeatmapConfig","zConfig"],"mappings":";;;;;;;;;;AAcO,MAAMA,eAAeC,EAAE,MAAM,CAAC;IACnC,iBAAiBC,iBAAiB,OAAO;IAGzC,aAAaD,EAAE,MAAM,GA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C,eAAe,OAAO;AACjC"}
@@ -1,2 +1,4 @@
1
1
  export type * from './label';
2
+ export type * from './pieLabel';
2
3
  export * from './zLabel';
4
+ export * from './zPieLabel';
@@ -1 +1,2 @@
1
1
  export * from "./zLabel.js";
2
+ export * from "./zPieLabel.js";
@@ -54,11 +54,4 @@ export type Label = {
54
54
  * @description 标签防重叠功能是否启用
55
55
  */
56
56
  labelOverlap?: boolean;
57
- /**
58
- * @description 标签布局方式, 仅对饼图、环形图生效且`labelPosition`为`outside`时生效
59
- * - arc: 按弧形为标签布局
60
- * - labelLine: 标签两端对齐, 通过引导线连接扇形图元与标签
61
- * - edge: 标签两端对齐, 通过引导线连接扇形图元与标签, 并且贴近图表两端边缘
62
- */
63
- labelLayout?: 'arc' | 'labelLine' | 'edge';
64
57
  };
@@ -0,0 +1,10 @@
1
+ import type { Label } from './label';
2
+ export interface PieLabel extends Label {
3
+ /**
4
+ * @description 标签布局方式, 仅对饼图、环形图生效且`labelPosition`为`outside`时生效
5
+ * - arc: 按弧形为标签布局
6
+ * - labelLine: 标签两端对齐, 通过引导线连接扇形图元与标签
7
+ * - edge: 标签两端对齐, 通过引导线连接扇形图元与标签, 并且贴近图表两端边缘
8
+ */
9
+ labelLayout?: 'arc' | 'labelLine' | 'edge';
10
+ }
@@ -42,9 +42,4 @@ export declare const zLabel: z.ZodObject<{
42
42
  labelColorSmartInvert: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
43
43
  labelPosition: z.ZodOptional<z.ZodNullable<z.ZodString>>;
44
44
  labelOverlap: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
45
- labelLayout: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
46
- arc: "arc";
47
- labelLine: "labelLine";
48
- edge: "edge";
49
- }>>>;
50
45
  }, z.core.$strip>;
@@ -13,12 +13,7 @@ const zLabel = z.object({
13
13
  labelColor: z.string().nullish(),
14
14
  labelColorSmartInvert: z.boolean().nullish(),
15
15
  labelPosition: z.string().nullish(),
16
- labelOverlap: z.boolean().nullish(),
17
- labelLayout: z["enum"]([
18
- 'arc',
19
- 'labelLine',
20
- 'edge'
21
- ]).nullish()
16
+ labelOverlap: z.boolean().nullish()
22
17
  });
23
18
  export { zLabel };
24
19
 
@@ -1 +1 @@
1
- {"version":3,"file":"types/properties/config/label/zLabel.js","sources":["webpack://@visactor/vseed/./src/types/properties/config/label/zLabel.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zNumFormat } from '../../format'\n\nexport const zLabel = z.object({\n enable: z.boolean().nullish(),\n wrap: z.boolean().nullish(),\n showValue: z.boolean().nullish(),\n showValuePercent: z.boolean().nullish(),\n autoFormat: z.boolean().nullish(),\n numFormat: zNumFormat.nullish(),\n labelFontSize: z.number().nullish(),\n labelFontWeight: z.number().or(z.string()).nullish(),\n labelBackgroundColor: z.string().nullish(),\n labelColor: z.string().nullish(),\n labelColorSmartInvert: z.boolean().nullish(),\n labelPosition: z.string().nullish(),\n labelOverlap: z.boolean().nullish(),\n labelLayout: z.enum(['arc', 'labelLine', 'edge']).nullish(),\n})\n"],"names":["zLabel","z","zNumFormat"],"mappings":";;AAGO,MAAMA,SAASC,EAAE,MAAM,CAAC;IAC7B,QAAQA,EAAE,OAAO,GAAG,OAAO;IAC3B,MAAMA,EAAE,OAAO,GAAG,OAAO;IACzB,WAAWA,EAAE,OAAO,GAAG,OAAO;IAC9B,kBAAkBA,EAAE,OAAO,GAAG,OAAO;IACrC,YAAYA,EAAE,OAAO,GAAG,OAAO;IAC/B,WAAWC,WAAW,OAAO;IAC7B,eAAeD,EAAE,MAAM,GAAG,OAAO;IACjC,iBAAiBA,EAAE,MAAM,GAAG,EAAE,CAACA,EAAE,MAAM,IAAI,OAAO;IAClD,sBAAsBA,EAAE,MAAM,GAAG,OAAO;IACxC,YAAYA,EAAE,MAAM,GAAG,OAAO;IAC9B,uBAAuBA,EAAE,OAAO,GAAG,OAAO;IAC1C,eAAeA,EAAE,MAAM,GAAG,OAAO;IACjC,cAAcA,EAAE,OAAO,GAAG,OAAO;IACjC,aAAaA,CAAC,CAADA,OAAM,CAAC;QAAC;QAAO;QAAa;KAAO,EAAE,OAAO;AAC3D"}
1
+ {"version":3,"file":"types/properties/config/label/zLabel.js","sources":["webpack://@visactor/vseed/./src/types/properties/config/label/zLabel.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zNumFormat } from '../../format'\n\nexport const zLabel = z.object({\n enable: z.boolean().nullish(),\n wrap: z.boolean().nullish(),\n showValue: z.boolean().nullish(),\n showValuePercent: z.boolean().nullish(),\n autoFormat: z.boolean().nullish(),\n numFormat: zNumFormat.nullish(),\n labelFontSize: z.number().nullish(),\n labelFontWeight: z.number().or(z.string()).nullish(),\n labelBackgroundColor: z.string().nullish(),\n labelColor: z.string().nullish(),\n labelColorSmartInvert: z.boolean().nullish(),\n labelPosition: z.string().nullish(),\n labelOverlap: z.boolean().nullish(),\n})\n"],"names":["zLabel","z","zNumFormat"],"mappings":";;AAGO,MAAMA,SAASC,EAAE,MAAM,CAAC;IAC7B,QAAQA,EAAE,OAAO,GAAG,OAAO;IAC3B,MAAMA,EAAE,OAAO,GAAG,OAAO;IACzB,WAAWA,EAAE,OAAO,GAAG,OAAO;IAC9B,kBAAkBA,EAAE,OAAO,GAAG,OAAO;IACrC,YAAYA,EAAE,OAAO,GAAG,OAAO;IAC/B,WAAWC,WAAW,OAAO;IAC7B,eAAeD,EAAE,MAAM,GAAG,OAAO;IACjC,iBAAiBA,EAAE,MAAM,GAAG,EAAE,CAACA,EAAE,MAAM,IAAI,OAAO;IAClD,sBAAsBA,EAAE,MAAM,GAAG,OAAO;IACxC,YAAYA,EAAE,MAAM,GAAG,OAAO;IAC9B,uBAAuBA,EAAE,OAAO,GAAG,OAAO;IAC1C,eAAeA,EAAE,MAAM,GAAG,OAAO;IACjC,cAAcA,EAAE,OAAO,GAAG,OAAO;AACnC"}
@@ -0,0 +1,46 @@
1
+ import { z } from 'zod';
2
+ export declare const zPieLabel: z.ZodObject<{
3
+ enable: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
4
+ wrap: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
5
+ showValue: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
6
+ showValuePercent: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
7
+ autoFormat: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
8
+ numFormat: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodObject<{
9
+ type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
10
+ number: "number";
11
+ percent: "percent";
12
+ permille: "permille";
13
+ scientific: "scientific";
14
+ }>>>;
15
+ ratio: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
16
+ symbol: z.ZodOptional<z.ZodDefault<z.ZodString>>;
17
+ thousandSeparator: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
18
+ prefix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
19
+ suffix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
20
+ fractionDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
21
+ significantDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
22
+ roundingPriority: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
23
+ morePrecision: "morePrecision";
24
+ lessPrecision: "lessPrecision";
25
+ }>>>;
26
+ roundingMode: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
27
+ floor: "floor";
28
+ ceil: "ceil";
29
+ expand: "expand";
30
+ trunc: "trunc";
31
+ halfCeil: "halfCeil";
32
+ halfFloor: "halfFloor";
33
+ halfExpand: "halfExpand";
34
+ halfTrunc: "halfTrunc";
35
+ halfEven: "halfEven";
36
+ }>>>;
37
+ }, z.core.$strip>>>>;
38
+ labelFontSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
39
+ labelFontWeight: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
40
+ labelBackgroundColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
41
+ labelColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
42
+ labelColorSmartInvert: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
43
+ labelPosition: z.ZodOptional<z.ZodNullable<z.ZodString>>;
44
+ labelOverlap: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
45
+ labelLayout: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<"arc">, z.ZodLiteral<"labelLine">, z.ZodLiteral<"edge">]>>>;
46
+ }, z.core.$strip>;
@@ -0,0 +1,12 @@
1
+ import { z } from "zod";
2
+ import { zLabel } from "./zLabel.js";
3
+ const zPieLabel = zLabel.extend({
4
+ labelLayout: z.union([
5
+ z.literal('arc'),
6
+ z.literal('labelLine'),
7
+ z.literal('edge')
8
+ ]).nullish()
9
+ });
10
+ export { zPieLabel };
11
+
12
+ //# sourceMappingURL=zPieLabel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types/properties/config/label/zPieLabel.js","sources":["webpack://@visactor/vseed/./src/types/properties/config/label/zPieLabel.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zLabel } from './zLabel'\n\nexport const zPieLabel = zLabel.extend({\n labelLayout: z.union([z.literal('arc'), z.literal('labelLine'), z.literal('edge')]).nullish(),\n})\n"],"names":["zPieLabel","zLabel","z"],"mappings":";;AAGO,MAAMA,YAAYC,OAAO,MAAM,CAAC;IACrC,aAAaC,EAAE,KAAK,CAAC;QAACA,EAAE,OAAO,CAAC;QAAQA,EAAE,OAAO,CAAC;QAAcA,EAAE,OAAO,CAAC;KAAQ,EAAE,OAAO;AAC7F"}