@visactor/vseed 0.1.50 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (280) 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/buildAdvanced.js +1 -1
  4. package/dist/esm/builder/builder/buildAdvanced.js.map +1 -1
  5. package/dist/esm/builder/builder/buildSpec.js +1 -1
  6. package/dist/esm/builder/builder/buildSpec.js.map +1 -1
  7. package/dist/esm/builder/builder/builder.d.ts +817 -1
  8. package/dist/esm/builder/builder/builder.js +5 -1
  9. package/dist/esm/builder/builder/builder.js.map +1 -1
  10. package/dist/esm/dataSelector/selector.d.ts +5 -0
  11. package/dist/esm/dataSelector/selector.js +92 -50
  12. package/dist/esm/dataSelector/selector.js.map +1 -1
  13. package/dist/esm/pipeline/advanced/chart/pipeline/donut.js +3 -3
  14. package/dist/esm/pipeline/advanced/chart/pipeline/donut.js.map +1 -1
  15. package/dist/esm/pipeline/advanced/chart/pipeline/histogram.js +1 -2
  16. package/dist/esm/pipeline/advanced/chart/pipeline/histogram.js.map +1 -1
  17. package/dist/esm/pipeline/advanced/chart/pipeline/pie.js +3 -3
  18. package/dist/esm/pipeline/advanced/chart/pipeline/pie.js.map +1 -1
  19. package/dist/esm/pipeline/advanced/chart/pipes/config/boxplot.js +2 -1
  20. package/dist/esm/pipeline/advanced/chart/pipes/config/boxplot.js.map +1 -1
  21. package/dist/esm/pipeline/advanced/chart/pipes/config/column.js +2 -1
  22. package/dist/esm/pipeline/advanced/chart/pipes/config/column.js.map +1 -1
  23. package/dist/esm/pipeline/advanced/chart/pipes/config/dualAxis.js +2 -1
  24. package/dist/esm/pipeline/advanced/chart/pipes/config/dualAxis.js.map +1 -1
  25. package/dist/esm/pipeline/advanced/chart/pipes/config/histogram.js +2 -1
  26. package/dist/esm/pipeline/advanced/chart/pipes/config/histogram.js.map +1 -1
  27. package/dist/esm/pipeline/advanced/chart/pipes/config/line.js +2 -1
  28. package/dist/esm/pipeline/advanced/chart/pipes/config/line.js.map +1 -1
  29. package/dist/esm/pipeline/advanced/chart/pipes/config/scatter.js +2 -1
  30. package/dist/esm/pipeline/advanced/chart/pipes/config/scatter.js.map +1 -1
  31. package/dist/esm/pipeline/advanced/chart/pipes/encoding/pie.js +8 -6
  32. package/dist/esm/pipeline/advanced/chart/pipes/encoding/pie.js.map +1 -1
  33. package/dist/esm/pipeline/advanced/chart/pipes/markStyle/markStyle.js +3 -1
  34. package/dist/esm/pipeline/advanced/chart/pipes/markStyle/markStyle.js.map +1 -1
  35. package/dist/esm/pipeline/advanced/chart/pipes/measures/buildMeasures.js +2 -1
  36. package/dist/esm/pipeline/advanced/chart/pipes/measures/buildMeasures.js.map +1 -1
  37. package/dist/esm/pipeline/advanced/chart/pipes/reshape/pivotReshapeWithBoxplotEncoding.js +1 -1
  38. package/dist/esm/pipeline/advanced/chart/pipes/reshape/pivotReshapeWithBoxplotEncoding.js.map +1 -1
  39. package/dist/esm/pipeline/advanced/chart/pipes/reshape/pivotReshapeWithEncoding.js +1 -1
  40. package/dist/esm/pipeline/advanced/chart/pipes/reshape/pivotReshapeWithEncoding.js.map +1 -1
  41. package/dist/esm/pipeline/advanced/chart/pipes/reshape/pivotReshapeWithHistogramEncoding.js +1 -1
  42. package/dist/esm/pipeline/advanced/chart/pipes/reshape/pivotReshapeWithHistogramEncoding.js.map +1 -1
  43. package/dist/esm/pipeline/advanced/chart/pipes/reshape/reshapeWithEncoding.js +1 -1
  44. package/dist/esm/pipeline/advanced/chart/pipes/reshape/reshapeWithEncoding.js.map +1 -1
  45. package/dist/esm/pipeline/spec/chart/pipeline/area.js +3 -2
  46. package/dist/esm/pipeline/spec/chart/pipeline/area.js.map +1 -1
  47. package/dist/esm/pipeline/spec/chart/pipeline/areaPercent.js +3 -2
  48. package/dist/esm/pipeline/spec/chart/pipeline/areaPercent.js.map +1 -1
  49. package/dist/esm/pipeline/spec/chart/pipeline/bar.js +3 -2
  50. package/dist/esm/pipeline/spec/chart/pipeline/bar.js.map +1 -1
  51. package/dist/esm/pipeline/spec/chart/pipeline/barParallel.js +3 -2
  52. package/dist/esm/pipeline/spec/chart/pipeline/barParallel.js.map +1 -1
  53. package/dist/esm/pipeline/spec/chart/pipeline/barPercent.js +3 -2
  54. package/dist/esm/pipeline/spec/chart/pipeline/barPercent.js.map +1 -1
  55. package/dist/esm/pipeline/spec/chart/pipeline/boxplot.js +8 -6
  56. package/dist/esm/pipeline/spec/chart/pipeline/boxplot.js.map +1 -1
  57. package/dist/esm/pipeline/spec/chart/pipeline/column.js +3 -2
  58. package/dist/esm/pipeline/spec/chart/pipeline/column.js.map +1 -1
  59. package/dist/esm/pipeline/spec/chart/pipeline/columnParallel.js +3 -2
  60. package/dist/esm/pipeline/spec/chart/pipeline/columnParallel.js.map +1 -1
  61. package/dist/esm/pipeline/spec/chart/pipeline/columnPercent.js +3 -2
  62. package/dist/esm/pipeline/spec/chart/pipeline/columnPercent.js.map +1 -1
  63. package/dist/esm/pipeline/spec/chart/pipeline/dualAxis.js +19 -16
  64. package/dist/esm/pipeline/spec/chart/pipeline/dualAxis.js.map +1 -1
  65. package/dist/esm/pipeline/spec/chart/pipeline/histogram.js +3 -2
  66. package/dist/esm/pipeline/spec/chart/pipeline/histogram.js.map +1 -1
  67. package/dist/esm/pipeline/spec/chart/pipeline/line.js +3 -2
  68. package/dist/esm/pipeline/spec/chart/pipeline/line.js.map +1 -1
  69. package/dist/esm/pipeline/spec/chart/pipeline/scatter.js +6 -3
  70. package/dist/esm/pipeline/spec/chart/pipeline/scatter.js.map +1 -1
  71. package/dist/esm/pipeline/spec/chart/pipes/annotation/annotationPointOfDualAxis.d.ts +2 -0
  72. package/dist/esm/pipeline/spec/chart/pipes/annotation/annotationPointOfDualAxis.js +94 -0
  73. package/dist/esm/pipeline/spec/chart/pipes/annotation/annotationPointOfDualAxis.js.map +1 -0
  74. package/dist/esm/pipeline/spec/chart/pipes/annotation/index.d.ts +1 -0
  75. package/dist/esm/pipeline/spec/chart/pipes/annotation/index.js +2 -1
  76. package/dist/esm/pipeline/spec/chart/pipes/annotation/utils.d.ts +1 -1
  77. package/dist/esm/pipeline/spec/chart/pipes/annotation/utils.js +2 -1
  78. package/dist/esm/pipeline/spec/chart/pipes/annotation/utils.js.map +1 -1
  79. package/dist/esm/pipeline/spec/chart/pipes/axes/xBand.js +12 -1
  80. package/dist/esm/pipeline/spec/chart/pipes/axes/xBand.js.map +1 -1
  81. package/dist/esm/pipeline/spec/chart/pipes/axes/yBand.js +12 -1
  82. package/dist/esm/pipeline/spec/chart/pipes/axes/yBand.js.map +1 -1
  83. package/dist/esm/pipeline/spec/chart/pipes/color/colorBoxPlotStyleFill.d.ts +2 -0
  84. package/dist/esm/pipeline/spec/chart/pipes/color/colorBoxPlotStyleFill.js +17 -0
  85. package/dist/esm/pipeline/spec/chart/pipes/color/colorBoxPlotStyleFill.js.map +1 -0
  86. package/dist/esm/pipeline/spec/chart/pipes/color/index.d.ts +1 -0
  87. package/dist/esm/pipeline/spec/chart/pipes/color/index.js +2 -1
  88. package/dist/esm/pipeline/spec/chart/pipes/crosshair/horizontalCrosshairLine.js +3 -0
  89. package/dist/esm/pipeline/spec/chart/pipes/crosshair/horizontalCrosshairLine.js.map +1 -1
  90. package/dist/esm/pipeline/spec/chart/pipes/crosshair/horizontalCrosshairRect.js +4 -1
  91. package/dist/esm/pipeline/spec/chart/pipes/crosshair/horizontalCrosshairRect.js.map +1 -1
  92. package/dist/esm/pipeline/spec/chart/pipes/crosshair/verticalCrosshairLine.js +3 -0
  93. package/dist/esm/pipeline/spec/chart/pipes/crosshair/verticalCrosshairLine.js.map +1 -1
  94. package/dist/esm/pipeline/spec/chart/pipes/crosshair/verticalCrosshairRect.js +4 -1
  95. package/dist/esm/pipeline/spec/chart/pipes/crosshair/verticalCrosshairRect.js.map +1 -1
  96. package/dist/esm/pipeline/spec/chart/pipes/index.d.ts +1 -0
  97. package/dist/esm/pipeline/spec/chart/pipes/index.js +1 -0
  98. package/dist/esm/pipeline/spec/chart/pipes/init/pivot.js +2 -2
  99. package/dist/esm/pipeline/spec/chart/pipes/init/pivot.js.map +1 -1
  100. package/dist/esm/pipeline/spec/chart/pipes/markStyle/boxPlotStyle.d.ts +2 -0
  101. package/dist/esm/pipeline/spec/chart/pipes/markStyle/boxPlotStyle.js +52 -0
  102. package/dist/esm/pipeline/spec/chart/pipes/markStyle/boxPlotStyle.js.map +1 -0
  103. package/dist/esm/pipeline/spec/chart/pipes/markStyle/index.d.ts +2 -0
  104. package/dist/esm/pipeline/spec/chart/pipes/markStyle/index.js +3 -1
  105. package/dist/esm/pipeline/spec/chart/pipes/markStyle/outlierStyle.d.ts +2 -0
  106. package/dist/esm/pipeline/spec/chart/pipes/markStyle/outlierStyle.js +67 -0
  107. package/dist/esm/pipeline/spec/chart/pipes/markStyle/outlierStyle.js.map +1 -0
  108. package/dist/esm/pipeline/spec/chart/pipes/pipeFilter/areaStyleFilter.d.ts +2 -0
  109. package/dist/esm/pipeline/spec/chart/pipes/pipeFilter/areaStyleFilter.js +7 -0
  110. package/dist/esm/pipeline/spec/chart/pipes/pipeFilter/areaStyleFilter.js.map +1 -0
  111. package/dist/esm/pipeline/spec/chart/pipes/pipeFilter/barStyleFilter.d.ts +2 -0
  112. package/dist/esm/pipeline/spec/chart/pipes/pipeFilter/barStyleFilter.js +7 -0
  113. package/dist/esm/pipeline/spec/chart/pipes/pipeFilter/barStyleFilter.js.map +1 -0
  114. package/dist/esm/pipeline/spec/chart/pipes/pipeFilter/index.d.ts +4 -0
  115. package/dist/esm/pipeline/spec/chart/pipes/pipeFilter/index.js +4 -0
  116. package/dist/esm/pipeline/spec/chart/pipes/pipeFilter/lineStyleFilter.d.ts +2 -0
  117. package/dist/esm/pipeline/spec/chart/pipes/pipeFilter/lineStyleFilter.js +7 -0
  118. package/dist/esm/pipeline/spec/chart/pipes/pipeFilter/lineStyleFilter.js.map +1 -0
  119. package/dist/esm/pipeline/spec/chart/pipes/pipeFilter/pointStyleFilter.d.ts +2 -0
  120. package/dist/esm/pipeline/spec/chart/pipes/pipeFilter/pointStyleFilter.js +7 -0
  121. package/dist/esm/pipeline/spec/chart/pipes/pipeFilter/pointStyleFilter.js.map +1 -0
  122. package/dist/esm/pipeline/spec/chart/pipes/pivotChart/dimensionLinkage.d.ts +2 -0
  123. package/dist/esm/pipeline/spec/chart/pipes/pivotChart/dimensionLinkage.js +47 -0
  124. package/dist/esm/pipeline/spec/chart/pipes/pivotChart/dimensionLinkage.js.map +1 -0
  125. package/dist/esm/pipeline/spec/chart/pipes/pivotChart/index.d.ts +1 -0
  126. package/dist/esm/pipeline/spec/chart/pipes/pivotChart/index.js +2 -1
  127. package/dist/esm/pipeline/spec/chart/pipes/pivotChart/pivotAxisStyle.js +2 -0
  128. package/dist/esm/pipeline/spec/chart/pipes/pivotChart/pivotAxisStyle.js.map +1 -1
  129. package/dist/esm/pipeline/spec/chart/pipes/pivotChart/pivotGridStyle.js +16 -1
  130. package/dist/esm/pipeline/spec/chart/pipes/pivotChart/pivotGridStyle.js.map +1 -1
  131. package/dist/esm/pipeline/spec/chart/pipes/pivotChart/pivotIndicators.js +3 -2
  132. package/dist/esm/pipeline/spec/chart/pipes/pivotChart/pivotIndicators.js.map +1 -1
  133. package/dist/esm/pipeline/spec/chart/pipes/regressionLine/columnRegressionLine.js +18 -12
  134. package/dist/esm/pipeline/spec/chart/pipes/regressionLine/columnRegressionLine.js.map +1 -1
  135. package/dist/esm/pipeline/spec/chart/pipes/regressionLine/common.d.ts +1 -0
  136. package/dist/esm/pipeline/spec/chart/pipes/regressionLine/common.js +2 -1
  137. package/dist/esm/pipeline/spec/chart/pipes/regressionLine/common.js.map +1 -1
  138. package/dist/esm/pipeline/spec/chart/pipes/regressionLine/ecdfRegressionLine.js +9 -5
  139. package/dist/esm/pipeline/spec/chart/pipes/regressionLine/ecdfRegressionLine.js.map +1 -1
  140. package/dist/esm/pipeline/spec/chart/pipes/regressionLine/kdeRegressionLine.js +14 -6
  141. package/dist/esm/pipeline/spec/chart/pipes/regressionLine/kdeRegressionLine.js.map +1 -1
  142. package/dist/esm/pipeline/spec/chart/pipes/regressionLine/linearRegressionLine.js +69 -32
  143. package/dist/esm/pipeline/spec/chart/pipes/regressionLine/linearRegressionLine.js.map +1 -1
  144. package/dist/esm/pipeline/spec/chart/pipes/stack/stackCornerRadius.js +2 -3
  145. package/dist/esm/pipeline/spec/chart/pipes/stack/stackCornerRadius.js.map +1 -1
  146. package/dist/esm/pipeline/spec/chart/pipes/tooltip/index.d.ts +1 -1
  147. package/dist/esm/pipeline/spec/chart/pipes/tooltip/index.js +2 -2
  148. package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltipBoxplot.js +8 -8
  149. package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltipBoxplot.js.map +1 -1
  150. package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltipDualAxis.d.ts +1 -0
  151. package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltipDualAxis.js +16 -2
  152. package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltipDualAxis.js.map +1 -1
  153. package/dist/esm/pipeline/utils/measures/find.d.ts +1 -0
  154. package/dist/esm/pipeline/utils/measures/find.js +13 -1
  155. package/dist/esm/pipeline/utils/measures/find.js.map +1 -1
  156. package/dist/esm/theme/common/axes.js +4 -4
  157. package/dist/esm/theme/common/axes.js.map +1 -1
  158. package/dist/esm/theme/common/boxPlot.d.ts +5 -0
  159. package/dist/esm/theme/common/boxPlot.js +15 -0
  160. package/dist/esm/theme/common/boxPlot.js.map +1 -0
  161. package/dist/esm/theme/common/crosshair.js +4 -4
  162. package/dist/esm/theme/common/crosshair.js.map +1 -1
  163. package/dist/esm/theme/common/table.js +2 -0
  164. package/dist/esm/theme/common/table.js.map +1 -1
  165. package/dist/esm/theme/dark/dark.js +4 -1
  166. package/dist/esm/theme/dark/dark.js.map +1 -1
  167. package/dist/esm/theme/light/light.js +4 -1
  168. package/dist/esm/theme/light/light.js.map +1 -1
  169. package/dist/esm/types/advancedVSeed.d.ts +533 -0
  170. package/dist/esm/types/advancedVSeed.js +1 -0
  171. package/dist/esm/types/advancedVSeed.js.map +1 -1
  172. package/dist/esm/types/chartType/area/area.d.ts +6 -1
  173. package/dist/esm/types/chartType/area/zArea.d.ts +5 -0
  174. package/dist/esm/types/chartType/area/zArea.js +2 -1
  175. package/dist/esm/types/chartType/area/zArea.js.map +1 -1
  176. package/dist/esm/types/chartType/areaPercent/areaPercent.d.ts +6 -1
  177. package/dist/esm/types/chartType/areaPercent/zAreaPercent.d.ts +5 -0
  178. package/dist/esm/types/chartType/areaPercent/zAreaPercent.js +2 -1
  179. package/dist/esm/types/chartType/areaPercent/zAreaPercent.js.map +1 -1
  180. package/dist/esm/types/chartType/bar/bar.d.ts +6 -1
  181. package/dist/esm/types/chartType/bar/zBar.d.ts +5 -0
  182. package/dist/esm/types/chartType/bar/zBar.js +2 -1
  183. package/dist/esm/types/chartType/bar/zBar.js.map +1 -1
  184. package/dist/esm/types/chartType/barParallel/barParallel.d.ts +6 -1
  185. package/dist/esm/types/chartType/barParallel/zBarParallel.d.ts +5 -0
  186. package/dist/esm/types/chartType/barParallel/zBarParallel.js +2 -1
  187. package/dist/esm/types/chartType/barParallel/zBarParallel.js.map +1 -1
  188. package/dist/esm/types/chartType/barPercent/barPercent.d.ts +6 -1
  189. package/dist/esm/types/chartType/barPercent/zBarPercent.d.ts +5 -0
  190. package/dist/esm/types/chartType/barPercent/zBarPercent.js +2 -1
  191. package/dist/esm/types/chartType/barPercent/zBarPercent.js.map +1 -1
  192. package/dist/esm/types/chartType/boxplot/boxplot.d.ts +14 -1
  193. package/dist/esm/types/chartType/boxplot/zBoxplot.d.ts +321 -0
  194. package/dist/esm/types/chartType/boxplot/zBoxplot.js +4 -1
  195. package/dist/esm/types/chartType/boxplot/zBoxplot.js.map +1 -1
  196. package/dist/esm/types/chartType/column/column.d.ts +6 -1
  197. package/dist/esm/types/chartType/column/zColumn.d.ts +5 -0
  198. package/dist/esm/types/chartType/column/zColumn.js +2 -1
  199. package/dist/esm/types/chartType/column/zColumn.js.map +1 -1
  200. package/dist/esm/types/chartType/columnParallel/columnParallel.d.ts +6 -1
  201. package/dist/esm/types/chartType/columnParallel/zColumnParallel.d.ts +5 -0
  202. package/dist/esm/types/chartType/columnParallel/zColumnParallel.js +2 -1
  203. package/dist/esm/types/chartType/columnParallel/zColumnParallel.js.map +1 -1
  204. package/dist/esm/types/chartType/columnPercent/columnPercent.d.ts +6 -1
  205. package/dist/esm/types/chartType/columnPercent/zColumnPercent.d.ts +5 -0
  206. package/dist/esm/types/chartType/columnPercent/zColumnPercent.js +2 -1
  207. package/dist/esm/types/chartType/columnPercent/zColumnPercent.js.map +1 -1
  208. package/dist/esm/types/chartType/dualAxis/dualAxis.d.ts +6 -1
  209. package/dist/esm/types/chartType/dualAxis/zDualAxis.d.ts +5 -0
  210. package/dist/esm/types/chartType/dualAxis/zDualAxis.js +2 -1
  211. package/dist/esm/types/chartType/dualAxis/zDualAxis.js.map +1 -1
  212. package/dist/esm/types/chartType/histogram/histogram.d.ts +6 -1
  213. package/dist/esm/types/chartType/histogram/zHistogram.d.ts +5 -0
  214. package/dist/esm/types/chartType/histogram/zHistogram.js +2 -1
  215. package/dist/esm/types/chartType/histogram/zHistogram.js.map +1 -1
  216. package/dist/esm/types/chartType/line/line.d.ts +6 -1
  217. package/dist/esm/types/chartType/line/zLine.d.ts +5 -0
  218. package/dist/esm/types/chartType/line/zLine.js +2 -1
  219. package/dist/esm/types/chartType/line/zLine.js.map +1 -1
  220. package/dist/esm/types/chartType/scatter/scatter.d.ts +6 -1
  221. package/dist/esm/types/chartType/scatter/zScatter.d.ts +5 -0
  222. package/dist/esm/types/chartType/scatter/zScatter.js +2 -1
  223. package/dist/esm/types/chartType/scatter/zScatter.js.map +1 -1
  224. package/dist/esm/types/index.d.ts +1 -0
  225. package/dist/esm/types/index.js +1 -0
  226. package/dist/esm/types/properties/config/area.d.ts +10 -0
  227. package/dist/esm/types/properties/config/area.js +3 -1
  228. package/dist/esm/types/properties/config/area.js.map +1 -1
  229. package/dist/esm/types/properties/config/bar.d.ts +15 -0
  230. package/dist/esm/types/properties/config/bar.js +3 -1
  231. package/dist/esm/types/properties/config/bar.js.map +1 -1
  232. package/dist/esm/types/properties/config/boxplot.d.ts +26 -0
  233. package/dist/esm/types/properties/config/boxplot.js +10 -1
  234. package/dist/esm/types/properties/config/boxplot.js.map +1 -1
  235. package/dist/esm/types/properties/config/column.d.ts +15 -0
  236. package/dist/esm/types/properties/config/column.js +3 -1
  237. package/dist/esm/types/properties/config/column.js.map +1 -1
  238. package/dist/esm/types/properties/config/config.d.ts +86 -0
  239. package/dist/esm/types/properties/config/dimensionLinkage/dimensionLinkage.d.ts +23 -0
  240. package/dist/esm/types/properties/config/dimensionLinkage/dimensionLinkage.js +9 -0
  241. package/dist/esm/types/properties/config/dimensionLinkage/dimensionLinkage.js.map +1 -0
  242. package/dist/esm/types/properties/config/dimensionLinkage/index.d.ts +1 -0
  243. package/dist/esm/types/properties/config/dimensionLinkage/index.js +1 -0
  244. package/dist/esm/types/properties/config/dualAxis.d.ts +5 -0
  245. package/dist/esm/types/properties/config/dualAxis.js +3 -1
  246. package/dist/esm/types/properties/config/dualAxis.js.map +1 -1
  247. package/dist/esm/types/properties/config/histogram.d.ts +5 -0
  248. package/dist/esm/types/properties/config/histogram.js +3 -1
  249. package/dist/esm/types/properties/config/histogram.js.map +1 -1
  250. package/dist/esm/types/properties/config/index.d.ts +1 -0
  251. package/dist/esm/types/properties/config/index.js +1 -0
  252. package/dist/esm/types/properties/config/label/pieLabel.d.ts +2 -2
  253. package/dist/esm/types/properties/config/line.d.ts +5 -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/scatter.d.ts +5 -0
  257. package/dist/esm/types/properties/config/scatter.js +3 -1
  258. package/dist/esm/types/properties/config/scatter.js.map +1 -1
  259. package/dist/esm/types/properties/markStyle/boxPlotStyle.d.ts +148 -0
  260. package/dist/esm/types/properties/markStyle/boxPlotStyle.js +14 -0
  261. package/dist/esm/types/properties/markStyle/boxPlotStyle.js.map +1 -0
  262. package/dist/esm/types/properties/markStyle/index.d.ts +2 -0
  263. package/dist/esm/types/properties/markStyle/index.js +2 -0
  264. package/dist/esm/types/properties/markStyle/markStyle.d.ts +316 -0
  265. package/dist/esm/types/properties/markStyle/markStyle.js +5 -1
  266. package/dist/esm/types/properties/markStyle/markStyle.js.map +1 -1
  267. package/dist/esm/types/properties/markStyle/outlierStyle.d.ts +161 -0
  268. package/dist/esm/types/properties/markStyle/outlierStyle.js +22 -0
  269. package/dist/esm/types/properties/markStyle/outlierStyle.js.map +1 -0
  270. package/dist/esm/types/properties/regressionLine/ecdfRegressionLine.d.ts +2 -2
  271. package/dist/esm/types/properties/regressionLine/kdeRegressionLine.d.ts +2 -2
  272. package/dist/esm/types/properties/regressionLine/linearRegressionLine.d.ts +2 -2
  273. package/dist/esm/types/properties/regressionLine/logisticRegressionLine.d.ts +2 -2
  274. package/dist/esm/types/properties/regressionLine/lowessRegressionLine.d.ts +2 -2
  275. package/dist/esm/types/properties/regressionLine/polynomialRegressionLine.d.ts +2 -2
  276. package/dist/esm/types/properties/theme/customTheme.d.ts +172 -0
  277. package/dist/esm/types/zVseed.d.ts +381 -0
  278. package/dist/umd/index.js +845 -279
  279. package/dist/umd/index.js.map +1 -1
  280. package/package.json +5 -5
@@ -10,4 +10,5 @@ import { colorCellStyleFill } from "./colorCellStyleFill.js";
10
10
  import { colorFunnelStyleFill } from "./colorFunnelStyleFill.js";
11
11
  import { colorPieStyleFill } from "./colorPieStyleFill.js";
12
12
  import { colorRoseStyleFill } from "./colorRoseStyleFill.js";
13
- export { color, colorAdapter, colorAreaStyleFill, colorBarStyleFill, colorCellStyleFill, colorFunnelStyleFill, colorLineStyleFill, colorPieStyleFill, colorPointStyleFill, colorRoseStyleFill, getColorMeasureId, isLinearColor, linearColor, linearColorForDualAxis };
13
+ import { colorBoxPlotStyleFill } from "./colorBoxPlotStyleFill.js";
14
+ export { color, colorAdapter, colorAreaStyleFill, colorBarStyleFill, colorBoxPlotStyleFill, colorCellStyleFill, colorFunnelStyleFill, colorLineStyleFill, colorPieStyleFill, colorPointStyleFill, colorRoseStyleFill, getColorMeasureId, isLinearColor, linearColor, linearColorForDualAxis };
@@ -40,6 +40,9 @@ const horizontalCrosshairLine = (spec, context)=>{
40
40
  }
41
41
  }
42
42
  };
43
+ const yAxisConfig = result.axes?.find((v)=>'left' === v.orient);
44
+ const yAxisFormatter = yAxisConfig?.label?.formatMethod;
45
+ if (yAxisFormatter) crosshair.yField.label.formatMethod = (text)=>yAxisFormatter(text);
43
46
  return result;
44
47
  };
45
48
  export { horizontalCrosshairLine };
@@ -1 +1 @@
1
- {"version":3,"file":"pipeline/spec/chart/pipes/crosshair/horizontalCrosshairLine.js","sources":["webpack://@visactor/vseed/./src/pipeline/spec/chart/pipes/crosshair/horizontalCrosshairLine.ts"],"sourcesContent":["import type { ICartesianCrosshairSpec, ILineChartSpec } from '@visactor/vchart'\nimport type { VChartSpecPipe } from 'src/types'\n\nexport const horizontalCrosshairLine: VChartSpecPipe = (spec, context) => {\n const result = { ...spec } as ILineChartSpec\n const { advancedVSeed, vseed } = context\n const { chartType } = vseed\n\n const config = advancedVSeed.config?.[chartType as 'line']?.crosshairLine\n if (!config) {\n return result\n }\n\n if (!result.crosshair) {\n result.crosshair = {}\n }\n\n const visible = config.visible || true\n const lineColor = config.lineColor || undefined\n const labelColor = config.labelColor || undefined\n const labelVisible = config.labelVisible || undefined\n const labelBackgroundColor = config.labelBackgroundColor || undefined\n\n const crosshair = result.crosshair as ICartesianCrosshairSpec\n crosshair.yField = {\n visible,\n line: {\n type: 'line',\n style: {\n lineWidth: 1,\n opacity: 1,\n stroke: lineColor,\n lineDash: config.lineDash ?? [4, 2],\n },\n },\n label: {\n visible: labelVisible,\n labelBackground: {\n visible: labelVisible,\n style: {\n fill: labelBackgroundColor,\n },\n },\n style: {\n fill: labelColor,\n },\n },\n }\n\n return result\n}\n"],"names":["horizontalCrosshairLine","spec","context","result","advancedVSeed","vseed","chartType","config","visible","lineColor","undefined","labelColor","labelVisible","labelBackgroundColor","crosshair"],"mappings":"AAGO,MAAMA,0BAA0C,CAACC,MAAMC;IAC5D,MAAMC,SAAS;QAAE,GAAGF,IAAI;IAAC;IACzB,MAAM,EAAEG,aAAa,EAAEC,KAAK,EAAE,GAAGH;IACjC,MAAM,EAAEI,SAAS,EAAE,GAAGD;IAEtB,MAAME,SAASH,cAAc,MAAM,EAAE,CAACE,UAAoB,EAAE;IAC5D,IAAI,CAACC,QACH,OAAOJ;IAGT,IAAI,CAACA,OAAO,SAAS,EACnBA,OAAO,SAAS,GAAG,CAAC;IAGtB,MAAMK,UAAUD,OAAO,OAAO,IAAI;IAClC,MAAME,YAAYF,OAAO,SAAS,IAAIG;IACtC,MAAMC,aAAaJ,OAAO,UAAU,IAAIG;IACxC,MAAME,eAAeL,OAAO,YAAY,IAAIG;IAC5C,MAAMG,uBAAuBN,OAAO,oBAAoB,IAAIG;IAE5D,MAAMI,YAAYX,OAAO,SAAS;IAClCW,UAAU,MAAM,GAAG;QACjBN;QACA,MAAM;YACJ,MAAM;YACN,OAAO;gBACL,WAAW;gBACX,SAAS;gBACT,QAAQC;gBACR,UAAUF,OAAO,QAAQ,IAAI;oBAAC;oBAAG;iBAAE;YACrC;QACF;QACA,OAAO;YACL,SAASK;YACT,iBAAiB;gBACf,SAASA;gBACT,OAAO;oBACL,MAAMC;gBACR;YACF;YACA,OAAO;gBACL,MAAMF;YACR;QACF;IACF;IAEA,OAAOR;AACT"}
1
+ {"version":3,"file":"pipeline/spec/chart/pipes/crosshair/horizontalCrosshairLine.js","sources":["webpack://@visactor/vseed/./src/pipeline/spec/chart/pipes/crosshair/horizontalCrosshairLine.ts"],"sourcesContent":["import type { ICartesianCrosshairSpec, ILineChartSpec } from '@visactor/vchart'\nimport type { VChartSpecPipe } from 'src/types'\n\nexport const horizontalCrosshairLine: VChartSpecPipe = (spec, context) => {\n const result = { ...spec } as ILineChartSpec\n const { advancedVSeed, vseed } = context\n const { chartType } = vseed\n\n const config = advancedVSeed.config?.[chartType as 'line']?.crosshairLine\n if (!config) {\n return result\n }\n\n if (!result.crosshair) {\n result.crosshair = {}\n }\n\n const visible = config.visible || true\n const lineColor = config.lineColor || undefined\n const labelColor = config.labelColor || undefined\n const labelVisible = config.labelVisible || undefined\n const labelBackgroundColor = config.labelBackgroundColor || undefined\n\n const crosshair = result.crosshair as ICartesianCrosshairSpec\n crosshair.yField = {\n visible,\n line: {\n type: 'line',\n style: {\n lineWidth: 1,\n opacity: 1,\n stroke: lineColor,\n lineDash: config.lineDash ?? [4, 2],\n },\n },\n label: {\n visible: labelVisible,\n labelBackground: {\n visible: labelVisible,\n style: {\n fill: labelBackgroundColor,\n },\n },\n style: {\n fill: labelColor,\n },\n },\n }\n const yAxisConfig = result.axes?.find((v) => v.orient === 'left')\n const yAxisFormatter = yAxisConfig?.label?.formatMethod\n if (yAxisFormatter) {\n ;(crosshair.yField.label!.formatMethod as any) = (text: string | string[]) => yAxisFormatter(text)\n }\n\n return result\n}\n"],"names":["horizontalCrosshairLine","spec","context","result","advancedVSeed","vseed","chartType","config","visible","lineColor","undefined","labelColor","labelVisible","labelBackgroundColor","crosshair","yAxisConfig","v","yAxisFormatter","text"],"mappings":"AAGO,MAAMA,0BAA0C,CAACC,MAAMC;IAC5D,MAAMC,SAAS;QAAE,GAAGF,IAAI;IAAC;IACzB,MAAM,EAAEG,aAAa,EAAEC,KAAK,EAAE,GAAGH;IACjC,MAAM,EAAEI,SAAS,EAAE,GAAGD;IAEtB,MAAME,SAASH,cAAc,MAAM,EAAE,CAACE,UAAoB,EAAE;IAC5D,IAAI,CAACC,QACH,OAAOJ;IAGT,IAAI,CAACA,OAAO,SAAS,EACnBA,OAAO,SAAS,GAAG,CAAC;IAGtB,MAAMK,UAAUD,OAAO,OAAO,IAAI;IAClC,MAAME,YAAYF,OAAO,SAAS,IAAIG;IACtC,MAAMC,aAAaJ,OAAO,UAAU,IAAIG;IACxC,MAAME,eAAeL,OAAO,YAAY,IAAIG;IAC5C,MAAMG,uBAAuBN,OAAO,oBAAoB,IAAIG;IAE5D,MAAMI,YAAYX,OAAO,SAAS;IAClCW,UAAU,MAAM,GAAG;QACjBN;QACA,MAAM;YACJ,MAAM;YACN,OAAO;gBACL,WAAW;gBACX,SAAS;gBACT,QAAQC;gBACR,UAAUF,OAAO,QAAQ,IAAI;oBAAC;oBAAG;iBAAE;YACrC;QACF;QACA,OAAO;YACL,SAASK;YACT,iBAAiB;gBACf,SAASA;gBACT,OAAO;oBACL,MAAMC;gBACR;YACF;YACA,OAAO;gBACL,MAAMF;YACR;QACF;IACF;IACA,MAAMI,cAAcZ,OAAO,IAAI,EAAE,KAAK,CAACa,IAAMA,AAAa,WAAbA,EAAE,MAAM;IACrD,MAAMC,iBAAiBF,aAAa,OAAO;IAC3C,IAAIE,gBACAH,UAAU,MAAM,CAAC,KAAK,CAAE,YAAY,GAAW,CAACI,OAA4BD,eAAeC;IAG/F,OAAOf;AACT"}
@@ -19,7 +19,7 @@ const horizontalCrosshairRect = (spec, context)=>{
19
19
  type: 'rect',
20
20
  style: {
21
21
  lineWidth: 0,
22
- opacity: 0.2,
22
+ opacity: 0.26,
23
23
  fill: rectColor
24
24
  }
25
25
  },
@@ -36,6 +36,9 @@ const horizontalCrosshairRect = (spec, context)=>{
36
36
  }
37
37
  }
38
38
  };
39
+ const yAxisConfig = result.axes?.find((v)=>'left' === v.orient);
40
+ const yAxisFormatter = yAxisConfig?.label?.formatMethod;
41
+ if (yAxisFormatter) crosshair.yField.label.formatMethod = (text)=>yAxisFormatter(text);
39
42
  return result;
40
43
  };
41
44
  export { horizontalCrosshairRect };
@@ -1 +1 @@
1
- {"version":3,"file":"pipeline/spec/chart/pipes/crosshair/horizontalCrosshairRect.js","sources":["webpack://@visactor/vseed/./src/pipeline/spec/chart/pipes/crosshair/horizontalCrosshairRect.ts"],"sourcesContent":["import type { ICartesianCrosshairSpec, ILineChartSpec } from '@visactor/vchart'\nimport type { VChartSpecPipe } from 'src/types'\n\nexport const horizontalCrosshairRect: VChartSpecPipe = (spec, context) => {\n const result = { ...spec } as ILineChartSpec\n const { advancedVSeed, vseed } = context\n const { chartType } = vseed\n\n const config = advancedVSeed.config?.[chartType as 'column']?.crosshairRect\n if (!config) {\n return result\n }\n\n if (!result.crosshair) {\n result.crosshair = {}\n }\n\n const visible = config.visible || true\n const rectColor = config.rectColor || undefined\n const labelColor = config.labelColor || undefined\n const labelVisible = config.labelVisible || false\n const labelBackgroundColor = config.labelBackgroundColor || undefined\n\n const crosshair = result.crosshair as ICartesianCrosshairSpec\n crosshair.yField = {\n visible,\n line: {\n type: 'rect',\n style: {\n lineWidth: 0,\n opacity: 0.2,\n fill: rectColor,\n },\n },\n label: {\n visible: labelVisible,\n labelBackground: {\n visible: labelVisible,\n style: {\n fill: labelBackgroundColor,\n },\n },\n style: {\n fill: labelColor,\n },\n },\n }\n\n return result\n}\n"],"names":["horizontalCrosshairRect","spec","context","result","advancedVSeed","vseed","chartType","config","visible","rectColor","undefined","labelColor","labelVisible","labelBackgroundColor","crosshair"],"mappings":"AAGO,MAAMA,0BAA0C,CAACC,MAAMC;IAC5D,MAAMC,SAAS;QAAE,GAAGF,IAAI;IAAC;IACzB,MAAM,EAAEG,aAAa,EAAEC,KAAK,EAAE,GAAGH;IACjC,MAAM,EAAEI,SAAS,EAAE,GAAGD;IAEtB,MAAME,SAASH,cAAc,MAAM,EAAE,CAACE,UAAsB,EAAE;IAC9D,IAAI,CAACC,QACH,OAAOJ;IAGT,IAAI,CAACA,OAAO,SAAS,EACnBA,OAAO,SAAS,GAAG,CAAC;IAGtB,MAAMK,UAAUD,OAAO,OAAO,IAAI;IAClC,MAAME,YAAYF,OAAO,SAAS,IAAIG;IACtC,MAAMC,aAAaJ,OAAO,UAAU,IAAIG;IACxC,MAAME,eAAeL,OAAO,YAAY,IAAI;IAC5C,MAAMM,uBAAuBN,OAAO,oBAAoB,IAAIG;IAE5D,MAAMI,YAAYX,OAAO,SAAS;IAClCW,UAAU,MAAM,GAAG;QACjBN;QACA,MAAM;YACJ,MAAM;YACN,OAAO;gBACL,WAAW;gBACX,SAAS;gBACT,MAAMC;YACR;QACF;QACA,OAAO;YACL,SAASG;YACT,iBAAiB;gBACf,SAASA;gBACT,OAAO;oBACL,MAAMC;gBACR;YACF;YACA,OAAO;gBACL,MAAMF;YACR;QACF;IACF;IAEA,OAAOR;AACT"}
1
+ {"version":3,"file":"pipeline/spec/chart/pipes/crosshair/horizontalCrosshairRect.js","sources":["webpack://@visactor/vseed/./src/pipeline/spec/chart/pipes/crosshair/horizontalCrosshairRect.ts"],"sourcesContent":["import type { ICartesianCrosshairSpec, ILineChartSpec } from '@visactor/vchart'\nimport type { VChartSpecPipe } from 'src/types'\n\nexport const horizontalCrosshairRect: VChartSpecPipe = (spec, context) => {\n const result = { ...spec } as ILineChartSpec\n const { advancedVSeed, vseed } = context\n const { chartType } = vseed\n\n const config = advancedVSeed.config?.[chartType as 'column']?.crosshairRect\n if (!config) {\n return result\n }\n\n if (!result.crosshair) {\n result.crosshair = {}\n }\n\n const visible = config.visible || true\n const rectColor = config.rectColor || undefined\n const labelColor = config.labelColor || undefined\n const labelVisible = config.labelVisible || false\n const labelBackgroundColor = config.labelBackgroundColor || undefined\n\n const crosshair = result.crosshair as ICartesianCrosshairSpec\n crosshair.yField = {\n visible,\n line: {\n type: 'rect',\n style: {\n lineWidth: 0,\n opacity: 0.26,\n fill: rectColor,\n },\n },\n label: {\n visible: labelVisible,\n labelBackground: {\n visible: labelVisible,\n style: {\n fill: labelBackgroundColor,\n },\n },\n style: {\n fill: labelColor,\n },\n },\n }\n const yAxisConfig = result.axes?.find((v) => v.orient === 'left')\n const yAxisFormatter = yAxisConfig?.label?.formatMethod\n if (yAxisFormatter) {\n ;(crosshair.yField.label!.formatMethod as any) = (text: string | string[]) => yAxisFormatter(text)\n }\n return result\n}\n"],"names":["horizontalCrosshairRect","spec","context","result","advancedVSeed","vseed","chartType","config","visible","rectColor","undefined","labelColor","labelVisible","labelBackgroundColor","crosshair","yAxisConfig","v","yAxisFormatter","text"],"mappings":"AAGO,MAAMA,0BAA0C,CAACC,MAAMC;IAC5D,MAAMC,SAAS;QAAE,GAAGF,IAAI;IAAC;IACzB,MAAM,EAAEG,aAAa,EAAEC,KAAK,EAAE,GAAGH;IACjC,MAAM,EAAEI,SAAS,EAAE,GAAGD;IAEtB,MAAME,SAASH,cAAc,MAAM,EAAE,CAACE,UAAsB,EAAE;IAC9D,IAAI,CAACC,QACH,OAAOJ;IAGT,IAAI,CAACA,OAAO,SAAS,EACnBA,OAAO,SAAS,GAAG,CAAC;IAGtB,MAAMK,UAAUD,OAAO,OAAO,IAAI;IAClC,MAAME,YAAYF,OAAO,SAAS,IAAIG;IACtC,MAAMC,aAAaJ,OAAO,UAAU,IAAIG;IACxC,MAAME,eAAeL,OAAO,YAAY,IAAI;IAC5C,MAAMM,uBAAuBN,OAAO,oBAAoB,IAAIG;IAE5D,MAAMI,YAAYX,OAAO,SAAS;IAClCW,UAAU,MAAM,GAAG;QACjBN;QACA,MAAM;YACJ,MAAM;YACN,OAAO;gBACL,WAAW;gBACX,SAAS;gBACT,MAAMC;YACR;QACF;QACA,OAAO;YACL,SAASG;YACT,iBAAiB;gBACf,SAASA;gBACT,OAAO;oBACL,MAAMC;gBACR;YACF;YACA,OAAO;gBACL,MAAMF;YACR;QACF;IACF;IACA,MAAMI,cAAcZ,OAAO,IAAI,EAAE,KAAK,CAACa,IAAMA,AAAa,WAAbA,EAAE,MAAM;IACrD,MAAMC,iBAAiBF,aAAa,OAAO;IAC3C,IAAIE,gBACAH,UAAU,MAAM,CAAC,KAAK,CAAE,YAAY,GAAW,CAACI,OAA4BD,eAAeC;IAE/F,OAAOf;AACT"}
@@ -40,6 +40,9 @@ const verticalCrosshairLine = (spec, context)=>{
40
40
  }
41
41
  }
42
42
  };
43
+ const xAxisConfig = result.axes?.find((v)=>'bottom' === v.orient);
44
+ const xAxisFormatter = xAxisConfig?.label?.formatMethod;
45
+ if (xAxisFormatter) crosshair.xField.label.formatMethod = (text)=>xAxisFormatter(text);
43
46
  return result;
44
47
  };
45
48
  export { verticalCrosshairLine };
@@ -1 +1 @@
1
- {"version":3,"file":"pipeline/spec/chart/pipes/crosshair/verticalCrosshairLine.js","sources":["webpack://@visactor/vseed/./src/pipeline/spec/chart/pipes/crosshair/verticalCrosshairLine.ts"],"sourcesContent":["import type { ICartesianCrosshairSpec, ILineChartSpec } from '@visactor/vchart'\nimport type { VChartSpecPipe } from 'src/types'\n\nexport const verticalCrosshairLine: VChartSpecPipe = (spec, context) => {\n const result = { ...spec } as ILineChartSpec\n const { advancedVSeed, vseed } = context\n const { chartType } = vseed\n\n const config = advancedVSeed.config?.[chartType as 'line']?.crosshairLine\n if (!config) {\n return result\n }\n\n if (!result.crosshair) {\n result.crosshair = {}\n }\n\n const visible = config.visible || true\n const lineColor = config.lineColor || undefined\n const labelColor = config.labelColor || undefined\n const labelVisible = config.labelVisible || undefined\n const labelBackgroundColor = config.labelBackgroundColor || undefined\n\n const crosshair = result.crosshair as ICartesianCrosshairSpec\n crosshair.xField = {\n visible,\n line: {\n type: 'line',\n style: {\n lineWidth: 1,\n opacity: 1,\n stroke: lineColor,\n lineDash: config.lineDash ?? [4, 2],\n },\n },\n label: {\n visible: labelVisible,\n labelBackground: {\n visible: labelVisible,\n style: {\n fill: labelBackgroundColor,\n },\n },\n style: {\n fill: labelColor,\n },\n },\n }\n\n return result\n}\n"],"names":["verticalCrosshairLine","spec","context","result","advancedVSeed","vseed","chartType","config","visible","lineColor","undefined","labelColor","labelVisible","labelBackgroundColor","crosshair"],"mappings":"AAGO,MAAMA,wBAAwC,CAACC,MAAMC;IAC1D,MAAMC,SAAS;QAAE,GAAGF,IAAI;IAAC;IACzB,MAAM,EAAEG,aAAa,EAAEC,KAAK,EAAE,GAAGH;IACjC,MAAM,EAAEI,SAAS,EAAE,GAAGD;IAEtB,MAAME,SAASH,cAAc,MAAM,EAAE,CAACE,UAAoB,EAAE;IAC5D,IAAI,CAACC,QACH,OAAOJ;IAGT,IAAI,CAACA,OAAO,SAAS,EACnBA,OAAO,SAAS,GAAG,CAAC;IAGtB,MAAMK,UAAUD,OAAO,OAAO,IAAI;IAClC,MAAME,YAAYF,OAAO,SAAS,IAAIG;IACtC,MAAMC,aAAaJ,OAAO,UAAU,IAAIG;IACxC,MAAME,eAAeL,OAAO,YAAY,IAAIG;IAC5C,MAAMG,uBAAuBN,OAAO,oBAAoB,IAAIG;IAE5D,MAAMI,YAAYX,OAAO,SAAS;IAClCW,UAAU,MAAM,GAAG;QACjBN;QACA,MAAM;YACJ,MAAM;YACN,OAAO;gBACL,WAAW;gBACX,SAAS;gBACT,QAAQC;gBACR,UAAUF,OAAO,QAAQ,IAAI;oBAAC;oBAAG;iBAAE;YACrC;QACF;QACA,OAAO;YACL,SAASK;YACT,iBAAiB;gBACf,SAASA;gBACT,OAAO;oBACL,MAAMC;gBACR;YACF;YACA,OAAO;gBACL,MAAMF;YACR;QACF;IACF;IAEA,OAAOR;AACT"}
1
+ {"version":3,"file":"pipeline/spec/chart/pipes/crosshair/verticalCrosshairLine.js","sources":["webpack://@visactor/vseed/./src/pipeline/spec/chart/pipes/crosshair/verticalCrosshairLine.ts"],"sourcesContent":["import type { ICartesianCrosshairSpec, ILineChartSpec } from '@visactor/vchart'\nimport type { VChartSpecPipe } from 'src/types'\n\nexport const verticalCrosshairLine: VChartSpecPipe = (spec, context) => {\n const result = { ...spec } as ILineChartSpec\n const { advancedVSeed, vseed } = context\n const { chartType } = vseed\n\n const config = advancedVSeed.config?.[chartType as 'line']?.crosshairLine\n if (!config) {\n return result\n }\n\n if (!result.crosshair) {\n result.crosshair = {}\n }\n\n const visible = config.visible || true\n const lineColor = config.lineColor || undefined\n const labelColor = config.labelColor || undefined\n const labelVisible = config.labelVisible || undefined\n const labelBackgroundColor = config.labelBackgroundColor || undefined\n\n const crosshair = result.crosshair as ICartesianCrosshairSpec\n crosshair.xField = {\n visible,\n line: {\n type: 'line',\n style: {\n lineWidth: 1,\n opacity: 1,\n stroke: lineColor,\n lineDash: config.lineDash ?? [4, 2],\n },\n },\n label: {\n visible: labelVisible,\n labelBackground: {\n visible: labelVisible,\n style: {\n fill: labelBackgroundColor,\n },\n },\n style: {\n fill: labelColor,\n },\n },\n }\n const xAxisConfig = result.axes?.find((v) => v.orient === 'bottom')\n const xAxisFormatter = xAxisConfig?.label?.formatMethod\n if (xAxisFormatter) {\n ;(crosshair.xField.label!.formatMethod as any) = (text: string | string[]) => xAxisFormatter(text)\n }\n\n return result\n}\n"],"names":["verticalCrosshairLine","spec","context","result","advancedVSeed","vseed","chartType","config","visible","lineColor","undefined","labelColor","labelVisible","labelBackgroundColor","crosshair","xAxisConfig","v","xAxisFormatter","text"],"mappings":"AAGO,MAAMA,wBAAwC,CAACC,MAAMC;IAC1D,MAAMC,SAAS;QAAE,GAAGF,IAAI;IAAC;IACzB,MAAM,EAAEG,aAAa,EAAEC,KAAK,EAAE,GAAGH;IACjC,MAAM,EAAEI,SAAS,EAAE,GAAGD;IAEtB,MAAME,SAASH,cAAc,MAAM,EAAE,CAACE,UAAoB,EAAE;IAC5D,IAAI,CAACC,QACH,OAAOJ;IAGT,IAAI,CAACA,OAAO,SAAS,EACnBA,OAAO,SAAS,GAAG,CAAC;IAGtB,MAAMK,UAAUD,OAAO,OAAO,IAAI;IAClC,MAAME,YAAYF,OAAO,SAAS,IAAIG;IACtC,MAAMC,aAAaJ,OAAO,UAAU,IAAIG;IACxC,MAAME,eAAeL,OAAO,YAAY,IAAIG;IAC5C,MAAMG,uBAAuBN,OAAO,oBAAoB,IAAIG;IAE5D,MAAMI,YAAYX,OAAO,SAAS;IAClCW,UAAU,MAAM,GAAG;QACjBN;QACA,MAAM;YACJ,MAAM;YACN,OAAO;gBACL,WAAW;gBACX,SAAS;gBACT,QAAQC;gBACR,UAAUF,OAAO,QAAQ,IAAI;oBAAC;oBAAG;iBAAE;YACrC;QACF;QACA,OAAO;YACL,SAASK;YACT,iBAAiB;gBACf,SAASA;gBACT,OAAO;oBACL,MAAMC;gBACR;YACF;YACA,OAAO;gBACL,MAAMF;YACR;QACF;IACF;IACA,MAAMI,cAAcZ,OAAO,IAAI,EAAE,KAAK,CAACa,IAAMA,AAAa,aAAbA,EAAE,MAAM;IACrD,MAAMC,iBAAiBF,aAAa,OAAO;IAC3C,IAAIE,gBACAH,UAAU,MAAM,CAAC,KAAK,CAAE,YAAY,GAAW,CAACI,OAA4BD,eAAeC;IAG/F,OAAOf;AACT"}
@@ -19,7 +19,7 @@ const verticalCrosshairRect = (spec, context)=>{
19
19
  type: 'rect',
20
20
  style: {
21
21
  lineWidth: 0,
22
- opacity: 0.2,
22
+ opacity: 0.26,
23
23
  fill: rectColor
24
24
  }
25
25
  },
@@ -36,6 +36,9 @@ const verticalCrosshairRect = (spec, context)=>{
36
36
  }
37
37
  }
38
38
  };
39
+ const xAxisConfig = result.axes?.find((v)=>'bottom' === v.orient);
40
+ const xAxisFormatter = xAxisConfig?.label?.formatMethod;
41
+ if (xAxisFormatter) crosshair.xField.label.formatMethod = (text)=>xAxisFormatter(text);
39
42
  return result;
40
43
  };
41
44
  export { verticalCrosshairRect };
@@ -1 +1 @@
1
- {"version":3,"file":"pipeline/spec/chart/pipes/crosshair/verticalCrosshairRect.js","sources":["webpack://@visactor/vseed/./src/pipeline/spec/chart/pipes/crosshair/verticalCrosshairRect.ts"],"sourcesContent":["import type { ICartesianCrosshairSpec, ILineChartSpec } from '@visactor/vchart'\nimport type { VChartSpecPipe } from 'src/types'\n\nexport const verticalCrosshairRect: VChartSpecPipe = (spec, context) => {\n const result = { ...spec } as ILineChartSpec\n const { advancedVSeed, vseed } = context\n const { chartType } = vseed\n\n const config = advancedVSeed.config?.[chartType as 'column']?.crosshairRect\n if (!config) {\n return result\n }\n\n if (!result.crosshair) {\n result.crosshair = {}\n }\n\n const visible = config.visible || true\n const rectColor = config.rectColor || undefined\n const labelColor = config.labelColor || undefined\n const labelVisible = config.labelVisible || false\n const labelBackgroundColor = config.labelBackgroundColor || undefined\n\n const crosshair = result.crosshair as ICartesianCrosshairSpec\n crosshair.xField = {\n visible,\n line: {\n type: 'rect',\n style: {\n lineWidth: 0,\n opacity: 0.2,\n fill: rectColor,\n },\n },\n label: {\n visible: labelVisible,\n labelBackground: {\n visible: labelVisible,\n style: {\n fill: labelBackgroundColor,\n },\n },\n style: {\n fill: labelColor,\n },\n },\n }\n\n return result\n}\n"],"names":["verticalCrosshairRect","spec","context","result","advancedVSeed","vseed","chartType","config","visible","rectColor","undefined","labelColor","labelVisible","labelBackgroundColor","crosshair"],"mappings":"AAGO,MAAMA,wBAAwC,CAACC,MAAMC;IAC1D,MAAMC,SAAS;QAAE,GAAGF,IAAI;IAAC;IACzB,MAAM,EAAEG,aAAa,EAAEC,KAAK,EAAE,GAAGH;IACjC,MAAM,EAAEI,SAAS,EAAE,GAAGD;IAEtB,MAAME,SAASH,cAAc,MAAM,EAAE,CAACE,UAAsB,EAAE;IAC9D,IAAI,CAACC,QACH,OAAOJ;IAGT,IAAI,CAACA,OAAO,SAAS,EACnBA,OAAO,SAAS,GAAG,CAAC;IAGtB,MAAMK,UAAUD,OAAO,OAAO,IAAI;IAClC,MAAME,YAAYF,OAAO,SAAS,IAAIG;IACtC,MAAMC,aAAaJ,OAAO,UAAU,IAAIG;IACxC,MAAME,eAAeL,OAAO,YAAY,IAAI;IAC5C,MAAMM,uBAAuBN,OAAO,oBAAoB,IAAIG;IAE5D,MAAMI,YAAYX,OAAO,SAAS;IAClCW,UAAU,MAAM,GAAG;QACjBN;QACA,MAAM;YACJ,MAAM;YACN,OAAO;gBACL,WAAW;gBACX,SAAS;gBACT,MAAMC;YACR;QACF;QACA,OAAO;YACL,SAASG;YACT,iBAAiB;gBACf,SAASA;gBACT,OAAO;oBACL,MAAMC;gBACR;YACF;YACA,OAAO;gBACL,MAAMF;YACR;QACF;IACF;IAEA,OAAOR;AACT"}
1
+ {"version":3,"file":"pipeline/spec/chart/pipes/crosshair/verticalCrosshairRect.js","sources":["webpack://@visactor/vseed/./src/pipeline/spec/chart/pipes/crosshair/verticalCrosshairRect.ts"],"sourcesContent":["import type { ICartesianCrosshairSpec, ILineChartSpec } from '@visactor/vchart'\nimport type { VChartSpecPipe } from 'src/types'\n\nexport const verticalCrosshairRect: VChartSpecPipe = (spec, context) => {\n const result = { ...spec } as ILineChartSpec\n const { advancedVSeed, vseed } = context\n const { chartType } = vseed\n\n const config = advancedVSeed.config?.[chartType as 'column']?.crosshairRect\n if (!config) {\n return result\n }\n\n if (!result.crosshair) {\n result.crosshair = {}\n }\n\n const visible = config.visible || true\n const rectColor = config.rectColor || undefined\n const labelColor = config.labelColor || undefined\n const labelVisible = config.labelVisible || false\n const labelBackgroundColor = config.labelBackgroundColor || undefined\n\n const crosshair = result.crosshair as ICartesianCrosshairSpec\n crosshair.xField = {\n visible,\n line: {\n type: 'rect',\n style: {\n lineWidth: 0,\n opacity: 0.26,\n fill: rectColor,\n },\n },\n label: {\n visible: labelVisible,\n labelBackground: {\n visible: labelVisible,\n style: {\n fill: labelBackgroundColor,\n },\n },\n style: {\n fill: labelColor,\n },\n },\n }\n const xAxisConfig = result.axes?.find((v) => v.orient === 'bottom')\n const xAxisFormatter = xAxisConfig?.label?.formatMethod\n if (xAxisFormatter) {\n ;(crosshair.xField.label!.formatMethod as any) = (text: string | string[]) => xAxisFormatter(text)\n }\n\n return result\n}\n"],"names":["verticalCrosshairRect","spec","context","result","advancedVSeed","vseed","chartType","config","visible","rectColor","undefined","labelColor","labelVisible","labelBackgroundColor","crosshair","xAxisConfig","v","xAxisFormatter","text"],"mappings":"AAGO,MAAMA,wBAAwC,CAACC,MAAMC;IAC1D,MAAMC,SAAS;QAAE,GAAGF,IAAI;IAAC;IACzB,MAAM,EAAEG,aAAa,EAAEC,KAAK,EAAE,GAAGH;IACjC,MAAM,EAAEI,SAAS,EAAE,GAAGD;IAEtB,MAAME,SAASH,cAAc,MAAM,EAAE,CAACE,UAAsB,EAAE;IAC9D,IAAI,CAACC,QACH,OAAOJ;IAGT,IAAI,CAACA,OAAO,SAAS,EACnBA,OAAO,SAAS,GAAG,CAAC;IAGtB,MAAMK,UAAUD,OAAO,OAAO,IAAI;IAClC,MAAME,YAAYF,OAAO,SAAS,IAAIG;IACtC,MAAMC,aAAaJ,OAAO,UAAU,IAAIG;IACxC,MAAME,eAAeL,OAAO,YAAY,IAAI;IAC5C,MAAMM,uBAAuBN,OAAO,oBAAoB,IAAIG;IAE5D,MAAMI,YAAYX,OAAO,SAAS;IAClCW,UAAU,MAAM,GAAG;QACjBN;QACA,MAAM;YACJ,MAAM;YACN,OAAO;gBACL,WAAW;gBACX,SAAS;gBACT,MAAMC;YACR;QACF;QACA,OAAO;YACL,SAASG;YACT,iBAAiB;gBACf,SAASA;gBACT,OAAO;oBACL,MAAMC;gBACR;YACF;YACA,OAAO;gBACL,MAAMF;YACR;QACF;IACF;IACA,MAAMI,cAAcZ,OAAO,IAAI,EAAE,KAAK,CAACa,IAAMA,AAAa,aAAbA,EAAE,MAAM;IACrD,MAAMC,iBAAiBF,aAAa,OAAO;IAC3C,IAAIE,gBACAH,UAAU,MAAM,CAAC,KAAK,CAAE,YAAY,GAAW,CAACI,OAA4BD,eAAeC;IAG/F,OAAOf;AACT"}
@@ -18,3 +18,4 @@ export * from './size';
18
18
  export * from './barWidth';
19
19
  export * from './regressionLine';
20
20
  export * from './region';
21
+ export * from './pipeFilter';
@@ -18,3 +18,4 @@ export * from "./size/index.js";
18
18
  export * from "./barWidth/index.js";
19
19
  export * from "./regressionLine/index.js";
20
20
  export * from "./region/index.js";
21
+ export * from "./pipeFilter/index.js";
@@ -12,10 +12,10 @@ const initPivot = (spec)=>{
12
12
  widthMode: 'standard',
13
13
  autoFillWidth: true,
14
14
  defaultHeaderColWidth: 'auto',
15
- defaultColWidth: 200,
15
+ defaultColWidth: 240,
16
16
  heightMode: 'standard',
17
17
  autoFillHeight: true,
18
- defaultRowHeight: 100,
18
+ defaultRowHeight: 180,
19
19
  defaultHeaderRowHeight: 'auto',
20
20
  indicatorsAsCol: false,
21
21
  select: {
@@ -1 +1 @@
1
- {"version":3,"file":"pipeline/spec/chart/pipes/init/pivot.js","sources":["webpack://@visactor/vseed/./src/pipeline/spec/chart/pipes/init/pivot.ts"],"sourcesContent":["import type { PivotChartConstructorOptions } from '@visactor/vtable'\nimport type { PivotChartSpecPipe } from 'src/types'\n\nexport const initPivot: PivotChartSpecPipe = (spec) => {\n const result = { ...spec } as PivotChartConstructorOptions\n\n return {\n ...result,\n animation: true,\n rows: [],\n columns: [],\n indicators: [],\n records: [],\n widthMode: 'standard',\n autoFillWidth: true,\n defaultHeaderColWidth: 'auto',\n defaultColWidth: 200,\n\n heightMode: 'standard',\n autoFillHeight: true,\n defaultRowHeight: 100,\n defaultHeaderRowHeight: 'auto',\n\n indicatorsAsCol: false,\n select: {\n highlightMode: 'cell',\n headerSelectMode: 'inline',\n },\n hover: {\n highlightMode: 'cross',\n },\n tooltip: {\n isShowOverflowTextTooltip: true,\n },\n corner: {\n titleOnDimension: 'row',\n },\n animationAppear: {\n duration: 600,\n type: 'all',\n direction: 'row',\n },\n }\n}\n"],"names":["initPivot","spec","result"],"mappings":"AAGO,MAAMA,YAAgC,CAACC;IAC5C,MAAMC,SAAS;QAAE,GAAGD,IAAI;IAAC;IAEzB,OAAO;QACL,GAAGC,MAAM;QACT,WAAW;QACX,MAAM,EAAE;QACR,SAAS,EAAE;QACX,YAAY,EAAE;QACd,SAAS,EAAE;QACX,WAAW;QACX,eAAe;QACf,uBAAuB;QACvB,iBAAiB;QAEjB,YAAY;QACZ,gBAAgB;QAChB,kBAAkB;QAClB,wBAAwB;QAExB,iBAAiB;QACjB,QAAQ;YACN,eAAe;YACf,kBAAkB;QACpB;QACA,OAAO;YACL,eAAe;QACjB;QACA,SAAS;YACP,2BAA2B;QAC7B;QACA,QAAQ;YACN,kBAAkB;QACpB;QACA,iBAAiB;YACf,UAAU;YACV,MAAM;YACN,WAAW;QACb;IACF;AACF"}
1
+ {"version":3,"file":"pipeline/spec/chart/pipes/init/pivot.js","sources":["webpack://@visactor/vseed/./src/pipeline/spec/chart/pipes/init/pivot.ts"],"sourcesContent":["import type { PivotChartConstructorOptions } from '@visactor/vtable'\nimport type { PivotChartSpecPipe } from 'src/types'\n\nexport const initPivot: PivotChartSpecPipe = (spec) => {\n const result = { ...spec } as PivotChartConstructorOptions\n\n return {\n ...result,\n animation: true,\n rows: [],\n columns: [],\n indicators: [],\n records: [],\n widthMode: 'standard',\n autoFillWidth: true,\n defaultHeaderColWidth: 'auto',\n defaultColWidth: 240,\n\n heightMode: 'standard',\n autoFillHeight: true,\n defaultRowHeight: 180,\n defaultHeaderRowHeight: 'auto',\n\n indicatorsAsCol: false,\n select: {\n highlightMode: 'cell',\n headerSelectMode: 'inline',\n },\n hover: {\n highlightMode: 'cross',\n },\n tooltip: {\n isShowOverflowTextTooltip: true,\n },\n corner: {\n titleOnDimension: 'row',\n },\n animationAppear: {\n duration: 600,\n type: 'all',\n direction: 'row',\n },\n }\n}\n"],"names":["initPivot","spec","result"],"mappings":"AAGO,MAAMA,YAAgC,CAACC;IAC5C,MAAMC,SAAS;QAAE,GAAGD,IAAI;IAAC;IAEzB,OAAO;QACL,GAAGC,MAAM;QACT,WAAW;QACX,MAAM,EAAE;QACR,SAAS,EAAE;QACX,YAAY,EAAE;QACd,SAAS,EAAE;QACX,WAAW;QACX,eAAe;QACf,uBAAuB;QACvB,iBAAiB;QAEjB,YAAY;QACZ,gBAAgB;QAChB,kBAAkB;QAClB,wBAAwB;QAExB,iBAAiB;QACjB,QAAQ;YACN,eAAe;YACf,kBAAkB;QACpB;QACA,OAAO;YACL,eAAe;QACjB;QACA,SAAS;YACP,2BAA2B;QAC7B;QACA,QAAQ;YACN,kBAAkB;QACpB;QACA,iBAAiB;YACf,UAAU;YACV,MAAM;YACN,WAAW;QACb;IACF;AACF"}
@@ -0,0 +1,2 @@
1
+ import type { VChartSpecPipe } from '../../../../../types';
2
+ export declare const boxPlotStyle: VChartSpecPipe;
@@ -0,0 +1,52 @@
1
+ import { selector } from "../../../../../dataSelector/index.js";
2
+ import { isEmpty, isNullish } from "remeda";
3
+ const boxPlotStyle_boxPlotStyle = (spec, context)=>{
4
+ const { advancedVSeed, vseed } = context;
5
+ const { markStyle, config } = advancedVSeed;
6
+ const { boxPlotStyle } = markStyle;
7
+ const theme = config?.[vseed.chartType]?.boxPlotStyle;
8
+ const result = {
9
+ ...spec,
10
+ boxPlot: {
11
+ style: {
12
+ shaftShape: 'filled-line',
13
+ visible: true,
14
+ shaftWidth: '50%',
15
+ stroke: theme?.boxBorderColor
16
+ }
17
+ }
18
+ };
19
+ if (isNullish(boxPlotStyle) || isEmpty(boxPlotStyle)) return result;
20
+ const boxPlotStyles = Array.isArray(boxPlotStyle) ? boxPlotStyle : [
21
+ boxPlotStyle
22
+ ];
23
+ const customMap = boxPlotStyles.reduce((result, style, index)=>{
24
+ const { boxColor, boxColorOpacity, boxBorderColor, boxBorderWidth = 1, boxVisible = true, boxBorderOpacity } = style;
25
+ return {
26
+ ...result,
27
+ [`custom${index + 1}`]: {
28
+ level: index + 1,
29
+ filter: (datum)=>{
30
+ if (selector(datum, style.selector)) return true;
31
+ return false;
32
+ },
33
+ style: {
34
+ visible: boxVisible,
35
+ fill: boxColor,
36
+ fillOpacity: boxColorOpacity,
37
+ lineWidth: boxBorderWidth,
38
+ stroke: boxBorderColor,
39
+ strokeOpacity: boxBorderOpacity
40
+ }
41
+ }
42
+ };
43
+ }, {});
44
+ result.boxPlot.state = {
45
+ ...result.boxPlot.state,
46
+ ...customMap
47
+ };
48
+ return result;
49
+ };
50
+ export { boxPlotStyle_boxPlotStyle as boxPlotStyle };
51
+
52
+ //# sourceMappingURL=boxPlotStyle.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pipeline/spec/chart/pipes/markStyle/boxPlotStyle.js","sources":["webpack://@visactor/vseed/./src/pipeline/spec/chart/pipes/markStyle/boxPlotStyle.ts"],"sourcesContent":["import type { IBoxPlotChartSpec } from '@visactor/vchart'\nimport { selector } from '../../../../../dataSelector'\nimport type { BoxPlotStyle, Datum, VChartSpecPipe } from 'src/types'\nimport { isEmpty, isNullish } from 'remeda'\n\nexport const boxPlotStyle: VChartSpecPipe = (spec, context) => {\n const { advancedVSeed, vseed } = context\n const { markStyle, config } = advancedVSeed\n const { boxPlotStyle } = markStyle\n const theme = config?.[vseed.chartType as 'boxPlot']?.boxPlotStyle\n\n const result = {\n ...spec,\n boxPlot: {\n style: {\n shaftShape: 'filled-line',\n visible: true,\n shaftWidth: '50%',\n stroke: theme?.boxBorderColor,\n },\n },\n } as IBoxPlotChartSpec\n\n if (isNullish(boxPlotStyle) || isEmpty(boxPlotStyle)) {\n return result\n }\n\n const boxPlotStyles = (Array.isArray(boxPlotStyle) ? boxPlotStyle : [boxPlotStyle]) as BoxPlotStyle[]\n\n const customMap = boxPlotStyles.reduce<object>((result, style, index) => {\n const { boxColor, boxColorOpacity, boxBorderColor, boxBorderWidth = 1, boxVisible = true, boxBorderOpacity } = style\n\n return {\n ...result,\n [`custom${index + 1}`]: {\n // 优先级: 后者覆盖前者\n level: index + 1,\n filter: (datum: Datum) => {\n if (selector(datum, style.selector)) {\n return true\n }\n return false\n },\n style: {\n visible: boxVisible,\n fill: boxColor,\n fillOpacity: boxColorOpacity,\n lineWidth: boxBorderWidth,\n stroke: boxBorderColor,\n strokeOpacity: boxBorderOpacity,\n },\n },\n }\n }, {})\n\n result.boxPlot!.state = {\n ...result.boxPlot!.state,\n ...customMap,\n }\n\n return result\n}\n"],"names":["boxPlotStyle","spec","context","advancedVSeed","vseed","markStyle","config","theme","result","isNullish","isEmpty","boxPlotStyles","Array","customMap","style","index","boxColor","boxColorOpacity","boxBorderColor","boxBorderWidth","boxVisible","boxBorderOpacity","datum","selector"],"mappings":";;AAKO,MAAMA,4BAA+B,CAACC,MAAMC;IACjD,MAAM,EAAEC,aAAa,EAAEC,KAAK,EAAE,GAAGF;IACjC,MAAM,EAAEG,SAAS,EAAEC,MAAM,EAAE,GAAGH;IAC9B,MAAM,EAAEH,YAAY,EAAE,GAAGK;IACzB,MAAME,QAAQD,QAAQ,CAACF,MAAM,SAAS,CAAc,EAAE;IAEtD,MAAMI,SAAS;QACb,GAAGP,IAAI;QACP,SAAS;YACP,OAAO;gBACL,YAAY;gBACZ,SAAS;gBACT,YAAY;gBACZ,QAAQM,OAAO;YACjB;QACF;IACF;IAEA,IAAIE,UAAUT,iBAAiBU,QAAQV,eACrC,OAAOQ;IAGT,MAAMG,gBAAiBC,MAAM,OAAO,CAACZ,gBAAgBA,eAAe;QAACA;KAAa;IAElF,MAAMa,YAAYF,cAAc,MAAM,CAAS,CAACH,QAAQM,OAAOC;QAC7D,MAAM,EAAEC,QAAQ,EAAEC,eAAe,EAAEC,cAAc,EAAEC,iBAAiB,CAAC,EAAEC,aAAa,IAAI,EAAEC,gBAAgB,EAAE,GAAGP;QAE/G,OAAO;YACL,GAAGN,MAAM;YACT,CAAC,CAAC,MAAM,EAAEO,QAAQ,GAAG,CAAC,EAAE;gBAEtB,OAAOA,QAAQ;gBACf,QAAQ,CAACO;oBACP,IAAIC,SAASD,OAAOR,MAAM,QAAQ,GAChC,OAAO;oBAET,OAAO;gBACT;gBACA,OAAO;oBACL,SAASM;oBACT,MAAMJ;oBACN,aAAaC;oBACb,WAAWE;oBACX,QAAQD;oBACR,eAAeG;gBACjB;YACF;QACF;IACF,GAAG,CAAC;IAEJb,OAAO,OAAO,CAAE,KAAK,GAAG;QACtB,GAAGA,OAAO,OAAO,CAAE,KAAK;QACxB,GAAGK,SAAS;IACd;IAEA,OAAOL;AACT"}
@@ -8,3 +8,5 @@ export { funnelStyle } from './funnelStyle';
8
8
  export { pieStyle } from './pieStyle';
9
9
  export { roseStyle } from './roseStyle';
10
10
  export { funnelTransformStyle } from './funnelTransformStyle';
11
+ export { boxPlotStyle } from './boxPlotStyle';
12
+ export { outlierStyle } from './outlierStyle';
@@ -7,5 +7,7 @@ import { funnelStyle } from "./funnelStyle.js";
7
7
  import { pieStyle } from "./pieStyle.js";
8
8
  import { roseStyle } from "./roseStyle.js";
9
9
  import { funnelTransformStyle } from "./funnelTransformStyle.js";
10
+ import { boxPlotStyle } from "./boxPlotStyle.js";
11
+ import { outlierStyle } from "./outlierStyle.js";
10
12
  export * from "./pointState.js";
11
- export { areaStyle, barStyle, cellStyle, funnelStyle, funnelTransformStyle, lineStyle, pieStyle, pointStyle, roseStyle };
13
+ export { areaStyle, barStyle, boxPlotStyle, cellStyle, funnelStyle, funnelTransformStyle, lineStyle, outlierStyle, pieStyle, pointStyle, roseStyle };
@@ -0,0 +1,2 @@
1
+ import type { VChartSpecPipe } from '../../../../../types';
2
+ export declare const outlierStyle: VChartSpecPipe;
@@ -0,0 +1,67 @@
1
+ import { selector } from "../../../../../dataSelector/index.js";
2
+ import { isEmpty, isNullish } from "remeda";
3
+ const outlierStyle_outlierStyle = (spec, context)=>{
4
+ const { advancedVSeed, vseed } = context;
5
+ const { markStyle, config } = advancedVSeed;
6
+ const { outlierStyle } = markStyle;
7
+ const theme = config?.[vseed.chartType]?.outlierStyle;
8
+ const result = {
9
+ ...spec,
10
+ outlier: {
11
+ style: {
12
+ fill: theme?.pointColor
13
+ }
14
+ }
15
+ };
16
+ if (isNullish(outlierStyle) || isEmpty(outlierStyle)) return result;
17
+ const outlierStyles = Array.isArray(outlierStyle) ? outlierStyle : [
18
+ outlierStyle
19
+ ];
20
+ const customMap = outlierStyles.reduce((result, style, index)=>{
21
+ const { pointBorderColor, pointBorderStyle, pointBorderWidth = 1, pointColor, pointColorOpacity, pointSize, pointVisible = true } = style;
22
+ const lineDash = 'dashed' === pointBorderStyle ? [
23
+ 5,
24
+ 2
25
+ ] : 'dotted' === pointBorderStyle ? [
26
+ 2,
27
+ 5
28
+ ] : [
29
+ 0,
30
+ 0
31
+ ];
32
+ return {
33
+ ...result,
34
+ [`custom${index + 1}`]: {
35
+ level: index + 1,
36
+ filter: (datum)=>{
37
+ if (selector(datum, style.selector)) return true;
38
+ return false;
39
+ },
40
+ style: {
41
+ visible: pointVisible,
42
+ size: pointSize,
43
+ fill: pointColor,
44
+ fillOpacity: pointColorOpacity,
45
+ innerBorder: {
46
+ stroke: pointBorderColor,
47
+ lineWidth: pointBorderWidth,
48
+ distance: (pointBorderWidth || 0) / 2,
49
+ lineDash: lineDash
50
+ }
51
+ }
52
+ }
53
+ };
54
+ }, {});
55
+ return {
56
+ ...result,
57
+ outlier: {
58
+ ...result.outlier,
59
+ state: {
60
+ ...customMap
61
+ }
62
+ }
63
+ };
64
+ };
65
+ export { outlierStyle_outlierStyle as outlierStyle };
66
+
67
+ //# sourceMappingURL=outlierStyle.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pipeline/spec/chart/pipes/markStyle/outlierStyle.js","sources":["webpack://@visactor/vseed/./src/pipeline/spec/chart/pipes/markStyle/outlierStyle.ts"],"sourcesContent":["import type { IBoxPlotChartSpec } from '@visactor/vchart'\nimport { selector } from '../../../../../dataSelector'\nimport type { Datum, OutlierStyle, VChartSpecPipe } from 'src/types'\nimport { isEmpty, isNullish } from 'remeda'\n\nexport const outlierStyle: VChartSpecPipe = (spec, context) => {\n const { advancedVSeed, vseed } = context\n const { markStyle, config } = advancedVSeed\n const { outlierStyle } = markStyle\n const theme = config?.[vseed.chartType as 'boxPlot']?.outlierStyle\n const result = {\n ...spec,\n outlier: {\n style: {\n fill: theme?.pointColor,\n },\n },\n } as IBoxPlotChartSpec\n\n if (isNullish(outlierStyle) || isEmpty(outlierStyle)) {\n return result\n }\n\n const outlierStyles = (Array.isArray(outlierStyle) ? outlierStyle : [outlierStyle]) as OutlierStyle[]\n\n const customMap = outlierStyles.reduce<object>((result, style, index) => {\n const {\n pointBorderColor,\n pointBorderStyle,\n pointBorderWidth = 1,\n pointColor,\n pointColorOpacity,\n pointSize,\n pointVisible = true,\n } = style\n\n const lineDash = pointBorderStyle === 'dashed' ? [5, 2] : pointBorderStyle === 'dotted' ? [2, 5] : [0, 0]\n return {\n ...result,\n [`custom${index + 1}`]: {\n // 优先级: 后者覆盖前者\n level: index + 1,\n filter: (datum: Datum) => {\n if (selector(datum, style.selector)) {\n return true\n }\n return false\n },\n style: {\n visible: pointVisible,\n size: pointSize,\n fill: pointColor,\n fillOpacity: pointColorOpacity,\n innerBorder: {\n stroke: pointBorderColor,\n lineWidth: pointBorderWidth,\n distance: (pointBorderWidth || 0) / 2,\n lineDash: lineDash,\n },\n },\n },\n }\n }, {})\n\n return {\n ...result,\n outlier: {\n ...result.outlier,\n state: {\n ...customMap,\n },\n },\n }\n}\n"],"names":["outlierStyle","spec","context","advancedVSeed","vseed","markStyle","config","theme","result","isNullish","isEmpty","outlierStyles","Array","customMap","style","index","pointBorderColor","pointBorderStyle","pointBorderWidth","pointColor","pointColorOpacity","pointSize","pointVisible","lineDash","datum","selector"],"mappings":";;AAKO,MAAMA,4BAA+B,CAACC,MAAMC;IACjD,MAAM,EAAEC,aAAa,EAAEC,KAAK,EAAE,GAAGF;IACjC,MAAM,EAAEG,SAAS,EAAEC,MAAM,EAAE,GAAGH;IAC9B,MAAM,EAAEH,YAAY,EAAE,GAAGK;IACzB,MAAME,QAAQD,QAAQ,CAACF,MAAM,SAAS,CAAc,EAAE;IACtD,MAAMI,SAAS;QACb,GAAGP,IAAI;QACP,SAAS;YACP,OAAO;gBACL,MAAMM,OAAO;YACf;QACF;IACF;IAEA,IAAIE,UAAUT,iBAAiBU,QAAQV,eACrC,OAAOQ;IAGT,MAAMG,gBAAiBC,MAAM,OAAO,CAACZ,gBAAgBA,eAAe;QAACA;KAAa;IAElF,MAAMa,YAAYF,cAAc,MAAM,CAAS,CAACH,QAAQM,OAAOC;QAC7D,MAAM,EACJC,gBAAgB,EAChBC,gBAAgB,EAChBC,mBAAmB,CAAC,EACpBC,UAAU,EACVC,iBAAiB,EACjBC,SAAS,EACTC,eAAe,IAAI,EACpB,GAAGR;QAEJ,MAAMS,WAAWN,AAAqB,aAArBA,mBAAgC;YAAC;YAAG;SAAE,GAAGA,AAAqB,aAArBA,mBAAgC;YAAC;YAAG;SAAE,GAAG;YAAC;YAAG;SAAE;QACzG,OAAO;YACL,GAAGT,MAAM;YACT,CAAC,CAAC,MAAM,EAAEO,QAAQ,GAAG,CAAC,EAAE;gBAEtB,OAAOA,QAAQ;gBACf,QAAQ,CAACS;oBACP,IAAIC,SAASD,OAAOV,MAAM,QAAQ,GAChC,OAAO;oBAET,OAAO;gBACT;gBACA,OAAO;oBACL,SAASQ;oBACT,MAAMD;oBACN,MAAMF;oBACN,aAAaC;oBACb,aAAa;wBACX,QAAQJ;wBACR,WAAWE;wBACX,UAAWA,AAAAA,CAAAA,oBAAoB,KAAK;wBACpC,UAAUK;oBACZ;gBACF;YACF;QACF;IACF,GAAG,CAAC;IAEJ,OAAO;QACL,GAAGf,MAAM;QACT,SAAS;YACP,GAAGA,OAAO,OAAO;YACjB,OAAO;gBACL,GAAGK,SAAS;YACd;QACF;IACF;AACF"}
@@ -0,0 +1,2 @@
1
+ import type { VChartSpecPipe } from '../../../../../types';
2
+ export declare const areaStyleFilter: (pipe: VChartSpecPipe) => VChartSpecPipe;
@@ -0,0 +1,7 @@
1
+ const areaStyleFilter = (pipe)=>(spec, context)=>{
2
+ if ('area' === spec.type) return pipe(spec, context);
3
+ return spec;
4
+ };
5
+ export { areaStyleFilter };
6
+
7
+ //# sourceMappingURL=areaStyleFilter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pipeline/spec/chart/pipes/pipeFilter/areaStyleFilter.js","sources":["webpack://@visactor/vseed/./src/pipeline/spec/chart/pipes/pipeFilter/areaStyleFilter.ts"],"sourcesContent":["import type { IAreaChartSpec } from '@visactor/vchart'\nimport type { VChartSpecPipe } from 'src/types'\n\nexport const areaStyleFilter = (pipe: VChartSpecPipe): VChartSpecPipe => {\n return (spec, context) => {\n if (spec.type === 'area') {\n return pipe(spec, context) as IAreaChartSpec\n }\n\n return spec\n }\n}\n"],"names":["areaStyleFilter","pipe","spec","context"],"mappings":"AAGO,MAAMA,kBAAkB,CAACC,OACvB,CAACC,MAAMC;QACZ,IAAID,AAAc,WAAdA,KAAK,IAAI,EACX,OAAOD,KAAKC,MAAMC;QAGpB,OAAOD;IACT"}
@@ -0,0 +1,2 @@
1
+ import type { VChartSpecPipe } from '../../../../../types';
2
+ export declare const barStyleFilter: (pipe: VChartSpecPipe) => VChartSpecPipe;
@@ -0,0 +1,7 @@
1
+ const barStyleFilter = (pipe)=>(spec, context)=>{
2
+ if ('bar' === spec.type) return pipe(spec, context);
3
+ return spec;
4
+ };
5
+ export { barStyleFilter };
6
+
7
+ //# sourceMappingURL=barStyleFilter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pipeline/spec/chart/pipes/pipeFilter/barStyleFilter.js","sources":["webpack://@visactor/vseed/./src/pipeline/spec/chart/pipes/pipeFilter/barStyleFilter.ts"],"sourcesContent":["import type { IBarChartSpec } from '@visactor/vchart'\nimport type { VChartSpecPipe } from 'src/types'\n\nexport const barStyleFilter = (pipe: VChartSpecPipe): VChartSpecPipe => {\n return (spec, context) => {\n if (spec.type === 'bar') {\n return pipe(spec, context) as IBarChartSpec\n }\n\n return spec\n }\n}\n"],"names":["barStyleFilter","pipe","spec","context"],"mappings":"AAGO,MAAMA,iBAAiB,CAACC,OACtB,CAACC,MAAMC;QACZ,IAAID,AAAc,UAAdA,KAAK,IAAI,EACX,OAAOD,KAAKC,MAAMC;QAGpB,OAAOD;IACT"}
@@ -0,0 +1,4 @@
1
+ export * from './barStyleFilter';
2
+ export * from './lineStyleFilter';
3
+ export * from './pointStyleFilter';
4
+ export * from './areaStyleFilter';
@@ -0,0 +1,4 @@
1
+ export * from "./barStyleFilter.js";
2
+ export * from "./lineStyleFilter.js";
3
+ export * from "./pointStyleFilter.js";
4
+ export * from "./areaStyleFilter.js";
@@ -0,0 +1,2 @@
1
+ import type { VChartSpecPipe } from '../../../../../types';
2
+ export declare const lineStyleFilter: (pipe: VChartSpecPipe) => VChartSpecPipe;
@@ -0,0 +1,7 @@
1
+ const lineStyleFilter = (pipe)=>(spec, context)=>{
2
+ if ('line' === spec.type) return pipe(spec, context);
3
+ return spec;
4
+ };
5
+ export { lineStyleFilter };
6
+
7
+ //# sourceMappingURL=lineStyleFilter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pipeline/spec/chart/pipes/pipeFilter/lineStyleFilter.js","sources":["webpack://@visactor/vseed/./src/pipeline/spec/chart/pipes/pipeFilter/lineStyleFilter.ts"],"sourcesContent":["import type { ILineChartSpec } from '@visactor/vchart'\nimport type { VChartSpecPipe } from 'src/types'\n\nexport const lineStyleFilter = (pipe: VChartSpecPipe): VChartSpecPipe => {\n return (spec, context) => {\n if (spec.type === 'line') {\n return pipe(spec, context) as ILineChartSpec\n }\n\n return spec\n }\n}\n"],"names":["lineStyleFilter","pipe","spec","context"],"mappings":"AAGO,MAAMA,kBAAkB,CAACC,OACvB,CAACC,MAAMC;QACZ,IAAID,AAAc,WAAdA,KAAK,IAAI,EACX,OAAOD,KAAKC,MAAMC;QAGpB,OAAOD;IACT"}
@@ -0,0 +1,2 @@
1
+ import type { VChartSpecPipe } from '../../../../../types';
2
+ export declare const pointStyleFilter: (pipe: VChartSpecPipe) => VChartSpecPipe;
@@ -0,0 +1,7 @@
1
+ const pointStyleFilter = (pipe)=>(spec, context)=>{
2
+ if ('line' === spec.type || 'area' === spec.type) return pipe(spec, context);
3
+ return spec;
4
+ };
5
+ export { pointStyleFilter };
6
+
7
+ //# sourceMappingURL=pointStyleFilter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pipeline/spec/chart/pipes/pipeFilter/pointStyleFilter.js","sources":["webpack://@visactor/vseed/./src/pipeline/spec/chart/pipes/pipeFilter/pointStyleFilter.ts"],"sourcesContent":["import type { ILineChartSpec } from '@visactor/vchart'\nimport type { VChartSpecPipe } from 'src/types'\n\nexport const pointStyleFilter = (pipe: VChartSpecPipe): VChartSpecPipe => {\n return (spec, context) => {\n if (spec.type === 'line' || spec.type === 'area') {\n return pipe(spec, context) as ILineChartSpec\n }\n\n return spec\n }\n}\n"],"names":["pointStyleFilter","pipe","spec","context"],"mappings":"AAGO,MAAMA,mBAAmB,CAACC,OACxB,CAACC,MAAMC;QACZ,IAAID,AAAc,WAAdA,KAAK,IAAI,IAAeA,AAAc,WAAdA,KAAK,IAAI,EACnC,OAAOD,KAAKC,MAAMC;QAGpB,OAAOD;IACT"}
@@ -0,0 +1,2 @@
1
+ import type { PivotChartSpecPipe } from '../../../../../types';
2
+ export declare const dimensionLinkage: PivotChartSpecPipe;
@@ -0,0 +1,47 @@
1
+ const dimensionLinkage = (spec, context)=>{
2
+ const { advancedVSeed, vseed } = context;
3
+ const { chartType } = vseed;
4
+ const config = advancedVSeed.config?.[chartType]?.dimensionLinkage ?? {};
5
+ if (false === config.enable) return spec;
6
+ const indicators = spec.indicators;
7
+ const labelHoverOnAxis = {};
8
+ const chartSpec = indicators?.[0]?.chartSpec;
9
+ const crosshair = chartSpec?.crosshair;
10
+ if (crosshair?.xField) {
11
+ const labelFormat = crosshair.xField.label?.formatMethod;
12
+ labelHoverOnAxis.bottom = {
13
+ visible: config.showLabel ?? crosshair.xField.label?.visible ?? true,
14
+ background: crosshair.xField.label?.labelBackground,
15
+ textStyle: crosshair.xField.label?.style,
16
+ formatMethod: labelFormat ? (text)=>text || 0 === text ? labelFormat(text) : null : void 0
17
+ };
18
+ }
19
+ if (crosshair?.yField) {
20
+ const labelFormat = crosshair.yField.label?.formatMethod;
21
+ labelHoverOnAxis.left = {
22
+ visible: config.showLabel ?? crosshair.yField.label?.visible ?? true,
23
+ background: crosshair.yField.label?.labelBackground,
24
+ textStyle: crosshair.yField.label?.style,
25
+ formatMethod: labelFormat ? (text)=>text || 0 === text ? labelFormat(text) : null : void 0
26
+ };
27
+ }
28
+ if (indicators && indicators.length) indicators.forEach((ind)=>{
29
+ const crosshair = ind?.chartSpec?.crosshair;
30
+ if (crosshair?.xField) crosshair.xField.label = {
31
+ visible: false
32
+ };
33
+ if (crosshair?.yField) crosshair.yField.label = {
34
+ visible: false
35
+ };
36
+ });
37
+ spec.chartDimensionLinkage = {
38
+ showTooltip: config.showTooltip ?? chartSpec?.tooltip?.dimension?.visible ?? true,
39
+ heightLimitToShowTooltipForLastRow: 60,
40
+ widthLimitToShowTooltipForLastColumn: 90,
41
+ labelHoverOnAxis
42
+ };
43
+ return spec;
44
+ };
45
+ export { dimensionLinkage };
46
+
47
+ //# sourceMappingURL=dimensionLinkage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pipeline/spec/chart/pipes/pivotChart/dimensionLinkage.js","sources":["webpack://@visactor/vseed/./src/pipeline/spec/chart/pipes/pivotChart/dimensionLinkage.ts"],"sourcesContent":["import type { ICartesianCrosshairSpec, ILineChartSpec } from '@visactor/vchart'\nimport type { DimensionLinkage, PivotChartSpecPipe } from 'src/types'\n\nexport const dimensionLinkage: PivotChartSpecPipe = (spec, context) => {\n const { advancedVSeed, vseed } = context\n const { chartType } = vseed\n\n const config = (advancedVSeed.config?.[chartType as 'line']?.dimensionLinkage ?? {}) as DimensionLinkage\n\n if (config.enable === false) {\n return spec\n }\n\n const indicators = spec.indicators\n const labelHoverOnAxis = {}\n const chartSpec = (indicators as any)?.[0]?.chartSpec as ILineChartSpec\n const crosshair = chartSpec?.crosshair as ICartesianCrosshairSpec\n\n if (crosshair?.xField) {\n const labelFormat = crosshair.xField.label?.formatMethod\n ;(labelHoverOnAxis as any).bottom = {\n visible: config.showLabel ?? crosshair.xField.label?.visible ?? true,\n background: crosshair.xField.label?.labelBackground,\n textStyle: crosshair.xField.label?.style,\n formatMethod: labelFormat\n ? (text: string | string[] | number) => (text || text === 0 ? labelFormat(text) : null)\n : undefined,\n }\n }\n if (crosshair?.yField) {\n const labelFormat = crosshair.yField.label?.formatMethod\n ;(labelHoverOnAxis as any).left = {\n visible: config.showLabel ?? crosshair.yField.label?.visible ?? true,\n background: crosshair.yField.label?.labelBackground,\n textStyle: crosshair.yField.label?.style,\n formatMethod: labelFormat\n ? (text: string | string[] | number) => (text || text === 0 ? labelFormat(text) : null)\n : undefined,\n }\n }\n\n if (indicators && indicators.length) {\n indicators.forEach((ind) => {\n const crosshair = (ind as any)?.chartSpec?.crosshair as ICartesianCrosshairSpec\n\n if (crosshair?.xField) {\n crosshair.xField.label = { visible: false }\n }\n\n if (crosshair?.yField) {\n crosshair.yField.label = { visible: false }\n }\n })\n }\n\n spec.chartDimensionLinkage = {\n showTooltip: config.showTooltip ?? (chartSpec?.tooltip?.dimension?.visible as boolean) ?? true,\n heightLimitToShowTooltipForLastRow: 60,\n widthLimitToShowTooltipForLastColumn: 90,\n labelHoverOnAxis,\n }\n\n return spec\n}\n"],"names":["dimensionLinkage","spec","context","advancedVSeed","vseed","chartType","config","indicators","labelHoverOnAxis","chartSpec","crosshair","labelFormat","text","undefined","ind"],"mappings":"AAGO,MAAMA,mBAAuC,CAACC,MAAMC;IACzD,MAAM,EAAEC,aAAa,EAAEC,KAAK,EAAE,GAAGF;IACjC,MAAM,EAAEG,SAAS,EAAE,GAAGD;IAEtB,MAAME,SAAUH,cAAc,MAAM,EAAE,CAACE,UAAoB,EAAE,oBAAoB,CAAC;IAElF,IAAIC,AAAkB,UAAlBA,OAAO,MAAM,EACf,OAAOL;IAGT,MAAMM,aAAaN,KAAK,UAAU;IAClC,MAAMO,mBAAmB,CAAC;IAC1B,MAAMC,YAAaF,YAAoB,CAAC,EAAE,EAAE;IAC5C,MAAMG,YAAYD,WAAW;IAE7B,IAAIC,WAAW,QAAQ;QACrB,MAAMC,cAAcD,UAAU,MAAM,CAAC,KAAK,EAAE;QAC1CF,iBAAyB,MAAM,GAAG;YAClC,SAASF,OAAO,SAAS,IAAII,UAAU,MAAM,CAAC,KAAK,EAAE,WAAW;YAChE,YAAYA,UAAU,MAAM,CAAC,KAAK,EAAE;YACpC,WAAWA,UAAU,MAAM,CAAC,KAAK,EAAE;YACnC,cAAcC,cACV,CAACC,OAAsCA,QAAQA,AAAS,MAATA,OAAaD,YAAYC,QAAQ,OAChFC;QACN;IACF;IACA,IAAIH,WAAW,QAAQ;QACrB,MAAMC,cAAcD,UAAU,MAAM,CAAC,KAAK,EAAE;QAC1CF,iBAAyB,IAAI,GAAG;YAChC,SAASF,OAAO,SAAS,IAAII,UAAU,MAAM,CAAC,KAAK,EAAE,WAAW;YAChE,YAAYA,UAAU,MAAM,CAAC,KAAK,EAAE;YACpC,WAAWA,UAAU,MAAM,CAAC,KAAK,EAAE;YACnC,cAAcC,cACV,CAACC,OAAsCA,QAAQA,AAAS,MAATA,OAAaD,YAAYC,QAAQ,OAChFC;QACN;IACF;IAEA,IAAIN,cAAcA,WAAW,MAAM,EACjCA,WAAW,OAAO,CAAC,CAACO;QAClB,MAAMJ,YAAaI,KAAa,WAAW;QAE3C,IAAIJ,WAAW,QACbA,UAAU,MAAM,CAAC,KAAK,GAAG;YAAE,SAAS;QAAM;QAG5C,IAAIA,WAAW,QACbA,UAAU,MAAM,CAAC,KAAK,GAAG;YAAE,SAAS;QAAM;IAE9C;IAGFT,KAAK,qBAAqB,GAAG;QAC3B,aAAaK,OAAO,WAAW,IAAKG,WAAW,SAAS,WAAW,WAAuB;QAC1F,oCAAoC;QACpC,sCAAsC;QACtCD;IACF;IAEA,OAAOP;AACT"}
@@ -6,3 +6,4 @@ export { pivotRowDimensions } from './pivotRowDimensions';
6
6
  export { pivotHideIndicatorName } from './pivotHideIndicatorName';
7
7
  export { pivotAxisStyle } from './pivotAxisStyle';
8
8
  export { pivotTitle } from './pivotTitle';
9
+ export { dimensionLinkage } from './dimensionLinkage';
@@ -6,4 +6,5 @@ import { pivotRowDimensions } from "./pivotRowDimensions.js";
6
6
  import { pivotHideIndicatorName } from "./pivotHideIndicatorName.js";
7
7
  import { pivotAxisStyle } from "./pivotAxisStyle.js";
8
8
  import { pivotTitle } from "./pivotTitle.js";
9
- export { pivotAdapter, pivotAxisStyle, pivotColumnDimensions, pivotGridStyle, pivotHideIndicatorName, pivotIndicators, pivotIndicatorsAsCol, pivotIndicatorsAsRow, pivotRowDimensions, pivotTitle };
9
+ import { dimensionLinkage } from "./dimensionLinkage.js";
10
+ export { dimensionLinkage, pivotAdapter, pivotAxisStyle, pivotColumnDimensions, pivotGridStyle, pivotHideIndicatorName, pivotIndicators, pivotIndicatorsAsCol, pivotIndicatorsAsRow, pivotRowDimensions, pivotTitle };
@@ -20,6 +20,8 @@ const pivotAxisStyle = (axisStyle)=>(spec, context)=>{
20
20
  left: BAND_AXIS_INNER_OFFSET_IN_PIVOT,
21
21
  right: BAND_AXIS_INNER_OFFSET_IN_PIVOT
22
22
  };
23
+ } else if ('linear' === axis.type) {
24
+ if ('top' === axis.orient || 'bottom' === axis.orient) axis.label.flush = true;
23
25
  }
24
26
  });
25
27
  }
@@ -1 +1 @@
1
- {"version":3,"file":"pipeline/spec/chart/pipes/pivotChart/pivotAxisStyle.js","sources":["webpack://@visactor/vseed/./src/pipeline/spec/chart/pipes/pivotChart/pivotAxisStyle.ts"],"sourcesContent":["import type { ILineChartSpec } from '@visactor/vchart'\nimport { BAND_AXIS_INNER_OFFSET_IN_PIVOT } from 'src/pipeline/utils/constant'\nimport type { Config, VChartSpecPipe } from 'src/types'\n\nexport const pivotAxisStyle = (axisStyle: VChartSpecPipe): VChartSpecPipe => {\n return (spec, context) => {\n const result = axisStyle(spec, context) as ILineChartSpec\n\n if (result.axes) {\n const { advancedVSeed } = context\n const { config, chartType } = advancedVSeed\n const themConfig = (config?.[chartType] as Config['line'])?.pivotGrid ?? {}\n\n result.axes.forEach((axis: any) => {\n axis.domainLine = {\n visible: false,\n }\n\n if (themConfig.chartGridColor && axis.grid && axis.grid.visible && axis.grid.style) {\n axis.grid.style.stroke = themConfig.chartGridColor\n }\n\n if (themConfig.axisLabelColor && axis.label && axis.label.visible && axis.label.style) {\n axis.label.style.fill = themConfig.axisLabelColor\n }\n\n if (axis.type === 'band') {\n if (axis.orient === 'left' || axis.orient === 'right') {\n axis.innerOffset = {\n top: BAND_AXIS_INNER_OFFSET_IN_PIVOT,\n bottom: BAND_AXIS_INNER_OFFSET_IN_PIVOT,\n }\n } else if (axis.orient === 'top' || axis.orient === 'bottom') {\n axis.innerOffset = {\n left: BAND_AXIS_INNER_OFFSET_IN_PIVOT,\n right: BAND_AXIS_INNER_OFFSET_IN_PIVOT,\n }\n }\n }\n })\n }\n\n return result\n }\n}\n"],"names":["pivotAxisStyle","axisStyle","spec","context","result","advancedVSeed","config","chartType","themConfig","axis","BAND_AXIS_INNER_OFFSET_IN_PIVOT"],"mappings":";AAIO,MAAMA,iBAAiB,CAACC,YACtB,CAACC,MAAMC;QACZ,MAAMC,SAASH,UAAUC,MAAMC;QAE/B,IAAIC,OAAO,IAAI,EAAE;YACf,MAAM,EAAEC,aAAa,EAAE,GAAGF;YAC1B,MAAM,EAAEG,MAAM,EAAEC,SAAS,EAAE,GAAGF;YAC9B,MAAMG,aAAcF,QAAQ,CAACC,UAAU,EAAqB,aAAa,CAAC;YAE1EH,OAAO,IAAI,CAAC,OAAO,CAAC,CAACK;gBACnBA,KAAK,UAAU,GAAG;oBAChB,SAAS;gBACX;gBAEA,IAAID,WAAW,cAAc,IAAIC,KAAK,IAAI,IAAIA,KAAK,IAAI,CAAC,OAAO,IAAIA,KAAK,IAAI,CAAC,KAAK,EAChFA,KAAK,IAAI,CAAC,KAAK,CAAC,MAAM,GAAGD,WAAW,cAAc;gBAGpD,IAAIA,WAAW,cAAc,IAAIC,KAAK,KAAK,IAAIA,KAAK,KAAK,CAAC,OAAO,IAAIA,KAAK,KAAK,CAAC,KAAK,EACnFA,KAAK,KAAK,CAAC,KAAK,CAAC,IAAI,GAAGD,WAAW,cAAc;gBAGnD,IAAIC,AAAc,WAAdA,KAAK,IAAI,EACX;oBAAA,IAAIA,AAAgB,WAAhBA,KAAK,MAAM,IAAeA,AAAgB,YAAhBA,KAAK,MAAM,EACvCA,KAAK,WAAW,GAAG;wBACjB,KAAKC;wBACL,QAAQA;oBACV;yBACK,IAAID,AAAgB,UAAhBA,KAAK,MAAM,IAAcA,AAAgB,aAAhBA,KAAK,MAAM,EAC7CA,KAAK,WAAW,GAAG;wBACjB,MAAMC;wBACN,OAAOA;oBACT;gBACF;YAEJ;QACF;QAEA,OAAON;IACT"}
1
+ {"version":3,"file":"pipeline/spec/chart/pipes/pivotChart/pivotAxisStyle.js","sources":["webpack://@visactor/vseed/./src/pipeline/spec/chart/pipes/pivotChart/pivotAxisStyle.ts"],"sourcesContent":["import type { ILineChartSpec } from '@visactor/vchart'\nimport { BAND_AXIS_INNER_OFFSET_IN_PIVOT } from 'src/pipeline/utils/constant'\nimport type { Config, VChartSpecPipe } from 'src/types'\n\nexport const pivotAxisStyle = (axisStyle: VChartSpecPipe): VChartSpecPipe => {\n return (spec, context) => {\n const result = axisStyle(spec, context) as ILineChartSpec\n\n if (result.axes) {\n const { advancedVSeed } = context\n const { config, chartType } = advancedVSeed\n const themConfig = (config?.[chartType] as Config['line'])?.pivotGrid ?? {}\n\n result.axes.forEach((axis: any) => {\n axis.domainLine = {\n visible: false,\n }\n\n if (themConfig.chartGridColor && axis.grid && axis.grid.visible && axis.grid.style) {\n axis.grid.style.stroke = themConfig.chartGridColor\n }\n\n if (themConfig.axisLabelColor && axis.label && axis.label.visible && axis.label.style) {\n axis.label.style.fill = themConfig.axisLabelColor\n }\n\n if (axis.type === 'band') {\n if (axis.orient === 'left' || axis.orient === 'right') {\n axis.innerOffset = {\n top: BAND_AXIS_INNER_OFFSET_IN_PIVOT,\n bottom: BAND_AXIS_INNER_OFFSET_IN_PIVOT,\n }\n } else if (axis.orient === 'top' || axis.orient === 'bottom') {\n axis.innerOffset = {\n left: BAND_AXIS_INNER_OFFSET_IN_PIVOT,\n right: BAND_AXIS_INNER_OFFSET_IN_PIVOT,\n }\n }\n } else if (axis.type === 'linear') {\n if (axis.orient === 'top' || axis.orient === 'bottom') {\n axis.label.flush = true\n }\n }\n })\n }\n\n return result\n }\n}\n"],"names":["pivotAxisStyle","axisStyle","spec","context","result","advancedVSeed","config","chartType","themConfig","axis","BAND_AXIS_INNER_OFFSET_IN_PIVOT"],"mappings":";AAIO,MAAMA,iBAAiB,CAACC,YACtB,CAACC,MAAMC;QACZ,MAAMC,SAASH,UAAUC,MAAMC;QAE/B,IAAIC,OAAO,IAAI,EAAE;YACf,MAAM,EAAEC,aAAa,EAAE,GAAGF;YAC1B,MAAM,EAAEG,MAAM,EAAEC,SAAS,EAAE,GAAGF;YAC9B,MAAMG,aAAcF,QAAQ,CAACC,UAAU,EAAqB,aAAa,CAAC;YAE1EH,OAAO,IAAI,CAAC,OAAO,CAAC,CAACK;gBACnBA,KAAK,UAAU,GAAG;oBAChB,SAAS;gBACX;gBAEA,IAAID,WAAW,cAAc,IAAIC,KAAK,IAAI,IAAIA,KAAK,IAAI,CAAC,OAAO,IAAIA,KAAK,IAAI,CAAC,KAAK,EAChFA,KAAK,IAAI,CAAC,KAAK,CAAC,MAAM,GAAGD,WAAW,cAAc;gBAGpD,IAAIA,WAAW,cAAc,IAAIC,KAAK,KAAK,IAAIA,KAAK,KAAK,CAAC,OAAO,IAAIA,KAAK,KAAK,CAAC,KAAK,EACnFA,KAAK,KAAK,CAAC,KAAK,CAAC,IAAI,GAAGD,WAAW,cAAc;gBAGnD,IAAIC,AAAc,WAAdA,KAAK,IAAI,EACX;oBAAA,IAAIA,AAAgB,WAAhBA,KAAK,MAAM,IAAeA,AAAgB,YAAhBA,KAAK,MAAM,EACvCA,KAAK,WAAW,GAAG;wBACjB,KAAKC;wBACL,QAAQA;oBACV;yBACK,IAAID,AAAgB,UAAhBA,KAAK,MAAM,IAAcA,AAAgB,aAAhBA,KAAK,MAAM,EAC7CA,KAAK,WAAW,GAAG;wBACjB,MAAMC;wBACN,OAAOA;oBACT;gBACF,OACK,IAAID,AAAc,aAAdA,KAAK,IAAI,EAClB;oBAAA,IAAIA,AAAgB,UAAhBA,KAAK,MAAM,IAAcA,AAAgB,aAAhBA,KAAK,MAAM,EACtCA,KAAK,KAAK,CAAC,KAAK,GAAG;gBACrB;YAEJ;QACF;QAEA,OAAOL;IACT"}
@@ -32,7 +32,7 @@ const pivotGridStyle = (spec, context)=>{
32
32
  0 === arg.row ? outlineBorderLineWidth : 1,
33
33
  outlineBorderLineWidth,
34
34
  0,
35
- 0 === arg.col || noYAxis && 1 === arg.col ? outlineBorderLineWidth : 1
35
+ 0 === arg.col || noYAxis && 1 === arg.col && arg.table.colCount <= 2 ? outlineBorderLineWidth : 1
36
36
  ];
37
37
  },
38
38
  bgColor: transparent,
@@ -208,6 +208,21 @@ const pivotGridStyle = (spec, context)=>{
208
208
  borderColor,
209
209
  cornerRadius: frameCornerRadius,
210
210
  borderLineWidth: outlineBorderLineWidth
211
+ },
212
+ axisStyle: {
213
+ leftAxisStyle: {
214
+ cellPaddingLeft: 10
215
+ },
216
+ bottomAxisStyle: {
217
+ cellPaddingBottom: 4
218
+ },
219
+ rightAxisStyle: {
220
+ cellPaddingRight: 4
221
+ }
222
+ },
223
+ scrollStyle: {
224
+ visible: 'scrolling',
225
+ hoverOn: false
211
226
  }
212
227
  }
213
228
  };