@visactor/vseed 0.3.2 → 0.3.3

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 (271) 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 +1176 -0
  4. package/dist/esm/dataReshape/dataReshapeByEncoding.d.ts +1 -1
  5. package/dist/esm/dataReshape/dataReshapeByEncoding.js.map +1 -1
  6. package/dist/esm/dataReshape/foldMeasures.js +12 -11
  7. package/dist/esm/dataReshape/foldMeasures.js.map +1 -1
  8. package/dist/esm/pipeline/advanced/chart/pipeline/scatter.js +3 -1
  9. package/dist/esm/pipeline/advanced/chart/pipeline/scatter.js.map +1 -1
  10. package/dist/esm/pipeline/advanced/chart/pipes/config/column.js +1 -0
  11. package/dist/esm/pipeline/advanced/chart/pipes/config/column.js.map +1 -1
  12. package/dist/esm/pipeline/advanced/chart/pipes/config/heatmap.d.ts +2 -0
  13. package/dist/esm/pipeline/advanced/chart/pipes/config/heatmap.js +31 -0
  14. package/dist/esm/pipeline/advanced/chart/pipes/config/heatmap.js.map +1 -0
  15. package/dist/esm/pipeline/advanced/chart/pipes/config/histogram.js +1 -0
  16. package/dist/esm/pipeline/advanced/chart/pipes/config/histogram.js.map +1 -1
  17. package/dist/esm/pipeline/advanced/chart/pipes/config/index.d.ts +2 -2
  18. package/dist/esm/pipeline/advanced/chart/pipes/config/index.js +1 -1
  19. package/dist/esm/pipeline/advanced/chart/pipes/config/index.js.map +1 -1
  20. package/dist/esm/pipeline/advanced/chart/pipes/config/line.js +1 -0
  21. package/dist/esm/pipeline/advanced/chart/pipes/config/line.js.map +1 -1
  22. package/dist/esm/pipeline/advanced/chart/pipes/config/pie.js +2 -1
  23. package/dist/esm/pipeline/advanced/chart/pipes/config/pie.js.map +1 -1
  24. package/dist/esm/pipeline/advanced/chart/pipes/config/scatter.js +1 -0
  25. package/dist/esm/pipeline/advanced/chart/pipes/config/scatter.js.map +1 -1
  26. package/dist/esm/pipeline/advanced/chart/pipes/dimensions/addPivotDimensionsForScatter.d.ts +2 -0
  27. package/dist/esm/pipeline/advanced/chart/pipes/dimensions/addPivotDimensionsForScatter.js +29 -0
  28. package/dist/esm/pipeline/advanced/chart/pipes/dimensions/addPivotDimensionsForScatter.js.map +1 -0
  29. package/dist/esm/pipeline/advanced/chart/pipes/dimensions/index.d.ts +1 -0
  30. package/dist/esm/pipeline/advanced/chart/pipes/dimensions/index.js +1 -0
  31. package/dist/esm/pipeline/advanced/chart/pipes/encoding/heatmap.js +2 -6
  32. package/dist/esm/pipeline/advanced/chart/pipes/encoding/heatmap.js.map +1 -1
  33. package/dist/esm/pipeline/advanced/chart/pipes/encoding/scatter.js +13 -4
  34. package/dist/esm/pipeline/advanced/chart/pipes/encoding/scatter.js.map +1 -1
  35. package/dist/esm/pipeline/advanced/chart/pipes/measures/buildMeasuresForScatter.js +16 -24
  36. package/dist/esm/pipeline/advanced/chart/pipes/measures/buildMeasuresForScatter.js.map +1 -1
  37. package/dist/esm/pipeline/advanced/chart/pipes/reshape/pivotReshapeWithBoxplotEncoding.js.map +1 -1
  38. package/dist/esm/pipeline/advanced/chart/pipes/reshape/pivotReshapeWithEncoding.js.map +1 -1
  39. package/dist/esm/pipeline/advanced/chart/pipes/reshape/pivotReshapeWithHistogramEncoding.js +2 -1
  40. package/dist/esm/pipeline/advanced/chart/pipes/reshape/pivotReshapeWithHistogramEncoding.js.map +1 -1
  41. package/dist/esm/pipeline/advanced/chart/pipes/reshape/pivotReshapeWithScatterEncoding.js +10 -6
  42. package/dist/esm/pipeline/advanced/chart/pipes/reshape/pivotReshapeWithScatterEncoding.js.map +1 -1
  43. package/dist/esm/pipeline/advanced/chart/pipes/reshape/reshapeWithBoxplotEncoding.js.map +1 -1
  44. package/dist/esm/pipeline/advanced/chart/pipes/reshape/reshapeWithDualEncoding.js +5 -2
  45. package/dist/esm/pipeline/advanced/chart/pipes/reshape/reshapeWithDualEncoding.js.map +1 -1
  46. package/dist/esm/pipeline/advanced/chart/pipes/reshape/reshapeWithEncoding.js +4 -2
  47. package/dist/esm/pipeline/advanced/chart/pipes/reshape/reshapeWithEncoding.js.map +1 -1
  48. package/dist/esm/pipeline/advanced/chart/pipes/reshape/reshapeWithHistogramEncoding.js +2 -1
  49. package/dist/esm/pipeline/advanced/chart/pipes/reshape/reshapeWithHistogramEncoding.js.map +1 -1
  50. package/dist/esm/pipeline/advanced/chart/pipes/reshape/reshapeWithScatterEncoding.js +5 -2
  51. package/dist/esm/pipeline/advanced/chart/pipes/reshape/reshapeWithScatterEncoding.js.map +1 -1
  52. package/dist/esm/pipeline/advanced/table/pipes/default/defaultDimensions.js.map +1 -1
  53. package/dist/esm/pipeline/advanced/table/pipes/default/defaultMeasures.js.map +1 -1
  54. package/dist/esm/pipeline/spec/chart/pipeline/area.js +3 -1
  55. package/dist/esm/pipeline/spec/chart/pipeline/area.js.map +1 -1
  56. package/dist/esm/pipeline/spec/chart/pipeline/areaPercent.js +3 -1
  57. package/dist/esm/pipeline/spec/chart/pipeline/areaPercent.js.map +1 -1
  58. package/dist/esm/pipeline/spec/chart/pipeline/bar.js +3 -1
  59. package/dist/esm/pipeline/spec/chart/pipeline/bar.js.map +1 -1
  60. package/dist/esm/pipeline/spec/chart/pipeline/barParallel.js +3 -1
  61. package/dist/esm/pipeline/spec/chart/pipeline/barParallel.js.map +1 -1
  62. package/dist/esm/pipeline/spec/chart/pipeline/barPercent.js +3 -1
  63. package/dist/esm/pipeline/spec/chart/pipeline/barPercent.js.map +1 -1
  64. package/dist/esm/pipeline/spec/chart/pipeline/column.js +3 -1
  65. package/dist/esm/pipeline/spec/chart/pipeline/column.js.map +1 -1
  66. package/dist/esm/pipeline/spec/chart/pipeline/columnParallel.js +3 -1
  67. package/dist/esm/pipeline/spec/chart/pipeline/columnParallel.js.map +1 -1
  68. package/dist/esm/pipeline/spec/chart/pipeline/columnPercent.js +3 -1
  69. package/dist/esm/pipeline/spec/chart/pipeline/columnPercent.js.map +1 -1
  70. package/dist/esm/pipeline/spec/chart/pipeline/donut.js +3 -1
  71. package/dist/esm/pipeline/spec/chart/pipeline/donut.js.map +1 -1
  72. package/dist/esm/pipeline/spec/chart/pipeline/funnel.js +3 -2
  73. package/dist/esm/pipeline/spec/chart/pipeline/funnel.js.map +1 -1
  74. package/dist/esm/pipeline/spec/chart/pipeline/heatmap.js +8 -5
  75. package/dist/esm/pipeline/spec/chart/pipeline/heatmap.js.map +1 -1
  76. package/dist/esm/pipeline/spec/chart/pipeline/histogram.js +3 -1
  77. package/dist/esm/pipeline/spec/chart/pipeline/histogram.js.map +1 -1
  78. package/dist/esm/pipeline/spec/chart/pipeline/line.js +3 -1
  79. package/dist/esm/pipeline/spec/chart/pipeline/line.js.map +1 -1
  80. package/dist/esm/pipeline/spec/chart/pipeline/pie.js +3 -1
  81. package/dist/esm/pipeline/spec/chart/pipeline/pie.js.map +1 -1
  82. package/dist/esm/pipeline/spec/chart/pipeline/scatter.js +3 -1
  83. package/dist/esm/pipeline/spec/chart/pipeline/scatter.js.map +1 -1
  84. package/dist/esm/pipeline/spec/chart/pipes/brush/brush.d.ts +2 -0
  85. package/dist/esm/pipeline/spec/chart/pipes/brush/brush.js +37 -0
  86. package/dist/esm/pipeline/spec/chart/pipes/brush/brush.js.map +1 -0
  87. package/dist/esm/pipeline/spec/chart/pipes/brush/index.d.ts +1 -0
  88. package/dist/esm/pipeline/spec/chart/pipes/brush/index.js +1 -0
  89. package/dist/esm/pipeline/spec/chart/pipes/color/colorAdapter.js +3 -3
  90. package/dist/esm/pipeline/spec/chart/pipes/color/colorAdapter.js.map +1 -1
  91. package/dist/esm/pipeline/spec/chart/pipes/color/index.d.ts +0 -1
  92. package/dist/esm/pipeline/spec/chart/pipes/color/index.js +1 -2
  93. package/dist/esm/pipeline/spec/chart/pipes/index.d.ts +1 -0
  94. package/dist/esm/pipeline/spec/chart/pipes/index.js +1 -0
  95. package/dist/esm/pipeline/spec/chart/pipes/label/label.d.ts +1 -0
  96. package/dist/esm/pipeline/spec/chart/pipes/label/label.js +2 -0
  97. package/dist/esm/pipeline/spec/chart/pipes/label/label.js.map +1 -1
  98. package/dist/esm/pipeline/spec/chart/pipes/legend/pivotColorLegend.js +2 -2
  99. package/dist/esm/pipeline/spec/chart/pipes/legend/pivotColorLegend.js.map +1 -1
  100. package/dist/esm/pipeline/spec/chart/pipes/markStyle/cellStyle.js +17 -8
  101. package/dist/esm/pipeline/spec/chart/pipes/markStyle/cellStyle.js.map +1 -1
  102. package/dist/esm/pipeline/spec/chart/pipes/pivotChart/heatmapColorDomain.d.ts +2 -0
  103. package/dist/esm/pipeline/spec/chart/pipes/pivotChart/heatmapColorDomain.js +18 -0
  104. package/dist/esm/pipeline/spec/chart/pipes/pivotChart/heatmapColorDomain.js.map +1 -0
  105. package/dist/esm/pipeline/spec/chart/pipes/pivotChart/index.d.ts +1 -0
  106. package/dist/esm/pipeline/spec/chart/pipes/pivotChart/index.js +2 -1
  107. package/dist/esm/pipeline/spec/chart/pipes/pivotChart/pivotAxisStyle.js +13 -7
  108. package/dist/esm/pipeline/spec/chart/pipes/pivotChart/pivotAxisStyle.js.map +1 -1
  109. package/dist/esm/pipeline/spec/chart/pipes/pivotChart/pivotColumnDimensions.js +12 -3
  110. package/dist/esm/pipeline/spec/chart/pipes/pivotChart/pivotColumnDimensions.js.map +1 -1
  111. package/dist/esm/pipeline/spec/chart/pipes/pivotChart/pivotGridStyle.js +2 -2
  112. package/dist/esm/pipeline/spec/chart/pipes/pivotChart/pivotGridStyle.js.map +1 -1
  113. package/dist/esm/pipeline/spec/chart/pipes/pivotChart/pivotIndicators.js.map +1 -1
  114. package/dist/esm/pipeline/spec/chart/pipes/pivotChart/pivotRowDimensions.js +12 -3
  115. package/dist/esm/pipeline/spec/chart/pipes/pivotChart/pivotRowDimensions.js.map +1 -1
  116. package/dist/esm/pipeline/spec/chart/pipes/pivotChart/pivotTitle.js +4 -2
  117. package/dist/esm/pipeline/spec/chart/pipes/pivotChart/pivotTitle.js.map +1 -1
  118. package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltip.d.ts +1 -1
  119. package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltip.js +8 -7
  120. package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltip.js.map +1 -1
  121. package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltipDualAxis.js +1 -1
  122. package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltipDualAxis.js.map +1 -1
  123. package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltipScatter.d.ts +1 -1
  124. package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltipScatter.js +9 -2
  125. package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltipScatter.js.map +1 -1
  126. package/dist/esm/pipeline/utils/chatType.js +24 -4
  127. package/dist/esm/pipeline/utils/chatType.js.map +1 -1
  128. package/dist/esm/pipeline/utils/measures/typeGuard.d.ts +1 -1
  129. package/dist/esm/pipeline/utils/measures/typeGuard.js +30 -6
  130. package/dist/esm/pipeline/utils/measures/typeGuard.js.map +1 -1
  131. package/dist/esm/theme/common/brush.d.ts +3 -0
  132. package/dist/esm/theme/common/brush.js +21 -0
  133. package/dist/esm/theme/common/brush.js.map +1 -0
  134. package/dist/esm/theme/common/heatmapCell.js +4 -2
  135. package/dist/esm/theme/common/heatmapCell.js.map +1 -1
  136. package/dist/esm/theme/common/index.d.ts +1 -0
  137. package/dist/esm/theme/common/index.js +1 -0
  138. package/dist/esm/theme/common/label.d.ts +18 -0
  139. package/dist/esm/theme/common/label.js +9 -1
  140. package/dist/esm/theme/common/label.js.map +1 -1
  141. package/dist/esm/theme/dark/dark.js +4 -2
  142. package/dist/esm/theme/dark/dark.js.map +1 -1
  143. package/dist/esm/theme/light/light.js +4 -2
  144. package/dist/esm/theme/light/light.js.map +1 -1
  145. package/dist/esm/types/advancedVSeed.d.ts +392 -0
  146. package/dist/esm/types/chartType/area/area.d.ts +6 -1
  147. package/dist/esm/types/chartType/area/zArea.d.ts +4 -0
  148. package/dist/esm/types/chartType/area/zArea.js +2 -1
  149. package/dist/esm/types/chartType/area/zArea.js.map +1 -1
  150. package/dist/esm/types/chartType/areaPercent/areaPercent.d.ts +6 -1
  151. package/dist/esm/types/chartType/areaPercent/zAreaPercent.d.ts +4 -0
  152. package/dist/esm/types/chartType/areaPercent/zAreaPercent.js +2 -1
  153. package/dist/esm/types/chartType/areaPercent/zAreaPercent.js.map +1 -1
  154. package/dist/esm/types/chartType/bar/bar.d.ts +6 -1
  155. package/dist/esm/types/chartType/bar/zBar.d.ts +4 -0
  156. package/dist/esm/types/chartType/bar/zBar.js +2 -1
  157. package/dist/esm/types/chartType/bar/zBar.js.map +1 -1
  158. package/dist/esm/types/chartType/barParallel/barParallel.d.ts +6 -1
  159. package/dist/esm/types/chartType/barParallel/zBarParallel.d.ts +4 -0
  160. package/dist/esm/types/chartType/barParallel/zBarParallel.js +2 -1
  161. package/dist/esm/types/chartType/barParallel/zBarParallel.js.map +1 -1
  162. package/dist/esm/types/chartType/barPercent/barPercent.d.ts +6 -1
  163. package/dist/esm/types/chartType/barPercent/zBarPercent.d.ts +4 -0
  164. package/dist/esm/types/chartType/barPercent/zBarPercent.js +2 -1
  165. package/dist/esm/types/chartType/barPercent/zBarPercent.js.map +1 -1
  166. package/dist/esm/types/chartType/boxPlot/boxPlot.d.ts +6 -1
  167. package/dist/esm/types/chartType/boxPlot/zBoxPlot.d.ts +4 -0
  168. package/dist/esm/types/chartType/boxPlot/zBoxPlot.js +2 -1
  169. package/dist/esm/types/chartType/boxPlot/zBoxPlot.js.map +1 -1
  170. package/dist/esm/types/chartType/column/column.d.ts +6 -1
  171. package/dist/esm/types/chartType/column/zColumn.d.ts +4 -0
  172. package/dist/esm/types/chartType/column/zColumn.js +2 -1
  173. package/dist/esm/types/chartType/column/zColumn.js.map +1 -1
  174. package/dist/esm/types/chartType/columnParallel/columnParallel.d.ts +6 -1
  175. package/dist/esm/types/chartType/columnParallel/zColumnParallel.d.ts +4 -0
  176. package/dist/esm/types/chartType/columnParallel/zColumnParallel.js +2 -1
  177. package/dist/esm/types/chartType/columnParallel/zColumnParallel.js.map +1 -1
  178. package/dist/esm/types/chartType/columnPercent/columnPercent.d.ts +6 -1
  179. package/dist/esm/types/chartType/columnPercent/zColumnPercent.d.ts +4 -0
  180. package/dist/esm/types/chartType/columnPercent/zColumnPercent.js +2 -1
  181. package/dist/esm/types/chartType/columnPercent/zColumnPercent.js.map +1 -1
  182. package/dist/esm/types/chartType/donut/donut.d.ts +6 -0
  183. package/dist/esm/types/chartType/donut/zDonut.d.ts +4 -0
  184. package/dist/esm/types/chartType/donut/zDonut.js +2 -1
  185. package/dist/esm/types/chartType/donut/zDonut.js.map +1 -1
  186. package/dist/esm/types/chartType/dualAxis/dualAxis.d.ts +6 -1
  187. package/dist/esm/types/chartType/dualAxis/zDualAxis.d.ts +4 -0
  188. package/dist/esm/types/chartType/dualAxis/zDualAxis.js +2 -1
  189. package/dist/esm/types/chartType/dualAxis/zDualAxis.js.map +1 -1
  190. package/dist/esm/types/chartType/funnel/funnel.d.ts +6 -0
  191. package/dist/esm/types/chartType/funnel/zFunnel.d.ts +4 -0
  192. package/dist/esm/types/chartType/funnel/zFunnel.js +2 -1
  193. package/dist/esm/types/chartType/funnel/zFunnel.js.map +1 -1
  194. package/dist/esm/types/chartType/heatmap/heatmap.d.ts +6 -0
  195. package/dist/esm/types/chartType/heatmap/zHeatmap.d.ts +4 -0
  196. package/dist/esm/types/chartType/heatmap/zHeatmap.js +2 -1
  197. package/dist/esm/types/chartType/heatmap/zHeatmap.js.map +1 -1
  198. package/dist/esm/types/chartType/histogram/histogram.d.ts +6 -1
  199. package/dist/esm/types/chartType/histogram/zHistogram.d.ts +4 -0
  200. package/dist/esm/types/chartType/histogram/zHistogram.js +2 -1
  201. package/dist/esm/types/chartType/histogram/zHistogram.js.map +1 -1
  202. package/dist/esm/types/chartType/line/line.d.ts +6 -1
  203. package/dist/esm/types/chartType/line/zLine.d.ts +4 -0
  204. package/dist/esm/types/chartType/line/zLine.js +2 -1
  205. package/dist/esm/types/chartType/line/zLine.js.map +1 -1
  206. package/dist/esm/types/chartType/pie/pie.d.ts +6 -0
  207. package/dist/esm/types/chartType/pie/zPie.d.ts +4 -0
  208. package/dist/esm/types/chartType/pie/zPie.js +2 -1
  209. package/dist/esm/types/chartType/pie/zPie.js.map +1 -1
  210. package/dist/esm/types/chartType/radar/radar.d.ts +6 -0
  211. package/dist/esm/types/chartType/radar/zRadar.d.ts +4 -0
  212. package/dist/esm/types/chartType/radar/zRadar.js +2 -1
  213. package/dist/esm/types/chartType/radar/zRadar.js.map +1 -1
  214. package/dist/esm/types/chartType/rose/rose.d.ts +6 -0
  215. package/dist/esm/types/chartType/rose/zRose.d.ts +4 -0
  216. package/dist/esm/types/chartType/rose/zRose.js +2 -1
  217. package/dist/esm/types/chartType/rose/zRose.js.map +1 -1
  218. package/dist/esm/types/chartType/roseParallel/roseParallel.d.ts +6 -0
  219. package/dist/esm/types/chartType/roseParallel/zRoseParallel.d.ts +4 -0
  220. package/dist/esm/types/chartType/roseParallel/zRoseParallel.js +2 -1
  221. package/dist/esm/types/chartType/roseParallel/zRoseParallel.js.map +1 -1
  222. package/dist/esm/types/chartType/scatter/scatter.d.ts +6 -1
  223. package/dist/esm/types/chartType/scatter/zScatter.d.ts +4 -0
  224. package/dist/esm/types/chartType/scatter/zScatter.js +2 -1
  225. package/dist/esm/types/chartType/scatter/zScatter.js.map +1 -1
  226. package/dist/esm/types/properties/brush/brush.d.ts +13 -0
  227. package/dist/esm/types/properties/brush/brush.js +0 -0
  228. package/dist/esm/types/properties/brush/index.d.ts +4 -0
  229. package/dist/esm/types/properties/brush/index.js +2 -0
  230. package/dist/esm/types/properties/brush/zBrush.d.ts +19 -0
  231. package/dist/esm/types/properties/brush/zBrush.js +21 -0
  232. package/dist/esm/types/properties/brush/zBrush.js.map +1 -0
  233. package/dist/esm/types/properties/config/area.d.ts +26 -0
  234. package/dist/esm/types/properties/config/area.js +3 -1
  235. package/dist/esm/types/properties/config/area.js.map +1 -1
  236. package/dist/esm/types/properties/config/bar.d.ts +39 -0
  237. package/dist/esm/types/properties/config/bar.js +3 -1
  238. package/dist/esm/types/properties/config/bar.js.map +1 -1
  239. package/dist/esm/types/properties/config/column.d.ts +39 -0
  240. package/dist/esm/types/properties/config/column.js +3 -1
  241. package/dist/esm/types/properties/config/column.js.map +1 -1
  242. package/dist/esm/types/properties/config/config.d.ts +196 -0
  243. package/dist/esm/types/properties/config/heatmap/heatmap.d.ts +4 -0
  244. package/dist/esm/types/properties/config/heatmap/zHeatmap.d.ts +1 -0
  245. package/dist/esm/types/properties/config/heatmap/zHeatmap.js +2 -1
  246. package/dist/esm/types/properties/config/heatmap/zHeatmap.js.map +1 -1
  247. package/dist/esm/types/properties/config/heatmap.d.ts +14 -0
  248. package/dist/esm/types/properties/config/heatmap.js +3 -1
  249. package/dist/esm/types/properties/config/heatmap.js.map +1 -1
  250. package/dist/esm/types/properties/config/histogram.d.ts +13 -0
  251. package/dist/esm/types/properties/config/histogram.js +3 -1
  252. package/dist/esm/types/properties/config/histogram.js.map +1 -1
  253. package/dist/esm/types/properties/config/line.d.ts +13 -0
  254. package/dist/esm/types/properties/config/line.js +3 -1
  255. package/dist/esm/types/properties/config/line.js.map +1 -1
  256. package/dist/esm/types/properties/config/pie.d.ts +39 -0
  257. package/dist/esm/types/properties/config/pie.js +3 -1
  258. package/dist/esm/types/properties/config/pie.js.map +1 -1
  259. package/dist/esm/types/properties/config/scatter.d.ts +13 -0
  260. package/dist/esm/types/properties/config/scatter.js +3 -1
  261. package/dist/esm/types/properties/config/scatter.js.map +1 -1
  262. package/dist/esm/types/properties/index.d.ts +1 -0
  263. package/dist/esm/types/properties/index.js +1 -0
  264. package/dist/esm/types/properties/theme/customTheme.d.ts +392 -0
  265. package/dist/esm/types/zVseed.d.ts +80 -0
  266. package/dist/umd/index.js +456 -158
  267. package/dist/umd/index.js.map +1 -1
  268. package/package.json +3 -3
  269. package/dist/esm/pipeline/spec/chart/pipes/color/colorCellStyleFill.d.ts +0 -2
  270. package/dist/esm/pipeline/spec/chart/pipes/color/colorCellStyleFill.js +0 -17
  271. package/dist/esm/pipeline/spec/chart/pipes/color/colorCellStyleFill.js.map +0 -1
@@ -329,6 +329,10 @@ export declare const zDonut: z.ZodObject<{
329
329
  valueColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
330
330
  titleColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
331
331
  }, z.core.$strip>>>;
332
+ brush: z.ZodOptional<z.ZodNullable<z.ZodObject<{
333
+ enable: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
334
+ removeOnClick: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
335
+ }, z.core.$strip>>>;
332
336
  theme: z.ZodOptional<z.ZodNullable<z.ZodString>>;
333
337
  locale: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodEnum<{
334
338
  "zh-CN": "zh-CN";
@@ -1,6 +1,6 @@
1
1
  import { z } from "zod";
2
2
  import { zLocale } from "../../i18n/index.js";
3
- import { zBackgroundColor, zColor, zDataset, zDimensions, zEncoding, zLegend, zMeasures, zPieLabel, zTheme, zTooltip } from "../../properties/index.js";
3
+ import { zBackgroundColor, zBrush, zColor, zDataset, zDimensions, zEncoding, zLegend, zMeasures, zPieLabel, zTheme, zTooltip } from "../../properties/index.js";
4
4
  const zDonut = z.object({
5
5
  chartType: z.literal('donut'),
6
6
  dataset: zDataset.nullish(),
@@ -12,6 +12,7 @@ const zDonut = z.object({
12
12
  label: zPieLabel.nullish(),
13
13
  legend: zLegend.nullish(),
14
14
  tooltip: zTooltip.nullish(),
15
+ brush: zBrush.nullish(),
15
16
  theme: zTheme.nullish(),
16
17
  locale: zLocale.nullish()
17
18
  });
@@ -1 +1 @@
1
- {"version":3,"file":"types/chartType/donut/zDonut.js","sources":["webpack://@visactor/vseed/./src/types/chartType/donut/zDonut.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zLocale } from '../../i18n'\n\nimport {\n zBackgroundColor,\n zColor,\n zDataset,\n zDimensions,\n zEncoding,\n zLegend,\n zMeasures,\n zPieLabel,\n zTheme,\n zTooltip,\n} from '../../properties'\n\nexport const zDonut = z.object({\n chartType: z.literal('donut'),\n dataset: zDataset.nullish(),\n encoding: zEncoding.nullish(),\n dimensions: zDimensions.nullish(),\n measures: 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":["zDonut","z","zDataset","zEncoding","zDimensions","zMeasures","zBackgroundColor","zColor","zPieLabel","zLegend","zTooltip","zTheme","zLocale"],"mappings":";;;AAgBO,MAAMA,SAASC,EAAE,MAAM,CAAC;IAC7B,WAAWA,EAAE,OAAO,CAAC;IACrB,SAASC,SAAS,OAAO;IACzB,UAAUC,UAAU,OAAO;IAC3B,YAAYC,YAAY,OAAO;IAC/B,UAAUC,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
+ {"version":3,"file":"types/chartType/donut/zDonut.js","sources":["webpack://@visactor/vseed/./src/types/chartType/donut/zDonut.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zLocale } from '../../i18n'\n\nimport {\n zBackgroundColor,\n zColor,\n zDataset,\n zDimensions,\n zEncoding,\n zLegend,\n zMeasures,\n zPieLabel,\n zTheme,\n zTooltip,\n zBrush,\n} from '../../properties'\n\nexport const zDonut = z.object({\n chartType: z.literal('donut'),\n dataset: zDataset.nullish(),\n encoding: zEncoding.nullish(),\n dimensions: zDimensions.nullish(),\n measures: zMeasures.nullish(),\n backgroundColor: zBackgroundColor.nullish(),\n color: zColor.nullish(),\n label: zPieLabel.nullish(),\n legend: zLegend.nullish(),\n tooltip: zTooltip.nullish(),\n brush: zBrush.nullish(),\n theme: zTheme.nullish(),\n locale: zLocale.nullish(),\n})\n"],"names":["zDonut","z","zDataset","zEncoding","zDimensions","zMeasures","zBackgroundColor","zColor","zPieLabel","zLegend","zTooltip","zBrush","zTheme","zLocale"],"mappings":";;;AAiBO,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,UAAU,OAAO;IACxB,QAAQC,QAAQ,OAAO;IACvB,SAASC,SAAS,OAAO;IACzB,OAAOC,OAAO,OAAO;IACrB,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, AreaStyle, BackgroundColor, BarGapInGroup, BarMaxWidth, BarStyle, Color, CrosshairRect, Dataset, DimensionLinkage, DualAxisDimension, DualAxisMeasure, Label, Legend, LineStyle, PointStyle, Sort, SortLegend, Theme, Tooltip, XBandAxis, YLinearAxis } from '../../properties';
2
+ import type { AnnotationArea, AnnotationHorizontalLine, AnnotationPoint, AnnotationVerticalLine, AreaStyle, BackgroundColor, Brush, BarGapInGroup, BarMaxWidth, BarStyle, Color, CrosshairRect, Dataset, DimensionLinkage, DualAxisDimension, DualAxisMeasure, Label, Legend, LineStyle, PointStyle, Sort, SortLegend, Theme, Tooltip, XBandAxis, YLinearAxis } from '../../properties';
3
3
  /**
4
4
  * @description 双轴图,适用于展示两个不同量级或不同单位指标的对比关系,包含主坐标轴和次坐标轴
5
5
  * 适用场景:
@@ -90,6 +90,11 @@ export interface DualAxis {
90
90
  * @description 提示信息配置, 用于定义图表的提示信息, 包括提示信息的位置, 格式, 样式等.
91
91
  */
92
92
  tooltip?: Tooltip;
93
+ /**
94
+ * 框选
95
+ * @description 框选配置,用于开启/关闭 brush 框选能力
96
+ */
97
+ brush?: Brush;
93
98
  /**
94
99
  * 垂直提示框
95
100
  * @description 垂直提示框配置, 用于定义图表的垂直提示框, 包括垂直提示框的颜色、标签样式等.
@@ -610,6 +610,10 @@ export declare const zDualAxis: z.ZodObject<{
610
610
  valueColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
611
611
  titleColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
612
612
  }, z.core.$strip>>>;
613
+ brush: z.ZodOptional<z.ZodNullable<z.ZodObject<{
614
+ enable: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
615
+ removeOnClick: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
616
+ }, z.core.$strip>>>;
613
617
  crosshairRect: z.ZodOptional<z.ZodNullable<z.ZodObject<{
614
618
  visible: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
615
619
  rectColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1,6 +1,6 @@
1
1
  import { z } from "zod";
2
2
  import { zLocale } from "../../i18n/index.js";
3
- import { zAnnotationArea, zAnnotationHorizontalLine, zAnnotationPoint, zAnnotationVerticalLine, zAreaStyle, zBackgroundColor, zBarGapInGroup, zBarMaxWidth, zBarStyle, zColor, zCrosshairRect, zDataset, zDimensionLinkage, zDimensions, zDualMeasures, zLabel, zLegend, zLineStyle, zPointStyle, zSort, zSortLegend, zTheme, zTooltip, zXBandAxis, zYLinearAxis } from "../../properties/index.js";
3
+ import { zAnnotationArea, zAnnotationHorizontalLine, zAnnotationPoint, zAnnotationVerticalLine, zAreaStyle, zBackgroundColor, zBarGapInGroup, zBarMaxWidth, zBarStyle, zBrush, zColor, zCrosshairRect, zDataset, zDimensionLinkage, zDimensions, zDualMeasures, zLabel, zLegend, zLineStyle, zPointStyle, zSort, zSortLegend, zTheme, zTooltip, zXBandAxis, zYLinearAxis } from "../../properties/index.js";
4
4
  const zDualAxis = z.object({
5
5
  chartType: z.literal('dualAxis'),
6
6
  dataset: zDataset.nullish(),
@@ -15,6 +15,7 @@ const zDualAxis = z.object({
15
15
  label: zLabel.nullish(),
16
16
  legend: zLegend.nullish(),
17
17
  tooltip: zTooltip.nullish(),
18
+ brush: zBrush.nullish(),
18
19
  crosshairRect: zCrosshairRect.nullish(),
19
20
  sort: zSort.nullish(),
20
21
  sortLegend: zSortLegend.nullish(),
@@ -1 +1 @@
1
- {"version":3,"file":"types/chartType/dualAxis/zDualAxis.js","sources":["webpack://@visactor/vseed/./src/types/chartType/dualAxis/zDualAxis.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zLocale } from 'src/types/i18n'\nimport {\n zAnnotationArea,\n zAnnotationHorizontalLine,\n zAnnotationPoint,\n zAnnotationVerticalLine,\n zAreaStyle,\n zBackgroundColor,\n zBarGapInGroup,\n zBarMaxWidth,\n zBarStyle,\n zColor,\n zCrosshairRect,\n zDataset,\n zDimensionLinkage,\n zDimensions,\n zDualMeasures,\n zLabel,\n zLegend,\n zLineStyle,\n zPointStyle,\n zSort,\n zSortLegend,\n zTheme,\n zTooltip,\n zXBandAxis,\n zYLinearAxis,\n} from 'src/types/properties'\n\nexport const zDualAxis = z.object({\n chartType: z.literal('dualAxis'),\n\n dataset: zDataset.nullish(),\n dimensions: zDimensions.nullish(),\n measures: zDualMeasures.nullish(),\n\n alignTicks: z.array(z.boolean()).or(z.boolean()).nullish(),\n\n primaryYAxis: z.array(zYLinearAxis).or(zYLinearAxis).nullish(),\n secondaryYAxis: z.array(zYLinearAxis).or(zYLinearAxis).nullish(),\n xAxis: zXBandAxis.nullish(),\n\n backgroundColor: zBackgroundColor.nullish(),\n color: zColor.nullish(),\n label: zLabel.nullish(),\n legend: zLegend.nullish(),\n tooltip: zTooltip.nullish(),\n\n crosshairRect: zCrosshairRect.nullish(),\n sort: zSort.nullish(),\n sortLegend: zSortLegend.nullish(),\n theme: zTheme.nullish(),\n barMaxWidth: zBarMaxWidth.nullish(),\n barGapInGroup: zBarGapInGroup.nullish(),\n\n barStyle: z.array(zBarStyle).or(zBarStyle).nullish(),\n pointStyle: z.array(zPointStyle).or(zPointStyle).nullish(),\n lineStyle: z.array(zLineStyle).or(zLineStyle).nullish(),\n areaStyle: z.array(zAreaStyle).or(zAreaStyle).nullish(),\n\n annotationPoint: z.array(zAnnotationPoint).or(zAnnotationPoint).nullish(),\n annotationVerticalLine: z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).nullish(),\n annotationHorizontalLine: z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).nullish(),\n annotationArea: z.array(zAnnotationArea).or(zAnnotationArea).nullish(),\n dimensionLinkage: zDimensionLinkage.nullish(),\n\n locale: zLocale.nullish(),\n})\n"],"names":["zDualAxis","z","zDataset","zDimensions","zDualMeasures","zYLinearAxis","zXBandAxis","zBackgroundColor","zColor","zLabel","zLegend","zTooltip","zCrosshairRect","zSort","zSortLegend","zTheme","zBarMaxWidth","zBarGapInGroup","zBarStyle","zPointStyle","zLineStyle","zAreaStyle","zAnnotationPoint","zAnnotationVerticalLine","zAnnotationHorizontalLine","zAnnotationArea","zDimensionLinkage","zLocale"],"mappings":";;;AA8BO,MAAMA,YAAYC,EAAE,MAAM,CAAC;IAChC,WAAWA,EAAE,OAAO,CAAC;IAErB,SAASC,SAAS,OAAO;IACzB,YAAYC,YAAY,OAAO;IAC/B,UAAUC,cAAc,OAAO;IAE/B,YAAYH,EAAE,KAAK,CAACA,EAAE,OAAO,IAAI,EAAE,CAACA,EAAE,OAAO,IAAI,OAAO;IAExD,cAAcA,EAAE,KAAK,CAACI,cAAc,EAAE,CAACA,cAAc,OAAO;IAC5D,gBAAgBJ,EAAE,KAAK,CAACI,cAAc,EAAE,CAACA,cAAc,OAAO;IAC9D,OAAOC,WAAW,OAAO;IAEzB,iBAAiBC,iBAAiB,OAAO;IACzC,OAAOC,OAAO,OAAO;IACrB,OAAOC,OAAO,OAAO;IACrB,QAAQC,QAAQ,OAAO;IACvB,SAASC,SAAS,OAAO;IAEzB,eAAeC,eAAe,OAAO;IACrC,MAAMC,MAAM,OAAO;IACnB,YAAYC,YAAY,OAAO;IAC/B,OAAOC,OAAO,OAAO;IACrB,aAAaC,aAAa,OAAO;IACjC,eAAeC,eAAe,OAAO;IAErC,UAAUhB,EAAE,KAAK,CAACiB,WAAW,EAAE,CAACA,WAAW,OAAO;IAClD,YAAYjB,EAAE,KAAK,CAACkB,aAAa,EAAE,CAACA,aAAa,OAAO;IACxD,WAAWlB,EAAE,KAAK,CAACmB,YAAY,EAAE,CAACA,YAAY,OAAO;IACrD,WAAWnB,EAAE,KAAK,CAACoB,YAAY,EAAE,CAACA,YAAY,OAAO;IAErD,iBAAiBpB,EAAE,KAAK,CAACqB,kBAAkB,EAAE,CAACA,kBAAkB,OAAO;IACvE,wBAAwBrB,EAAE,KAAK,CAACsB,yBAAyB,EAAE,CAACA,yBAAyB,OAAO;IAC5F,0BAA0BtB,EAAE,KAAK,CAACuB,2BAA2B,EAAE,CAACA,2BAA2B,OAAO;IAClG,gBAAgBvB,EAAE,KAAK,CAACwB,iBAAiB,EAAE,CAACA,iBAAiB,OAAO;IACpE,kBAAkBC,kBAAkB,OAAO;IAE3C,QAAQC,QAAQ,OAAO;AACzB"}
1
+ {"version":3,"file":"types/chartType/dualAxis/zDualAxis.js","sources":["webpack://@visactor/vseed/./src/types/chartType/dualAxis/zDualAxis.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zLocale } from 'src/types/i18n'\nimport {\n zAnnotationArea,\n zAnnotationHorizontalLine,\n zAnnotationPoint,\n zAnnotationVerticalLine,\n zAreaStyle,\n zBackgroundColor,\n zBarGapInGroup,\n zBarMaxWidth,\n zBarStyle,\n zColor,\n zCrosshairRect,\n zDataset,\n zDimensionLinkage,\n zDimensions,\n zDualMeasures,\n zLabel,\n zLegend,\n zLineStyle,\n zPointStyle,\n zSort,\n zSortLegend,\n zTheme,\n zTooltip,\n zBrush,\n zXBandAxis,\n zYLinearAxis,\n} from 'src/types/properties'\n\nexport const zDualAxis = z.object({\n chartType: z.literal('dualAxis'),\n\n dataset: zDataset.nullish(),\n dimensions: zDimensions.nullish(),\n measures: zDualMeasures.nullish(),\n\n alignTicks: z.array(z.boolean()).or(z.boolean()).nullish(),\n\n primaryYAxis: z.array(zYLinearAxis).or(zYLinearAxis).nullish(),\n secondaryYAxis: z.array(zYLinearAxis).or(zYLinearAxis).nullish(),\n xAxis: zXBandAxis.nullish(),\n\n backgroundColor: zBackgroundColor.nullish(),\n color: zColor.nullish(),\n label: zLabel.nullish(),\n legend: zLegend.nullish(),\n tooltip: zTooltip.nullish(),\n brush: zBrush.nullish(),\n\n crosshairRect: zCrosshairRect.nullish(),\n sort: zSort.nullish(),\n sortLegend: zSortLegend.nullish(),\n theme: zTheme.nullish(),\n barMaxWidth: zBarMaxWidth.nullish(),\n barGapInGroup: zBarGapInGroup.nullish(),\n\n barStyle: z.array(zBarStyle).or(zBarStyle).nullish(),\n pointStyle: z.array(zPointStyle).or(zPointStyle).nullish(),\n lineStyle: z.array(zLineStyle).or(zLineStyle).nullish(),\n areaStyle: z.array(zAreaStyle).or(zAreaStyle).nullish(),\n\n annotationPoint: z.array(zAnnotationPoint).or(zAnnotationPoint).nullish(),\n annotationVerticalLine: z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).nullish(),\n annotationHorizontalLine: z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).nullish(),\n annotationArea: z.array(zAnnotationArea).or(zAnnotationArea).nullish(),\n dimensionLinkage: zDimensionLinkage.nullish(),\n\n locale: zLocale.nullish(),\n})\n"],"names":["zDualAxis","z","zDataset","zDimensions","zDualMeasures","zYLinearAxis","zXBandAxis","zBackgroundColor","zColor","zLabel","zLegend","zTooltip","zBrush","zCrosshairRect","zSort","zSortLegend","zTheme","zBarMaxWidth","zBarGapInGroup","zBarStyle","zPointStyle","zLineStyle","zAreaStyle","zAnnotationPoint","zAnnotationVerticalLine","zAnnotationHorizontalLine","zAnnotationArea","zDimensionLinkage","zLocale"],"mappings":";;;AA+BO,MAAMA,YAAYC,EAAE,MAAM,CAAC;IAChC,WAAWA,EAAE,OAAO,CAAC;IAErB,SAASC,SAAS,OAAO;IACzB,YAAYC,YAAY,OAAO;IAC/B,UAAUC,cAAc,OAAO;IAE/B,YAAYH,EAAE,KAAK,CAACA,EAAE,OAAO,IAAI,EAAE,CAACA,EAAE,OAAO,IAAI,OAAO;IAExD,cAAcA,EAAE,KAAK,CAACI,cAAc,EAAE,CAACA,cAAc,OAAO;IAC5D,gBAAgBJ,EAAE,KAAK,CAACI,cAAc,EAAE,CAACA,cAAc,OAAO;IAC9D,OAAOC,WAAW,OAAO;IAEzB,iBAAiBC,iBAAiB,OAAO;IACzC,OAAOC,OAAO,OAAO;IACrB,OAAOC,OAAO,OAAO;IACrB,QAAQC,QAAQ,OAAO;IACvB,SAASC,SAAS,OAAO;IACzB,OAAOC,OAAO,OAAO;IAErB,eAAeC,eAAe,OAAO;IACrC,MAAMC,MAAM,OAAO;IACnB,YAAYC,YAAY,OAAO;IAC/B,OAAOC,OAAO,OAAO;IACrB,aAAaC,aAAa,OAAO;IACjC,eAAeC,eAAe,OAAO;IAErC,UAAUjB,EAAE,KAAK,CAACkB,WAAW,EAAE,CAACA,WAAW,OAAO;IAClD,YAAYlB,EAAE,KAAK,CAACmB,aAAa,EAAE,CAACA,aAAa,OAAO;IACxD,WAAWnB,EAAE,KAAK,CAACoB,YAAY,EAAE,CAACA,YAAY,OAAO;IACrD,WAAWpB,EAAE,KAAK,CAACqB,YAAY,EAAE,CAACA,YAAY,OAAO;IAErD,iBAAiBrB,EAAE,KAAK,CAACsB,kBAAkB,EAAE,CAACA,kBAAkB,OAAO;IACvE,wBAAwBtB,EAAE,KAAK,CAACuB,yBAAyB,EAAE,CAACA,yBAAyB,OAAO;IAC5F,0BAA0BvB,EAAE,KAAK,CAACwB,2BAA2B,EAAE,CAACA,2BAA2B,OAAO;IAClG,gBAAgBxB,EAAE,KAAK,CAACyB,iBAAiB,EAAE,CAACA,iBAAiB,OAAO;IACpE,kBAAkBC,kBAAkB,OAAO;IAE3C,QAAQC,QAAQ,OAAO;AACzB"}
@@ -1,5 +1,6 @@
1
1
  import type { Locale } from '../../i18n';
2
2
  import type { BackgroundColor, Color, ColorLegend, Dataset, Label, FunnelDimension, FunnelMeasure, Theme, Tooltip } from '../../properties';
3
+ import type { Brush } from '../../properties';
3
4
  /**
4
5
  * @description 漏斗图,用于展示单一维度数据的占比关系
5
6
  * 适用场景:
@@ -73,6 +74,11 @@ export interface Funnel {
73
74
  * @description 提示信息配置, 用于定义图表的提示信息, 包括提示信息的位置, 格式, 样式等.
74
75
  */
75
76
  tooltip?: Tooltip;
77
+ /**
78
+ * 框选
79
+ * @description 框选配置,用于开启/关闭 brush 框选能力
80
+ */
81
+ brush?: Brush;
76
82
  /**
77
83
  * 图表的主题, 主题是优先级较低的功能配置, 包含所有图表类型共用的通用配置, 与单类图表类型共用的图表配置
78
84
  * @default light 默认为亮色主题
@@ -302,6 +302,10 @@ export declare const zFunnel: z.ZodObject<{
302
302
  valueColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
303
303
  titleColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
304
304
  }, z.core.$strip>>>;
305
+ brush: z.ZodOptional<z.ZodNullable<z.ZodObject<{
306
+ enable: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
307
+ removeOnClick: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
308
+ }, z.core.$strip>>>;
305
309
  theme: z.ZodOptional<z.ZodNullable<z.ZodString>>;
306
310
  locale: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodEnum<{
307
311
  "zh-CN": "zh-CN";
@@ -1,6 +1,6 @@
1
1
  import { z } from "zod";
2
2
  import { zLocale } from "../../i18n/index.js";
3
- import { zBackgroundColor, zColor, zColorLegend, zDataset, zDimensions, zEncoding, zLabel, zMeasures, zTheme, zTooltip } from "../../properties/index.js";
3
+ import { zBackgroundColor, zBrush, zColor, zColorLegend, zDataset, zDimensions, zEncoding, zLabel, zMeasures, zTheme, zTooltip } from "../../properties/index.js";
4
4
  const zFunnel = z.object({
5
5
  chartType: z.literal('funnel'),
6
6
  dataset: zDataset.nullish(),
@@ -12,6 +12,7 @@ const zFunnel = z.object({
12
12
  label: zLabel.nullish(),
13
13
  legend: zColorLegend.nullish(),
14
14
  tooltip: zTooltip.nullish(),
15
+ brush: zBrush.nullish(),
15
16
  theme: zTheme.nullish(),
16
17
  locale: zLocale.nullish()
17
18
  });
@@ -1 +1 @@
1
- {"version":3,"file":"types/chartType/funnel/zFunnel.js","sources":["webpack://@visactor/vseed/./src/types/chartType/funnel/zFunnel.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zLocale } from '../../i18n'\nimport {\n zBackgroundColor,\n zColor,\n zColorLegend,\n zDataset,\n zDimensions,\n zEncoding,\n zLabel,\n zMeasures,\n zTheme,\n zTooltip,\n} from '../../properties'\n\nexport const zFunnel = z.object({\n chartType: z.literal('funnel'),\n dataset: zDataset.nullish(),\n encoding: zEncoding.nullish(),\n dimensions: zDimensions.nullish(),\n measures: 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":["zFunnel","z","zDataset","zEncoding","zDimensions","zMeasures","zBackgroundColor","zColor","zLabel","zColorLegend","zTooltip","zTheme","zLocale"],"mappings":";;;AAeO,MAAMA,UAAUC,EAAE,MAAM,CAAC;IAC9B,WAAWA,EAAE,OAAO,CAAC;IACrB,SAASC,SAAS,OAAO;IACzB,UAAUC,UAAU,OAAO;IAC3B,YAAYC,YAAY,OAAO;IAC/B,UAAUC,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
+ {"version":3,"file":"types/chartType/funnel/zFunnel.js","sources":["webpack://@visactor/vseed/./src/types/chartType/funnel/zFunnel.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zLocale } from '../../i18n'\nimport {\n zBackgroundColor,\n zColor,\n zColorLegend,\n zDataset,\n zDimensions,\n zEncoding,\n zLabel,\n zMeasures,\n zTheme,\n zTooltip,\n zBrush,\n} from '../../properties'\n\nexport const zFunnel = z.object({\n chartType: z.literal('funnel'),\n dataset: zDataset.nullish(),\n encoding: zEncoding.nullish(),\n dimensions: zDimensions.nullish(),\n measures: zMeasures.nullish(),\n backgroundColor: zBackgroundColor.nullish(),\n color: zColor.nullish(),\n label: zLabel.nullish(),\n legend: zColorLegend.nullish(),\n tooltip: zTooltip.nullish(),\n brush: zBrush.nullish(),\n theme: zTheme.nullish(),\n locale: zLocale.nullish(),\n})\n"],"names":["zFunnel","z","zDataset","zEncoding","zDimensions","zMeasures","zBackgroundColor","zColor","zLabel","zColorLegend","zTooltip","zBrush","zTheme","zLocale"],"mappings":";;;AAgBO,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,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,OAAOC,OAAO,OAAO;IACrB,QAAQC,QAAQ,OAAO;AACzB"}
@@ -1,6 +1,7 @@
1
1
  import { type Locale } from '../../i18n';
2
2
  import type { Color, ColorLegend, HeatmapDimension, HeatmapMeasure } from '../../properties';
3
3
  import { type BackgroundColor, type Dataset, type Label, type Theme, type Tooltip } from '../../properties';
4
+ import type { Brush } from '../../properties';
4
5
  /**
5
6
  * @description 热力图,通过二维矩阵的颜色深浅展示数据的分布和强弱关系
6
7
  * 适用场景:
@@ -78,6 +79,11 @@ export interface Heatmap {
78
79
  * @description 热力图的提示信息配置, 用于定义图表的提示信息, 包括提示信息的位置, 格式, 样式等.
79
80
  */
80
81
  tooltip?: Tooltip;
82
+ /**
83
+ * 框选
84
+ * @description 框选配置,用于开启/关闭 brush 框选能力
85
+ */
86
+ brush?: Brush;
81
87
  /**
82
88
  * 图表的主题, 主题是优先级较低的功能配置, 包含所有图表类型共用的通用配置, 与单类图表类型共用的图表配置
83
89
  * @default light 默认为亮色主题
@@ -279,6 +279,10 @@ export declare const zHeatmap: z.ZodObject<{
279
279
  valueColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
280
280
  titleColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
281
281
  }, z.core.$strip>>>;
282
+ brush: z.ZodOptional<z.ZodNullable<z.ZodObject<{
283
+ enable: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
284
+ removeOnClick: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
285
+ }, z.core.$strip>>>;
282
286
  theme: z.ZodOptional<z.ZodNullable<z.ZodString>>;
283
287
  locale: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodEnum<{
284
288
  "zh-CN": "zh-CN";
@@ -1,6 +1,6 @@
1
1
  import { z } from "zod";
2
2
  import { zLocale } from "../../i18n/index.js";
3
- import { zBackgroundColor, zColor, zColorLegend, zDataset, zDimensions, zLabel, zMeasures, zTheme, zTooltip } from "../../properties/index.js";
3
+ import { zBackgroundColor, zBrush, 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(),
@@ -11,6 +11,7 @@ const zHeatmap = z.object({
11
11
  label: zLabel.nullish(),
12
12
  legend: zColorLegend.nullish(),
13
13
  tooltip: zTooltip.nullish(),
14
+ brush: zBrush.nullish(),
14
15
  theme: zTheme.nullish(),
15
16
  locale: zLocale.nullish()
16
17
  });
@@ -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 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
+ {"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 zBrush,\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 brush: zBrush.nullish(),\n theme: zTheme.nullish(),\n locale: zLocale.nullish(),\n})\n"],"names":["zHeatmap","z","zDataset","zDimensions","zMeasures","zBackgroundColor","zColor","zLabel","zColorLegend","zTooltip","zBrush","zTheme","zLocale"],"mappings":";;;AAgBO,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,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, HistogramDimension, Label, Legend, StackCornerRadius, Theme, Tooltip, YLinearAxis, HistogramMeasure, XLinearAxis, KdeRegressionLine, EcdfRegressionLine, DimensionLinkage } from '../../properties';
2
+ import type { AnnotationArea, AnnotationHorizontalLine, AnnotationPoint, AnnotationVerticalLine, BackgroundColor, Brush, 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
  * 适用场景:
@@ -51,6 +51,11 @@ export interface Histogram {
51
51
  * @description 提示信息配置, 用于定义图表的提示信息, 包括提示信息的位置, 格式, 样式等.
52
52
  */
53
53
  tooltip?: Tooltip;
54
+ /**
55
+ * 框选
56
+ * @description 框选配置,用于开启/关闭 brush 框选能力
57
+ */
58
+ brush?: Brush;
54
59
  /**
55
60
  * @description x轴, 数值轴, x轴配置, 用于定义图表的x轴, 包括x轴的位置, 格式, 样式等.
56
61
  */
@@ -328,6 +328,10 @@ export declare const zHistogram: z.ZodObject<{
328
328
  valueColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
329
329
  titleColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
330
330
  }, z.core.$strip>>>;
331
+ brush: z.ZodOptional<z.ZodNullable<z.ZodObject<{
332
+ enable: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
333
+ removeOnClick: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
334
+ }, z.core.$strip>>>;
331
335
  xAxis: z.ZodOptional<z.ZodNullable<z.ZodObject<{
332
336
  visible: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
333
337
  min: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -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, zDimensionLinkage, zDimensions, zEcdfRegressionLine, zEncoding, zKdeRegressionLine, zLabel, zLegend, zMeasures, zTheme, zTooltip, zXLinearAxis, zYLinearAxis } from "../../properties/index.js";
3
+ import { zAnnotationArea, zAnnotationHorizontalLine, zAnnotationPoint, zAnnotationVerticalLine, zBackgroundColor, zBarStyle, zBrush, 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(),
@@ -12,6 +12,7 @@ const zHistogram = z.object({
12
12
  label: zLabel.nullish(),
13
13
  legend: zLegend.nullish(),
14
14
  tooltip: zTooltip.nullish(),
15
+ brush: zBrush.nullish(),
15
16
  xAxis: zXLinearAxis.nullish(),
16
17
  yAxis: zYLinearAxis.nullish(),
17
18
  crosshairRect: zCrosshairRect.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 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
+ {"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 zBrush,\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 brush: zBrush.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","zBrush","zXLinearAxis","zYLinearAxis","zCrosshairRect","zTheme","zBarStyle","zAnnotationPoint","zAnnotationVerticalLine","zAnnotationHorizontalLine","zAnnotationArea","zEcdfRegressionLine","zKdeRegressionLine","zDimensionLinkage","zLocale"],"mappings":";;;AA2BO,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,OAAO,OAAO;IACrB,OAAOC,aAAa,OAAO;IAC3B,OAAOC,aAAa,OAAO;IAC3B,eAAeC,eAAe,OAAO;IACrC,UAAUb,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,OAAOc,OAAO,OAAO;IACrB,UAAUd,EAAE,KAAK,CAACe,WAAW,EAAE,CAACA,WAAW,OAAO;IAClD,iBAAiBf,EAAE,KAAK,CAACgB,kBAAkB,EAAE,CAACA,kBAAkB,OAAO;IACvE,wBAAwBhB,EAAE,KAAK,CAACiB,yBAAyB,EAAE,CAACA,yBAAyB,OAAO;IAC5F,0BAA0BjB,EAAE,KAAK,CAACkB,2BAA2B,EAAE,CAACA,2BAA2B,OAAO;IAClG,gBAAgBlB,EAAE,KAAK,CAACmB,iBAAiB,EAAE,CAACA,iBAAiB,OAAO;IACpE,oBAAoBnB,EAAE,KAAK,CAACoB,qBAAqB,EAAE,CAACA,qBAAqB,OAAO;IAChF,mBAAmBpB,EAAE,KAAK,CAACqB,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, Label, Legend, LineStyle, PointStyle, Theme, Tooltip, CrosshairLine, XBandAxis, YLinearAxis, Sort, SortLegend, DimensionLinkage, LineMeasure, LineDimension } from '../../properties';
2
+ import type { AnnotationArea, AnnotationHorizontalLine, AnnotationPoint, AnnotationVerticalLine, BackgroundColor, Brush, 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
  * 适用场景:
@@ -72,6 +72,11 @@ export interface Line {
72
72
  * @description 提示信息配置, 用于定义图表的提示信息, 包括提示信息的位置, 格式, 样式等.
73
73
  */
74
74
  tooltip?: Tooltip;
75
+ /**
76
+ * 框选
77
+ * @description 框选配置,用于开启/关闭 brush 框选能力
78
+ */
79
+ brush?: Brush;
75
80
  /**
76
81
  * x轴
77
82
  * @description 类目轴, x轴配置, 用于定义图表的x轴, 包括x轴的位置, 格式, 样式等.
@@ -328,6 +328,10 @@ export declare const zLine: z.ZodObject<{
328
328
  valueColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
329
329
  titleColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
330
330
  }, z.core.$strip>>>;
331
+ brush: z.ZodOptional<z.ZodNullable<z.ZodObject<{
332
+ enable: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
333
+ removeOnClick: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
334
+ }, z.core.$strip>>>;
331
335
  xAxis: z.ZodOptional<z.ZodNullable<z.ZodObject<{
332
336
  visible: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
333
337
  labelAutoHide: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
@@ -1,5 +1,5 @@
1
1
  import { zLocale } from "../../i18n/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";
2
+ import { zAnnotationArea, zAnnotationHorizontalLine, zAnnotationPoint, zAnnotationVerticalLine, zBackgroundColor, zBrush, 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'),
@@ -12,6 +12,7 @@ const zLine = z.object({
12
12
  label: zLabel.nullish(),
13
13
  legend: zLegend.nullish(),
14
14
  tooltip: zTooltip.nullish(),
15
+ brush: zBrush.nullish(),
15
16
  xAxis: zXBandAxis.nullish(),
16
17
  yAxis: zYLinearAxis.nullish(),
17
18
  crosshairLine: zCrosshairLine.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 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
+ {"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 zBrush,\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 brush: zBrush.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","zBrush","zXBandAxis","zYLinearAxis","zCrosshairLine","zSort","zSortLegend","zTheme","zPointStyle","zLineStyle","zAnnotationPoint","zAnnotationVerticalLine","zAnnotationHorizontalLine","zAnnotationArea","zDimensionLinkage","zLocale"],"mappings":";;;AA6BO,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,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,YAAYhB,EAAE,KAAK,CAACiB,aAAa,EAAE,CAACA,aAAa,OAAO;IACxD,WAAWjB,EAAE,KAAK,CAACkB,YAAY,EAAE,CAACA,YAAY,OAAO;IACrD,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,kBAAkBC,kBAAkB,OAAO;IAC3C,QAAQC,QAAQ,OAAO;AACzB"}
@@ -1,5 +1,6 @@
1
1
  import type { Locale } from '../../i18n';
2
2
  import type { BackgroundColor, Color, Dataset, PieDimension, Legend, PieMeasure, PieLabel, Theme, Tooltip } from '../../properties';
3
+ import type { Brush } from '../../properties';
3
4
  /**
4
5
  * @description 饼图,适用于展示单一维度数据的占比关系,通过扇形面积大小表示各类别占比
5
6
  * 适用场景:
@@ -77,6 +78,11 @@ export interface Pie {
77
78
  * @description 提示信息配置, 用于定义图表的提示信息, 包括提示信息的位置, 格式, 样式等.
78
79
  */
79
80
  tooltip?: Tooltip;
81
+ /**
82
+ * 框选
83
+ * @description 框选配置,用于开启/关闭 brush 框选能力
84
+ */
85
+ brush?: Brush;
80
86
  /**
81
87
  * 图表的主题, 主题是优先级较低的功能配置, 包含所有图表类型共用的通用配置, 与单类图表类型共用的图表配置
82
88
  * @default light 默认为亮色主题
@@ -329,6 +329,10 @@ export declare const zPie: z.ZodObject<{
329
329
  valueColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
330
330
  titleColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
331
331
  }, z.core.$strip>>>;
332
+ brush: z.ZodOptional<z.ZodNullable<z.ZodObject<{
333
+ enable: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
334
+ removeOnClick: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
335
+ }, z.core.$strip>>>;
332
336
  theme: z.ZodOptional<z.ZodNullable<z.ZodString>>;
333
337
  locale: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodEnum<{
334
338
  "zh-CN": "zh-CN";
@@ -1,6 +1,6 @@
1
1
  import { z } from "zod";
2
2
  import { zLocale } from "../../i18n/index.js";
3
- import { zBackgroundColor, zColor, zDataset, zDimensions, zEncoding, zLegend, zMeasures, zPieLabel, zTheme, zTooltip } from "../../properties/index.js";
3
+ import { zBackgroundColor, zBrush, 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(),
@@ -12,6 +12,7 @@ const zPie = z.object({
12
12
  label: zPieLabel.nullish(),
13
13
  legend: zLegend.nullish(),
14
14
  tooltip: zTooltip.nullish(),
15
+ brush: zBrush.nullish(),
15
16
  theme: zTheme.nullish(),
16
17
  locale: zLocale.nullish()
17
18
  });
@@ -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 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
+ {"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 zBrush,\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 brush: zBrush.nullish(),\n theme: zTheme.nullish(),\n locale: zLocale.nullish(),\n})\n"],"names":["zPie","z","zDataset","zEncoding","zDimensions","zMeasures","zBackgroundColor","zColor","zPieLabel","zLegend","zTooltip","zBrush","zTheme","zLocale"],"mappings":";;;AAgBO,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,OAAOC,OAAO,OAAO;IACrB,QAAQC,QAAQ,OAAO;AACzB"}
@@ -1,6 +1,7 @@
1
1
  import { type Locale } from '../../i18n';
2
2
  import type { AreaStyle, LineStyle, PointStyle, RadarDimension, RadarMeasure } from '../../properties';
3
3
  import { type BackgroundColor, type Color, type Dataset, type Label, type Legend, type Theme, type Tooltip } from '../../properties';
4
+ import type { Brush } from '../../properties';
4
5
  /**
5
6
  * @description 雷达图,适用于多维度数据的对比分析,通过多轴坐标系展示各维度的数值分布
6
7
  * 适用场景:
@@ -78,6 +79,11 @@ export interface Radar {
78
79
  * @description 提示信息配置, 用于定义图表的提示信息, 包括提示信息的位置, 格式, 样式等.
79
80
  */
80
81
  tooltip?: Tooltip;
82
+ /**
83
+ * 框选
84
+ * @description 框选配置,用于开启/关闭 brush 框选能力
85
+ */
86
+ brush?: Brush;
81
87
  /**
82
88
  * 图表的主题, 主题是优先级较低的功能配置, 包含所有图表类型共用的通用配置, 与单类图表类型共用的图表配置
83
89
  * @default light 默认为亮色主题
@@ -328,6 +328,10 @@ export declare const zRadar: z.ZodObject<{
328
328
  valueColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
329
329
  titleColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
330
330
  }, z.core.$strip>>>;
331
+ brush: z.ZodOptional<z.ZodNullable<z.ZodObject<{
332
+ enable: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
333
+ removeOnClick: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
334
+ }, z.core.$strip>>>;
331
335
  theme: z.ZodOptional<z.ZodNullable<z.ZodString>>;
332
336
  locale: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodEnum<{
333
337
  "zh-CN": "zh-CN";
@@ -1,6 +1,6 @@
1
1
  import { z } from "zod";
2
2
  import { zLocale } from "../../i18n/index.js";
3
- import { zBackgroundColor, zColor, zDataset, zDimensions, zEncoding, zLabel, zLegend, zMeasures, zTheme, zTooltip } from "../../properties/index.js";
3
+ import { zBackgroundColor, zBrush, 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(),
@@ -12,6 +12,7 @@ const zRadar = z.object({
12
12
  label: zLabel.nullish(),
13
13
  legend: zLegend.nullish(),
14
14
  tooltip: zTooltip.nullish(),
15
+ brush: zBrush.nullish(),
15
16
  theme: zTheme.nullish(),
16
17
  locale: zLocale.nullish()
17
18
  });
@@ -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 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
+ {"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 zBrush,\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 brush: zBrush.nullish(),\n theme: zTheme.nullish(),\n locale: zLocale.nullish(),\n})\n"],"names":["zRadar","z","zDataset","zEncoding","zDimensions","zMeasures","zBackgroundColor","zColor","zLabel","zLegend","zTooltip","zBrush","zTheme","zLocale"],"mappings":";;;AAiBO,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,OAAOC,OAAO,OAAO;IACrB,QAAQC,QAAQ,OAAO;AACzB"}
@@ -1,6 +1,7 @@
1
1
  import { type Locale } from '../../i18n';
2
2
  import type { RoseDimension, RoseMeasure, PieLabel } from '../../properties';
3
3
  import { type BackgroundColor, type Color, type Dataset, type Legend, type Theme, type Tooltip } from '../../properties';
4
+ import type { Brush } from '../../properties';
4
5
  /**
5
6
  * @description 堆叠玫瑰图,适用于多维度数据对比场景,通过极坐标系下的扇形弧度和半径展示数据大小
6
7
  * 适用场景:
@@ -79,6 +80,11 @@ export interface Rose {
79
80
  * @description 提示信息配置, 用于定义图表的提示信息, 包括提示信息的位置, 格式, 样式等.
80
81
  */
81
82
  tooltip?: Tooltip;
83
+ /**
84
+ * 框选
85
+ * @description 框选配置,用于开启/关闭 brush 框选能力
86
+ */
87
+ brush?: Brush;
82
88
  /**
83
89
  * 图表的主题, 主题是优先级较低的功能配置, 包含所有图表类型共用的通用配置, 与单类图表类型共用的图表配置
84
90
  * @default light 默认为亮色主题
@@ -328,6 +328,10 @@ export declare const zRose: z.ZodObject<{
328
328
  valueColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
329
329
  titleColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
330
330
  }, z.core.$strip>>>;
331
+ brush: z.ZodOptional<z.ZodNullable<z.ZodObject<{
332
+ enable: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
333
+ removeOnClick: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
334
+ }, z.core.$strip>>>;
331
335
  theme: z.ZodOptional<z.ZodNullable<z.ZodString>>;
332
336
  locale: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodEnum<{
333
337
  "zh-CN": "zh-CN";
@@ -1,6 +1,6 @@
1
1
  import { z } from "zod";
2
2
  import { zLocale } from "../../i18n/index.js";
3
- import { zBackgroundColor, zColor, zDataset, zDimensions, zEncoding, zLabel, zLegend, zMeasures, zTheme, zTooltip } from "../../properties/index.js";
3
+ import { zBackgroundColor, zBrush, 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(),
@@ -12,6 +12,7 @@ const zRose = z.object({
12
12
  label: zLabel.nullish(),
13
13
  legend: zLegend.nullish(),
14
14
  tooltip: zTooltip.nullish(),
15
+ brush: zBrush.nullish(),
15
16
  theme: zTheme.nullish(),
16
17
  locale: zLocale.nullish()
17
18
  });
@@ -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 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
+ {"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 zBrush,\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 brush: zBrush.nullish(),\n theme: zTheme.nullish(),\n locale: zLocale.nullish(),\n})\n"],"names":["zRose","z","zDataset","zEncoding","zDimensions","zMeasures","zBackgroundColor","zColor","zLabel","zLegend","zTooltip","zBrush","zTheme","zLocale"],"mappings":";;;AAiBO,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,OAAOC,OAAO,OAAO;IACrB,QAAQC,QAAQ,OAAO;AACzB"}
@@ -1,6 +1,7 @@
1
1
  import { type Locale } from '../../i18n';
2
2
  import type { RoseParallelDimension, RoseParallelMeasure, PieLabel } from '../../properties';
3
3
  import { type BackgroundColor, type Color, type Dataset, type Legend, type Theme, type Tooltip } from '../../properties';
4
+ import type { Brush } from '../../properties';
4
5
  /**
5
6
  * @description 分组玫瑰图,适用于多维度数据对比场景,通过极坐标系下的扇形弧度和半径展示数据大小
6
7
  * 适用场景:
@@ -79,6 +80,11 @@ export interface RoseParallel {
79
80
  * @description 提示信息配置, 用于定义图表的提示信息, 包括提示信息的位置, 格式, 样式等.
80
81
  */
81
82
  tooltip?: Tooltip;
83
+ /**
84
+ * 框选
85
+ * @description 框选配置,用于开启/关闭 brush 框选能力
86
+ */
87
+ brush?: Brush;
82
88
  /**
83
89
  * 图表的主题, 主题是优先级较低的功能配置, 包含所有图表类型共用的通用配置, 与单类图表类型共用的图表配置
84
90
  * @default light 默认为亮色主题
@@ -328,6 +328,10 @@ export declare const zRoseParallel: z.ZodObject<{
328
328
  valueColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
329
329
  titleColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
330
330
  }, z.core.$strip>>>;
331
+ brush: z.ZodOptional<z.ZodNullable<z.ZodObject<{
332
+ enable: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
333
+ removeOnClick: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
334
+ }, z.core.$strip>>>;
331
335
  theme: z.ZodOptional<z.ZodNullable<z.ZodString>>;
332
336
  locale: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodEnum<{
333
337
  "zh-CN": "zh-CN";
@@ -1,6 +1,6 @@
1
1
  import { z } from "zod";
2
2
  import { zLocale } from "../../i18n/index.js";
3
- import { zBackgroundColor, zColor, zDataset, zDimensions, zEncoding, zLabel, zLegend, zMeasures, zTheme, zTooltip } from "../../properties/index.js";
3
+ import { zBackgroundColor, zBrush, zColor, zDataset, zDimensions, zEncoding, zLabel, zLegend, zMeasures, zTheme, zTooltip } from "../../properties/index.js";
4
4
  const zRoseParallel = z.object({
5
5
  chartType: z.literal('roseParallel'),
6
6
  dataset: zDataset.nullish(),
@@ -12,6 +12,7 @@ const zRoseParallel = z.object({
12
12
  label: zLabel.nullish(),
13
13
  legend: zLegend.nullish(),
14
14
  tooltip: zTooltip.nullish(),
15
+ brush: zBrush.nullish(),
15
16
  theme: zTheme.nullish(),
16
17
  locale: zLocale.nullish()
17
18
  });