@visactor/vseed 0.2.8 → 0.3.0

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 (413) 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 +164 -128
  4. package/dist/esm/pipeline/advanced/chart/pipeline/area.js +9 -8
  5. package/dist/esm/pipeline/advanced/chart/pipeline/area.js.map +1 -1
  6. package/dist/esm/pipeline/advanced/chart/pipeline/areaPercent.js +9 -8
  7. package/dist/esm/pipeline/advanced/chart/pipeline/areaPercent.js.map +1 -1
  8. package/dist/esm/pipeline/advanced/chart/pipeline/bar.js +9 -8
  9. package/dist/esm/pipeline/advanced/chart/pipeline/bar.js.map +1 -1
  10. package/dist/esm/pipeline/advanced/chart/pipeline/barParallel.js +9 -8
  11. package/dist/esm/pipeline/advanced/chart/pipeline/barParallel.js.map +1 -1
  12. package/dist/esm/pipeline/advanced/chart/pipeline/barPercent.js +9 -8
  13. package/dist/esm/pipeline/advanced/chart/pipeline/barPercent.js.map +1 -1
  14. package/dist/esm/pipeline/advanced/chart/pipeline/boxplot.js +19 -8
  15. package/dist/esm/pipeline/advanced/chart/pipeline/boxplot.js.map +1 -1
  16. package/dist/esm/pipeline/advanced/chart/pipeline/column.js +9 -8
  17. package/dist/esm/pipeline/advanced/chart/pipeline/column.js.map +1 -1
  18. package/dist/esm/pipeline/advanced/chart/pipeline/columnParallel.js +9 -8
  19. package/dist/esm/pipeline/advanced/chart/pipeline/columnParallel.js.map +1 -1
  20. package/dist/esm/pipeline/advanced/chart/pipeline/columnPercent.js +9 -8
  21. package/dist/esm/pipeline/advanced/chart/pipeline/columnPercent.js.map +1 -1
  22. package/dist/esm/pipeline/advanced/chart/pipeline/donut.js +9 -8
  23. package/dist/esm/pipeline/advanced/chart/pipeline/donut.js.map +1 -1
  24. package/dist/esm/pipeline/advanced/chart/pipeline/dualAxis.js +1 -6
  25. package/dist/esm/pipeline/advanced/chart/pipeline/dualAxis.js.map +1 -1
  26. package/dist/esm/pipeline/advanced/chart/pipeline/funnel.js +9 -8
  27. package/dist/esm/pipeline/advanced/chart/pipeline/funnel.js.map +1 -1
  28. package/dist/esm/pipeline/advanced/chart/pipeline/heatmap.js +9 -7
  29. package/dist/esm/pipeline/advanced/chart/pipeline/heatmap.js.map +1 -1
  30. package/dist/esm/pipeline/advanced/chart/pipeline/histogram.js +15 -8
  31. package/dist/esm/pipeline/advanced/chart/pipeline/histogram.js.map +1 -1
  32. package/dist/esm/pipeline/advanced/chart/pipeline/line.js +9 -8
  33. package/dist/esm/pipeline/advanced/chart/pipeline/line.js.map +1 -1
  34. package/dist/esm/pipeline/advanced/chart/pipeline/pie.js +9 -8
  35. package/dist/esm/pipeline/advanced/chart/pipeline/pie.js.map +1 -1
  36. package/dist/esm/pipeline/advanced/chart/pipeline/radar.js +9 -8
  37. package/dist/esm/pipeline/advanced/chart/pipeline/radar.js.map +1 -1
  38. package/dist/esm/pipeline/advanced/chart/pipeline/rose.js +9 -8
  39. package/dist/esm/pipeline/advanced/chart/pipeline/rose.js.map +1 -1
  40. package/dist/esm/pipeline/advanced/chart/pipeline/roseParallel.js +9 -8
  41. package/dist/esm/pipeline/advanced/chart/pipeline/roseParallel.js.map +1 -1
  42. package/dist/esm/pipeline/advanced/chart/pipeline/scatter.js +1 -6
  43. package/dist/esm/pipeline/advanced/chart/pipeline/scatter.js.map +1 -1
  44. package/dist/esm/pipeline/advanced/chart/pipes/config/dualAxis.js +0 -1
  45. package/dist/esm/pipeline/advanced/chart/pipes/config/dualAxis.js.map +1 -1
  46. package/dist/esm/pipeline/advanced/chart/pipes/default/defaultDimensions.js +1 -2
  47. package/dist/esm/pipeline/advanced/chart/pipes/default/defaultDimensions.js.map +1 -1
  48. package/dist/esm/pipeline/advanced/chart/pipes/default/defaultMeasures.js +2 -4
  49. package/dist/esm/pipeline/advanced/chart/pipes/default/defaultMeasures.js.map +1 -1
  50. package/dist/esm/pipeline/advanced/chart/pipes/dimensions/pickDimensionsForReshape.js +4 -4
  51. package/dist/esm/pipeline/advanced/chart/pipes/dimensions/pickDimensionsForReshape.js.map +1 -1
  52. package/dist/esm/pipeline/advanced/chart/pipes/encoding/bar.js +5 -7
  53. package/dist/esm/pipeline/advanced/chart/pipes/encoding/bar.js.map +1 -1
  54. package/dist/esm/pipeline/advanced/chart/pipes/encoding/boxplot.js +5 -7
  55. package/dist/esm/pipeline/advanced/chart/pipes/encoding/boxplot.js.map +1 -1
  56. package/dist/esm/pipeline/advanced/chart/pipes/encoding/column.js +5 -7
  57. package/dist/esm/pipeline/advanced/chart/pipes/encoding/column.js.map +1 -1
  58. package/dist/esm/pipeline/advanced/chart/pipes/encoding/dualAxis.js +5 -15
  59. package/dist/esm/pipeline/advanced/chart/pipes/encoding/dualAxis.js.map +1 -1
  60. package/dist/esm/pipeline/advanced/chart/pipes/encoding/funnel.js +5 -7
  61. package/dist/esm/pipeline/advanced/chart/pipes/encoding/funnel.js.map +1 -1
  62. package/dist/esm/pipeline/advanced/chart/pipes/encoding/heatmap.js +4 -6
  63. package/dist/esm/pipeline/advanced/chart/pipes/encoding/heatmap.js.map +1 -1
  64. package/dist/esm/pipeline/advanced/chart/pipes/encoding/histogram.js +2 -5
  65. package/dist/esm/pipeline/advanced/chart/pipes/encoding/histogram.js.map +1 -1
  66. package/dist/esm/pipeline/advanced/chart/pipes/encoding/line.js +7 -14
  67. package/dist/esm/pipeline/advanced/chart/pipes/encoding/line.js.map +1 -1
  68. package/dist/esm/pipeline/advanced/chart/pipes/encoding/pie.js +5 -7
  69. package/dist/esm/pipeline/advanced/chart/pipes/encoding/pie.js.map +1 -1
  70. package/dist/esm/pipeline/advanced/chart/pipes/encoding/radar.js +5 -7
  71. package/dist/esm/pipeline/advanced/chart/pipes/encoding/radar.js.map +1 -1
  72. package/dist/esm/pipeline/advanced/chart/pipes/encoding/rose.js +5 -7
  73. package/dist/esm/pipeline/advanced/chart/pipes/encoding/rose.js.map +1 -1
  74. package/dist/esm/pipeline/advanced/chart/pipes/encoding/scatter.js +2 -5
  75. package/dist/esm/pipeline/advanced/chart/pipes/encoding/scatter.js.map +1 -1
  76. package/dist/esm/pipeline/advanced/chart/pipes/measures/buildMeasures.d.ts +1 -1
  77. package/dist/esm/pipeline/advanced/chart/pipes/measures/buildMeasures.js +19 -50
  78. package/dist/esm/pipeline/advanced/chart/pipes/measures/buildMeasures.js.map +1 -1
  79. package/dist/esm/pipeline/advanced/chart/pipes/measures/buildMeasuresForDualAxis.js +25 -118
  80. package/dist/esm/pipeline/advanced/chart/pipes/measures/buildMeasuresForDualAxis.js.map +1 -1
  81. package/dist/esm/pipeline/advanced/chart/pipes/measures/buildMeasuresForScatter.js +30 -115
  82. package/dist/esm/pipeline/advanced/chart/pipes/measures/buildMeasuresForScatter.js.map +1 -1
  83. package/dist/esm/pipeline/advanced/chart/pipes/measures/index.d.ts +0 -1
  84. package/dist/esm/pipeline/advanced/chart/pipes/measures/index.js +1 -2
  85. package/dist/esm/pipeline/advanced/chart/pipes/measures/utils.d.ts +12 -1
  86. package/dist/esm/pipeline/advanced/chart/pipes/measures/utils.js +12 -1
  87. package/dist/esm/pipeline/advanced/chart/pipes/measures/utils.js.map +1 -1
  88. package/dist/esm/pipeline/advanced/chart/pipes/reshape/pivotReshapeWithBoxplotEncoding.js +6 -12
  89. package/dist/esm/pipeline/advanced/chart/pipes/reshape/pivotReshapeWithBoxplotEncoding.js.map +1 -1
  90. package/dist/esm/pipeline/advanced/chart/pipes/reshape/pivotReshapeWithDualEncoding.js +25 -28
  91. package/dist/esm/pipeline/advanced/chart/pipes/reshape/pivotReshapeWithDualEncoding.js.map +1 -1
  92. package/dist/esm/pipeline/advanced/chart/pipes/reshape/pivotReshapeWithEncoding.js +6 -11
  93. package/dist/esm/pipeline/advanced/chart/pipes/reshape/pivotReshapeWithEncoding.js.map +1 -1
  94. package/dist/esm/pipeline/advanced/chart/pipes/reshape/pivotReshapeWithHistogramEncoding.js +4 -8
  95. package/dist/esm/pipeline/advanced/chart/pipes/reshape/pivotReshapeWithHistogramEncoding.js.map +1 -1
  96. package/dist/esm/pipeline/advanced/chart/pipes/reshape/pivotReshapeWithScatterEncoding.js +23 -35
  97. package/dist/esm/pipeline/advanced/chart/pipes/reshape/pivotReshapeWithScatterEncoding.js.map +1 -1
  98. package/dist/esm/pipeline/advanced/chart/pipes/reshape/reshapeWithBoxplotEncoding.js +3 -8
  99. package/dist/esm/pipeline/advanced/chart/pipes/reshape/reshapeWithBoxplotEncoding.js.map +1 -1
  100. package/dist/esm/pipeline/advanced/chart/pipes/reshape/reshapeWithDualEncoding.js +21 -17
  101. package/dist/esm/pipeline/advanced/chart/pipes/reshape/reshapeWithDualEncoding.js.map +1 -1
  102. package/dist/esm/pipeline/advanced/chart/pipes/reshape/reshapeWithEncoding.js +1 -2
  103. package/dist/esm/pipeline/advanced/chart/pipes/reshape/reshapeWithEncoding.js.map +1 -1
  104. package/dist/esm/pipeline/advanced/chart/pipes/reshape/reshapeWithHistogramEncoding.js +4 -9
  105. package/dist/esm/pipeline/advanced/chart/pipes/reshape/reshapeWithHistogramEncoding.js.map +1 -1
  106. package/dist/esm/pipeline/advanced/chart/pipes/reshape/reshapeWithScatterEncoding.js +22 -27
  107. package/dist/esm/pipeline/advanced/chart/pipes/reshape/reshapeWithScatterEncoding.js.map +1 -1
  108. package/dist/esm/pipeline/advanced/table/pipes/default/defaultDimensions.js +3 -3
  109. package/dist/esm/pipeline/advanced/table/pipes/default/defaultDimensions.js.map +1 -1
  110. package/dist/esm/pipeline/advanced/table/pipes/default/defaultMeasureId.js +3 -2
  111. package/dist/esm/pipeline/advanced/table/pipes/default/defaultMeasureId.js.map +1 -1
  112. package/dist/esm/pipeline/advanced/table/pipes/default/defaultMeasures.js +2 -2
  113. package/dist/esm/pipeline/advanced/table/pipes/default/defaultMeasures.js.map +1 -1
  114. package/dist/esm/pipeline/advanced/table/pipes/encoding/pivotTable.js +5 -5
  115. package/dist/esm/pipeline/advanced/table/pipes/encoding/pivotTable.js.map +1 -1
  116. package/dist/esm/pipeline/advanced/table/pipes/reshape/reshapePivotTable.js +3 -5
  117. package/dist/esm/pipeline/advanced/table/pipes/reshape/reshapePivotTable.js.map +1 -1
  118. package/dist/esm/pipeline/spec/chart/pipeline/boxplot.js +3 -3
  119. package/dist/esm/pipeline/spec/chart/pipeline/boxplot.js.map +1 -1
  120. package/dist/esm/pipeline/spec/chart/pipeline/dualAxis.js +17 -45
  121. package/dist/esm/pipeline/spec/chart/pipeline/dualAxis.js.map +1 -1
  122. package/dist/esm/pipeline/spec/chart/pipes/annotation/annotationPointOfDualAxis.js +3 -3
  123. package/dist/esm/pipeline/spec/chart/pipes/annotation/annotationPointOfDualAxis.js.map +1 -1
  124. package/dist/esm/pipeline/spec/chart/pipes/axes/histogramXLinear.js +1 -1
  125. package/dist/esm/pipeline/spec/chart/pipes/axes/histogramXLinear.js.map +1 -1
  126. package/dist/esm/pipeline/spec/chart/pipes/axes/title/defaultTitleText.d.ts +2 -2
  127. package/dist/esm/pipeline/spec/chart/pipes/axes/title/defaultTitleText.js +2 -6
  128. package/dist/esm/pipeline/spec/chart/pipes/axes/title/defaultTitleText.js.map +1 -1
  129. package/dist/esm/pipeline/spec/chart/pipes/axes/xBand.js +1 -1
  130. package/dist/esm/pipeline/spec/chart/pipes/axes/xBand.js.map +1 -1
  131. package/dist/esm/pipeline/spec/chart/pipes/axes/xLinear.js +1 -1
  132. package/dist/esm/pipeline/spec/chart/pipes/axes/xLinear.js.map +1 -1
  133. package/dist/esm/pipeline/spec/chart/pipes/axes/yBand.js +1 -1
  134. package/dist/esm/pipeline/spec/chart/pipes/axes/yBand.js.map +1 -1
  135. package/dist/esm/pipeline/spec/chart/pipes/axes/yLinear.js +1 -1
  136. package/dist/esm/pipeline/spec/chart/pipes/axes/yLinear.js.map +1 -1
  137. package/dist/esm/pipeline/spec/chart/pipes/axes/yLinearPrimary.js +16 -13
  138. package/dist/esm/pipeline/spec/chart/pipes/axes/yLinearPrimary.js.map +1 -1
  139. package/dist/esm/pipeline/spec/chart/pipes/axes/yLinearSecondary.js +10 -13
  140. package/dist/esm/pipeline/spec/chart/pipes/axes/yLinearSecondary.js.map +1 -1
  141. package/dist/esm/pipeline/spec/chart/pipes/color/colorAdapter.js +1 -3
  142. package/dist/esm/pipeline/spec/chart/pipes/color/colorAdapter.js.map +1 -1
  143. package/dist/esm/pipeline/spec/chart/pipes/color/linearColorForDualAxis.js +4 -12
  144. package/dist/esm/pipeline/spec/chart/pipes/color/linearColorForDualAxis.js.map +1 -1
  145. package/dist/esm/pipeline/spec/chart/pipes/dataset/datasetDualAxis.d.ts +2 -3
  146. package/dist/esm/pipeline/spec/chart/pipes/dataset/datasetDualAxis.js +38 -78
  147. package/dist/esm/pipeline/spec/chart/pipes/dataset/datasetDualAxis.js.map +1 -1
  148. package/dist/esm/pipeline/spec/chart/pipes/dataset/index.d.ts +1 -1
  149. package/dist/esm/pipeline/spec/chart/pipes/dataset/index.js +2 -2
  150. package/dist/esm/pipeline/spec/chart/pipes/dual/dualChartType.d.ts +2 -2
  151. package/dist/esm/pipeline/spec/chart/pipes/dual/dualChartType.js +16 -75
  152. package/dist/esm/pipeline/spec/chart/pipes/dual/dualChartType.js.map +1 -1
  153. package/dist/esm/pipeline/spec/chart/pipes/dual/index.d.ts +1 -1
  154. package/dist/esm/pipeline/spec/chart/pipes/dual/index.js +2 -2
  155. package/dist/esm/pipeline/spec/chart/pipes/init/dualAxis.d.ts +2 -3
  156. package/dist/esm/pipeline/spec/chart/pipes/init/dualAxis.js +16 -32
  157. package/dist/esm/pipeline/spec/chart/pipes/init/dualAxis.js.map +1 -1
  158. package/dist/esm/pipeline/spec/chart/pipes/init/index.d.ts +1 -1
  159. package/dist/esm/pipeline/spec/chart/pipes/init/index.js +2 -2
  160. package/dist/esm/pipeline/spec/chart/pipes/label/index.d.ts +2 -1
  161. package/dist/esm/pipeline/spec/chart/pipes/label/index.js +3 -2
  162. package/dist/esm/pipeline/spec/chart/pipes/label/label.d.ts +1 -1
  163. package/dist/esm/pipeline/spec/chart/pipes/label/label.js +4 -2
  164. package/dist/esm/pipeline/spec/chart/pipes/label/label.js.map +1 -1
  165. package/dist/esm/pipeline/spec/chart/pipes/label/labelBoxPlot.d.ts +2 -0
  166. package/dist/esm/pipeline/spec/chart/pipes/label/labelBoxPlot.js +21 -0
  167. package/dist/esm/pipeline/spec/chart/pipes/label/labelBoxPlot.js.map +1 -0
  168. package/dist/esm/pipeline/spec/chart/pipes/label/labelDualAxis.d.ts +2 -3
  169. package/dist/esm/pipeline/spec/chart/pipes/label/labelDualAxis.js +14 -30
  170. package/dist/esm/pipeline/spec/chart/pipes/label/labelDualAxis.js.map +1 -1
  171. package/dist/esm/pipeline/spec/chart/pipes/label/labelPie.js.map +1 -1
  172. package/dist/esm/pipeline/spec/chart/pipes/label/labelScatter.js.map +1 -1
  173. package/dist/esm/pipeline/spec/chart/pipes/markStyle/boxPlotStyle.js +7 -5
  174. package/dist/esm/pipeline/spec/chart/pipes/markStyle/boxPlotStyle.js.map +1 -1
  175. package/dist/esm/pipeline/spec/chart/pipes/markStyle/outlierStyle.js +3 -6
  176. package/dist/esm/pipeline/spec/chart/pipes/markStyle/outlierStyle.js.map +1 -1
  177. package/dist/esm/pipeline/spec/chart/pipes/pivotChart/pivotIndicators.js +5 -5
  178. package/dist/esm/pipeline/spec/chart/pipes/pivotChart/pivotIndicators.js.map +1 -1
  179. package/dist/esm/pipeline/spec/chart/pipes/regressionLine/ecdfRegressionLine.js +1 -1
  180. package/dist/esm/pipeline/spec/chart/pipes/regressionLine/ecdfRegressionLine.js.map +1 -1
  181. package/dist/esm/pipeline/spec/chart/pipes/regressionLine/kdeRegressionLine.js +1 -1
  182. package/dist/esm/pipeline/spec/chart/pipes/regressionLine/kdeRegressionLine.js.map +1 -1
  183. package/dist/esm/pipeline/spec/chart/pipes/series/series.d.ts +3 -3
  184. package/dist/esm/pipeline/spec/chart/pipes/series/series.js +45 -17
  185. package/dist/esm/pipeline/spec/chart/pipes/series/series.js.map +1 -1
  186. package/dist/esm/pipeline/spec/chart/pipes/tooltip/index.d.ts +1 -1
  187. package/dist/esm/pipeline/spec/chart/pipes/tooltip/index.js +2 -2
  188. package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltip.d.ts +2 -2
  189. package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltip.js +5 -5
  190. package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltip.js.map +1 -1
  191. package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltipBoxplot.js +3 -3
  192. package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltipBoxplot.js.map +1 -1
  193. package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltipDualAxis.d.ts +2 -3
  194. package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltipDualAxis.js +28 -62
  195. package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltipDualAxis.js.map +1 -1
  196. package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltipHeatmap.d.ts +1 -1
  197. package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltipHeatmap.js +4 -4
  198. package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltipHeatmap.js.map +1 -1
  199. package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltipHistogram.js +1 -1
  200. package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltipHistogram.js.map +1 -1
  201. package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltipScatter.d.ts +1 -1
  202. package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltipScatter.js +4 -4
  203. package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltipScatter.js.map +1 -1
  204. package/dist/esm/pipeline/spec/table/pipes/columns/dimensionsToColumns.js +2 -2
  205. package/dist/esm/pipeline/spec/table/pipes/columns/dimensionsToColumns.js.map +1 -1
  206. package/dist/esm/pipeline/spec/table/pipes/columns/measuresToColumns.js +2 -2
  207. package/dist/esm/pipeline/spec/table/pipes/columns/measuresToColumns.js.map +1 -1
  208. package/dist/esm/pipeline/spec/table/pipes/columns/pivotColumns.js +1 -1
  209. package/dist/esm/pipeline/spec/table/pipes/columns/pivotColumns.js.map +1 -1
  210. package/dist/esm/pipeline/spec/table/pipes/indicators/pivotDataConfig.js +1 -1
  211. package/dist/esm/pipeline/spec/table/pipes/indicators/pivotDataConfig.js.map +1 -1
  212. package/dist/esm/pipeline/spec/table/pipes/indicators/pivotIndicators.js +4 -4
  213. package/dist/esm/pipeline/spec/table/pipes/indicators/pivotIndicators.js.map +1 -1
  214. package/dist/esm/pipeline/spec/table/pipes/rows/pivotRows.js +3 -3
  215. package/dist/esm/pipeline/spec/table/pipes/rows/pivotRows.js.map +1 -1
  216. package/dist/esm/pipeline/utils/chatType.d.ts +9 -0
  217. package/dist/esm/pipeline/utils/chatType.js +33 -21
  218. package/dist/esm/pipeline/utils/chatType.js.map +1 -1
  219. package/dist/esm/pipeline/utils/measures/find.d.ts +2 -1
  220. package/dist/esm/pipeline/utils/measures/find.js +3 -13
  221. package/dist/esm/pipeline/utils/measures/find.js.map +1 -1
  222. package/dist/esm/theme/common/boxPlot.js +10 -7
  223. package/dist/esm/theme/common/boxPlot.js.map +1 -1
  224. package/dist/esm/theme/dark/dark.js +0 -4
  225. package/dist/esm/theme/dark/dark.js.map +1 -1
  226. package/dist/esm/theme/light/light.js +0 -4
  227. package/dist/esm/theme/light/light.js.map +1 -1
  228. package/dist/esm/types/advancedVSeed.d.ts +141 -72
  229. package/dist/esm/types/advancedVSeed.js +8 -6
  230. package/dist/esm/types/advancedVSeed.js.map +1 -1
  231. package/dist/esm/types/chartType/area/area.d.ts +3 -5
  232. package/dist/esm/types/chartType/area/zArea.d.ts +11 -2
  233. package/dist/esm/types/chartType/area/zArea.js +2 -2
  234. package/dist/esm/types/chartType/area/zArea.js.map +1 -1
  235. package/dist/esm/types/chartType/areaPercent/areaPercent.d.ts +3 -5
  236. package/dist/esm/types/chartType/areaPercent/zAreaPercent.d.ts +11 -2
  237. package/dist/esm/types/chartType/areaPercent/zAreaPercent.js +2 -2
  238. package/dist/esm/types/chartType/areaPercent/zAreaPercent.js.map +1 -1
  239. package/dist/esm/types/chartType/bar/bar.d.ts +4 -6
  240. package/dist/esm/types/chartType/bar/zBar.d.ts +11 -2
  241. package/dist/esm/types/chartType/bar/zBar.js +2 -2
  242. package/dist/esm/types/chartType/bar/zBar.js.map +1 -1
  243. package/dist/esm/types/chartType/barParallel/barParallel.d.ts +3 -5
  244. package/dist/esm/types/chartType/barParallel/zBarParallel.d.ts +11 -2
  245. package/dist/esm/types/chartType/barParallel/zBarParallel.js +2 -2
  246. package/dist/esm/types/chartType/barParallel/zBarParallel.js.map +1 -1
  247. package/dist/esm/types/chartType/barPercent/barPercent.d.ts +3 -3
  248. package/dist/esm/types/chartType/barPercent/zBarPercent.d.ts +11 -2
  249. package/dist/esm/types/chartType/barPercent/zBarPercent.js +2 -2
  250. package/dist/esm/types/chartType/barPercent/zBarPercent.js.map +1 -1
  251. package/dist/esm/types/chartType/boxPlot/boxPlot.d.ts +3 -5
  252. package/dist/esm/types/chartType/boxPlot/zBoxPlot.d.ts +13 -4
  253. package/dist/esm/types/chartType/boxPlot/zBoxPlot.js +2 -2
  254. package/dist/esm/types/chartType/boxPlot/zBoxPlot.js.map +1 -1
  255. package/dist/esm/types/chartType/column/column.d.ts +3 -5
  256. package/dist/esm/types/chartType/column/zColumn.d.ts +11 -2
  257. package/dist/esm/types/chartType/column/zColumn.js +2 -2
  258. package/dist/esm/types/chartType/column/zColumn.js.map +1 -1
  259. package/dist/esm/types/chartType/columnParallel/columnParallel.d.ts +4 -6
  260. package/dist/esm/types/chartType/columnParallel/zColumnParallel.d.ts +11 -2
  261. package/dist/esm/types/chartType/columnParallel/zColumnParallel.js +2 -2
  262. package/dist/esm/types/chartType/columnParallel/zColumnParallel.js.map +1 -1
  263. package/dist/esm/types/chartType/columnPercent/columnPercent.d.ts +3 -5
  264. package/dist/esm/types/chartType/columnPercent/zColumnPercent.d.ts +11 -2
  265. package/dist/esm/types/chartType/columnPercent/zColumnPercent.js +2 -2
  266. package/dist/esm/types/chartType/columnPercent/zColumnPercent.js.map +1 -1
  267. package/dist/esm/types/chartType/donut/donut.d.ts +3 -5
  268. package/dist/esm/types/chartType/donut/zDonut.d.ts +11 -2
  269. package/dist/esm/types/chartType/donut/zDonut.js +2 -2
  270. package/dist/esm/types/chartType/donut/zDonut.js.map +1 -1
  271. package/dist/esm/types/chartType/dualAxis/dualAxis.d.ts +7 -88
  272. package/dist/esm/types/chartType/dualAxis/zDualAxis.d.ts +9 -358
  273. package/dist/esm/types/chartType/dualAxis/zDualAxis.js +2 -4
  274. package/dist/esm/types/chartType/dualAxis/zDualAxis.js.map +1 -1
  275. package/dist/esm/types/chartType/funnel/funnel.d.ts +3 -5
  276. package/dist/esm/types/chartType/funnel/zFunnel.d.ts +11 -2
  277. package/dist/esm/types/chartType/funnel/zFunnel.js +2 -2
  278. package/dist/esm/types/chartType/funnel/zFunnel.js.map +1 -1
  279. package/dist/esm/types/chartType/heatmap/heatmap.d.ts +4 -6
  280. package/dist/esm/types/chartType/heatmap/zHeatmap.d.ts +11 -2
  281. package/dist/esm/types/chartType/heatmap/zHeatmap.js +2 -2
  282. package/dist/esm/types/chartType/heatmap/zHeatmap.js.map +1 -1
  283. package/dist/esm/types/chartType/histogram/histogram.d.ts +3 -5
  284. package/dist/esm/types/chartType/histogram/zHistogram.d.ts +11 -2
  285. package/dist/esm/types/chartType/histogram/zHistogram.js +2 -2
  286. package/dist/esm/types/chartType/histogram/zHistogram.js.map +1 -1
  287. package/dist/esm/types/chartType/line/line.d.ts +3 -4
  288. package/dist/esm/types/chartType/line/zLine.d.ts +11 -2
  289. package/dist/esm/types/chartType/line/zLine.js +2 -2
  290. package/dist/esm/types/chartType/line/zLine.js.map +1 -1
  291. package/dist/esm/types/chartType/pie/pie.d.ts +3 -5
  292. package/dist/esm/types/chartType/pie/zPie.d.ts +11 -2
  293. package/dist/esm/types/chartType/pie/zPie.js +2 -2
  294. package/dist/esm/types/chartType/pie/zPie.js.map +1 -1
  295. package/dist/esm/types/chartType/pivotTable/pivotTable.d.ts +4 -4
  296. package/dist/esm/types/chartType/pivotTable/zPivotTable.d.ts +9 -0
  297. package/dist/esm/types/chartType/radar/radar.d.ts +4 -6
  298. package/dist/esm/types/chartType/radar/zRadar.d.ts +11 -2
  299. package/dist/esm/types/chartType/radar/zRadar.js +2 -2
  300. package/dist/esm/types/chartType/radar/zRadar.js.map +1 -1
  301. package/dist/esm/types/chartType/rose/rose.d.ts +4 -6
  302. package/dist/esm/types/chartType/rose/zRose.d.ts +11 -2
  303. package/dist/esm/types/chartType/rose/zRose.js +2 -2
  304. package/dist/esm/types/chartType/rose/zRose.js.map +1 -1
  305. package/dist/esm/types/chartType/roseParallel/roseParallel.d.ts +4 -6
  306. package/dist/esm/types/chartType/roseParallel/zRoseParallel.d.ts +11 -2
  307. package/dist/esm/types/chartType/roseParallel/zRoseParallel.js +2 -2
  308. package/dist/esm/types/chartType/roseParallel/zRoseParallel.js.map +1 -1
  309. package/dist/esm/types/chartType/scatter/scatter.d.ts +5 -75
  310. package/dist/esm/types/chartType/scatter/zScatter.d.ts +10 -310
  311. package/dist/esm/types/chartType/scatter/zScatter.js +2 -3
  312. package/dist/esm/types/chartType/scatter/zScatter.js.map +1 -1
  313. package/dist/esm/types/chartType/table/zTable.d.ts +9 -0
  314. package/dist/esm/types/properties/chartType/index.d.ts +0 -2
  315. package/dist/esm/types/properties/chartType/index.js +1 -2
  316. package/dist/esm/types/properties/config/boxplot.d.ts +1 -1
  317. package/dist/esm/types/properties/config/config.d.ts +1 -32
  318. package/dist/esm/types/properties/config/dualAxis.d.ts +7 -31
  319. package/dist/esm/types/properties/config/dualAxis.js +0 -2
  320. package/dist/esm/types/properties/config/dualAxis.js.map +1 -1
  321. package/dist/esm/types/properties/dimensions/areaDimension.d.ts +3 -0
  322. package/dist/esm/types/properties/dimensions/barDimension.d.ts +16 -0
  323. package/dist/esm/types/properties/dimensions/{dimensions.d.ts → baseDimension.d.ts} +13 -14
  324. package/dist/esm/types/properties/dimensions/boxPlotDimension.d.ts +13 -0
  325. package/dist/esm/types/properties/dimensions/columnDimension.d.ts +19 -0
  326. package/dist/esm/types/properties/dimensions/columnDimension.js +0 -0
  327. package/dist/esm/types/properties/dimensions/donutDimension.d.ts +2 -0
  328. package/dist/esm/types/properties/dimensions/donutDimension.js +0 -0
  329. package/dist/esm/types/properties/dimensions/dualAxisDimension.d.ts +2 -0
  330. package/dist/esm/types/properties/dimensions/dualAxisDimension.js +0 -0
  331. package/dist/esm/types/properties/dimensions/funnelDimension.d.ts +2 -0
  332. package/dist/esm/types/properties/dimensions/funnelDimension.js +0 -0
  333. package/dist/esm/types/properties/dimensions/heatmapDimension.d.ts +13 -0
  334. package/dist/esm/types/properties/dimensions/heatmapDimension.js +0 -0
  335. package/dist/esm/types/properties/dimensions/histogramDimension.d.ts +13 -0
  336. package/dist/esm/types/properties/dimensions/histogramDimension.js +0 -0
  337. package/dist/esm/types/properties/dimensions/index.d.ts +16 -1
  338. package/dist/esm/types/properties/dimensions/lineDimension.d.ts +2 -0
  339. package/dist/esm/types/properties/dimensions/lineDimension.js +0 -0
  340. package/dist/esm/types/properties/dimensions/pieDimension.d.ts +13 -0
  341. package/dist/esm/types/properties/dimensions/pieDimension.js +0 -0
  342. package/dist/esm/types/properties/dimensions/radarDimension.d.ts +14 -0
  343. package/dist/esm/types/properties/dimensions/radarDimension.js +0 -0
  344. package/dist/esm/types/properties/dimensions/roseDimension.d.ts +3 -0
  345. package/dist/esm/types/properties/dimensions/roseDimension.js +0 -0
  346. package/dist/esm/types/properties/dimensions/scatterDimension.d.ts +13 -0
  347. package/dist/esm/types/properties/dimensions/scatterDimension.js +0 -0
  348. package/dist/esm/types/properties/dimensions/tableDimension.d.ts +18 -0
  349. package/dist/esm/types/properties/dimensions/tableDimension.js +0 -0
  350. package/dist/esm/types/properties/dimensions/zDimensions.d.ts +1 -1
  351. package/dist/esm/types/properties/dimensions/zDimensions.js.map +1 -1
  352. package/dist/esm/types/properties/markStyle/boxPlotStyle.d.ts +5 -5
  353. package/dist/esm/types/properties/markStyle/boxPlotStyle.js +2 -2
  354. package/dist/esm/types/properties/markStyle/boxPlotStyle.js.map +1 -1
  355. package/dist/esm/types/properties/markStyle/markStyle.d.ts +2 -2
  356. package/dist/esm/types/properties/measures/areaMeasure.d.ts +2 -0
  357. package/dist/esm/types/properties/measures/areaMeasure.js +0 -0
  358. package/dist/esm/types/properties/measures/barMeasure.d.ts +14 -0
  359. package/dist/esm/types/properties/measures/barMeasure.js +0 -0
  360. package/dist/esm/types/properties/measures/{measures.d.ts → baseMeasure.d.ts} +29 -13
  361. package/dist/esm/types/properties/measures/baseMeasure.js +0 -0
  362. package/dist/esm/types/properties/measures/boxPlotMeasure.d.ts +18 -0
  363. package/dist/esm/types/properties/measures/boxPlotMeasure.js +0 -0
  364. package/dist/esm/types/properties/measures/columnMeasure.d.ts +14 -0
  365. package/dist/esm/types/properties/measures/columnMeasure.js +0 -0
  366. package/dist/esm/types/properties/measures/dualAxisMeasure.d.ts +23 -0
  367. package/dist/esm/types/properties/measures/dualAxisMeasure.js +0 -0
  368. package/dist/esm/types/properties/measures/funnelMeasure.d.ts +11 -0
  369. package/dist/esm/types/properties/measures/funnelMeasure.js +0 -0
  370. package/dist/esm/types/properties/measures/heatmapMeasure.d.ts +10 -0
  371. package/dist/esm/types/properties/measures/heatmapMeasure.js +0 -0
  372. package/dist/esm/types/properties/measures/histogramMeasure.d.ts +13 -0
  373. package/dist/esm/types/properties/measures/histogramMeasure.js +0 -0
  374. package/dist/esm/types/properties/measures/index.d.ts +15 -4
  375. package/dist/esm/types/properties/measures/index.js +0 -1
  376. package/dist/esm/types/properties/measures/lineMeasure.d.ts +2 -0
  377. package/dist/esm/types/properties/measures/lineMeasure.js +0 -0
  378. package/dist/esm/types/properties/measures/measureTree.d.ts +17 -0
  379. package/dist/esm/types/properties/measures/measureTree.js +0 -0
  380. package/dist/esm/types/properties/measures/pieMeasure.d.ts +12 -0
  381. package/dist/esm/types/properties/measures/pieMeasure.js +0 -0
  382. package/dist/esm/types/properties/measures/radarMeasure.d.ts +13 -0
  383. package/dist/esm/types/properties/measures/radarMeasure.js +0 -0
  384. package/dist/esm/types/properties/measures/scatterMeasure.d.ts +13 -0
  385. package/dist/esm/types/properties/measures/scatterMeasure.js +0 -0
  386. package/dist/esm/types/properties/measures/tableMeasure.d.ts +8 -0
  387. package/dist/esm/types/properties/measures/tableMeasure.js +0 -0
  388. package/dist/esm/types/properties/measures/zDualMeasures.d.ts +154 -612
  389. package/dist/esm/types/properties/measures/zDualMeasures.js +15 -10
  390. package/dist/esm/types/properties/measures/zDualMeasures.js.map +1 -1
  391. package/dist/esm/types/properties/measures/zMeasures.d.ts +28 -1
  392. package/dist/esm/types/properties/measures/zMeasures.js +10 -1
  393. package/dist/esm/types/properties/measures/zMeasures.js.map +1 -1
  394. package/dist/esm/types/properties/theme/customTheme.d.ts +2 -64
  395. package/dist/esm/types/zVseed.d.ts +237 -706
  396. package/dist/umd/index.js +899 -1368
  397. package/dist/umd/index.js.map +1 -1
  398. package/package.json +2 -2
  399. package/dist/esm/pipeline/advanced/chart/pipes/measures/pickMeasuresForReshape.d.ts +0 -2
  400. package/dist/esm/pipeline/advanced/chart/pipes/measures/pickMeasuresForReshape.js +0 -14
  401. package/dist/esm/pipeline/advanced/chart/pipes/measures/pickMeasuresForReshape.js.map +0 -1
  402. package/dist/esm/types/properties/chartType/dualChartType.d.ts +0 -18
  403. package/dist/esm/types/properties/chartType/dualChartType.js +0 -20
  404. package/dist/esm/types/properties/chartType/dualChartType.js.map +0 -1
  405. package/dist/esm/types/properties/measures/dualMeasures.d.ts +0 -7
  406. package/dist/esm/types/properties/measures/scatterMeasures.d.ts +0 -7
  407. package/dist/esm/types/properties/measures/zScatterMeasures.d.ts +0 -619
  408. package/dist/esm/types/properties/measures/zScatterMeasures.js +0 -17
  409. package/dist/esm/types/properties/measures/zScatterMeasures.js.map +0 -1
  410. /package/dist/esm/types/properties/dimensions/{dimensions.js → areaDimension.js} +0 -0
  411. /package/dist/esm/types/properties/{measures/dualMeasures.js → dimensions/barDimension.js} +0 -0
  412. /package/dist/esm/types/properties/{measures/measures.js → dimensions/baseDimension.js} +0 -0
  413. /package/dist/esm/types/properties/{measures/scatterMeasures.js → dimensions/boxPlotDimension.js} +0 -0
@@ -1,6 +1,6 @@
1
1
  import { type Locale } from '../../i18n';
2
- import type { Color, ColorLegend, MeasureTree } from '../../properties';
3
- import { type BackgroundColor, type Dataset, type Dimensions, type Label, type Theme, type Tooltip } from '../../properties';
2
+ import type { Color, ColorLegend, HeatmapDimension, HeatmapMeasure } from '../../properties';
3
+ import { type BackgroundColor, type Dataset, type Label, type Theme, type Tooltip } from '../../properties';
4
4
  /**
5
5
  * @description 热力图,通过二维矩阵的颜色深浅展示数据的分布和强弱关系
6
6
  * 适用场景:
@@ -44,17 +44,15 @@ export interface Heatmap {
44
44
  /**
45
45
  * 维度
46
46
  * @description 热力图的第一个维度被映射到角度轴, 其余维度会与指标名称(存在多个指标时)合并, 作为图例项展示.
47
- * @type {Dimensions}
48
47
  * @example [{id: 'category', alias: '类别'}]
49
48
  */
50
- dimensions?: Dimensions;
49
+ dimensions?: HeatmapDimension[];
51
50
  /**
52
51
  * 指标
53
52
  * @description 热力图的指标会自动合并为一个指标, 映射到半径轴, 存在多个指标时, 指标名称会与其余维度合并, 作为图例项展示.
54
- * @type {MeasureTree}
55
53
  * @example [{id: 'value', alias: '数值'}]
56
54
  */
57
- measures?: MeasureTree;
55
+ measures?: HeatmapMeasure[];
58
56
  /**
59
57
  * 图表的背景颜色
60
58
  * @default transparent 默认为透明背景
@@ -17,7 +17,7 @@ export declare const zHeatmap: z.ZodObject<{
17
17
  row: "row";
18
18
  }>>;
19
19
  }, z.core.$strip>>>>;
20
- measures: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnion<[z.ZodType<import("../..").MeasureGroup, unknown, z.core.$ZodTypeInternals<import("../..").MeasureGroup, unknown>>, z.ZodObject<{
20
+ measures: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
21
21
  id: z.ZodString;
22
22
  alias: z.ZodOptional<z.ZodString>;
23
23
  autoFormat: z.ZodOptional<z.ZodBoolean>;
@@ -105,7 +105,16 @@ export declare const zHeatmap: z.ZodObject<{
105
105
  x1: "x1";
106
106
  }>>;
107
107
  parentId: z.ZodOptional<z.ZodString>;
108
- }, z.core.$strip>]>>>>;
108
+ chartType: z.ZodOptional<z.ZodEnum<{
109
+ line: "line";
110
+ column: "column";
111
+ columnPercent: "columnPercent";
112
+ columnParallel: "columnParallel";
113
+ area: "area";
114
+ areaPercent: "areaPercent";
115
+ scatter: "scatter";
116
+ }>>;
117
+ }, z.core.$strip>>>>;
109
118
  backgroundColor: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodString>>>>>;
110
119
  color: z.ZodOptional<z.ZodNullable<z.ZodObject<{
111
120
  colorScheme: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
@@ -1,11 +1,11 @@
1
1
  import { z } from "zod";
2
2
  import { zLocale } from "../../i18n/index.js";
3
- import { zBackgroundColor, zColor, zColorLegend, zDataset, zDimensions, zLabel, zMeasureTree, zTheme, zTooltip } from "../../properties/index.js";
3
+ import { zBackgroundColor, zColor, zColorLegend, zDataset, zDimensions, zLabel, zMeasures, zTheme, zTooltip } from "../../properties/index.js";
4
4
  const zHeatmap = z.object({
5
5
  chartType: z.literal('heatmap'),
6
6
  dataset: zDataset.nullish(),
7
7
  dimensions: zDimensions.nullish(),
8
- measures: zMeasureTree.nullish(),
8
+ measures: zMeasures.nullish(),
9
9
  backgroundColor: zBackgroundColor.nullish(),
10
10
  color: zColor.nullish(),
11
11
  label: zLabel.nullish(),
@@ -1 +1 @@
1
- {"version":3,"file":"types/chartType/heatmap/zHeatmap.js","sources":["webpack://@visactor/vseed/./src/types/chartType/heatmap/zHeatmap.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zLocale } from '../../i18n'\n\nimport {\n zBackgroundColor,\n zColor,\n zColorLegend,\n zDataset,\n zDimensions,\n zLabel,\n zMeasureTree,\n zTheme,\n zTooltip,\n} from '../../properties'\n\nexport const zHeatmap = z.object({\n chartType: z.literal('heatmap'),\n dataset: zDataset.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":["zHeatmap","z","zDataset","zDimensions","zMeasureTree","zBackgroundColor","zColor","zLabel","zColorLegend","zTooltip","zTheme","zLocale"],"mappings":";;;AAeO,MAAMA,WAAWC,EAAE,MAAM,CAAC;IAC/B,WAAWA,EAAE,OAAO,CAAC;IACrB,SAASC,SAAS,OAAO;IACzB,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/heatmap/zHeatmap.js","sources":["webpack://@visactor/vseed/./src/types/chartType/heatmap/zHeatmap.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zLocale } from '../../i18n'\n\nimport {\n zBackgroundColor,\n zColor,\n zColorLegend,\n zDataset,\n zDimensions,\n zLabel,\n zMeasures,\n zTheme,\n zTooltip,\n} from '../../properties'\n\nexport const zHeatmap = z.object({\n chartType: z.literal('heatmap'),\n dataset: zDataset.nullish(),\n dimensions: zDimensions.nullish(),\n measures: zMeasures.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":["zHeatmap","z","zDataset","zDimensions","zMeasures","zBackgroundColor","zColor","zLabel","zColorLegend","zTooltip","zTheme","zLocale"],"mappings":";;;AAeO,MAAMA,WAAWC,EAAE,MAAM,CAAC;IAC/B,WAAWA,EAAE,OAAO,CAAC;IACrB,SAASC,SAAS,OAAO;IACzB,YAAYC,YAAY,OAAO;IAC/B,UAAUC,UAAU,OAAO;IAC3B,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,5 +1,5 @@
1
1
  import type { Locale } from '../../i18n';
2
- import type { AnnotationArea, AnnotationHorizontalLine, AnnotationPoint, AnnotationVerticalLine, BackgroundColor, BarStyle, Color, CrosshairRect, Dataset, Dimensions, Label, Legend, StackCornerRadius, Theme, Tooltip, YLinearAxis, MeasureTree, XLinearAxis, KdeRegressionLine, EcdfRegressionLine, DimensionLinkage } from '../../properties';
2
+ import type { AnnotationArea, AnnotationHorizontalLine, AnnotationPoint, AnnotationVerticalLine, BackgroundColor, BarStyle, Color, CrosshairRect, Dataset, HistogramDimension, Label, Legend, StackCornerRadius, Theme, Tooltip, YLinearAxis, HistogramMeasure, XLinearAxis, KdeRegressionLine, EcdfRegressionLine, DimensionLinkage } from '../../properties';
3
3
  /**
4
4
  * @description 直方图,适用于展示数据分布情况的场景,X轴为数值轴(连续数据),Y轴为数值轴(连续数据),柱子纵向排列
5
5
  * 适用场景:
@@ -23,16 +23,14 @@ export interface Histogram {
23
23
  dataset: Dataset;
24
24
  /**
25
25
  * @description 直方图通常不需要维度
26
- * @type {Dimensions}
27
26
  * @example [{id: "category", alias: "类别"}]
28
27
  */
29
- dimensions?: Dimensions;
28
+ dimensions?: HistogramDimension[];
30
29
  /**
31
30
  * @description 直方图仅支持一个维度,并且数据为离散数据
32
- * @type {MeasureTree}
33
31
  * @example [{id: "value", alias: "数值"}]
34
32
  */
35
- measures?: MeasureTree;
33
+ measures?: HistogramMeasure[];
36
34
  /**
37
35
  * @description 图表的背景颜色, 背景颜色可以是颜色字符串, 默认为透明背景, 例如'red', 'blue', 也可以是hex, rgb或rgba'#ff0000', 'rgba(255,0,0,0.5)'
38
36
  */
@@ -40,7 +40,7 @@ export declare const zHistogram: z.ZodObject<{
40
40
  row: "row";
41
41
  }>>;
42
42
  }, z.core.$strip>>>>;
43
- measures: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnion<[z.ZodType<import("../..").MeasureGroup, unknown, z.core.$ZodTypeInternals<import("../..").MeasureGroup, unknown>>, z.ZodObject<{
43
+ measures: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
44
44
  id: z.ZodString;
45
45
  alias: z.ZodOptional<z.ZodString>;
46
46
  autoFormat: z.ZodOptional<z.ZodBoolean>;
@@ -128,7 +128,16 @@ export declare const zHistogram: z.ZodObject<{
128
128
  x1: "x1";
129
129
  }>>;
130
130
  parentId: z.ZodOptional<z.ZodString>;
131
- }, z.core.$strip>]>>>>;
131
+ chartType: z.ZodOptional<z.ZodEnum<{
132
+ line: "line";
133
+ column: "column";
134
+ columnPercent: "columnPercent";
135
+ columnParallel: "columnParallel";
136
+ area: "area";
137
+ areaPercent: "areaPercent";
138
+ scatter: "scatter";
139
+ }>>;
140
+ }, z.core.$strip>>>>;
132
141
  backgroundColor: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodString>>>>>;
133
142
  color: z.ZodOptional<z.ZodNullable<z.ZodObject<{
134
143
  colorScheme: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
@@ -1,12 +1,12 @@
1
1
  import { z } from "zod";
2
2
  import { zLocale } from "../../i18n/index.js";
3
- import { zAnnotationArea, zAnnotationHorizontalLine, zAnnotationPoint, zAnnotationVerticalLine, zBackgroundColor, zBarStyle, zColor, zCrosshairRect, zDataset, zDimensionLinkage, zDimensions, zEcdfRegressionLine, zEncoding, zKdeRegressionLine, zLabel, zLegend, zMeasureTree, zTheme, zTooltip, zXLinearAxis, zYLinearAxis } from "../../properties/index.js";
3
+ import { zAnnotationArea, zAnnotationHorizontalLine, zAnnotationPoint, zAnnotationVerticalLine, zBackgroundColor, zBarStyle, zColor, zCrosshairRect, zDataset, zDimensionLinkage, zDimensions, zEcdfRegressionLine, zEncoding, zKdeRegressionLine, zLabel, zLegend, zMeasures, zTheme, zTooltip, zXLinearAxis, zYLinearAxis } from "../../properties/index.js";
4
4
  const zHistogram = z.object({
5
5
  chartType: z.literal('histogram'),
6
6
  dataset: zDataset.nullish(),
7
7
  encoding: zEncoding.nullish(),
8
8
  dimensions: zDimensions.nullish(),
9
- measures: zMeasureTree.nullish(),
9
+ measures: zMeasures.nullish(),
10
10
  backgroundColor: zBackgroundColor.nullish(),
11
11
  color: zColor.nullish(),
12
12
  label: zLabel.nullish(),
@@ -1 +1 @@
1
- {"version":3,"file":"types/chartType/histogram/zHistogram.js","sources":["webpack://@visactor/vseed/./src/types/chartType/histogram/zHistogram.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 zDimensionLinkage,\n zDimensions,\n zEcdfRegressionLine,\n zEncoding,\n zKdeRegressionLine,\n zLabel,\n zLegend,\n zMeasureTree,\n zTheme,\n zTooltip,\n zXLinearAxis,\n zYLinearAxis,\n} from '../../properties'\n\nexport const zHistogram = z.object({\n chartType: z.literal('histogram'),\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: zYLinearAxis.nullish(),\n crosshairRect: zCrosshairRect.nullish(),\n binCount: z.number().positive().nullish(),\n binStep: z.number().positive().nullish(),\n binValueType: z.literal('count').or(z.literal('percentage')).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 ecdfRegressionLine: z.array(zEcdfRegressionLine).or(zEcdfRegressionLine).nullish(),\n kdeRegressionLine: z.array(zKdeRegressionLine).or(zKdeRegressionLine).nullish(),\n dimensionLinkage: zDimensionLinkage.nullish(),\n locale: zLocale.nullish(),\n})\n\nexport type Histogram = z.infer<typeof zHistogram>\n"],"names":["zHistogram","z","zDataset","zEncoding","zDimensions","zMeasureTree","zBackgroundColor","zColor","zLabel","zLegend","zTooltip","zXLinearAxis","zYLinearAxis","zCrosshairRect","zTheme","zBarStyle","zAnnotationPoint","zAnnotationVerticalLine","zAnnotationHorizontalLine","zAnnotationArea","zEcdfRegressionLine","zKdeRegressionLine","zDimensionLinkage","zLocale"],"mappings":";;;AA0BO,MAAMA,aAAaC,EAAE,MAAM,CAAC;IACjC,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,aAAa,OAAO;IAC3B,eAAeC,eAAe,OAAO;IACrC,UAAUZ,EAAE,MAAM,GAAG,QAAQ,GAAG,OAAO;IACvC,SAASA,EAAE,MAAM,GAAG,QAAQ,GAAG,OAAO;IACtC,cAAcA,EAAE,OAAO,CAAC,SAAS,EAAE,CAACA,EAAE,OAAO,CAAC,eAAe,OAAO;IACpE,OAAOa,OAAO,OAAO;IACrB,UAAUb,EAAE,KAAK,CAACc,WAAW,EAAE,CAACA,WAAW,OAAO;IAClD,iBAAiBd,EAAE,KAAK,CAACe,kBAAkB,EAAE,CAACA,kBAAkB,OAAO;IACvE,wBAAwBf,EAAE,KAAK,CAACgB,yBAAyB,EAAE,CAACA,yBAAyB,OAAO;IAC5F,0BAA0BhB,EAAE,KAAK,CAACiB,2BAA2B,EAAE,CAACA,2BAA2B,OAAO;IAClG,gBAAgBjB,EAAE,KAAK,CAACkB,iBAAiB,EAAE,CAACA,iBAAiB,OAAO;IACpE,oBAAoBlB,EAAE,KAAK,CAACmB,qBAAqB,EAAE,CAACA,qBAAqB,OAAO;IAChF,mBAAmBnB,EAAE,KAAK,CAACoB,oBAAoB,EAAE,CAACA,oBAAoB,OAAO;IAC7E,kBAAkBC,kBAAkB,OAAO;IAC3C,QAAQC,QAAQ,OAAO;AACzB"}
1
+ {"version":3,"file":"types/chartType/histogram/zHistogram.js","sources":["webpack://@visactor/vseed/./src/types/chartType/histogram/zHistogram.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 zDimensionLinkage,\n zDimensions,\n zEcdfRegressionLine,\n zEncoding,\n zKdeRegressionLine,\n zLabel,\n zLegend,\n zMeasures,\n zTheme,\n zTooltip,\n zXLinearAxis,\n zYLinearAxis,\n} from '../../properties'\n\nexport const zHistogram = z.object({\n chartType: z.literal('histogram'),\n dataset: zDataset.nullish(),\n encoding: zEncoding.nullish(),\n dimensions: zDimensions.nullish(),\n measures: zMeasures.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: zYLinearAxis.nullish(),\n crosshairRect: zCrosshairRect.nullish(),\n binCount: z.number().positive().nullish(),\n binStep: z.number().positive().nullish(),\n binValueType: z.literal('count').or(z.literal('percentage')).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 ecdfRegressionLine: z.array(zEcdfRegressionLine).or(zEcdfRegressionLine).nullish(),\n kdeRegressionLine: z.array(zKdeRegressionLine).or(zKdeRegressionLine).nullish(),\n dimensionLinkage: zDimensionLinkage.nullish(),\n locale: zLocale.nullish(),\n})\n\nexport type Histogram = z.infer<typeof zHistogram>\n"],"names":["zHistogram","z","zDataset","zEncoding","zDimensions","zMeasures","zBackgroundColor","zColor","zLabel","zLegend","zTooltip","zXLinearAxis","zYLinearAxis","zCrosshairRect","zTheme","zBarStyle","zAnnotationPoint","zAnnotationVerticalLine","zAnnotationHorizontalLine","zAnnotationArea","zEcdfRegressionLine","zKdeRegressionLine","zDimensionLinkage","zLocale"],"mappings":";;;AA0BO,MAAMA,aAAaC,EAAE,MAAM,CAAC;IACjC,WAAWA,EAAE,OAAO,CAAC;IACrB,SAASC,SAAS,OAAO;IACzB,UAAUC,UAAU,OAAO;IAC3B,YAAYC,YAAY,OAAO;IAC/B,UAAUC,UAAU,OAAO;IAC3B,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,aAAa,OAAO;IAC3B,eAAeC,eAAe,OAAO;IACrC,UAAUZ,EAAE,MAAM,GAAG,QAAQ,GAAG,OAAO;IACvC,SAASA,EAAE,MAAM,GAAG,QAAQ,GAAG,OAAO;IACtC,cAAcA,EAAE,OAAO,CAAC,SAAS,EAAE,CAACA,EAAE,OAAO,CAAC,eAAe,OAAO;IACpE,OAAOa,OAAO,OAAO;IACrB,UAAUb,EAAE,KAAK,CAACc,WAAW,EAAE,CAACA,WAAW,OAAO;IAClD,iBAAiBd,EAAE,KAAK,CAACe,kBAAkB,EAAE,CAACA,kBAAkB,OAAO;IACvE,wBAAwBf,EAAE,KAAK,CAACgB,yBAAyB,EAAE,CAACA,yBAAyB,OAAO;IAC5F,0BAA0BhB,EAAE,KAAK,CAACiB,2BAA2B,EAAE,CAACA,2BAA2B,OAAO;IAClG,gBAAgBjB,EAAE,KAAK,CAACkB,iBAAiB,EAAE,CAACA,iBAAiB,OAAO;IACpE,oBAAoBlB,EAAE,KAAK,CAACmB,qBAAqB,EAAE,CAACA,qBAAqB,OAAO;IAChF,mBAAmBnB,EAAE,KAAK,CAACoB,oBAAoB,EAAE,CAACA,oBAAoB,OAAO;IAC7E,kBAAkBC,kBAAkB,OAAO;IAC3C,QAAQC,QAAQ,OAAO;AACzB"}
@@ -1,5 +1,5 @@
1
1
  import type { Locale } from '../../i18n';
2
- import type { AnnotationArea, AnnotationHorizontalLine, AnnotationPoint, AnnotationVerticalLine, BackgroundColor, Color, Dataset, Dimensions, Label, Legend, LineStyle, PointStyle, Theme, Tooltip, CrosshairLine, XBandAxis, YLinearAxis, MeasureTree, Sort, SortLegend, DimensionLinkage } from '../../properties';
2
+ import type { AnnotationArea, AnnotationHorizontalLine, AnnotationPoint, AnnotationVerticalLine, BackgroundColor, Color, Dataset, Label, Legend, LineStyle, PointStyle, Theme, Tooltip, CrosshairLine, XBandAxis, YLinearAxis, Sort, SortLegend, DimensionLinkage, LineMeasure, LineDimension } from '../../properties';
3
3
  /**
4
4
  * @description 折线图,适用于展示数据随时间或有序类别变化的趋势,通过线段连接数据点形成趋势线
5
5
  * 适用场景:
@@ -39,15 +39,14 @@ export interface Line {
39
39
  dataset: Dataset;
40
40
  /**
41
41
  * @description 维度, 折线图的第一个维度被映射到X轴, 其余维度会与指标名称(存在多个指标时)合并, 作为图例项展示
42
- * @type {Dimensions}
43
42
  * @example [{id: "month", alias: "月份"}]
44
43
  */
45
- dimensions?: Dimensions;
44
+ dimensions?: LineDimension[];
46
45
  /**
47
46
  * @description 指标, 折线图的所有指标会自动合并为一个指标, 映射到Y轴, 存在多个指标时, 指标名称会与其余维度合并, 作为图例项展示.
48
47
  * @example [{id: "value", alias: "数值"}]
49
48
  */
50
- measures?: MeasureTree;
49
+ measures?: LineMeasure[];
51
50
  /**
52
51
  * 图表的背景颜色
53
52
  * @description 图表的背景颜色, 默认为透明背景, 背景颜色可以是颜色字符串, 例如'red', 'blue', 也可以是hex, rgb或rgba'#ff0000', 'rgba(255,0,0,0.5)'
@@ -40,7 +40,7 @@ export declare const zLine: z.ZodObject<{
40
40
  row: "row";
41
41
  }>>;
42
42
  }, z.core.$strip>>>>;
43
- measures: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnion<[z.ZodType<import("../..").MeasureGroup, unknown, z.core.$ZodTypeInternals<import("../..").MeasureGroup, unknown>>, z.ZodObject<{
43
+ measures: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
44
44
  id: z.ZodString;
45
45
  alias: z.ZodOptional<z.ZodString>;
46
46
  autoFormat: z.ZodOptional<z.ZodBoolean>;
@@ -128,7 +128,16 @@ export declare const zLine: z.ZodObject<{
128
128
  x1: "x1";
129
129
  }>>;
130
130
  parentId: z.ZodOptional<z.ZodString>;
131
- }, z.core.$strip>]>>>>;
131
+ chartType: z.ZodOptional<z.ZodEnum<{
132
+ line: "line";
133
+ column: "column";
134
+ columnPercent: "columnPercent";
135
+ columnParallel: "columnParallel";
136
+ area: "area";
137
+ areaPercent: "areaPercent";
138
+ scatter: "scatter";
139
+ }>>;
140
+ }, z.core.$strip>>>>;
132
141
  backgroundColor: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodString>>>>>;
133
142
  color: z.ZodOptional<z.ZodNullable<z.ZodObject<{
134
143
  colorScheme: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
@@ -1,12 +1,12 @@
1
1
  import { zLocale } from "../../i18n/index.js";
2
- import { zAnnotationArea, zAnnotationHorizontalLine, zAnnotationPoint, zAnnotationVerticalLine, zBackgroundColor, zColor, zCrosshairLine, zDataset, zDimensionLinkage, zDimensions, zEncoding, zLabel, zLegend, zLineStyle, zMeasureTree, zPointStyle, zSort, zSortLegend, zTheme, zTooltip, zXBandAxis, zYLinearAxis } from "../../properties/index.js";
2
+ import { zAnnotationArea, zAnnotationHorizontalLine, zAnnotationPoint, zAnnotationVerticalLine, zBackgroundColor, zColor, zCrosshairLine, zDataset, zDimensionLinkage, zDimensions, zEncoding, zLabel, zLegend, zLineStyle, zMeasures, zPointStyle, zSort, zSortLegend, zTheme, zTooltip, zXBandAxis, zYLinearAxis } from "../../properties/index.js";
3
3
  import { z } from "zod";
4
4
  const zLine = z.object({
5
5
  chartType: z.literal('line'),
6
6
  dataset: zDataset.nullish(),
7
7
  encoding: zEncoding.nullish(),
8
8
  dimensions: zDimensions.nullish(),
9
- measures: zMeasureTree.nullish(),
9
+ measures: zMeasures.nullish(),
10
10
  backgroundColor: zBackgroundColor.nullish(),
11
11
  color: zColor.nullish(),
12
12
  label: zLabel.nullish(),
@@ -1 +1 @@
1
- {"version":3,"file":"types/chartType/line/zLine.js","sources":["webpack://@visactor/vseed/./src/types/chartType/line/zLine.ts"],"sourcesContent":["import { zLocale } from '../../i18n'\nimport {\n zAnnotationArea,\n zAnnotationHorizontalLine,\n zAnnotationPoint,\n zAnnotationVerticalLine,\n zBackgroundColor,\n zColor,\n zCrosshairLine,\n zDataset,\n zDimensionLinkage,\n zDimensions,\n zEncoding,\n zLabel,\n zLegend,\n zLineStyle,\n zMeasureTree,\n zPointStyle,\n zSort,\n zSortLegend,\n zTheme,\n zTooltip,\n zXBandAxis,\n zYLinearAxis,\n} from '../../properties'\n\nimport { z } from 'zod'\n\nexport const zLine = z.object({\n chartType: z.literal('line'),\n dataset: zDataset.nullish(),\n encoding: zEncoding.nullish(),\n dimensions: zDimensions.nullish(),\n measures: zMeasureTree.nullish(),\n backgroundColor: zBackgroundColor.nullish(),\n color: zColor.nullish(),\n label: zLabel.nullish(),\n legend: zLegend.nullish(),\n tooltip: zTooltip.nullish(),\n xAxis: zXBandAxis.nullish(),\n yAxis: zYLinearAxis.nullish(),\n crosshairLine: zCrosshairLine.nullish(),\n sort: zSort.nullish(),\n sortLegend: zSortLegend.nullish(),\n theme: zTheme.nullish(),\n pointStyle: z.array(zPointStyle).or(zPointStyle).nullish(),\n lineStyle: z.array(zLineStyle).or(zLineStyle).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 dimensionLinkage: zDimensionLinkage.nullish(),\n locale: zLocale.nullish(),\n})\n"],"names":["zLine","z","zDataset","zEncoding","zDimensions","zMeasureTree","zBackgroundColor","zColor","zLabel","zLegend","zTooltip","zXBandAxis","zYLinearAxis","zCrosshairLine","zSort","zSortLegend","zTheme","zPointStyle","zLineStyle","zAnnotationPoint","zAnnotationVerticalLine","zAnnotationHorizontalLine","zAnnotationArea","zDimensionLinkage","zLocale"],"mappings":";;;AA4BO,MAAMA,QAAQC,EAAE,MAAM,CAAC;IAC5B,WAAWA,EAAE,OAAO,CAAC;IACrB,SAASC,SAAS,OAAO;IACzB,UAAUC,UAAU,OAAO;IAC3B,YAAYC,YAAY,OAAO;IAC/B,UAAUC,aAAa,OAAO;IAC9B,iBAAiBC,iBAAiB,OAAO;IACzC,OAAOC,OAAO,OAAO;IACrB,OAAOC,OAAO,OAAO;IACrB,QAAQC,QAAQ,OAAO;IACvB,SAASC,SAAS,OAAO;IACzB,OAAOC,WAAW,OAAO;IACzB,OAAOC,aAAa,OAAO;IAC3B,eAAeC,eAAe,OAAO;IACrC,MAAMC,MAAM,OAAO;IACnB,YAAYC,YAAY,OAAO;IAC/B,OAAOC,OAAO,OAAO;IACrB,YAAYf,EAAE,KAAK,CAACgB,aAAa,EAAE,CAACA,aAAa,OAAO;IACxD,WAAWhB,EAAE,KAAK,CAACiB,YAAY,EAAE,CAACA,YAAY,OAAO;IACrD,iBAAiBjB,EAAE,KAAK,CAACkB,kBAAkB,EAAE,CAACA,kBAAkB,OAAO;IACvE,wBAAwBlB,EAAE,KAAK,CAACmB,yBAAyB,EAAE,CAACA,yBAAyB,OAAO;IAC5F,0BAA0BnB,EAAE,KAAK,CAACoB,2BAA2B,EAAE,CAACA,2BAA2B,OAAO;IAClG,gBAAgBpB,EAAE,KAAK,CAACqB,iBAAiB,EAAE,CAACA,iBAAiB,OAAO;IACpE,kBAAkBC,kBAAkB,OAAO;IAC3C,QAAQC,QAAQ,OAAO;AACzB"}
1
+ {"version":3,"file":"types/chartType/line/zLine.js","sources":["webpack://@visactor/vseed/./src/types/chartType/line/zLine.ts"],"sourcesContent":["import { zLocale } from '../../i18n'\nimport {\n zAnnotationArea,\n zAnnotationHorizontalLine,\n zAnnotationPoint,\n zAnnotationVerticalLine,\n zBackgroundColor,\n zColor,\n zCrosshairLine,\n zDataset,\n zDimensionLinkage,\n zDimensions,\n zEncoding,\n zLabel,\n zLegend,\n zLineStyle,\n zMeasures,\n zPointStyle,\n zSort,\n zSortLegend,\n zTheme,\n zTooltip,\n zXBandAxis,\n zYLinearAxis,\n} from '../../properties'\n\nimport { z } from 'zod'\n\nexport const zLine = z.object({\n chartType: z.literal('line'),\n dataset: zDataset.nullish(),\n encoding: zEncoding.nullish(),\n dimensions: zDimensions.nullish(),\n measures: zMeasures.nullish(),\n backgroundColor: zBackgroundColor.nullish(),\n color: zColor.nullish(),\n label: zLabel.nullish(),\n legend: zLegend.nullish(),\n tooltip: zTooltip.nullish(),\n xAxis: zXBandAxis.nullish(),\n yAxis: zYLinearAxis.nullish(),\n crosshairLine: zCrosshairLine.nullish(),\n sort: zSort.nullish(),\n sortLegend: zSortLegend.nullish(),\n theme: zTheme.nullish(),\n pointStyle: z.array(zPointStyle).or(zPointStyle).nullish(),\n lineStyle: z.array(zLineStyle).or(zLineStyle).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 dimensionLinkage: zDimensionLinkage.nullish(),\n locale: zLocale.nullish(),\n})\n"],"names":["zLine","z","zDataset","zEncoding","zDimensions","zMeasures","zBackgroundColor","zColor","zLabel","zLegend","zTooltip","zXBandAxis","zYLinearAxis","zCrosshairLine","zSort","zSortLegend","zTheme","zPointStyle","zLineStyle","zAnnotationPoint","zAnnotationVerticalLine","zAnnotationHorizontalLine","zAnnotationArea","zDimensionLinkage","zLocale"],"mappings":";;;AA4BO,MAAMA,QAAQC,EAAE,MAAM,CAAC;IAC5B,WAAWA,EAAE,OAAO,CAAC;IACrB,SAASC,SAAS,OAAO;IACzB,UAAUC,UAAU,OAAO;IAC3B,YAAYC,YAAY,OAAO;IAC/B,UAAUC,UAAU,OAAO;IAC3B,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,MAAMC,MAAM,OAAO;IACnB,YAAYC,YAAY,OAAO;IAC/B,OAAOC,OAAO,OAAO;IACrB,YAAYf,EAAE,KAAK,CAACgB,aAAa,EAAE,CAACA,aAAa,OAAO;IACxD,WAAWhB,EAAE,KAAK,CAACiB,YAAY,EAAE,CAACA,YAAY,OAAO;IACrD,iBAAiBjB,EAAE,KAAK,CAACkB,kBAAkB,EAAE,CAACA,kBAAkB,OAAO;IACvE,wBAAwBlB,EAAE,KAAK,CAACmB,yBAAyB,EAAE,CAACA,yBAAyB,OAAO;IAC5F,0BAA0BnB,EAAE,KAAK,CAACoB,2BAA2B,EAAE,CAACA,2BAA2B,OAAO;IAClG,gBAAgBpB,EAAE,KAAK,CAACqB,iBAAiB,EAAE,CAACA,iBAAiB,OAAO;IACpE,kBAAkBC,kBAAkB,OAAO;IAC3C,QAAQC,QAAQ,OAAO;AACzB"}
@@ -1,5 +1,5 @@
1
1
  import type { Locale } from '../../i18n';
2
- import type { BackgroundColor, Color, Dataset, Dimensions, Legend, MeasureTree, PieLabel, Theme, Tooltip } from '../../properties';
2
+ import type { BackgroundColor, Color, Dataset, PieDimension, Legend, PieMeasure, PieLabel, Theme, Tooltip } from '../../properties';
3
3
  /**
4
4
  * @description 饼图,适用于展示单一维度数据的占比关系,通过扇形面积大小表示各类别占比
5
5
  * 适用场景:
@@ -42,17 +42,15 @@ export interface Pie {
42
42
  /**
43
43
  * 维度
44
44
  * @description 饼图的所有维度会与指标名称(存在多个指标时)合并成一个维度, 映射到角度, 并作为图例项展示
45
- * @type {Dimensions}
46
45
  * @example [{id: 'category', alias: '类别'}]
47
46
  */
48
- dimensions?: Dimensions;
47
+ dimensions?: PieDimension[];
49
48
  /**
50
49
  * 指标
51
50
  * @description 饼图的所有指标会自动合并为一个指标, 映射到半径轴, 存在多个指标时, 指标名称会与其余维度合并, 作为图例项展示.
52
- * @type {MeasureTree}
53
51
  * @example [{id: 'value', alias: '数值占比', format: 'percent'}]
54
52
  */
55
- measures?: MeasureTree;
53
+ measures?: PieMeasure[];
56
54
  /**
57
55
  * 图表的背景颜色
58
56
  * @default transparent 默认为透明背景
@@ -40,7 +40,7 @@ export declare const zPie: z.ZodObject<{
40
40
  row: "row";
41
41
  }>>;
42
42
  }, z.core.$strip>>>>;
43
- measures: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnion<[z.ZodType<import("../..").MeasureGroup, unknown, z.core.$ZodTypeInternals<import("../..").MeasureGroup, unknown>>, z.ZodObject<{
43
+ measures: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
44
44
  id: z.ZodString;
45
45
  alias: z.ZodOptional<z.ZodString>;
46
46
  autoFormat: z.ZodOptional<z.ZodBoolean>;
@@ -128,7 +128,16 @@ export declare const zPie: z.ZodObject<{
128
128
  x1: "x1";
129
129
  }>>;
130
130
  parentId: z.ZodOptional<z.ZodString>;
131
- }, z.core.$strip>]>>>>;
131
+ chartType: z.ZodOptional<z.ZodEnum<{
132
+ line: "line";
133
+ column: "column";
134
+ columnPercent: "columnPercent";
135
+ columnParallel: "columnParallel";
136
+ area: "area";
137
+ areaPercent: "areaPercent";
138
+ scatter: "scatter";
139
+ }>>;
140
+ }, z.core.$strip>>>>;
132
141
  backgroundColor: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodString>>>>>;
133
142
  color: z.ZodOptional<z.ZodNullable<z.ZodObject<{
134
143
  colorScheme: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
@@ -1,12 +1,12 @@
1
1
  import { z } from "zod";
2
2
  import { zLocale } from "../../i18n/index.js";
3
- import { zBackgroundColor, zColor, zDataset, zDimensions, zEncoding, zLegend, zMeasureTree, zPieLabel, zTheme, zTooltip } from "../../properties/index.js";
3
+ import { zBackgroundColor, zColor, zDataset, zDimensions, zEncoding, zLegend, zMeasures, zPieLabel, zTheme, zTooltip } from "../../properties/index.js";
4
4
  const zPie = z.object({
5
5
  chartType: z.literal('pie'),
6
6
  dataset: zDataset.nullish(),
7
7
  encoding: zEncoding.nullish(),
8
8
  dimensions: zDimensions.nullish(),
9
- measures: zMeasureTree.nullish(),
9
+ measures: zMeasures.nullish(),
10
10
  backgroundColor: zBackgroundColor.nullish(),
11
11
  color: zColor.nullish(),
12
12
  label: zPieLabel.nullish(),
@@ -1 +1 @@
1
- {"version":3,"file":"types/chartType/pie/zPie.js","sources":["webpack://@visactor/vseed/./src/types/chartType/pie/zPie.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zLocale } from '../../i18n'\nimport {\n zBackgroundColor,\n zColor,\n zDataset,\n zDimensions,\n zEncoding,\n zLegend,\n zMeasureTree,\n zPieLabel,\n zTheme,\n zTooltip,\n} from '../../properties'\n\nexport const zPie = z.object({\n chartType: z.literal('pie'),\n dataset: zDataset.nullish(),\n encoding: zEncoding.nullish(),\n dimensions: zDimensions.nullish(),\n measures: zMeasureTree.nullish(),\n backgroundColor: zBackgroundColor.nullish(),\n color: zColor.nullish(),\n label: zPieLabel.nullish(),\n legend: zLegend.nullish(),\n tooltip: zTooltip.nullish(),\n theme: zTheme.nullish(),\n locale: zLocale.nullish(),\n})\n"],"names":["zPie","z","zDataset","zEncoding","zDimensions","zMeasureTree","zBackgroundColor","zColor","zPieLabel","zLegend","zTooltip","zTheme","zLocale"],"mappings":";;;AAeO,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,UAAU,OAAO;IACxB,QAAQC,QAAQ,OAAO;IACvB,SAASC,SAAS,OAAO;IACzB,OAAOC,OAAO,OAAO;IACrB,QAAQC,QAAQ,OAAO;AACzB"}
1
+ {"version":3,"file":"types/chartType/pie/zPie.js","sources":["webpack://@visactor/vseed/./src/types/chartType/pie/zPie.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zLocale } from '../../i18n'\nimport {\n zBackgroundColor,\n zColor,\n zDataset,\n zDimensions,\n zEncoding,\n zLegend,\n zMeasures,\n zPieLabel,\n zTheme,\n zTooltip,\n} from '../../properties'\n\nexport const zPie = z.object({\n chartType: z.literal('pie'),\n dataset: zDataset.nullish(),\n encoding: zEncoding.nullish(),\n dimensions: zDimensions.nullish(),\n measures: zMeasures.nullish(),\n backgroundColor: zBackgroundColor.nullish(),\n color: zColor.nullish(),\n label: zPieLabel.nullish(),\n legend: zLegend.nullish(),\n tooltip: zTooltip.nullish(),\n theme: zTheme.nullish(),\n locale: zLocale.nullish(),\n})\n"],"names":["zPie","z","zDataset","zEncoding","zDimensions","zMeasures","zBackgroundColor","zColor","zPieLabel","zLegend","zTooltip","zTheme","zLocale"],"mappings":";;;AAeO,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,UAAU,OAAO;IAC3B,iBAAiBC,iBAAiB,OAAO;IACzC,OAAOC,OAAO,OAAO;IACrB,OAAOC,UAAU,OAAO;IACxB,QAAQC,QAAQ,OAAO;IACvB,SAASC,SAAS,OAAO;IACzB,OAAOC,OAAO,OAAO;IACrB,QAAQC,QAAQ,OAAO;AACzB"}
@@ -1,6 +1,6 @@
1
1
  import { type Locale } from '../../i18n';
2
- import type { BodyCellStyle, Measures } from '../../properties';
3
- import { type BackgroundColor, type Dataset, type Dimensions, type Theme } from '../../properties';
2
+ import type { BodyCellStyle, TableDimension, TableMeasure } from '../../properties';
3
+ import { type BackgroundColor, type Dataset, type Theme } from '../../properties';
4
4
  /**
5
5
  * @description 透视表格,适用于多维度数据交叉分析场景,可灵活配置行、列维度和指标计算方式
6
6
  * 适用场景:
@@ -41,13 +41,13 @@ export interface PivotTable {
41
41
  * @type {Dimensions}
42
42
  * @example [{id: 'region', alias: '地区', isRow: true}, {id: 'product', alias: '产品', isColumn: true}]
43
43
  */
44
- dimensions?: Dimensions;
44
+ dimensions?: TableDimension[];
45
45
  /**
46
46
  * @description 透视表支持多个维度指标
47
47
  * @type {Measures}
48
48
  * @example [{id: 'sales', alias: '销售额', aggregation: 'sum'}]
49
49
  */
50
- measures?: Measures;
50
+ measures?: TableMeasure[];
51
51
  /**
52
52
  * @default transparent 默认为透明背景
53
53
  * @description 背景颜色可以是颜色字符串, 例如'red', 'blue', 也可以是hex, rgb或rgba'#ff0000', 'rgba(255,0,0,0.5)'
@@ -105,6 +105,15 @@ export declare const zPivotTable: z.ZodObject<{
105
105
  x1: "x1";
106
106
  }>>;
107
107
  parentId: z.ZodOptional<z.ZodString>;
108
+ chartType: z.ZodOptional<z.ZodEnum<{
109
+ line: "line";
110
+ column: "column";
111
+ columnPercent: "columnPercent";
112
+ columnParallel: "columnParallel";
113
+ area: "area";
114
+ areaPercent: "areaPercent";
115
+ scatter: "scatter";
116
+ }>>;
108
117
  }, z.core.$strip>>>>;
109
118
  backgroundColor: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodString>>>>>;
110
119
  borderColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1,6 +1,6 @@
1
1
  import { type Locale } from '../../i18n';
2
- import type { AreaStyle, LineStyle, MeasureTree, PointStyle } from '../../properties';
3
- import { type BackgroundColor, type Color, type Dataset, type Dimensions, type Label, type Legend, type Theme, type Tooltip } from '../../properties';
2
+ import type { AreaStyle, LineStyle, PointStyle, RadarDimension, RadarMeasure } from '../../properties';
3
+ import { type BackgroundColor, type Color, type Dataset, type Label, type Legend, type Theme, type Tooltip } from '../../properties';
4
4
  /**
5
5
  * @description 雷达图,适用于多维度数据的对比分析,通过多轴坐标系展示各维度的数值分布
6
6
  * 适用场景:
@@ -43,17 +43,15 @@ export interface Radar {
43
43
  /**
44
44
  * 维度
45
45
  * @description 雷达图的第一个维度被映射到角度轴, 其余维度会与指标名称(存在多个指标时)合并, 作为图例项展示.
46
- * @type {Dimensions}
47
46
  * @example [{id: 'category', alias: '类别'}]
48
47
  */
49
- dimensions?: Dimensions;
48
+ dimensions?: RadarDimension[];
50
49
  /**
51
50
  * 指标
52
51
  * @description 雷达图的指标会自动合并为一个指标, 映射到半径轴, 存在多个指标时, 指标名称会与其余维度合并, 作为图例项展示.
53
- * @type {MeasureTree}
54
52
  * @example [{id: 'value', alias: '数值'}]
55
53
  */
56
- measures?: MeasureTree;
54
+ measures?: RadarMeasure[];
57
55
  /**
58
56
  * 图表的背景颜色
59
57
  * @default transparent 默认为透明背景
@@ -40,7 +40,7 @@ export declare const zRadar: z.ZodObject<{
40
40
  row: "row";
41
41
  }>>;
42
42
  }, z.core.$strip>>>>;
43
- measures: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnion<[z.ZodType<import("../..").MeasureGroup, unknown, z.core.$ZodTypeInternals<import("../..").MeasureGroup, unknown>>, z.ZodObject<{
43
+ measures: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
44
44
  id: z.ZodString;
45
45
  alias: z.ZodOptional<z.ZodString>;
46
46
  autoFormat: z.ZodOptional<z.ZodBoolean>;
@@ -128,7 +128,16 @@ export declare const zRadar: z.ZodObject<{
128
128
  x1: "x1";
129
129
  }>>;
130
130
  parentId: z.ZodOptional<z.ZodString>;
131
- }, z.core.$strip>]>>>>;
131
+ chartType: z.ZodOptional<z.ZodEnum<{
132
+ line: "line";
133
+ column: "column";
134
+ columnPercent: "columnPercent";
135
+ columnParallel: "columnParallel";
136
+ area: "area";
137
+ areaPercent: "areaPercent";
138
+ scatter: "scatter";
139
+ }>>;
140
+ }, z.core.$strip>>>>;
132
141
  backgroundColor: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodString>>>>>;
133
142
  color: z.ZodOptional<z.ZodNullable<z.ZodObject<{
134
143
  colorScheme: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
@@ -1,12 +1,12 @@
1
1
  import { z } from "zod";
2
2
  import { zLocale } from "../../i18n/index.js";
3
- import { zBackgroundColor, zColor, zDataset, zDimensions, zEncoding, zLabel, zLegend, zMeasureTree, zTheme, zTooltip } from "../../properties/index.js";
3
+ import { zBackgroundColor, zColor, zDataset, zDimensions, zEncoding, zLabel, zLegend, zMeasures, zTheme, zTooltip } from "../../properties/index.js";
4
4
  const zRadar = z.object({
5
5
  chartType: z.literal('radar'),
6
6
  dataset: zDataset.nullish(),
7
7
  encoding: zEncoding.nullish(),
8
8
  dimensions: zDimensions.nullish(),
9
- measures: zMeasureTree.nullish(),
9
+ measures: zMeasures.nullish(),
10
10
  backgroundColor: zBackgroundColor.nullish(),
11
11
  color: zColor.nullish(),
12
12
  label: zLabel.nullish(),
@@ -1 +1 @@
1
- {"version":3,"file":"types/chartType/radar/zRadar.js","sources":["webpack://@visactor/vseed/./src/types/chartType/radar/zRadar.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zLocale } from '../../i18n'\n\nimport {\n zBackgroundColor,\n zColor,\n zDataset,\n zDimensions,\n zEncoding,\n zLabel,\n zLegend,\n zMeasureTree,\n zTheme,\n zTooltip,\n} from '../../properties'\n\nexport const zRadar = z.object({\n chartType: z.literal('radar'),\n dataset: zDataset.nullish(),\n encoding: zEncoding.nullish(),\n dimensions: zDimensions.nullish(),\n measures: zMeasureTree.nullish(),\n backgroundColor: zBackgroundColor.nullish(),\n color: zColor.nullish(),\n label: zLabel.nullish(),\n legend: zLegend.nullish(),\n tooltip: zTooltip.nullish(),\n theme: zTheme.nullish(),\n locale: zLocale.nullish(),\n})\n"],"names":["zRadar","z","zDataset","zEncoding","zDimensions","zMeasureTree","zBackgroundColor","zColor","zLabel","zLegend","zTooltip","zTheme","zLocale"],"mappings":";;;AAgBO,MAAMA,SAASC,EAAE,MAAM,CAAC;IAC7B,WAAWA,EAAE,OAAO,CAAC;IACrB,SAASC,SAAS,OAAO;IACzB,UAAUC,UAAU,OAAO;IAC3B,YAAYC,YAAY,OAAO;IAC/B,UAAUC,aAAa,OAAO;IAC9B,iBAAiBC,iBAAiB,OAAO;IACzC,OAAOC,OAAO,OAAO;IACrB,OAAOC,OAAO,OAAO;IACrB,QAAQC,QAAQ,OAAO;IACvB,SAASC,SAAS,OAAO;IACzB,OAAOC,OAAO,OAAO;IACrB,QAAQC,QAAQ,OAAO;AACzB"}
1
+ {"version":3,"file":"types/chartType/radar/zRadar.js","sources":["webpack://@visactor/vseed/./src/types/chartType/radar/zRadar.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zLocale } from '../../i18n'\n\nimport {\n zBackgroundColor,\n zColor,\n zDataset,\n zDimensions,\n zEncoding,\n zLabel,\n zLegend,\n zMeasures,\n zTheme,\n zTooltip,\n} from '../../properties'\n\nexport const zRadar = z.object({\n chartType: z.literal('radar'),\n dataset: zDataset.nullish(),\n encoding: zEncoding.nullish(),\n dimensions: zDimensions.nullish(),\n measures: zMeasures.nullish(),\n backgroundColor: zBackgroundColor.nullish(),\n color: zColor.nullish(),\n label: zLabel.nullish(),\n legend: zLegend.nullish(),\n tooltip: zTooltip.nullish(),\n theme: zTheme.nullish(),\n locale: zLocale.nullish(),\n})\n"],"names":["zRadar","z","zDataset","zEncoding","zDimensions","zMeasures","zBackgroundColor","zColor","zLabel","zLegend","zTooltip","zTheme","zLocale"],"mappings":";;;AAgBO,MAAMA,SAASC,EAAE,MAAM,CAAC;IAC7B,WAAWA,EAAE,OAAO,CAAC;IACrB,SAASC,SAAS,OAAO;IACzB,UAAUC,UAAU,OAAO;IAC3B,YAAYC,YAAY,OAAO;IAC/B,UAAUC,UAAU,OAAO;IAC3B,iBAAiBC,iBAAiB,OAAO;IACzC,OAAOC,OAAO,OAAO;IACrB,OAAOC,OAAO,OAAO;IACrB,QAAQC,QAAQ,OAAO;IACvB,SAASC,SAAS,OAAO;IACzB,OAAOC,OAAO,OAAO;IACrB,QAAQC,QAAQ,OAAO;AACzB"}
@@ -1,6 +1,6 @@
1
1
  import { type Locale } from '../../i18n';
2
- import type { MeasureTree, PieLabel } from '../../properties';
3
- import { type BackgroundColor, type Color, type Dataset, type Dimensions, type Legend, type Theme, type Tooltip } from '../../properties';
2
+ import type { RoseDimension, RoseMeasure, PieLabel } from '../../properties';
3
+ import { type BackgroundColor, type Color, type Dataset, type Legend, type Theme, type Tooltip } from '../../properties';
4
4
  /**
5
5
  * @description 堆叠玫瑰图,适用于多维度数据对比场景,通过极坐标系下的扇形弧度和半径展示数据大小
6
6
  * 适用场景:
@@ -44,17 +44,15 @@ export interface Rose {
44
44
  /**
45
45
  * 维度
46
46
  * @description 玫瑰图的第一个维度被映射到角度轴, 其余维度会与指标名称(存在多个指标时)合并, 作为图例项展示.
47
- * @type {Dimensions}
48
47
  * @example [{id: 'category', alias: '类别'}]
49
48
  */
50
- dimensions?: Dimensions;
49
+ dimensions?: RoseDimension[];
51
50
  /**
52
51
  * 指标
53
52
  * @description 玫瑰图的指标会自动合并为一个指标, 映射到半径轴, 存在多个指标时, 指标名称会与其余维度合并, 作为图例项展示.
54
- * @type {MeasureTree}
55
53
  * @example [{id: 'value', alias: '数值'}]
56
54
  */
57
- measures?: MeasureTree;
55
+ measures?: RoseMeasure[];
58
56
  /**
59
57
  * 图表的背景颜色
60
58
  * @default transparent 默认为透明背景
@@ -40,7 +40,7 @@ export declare const zRose: z.ZodObject<{
40
40
  row: "row";
41
41
  }>>;
42
42
  }, z.core.$strip>>>>;
43
- measures: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnion<[z.ZodType<import("../..").MeasureGroup, unknown, z.core.$ZodTypeInternals<import("../..").MeasureGroup, unknown>>, z.ZodObject<{
43
+ measures: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
44
44
  id: z.ZodString;
45
45
  alias: z.ZodOptional<z.ZodString>;
46
46
  autoFormat: z.ZodOptional<z.ZodBoolean>;
@@ -128,7 +128,16 @@ export declare const zRose: z.ZodObject<{
128
128
  x1: "x1";
129
129
  }>>;
130
130
  parentId: z.ZodOptional<z.ZodString>;
131
- }, z.core.$strip>]>>>>;
131
+ chartType: z.ZodOptional<z.ZodEnum<{
132
+ line: "line";
133
+ column: "column";
134
+ columnPercent: "columnPercent";
135
+ columnParallel: "columnParallel";
136
+ area: "area";
137
+ areaPercent: "areaPercent";
138
+ scatter: "scatter";
139
+ }>>;
140
+ }, z.core.$strip>>>>;
132
141
  backgroundColor: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodString>>>>>;
133
142
  color: z.ZodOptional<z.ZodNullable<z.ZodObject<{
134
143
  colorScheme: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
@@ -1,12 +1,12 @@
1
1
  import { z } from "zod";
2
2
  import { zLocale } from "../../i18n/index.js";
3
- import { zBackgroundColor, zColor, zDataset, zDimensions, zEncoding, zLabel, zLegend, zMeasureTree, zTheme, zTooltip } from "../../properties/index.js";
3
+ import { zBackgroundColor, zColor, zDataset, zDimensions, zEncoding, zLabel, zLegend, zMeasures, zTheme, zTooltip } from "../../properties/index.js";
4
4
  const zRose = z.object({
5
5
  chartType: z.literal('rose'),
6
6
  dataset: zDataset.nullish(),
7
7
  encoding: zEncoding.nullish(),
8
8
  dimensions: zDimensions.nullish(),
9
- measures: zMeasureTree.nullish(),
9
+ measures: zMeasures.nullish(),
10
10
  backgroundColor: zBackgroundColor.nullish(),
11
11
  color: zColor.nullish(),
12
12
  label: zLabel.nullish(),
@@ -1 +1 @@
1
- {"version":3,"file":"types/chartType/rose/zRose.js","sources":["webpack://@visactor/vseed/./src/types/chartType/rose/zRose.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zLocale } from '../../i18n'\n\nimport {\n zBackgroundColor,\n zColor,\n zDataset,\n zDimensions,\n zEncoding,\n zLabel,\n zLegend,\n zMeasureTree,\n zTheme,\n zTooltip,\n} from '../../properties'\n\nexport const zRose = z.object({\n chartType: z.literal('rose'),\n dataset: zDataset.nullish(),\n encoding: zEncoding.nullish(),\n dimensions: zDimensions.nullish(),\n measures: zMeasureTree.nullish(),\n backgroundColor: zBackgroundColor.nullish(),\n color: zColor.nullish(),\n label: zLabel.nullish(),\n legend: zLegend.nullish(),\n tooltip: zTooltip.nullish(),\n theme: zTheme.nullish(),\n locale: zLocale.nullish(),\n})\n"],"names":["zRose","z","zDataset","zEncoding","zDimensions","zMeasureTree","zBackgroundColor","zColor","zLabel","zLegend","zTooltip","zTheme","zLocale"],"mappings":";;;AAgBO,MAAMA,QAAQC,EAAE,MAAM,CAAC;IAC5B,WAAWA,EAAE,OAAO,CAAC;IACrB,SAASC,SAAS,OAAO;IACzB,UAAUC,UAAU,OAAO;IAC3B,YAAYC,YAAY,OAAO;IAC/B,UAAUC,aAAa,OAAO;IAC9B,iBAAiBC,iBAAiB,OAAO;IACzC,OAAOC,OAAO,OAAO;IACrB,OAAOC,OAAO,OAAO;IACrB,QAAQC,QAAQ,OAAO;IACvB,SAASC,SAAS,OAAO;IACzB,OAAOC,OAAO,OAAO;IACrB,QAAQC,QAAQ,OAAO;AACzB"}
1
+ {"version":3,"file":"types/chartType/rose/zRose.js","sources":["webpack://@visactor/vseed/./src/types/chartType/rose/zRose.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zLocale } from '../../i18n'\n\nimport {\n zBackgroundColor,\n zColor,\n zDataset,\n zDimensions,\n zEncoding,\n zLabel,\n zLegend,\n zMeasures,\n zTheme,\n zTooltip,\n} from '../../properties'\n\nexport const zRose = z.object({\n chartType: z.literal('rose'),\n dataset: zDataset.nullish(),\n encoding: zEncoding.nullish(),\n dimensions: zDimensions.nullish(),\n measures: zMeasures.nullish(),\n backgroundColor: zBackgroundColor.nullish(),\n color: zColor.nullish(),\n label: zLabel.nullish(),\n legend: zLegend.nullish(),\n tooltip: zTooltip.nullish(),\n theme: zTheme.nullish(),\n locale: zLocale.nullish(),\n})\n"],"names":["zRose","z","zDataset","zEncoding","zDimensions","zMeasures","zBackgroundColor","zColor","zLabel","zLegend","zTooltip","zTheme","zLocale"],"mappings":";;;AAgBO,MAAMA,QAAQC,EAAE,MAAM,CAAC;IAC5B,WAAWA,EAAE,OAAO,CAAC;IACrB,SAASC,SAAS,OAAO;IACzB,UAAUC,UAAU,OAAO;IAC3B,YAAYC,YAAY,OAAO;IAC/B,UAAUC,UAAU,OAAO;IAC3B,iBAAiBC,iBAAiB,OAAO;IACzC,OAAOC,OAAO,OAAO;IACrB,OAAOC,OAAO,OAAO;IACrB,QAAQC,QAAQ,OAAO;IACvB,SAASC,SAAS,OAAO;IACzB,OAAOC,OAAO,OAAO;IACrB,QAAQC,QAAQ,OAAO;AACzB"}
@@ -1,6 +1,6 @@
1
1
  import { type Locale } from '../../i18n';
2
- import type { MeasureTree, PieLabel } from '../../properties';
3
- import { type BackgroundColor, type Color, type Dataset, type Dimensions, type Legend, type Theme, type Tooltip } from '../../properties';
2
+ import type { RoseParallelDimension, RoseParallelMeasure, PieLabel } from '../../properties';
3
+ import { type BackgroundColor, type Color, type Dataset, type Legend, type Theme, type Tooltip } from '../../properties';
4
4
  /**
5
5
  * @description 分组玫瑰图,适用于多维度数据对比场景,通过极坐标系下的扇形弧度和半径展示数据大小
6
6
  * 适用场景:
@@ -44,17 +44,15 @@ export interface RoseParallel {
44
44
  /**
45
45
  * 维度
46
46
  * @description 玫瑰图的第一个维度被映射到角度轴, 其余维度会与指标名称(存在多个指标时)合并, 作为图例项展示.
47
- * @type {Dimensions}
48
47
  * @example [{id: 'category', alias: '类别'}]
49
48
  */
50
- dimensions?: Dimensions;
49
+ dimensions?: RoseParallelDimension[];
51
50
  /**
52
51
  * 指标
53
52
  * @description 玫瑰图的指标会自动合并为一个指标, 映射到半径轴, 存在多个指标时, 指标名称会与其余维度合并, 作为图例项展示.
54
- * @type {MeasureTree}
55
53
  * @example [{id: 'value', alias: '数值'}]
56
54
  */
57
- measures?: MeasureTree;
55
+ measures?: RoseParallelMeasure[];
58
56
  /**
59
57
  * 图表的背景颜色
60
58
  * @default transparent 默认为透明背景
@@ -40,7 +40,7 @@ export declare const zRoseParallel: z.ZodObject<{
40
40
  row: "row";
41
41
  }>>;
42
42
  }, z.core.$strip>>>>;
43
- measures: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnion<[z.ZodType<import("../..").MeasureGroup, unknown, z.core.$ZodTypeInternals<import("../..").MeasureGroup, unknown>>, z.ZodObject<{
43
+ measures: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
44
44
  id: z.ZodString;
45
45
  alias: z.ZodOptional<z.ZodString>;
46
46
  autoFormat: z.ZodOptional<z.ZodBoolean>;
@@ -128,7 +128,16 @@ export declare const zRoseParallel: z.ZodObject<{
128
128
  x1: "x1";
129
129
  }>>;
130
130
  parentId: z.ZodOptional<z.ZodString>;
131
- }, z.core.$strip>]>>>>;
131
+ chartType: z.ZodOptional<z.ZodEnum<{
132
+ line: "line";
133
+ column: "column";
134
+ columnPercent: "columnPercent";
135
+ columnParallel: "columnParallel";
136
+ area: "area";
137
+ areaPercent: "areaPercent";
138
+ scatter: "scatter";
139
+ }>>;
140
+ }, z.core.$strip>>>>;
132
141
  backgroundColor: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodString>>>>>;
133
142
  color: z.ZodOptional<z.ZodNullable<z.ZodObject<{
134
143
  colorScheme: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;