@visactor/vseed 0.1.40 → 0.1.42

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 (193) hide show
  1. package/dist/cjs/index.cjs +3 -3
  2. package/dist/cjs/index.cjs.map +1 -1
  3. package/dist/esm/builder/builder/builder.d.ts +3211 -349
  4. package/dist/esm/pipeline/advanced/chart/pipeline/column.js +3 -2
  5. package/dist/esm/pipeline/advanced/chart/pipeline/column.js.map +1 -1
  6. package/dist/esm/pipeline/advanced/chart/pipeline/scatter.js +3 -2
  7. package/dist/esm/pipeline/advanced/chart/pipeline/scatter.js.map +1 -1
  8. package/dist/esm/pipeline/advanced/chart/pipes/analysis/common.d.ts +3 -0
  9. package/dist/esm/pipeline/advanced/chart/pipes/analysis/common.js +22 -0
  10. package/dist/esm/pipeline/advanced/chart/pipes/analysis/common.js.map +1 -0
  11. package/dist/esm/pipeline/advanced/chart/pipes/analysis/index.d.ts +1 -0
  12. package/dist/esm/pipeline/advanced/chart/pipes/analysis/index.js +1 -0
  13. package/dist/esm/pipeline/advanced/chart/pipes/analysis/sortLegend.js +1 -19
  14. package/dist/esm/pipeline/advanced/chart/pipes/analysis/sortLegend.js.map +1 -1
  15. package/dist/esm/pipeline/advanced/chart/pipes/analysis/sortXBand.d.ts +1 -2
  16. package/dist/esm/pipeline/advanced/chart/pipes/analysis/sortXBand.js +2 -20
  17. package/dist/esm/pipeline/advanced/chart/pipes/analysis/sortXBand.js.map +1 -1
  18. package/dist/esm/pipeline/advanced/chart/pipes/analysis/sortYBand.js +1 -1
  19. package/dist/esm/pipeline/advanced/chart/pipes/analysis/sortYBand.js.map +1 -1
  20. package/dist/esm/pipeline/advanced/chart/pipes/regressionLine/regressionLine.js +28 -1
  21. package/dist/esm/pipeline/advanced/chart/pipes/regressionLine/regressionLine.js.map +1 -1
  22. package/dist/esm/pipeline/advanced/chart/pipes/reshape/pivotReshapeWithBoxplotEncoding.js +0 -1
  23. package/dist/esm/pipeline/advanced/chart/pipes/reshape/pivotReshapeWithBoxplotEncoding.js.map +1 -1
  24. package/dist/esm/pipeline/spec/chart/pipeline/area.js +7 -4
  25. package/dist/esm/pipeline/spec/chart/pipeline/area.js.map +1 -1
  26. package/dist/esm/pipeline/spec/chart/pipeline/areaPercent.js +3 -2
  27. package/dist/esm/pipeline/spec/chart/pipeline/areaPercent.js.map +1 -1
  28. package/dist/esm/pipeline/spec/chart/pipeline/bar.js +4 -2
  29. package/dist/esm/pipeline/spec/chart/pipeline/bar.js.map +1 -1
  30. package/dist/esm/pipeline/spec/chart/pipeline/barParallel.js +4 -2
  31. package/dist/esm/pipeline/spec/chart/pipeline/barParallel.js.map +1 -1
  32. package/dist/esm/pipeline/spec/chart/pipeline/barPercent.js +4 -2
  33. package/dist/esm/pipeline/spec/chart/pipeline/barPercent.js.map +1 -1
  34. package/dist/esm/pipeline/spec/chart/pipeline/boxplot.js +3 -2
  35. package/dist/esm/pipeline/spec/chart/pipeline/boxplot.js.map +1 -1
  36. package/dist/esm/pipeline/spec/chart/pipeline/column.js +8 -4
  37. package/dist/esm/pipeline/spec/chart/pipeline/column.js.map +1 -1
  38. package/dist/esm/pipeline/spec/chart/pipeline/columnParallel.js +4 -2
  39. package/dist/esm/pipeline/spec/chart/pipeline/columnParallel.js.map +1 -1
  40. package/dist/esm/pipeline/spec/chart/pipeline/columnPercent.js +4 -2
  41. package/dist/esm/pipeline/spec/chart/pipeline/columnPercent.js.map +1 -1
  42. package/dist/esm/pipeline/spec/chart/pipeline/donut.js +3 -1
  43. package/dist/esm/pipeline/spec/chart/pipeline/donut.js.map +1 -1
  44. package/dist/esm/pipeline/spec/chart/pipeline/dualAxis.js +3 -2
  45. package/dist/esm/pipeline/spec/chart/pipeline/dualAxis.js.map +1 -1
  46. package/dist/esm/pipeline/spec/chart/pipeline/funnel.js +2 -1
  47. package/dist/esm/pipeline/spec/chart/pipeline/funnel.js.map +1 -1
  48. package/dist/esm/pipeline/spec/chart/pipeline/heatmap.js +3 -2
  49. package/dist/esm/pipeline/spec/chart/pipeline/heatmap.js.map +1 -1
  50. package/dist/esm/pipeline/spec/chart/pipeline/histogram.js +7 -4
  51. package/dist/esm/pipeline/spec/chart/pipeline/histogram.js.map +1 -1
  52. package/dist/esm/pipeline/spec/chart/pipeline/line.js +7 -4
  53. package/dist/esm/pipeline/spec/chart/pipeline/line.js.map +1 -1
  54. package/dist/esm/pipeline/spec/chart/pipeline/pie.js +4 -2
  55. package/dist/esm/pipeline/spec/chart/pipeline/pie.js.map +1 -1
  56. package/dist/esm/pipeline/spec/chart/pipeline/radar.js +3 -1
  57. package/dist/esm/pipeline/spec/chart/pipeline/radar.js.map +1 -1
  58. package/dist/esm/pipeline/spec/chart/pipeline/rose.js +3 -1
  59. package/dist/esm/pipeline/spec/chart/pipeline/rose.js.map +1 -1
  60. package/dist/esm/pipeline/spec/chart/pipeline/roseParallel.js +3 -1
  61. package/dist/esm/pipeline/spec/chart/pipeline/roseParallel.js.map +1 -1
  62. package/dist/esm/pipeline/spec/chart/pipeline/scatter.js +11 -4
  63. package/dist/esm/pipeline/spec/chart/pipeline/scatter.js.map +1 -1
  64. package/dist/esm/pipeline/spec/chart/pipes/annotation/index.d.ts +1 -0
  65. package/dist/esm/pipeline/spec/chart/pipes/annotation/index.js +2 -1
  66. package/dist/esm/pipeline/spec/chart/pipes/annotation/splitLine.d.ts +2 -0
  67. package/dist/esm/pipeline/spec/chart/pipes/annotation/splitLine.js +172 -0
  68. package/dist/esm/pipeline/spec/chart/pipes/annotation/splitLine.js.map +1 -0
  69. package/dist/esm/pipeline/spec/chart/pipes/index.d.ts +1 -0
  70. package/dist/esm/pipeline/spec/chart/pipes/index.js +1 -0
  71. package/dist/esm/pipeline/spec/chart/pipes/init/pivot.js +1 -1
  72. package/dist/esm/pipeline/spec/chart/pipes/init/pivot.js.map +1 -1
  73. package/dist/esm/pipeline/spec/chart/pipes/pivotChart/index.d.ts +2 -0
  74. package/dist/esm/pipeline/spec/chart/pipes/pivotChart/index.js +3 -1
  75. package/dist/esm/pipeline/spec/chart/pipes/pivotChart/pivotAxisStyle.d.ts +2 -0
  76. package/dist/esm/pipeline/spec/chart/pipes/pivotChart/pivotAxisStyle.js +13 -0
  77. package/dist/esm/pipeline/spec/chart/pipes/pivotChart/pivotAxisStyle.js.map +1 -0
  78. package/dist/esm/pipeline/spec/chart/pipes/pivotChart/pivotGridStyle.js +38 -32
  79. package/dist/esm/pipeline/spec/chart/pipes/pivotChart/pivotGridStyle.js.map +1 -1
  80. package/dist/esm/pipeline/spec/chart/pipes/pivotChart/pivotTitle.d.ts +2 -0
  81. package/dist/esm/pipeline/spec/chart/pipes/pivotChart/pivotTitle.js +28 -0
  82. package/dist/esm/pipeline/spec/chart/pipes/pivotChart/pivotTitle.js.map +1 -0
  83. package/dist/esm/pipeline/spec/chart/pipes/region/addRegionPadding.d.ts +2 -0
  84. package/dist/esm/pipeline/spec/chart/pipes/region/addRegionPadding.js +10 -0
  85. package/dist/esm/pipeline/spec/chart/pipes/region/addRegionPadding.js.map +1 -0
  86. package/dist/esm/pipeline/spec/chart/pipes/region/index.d.ts +1 -0
  87. package/dist/esm/pipeline/spec/chart/pipes/region/index.js +1 -0
  88. package/dist/esm/pipeline/spec/chart/pipes/regressionLine/columnRegressionLine.d.ts +2 -0
  89. package/dist/esm/pipeline/spec/chart/pipes/regressionLine/columnRegressionLine.js +150 -0
  90. package/dist/esm/pipeline/spec/chart/pipes/regressionLine/columnRegressionLine.js.map +1 -0
  91. package/dist/esm/pipeline/spec/chart/pipes/regressionLine/common.d.ts +4 -0
  92. package/dist/esm/pipeline/spec/chart/pipes/regressionLine/common.js +21 -0
  93. package/dist/esm/pipeline/spec/chart/pipes/regressionLine/common.js.map +1 -0
  94. package/dist/esm/pipeline/spec/chart/pipes/regressionLine/ecdfRegressionLine.d.ts +2 -0
  95. package/dist/esm/pipeline/spec/chart/pipes/regressionLine/ecdfRegressionLine.js +98 -0
  96. package/dist/esm/pipeline/spec/chart/pipes/regressionLine/ecdfRegressionLine.js.map +1 -0
  97. package/dist/esm/pipeline/spec/chart/pipes/regressionLine/index.d.ts +4 -1
  98. package/dist/esm/pipeline/spec/chart/pipes/regressionLine/index.js +4 -1
  99. package/dist/esm/pipeline/spec/chart/pipes/regressionLine/kdeRegressionLine.d.ts +2 -0
  100. package/dist/esm/pipeline/spec/chart/pipes/regressionLine/kdeRegressionLine.js +98 -0
  101. package/dist/esm/pipeline/spec/chart/pipes/regressionLine/kdeRegressionLine.js.map +1 -0
  102. package/dist/esm/pipeline/spec/chart/pipes/regressionLine/linearRegressionLine.d.ts +16 -0
  103. package/dist/esm/pipeline/spec/chart/pipes/regressionLine/linearRegressionLine.js +159 -0
  104. package/dist/esm/pipeline/spec/chart/pipes/regressionLine/linearRegressionLine.js.map +1 -0
  105. package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltip.d.ts +2 -2
  106. package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltip.js +5 -5
  107. package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltip.js.map +1 -1
  108. package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltipDualAxis.js +2 -2
  109. package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltipDualAxis.js.map +1 -1
  110. package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltipScatter.d.ts +1 -1
  111. package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltipScatter.js +1 -6
  112. package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltipScatter.js.map +1 -1
  113. package/dist/esm/theme/common/color.d.ts +4 -0
  114. package/dist/esm/theme/common/color.js +6 -2
  115. package/dist/esm/theme/common/color.js.map +1 -1
  116. package/dist/esm/theme/common/regressionLine.d.ts +8 -4
  117. package/dist/esm/theme/common/regressionLine.js +60 -8
  118. package/dist/esm/theme/common/regressionLine.js.map +1 -1
  119. package/dist/esm/theme/common/table.d.ts +6 -0
  120. package/dist/esm/theme/common/table.js +4 -1
  121. package/dist/esm/theme/common/table.js.map +1 -1
  122. package/dist/esm/theme/dark/dark.js +8 -6
  123. package/dist/esm/theme/dark/dark.js.map +1 -1
  124. package/dist/esm/theme/light/light.js +8 -6
  125. package/dist/esm/theme/light/light.js.map +1 -1
  126. package/dist/esm/types/advancedVSeed.d.ts +1028 -37
  127. package/dist/esm/types/advancedVSeed.js +2 -2
  128. package/dist/esm/types/advancedVSeed.js.map +1 -1
  129. package/dist/esm/types/chartType/column/column.d.ts +6 -1
  130. package/dist/esm/types/chartType/column/zColumn.d.ts +25 -0
  131. package/dist/esm/types/chartType/column/zColumn.js +2 -1
  132. package/dist/esm/types/chartType/column/zColumn.js.map +1 -1
  133. package/dist/esm/types/chartType/histogram/histogram.d.ts +7 -3
  134. package/dist/esm/types/chartType/histogram/zHistogram.d.ts +19 -4
  135. package/dist/esm/types/chartType/histogram/zHistogram.js +3 -2
  136. package/dist/esm/types/chartType/histogram/zHistogram.js.map +1 -1
  137. package/dist/esm/types/chartType/scatter/scatter.d.ts +21 -1
  138. package/dist/esm/types/chartType/scatter/zScatter.d.ts +94 -0
  139. package/dist/esm/types/chartType/scatter/zScatter.js +5 -1
  140. package/dist/esm/types/chartType/scatter/zScatter.js.map +1 -1
  141. package/dist/esm/types/properties/annotation/annotationHorizontalLine.d.ts +13 -0
  142. package/dist/esm/types/properties/config/area.d.ts +6 -0
  143. package/dist/esm/types/properties/config/bar.d.ts +9 -0
  144. package/dist/esm/types/properties/config/boxplot.d.ts +3 -0
  145. package/dist/esm/types/properties/config/color/color.d.ts +8 -0
  146. package/dist/esm/types/properties/config/color/color.js.map +1 -1
  147. package/dist/esm/types/properties/config/column.d.ts +141 -2
  148. package/dist/esm/types/properties/config/column.js +6 -3
  149. package/dist/esm/types/properties/config/column.js.map +1 -1
  150. package/dist/esm/types/properties/config/config.d.ts +449 -9
  151. package/dist/esm/types/properties/config/dualAxis.d.ts +3 -0
  152. package/dist/esm/types/properties/config/funnel.d.ts +3 -0
  153. package/dist/esm/types/properties/config/heatmap.d.ts +3 -0
  154. package/dist/esm/types/properties/config/histogram.d.ts +132 -9
  155. package/dist/esm/types/properties/config/histogram.js +2 -2
  156. package/dist/esm/types/properties/config/histogram.js.map +1 -1
  157. package/dist/esm/types/properties/config/line.d.ts +3 -0
  158. package/dist/esm/types/properties/config/pie.d.ts +9 -0
  159. package/dist/esm/types/properties/config/pivotGrid/pivotGrid.d.ts +3 -0
  160. package/dist/esm/types/properties/config/pivotGrid/pivotGrid.js +4 -1
  161. package/dist/esm/types/properties/config/pivotGrid/pivotGrid.js.map +1 -1
  162. package/dist/esm/types/properties/config/rose.d.ts +6 -0
  163. package/dist/esm/types/properties/config/scatter.d.ts +133 -0
  164. package/dist/esm/types/properties/config/scatter.js +3 -1
  165. package/dist/esm/types/properties/config/scatter.js.map +1 -1
  166. package/dist/esm/types/properties/regressionLine/{histogramRegressionLine.d.ts → ecdfRegressionLine.d.ts} +2 -7
  167. package/dist/esm/types/properties/regressionLine/index.d.ts +7 -2
  168. package/dist/esm/types/properties/regressionLine/index.js +1 -1
  169. package/dist/esm/types/properties/regressionLine/kdeRegressionLine.d.ts +40 -0
  170. package/dist/esm/types/properties/regressionLine/linearRegressionLine.d.ts +53 -0
  171. package/dist/esm/types/properties/regressionLine/logisticRegressionLine.d.ts +53 -0
  172. package/dist/esm/types/properties/regressionLine/logisticRegressionLine.js +0 -0
  173. package/dist/esm/types/properties/regressionLine/lowessRegressionLine.d.ts +53 -0
  174. package/dist/esm/types/properties/regressionLine/lowessRegressionLine.js +0 -0
  175. package/dist/esm/types/properties/regressionLine/polynomialRegressionLine.d.ts +57 -0
  176. package/dist/esm/types/properties/regressionLine/polynomialRegressionLine.js +0 -0
  177. package/dist/esm/types/properties/regressionLine/zRegressionLine.d.ts +199 -0
  178. package/dist/esm/types/properties/regressionLine/zRegressionLine.js +32 -0
  179. package/dist/esm/types/properties/regressionLine/zRegressionLine.js.map +1 -0
  180. package/dist/esm/types/properties/theme/customTheme.d.ts +898 -18
  181. package/dist/esm/types/zVseed.d.ts +138 -4
  182. package/dist/umd/index.js +1889 -279
  183. package/dist/umd/index.js.map +1 -1
  184. package/package.json +1 -1
  185. package/dist/esm/pipeline/spec/chart/pipes/regressionLine/histogramRegressionLine.d.ts +0 -2
  186. package/dist/esm/pipeline/spec/chart/pipes/regressionLine/histogramRegressionLine.js +0 -126
  187. package/dist/esm/pipeline/spec/chart/pipes/regressionLine/histogramRegressionLine.js.map +0 -1
  188. package/dist/esm/types/properties/regressionLine/zHistogramRegressionLine.d.ts +0 -11
  189. package/dist/esm/types/properties/regressionLine/zHistogramRegressionLine.js +0 -17
  190. package/dist/esm/types/properties/regressionLine/zHistogramRegressionLine.js.map +0 -1
  191. /package/dist/esm/{pipeline/advanced/chart/pipes/analysis/sort.d.ts → types/properties/regressionLine/ecdfRegressionLine.js} +0 -0
  192. /package/dist/esm/{pipeline/advanced/chart/pipes/analysis/sort.js → types/properties/regressionLine/kdeRegressionLine.js} +0 -0
  193. /package/dist/esm/types/properties/regressionLine/{histogramRegressionLine.js → linearRegressionLine.js} +0 -0
@@ -7,7 +7,7 @@ import { zEncoding } from "./properties/encoding/index.js";
7
7
  import { zDatasetReshapeInfo } from "./properties/datasetReshapeInfo/index.js";
8
8
  import { zCustomThemeConfig, zTheme } from "./properties/theme/index.js";
9
9
  import { zConfig } from "./properties/config/index.js";
10
- import { zAnalysis, zAnnotation, zHistogramRegressionLine, zMarkStyle } from "./properties/index.js";
10
+ import { zAnalysis, zAnnotation, zMarkStyle, zRegressionLine } from "./properties/index.js";
11
11
  import { zLocale } from "./i18n/index.js";
12
12
  const zAdvancedVSeed = z.object({
13
13
  chartType: zChartType,
@@ -23,7 +23,7 @@ const zAdvancedVSeed = z.object({
23
23
  customTheme: zCustomThemeConfig,
24
24
  annotation: zAnnotation,
25
25
  locale: zLocale,
26
- histogramRegressionLine: zHistogramRegressionLine.or(z.array(zHistogramRegressionLine)).nullish()
26
+ regressionLine: zRegressionLine
27
27
  });
28
28
  export { zAdvancedVSeed };
29
29
 
@@ -1 +1 @@
1
- {"version":3,"file":"types/advancedVSeed.js","sources":["webpack://@visactor/vseed/./src/types/advancedVSeed.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zChartType } from './properties/chartType'\nimport { zDataset } from './properties/dataset'\nimport { zDimensionTree } from './properties/dimensions'\nimport { zMeasureTree } from './properties/measures'\nimport { zEncoding } from './properties/encoding'\nimport { zDatasetReshapeInfo } from './properties/datasetReshapeInfo'\nimport { zTheme, zCustomThemeConfig } from './properties/theme'\nimport { zConfig } from './properties/config'\nimport { zAnalysis, zAnnotation, zHistogramRegressionLine, zMarkStyle } from './properties'\nimport { zLocale } from './i18n'\n\nexport const zAdvancedVSeed = z.object({\n chartType: zChartType,\n dataset: zDataset,\n datasetReshapeInfo: zDatasetReshapeInfo,\n dimensions: zDimensionTree,\n measures: zMeasureTree,\n encoding: zEncoding,\n config: zConfig,\n analysis: zAnalysis,\n theme: zTheme,\n markStyle: zMarkStyle,\n customTheme: zCustomThemeConfig,\n annotation: zAnnotation,\n locale: zLocale,\n histogramRegressionLine: zHistogramRegressionLine.or(z.array(zHistogramRegressionLine)).nullish(),\n})\n\nexport type AdvancedVSeed = z.infer<typeof zAdvancedVSeed>\n"],"names":["zAdvancedVSeed","z","zChartType","zDataset","zDatasetReshapeInfo","zDimensionTree","zMeasureTree","zEncoding","zConfig","zAnalysis","zTheme","zMarkStyle","zCustomThemeConfig","zAnnotation","zLocale","zHistogramRegressionLine"],"mappings":";;;;;;;;;;;AAYO,MAAMA,iBAAiBC,EAAE,MAAM,CAAC;IACrC,WAAWC;IACX,SAASC;IACT,oBAAoBC;IACpB,YAAYC;IACZ,UAAUC;IACV,UAAUC;IACV,QAAQC;IACR,UAAUC;IACV,OAAOC;IACP,WAAWC;IACX,aAAaC;IACb,YAAYC;IACZ,QAAQC;IACR,yBAAyBC,yBAAyB,EAAE,CAACd,EAAE,KAAK,CAACc,2BAA2B,OAAO;AACjG"}
1
+ {"version":3,"file":"types/advancedVSeed.js","sources":["webpack://@visactor/vseed/./src/types/advancedVSeed.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zChartType } from './properties/chartType'\nimport { zDataset } from './properties/dataset'\nimport { zDimensionTree } from './properties/dimensions'\nimport { zMeasureTree } from './properties/measures'\nimport { zEncoding } from './properties/encoding'\nimport { zDatasetReshapeInfo } from './properties/datasetReshapeInfo'\nimport { zTheme, zCustomThemeConfig } from './properties/theme'\nimport { zConfig } from './properties/config'\nimport { zAnalysis, zAnnotation, zRegressionLine, zMarkStyle } from './properties'\nimport { zLocale } from './i18n'\n\nexport const zAdvancedVSeed = z.object({\n chartType: zChartType,\n dataset: zDataset,\n datasetReshapeInfo: zDatasetReshapeInfo,\n dimensions: zDimensionTree,\n measures: zMeasureTree,\n encoding: zEncoding,\n config: zConfig,\n analysis: zAnalysis,\n theme: zTheme,\n markStyle: zMarkStyle,\n customTheme: zCustomThemeConfig,\n annotation: zAnnotation,\n locale: zLocale,\n regressionLine: zRegressionLine,\n})\n\nexport type AdvancedVSeed = z.infer<typeof zAdvancedVSeed>\n"],"names":["zAdvancedVSeed","z","zChartType","zDataset","zDatasetReshapeInfo","zDimensionTree","zMeasureTree","zEncoding","zConfig","zAnalysis","zTheme","zMarkStyle","zCustomThemeConfig","zAnnotation","zLocale","zRegressionLine"],"mappings":";;;;;;;;;;;AAYO,MAAMA,iBAAiBC,EAAE,MAAM,CAAC;IACrC,WAAWC;IACX,SAASC;IACT,oBAAoBC;IACpB,YAAYC;IACZ,UAAUC;IACV,UAAUC;IACV,QAAQC;IACR,UAAUC;IACV,OAAOC;IACP,WAAWC;IACX,aAAaC;IACb,YAAYC;IACZ,QAAQC;IACR,gBAAgBC;AAClB"}
@@ -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, XBandAxis, YLinearAxis, MeasureTree, Sort, SortLegend, BarMaxWidth } from '../../properties';
2
+ import type { AnnotationArea, AnnotationHorizontalLine, AnnotationPoint, AnnotationVerticalLine, BackgroundColor, BarStyle, Color, CrosshairRect, Dataset, Dimensions, Label, Legend, StackCornerRadius, Theme, Tooltip, XBandAxis, YLinearAxis, MeasureTree, Sort, SortLegend, BarMaxWidth, PolynomialRegressionLine } from '../../properties';
3
3
  /**
4
4
  * @description 柱状图,适用于纵向数据对比场景,X轴为类目轴(分类数据),Y轴为数值轴(连续数据),柱子纵向排列
5
5
  * 适用场景:
@@ -147,6 +147,11 @@ export interface Column {
147
147
  * @description 标注区域配置, 根据选择的数据, 定义图表的标注区域, 包括标注区域的位置, 样式等.
148
148
  */
149
149
  annotationArea?: AnnotationArea | AnnotationArea[];
150
+ /**
151
+ * 多项式回归线
152
+ * @description 多项式回归线配置, 包括多项式的阶数、回归线的样式等.
153
+ */
154
+ polynomialRegressionLine?: boolean | PolynomialRegressionLine | PolynomialRegressionLine[];
150
155
  /**
151
156
  * @description 图表语言配置, 支持'zh-CN'与'en-US'两种语言, 另外可以调用 intl.setLocale('zh-CN') 方法设置语言
152
157
  * @default 'zh-CN'
@@ -1334,6 +1334,31 @@ export declare const zColumn: z.ZodObject<{
1334
1334
  areaLineDash: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
1335
1335
  outerPadding: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodNumber>>>;
1336
1336
  }, z.core.$strip>]>>>;
1337
+ polynomialRegressionLine: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodUnion<[z.ZodArray<z.ZodObject<{
1338
+ color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1339
+ lineWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1340
+ lineDash: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
1341
+ text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1342
+ textColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1343
+ textFontSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1344
+ textFontWeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1345
+ confidenceIntervalVisible: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1346
+ confidenceIntervalColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1347
+ confidenceIntervalOpacity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1348
+ degree: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1349
+ }, z.core.$strip>>, z.ZodObject<{
1350
+ color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1351
+ lineWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1352
+ lineDash: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
1353
+ text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1354
+ textColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1355
+ textFontSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1356
+ textFontWeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1357
+ confidenceIntervalVisible: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1358
+ confidenceIntervalColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1359
+ confidenceIntervalOpacity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1360
+ degree: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1361
+ }, z.core.$strip>]>, z.ZodBoolean]>>>;
1337
1362
  locale: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodEnum<{
1338
1363
  "zh-CN": "zh-CN";
1339
1364
  "en-US": "en-US";
@@ -1,6 +1,6 @@
1
1
  import { z } from "zod";
2
2
  import { zLocale } from "../../i18n/index.js";
3
- import { zAnnotationArea, zAnnotationHorizontalLine, zAnnotationPoint, zAnnotationVerticalLine, zBackgroundColor, zBarMaxWidth, zBarStyle, zColor, zCrosshairRect, zDataset, zDimensions, zEncoding, zLabel, zLegend, zMeasureTree, zSort, zSortLegend, zStackCornerRadius, zTheme, zTooltip, zXBandAxis, zYLinearAxis } from "../../properties/index.js";
3
+ import { zAnnotationArea, zAnnotationHorizontalLine, zAnnotationPoint, zAnnotationVerticalLine, zBackgroundColor, zBarMaxWidth, zBarStyle, zColor, zCrosshairRect, zDataset, zDimensions, zEncoding, zLabel, zLegend, zMeasureTree, zPolynomialRegressionLine, zSort, zSortLegend, zStackCornerRadius, zTheme, zTooltip, zXBandAxis, zYLinearAxis } from "../../properties/index.js";
4
4
  const zColumn = z.object({
5
5
  chartType: z.literal('column'),
6
6
  dataset: zDataset.nullish(),
@@ -25,6 +25,7 @@ const zColumn = z.object({
25
25
  annotationVerticalLine: z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).nullish(),
26
26
  annotationHorizontalLine: z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).nullish(),
27
27
  annotationArea: z.array(zAnnotationArea).or(zAnnotationArea).nullish(),
28
+ polynomialRegressionLine: z.array(zPolynomialRegressionLine).or(zPolynomialRegressionLine).or(z.boolean()).nullish(),
28
29
  locale: zLocale.nullish()
29
30
  });
30
31
  export { zColumn };
@@ -1 +1 @@
1
- {"version":3,"file":"types/chartType/column/zColumn.js","sources":["webpack://@visactor/vseed/./src/types/chartType/column/zColumn.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zLocale } from '../../i18n'\nimport {\n zAnnotationArea,\n zAnnotationHorizontalLine,\n zAnnotationPoint,\n zAnnotationVerticalLine,\n zBackgroundColor,\n zBarMaxWidth,\n zBarStyle,\n zColor,\n zCrosshairRect,\n zDataset,\n zDimensions,\n zEncoding,\n zLabel,\n zLegend,\n zMeasureTree,\n zSort,\n zSortLegend,\n zStackCornerRadius,\n zTheme,\n zTooltip,\n zXBandAxis,\n zYLinearAxis,\n} from '../../properties'\n\nexport const zColumn = z.object({\n chartType: z.literal('column'),\n dataset: zDataset.nullish(),\n encoding: zEncoding.nullish(),\n dimensions: zDimensions.nullish(),\n measures: zMeasureTree.nullish(),\n backgroundColor: zBackgroundColor.nullish(),\n color: zColor.nullish(),\n label: zLabel.nullish(),\n legend: zLegend.nullish(),\n tooltip: zTooltip.nullish(),\n xAxis: zXBandAxis.nullish(),\n yAxis: zYLinearAxis.nullish(),\n sort: zSort.nullish(),\n sortLegent: zSortLegend.nullish(),\n crosshairRect: zCrosshairRect.nullish(),\n stackCornerRadius: zStackCornerRadius.nullish(),\n barMaxWidth: zBarMaxWidth.nullish(),\n theme: zTheme.nullish(),\n barStyle: z.array(zBarStyle).or(zBarStyle).nullish(),\n annotationPoint: z.array(zAnnotationPoint).or(zAnnotationPoint).nullish(),\n annotationVerticalLine: z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).nullish(),\n annotationHorizontalLine: z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).nullish(),\n annotationArea: z.array(zAnnotationArea).or(zAnnotationArea).nullish(),\n locale: zLocale.nullish(),\n})\n"],"names":["zColumn","z","zDataset","zEncoding","zDimensions","zMeasureTree","zBackgroundColor","zColor","zLabel","zLegend","zTooltip","zXBandAxis","zYLinearAxis","zSort","zSortLegend","zCrosshairRect","zStackCornerRadius","zBarMaxWidth","zTheme","zBarStyle","zAnnotationPoint","zAnnotationVerticalLine","zAnnotationHorizontalLine","zAnnotationArea","zLocale"],"mappings":";;;AA2BO,MAAMA,UAAUC,EAAE,MAAM,CAAC;IAC9B,WAAWA,EAAE,OAAO,CAAC;IACrB,SAASC,SAAS,OAAO;IACzB,UAAUC,UAAU,OAAO;IAC3B,YAAYC,YAAY,OAAO;IAC/B,UAAUC,aAAa,OAAO;IAC9B,iBAAiBC,iBAAiB,OAAO;IACzC,OAAOC,OAAO,OAAO;IACrB,OAAOC,OAAO,OAAO;IACrB,QAAQC,QAAQ,OAAO;IACvB,SAASC,SAAS,OAAO;IACzB,OAAOC,WAAW,OAAO;IACzB,OAAOC,aAAa,OAAO;IAC3B,MAAMC,MAAM,OAAO;IACnB,YAAYC,YAAY,OAAO;IAC/B,eAAeC,eAAe,OAAO;IACrC,mBAAmBC,mBAAmB,OAAO;IAC7C,aAAaC,aAAa,OAAO;IACjC,OAAOC,OAAO,OAAO;IACrB,UAAUjB,EAAE,KAAK,CAACkB,WAAW,EAAE,CAACA,WAAW,OAAO;IAClD,iBAAiBlB,EAAE,KAAK,CAACmB,kBAAkB,EAAE,CAACA,kBAAkB,OAAO;IACvE,wBAAwBnB,EAAE,KAAK,CAACoB,yBAAyB,EAAE,CAACA,yBAAyB,OAAO;IAC5F,0BAA0BpB,EAAE,KAAK,CAACqB,2BAA2B,EAAE,CAACA,2BAA2B,OAAO;IAClG,gBAAgBrB,EAAE,KAAK,CAACsB,iBAAiB,EAAE,CAACA,iBAAiB,OAAO;IACpE,QAAQC,QAAQ,OAAO;AACzB"}
1
+ {"version":3,"file":"types/chartType/column/zColumn.js","sources":["webpack://@visactor/vseed/./src/types/chartType/column/zColumn.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zLocale } from '../../i18n'\nimport {\n zAnnotationArea,\n zAnnotationHorizontalLine,\n zAnnotationPoint,\n zAnnotationVerticalLine,\n zBackgroundColor,\n zBarMaxWidth,\n zBarStyle,\n zColor,\n zCrosshairRect,\n zDataset,\n zDimensions,\n zEncoding,\n zLabel,\n zLegend,\n zMeasureTree,\n zPolynomialRegressionLine,\n zSort,\n zSortLegend,\n zStackCornerRadius,\n zTheme,\n zTooltip,\n zXBandAxis,\n zYLinearAxis,\n} from '../../properties'\n\nexport const zColumn = z.object({\n chartType: z.literal('column'),\n dataset: zDataset.nullish(),\n encoding: zEncoding.nullish(),\n dimensions: zDimensions.nullish(),\n measures: zMeasureTree.nullish(),\n backgroundColor: zBackgroundColor.nullish(),\n color: zColor.nullish(),\n label: zLabel.nullish(),\n legend: zLegend.nullish(),\n tooltip: zTooltip.nullish(),\n xAxis: zXBandAxis.nullish(),\n yAxis: zYLinearAxis.nullish(),\n sort: zSort.nullish(),\n sortLegent: zSortLegend.nullish(),\n crosshairRect: zCrosshairRect.nullish(),\n stackCornerRadius: zStackCornerRadius.nullish(),\n barMaxWidth: zBarMaxWidth.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 polynomialRegressionLine: z.array(zPolynomialRegressionLine).or(zPolynomialRegressionLine).or(z.boolean()).nullish(),\n locale: zLocale.nullish(),\n})\n"],"names":["zColumn","z","zDataset","zEncoding","zDimensions","zMeasureTree","zBackgroundColor","zColor","zLabel","zLegend","zTooltip","zXBandAxis","zYLinearAxis","zSort","zSortLegend","zCrosshairRect","zStackCornerRadius","zBarMaxWidth","zTheme","zBarStyle","zAnnotationPoint","zAnnotationVerticalLine","zAnnotationHorizontalLine","zAnnotationArea","zPolynomialRegressionLine","zLocale"],"mappings":";;;AA4BO,MAAMA,UAAUC,EAAE,MAAM,CAAC;IAC9B,WAAWA,EAAE,OAAO,CAAC;IACrB,SAASC,SAAS,OAAO;IACzB,UAAUC,UAAU,OAAO;IAC3B,YAAYC,YAAY,OAAO;IAC/B,UAAUC,aAAa,OAAO;IAC9B,iBAAiBC,iBAAiB,OAAO;IACzC,OAAOC,OAAO,OAAO;IACrB,OAAOC,OAAO,OAAO;IACrB,QAAQC,QAAQ,OAAO;IACvB,SAASC,SAAS,OAAO;IACzB,OAAOC,WAAW,OAAO;IACzB,OAAOC,aAAa,OAAO;IAC3B,MAAMC,MAAM,OAAO;IACnB,YAAYC,YAAY,OAAO;IAC/B,eAAeC,eAAe,OAAO;IACrC,mBAAmBC,mBAAmB,OAAO;IAC7C,aAAaC,aAAa,OAAO;IACjC,OAAOC,OAAO,OAAO;IACrB,UAAUjB,EAAE,KAAK,CAACkB,WAAW,EAAE,CAACA,WAAW,OAAO;IAClD,iBAAiBlB,EAAE,KAAK,CAACmB,kBAAkB,EAAE,CAACA,kBAAkB,OAAO;IACvE,wBAAwBnB,EAAE,KAAK,CAACoB,yBAAyB,EAAE,CAACA,yBAAyB,OAAO;IAC5F,0BAA0BpB,EAAE,KAAK,CAACqB,2BAA2B,EAAE,CAACA,2BAA2B,OAAO;IAClG,gBAAgBrB,EAAE,KAAK,CAACsB,iBAAiB,EAAE,CAACA,iBAAiB,OAAO;IACpE,0BAA0BtB,EAAE,KAAK,CAACuB,2BAA2B,EAAE,CAACA,2BAA2B,EAAE,CAACvB,EAAE,OAAO,IAAI,OAAO;IAClH,QAAQwB,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, HistogramRegressionLine } from '../../properties';
2
+ import type { AnnotationArea, AnnotationHorizontalLine, AnnotationPoint, AnnotationVerticalLine, BackgroundColor, BarStyle, Color, CrosshairRect, Dataset, Dimensions, Label, Legend, StackCornerRadius, Theme, Tooltip, YLinearAxis, MeasureTree, XLinearAxis, KdeRegressionLine, EcdfRegressionLine } from '../../properties';
3
3
  /**
4
4
  * @description 直方图,适用于展示数据分布情况的场景,X轴为数值轴(连续数据),Y轴为数值轴(连续数据),柱子纵向排列
5
5
  * 适用场景:
@@ -116,9 +116,13 @@ export interface Histogram {
116
116
  */
117
117
  annotationArea?: AnnotationArea | AnnotationArea[];
118
118
  /**
119
- * @description 直方图回归线配置, 用于展示数据的趋势和分布情况
119
+ * @description 核密度回归线配置, 用于展示数据的趋势和分布情况
120
120
  */
121
- histogramRegressionLine?: HistogramRegressionLine | HistogramRegressionLine[];
121
+ kdeRegressionLine?: boolean | KdeRegressionLine | KdeRegressionLine[];
122
+ /**
123
+ * @description 经验累积分布函数回归线配置, 用于展示数据的累积分布情况
124
+ */
125
+ ecdfRegressionLine?: boolean | EcdfRegressionLine | EcdfRegressionLine[];
122
126
  /**
123
127
  * @description 图表语言配置, 支持'zh-CN'与'en-US'两种语言, 另外可以调用 intl.setLocale('zh-CN') 方法设置语言
124
128
  * @default 'zh-CN'
@@ -1350,8 +1350,7 @@ export declare const zHistogram: z.ZodObject<{
1350
1350
  areaLineDash: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
1351
1351
  outerPadding: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodNumber>>>;
1352
1352
  }, z.core.$strip>]>>>;
1353
- histogramRegressionLine: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodArray<z.ZodObject<{
1354
- type: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<"kde">, z.ZodLiteral<"ecdf">]>>>;
1353
+ ecdfRegressionLine: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodUnion<[z.ZodArray<z.ZodObject<{
1355
1354
  color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1356
1355
  lineWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1357
1356
  lineDash: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
@@ -1360,7 +1359,6 @@ export declare const zHistogram: z.ZodObject<{
1360
1359
  textFontSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1361
1360
  textFontWeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1362
1361
  }, z.core.$strip>>, z.ZodObject<{
1363
- type: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<"kde">, z.ZodLiteral<"ecdf">]>>>;
1364
1362
  color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1365
1363
  lineWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1366
1364
  lineDash: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
@@ -1368,7 +1366,24 @@ export declare const zHistogram: z.ZodObject<{
1368
1366
  textColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1369
1367
  textFontSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1370
1368
  textFontWeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1371
- }, z.core.$strip>]>>>;
1369
+ }, z.core.$strip>]>, z.ZodBoolean]>>>;
1370
+ kdeRegressionLine: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodUnion<[z.ZodArray<z.ZodObject<{
1371
+ color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1372
+ lineWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1373
+ lineDash: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
1374
+ text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1375
+ textColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1376
+ textFontSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1377
+ textFontWeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1378
+ }, z.core.$strip>>, z.ZodObject<{
1379
+ color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1380
+ lineWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1381
+ lineDash: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
1382
+ text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1383
+ textColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1384
+ textFontSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1385
+ textFontWeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1386
+ }, z.core.$strip>]>, z.ZodBoolean]>>>;
1372
1387
  locale: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodEnum<{
1373
1388
  "zh-CN": "zh-CN";
1374
1389
  "en-US": "en-US";
@@ -1,6 +1,6 @@
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, zDimensions, zEncoding, zHistogramRegressionLine, zLabel, zLegend, zMeasureTree, zTheme, zTooltip, zXLinearAxis, zYLinearAxis } from "../../properties/index.js";
3
+ import { zAnnotationArea, zAnnotationHorizontalLine, zAnnotationPoint, zAnnotationVerticalLine, zBackgroundColor, zBarStyle, zColor, zCrosshairRect, zDataset, zDimensions, zEcdfRegressionLine, zEncoding, zKdeRegressionLine, zLabel, zLegend, zMeasureTree, 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(),
@@ -24,7 +24,8 @@ const zHistogram = z.object({
24
24
  annotationVerticalLine: z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).nullish(),
25
25
  annotationHorizontalLine: z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).nullish(),
26
26
  annotationArea: z.array(zAnnotationArea).or(zAnnotationArea).nullish(),
27
- histogramRegressionLine: z.array(zHistogramRegressionLine).or(zHistogramRegressionLine).nullish(),
27
+ ecdfRegressionLine: z.array(zEcdfRegressionLine).or(zEcdfRegressionLine).or(z.boolean()).nullish(),
28
+ kdeRegressionLine: z.array(zKdeRegressionLine).or(zKdeRegressionLine).or(z.boolean()).nullish(),
28
29
  locale: zLocale.nullish()
29
30
  });
30
31
  export { zHistogram };
@@ -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 zDimensions,\n zEncoding,\n zHistogramRegressionLine,\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 histogramRegressionLine: z.array(zHistogramRegressionLine).or(zHistogramRegressionLine).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","zHistogramRegressionLine","zLocale"],"mappings":";;;AAwBO,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,yBAAyBlB,EAAE,KAAK,CAACmB,0BAA0B,EAAE,CAACA,0BAA0B,OAAO;IAC/F,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 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).or(z.boolean()).nullish(),\n kdeRegressionLine: z.array(zKdeRegressionLine).or(zKdeRegressionLine).or(z.boolean()).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","zLocale"],"mappings":";;;AAyBO,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,EAAE,CAACnB,EAAE,OAAO,IAAI,OAAO;IAChG,mBAAmBA,EAAE,KAAK,CAACoB,oBAAoB,EAAE,CAACA,oBAAoB,EAAE,CAACpB,EAAE,OAAO,IAAI,OAAO;IAC7F,QAAQqB,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, PointStyle, Theme, Tooltip, CrosshairLine, YLinearAxis, XLinearAxis, MeasureTree, ScatterMeasures } from '../../properties';
2
+ import type { AnnotationArea, AnnotationHorizontalLine, AnnotationPoint, AnnotationVerticalLine, BackgroundColor, Color, Dataset, Dimensions, Label, Legend, PointStyle, Theme, Tooltip, CrosshairLine, YLinearAxis, XLinearAxis, MeasureTree, ScatterMeasures, LinearRegressionLine, LowessRegressionLine, PolynomialRegressionLine, LogisticRegressionLine } from '../../properties';
3
3
  /**
4
4
  * @description 散点图,适用于展示数据的分布情况,通过点的位置表示数据的数值
5
5
  * 适用场景:
@@ -219,6 +219,26 @@ export interface Scatter {
219
219
  * @description 标注区域配置, 根据选择的数据, 定义图表的标注区域, 包括标注区域的位置, 样式等.
220
220
  */
221
221
  annotationArea?: AnnotationArea | AnnotationArea[];
222
+ /**
223
+ * 线性回归线
224
+ * @description 线性回归线配置, 包括线性回归线的样式等.
225
+ */
226
+ linearRegressionLine?: boolean | LinearRegressionLine | LinearRegressionLine[];
227
+ /**
228
+ * 局部加权回归线配置项
229
+ * @description 局部加权回归线配置项, 包括局部加权回归线的样式等.
230
+ */
231
+ lowessRegressionLine?: boolean | LowessRegressionLine | LowessRegressionLine[];
232
+ /**
233
+ * 多项式回归线
234
+ * @description 多项式回归线配置, 包括多项式的阶数、回归线的样式等.
235
+ */
236
+ polynomialRegressionLine?: boolean | PolynomialRegressionLine | PolynomialRegressionLine[];
237
+ /**
238
+ * 逻辑回归线
239
+ * @description 逻辑回归线配置, 包括逻辑回归线的样式等.
240
+ */
241
+ logisticRegressionLine?: boolean | LogisticRegressionLine | LogisticRegressionLine[];
222
242
  /**
223
243
  * 语言
224
244
  * @description 图表语言配置, 支持'zh-CN'与'en-US'两种语言, 另外可以调用 intl.setLocale('zh-CN') 方法设置语言
@@ -1649,6 +1649,100 @@ export declare const zScatter: z.ZodObject<{
1649
1649
  areaLineDash: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
1650
1650
  outerPadding: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodNumber>>>;
1651
1651
  }, z.core.$strip>]>>>;
1652
+ linearRegressionLine: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodUnion<[z.ZodArray<z.ZodObject<{
1653
+ color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1654
+ lineWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1655
+ lineDash: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
1656
+ text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1657
+ textColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1658
+ textFontSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1659
+ textFontWeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1660
+ confidenceIntervalVisible: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1661
+ confidenceIntervalColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1662
+ confidenceIntervalOpacity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1663
+ }, z.core.$strip>>, z.ZodObject<{
1664
+ color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1665
+ lineWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1666
+ lineDash: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
1667
+ text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1668
+ textColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1669
+ textFontSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1670
+ textFontWeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1671
+ confidenceIntervalVisible: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1672
+ confidenceIntervalColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1673
+ confidenceIntervalOpacity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1674
+ }, z.core.$strip>]>, z.ZodBoolean]>>>;
1675
+ lowessRegressionLine: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodUnion<[z.ZodArray<z.ZodObject<{
1676
+ color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1677
+ lineWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1678
+ lineDash: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
1679
+ text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1680
+ textColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1681
+ textFontSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1682
+ textFontWeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1683
+ confidenceIntervalVisible: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1684
+ confidenceIntervalColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1685
+ confidenceIntervalOpacity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1686
+ }, z.core.$strip>>, z.ZodObject<{
1687
+ color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1688
+ lineWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1689
+ lineDash: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
1690
+ text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1691
+ textColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1692
+ textFontSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1693
+ textFontWeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1694
+ confidenceIntervalVisible: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1695
+ confidenceIntervalColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1696
+ confidenceIntervalOpacity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1697
+ }, z.core.$strip>]>, z.ZodBoolean]>>>;
1698
+ polynomialRegressionLine: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodUnion<[z.ZodArray<z.ZodObject<{
1699
+ color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1700
+ lineWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1701
+ lineDash: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
1702
+ text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1703
+ textColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1704
+ textFontSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1705
+ textFontWeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1706
+ confidenceIntervalVisible: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1707
+ confidenceIntervalColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1708
+ confidenceIntervalOpacity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1709
+ degree: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1710
+ }, z.core.$strip>>, z.ZodObject<{
1711
+ color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1712
+ lineWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1713
+ lineDash: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
1714
+ text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1715
+ textColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1716
+ textFontSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1717
+ textFontWeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1718
+ confidenceIntervalVisible: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1719
+ confidenceIntervalColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1720
+ confidenceIntervalOpacity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1721
+ degree: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1722
+ }, z.core.$strip>]>, z.ZodBoolean]>>>;
1723
+ logisticRegressionLine: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodUnion<[z.ZodArray<z.ZodObject<{
1724
+ color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1725
+ lineWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1726
+ lineDash: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
1727
+ text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1728
+ textColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1729
+ textFontSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1730
+ textFontWeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1731
+ confidenceIntervalVisible: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1732
+ confidenceIntervalColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1733
+ confidenceIntervalOpacity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1734
+ }, z.core.$strip>>, z.ZodObject<{
1735
+ color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1736
+ lineWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1737
+ lineDash: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
1738
+ text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1739
+ textColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1740
+ textFontSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1741
+ textFontWeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1742
+ confidenceIntervalVisible: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1743
+ confidenceIntervalColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1744
+ confidenceIntervalOpacity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1745
+ }, z.core.$strip>]>, z.ZodBoolean]>>>;
1652
1746
  locale: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodEnum<{
1653
1747
  "zh-CN": "zh-CN";
1654
1748
  "en-US": "en-US";
@@ -1,6 +1,6 @@
1
1
  import { z } from "zod";
2
2
  import { zLocale } from "../../i18n/index.js";
3
- import { zAnnotationArea, zAnnotationHorizontalLine, zAnnotationPoint, zAnnotationVerticalLine, zBackgroundColor, zColor, zCrosshairLine, zDataset, zDimensions, zEncoding, zLabel, zLegend, zMeasureTree, zPointStyle, zScatterMeasures, zTheme, zTooltip, zXLinearAxis, zYLinearAxis } from "../../properties/index.js";
3
+ import { zAnnotationArea, zAnnotationHorizontalLine, zAnnotationPoint, zAnnotationVerticalLine, zBackgroundColor, zColor, zCrosshairLine, zDataset, zDimensions, zEncoding, zLabel, zLegend, zLinearRegressionLine, zLogisticRegressionLine, zLowessRegressionLine, zMeasureTree, zPointStyle, zPolynomialRegressionLine, zScatterMeasures, zTheme, zTooltip, zXLinearAxis, zYLinearAxis } from "../../properties/index.js";
4
4
  const zScatter = z.object({
5
5
  chartType: z.literal('scatter'),
6
6
  dataset: zDataset.nullish(),
@@ -24,6 +24,10 @@ const zScatter = z.object({
24
24
  annotationVerticalLine: z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).nullish(),
25
25
  annotationHorizontalLine: z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).nullish(),
26
26
  annotationArea: z.array(zAnnotationArea).or(zAnnotationArea).nullish(),
27
+ linearRegressionLine: z.array(zLinearRegressionLine).or(zLinearRegressionLine).or(z.boolean()).nullish(),
28
+ lowessRegressionLine: z.array(zLowessRegressionLine).or(zLowessRegressionLine).or(z.boolean()).nullish(),
29
+ polynomialRegressionLine: z.array(zPolynomialRegressionLine).or(zPolynomialRegressionLine).or(z.boolean()).nullish(),
30
+ logisticRegressionLine: z.array(zLogisticRegressionLine).or(zLogisticRegressionLine).or(z.boolean()).nullish(),
27
31
  locale: zLocale.nullish()
28
32
  });
29
33
  export { zScatter };
@@ -1 +1 @@
1
- {"version":3,"file":"types/chartType/scatter/zScatter.js","sources":["webpack://@visactor/vseed/./src/types/chartType/scatter/zScatter.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zLocale } from '../../i18n'\nimport {\n zAnnotationArea,\n zAnnotationHorizontalLine,\n zAnnotationPoint,\n zAnnotationVerticalLine,\n zBackgroundColor,\n zColor,\n zCrosshairLine,\n zDataset,\n zDimensions,\n zEncoding,\n zLabel,\n zLegend,\n zMeasureTree,\n zPointStyle,\n zScatterMeasures,\n zTheme,\n zTooltip,\n zXLinearAxis,\n zYLinearAxis,\n} from '../../properties'\n\nexport const zScatter = z.object({\n chartType: z.literal('scatter'),\n dataset: zDataset.nullish(),\n encoding: zEncoding.nullish(),\n dimensions: zDimensions.nullish(),\n measures: zMeasureTree.nullish(),\n scatterMeasures: zScatterMeasures.nullish(),\n backgroundColor: zBackgroundColor.nullish(),\n size: z.number().or(z.array(z.number())).nullish(),\n sizeRange: z.number().or(z.array(z.number())).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 crosshairLine: zCrosshairLine.nullish(),\n theme: zTheme.nullish(),\n pointStyle: z.array(zPointStyle).or(zPointStyle).nullish(),\n annotationPoint: z.array(zAnnotationPoint).or(zAnnotationPoint).nullish(),\n annotationVerticalLine: z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).nullish(),\n annotationHorizontalLine: z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).nullish(),\n annotationArea: z.array(zAnnotationArea).or(zAnnotationArea).nullish(),\n locale: zLocale.nullish(),\n})\n"],"names":["zScatter","z","zDataset","zEncoding","zDimensions","zMeasureTree","zScatterMeasures","zBackgroundColor","zColor","zLabel","zLegend","zTooltip","zXLinearAxis","zYLinearAxis","zCrosshairLine","zTheme","zPointStyle","zAnnotationPoint","zAnnotationVerticalLine","zAnnotationHorizontalLine","zAnnotationArea","zLocale"],"mappings":";;;AAwBO,MAAMA,WAAWC,EAAE,MAAM,CAAC;IAC/B,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,iBAAiBC,iBAAiB,OAAO;IACzC,MAAMN,EAAE,MAAM,GAAG,EAAE,CAACA,EAAE,KAAK,CAACA,EAAE,MAAM,KAAK,OAAO;IAChD,WAAWA,EAAE,MAAM,GAAG,EAAE,CAACA,EAAE,KAAK,CAACA,EAAE,MAAM,KAAK,OAAO;IACrD,OAAOO,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,OAAOC,OAAO,OAAO;IACrB,YAAYd,EAAE,KAAK,CAACe,aAAa,EAAE,CAACA,aAAa,OAAO;IACxD,iBAAiBf,EAAE,KAAK,CAACgB,kBAAkB,EAAE,CAACA,kBAAkB,OAAO;IACvE,wBAAwBhB,EAAE,KAAK,CAACiB,yBAAyB,EAAE,CAACA,yBAAyB,OAAO;IAC5F,0BAA0BjB,EAAE,KAAK,CAACkB,2BAA2B,EAAE,CAACA,2BAA2B,OAAO;IAClG,gBAAgBlB,EAAE,KAAK,CAACmB,iBAAiB,EAAE,CAACA,iBAAiB,OAAO;IACpE,QAAQC,QAAQ,OAAO;AACzB"}
1
+ {"version":3,"file":"types/chartType/scatter/zScatter.js","sources":["webpack://@visactor/vseed/./src/types/chartType/scatter/zScatter.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zLocale } from '../../i18n'\nimport {\n zAnnotationArea,\n zAnnotationHorizontalLine,\n zAnnotationPoint,\n zAnnotationVerticalLine,\n zBackgroundColor,\n zColor,\n zCrosshairLine,\n zDataset,\n zDimensions,\n zEncoding,\n zLabel,\n zLegend,\n zLinearRegressionLine,\n zLogisticRegressionLine,\n zLowessRegressionLine,\n zMeasureTree,\n zPointStyle,\n zPolynomialRegressionLine,\n zScatterMeasures,\n zTheme,\n zTooltip,\n zXLinearAxis,\n zYLinearAxis,\n} from '../../properties'\n\nexport const zScatter = z.object({\n chartType: z.literal('scatter'),\n dataset: zDataset.nullish(),\n encoding: zEncoding.nullish(),\n dimensions: zDimensions.nullish(),\n measures: zMeasureTree.nullish(),\n scatterMeasures: zScatterMeasures.nullish(),\n backgroundColor: zBackgroundColor.nullish(),\n size: z.number().or(z.array(z.number())).nullish(),\n sizeRange: z.number().or(z.array(z.number())).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 crosshairLine: zCrosshairLine.nullish(),\n theme: zTheme.nullish(),\n pointStyle: z.array(zPointStyle).or(zPointStyle).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 linearRegressionLine: z.array(zLinearRegressionLine).or(zLinearRegressionLine).or(z.boolean()).nullish(),\n lowessRegressionLine: z.array(zLowessRegressionLine).or(zLowessRegressionLine).or(z.boolean()).nullish(),\n polynomialRegressionLine: z.array(zPolynomialRegressionLine).or(zPolynomialRegressionLine).or(z.boolean()).nullish(),\n logisticRegressionLine: z.array(zLogisticRegressionLine).or(zLogisticRegressionLine).or(z.boolean()).nullish(),\n locale: zLocale.nullish(),\n})\n"],"names":["zScatter","z","zDataset","zEncoding","zDimensions","zMeasureTree","zScatterMeasures","zBackgroundColor","zColor","zLabel","zLegend","zTooltip","zXLinearAxis","zYLinearAxis","zCrosshairLine","zTheme","zPointStyle","zAnnotationPoint","zAnnotationVerticalLine","zAnnotationHorizontalLine","zAnnotationArea","zLinearRegressionLine","zLowessRegressionLine","zPolynomialRegressionLine","zLogisticRegressionLine","zLocale"],"mappings":";;;AA4BO,MAAMA,WAAWC,EAAE,MAAM,CAAC;IAC/B,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,iBAAiBC,iBAAiB,OAAO;IACzC,MAAMN,EAAE,MAAM,GAAG,EAAE,CAACA,EAAE,KAAK,CAACA,EAAE,MAAM,KAAK,OAAO;IAChD,WAAWA,EAAE,MAAM,GAAG,EAAE,CAACA,EAAE,KAAK,CAACA,EAAE,MAAM,KAAK,OAAO;IACrD,OAAOO,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,OAAOC,OAAO,OAAO;IACrB,YAAYd,EAAE,KAAK,CAACe,aAAa,EAAE,CAACA,aAAa,OAAO;IACxD,iBAAiBf,EAAE,KAAK,CAACgB,kBAAkB,EAAE,CAACA,kBAAkB,OAAO;IACvE,wBAAwBhB,EAAE,KAAK,CAACiB,yBAAyB,EAAE,CAACA,yBAAyB,OAAO;IAC5F,0BAA0BjB,EAAE,KAAK,CAACkB,2BAA2B,EAAE,CAACA,2BAA2B,OAAO;IAClG,gBAAgBlB,EAAE,KAAK,CAACmB,iBAAiB,EAAE,CAACA,iBAAiB,OAAO;IACpE,sBAAsBnB,EAAE,KAAK,CAACoB,uBAAuB,EAAE,CAACA,uBAAuB,EAAE,CAACpB,EAAE,OAAO,IAAI,OAAO;IACtG,sBAAsBA,EAAE,KAAK,CAACqB,uBAAuB,EAAE,CAACA,uBAAuB,EAAE,CAACrB,EAAE,OAAO,IAAI,OAAO;IACtG,0BAA0BA,EAAE,KAAK,CAACsB,2BAA2B,EAAE,CAACA,2BAA2B,EAAE,CAACtB,EAAE,OAAO,IAAI,OAAO;IAClH,wBAAwBA,EAAE,KAAK,CAACuB,yBAAyB,EAAE,CAACA,yBAAyB,EAAE,CAACvB,EAAE,OAAO,IAAI,OAAO;IAC5G,QAAQwB,QAAQ,OAAO;AACzB"}
@@ -108,4 +108,17 @@ export type AnnotationHorizontalLine = {
108
108
  * @example 'solid'
109
109
  */
110
110
  lineStyle?: 'solid' | 'dashed' | 'dotted';
111
+ /**
112
+ * 是否开启将主线分隔成两段的功能
113
+ */
114
+ splitLine?: boolean | {
115
+ /**
116
+ * 大于标注值的部分,对应的主色
117
+ */
118
+ positiveColor?: string;
119
+ /**
120
+ * 小于标注值的部分,对应的主色
121
+ */
122
+ negativeColor?: string;
123
+ };
111
124
  };
@@ -238,6 +238,9 @@ export declare const zAreaConfig: z.ZodObject<{
238
238
  frameCornerRadius: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
239
239
  minChartWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
240
240
  minChartHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
241
+ titleFontColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
242
+ titleFontSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
243
+ titleFontWeight: z.ZodOptional<z.ZodNullable<z.ZodString>>;
241
244
  }, z.core.$strip>>>;
242
245
  annotation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
243
246
  annotationPoint: z.ZodOptional<z.ZodNullable<z.ZodObject<{
@@ -564,6 +567,9 @@ export declare const zAreaPercentConfig: z.ZodObject<{
564
567
  frameCornerRadius: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
565
568
  minChartWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
566
569
  minChartHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
570
+ titleFontColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
571
+ titleFontSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
572
+ titleFontWeight: z.ZodOptional<z.ZodNullable<z.ZodString>>;
567
573
  }, z.core.$strip>>>;
568
574
  annotation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
569
575
  annotationPoint: z.ZodOptional<z.ZodNullable<z.ZodObject<{
@@ -238,6 +238,9 @@ export declare const zBarConfig: z.ZodObject<{
238
238
  frameCornerRadius: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
239
239
  minChartWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
240
240
  minChartHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
241
+ titleFontColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
242
+ titleFontSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
243
+ titleFontWeight: z.ZodOptional<z.ZodNullable<z.ZodString>>;
241
244
  }, z.core.$strip>>>;
242
245
  annotation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
243
246
  annotationPoint: z.ZodOptional<z.ZodNullable<z.ZodObject<{
@@ -564,6 +567,9 @@ export declare const zBarParallelConfig: z.ZodObject<{
564
567
  frameCornerRadius: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
565
568
  minChartWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
566
569
  minChartHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
570
+ titleFontColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
571
+ titleFontSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
572
+ titleFontWeight: z.ZodOptional<z.ZodNullable<z.ZodString>>;
567
573
  }, z.core.$strip>>>;
568
574
  annotation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
569
575
  annotationPoint: z.ZodOptional<z.ZodNullable<z.ZodObject<{
@@ -890,6 +896,9 @@ export declare const zBarPercentConfig: z.ZodObject<{
890
896
  frameCornerRadius: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
891
897
  minChartWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
892
898
  minChartHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
899
+ titleFontColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
900
+ titleFontSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
901
+ titleFontWeight: z.ZodOptional<z.ZodNullable<z.ZodString>>;
893
902
  }, z.core.$strip>>>;
894
903
  annotation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
895
904
  annotationPoint: z.ZodOptional<z.ZodNullable<z.ZodObject<{
@@ -237,6 +237,9 @@ export declare const zBoxplotConfig: z.ZodObject<{
237
237
  frameCornerRadius: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
238
238
  minChartWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
239
239
  minChartHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
240
+ titleFontColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
241
+ titleFontSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
242
+ titleFontWeight: z.ZodOptional<z.ZodNullable<z.ZodString>>;
240
243
  }, z.core.$strip>>>;
241
244
  annotation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
242
245
  annotationPoint: z.ZodOptional<z.ZodNullable<z.ZodObject<{
@@ -27,4 +27,12 @@ export type Color = {
27
27
  * }
28
28
  */
29
29
  colorMapping?: Record<string, string>;
30
+ /**
31
+ * @description 正负颜色配置, 用于定义图表中正值的颜色
32
+ */
33
+ positiveColor?: string;
34
+ /**
35
+ * @description 正负颜色配置, 用于定义图表中负值的颜色
36
+ */
37
+ negativeColor?: string;
30
38
  };
@@ -1 +1 @@
1
- {"version":3,"file":"types/properties/config/color/color.js","sources":["webpack://@visactor/vseed/./src/types/properties/config/color/color.ts"],"sourcesContent":["import { z } from 'zod'\n\nexport const zColor = z.object({\n colorScheme: z.array(z.string()).nullish(),\n linearColorScheme: z.array(z.string()).nullish(),\n colorMapping: z.record(z.string(), z.string()).nullish(),\n})\n\nexport const zLinearColor = z.object({\n linearColorScheme: z.array(z.string()).nullish(),\n})\n\nexport type Color = {\n /**\n * @description 离散颜色配色方案, 颜色配色方案用于定义图表中不同元素的颜色\n * @example ['#FFCDD2,#F8BBD0,#E1BEE7,#D1C4E9,#C5CAE9,#BBDEFB,#B3E5FC,#B2EBF2,#B2DFDB,#C8E6C9,#DCEDC8,#F0F4C3,#FFF9C4,#FFECB3,#FFE0B2']\n */\n colorScheme?: string[]\n /**\n * @description 线性渐变颜色配色方案, 线性渐变颜色配色方案用于定义图表中不同元素的颜色\n * @example ['#FFCDD2, #F8BBD0]\n */\n linearColorScheme?: string[]\n /**\n * @description 颜色映射, 颜色映射用于将数据值映射到具体的颜色\n * @example\n * {\n * 'profit': 'red',\n * 'sales': 'blue',\n * }\n */\n colorMapping?: Record<string, string>\n}\n"],"names":["zColor","z","zLinearColor"],"mappings":";AAEO,MAAMA,SAASC,EAAE,MAAM,CAAC;IAC7B,aAAaA,EAAE,KAAK,CAACA,EAAE,MAAM,IAAI,OAAO;IACxC,mBAAmBA,EAAE,KAAK,CAACA,EAAE,MAAM,IAAI,OAAO;IAC9C,cAAcA,EAAE,MAAM,CAACA,EAAE,MAAM,IAAIA,EAAE,MAAM,IAAI,OAAO;AACxD;AAEO,MAAMC,eAAeD,EAAE,MAAM,CAAC;IACnC,mBAAmBA,EAAE,KAAK,CAACA,EAAE,MAAM,IAAI,OAAO;AAChD"}
1
+ {"version":3,"file":"types/properties/config/color/color.js","sources":["webpack://@visactor/vseed/./src/types/properties/config/color/color.ts"],"sourcesContent":["import { z } from 'zod'\n\nexport const zColor = z.object({\n colorScheme: z.array(z.string()).nullish(),\n linearColorScheme: z.array(z.string()).nullish(),\n colorMapping: z.record(z.string(), z.string()).nullish(),\n})\n\nexport const zLinearColor = z.object({\n linearColorScheme: z.array(z.string()).nullish(),\n})\n\nexport type Color = {\n /**\n * @description 离散颜色配色方案, 颜色配色方案用于定义图表中不同元素的颜色\n * @example ['#FFCDD2,#F8BBD0,#E1BEE7,#D1C4E9,#C5CAE9,#BBDEFB,#B3E5FC,#B2EBF2,#B2DFDB,#C8E6C9,#DCEDC8,#F0F4C3,#FFF9C4,#FFECB3,#FFE0B2']\n */\n colorScheme?: string[]\n /**\n * @description 线性渐变颜色配色方案, 线性渐变颜色配色方案用于定义图表中不同元素的颜色\n * @example ['#FFCDD2, #F8BBD0]\n */\n linearColorScheme?: string[]\n /**\n * @description 颜色映射, 颜色映射用于将数据值映射到具体的颜色\n * @example\n * {\n * 'profit': 'red',\n * 'sales': 'blue',\n * }\n */\n colorMapping?: Record<string, string>\n /**\n * @description 正负颜色配置, 用于定义图表中正值的颜色\n */\n positiveColor?: string\n /**\n * @description 正负颜色配置, 用于定义图表中负值的颜色\n */\n negativeColor?: string\n}\n"],"names":["zColor","z","zLinearColor"],"mappings":";AAEO,MAAMA,SAASC,EAAE,MAAM,CAAC;IAC7B,aAAaA,EAAE,KAAK,CAACA,EAAE,MAAM,IAAI,OAAO;IACxC,mBAAmBA,EAAE,KAAK,CAACA,EAAE,MAAM,IAAI,OAAO;IAC9C,cAAcA,EAAE,MAAM,CAACA,EAAE,MAAM,IAAIA,EAAE,MAAM,IAAI,OAAO;AACxD;AAEO,MAAMC,eAAeD,EAAE,MAAM,CAAC;IACnC,mBAAmBA,EAAE,KAAK,CAACA,EAAE,MAAM,IAAI,OAAO;AAChD"}