@visactor/vseed 0.4.22 → 0.4.24

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 (623) hide show
  1. package/dist/cjs/index.cjs +2 -2
  2. package/dist/cjs/index.cjs.map +1 -1
  3. package/dist/esm/builder/builder/advanced/colorItems.js.map +1 -1
  4. package/dist/esm/builder/builder/build.js.map +1 -1
  5. package/dist/esm/builder/builder/buildAdvanced.js +2 -2
  6. package/dist/esm/builder/builder/buildAdvanced.js.map +1 -1
  7. package/dist/esm/builder/builder/buildSpec.js +2 -2
  8. package/dist/esm/builder/builder/buildSpec.js.map +1 -1
  9. package/dist/esm/builder/builder/builder.js.map +1 -1
  10. package/dist/esm/builder/builder/index.js +1 -2
  11. package/dist/esm/builder/builder/prepare.js.map +1 -1
  12. package/dist/esm/builder/register/all.js.map +1 -1
  13. package/dist/esm/builder/register/chartType/area.js.map +1 -1
  14. package/dist/esm/builder/register/chartType/areaPercent.js.map +1 -1
  15. package/dist/esm/builder/register/chartType/bar.js.map +1 -1
  16. package/dist/esm/builder/register/chartType/barParallel.js.map +1 -1
  17. package/dist/esm/builder/register/chartType/barPercent.js.map +1 -1
  18. package/dist/esm/builder/register/chartType/boxplot.js.map +1 -1
  19. package/dist/esm/builder/register/chartType/circlePacking.js.map +1 -1
  20. package/dist/esm/builder/register/chartType/column.js.map +1 -1
  21. package/dist/esm/builder/register/chartType/columnParallel.js.map +1 -1
  22. package/dist/esm/builder/register/chartType/columnPercent.js.map +1 -1
  23. package/dist/esm/builder/register/chartType/donut.js.map +1 -1
  24. package/dist/esm/builder/register/chartType/dualAxis.js.map +1 -1
  25. package/dist/esm/builder/register/chartType/funnel.js.map +1 -1
  26. package/dist/esm/builder/register/chartType/heatmap.js.map +1 -1
  27. package/dist/esm/builder/register/chartType/histogram.js.map +1 -1
  28. package/dist/esm/builder/register/chartType/index.js +31 -32
  29. package/dist/esm/builder/register/chartType/line.js.map +1 -1
  30. package/dist/esm/builder/register/chartType/pie.js.map +1 -1
  31. package/dist/esm/builder/register/chartType/pivotTable.js.map +1 -1
  32. package/dist/esm/builder/register/chartType/raceBar.js.map +1 -1
  33. package/dist/esm/builder/register/chartType/raceColumn.js.map +1 -1
  34. package/dist/esm/builder/register/chartType/raceDonut.js.map +1 -1
  35. package/dist/esm/builder/register/chartType/raceLine.js.map +1 -1
  36. package/dist/esm/builder/register/chartType/racePie.js.map +1 -1
  37. package/dist/esm/builder/register/chartType/raceScatter.js.map +1 -1
  38. package/dist/esm/builder/register/chartType/radar.js.map +1 -1
  39. package/dist/esm/builder/register/chartType/rose.js.map +1 -1
  40. package/dist/esm/builder/register/chartType/roseParallel.js.map +1 -1
  41. package/dist/esm/builder/register/chartType/scatter.js.map +1 -1
  42. package/dist/esm/builder/register/chartType/sunburst.js.map +1 -1
  43. package/dist/esm/builder/register/chartType/table.js.map +1 -1
  44. package/dist/esm/builder/register/chartType/treeMap.js.map +1 -1
  45. package/dist/esm/builder/register/custom.js.map +1 -1
  46. package/dist/esm/builder/register/index.js +3 -4
  47. package/dist/esm/builder/register/theme/custom.js.map +1 -1
  48. package/dist/esm/builder/register/theme/dark.js.map +1 -1
  49. package/dist/esm/builder/register/theme/index.js +3 -4
  50. package/dist/esm/builder/register/theme/light.js.map +1 -1
  51. package/dist/esm/dataReshape/constant.js.map +1 -1
  52. package/dist/esm/dataReshape/dataReshapeByEncoding.js.map +1 -1
  53. package/dist/esm/dataReshape/foldMeasures.js.map +1 -1
  54. package/dist/esm/dataReshape/index.js +3 -4
  55. package/dist/esm/dataReshape/unfoldDimensions.js.map +1 -1
  56. package/dist/esm/dataSelector/selector.js +1 -1
  57. package/dist/esm/dataSelector/selector.js.map +1 -1
  58. package/dist/esm/i18n/i18n.js.map +1 -1
  59. package/dist/esm/i18n/i18nData.js.map +1 -1
  60. package/dist/esm/i18n/index.js.map +1 -1
  61. package/dist/esm/index.js +5 -6
  62. package/dist/esm/pipeline/advanced/chart/pipeline/area.js.map +1 -1
  63. package/dist/esm/pipeline/advanced/chart/pipeline/areaPercent.js.map +1 -1
  64. package/dist/esm/pipeline/advanced/chart/pipeline/bar.js.map +1 -1
  65. package/dist/esm/pipeline/advanced/chart/pipeline/barParallel.js.map +1 -1
  66. package/dist/esm/pipeline/advanced/chart/pipeline/barPercent.js.map +1 -1
  67. package/dist/esm/pipeline/advanced/chart/pipeline/boxplot.js.map +1 -1
  68. package/dist/esm/pipeline/advanced/chart/pipeline/circlePacking.js.map +1 -1
  69. package/dist/esm/pipeline/advanced/chart/pipeline/column.js.map +1 -1
  70. package/dist/esm/pipeline/advanced/chart/pipeline/columnParallel.js.map +1 -1
  71. package/dist/esm/pipeline/advanced/chart/pipeline/columnPercent.js.map +1 -1
  72. package/dist/esm/pipeline/advanced/chart/pipeline/donut.js.map +1 -1
  73. package/dist/esm/pipeline/advanced/chart/pipeline/dualAxis.js.map +1 -1
  74. package/dist/esm/pipeline/advanced/chart/pipeline/funnel.js.map +1 -1
  75. package/dist/esm/pipeline/advanced/chart/pipeline/heatmap.js.map +1 -1
  76. package/dist/esm/pipeline/advanced/chart/pipeline/histogram.js.map +1 -1
  77. package/dist/esm/pipeline/advanced/chart/pipeline/index.js +29 -30
  78. package/dist/esm/pipeline/advanced/chart/pipeline/line.js.map +1 -1
  79. package/dist/esm/pipeline/advanced/chart/pipeline/pie.js.map +1 -1
  80. package/dist/esm/pipeline/advanced/chart/pipeline/raceBar.js.map +1 -1
  81. package/dist/esm/pipeline/advanced/chart/pipeline/raceColumn.js.map +1 -1
  82. package/dist/esm/pipeline/advanced/chart/pipeline/raceDonut.js.map +1 -1
  83. package/dist/esm/pipeline/advanced/chart/pipeline/raceLine.js.map +1 -1
  84. package/dist/esm/pipeline/advanced/chart/pipeline/racePie.js.map +1 -1
  85. package/dist/esm/pipeline/advanced/chart/pipeline/raceScatter.js.map +1 -1
  86. package/dist/esm/pipeline/advanced/chart/pipeline/radar.js.map +1 -1
  87. package/dist/esm/pipeline/advanced/chart/pipeline/rose.js.map +1 -1
  88. package/dist/esm/pipeline/advanced/chart/pipeline/roseParallel.js.map +1 -1
  89. package/dist/esm/pipeline/advanced/chart/pipeline/scatter.js.map +1 -1
  90. package/dist/esm/pipeline/advanced/chart/pipeline/sunburst.js.map +1 -1
  91. package/dist/esm/pipeline/advanced/chart/pipeline/treeMap.js.map +1 -1
  92. package/dist/esm/pipeline/advanced/chart/pipes/analysis/common.js.map +1 -1
  93. package/dist/esm/pipeline/advanced/chart/pipes/analysis/index.js +3 -4
  94. package/dist/esm/pipeline/advanced/chart/pipes/analysis/sortLegend.js.map +1 -1
  95. package/dist/esm/pipeline/advanced/chart/pipes/analysis/sortXBand.js.map +1 -1
  96. package/dist/esm/pipeline/advanced/chart/pipes/analysis/sortYBand.js.map +1 -1
  97. package/dist/esm/pipeline/advanced/chart/pipes/annotation/annotation.js.map +1 -1
  98. package/dist/esm/pipeline/advanced/chart/pipes/annotation/index.js +1 -2
  99. package/dist/esm/pipeline/advanced/chart/pipes/config/boxplot.js.map +1 -1
  100. package/dist/esm/pipeline/advanced/chart/pipes/config/circlePacking.js.map +1 -1
  101. package/dist/esm/pipeline/advanced/chart/pipes/config/column.js.map +1 -1
  102. package/dist/esm/pipeline/advanced/chart/pipes/config/dualAxis.js.map +1 -1
  103. package/dist/esm/pipeline/advanced/chart/pipes/config/heatmap.js.map +1 -1
  104. package/dist/esm/pipeline/advanced/chart/pipes/config/histogram.js.map +1 -1
  105. package/dist/esm/pipeline/advanced/chart/pipes/config/index.js +9 -9
  106. package/dist/esm/pipeline/advanced/chart/pipes/config/index.js.map +1 -1
  107. package/dist/esm/pipeline/advanced/chart/pipes/config/line.js.map +1 -1
  108. package/dist/esm/pipeline/advanced/chart/pipes/config/pie.js.map +1 -1
  109. package/dist/esm/pipeline/advanced/chart/pipes/config/scatter.js.map +1 -1
  110. package/dist/esm/pipeline/advanced/chart/pipes/config/sunburst.js.map +1 -1
  111. package/dist/esm/pipeline/advanced/chart/pipes/config/treeMap.js.map +1 -1
  112. package/dist/esm/pipeline/advanced/chart/pipes/default/defaultDimensions.js.map +1 -1
  113. package/dist/esm/pipeline/advanced/chart/pipes/default/defaultMeasureId.js.map +1 -1
  114. package/dist/esm/pipeline/advanced/chart/pipes/default/defaultMeasures.js.map +1 -1
  115. package/dist/esm/pipeline/advanced/chart/pipes/default/index.js +3 -4
  116. package/dist/esm/pipeline/advanced/chart/pipes/dimensions/addPivotDimensionsForScatter.js.map +1 -1
  117. package/dist/esm/pipeline/advanced/chart/pipes/dimensions/pickDimensionsForReshape.js.map +1 -1
  118. package/dist/esm/pipeline/advanced/chart/pipes/encoding/adapter/encodingAdapter.js.map +1 -1
  119. package/dist/esm/pipeline/advanced/chart/pipes/encoding/adapter/index.js +1 -2
  120. package/dist/esm/pipeline/advanced/chart/pipes/encoding/bar.js.map +1 -1
  121. package/dist/esm/pipeline/advanced/chart/pipes/encoding/boxplot.js.map +1 -1
  122. package/dist/esm/pipeline/advanced/chart/pipes/encoding/color/addColorToEncoding.js.map +1 -1
  123. package/dist/esm/pipeline/advanced/chart/pipes/encoding/color/index.js +1 -2
  124. package/dist/esm/pipeline/advanced/chart/pipes/encoding/column.js.map +1 -1
  125. package/dist/esm/pipeline/advanced/chart/pipes/encoding/dualAxis.js.map +1 -1
  126. package/dist/esm/pipeline/advanced/chart/pipes/encoding/funnel.js.map +1 -1
  127. package/dist/esm/pipeline/advanced/chart/pipes/encoding/heatmap.js.map +1 -1
  128. package/dist/esm/pipeline/advanced/chart/pipes/encoding/hierarchy.js.map +1 -1
  129. package/dist/esm/pipeline/advanced/chart/pipes/encoding/histogram.js.map +1 -1
  130. package/dist/esm/pipeline/advanced/chart/pipes/encoding/index.js +20 -21
  131. package/dist/esm/pipeline/advanced/chart/pipes/encoding/line.js.map +1 -1
  132. package/dist/esm/pipeline/advanced/chart/pipes/encoding/pie.js.map +1 -1
  133. package/dist/esm/pipeline/advanced/chart/pipes/encoding/raceBar.js.map +1 -1
  134. package/dist/esm/pipeline/advanced/chart/pipes/encoding/raceColumn.js.map +1 -1
  135. package/dist/esm/pipeline/advanced/chart/pipes/encoding/raceDonut.js.map +1 -1
  136. package/dist/esm/pipeline/advanced/chart/pipes/encoding/raceLine.js.map +1 -1
  137. package/dist/esm/pipeline/advanced/chart/pipes/encoding/racePie.js.map +1 -1
  138. package/dist/esm/pipeline/advanced/chart/pipes/encoding/raceScatter.js.map +1 -1
  139. package/dist/esm/pipeline/advanced/chart/pipes/encoding/radar.js.map +1 -1
  140. package/dist/esm/pipeline/advanced/chart/pipes/encoding/rose.js.map +1 -1
  141. package/dist/esm/pipeline/advanced/chart/pipes/encoding/scatter.js.map +1 -1
  142. package/dist/esm/pipeline/advanced/chart/pipes/init/index.js +1 -2
  143. package/dist/esm/pipeline/advanced/chart/pipes/init/initAdvancedVSeed.js.map +1 -1
  144. package/dist/esm/pipeline/advanced/chart/pipes/markStyle/index.js +1 -2
  145. package/dist/esm/pipeline/advanced/chart/pipes/markStyle/markStyle.js.map +1 -1
  146. package/dist/esm/pipeline/advanced/chart/pipes/measures/buildMeasures.js.map +1 -1
  147. package/dist/esm/pipeline/advanced/chart/pipes/measures/buildMeasuresForDualAxis.js.map +1 -1
  148. package/dist/esm/pipeline/advanced/chart/pipes/measures/buildMeasuresForScatter.js.map +1 -1
  149. package/dist/esm/pipeline/advanced/chart/pipes/measures/index.js +3 -4
  150. package/dist/esm/pipeline/advanced/chart/pipes/measures/utils.js.map +1 -1
  151. package/dist/esm/pipeline/advanced/chart/pipes/page/page.js.map +1 -1
  152. package/dist/esm/pipeline/advanced/chart/pipes/pivot/index.js +1 -2
  153. package/dist/esm/pipeline/advanced/chart/pipes/pivot/pivotAdapter.js.map +1 -1
  154. package/dist/esm/pipeline/advanced/chart/pipes/regressionLine/index.js +1 -2
  155. package/dist/esm/pipeline/advanced/chart/pipes/regressionLine/regressionLine.js.map +1 -1
  156. package/dist/esm/pipeline/advanced/chart/pipes/reshape/index.js +10 -11
  157. package/dist/esm/pipeline/advanced/chart/pipes/reshape/pivotReshapeWithBoxplotEncoding.js.map +1 -1
  158. package/dist/esm/pipeline/advanced/chart/pipes/reshape/pivotReshapeWithDualEncoding.js.map +1 -1
  159. package/dist/esm/pipeline/advanced/chart/pipes/reshape/pivotReshapeWithEncoding.js.map +1 -1
  160. package/dist/esm/pipeline/advanced/chart/pipes/reshape/pivotReshapeWithHistogramEncoding.js.map +1 -1
  161. package/dist/esm/pipeline/advanced/chart/pipes/reshape/pivotReshapeWithScatterEncoding.js.map +1 -1
  162. package/dist/esm/pipeline/advanced/chart/pipes/reshape/reshapeWithBoxplotEncoding.js.map +1 -1
  163. package/dist/esm/pipeline/advanced/chart/pipes/reshape/reshapeWithDualEncoding.js.map +1 -1
  164. package/dist/esm/pipeline/advanced/chart/pipes/reshape/reshapeWithEncoding.js.map +1 -1
  165. package/dist/esm/pipeline/advanced/chart/pipes/reshape/reshapeWithHistogramEncoding.js.map +1 -1
  166. package/dist/esm/pipeline/advanced/chart/pipes/reshape/reshapeWithScatterEncoding.js.map +1 -1
  167. package/dist/esm/pipeline/advanced/chart/pipes/theme/index.js +1 -2
  168. package/dist/esm/pipeline/advanced/chart/pipes/theme/theme.js.map +1 -1
  169. package/dist/esm/pipeline/advanced/table/pipeline/index.js +2 -3
  170. package/dist/esm/pipeline/advanced/table/pipeline/pivotTable.js.map +1 -1
  171. package/dist/esm/pipeline/advanced/table/pipeline/table.js.map +1 -1
  172. package/dist/esm/pipeline/advanced/table/pipes/cellStyle/cellStyle.js.map +1 -1
  173. package/dist/esm/pipeline/advanced/table/pipes/cellStyle/index.js +1 -2
  174. package/dist/esm/pipeline/advanced/table/pipes/config/index.js +2 -3
  175. package/dist/esm/pipeline/advanced/table/pipes/config/pivotTableConfig.js.map +1 -1
  176. package/dist/esm/pipeline/advanced/table/pipes/config/tableConfig.js.map +1 -1
  177. package/dist/esm/pipeline/advanced/table/pipes/default/defaultDimensions.js.map +1 -1
  178. package/dist/esm/pipeline/advanced/table/pipes/default/defaultMeasures.js.map +1 -1
  179. package/dist/esm/pipeline/advanced/table/pipes/default/index.js +2 -3
  180. package/dist/esm/pipeline/advanced/table/pipes/encoding/index.js +1 -2
  181. package/dist/esm/pipeline/advanced/table/pipes/encoding/pivotTable.js.map +1 -1
  182. package/dist/esm/pipeline/advanced/table/pipes/init/initAdvancedVSeed.js.map +1 -1
  183. package/dist/esm/pipeline/advanced/table/pipes/page/page.js.map +1 -1
  184. package/dist/esm/pipeline/advanced/table/pipes/records/records.js.map +1 -1
  185. package/dist/esm/pipeline/spec/chart/pipeline/area.js.map +1 -1
  186. package/dist/esm/pipeline/spec/chart/pipeline/areaPercent.js.map +1 -1
  187. package/dist/esm/pipeline/spec/chart/pipeline/bar.js.map +1 -1
  188. package/dist/esm/pipeline/spec/chart/pipeline/barParallel.js.map +1 -1
  189. package/dist/esm/pipeline/spec/chart/pipeline/barPercent.js.map +1 -1
  190. package/dist/esm/pipeline/spec/chart/pipeline/boxplot.js.map +1 -1
  191. package/dist/esm/pipeline/spec/chart/pipeline/circlePacking.js.map +1 -1
  192. package/dist/esm/pipeline/spec/chart/pipeline/column.js.map +1 -1
  193. package/dist/esm/pipeline/spec/chart/pipeline/columnParallel.js.map +1 -1
  194. package/dist/esm/pipeline/spec/chart/pipeline/columnPercent.js.map +1 -1
  195. package/dist/esm/pipeline/spec/chart/pipeline/donut.js.map +1 -1
  196. package/dist/esm/pipeline/spec/chart/pipeline/dualAxis.js.map +1 -1
  197. package/dist/esm/pipeline/spec/chart/pipeline/funnel.js.map +1 -1
  198. package/dist/esm/pipeline/spec/chart/pipeline/heatmap.js.map +1 -1
  199. package/dist/esm/pipeline/spec/chart/pipeline/histogram.js.map +1 -1
  200. package/dist/esm/pipeline/spec/chart/pipeline/index.js +29 -30
  201. package/dist/esm/pipeline/spec/chart/pipeline/line.js.map +1 -1
  202. package/dist/esm/pipeline/spec/chart/pipeline/pie.js.map +1 -1
  203. package/dist/esm/pipeline/spec/chart/pipeline/raceBar.js.map +1 -1
  204. package/dist/esm/pipeline/spec/chart/pipeline/raceColumn.js.map +1 -1
  205. package/dist/esm/pipeline/spec/chart/pipeline/raceDonut.js.map +1 -1
  206. package/dist/esm/pipeline/spec/chart/pipeline/raceLine.js.map +1 -1
  207. package/dist/esm/pipeline/spec/chart/pipeline/racePie.js.map +1 -1
  208. package/dist/esm/pipeline/spec/chart/pipeline/raceScatter.js.map +1 -1
  209. package/dist/esm/pipeline/spec/chart/pipeline/radar.js.map +1 -1
  210. package/dist/esm/pipeline/spec/chart/pipeline/rose.js.map +1 -1
  211. package/dist/esm/pipeline/spec/chart/pipeline/roseParallel.js.map +1 -1
  212. package/dist/esm/pipeline/spec/chart/pipeline/scatter.js.map +1 -1
  213. package/dist/esm/pipeline/spec/chart/pipeline/sunburst.js.map +1 -1
  214. package/dist/esm/pipeline/spec/chart/pipeline/treeMap.js.map +1 -1
  215. package/dist/esm/pipeline/spec/chart/pipes/annotation/annotationArea.js.map +1 -1
  216. package/dist/esm/pipeline/spec/chart/pipes/annotation/annotationAreaBand.js.map +1 -1
  217. package/dist/esm/pipeline/spec/chart/pipes/annotation/annotationHorizontalLine.js.map +1 -1
  218. package/dist/esm/pipeline/spec/chart/pipes/annotation/annotationPoint.js.map +1 -1
  219. package/dist/esm/pipeline/spec/chart/pipes/annotation/annotationPointCommon.js.map +1 -1
  220. package/dist/esm/pipeline/spec/chart/pipes/annotation/annotationPointOfDualAxis.js.map +1 -1
  221. package/dist/esm/pipeline/spec/chart/pipes/annotation/annotationPointOfHistogram.js.map +1 -1
  222. package/dist/esm/pipeline/spec/chart/pipes/annotation/annotationVerticalLine.js.map +1 -1
  223. package/dist/esm/pipeline/spec/chart/pipes/annotation/index.js +8 -9
  224. package/dist/esm/pipeline/spec/chart/pipes/annotation/splitLine.js.map +1 -1
  225. package/dist/esm/pipeline/spec/chart/pipes/annotation/utils.js.map +1 -1
  226. package/dist/esm/pipeline/spec/chart/pipes/axes/bandAxisStyle.js.map +1 -1
  227. package/dist/esm/pipeline/spec/chart/pipes/axes/format/linearFormat.js.map +1 -1
  228. package/dist/esm/pipeline/spec/chart/pipes/axes/heatmapBandAxis.js.map +1 -1
  229. package/dist/esm/pipeline/spec/chart/pipes/axes/histogramXLinear.js.map +1 -1
  230. package/dist/esm/pipeline/spec/chart/pipes/axes/index.js +11 -12
  231. package/dist/esm/pipeline/spec/chart/pipes/axes/linearAxisStyle.js.map +1 -1
  232. package/dist/esm/pipeline/spec/chart/pipes/axes/radarAngle.js.map +1 -1
  233. package/dist/esm/pipeline/spec/chart/pipes/axes/radarRadius.js.map +1 -1
  234. package/dist/esm/pipeline/spec/chart/pipes/axes/radius.js.map +1 -1
  235. package/dist/esm/pipeline/spec/chart/pipes/axes/title/defaultTitleText.js.map +1 -1
  236. package/dist/esm/pipeline/spec/chart/pipes/axes/xBand.js.map +1 -1
  237. package/dist/esm/pipeline/spec/chart/pipes/axes/xLinear.js.map +1 -1
  238. package/dist/esm/pipeline/spec/chart/pipes/axes/yBand.js.map +1 -1
  239. package/dist/esm/pipeline/spec/chart/pipes/axes/yLinear.js.map +1 -1
  240. package/dist/esm/pipeline/spec/chart/pipes/axes/yLinearPrimary.js.map +1 -1
  241. package/dist/esm/pipeline/spec/chart/pipes/axes/yLinearSecondary.js.map +1 -1
  242. package/dist/esm/pipeline/spec/chart/pipes/backgroundColor/background.js.map +1 -1
  243. package/dist/esm/pipeline/spec/chart/pipes/backgroundColor/index.js +1 -2
  244. package/dist/esm/pipeline/spec/chart/pipes/barWidth/barGapInGroup.js.map +1 -1
  245. package/dist/esm/pipeline/spec/chart/pipes/barWidth/barMaxWidth.js.map +1 -1
  246. package/dist/esm/pipeline/spec/chart/pipes/boxWidth/boxGapInGroup.js.map +1 -1
  247. package/dist/esm/pipeline/spec/chart/pipes/boxWidth/boxMaxWidth.js.map +1 -1
  248. package/dist/esm/pipeline/spec/chart/pipes/brush/brush.js.map +1 -1
  249. package/dist/esm/pipeline/spec/chart/pipes/color/color.js.map +1 -1
  250. package/dist/esm/pipeline/spec/chart/pipes/color/colorAdapter.js.map +1 -1
  251. package/dist/esm/pipeline/spec/chart/pipes/color/colorAreaStyleFill.js.map +1 -1
  252. package/dist/esm/pipeline/spec/chart/pipes/color/colorBarStyleFill.js.map +1 -1
  253. package/dist/esm/pipeline/spec/chart/pipes/color/colorBoxPlotStyleFill.js.map +1 -1
  254. package/dist/esm/pipeline/spec/chart/pipes/color/colorFunnelStyleFill.js.map +1 -1
  255. package/dist/esm/pipeline/spec/chart/pipes/color/colorLineStyleFill.js.map +1 -1
  256. package/dist/esm/pipeline/spec/chart/pipes/color/colorPieStyleFill.js.map +1 -1
  257. package/dist/esm/pipeline/spec/chart/pipes/color/colorPointStyleFill.js.map +1 -1
  258. package/dist/esm/pipeline/spec/chart/pipes/color/colorRoseStyleFill.js.map +1 -1
  259. package/dist/esm/pipeline/spec/chart/pipes/color/index.js +12 -13
  260. package/dist/esm/pipeline/spec/chart/pipes/color/linearColor.js.map +1 -1
  261. package/dist/esm/pipeline/spec/chart/pipes/color/linearColorForDualAxis.js.map +1 -1
  262. package/dist/esm/pipeline/spec/chart/pipes/crosshair/histogramCrosshair.js.map +1 -1
  263. package/dist/esm/pipeline/spec/chart/pipes/crosshair/horizontalCrosshairLine.js.map +1 -1
  264. package/dist/esm/pipeline/spec/chart/pipes/crosshair/horizontalCrosshairRect.js.map +1 -1
  265. package/dist/esm/pipeline/spec/chart/pipes/crosshair/index.js +5 -6
  266. package/dist/esm/pipeline/spec/chart/pipes/crosshair/verticalCrosshairLine.js.map +1 -1
  267. package/dist/esm/pipeline/spec/chart/pipes/crosshair/verticalCrosshairRect.js.map +1 -1
  268. package/dist/esm/pipeline/spec/chart/pipes/dataset/datasetBoxplot.js.map +1 -1
  269. package/dist/esm/pipeline/spec/chart/pipes/dataset/datasetDualAxis.js.map +1 -1
  270. package/dist/esm/pipeline/spec/chart/pipes/dataset/datasetHierarchy.js.map +1 -1
  271. package/dist/esm/pipeline/spec/chart/pipes/dataset/datasetHistogram.js.map +1 -1
  272. package/dist/esm/pipeline/spec/chart/pipes/dataset/datasetPivot.js.map +1 -1
  273. package/dist/esm/pipeline/spec/chart/pipes/dataset/datasetPivotHierarchy.js.map +1 -1
  274. package/dist/esm/pipeline/spec/chart/pipes/dataset/datasetScatter.js.map +1 -1
  275. package/dist/esm/pipeline/spec/chart/pipes/dataset/datasetXY.js.map +1 -1
  276. package/dist/esm/pipeline/spec/chart/pipes/dataset/datasetYX.js.map +1 -1
  277. package/dist/esm/pipeline/spec/chart/pipes/dataset/index.js +10 -11
  278. package/dist/esm/pipeline/spec/chart/pipes/dataset/progressive.js.map +1 -1
  279. package/dist/esm/pipeline/spec/chart/pipes/dual/adjustXField.js.map +1 -1
  280. package/dist/esm/pipeline/spec/chart/pipes/dual/dualChartType.js.map +1 -1
  281. package/dist/esm/pipeline/spec/chart/pipes/dual/index.js +2 -3
  282. package/dist/esm/pipeline/spec/chart/pipes/hierarchy/drill.js.map +1 -1
  283. package/dist/esm/pipeline/spec/chart/pipes/hierarchy/index.js +1 -2
  284. package/dist/esm/pipeline/spec/chart/pipes/init/area.js.map +1 -1
  285. package/dist/esm/pipeline/spec/chart/pipes/init/bar.js.map +1 -1
  286. package/dist/esm/pipeline/spec/chart/pipes/init/barParallel.js.map +1 -1
  287. package/dist/esm/pipeline/spec/chart/pipes/init/boxplot.js.map +1 -1
  288. package/dist/esm/pipeline/spec/chart/pipes/init/circlePacking.js.map +1 -1
  289. package/dist/esm/pipeline/spec/chart/pipes/init/column.js.map +1 -1
  290. package/dist/esm/pipeline/spec/chart/pipes/init/columnParallel.js.map +1 -1
  291. package/dist/esm/pipeline/spec/chart/pipes/init/donut.js.map +1 -1
  292. package/dist/esm/pipeline/spec/chart/pipes/init/dualAxis.js.map +1 -1
  293. package/dist/esm/pipeline/spec/chart/pipes/init/funnel.js.map +1 -1
  294. package/dist/esm/pipeline/spec/chart/pipes/init/heatmap.js.map +1 -1
  295. package/dist/esm/pipeline/spec/chart/pipes/init/histogram.js.map +1 -1
  296. package/dist/esm/pipeline/spec/chart/pipes/init/index.js +20 -21
  297. package/dist/esm/pipeline/spec/chart/pipes/init/line.js.map +1 -1
  298. package/dist/esm/pipeline/spec/chart/pipes/init/pie.js.map +1 -1
  299. package/dist/esm/pipeline/spec/chart/pipes/init/pivot.js.map +1 -1
  300. package/dist/esm/pipeline/spec/chart/pipes/init/radar.js.map +1 -1
  301. package/dist/esm/pipeline/spec/chart/pipes/init/rose.js.map +1 -1
  302. package/dist/esm/pipeline/spec/chart/pipes/init/roseParallel.js.map +1 -1
  303. package/dist/esm/pipeline/spec/chart/pipes/init/scatter.js.map +1 -1
  304. package/dist/esm/pipeline/spec/chart/pipes/init/sunburst.js.map +1 -1
  305. package/dist/esm/pipeline/spec/chart/pipes/init/treeMap.js.map +1 -1
  306. package/dist/esm/pipeline/spec/chart/pipes/label/index.js +9 -10
  307. package/dist/esm/pipeline/spec/chart/pipes/label/label.js.map +1 -1
  308. package/dist/esm/pipeline/spec/chart/pipes/label/labelBoxPlot.js.map +1 -1
  309. package/dist/esm/pipeline/spec/chart/pipes/label/labelCirclePacking.js.map +1 -1
  310. package/dist/esm/pipeline/spec/chart/pipes/label/labelDualAxis.js.map +1 -1
  311. package/dist/esm/pipeline/spec/chart/pipes/label/labelPie.js.map +1 -1
  312. package/dist/esm/pipeline/spec/chart/pipes/label/labelScatter.js.map +1 -1
  313. package/dist/esm/pipeline/spec/chart/pipes/label/labelSunburst.js.map +1 -1
  314. package/dist/esm/pipeline/spec/chart/pipes/label/labelTreeMapGroup.js.map +1 -1
  315. package/dist/esm/pipeline/spec/chart/pipes/label/labelTreeMapLeaf.js.map +1 -1
  316. package/dist/esm/pipeline/spec/chart/pipes/legend/boxLegend.js.map +1 -1
  317. package/dist/esm/pipeline/spec/chart/pipes/legend/colorLegend.js.map +1 -1
  318. package/dist/esm/pipeline/spec/chart/pipes/legend/discreteLegend.js.map +1 -1
  319. package/dist/esm/pipeline/spec/chart/pipes/legend/heatmapColorLegend.js.map +1 -1
  320. package/dist/esm/pipeline/spec/chart/pipes/legend/index.js +5 -6
  321. package/dist/esm/pipeline/spec/chart/pipes/legend/pivotColorLegend.js.map +1 -1
  322. package/dist/esm/pipeline/spec/chart/pipes/legend/pivotDiscreteLegend.js.map +1 -1
  323. package/dist/esm/pipeline/spec/chart/pipes/markStyle/areaStyle.js.map +1 -1
  324. package/dist/esm/pipeline/spec/chart/pipes/markStyle/barStyle.js.map +1 -1
  325. package/dist/esm/pipeline/spec/chart/pipes/markStyle/boxPlotStyle.js.map +1 -1
  326. package/dist/esm/pipeline/spec/chart/pipes/markStyle/cellStyle.js.map +1 -1
  327. package/dist/esm/pipeline/spec/chart/pipes/markStyle/curve/curve.js.map +1 -1
  328. package/dist/esm/pipeline/spec/chart/pipes/markStyle/curve/index.js +1 -2
  329. package/dist/esm/pipeline/spec/chart/pipes/markStyle/funnelStyle.js.map +1 -1
  330. package/dist/esm/pipeline/spec/chart/pipes/markStyle/funnelTransformStyle.js.map +1 -1
  331. package/dist/esm/pipeline/spec/chart/pipes/markStyle/index.js +11 -12
  332. package/dist/esm/pipeline/spec/chart/pipes/markStyle/lineStyle.js.map +1 -1
  333. package/dist/esm/pipeline/spec/chart/pipes/markStyle/outlierStyle.js.map +1 -1
  334. package/dist/esm/pipeline/spec/chart/pipes/markStyle/pieStyle.js.map +1 -1
  335. package/dist/esm/pipeline/spec/chart/pipes/markStyle/pointState.js.map +1 -1
  336. package/dist/esm/pipeline/spec/chart/pipes/markStyle/pointStyle.js.map +1 -1
  337. package/dist/esm/pipeline/spec/chart/pipes/markStyle/roseStyle.js.map +1 -1
  338. package/dist/esm/pipeline/spec/chart/pipes/percent/index.js +1 -2
  339. package/dist/esm/pipeline/spec/chart/pipes/percent/percent.js.map +1 -1
  340. package/dist/esm/pipeline/spec/chart/pipes/pipeFilter/areaStyleFilter.js.map +1 -1
  341. package/dist/esm/pipeline/spec/chart/pipes/pipeFilter/barStyleFilter.js.map +1 -1
  342. package/dist/esm/pipeline/spec/chart/pipes/pipeFilter/lineStyleFilter.js.map +1 -1
  343. package/dist/esm/pipeline/spec/chart/pipes/pipeFilter/pointStyleFilter.js.map +1 -1
  344. package/dist/esm/pipeline/spec/chart/pipes/pivotChart/dimensionLinkage.js.map +1 -1
  345. package/dist/esm/pipeline/spec/chart/pipes/pivotChart/heatmapColorDomain.js.map +1 -1
  346. package/dist/esm/pipeline/spec/chart/pipes/pivotChart/index.js +10 -11
  347. package/dist/esm/pipeline/spec/chart/pipes/pivotChart/pivotAdapter.js.map +1 -1
  348. package/dist/esm/pipeline/spec/chart/pipes/pivotChart/pivotAxisStyle.js.map +1 -1
  349. package/dist/esm/pipeline/spec/chart/pipes/pivotChart/pivotColumnDimensions.js.map +1 -1
  350. package/dist/esm/pipeline/spec/chart/pipes/pivotChart/pivotGridStyle.js.map +1 -1
  351. package/dist/esm/pipeline/spec/chart/pipes/pivotChart/pivotHideIndicatorName.js.map +1 -1
  352. package/dist/esm/pipeline/spec/chart/pipes/pivotChart/pivotIndicators.js.map +1 -1
  353. package/dist/esm/pipeline/spec/chart/pipes/pivotChart/pivotRowDimensions.js.map +1 -1
  354. package/dist/esm/pipeline/spec/chart/pipes/pivotChart/pivotTitle.js.map +1 -1
  355. package/dist/esm/pipeline/spec/chart/pipes/player/isPlayer.js.map +1 -1
  356. package/dist/esm/pipeline/spec/chart/pipes/player/playerBar.js.map +1 -1
  357. package/dist/esm/pipeline/spec/chart/pipes/player/playerColumn.js.map +1 -1
  358. package/dist/esm/pipeline/spec/chart/pipes/player/playerLine.js.map +1 -1
  359. package/dist/esm/pipeline/spec/chart/pipes/player/playerPie.js.map +1 -1
  360. package/dist/esm/pipeline/spec/chart/pipes/player/playerScatter.js.map +1 -1
  361. package/dist/esm/pipeline/spec/chart/pipes/region/addRegionPadding.js.map +1 -1
  362. package/dist/esm/pipeline/spec/chart/pipes/regressionLine/columnRegressionLine.js.map +1 -1
  363. package/dist/esm/pipeline/spec/chart/pipes/regressionLine/common.js.map +1 -1
  364. package/dist/esm/pipeline/spec/chart/pipes/regressionLine/ecdfRegressionLine.js.map +1 -1
  365. package/dist/esm/pipeline/spec/chart/pipes/regressionLine/kdeRegressionLine.js.map +1 -1
  366. package/dist/esm/pipeline/spec/chart/pipes/regressionLine/linearRegressionLine.js.map +1 -1
  367. package/dist/esm/pipeline/spec/chart/pipes/series/index.js +1 -2
  368. package/dist/esm/pipeline/spec/chart/pipes/series/series.js.map +1 -1
  369. package/dist/esm/pipeline/spec/chart/pipes/size/index.js +1 -2
  370. package/dist/esm/pipeline/spec/chart/pipes/size/scatterSize.js.map +1 -1
  371. package/dist/esm/pipeline/spec/chart/pipes/stack/index.js +2 -3
  372. package/dist/esm/pipeline/spec/chart/pipes/stack/stack.js.map +1 -1
  373. package/dist/esm/pipeline/spec/chart/pipes/stack/stackCornerRadius.js.map +1 -1
  374. package/dist/esm/pipeline/spec/chart/pipes/theme/fontFamily.js.map +1 -1
  375. package/dist/esm/pipeline/spec/chart/pipes/theme/index.js +1 -2
  376. package/dist/esm/pipeline/spec/chart/pipes/tooltip/index.js +7 -8
  377. package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltip.js.map +1 -1
  378. package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltipBoxplot.js.map +1 -1
  379. package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltipDualAxis.js.map +1 -1
  380. package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltipElement.js.map +1 -1
  381. package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltipHeatmap.js.map +1 -1
  382. package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltipHierarchy.js.map +1 -1
  383. package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltipHistogram.js.map +1 -1
  384. package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltipScatter.js.map +1 -1
  385. package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltipStyle.js.map +1 -1
  386. package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltipTreeMap.js.map +1 -1
  387. package/dist/esm/pipeline/spec/chart/utils/condition.js.map +1 -1
  388. package/dist/esm/pipeline/spec/chart/utils/histogram.js.map +1 -1
  389. package/dist/esm/pipeline/spec/table/pipeline/index.js +2 -3
  390. package/dist/esm/pipeline/spec/table/pipeline/pivotTable.js.map +1 -1
  391. package/dist/esm/pipeline/spec/table/pipeline/table.js.map +1 -1
  392. package/dist/esm/pipeline/spec/table/pipes/cellStyle/common.js.map +1 -1
  393. package/dist/esm/pipeline/spec/table/pipes/cellStyle/pivot.js.map +1 -1
  394. package/dist/esm/pipeline/spec/table/pipes/cellStyle/table.js.map +1 -1
  395. package/dist/esm/pipeline/spec/table/pipes/columns/columnsAggregation.js.map +1 -1
  396. package/dist/esm/pipeline/spec/table/pipes/columns/dimensionsToColumns.js.map +1 -1
  397. package/dist/esm/pipeline/spec/table/pipes/columns/measuresToColumns.js.map +1 -1
  398. package/dist/esm/pipeline/spec/table/pipes/columns/pivotColumns.js.map +1 -1
  399. package/dist/esm/pipeline/spec/table/pipes/columns/utils.js.map +1 -1
  400. package/dist/esm/pipeline/spec/table/pipes/corner/index.js +1 -2
  401. package/dist/esm/pipeline/spec/table/pipes/corner/titleOnDimension.js.map +1 -1
  402. package/dist/esm/pipeline/spec/table/pipes/indicators/index.js +2 -3
  403. package/dist/esm/pipeline/spec/table/pipes/indicators/pivotDataConfig.js.map +1 -1
  404. package/dist/esm/pipeline/spec/table/pipes/indicators/pivotIndicators.js.map +1 -1
  405. package/dist/esm/pipeline/spec/table/pipes/init/index.js +2 -3
  406. package/dist/esm/pipeline/spec/table/pipes/init/pivotTable.js +1 -1
  407. package/dist/esm/pipeline/spec/table/pipes/init/pivotTable.js.map +1 -1
  408. package/dist/esm/pipeline/spec/table/pipes/init/table.js +1 -1
  409. package/dist/esm/pipeline/spec/table/pipes/init/table.js.map +1 -1
  410. package/dist/esm/pipeline/spec/table/pipes/rows/index.js +1 -2
  411. package/dist/esm/pipeline/spec/table/pipes/rows/pivotRows.js.map +1 -1
  412. package/dist/esm/pipeline/spec/table/pipes/theme/bodyStyle.js.map +1 -1
  413. package/dist/esm/pipeline/spec/table/pipes/theme/bottomFrozenStyle.js.map +1 -1
  414. package/dist/esm/pipeline/spec/table/pipes/theme/cornerHeaderStyle.js.map +1 -1
  415. package/dist/esm/pipeline/spec/table/pipes/theme/frameStyle.js.map +1 -1
  416. package/dist/esm/pipeline/spec/table/pipes/theme/headerStyle.js.map +1 -1
  417. package/dist/esm/pipeline/spec/table/pipes/theme/rowHeaderStyle.js.map +1 -1
  418. package/dist/esm/pipeline/spec/table/pipes/theme/scrollStyle.js.map +1 -1
  419. package/dist/esm/pipeline/spec/table/pipes/theme/selectionStyle.js.map +1 -1
  420. package/dist/esm/pipeline/utils/boxplot.js.map +1 -1
  421. package/dist/esm/pipeline/utils/chatType.js.map +1 -1
  422. package/dist/esm/pipeline/utils/constant.js.map +1 -1
  423. package/dist/esm/pipeline/utils/dimensions/delete.js.map +1 -1
  424. package/dist/esm/pipeline/utils/dimensions/typeGuard.js.map +1 -1
  425. package/dist/esm/pipeline/utils/format/createFormatter.js.map +1 -1
  426. package/dist/esm/pipeline/utils/format/createFormatterByDimension.js.map +1 -1
  427. package/dist/esm/pipeline/utils/format/createFormatterByMeasure.js.map +1 -1
  428. package/dist/esm/pipeline/utils/format/createNumFormatter.js.map +1 -1
  429. package/dist/esm/pipeline/utils/format/createTimeFormatter.js.map +1 -1
  430. package/dist/esm/pipeline/utils/measures/delete.js.map +1 -1
  431. package/dist/esm/pipeline/utils/measures/depth.js.map +1 -1
  432. package/dist/esm/pipeline/utils/measures/find.js.map +1 -1
  433. package/dist/esm/pipeline/utils/measures/typeGuard.js.map +1 -1
  434. package/dist/esm/pipeline/utils/pipeline.js.map +1 -1
  435. package/dist/esm/pipeline/utils/replaceNullToUndefined.js.map +1 -1
  436. package/dist/esm/pipeline/utils/sandbox/builtin-utils.js.map +1 -1
  437. package/dist/esm/pipeline/utils/sandbox/execute.js +1 -1
  438. package/dist/esm/pipeline/utils/sandbox/execute.js.map +1 -1
  439. package/dist/esm/pipeline/utils/sandbox/index.js +2 -3
  440. package/dist/esm/pipeline/utils/tree/traverse.js.map +1 -1
  441. package/dist/esm/pipeline/utils/valid/checkVSeed.js.map +1 -1
  442. package/dist/esm/pipeline/utils/valid/index.js +1 -2
  443. package/dist/esm/theme/common/annotaion.js +2 -1
  444. package/dist/esm/theme/common/annotaion.js.map +1 -1
  445. package/dist/esm/theme/common/axes.js.map +1 -1
  446. package/dist/esm/theme/common/boxPlot.js.map +1 -1
  447. package/dist/esm/theme/common/brush.js.map +1 -1
  448. package/dist/esm/theme/common/color.js.map +1 -1
  449. package/dist/esm/theme/common/crosshair.js.map +1 -1
  450. package/dist/esm/theme/common/funnelTransform.js.map +1 -1
  451. package/dist/esm/theme/common/heatmapCell.js.map +1 -1
  452. package/dist/esm/theme/common/label.js.map +1 -1
  453. package/dist/esm/theme/common/legend.js.map +1 -1
  454. package/dist/esm/theme/common/player.js.map +1 -1
  455. package/dist/esm/theme/common/regressionLine.js.map +1 -1
  456. package/dist/esm/theme/common/table.js.map +1 -1
  457. package/dist/esm/theme/common/tooltip.js.map +1 -1
  458. package/dist/esm/theme/dark/area.js.map +1 -1
  459. package/dist/esm/theme/dark/bar.js.map +1 -1
  460. package/dist/esm/theme/dark/boxPlot.js.map +1 -1
  461. package/dist/esm/theme/dark/column.js.map +1 -1
  462. package/dist/esm/theme/dark/dark.js.map +1 -1
  463. package/dist/esm/theme/dark/dualAxis.js.map +1 -1
  464. package/dist/esm/theme/dark/funnel.js.map +1 -1
  465. package/dist/esm/theme/dark/heatmap.js.map +1 -1
  466. package/dist/esm/theme/dark/hierarchy.js.map +1 -1
  467. package/dist/esm/theme/dark/histogram.js.map +1 -1
  468. package/dist/esm/theme/dark/index.js +1 -2
  469. package/dist/esm/theme/dark/line.js.map +1 -1
  470. package/dist/esm/theme/dark/pie.js.map +1 -1
  471. package/dist/esm/theme/dark/race.js.map +1 -1
  472. package/dist/esm/theme/dark/raceLine.js.map +1 -1
  473. package/dist/esm/theme/dark/racePie.js.map +1 -1
  474. package/dist/esm/theme/dark/radar.js.map +1 -1
  475. package/dist/esm/theme/dark/rose.js.map +1 -1
  476. package/dist/esm/theme/dark/scatter.js.map +1 -1
  477. package/dist/esm/theme/index.js +3 -4
  478. package/dist/esm/theme/light/area.js.map +1 -1
  479. package/dist/esm/theme/light/bar.js.map +1 -1
  480. package/dist/esm/theme/light/boxPlot.js.map +1 -1
  481. package/dist/esm/theme/light/column.js.map +1 -1
  482. package/dist/esm/theme/light/dualAxis.js.map +1 -1
  483. package/dist/esm/theme/light/funnel.js.map +1 -1
  484. package/dist/esm/theme/light/heatmap.js.map +1 -1
  485. package/dist/esm/theme/light/hierarchy.js.map +1 -1
  486. package/dist/esm/theme/light/histogram.js.map +1 -1
  487. package/dist/esm/theme/light/index.js +1 -2
  488. package/dist/esm/theme/light/light.js.map +1 -1
  489. package/dist/esm/theme/light/line.js.map +1 -1
  490. package/dist/esm/theme/light/pie.js.map +1 -1
  491. package/dist/esm/theme/light/race.js.map +1 -1
  492. package/dist/esm/theme/light/raceLine.js.map +1 -1
  493. package/dist/esm/theme/light/racePie.js.map +1 -1
  494. package/dist/esm/theme/light/radar.js.map +1 -1
  495. package/dist/esm/theme/light/rose.js.map +1 -1
  496. package/dist/esm/theme/light/scatter.js.map +1 -1
  497. package/dist/esm/theme/tokenTheme.js.map +1 -1
  498. package/dist/esm/types/advancedVSeed.js.map +1 -1
  499. package/dist/esm/types/builder/builder.js.map +1 -1
  500. package/dist/esm/types/chartType/area/index.js +1 -2
  501. package/dist/esm/types/chartType/area/zArea.js.map +1 -1
  502. package/dist/esm/types/chartType/areaPercent/index.js +1 -2
  503. package/dist/esm/types/chartType/areaPercent/zAreaPercent.js.map +1 -1
  504. package/dist/esm/types/chartType/bar/zBar.js.map +1 -1
  505. package/dist/esm/types/chartType/barParallel/zBarParallel.js.map +1 -1
  506. package/dist/esm/types/chartType/barPercent/zBarPercent.js.map +1 -1
  507. package/dist/esm/types/chartType/boxPlot/zBoxPlot.js.map +1 -1
  508. package/dist/esm/types/chartType/circlePacking/zCirclePacking.js.map +1 -1
  509. package/dist/esm/types/chartType/column/zColumn.js.map +1 -1
  510. package/dist/esm/types/chartType/columnParallel/zColumnParallel.js.map +1 -1
  511. package/dist/esm/types/chartType/columnPercent/zColumnPercent.js.map +1 -1
  512. package/dist/esm/types/chartType/donut/zDonut.js.map +1 -1
  513. package/dist/esm/types/chartType/dualAxis/index.js +1 -2
  514. package/dist/esm/types/chartType/dualAxis/zDualAxis.js.map +1 -1
  515. package/dist/esm/types/chartType/funnel/zFunnel.js.map +1 -1
  516. package/dist/esm/types/chartType/heatmap/zHeatmap.js.map +1 -1
  517. package/dist/esm/types/chartType/histogram/zHistogram.js.map +1 -1
  518. package/dist/esm/types/chartType/line/zLine.js.map +1 -1
  519. package/dist/esm/types/chartType/pie/zPie.js.map +1 -1
  520. package/dist/esm/types/chartType/pivotTable/zPivotTable.js.map +1 -1
  521. package/dist/esm/types/chartType/raceBar/zRaceBar.js.map +1 -1
  522. package/dist/esm/types/chartType/raceColumn/zRaceColumn.js.map +1 -1
  523. package/dist/esm/types/chartType/raceDonut/zRaceDonut.js.map +1 -1
  524. package/dist/esm/types/chartType/raceLine/zRaceLine.js.map +1 -1
  525. package/dist/esm/types/chartType/racePie/zRacePie.js.map +1 -1
  526. package/dist/esm/types/chartType/raceScatter/zRaceScatter.js.map +1 -1
  527. package/dist/esm/types/chartType/radar/zRadar.js.map +1 -1
  528. package/dist/esm/types/chartType/rose/zRose.js.map +1 -1
  529. package/dist/esm/types/chartType/roseParallel/zRoseParallel.js.map +1 -1
  530. package/dist/esm/types/chartType/scatter/zScatter.js.map +1 -1
  531. package/dist/esm/types/chartType/sunburst/zSunburst.js.map +1 -1
  532. package/dist/esm/types/chartType/table/zTable.js.map +1 -1
  533. package/dist/esm/types/chartType/treeMap/zTreeMap.js.map +1 -1
  534. package/dist/esm/types/dataSelector/selector.js.map +1 -1
  535. package/dist/esm/types/i18n/i18n.js.map +1 -1
  536. package/dist/esm/types/properties/aggregation/index.js +1 -2
  537. package/dist/esm/types/properties/aggregation/zAggregation.js.map +1 -1
  538. package/dist/esm/types/properties/analysis/analysis.js.map +1 -1
  539. package/dist/esm/types/properties/analysis/sort.js.map +1 -1
  540. package/dist/esm/types/properties/analysis/sortLegend.js.map +1 -1
  541. package/dist/esm/types/properties/annotation/annotation.js.map +1 -1
  542. package/dist/esm/types/properties/annotation/zAnnotationArea.js.map +1 -1
  543. package/dist/esm/types/properties/annotation/zAnnotationHorizontalLine.js.map +1 -1
  544. package/dist/esm/types/properties/annotation/zAnnotationPoint.js.map +1 -1
  545. package/dist/esm/types/properties/annotation/zAnnotationVerticalLine.js.map +1 -1
  546. package/dist/esm/types/properties/brush/index.js +1 -2
  547. package/dist/esm/types/properties/brush/zBrush.js.map +1 -1
  548. package/dist/esm/types/properties/cellStyle/bodyCellStyle.js.map +1 -1
  549. package/dist/esm/types/properties/cellStyle/cellStyle.js.map +1 -1
  550. package/dist/esm/types/properties/chartType/chartType.js.map +1 -1
  551. package/dist/esm/types/properties/chartType/index.js +1 -2
  552. package/dist/esm/types/properties/config/annotation/zAnnotation.js.map +1 -1
  553. package/dist/esm/types/properties/config/area.js.map +1 -1
  554. package/dist/esm/types/properties/config/axes/zBandAxis.js.map +1 -1
  555. package/dist/esm/types/properties/config/axes/zLinearAxis.js.map +1 -1
  556. package/dist/esm/types/properties/config/backgroundColor/backgroundColor.js.map +1 -1
  557. package/dist/esm/types/properties/config/bar.js.map +1 -1
  558. package/dist/esm/types/properties/config/barWidth/index.js.map +1 -1
  559. package/dist/esm/types/properties/config/boxWidth/zBoxWidth.js.map +1 -1
  560. package/dist/esm/types/properties/config/boxplot.js.map +1 -1
  561. package/dist/esm/types/properties/config/circlePacking.js.map +1 -1
  562. package/dist/esm/types/properties/config/color/color.js.map +1 -1
  563. package/dist/esm/types/properties/config/column.js.map +1 -1
  564. package/dist/esm/types/properties/config/config.js.map +1 -1
  565. package/dist/esm/types/properties/config/crosshair/zCrosshair.js.map +1 -1
  566. package/dist/esm/types/properties/config/dimensionLinkage/dimensionLinkage.js.map +1 -1
  567. package/dist/esm/types/properties/config/dualAxis.js.map +1 -1
  568. package/dist/esm/types/properties/config/funnel.js.map +1 -1
  569. package/dist/esm/types/properties/config/funnelTransform/zFunnelTransform.js.map +1 -1
  570. package/dist/esm/types/properties/config/heatmap/zHeatmap.js.map +1 -1
  571. package/dist/esm/types/properties/config/heatmap.js.map +1 -1
  572. package/dist/esm/types/properties/config/histogram.js.map +1 -1
  573. package/dist/esm/types/properties/config/label/zLabel.js.map +1 -1
  574. package/dist/esm/types/properties/config/label/zPieLabel.js.map +1 -1
  575. package/dist/esm/types/properties/config/legend/legend.js.map +1 -1
  576. package/dist/esm/types/properties/config/line.js.map +1 -1
  577. package/dist/esm/types/properties/config/pie.js.map +1 -1
  578. package/dist/esm/types/properties/config/pivotGrid/index.js +1 -2
  579. package/dist/esm/types/properties/config/pivotGrid/pivotGrid.js.map +1 -1
  580. package/dist/esm/types/properties/config/pivotTable.js.map +1 -1
  581. package/dist/esm/types/properties/config/player/index.js +1 -2
  582. package/dist/esm/types/properties/config/player/zPlayer.js.map +1 -1
  583. package/dist/esm/types/properties/config/race.js.map +1 -1
  584. package/dist/esm/types/properties/config/rose.js.map +1 -1
  585. package/dist/esm/types/properties/config/scatter.js.map +1 -1
  586. package/dist/esm/types/properties/config/stackCornerRadius/stackCornerRadius.js.map +1 -1
  587. package/dist/esm/types/properties/config/sunburst.js.map +1 -1
  588. package/dist/esm/types/properties/config/table.js.map +1 -1
  589. package/dist/esm/types/properties/config/tooltip/tooltip.js.map +1 -1
  590. package/dist/esm/types/properties/config/treeMap.js.map +1 -1
  591. package/dist/esm/types/properties/config/whiskers/index.js.map +1 -1
  592. package/dist/esm/types/properties/dataset/dataset.js.map +1 -1
  593. package/dist/esm/types/properties/dataset/index.js +1 -2
  594. package/dist/esm/types/properties/datasetReshapeInfo/index.js +1 -2
  595. package/dist/esm/types/properties/datasetReshapeInfo/zDatasetReshapeInfo.js.map +1 -1
  596. package/dist/esm/types/properties/dimensions/zDimensions.js.map +1 -1
  597. package/dist/esm/types/properties/encoding/index.js +3 -4
  598. package/dist/esm/types/properties/encoding/zDimensionEncoding.js.map +1 -1
  599. package/dist/esm/types/properties/encoding/zEncoding.js.map +1 -1
  600. package/dist/esm/types/properties/encoding/zMeasureEncoding.js.map +1 -1
  601. package/dist/esm/types/properties/format/numFormat.js.map +1 -1
  602. package/dist/esm/types/properties/format/timeFormat.js.map +1 -1
  603. package/dist/esm/types/properties/markStyle/barStyle.js.map +1 -1
  604. package/dist/esm/types/properties/markStyle/boxPlotStyle.js.map +1 -1
  605. package/dist/esm/types/properties/markStyle/lineStyle.js.map +1 -1
  606. package/dist/esm/types/properties/markStyle/markStyle.js.map +1 -1
  607. package/dist/esm/types/properties/markStyle/outlierStyle.js.map +1 -1
  608. package/dist/esm/types/properties/markStyle/pointStyle.js.map +1 -1
  609. package/dist/esm/types/properties/markStyle/zAreaStyle.js.map +1 -1
  610. package/dist/esm/types/properties/measures/zDualMeasures.js.map +1 -1
  611. package/dist/esm/types/properties/measures/zMeasures.js.map +1 -1
  612. package/dist/esm/types/properties/page/index.js +1 -2
  613. package/dist/esm/types/properties/page/zPage.js.map +1 -1
  614. package/dist/esm/types/properties/regressionLine/zRegressionLine.js.map +1 -1
  615. package/dist/esm/types/properties/theme/customTheme.js.map +1 -1
  616. package/dist/esm/types/properties/theme/index.js +2 -3
  617. package/dist/esm/types/properties/theme/theme.js.map +1 -1
  618. package/dist/esm/types/properties/totals/index.js +1 -2
  619. package/dist/esm/types/properties/totals/zTotals.js.map +1 -1
  620. package/dist/esm/types/zVseed.js.map +1 -1
  621. package/dist/umd/index.js +357 -357
  622. package/dist/umd/index.js.map +1 -1
  623. package/package.json +5 -5
@@ -1 +1 @@
1
- {"version":3,"file":"pipeline/spec/chart/pipes/markStyle/curve/curve.js","sources":["webpack://@visactor/vseed/./src/pipeline/spec/chart/pipes/markStyle/curve/curve.ts"],"sourcesContent":["import { isRadar } from 'src/pipeline/utils'\nimport type { VSeed } from 'src/types'\n\nexport const getCurveType = (vseed: VSeed, lineSmooth: boolean = false): string => {\n if (!lineSmooth) {\n return 'linear'\n }\n\n /**\n * Tip: 长期来看, 由VChart封装好雷达图与面积图的曲线类型差异, 是一个更好的选择.\n */\n return isRadar(vseed) ? 'catmullRomClosed' : 'monotone'\n}\n\nexport const getCurveTension = (vseed: VSeed, lineSmooth: boolean = false): number => {\n if (!lineSmooth) {\n return 0\n }\n\n /**\n * Tip: 长期来看, 由VChart封装好雷达图与面积图的曲线类型差异, 是一个更好的选择.\n */\n return isRadar(vseed) ? 0.4 : 0\n}\n"],"names":["getCurveType","vseed","lineSmooth","isRadar","getCurveTension"],"mappings":";AAGO,MAAMA,eAAe,CAACC,OAAcC,aAAsB,KAAK;IACpE,IAAI,CAACA,YACH,OAAO;IAMT,OAAOC,QAAQF,SAAS,qBAAqB;AAC/C;AAEO,MAAMG,kBAAkB,CAACH,OAAcC,aAAsB,KAAK;IACvE,IAAI,CAACA,YACH,OAAO;IAMT,OAAOC,QAAQF,SAAS,MAAM;AAChC"}
1
+ {"version":3,"file":"pipeline/spec/chart/pipes/markStyle/curve/curve.js","sources":["../../../../../../../../src/pipeline/spec/chart/pipes/markStyle/curve/curve.ts"],"sourcesContent":["import { isRadar } from 'src/pipeline/utils'\nimport type { VSeed } from 'src/types'\n\nexport const getCurveType = (vseed: VSeed, lineSmooth: boolean = false): string => {\n if (!lineSmooth) {\n return 'linear'\n }\n\n /**\n * Tip: 长期来看, 由VChart封装好雷达图与面积图的曲线类型差异, 是一个更好的选择.\n */\n return isRadar(vseed) ? 'catmullRomClosed' : 'monotone'\n}\n\nexport const getCurveTension = (vseed: VSeed, lineSmooth: boolean = false): number => {\n if (!lineSmooth) {\n return 0\n }\n\n /**\n * Tip: 长期来看, 由VChart封装好雷达图与面积图的曲线类型差异, 是一个更好的选择.\n */\n return isRadar(vseed) ? 0.4 : 0\n}\n"],"names":["getCurveType","vseed","lineSmooth","isRadar","getCurveTension"],"mappings":";AAGO,MAAMA,eAAe,CAACC,OAAcC,aAAsB,KAAK;IACpE,IAAI,CAACA,YACH,OAAO;IAMT,OAAOC,QAAQF,SAAS,qBAAqB;AAC/C;AAEO,MAAMG,kBAAkB,CAACH,OAAcC,aAAsB,KAAK;IACvE,IAAI,CAACA,YACH,OAAO;IAMT,OAAOC,QAAQF,SAAS,MAAM;AAChC"}
@@ -1,2 +1 @@
1
- import { getCurveTension, getCurveType } from "./curve.js";
2
- export { getCurveTension, getCurveType };
1
+ export { getCurveTension, getCurveType } from "./curve.js";
@@ -1 +1 @@
1
- {"version":3,"file":"pipeline/spec/chart/pipes/markStyle/funnelStyle.js","sources":["webpack://@visactor/vseed/./src/pipeline/spec/chart/pipes/markStyle/funnelStyle.ts"],"sourcesContent":["import type { IFunnelChartSpec } from '@visactor/vchart'\nimport type { VChartSpecPipe } from 'src/types'\n\nexport const funnelStyle: VChartSpecPipe = (spec) => {\n const result = {\n ...spec,\n funnel: {\n style: {},\n },\n } as IFunnelChartSpec\n\n return {\n ...result,\n funnel: {\n style: {\n cornerRadius: 0,\n },\n state: {\n hover: {\n fillOpacity: 0.6,\n },\n },\n },\n }\n}\n"],"names":["funnelStyle","spec","result"],"mappings":"AAGO,MAAMA,cAA8B,CAACC;IAC1C,MAAMC,SAAS;QACb,GAAGD,IAAI;QACP,QAAQ;YACN,OAAO,CAAC;QACV;IACF;IAEA,OAAO;QACL,GAAGC,MAAM;QACT,QAAQ;YACN,OAAO;gBACL,cAAc;YAChB;YACA,OAAO;gBACL,OAAO;oBACL,aAAa;gBACf;YACF;QACF;IACF;AACF"}
1
+ {"version":3,"file":"pipeline/spec/chart/pipes/markStyle/funnelStyle.js","sources":["../../../../../../../src/pipeline/spec/chart/pipes/markStyle/funnelStyle.ts"],"sourcesContent":["import type { IFunnelChartSpec } from '@visactor/vchart'\nimport type { VChartSpecPipe } from 'src/types'\n\nexport const funnelStyle: VChartSpecPipe = (spec) => {\n const result = {\n ...spec,\n funnel: {\n style: {},\n },\n } as IFunnelChartSpec\n\n return {\n ...result,\n funnel: {\n style: {\n cornerRadius: 0,\n },\n state: {\n hover: {\n fillOpacity: 0.6,\n },\n },\n },\n }\n}\n"],"names":["funnelStyle","spec","result"],"mappings":"AAGO,MAAMA,cAA8B,CAACC;IAC1C,MAAMC,SAAS;QACb,GAAGD,IAAI;QACP,QAAQ;YACN,OAAO,CAAC;QACV;IACF;IAEA,OAAO;QACL,GAAGC,MAAM;QACT,QAAQ;YACN,OAAO;gBACL,cAAc;YAChB;YACA,OAAO;gBACL,OAAO;oBACL,aAAa;gBACf;YACF;QACF;IACF;AACF"}
@@ -1 +1 @@
1
- {"version":3,"file":"pipeline/spec/chart/pipes/markStyle/funnelTransformStyle.js","sources":["webpack://@visactor/vseed/./src/pipeline/spec/chart/pipes/markStyle/funnelTransformStyle.ts"],"sourcesContent":["import type { VChartSpecPipe } from 'src/types'\nexport const funnelTransformStyle: VChartSpecPipe = (spec, context) => {\n const { advancedVSeed, vseed } = context\n const { chartType } = vseed\n const config = advancedVSeed.config?.[chartType as 'funnel']?.transform\n return {\n ...spec,\n transform: {\n style: {\n fill: config?.backgroundColor,\n },\n },\n transformLabel: {\n visible: true,\n style: {\n fill: config?.textColor,\n },\n },\n }\n}\n"],"names":["funnelTransformStyle","spec","context","advancedVSeed","vseed","chartType","config"],"mappings":"AACO,MAAMA,uBAAuC,CAACC,MAAMC;IACzD,MAAM,EAAEC,aAAa,EAAEC,KAAK,EAAE,GAAGF;IACjC,MAAM,EAAEG,SAAS,EAAE,GAAGD;IACtB,MAAME,SAASH,cAAc,MAAM,EAAE,CAACE,UAAsB,EAAE;IAC9D,OAAO;QACL,GAAGJ,IAAI;QACP,WAAW;YACT,OAAO;gBACL,MAAMK,QAAQ;YAChB;QACF;QACA,gBAAgB;YACd,SAAS;YACT,OAAO;gBACL,MAAMA,QAAQ;YAChB;QACF;IACF;AACF"}
1
+ {"version":3,"file":"pipeline/spec/chart/pipes/markStyle/funnelTransformStyle.js","sources":["../../../../../../../src/pipeline/spec/chart/pipes/markStyle/funnelTransformStyle.ts"],"sourcesContent":["import type { VChartSpecPipe } from 'src/types'\nexport const funnelTransformStyle: VChartSpecPipe = (spec, context) => {\n const { advancedVSeed, vseed } = context\n const { chartType } = vseed\n const config = advancedVSeed.config?.[chartType as 'funnel']?.transform\n return {\n ...spec,\n transform: {\n style: {\n fill: config?.backgroundColor,\n },\n },\n transformLabel: {\n visible: true,\n style: {\n fill: config?.textColor,\n },\n },\n }\n}\n"],"names":["funnelTransformStyle","spec","context","advancedVSeed","vseed","chartType","config"],"mappings":"AACO,MAAMA,uBAAuC,CAACC,MAAMC;IACzD,MAAM,EAAEC,aAAa,EAAEC,KAAK,EAAE,GAAGF;IACjC,MAAM,EAAEG,SAAS,EAAE,GAAGD;IACtB,MAAME,SAASH,cAAc,MAAM,EAAE,CAACE,UAAsB,EAAE;IAC9D,OAAO;QACL,GAAGJ,IAAI;QACP,WAAW;YACT,OAAO;gBACL,MAAMK,QAAQ;YAChB;QACF;QACA,gBAAgB;YACd,SAAS;YACT,OAAO;gBACL,MAAMA,QAAQ;YAChB;QACF;IACF;AACF"}
@@ -1,13 +1,12 @@
1
- import { barStyle } from "./barStyle.js";
2
- import { pointStyle } from "./pointStyle.js";
3
- import { lineStyle } from "./lineStyle.js";
4
- import { areaStyle } from "./areaStyle.js";
5
- import { cellStyle } from "./cellStyle.js";
6
- import { funnelStyle } from "./funnelStyle.js";
7
- import { pieStyle } from "./pieStyle.js";
8
- import { roseStyle } from "./roseStyle.js";
9
- import { funnelTransformStyle } from "./funnelTransformStyle.js";
10
- import { boxPlotStyle } from "./boxPlotStyle.js";
11
- import { outlierStyle } from "./outlierStyle.js";
12
1
  export * from "./pointState.js";
13
- export { areaStyle, barStyle, boxPlotStyle, cellStyle, funnelStyle, funnelTransformStyle, lineStyle, outlierStyle, pieStyle, pointStyle, roseStyle };
2
+ export { barStyle } from "./barStyle.js";
3
+ export { pointStyle } from "./pointStyle.js";
4
+ export { lineStyle } from "./lineStyle.js";
5
+ export { areaStyle } from "./areaStyle.js";
6
+ export { cellStyle } from "./cellStyle.js";
7
+ export { funnelStyle } from "./funnelStyle.js";
8
+ export { pieStyle } from "./pieStyle.js";
9
+ export { roseStyle } from "./roseStyle.js";
10
+ export { funnelTransformStyle } from "./funnelTransformStyle.js";
11
+ export { boxPlotStyle } from "./boxPlotStyle.js";
12
+ export { outlierStyle } from "./outlierStyle.js";
@@ -1 +1 @@
1
- {"version":3,"file":"pipeline/spec/chart/pipes/markStyle/lineStyle.js","sources":["webpack://@visactor/vseed/./src/pipeline/spec/chart/pipes/markStyle/lineStyle.ts"],"sourcesContent":["import type { IAreaChartSpec } from '@visactor/vchart'\nimport { selector, selectorWithDynamicFilter } from '../../../../../dataSelector'\nimport type { Datum, LineStyle, VChartSpecPipe } from 'src/types'\nimport { isEmpty, isNullish } from 'remeda'\nimport { getCurveTension, getCurveType } from './curve'\n\nexport const lineStyle: VChartSpecPipe = (spec, context) => {\n const { advancedVSeed } = context\n const { markStyle } = advancedVSeed\n const { lineStyle } = markStyle\n const result = {\n ...spec,\n line: {\n style: {},\n },\n } as IAreaChartSpec\n\n if (isNullish(lineStyle) || isEmpty(lineStyle)) {\n return result\n }\n\n const lineStyles = (Array.isArray(lineStyle) ? lineStyle : [lineStyle]) as LineStyle[]\n\n const customMap = lineStyles.reduce<object>((result, style, index) => {\n const { lineColor, lineColorOpacity, lineSmooth, lineStyle, lineWidth = 2, lineVisible = true } = style\n\n const dashSegment = lineWidth * 2\n const dashGap = lineWidth\n\n const lineDash =\n lineStyle === 'dashed' ? [dashSegment, dashSegment] : lineStyle === 'dotted' ? [dashGap / 2, dashGap * 2] : [0, 0]\n\n const curveType = getCurveType(context.vseed, lineSmooth)\n const curveTension = getCurveTension(context.vseed, lineSmooth)\n\n return {\n ...result,\n [`custom${index + 1}`]: {\n // 优先级: 后者覆盖前者\n level: index + 1,\n filter: (\n _: Datum,\n node: {\n renderNode: {\n context: {\n data: Datum[]\n }\n }\n },\n ) => {\n const lineData = node.renderNode.context.data\n for (const d of lineData) {\n const shouldApply = style.dynamicFilter\n ? selectorWithDynamicFilter(d, style.dynamicFilter, style.selector)\n : selector(d, style.selector)\n if (shouldApply) {\n return true\n }\n }\n return false\n },\n style: {\n visible: lineVisible,\n curveType: curveType,\n curveTension: curveTension,\n strokeOpacity: lineColorOpacity,\n stroke: lineColor,\n lineWidth: lineWidth,\n lineDash: lineDash,\n },\n },\n }\n }, {})\n\n return {\n ...result,\n line: {\n ...result.line,\n state: {\n ...customMap,\n },\n },\n }\n}\n"],"names":["lineStyle","spec","context","advancedVSeed","markStyle","result","isNullish","isEmpty","lineStyles","Array","customMap","style","index","lineColor","lineColorOpacity","lineSmooth","lineWidth","lineVisible","dashSegment","dashGap","lineDash","curveType","getCurveType","curveTension","getCurveTension","_","node","lineData","d","shouldApply","selectorWithDynamicFilter","selector"],"mappings":";;;AAMO,MAAMA,sBAA4B,CAACC,MAAMC;IAC9C,MAAM,EAAEC,aAAa,EAAE,GAAGD;IAC1B,MAAM,EAAEE,SAAS,EAAE,GAAGD;IACtB,MAAM,EAAEH,SAAS,EAAE,GAAGI;IACtB,MAAMC,SAAS;QACb,GAAGJ,IAAI;QACP,MAAM;YACJ,OAAO,CAAC;QACV;IACF;IAEA,IAAIK,UAAUN,cAAcO,QAAQP,YAClC,OAAOK;IAGT,MAAMG,aAAcC,MAAM,OAAO,CAACT,aAAaA,YAAY;QAACA;KAAU;IAEtE,MAAMU,YAAYF,WAAW,MAAM,CAAS,CAACH,QAAQM,OAAOC;QAC1D,MAAM,EAAEC,SAAS,EAAEC,gBAAgB,EAAEC,UAAU,EAAEf,SAAS,EAAEgB,YAAY,CAAC,EAAEC,cAAc,IAAI,EAAE,GAAGN;QAElG,MAAMO,cAAcF,AAAY,IAAZA;QACpB,MAAMG,UAAUH;QAEhB,MAAMI,WACJpB,AAAc,aAAdA,YAAyB;YAACkB;YAAaA;SAAY,GAAGlB,AAAc,aAAdA,YAAyB;YAACmB,UAAU;YAAa,IAAVA;SAAY,GAAG;YAAC;YAAG;SAAE;QAEpH,MAAME,YAAYC,aAAapB,QAAQ,KAAK,EAAEa;QAC9C,MAAMQ,eAAeC,gBAAgBtB,QAAQ,KAAK,EAAEa;QAEpD,OAAO;YACL,GAAGV,MAAM;YACT,CAAC,CAAC,MAAM,EAAEO,QAAQ,GAAG,CAAC,EAAE;gBAEtB,OAAOA,QAAQ;gBACf,QAAQ,CACNa,GACAC;oBAQA,MAAMC,WAAWD,KAAK,UAAU,CAAC,OAAO,CAAC,IAAI;oBAC7C,KAAK,MAAME,KAAKD,SAAU;wBACxB,MAAME,cAAclB,MAAM,aAAa,GACnCmB,0BAA0BF,GAAGjB,MAAM,aAAa,EAAEA,MAAM,QAAQ,IAChEoB,SAASH,GAAGjB,MAAM,QAAQ;wBAC9B,IAAIkB,aACF,OAAO;oBAEX;oBACA,OAAO;gBACT;gBACA,OAAO;oBACL,SAASZ;oBACT,WAAWI;oBACX,cAAcE;oBACd,eAAeT;oBACf,QAAQD;oBACR,WAAWG;oBACX,UAAUI;gBACZ;YACF;QACF;IACF,GAAG,CAAC;IAEJ,OAAO;QACL,GAAGf,MAAM;QACT,MAAM;YACJ,GAAGA,OAAO,IAAI;YACd,OAAO;gBACL,GAAGK,SAAS;YACd;QACF;IACF;AACF"}
1
+ {"version":3,"file":"pipeline/spec/chart/pipes/markStyle/lineStyle.js","sources":["../../../../../../../src/pipeline/spec/chart/pipes/markStyle/lineStyle.ts"],"sourcesContent":["import type { IAreaChartSpec } from '@visactor/vchart'\nimport { selector, selectorWithDynamicFilter } from '../../../../../dataSelector'\nimport type { Datum, LineStyle, VChartSpecPipe } from 'src/types'\nimport { isEmpty, isNullish } from 'remeda'\nimport { getCurveTension, getCurveType } from './curve'\n\nexport const lineStyle: VChartSpecPipe = (spec, context) => {\n const { advancedVSeed } = context\n const { markStyle } = advancedVSeed\n const { lineStyle } = markStyle\n const result = {\n ...spec,\n line: {\n style: {},\n },\n } as IAreaChartSpec\n\n if (isNullish(lineStyle) || isEmpty(lineStyle)) {\n return result\n }\n\n const lineStyles = (Array.isArray(lineStyle) ? lineStyle : [lineStyle]) as LineStyle[]\n\n const customMap = lineStyles.reduce<object>((result, style, index) => {\n const { lineColor, lineColorOpacity, lineSmooth, lineStyle, lineWidth = 2, lineVisible = true } = style\n\n const dashSegment = lineWidth * 2\n const dashGap = lineWidth\n\n const lineDash =\n lineStyle === 'dashed' ? [dashSegment, dashSegment] : lineStyle === 'dotted' ? [dashGap / 2, dashGap * 2] : [0, 0]\n\n const curveType = getCurveType(context.vseed, lineSmooth)\n const curveTension = getCurveTension(context.vseed, lineSmooth)\n\n return {\n ...result,\n [`custom${index + 1}`]: {\n // 优先级: 后者覆盖前者\n level: index + 1,\n filter: (\n _: Datum,\n node: {\n renderNode: {\n context: {\n data: Datum[]\n }\n }\n },\n ) => {\n const lineData = node.renderNode.context.data\n for (const d of lineData) {\n const shouldApply = style.dynamicFilter\n ? selectorWithDynamicFilter(d, style.dynamicFilter, style.selector)\n : selector(d, style.selector)\n if (shouldApply) {\n return true\n }\n }\n return false\n },\n style: {\n visible: lineVisible,\n curveType: curveType,\n curveTension: curveTension,\n strokeOpacity: lineColorOpacity,\n stroke: lineColor,\n lineWidth: lineWidth,\n lineDash: lineDash,\n },\n },\n }\n }, {})\n\n return {\n ...result,\n line: {\n ...result.line,\n state: {\n ...customMap,\n },\n },\n }\n}\n"],"names":["lineStyle","spec","context","advancedVSeed","markStyle","result","isNullish","isEmpty","lineStyles","Array","customMap","style","index","lineColor","lineColorOpacity","lineSmooth","lineWidth","lineVisible","dashSegment","dashGap","lineDash","curveType","getCurveType","curveTension","getCurveTension","_","node","lineData","d","shouldApply","selectorWithDynamicFilter","selector"],"mappings":";;;AAMO,MAAMA,sBAA4B,CAACC,MAAMC;IAC9C,MA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X,cAAcE;oBACd,eAAeT;oBACf,QAAQD;oBACR,WAAWG;oBACX,UAAUI;gBACZ;YACF;QACF;IACF,GAAG,CAAC;IAEJ,OAAO;QACL,GAAGf,MAAM;QACT,MAAM;YACJ,GAAGA,OAAO,IAAI;YACd,OAAO;gBACL,GAAGK,SAAS;YACd;QACF;IACF;AACF"}
@@ -1 +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 { chartType } = vseed\n const theme = config?.[chartType as 'boxPlot']?.outlierStyle\n\n const result = {\n ...spec,\n outlier: {\n style: {\n fill: theme?.pointColor,\n lineWidth: theme?.pointBorderWidth,\n stroke: theme?.pointBorderColor,\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 stroke: pointBorderColor,\n lineWidth: pointBorderWidth,\n lineDash: lineDash,\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","chartType","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,MAAM,EAAEE,SAAS,EAAE,GAAGH;IACtB,MAAMI,QAAQF,QAAQ,CAACC,UAAuB,EAAE;IAEhD,MAAME,SAAS;QACb,GAAGR,IAAI;QACP,SAAS;YACP,OAAO;gBACL,MAAMO,OAAO;gBACb,WAAWA,OAAO;gBAClB,QAAQA,OAAO;YACjB;QACF;IACF;IAEA,IAAIE,UAAUV,iBAAiBW,QAAQX,eACrC,OAAOS;IAGT,MAAMG,gBAAiBC,MAAM,OAAO,CAACb,gBAAgBA,eAAe;QAACA;KAAa;IAElF,MAAMc,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,QAAQJ;oBACR,WAAWE;oBACX,UAAUK;gBACZ;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"}
1
+ {"version":3,"file":"pipeline/spec/chart/pipes/markStyle/outlierStyle.js","sources":["../../../../../../../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 { chartType } = vseed\n const theme = config?.[chartType as 'boxPlot']?.outlierStyle\n\n const result = {\n ...spec,\n outlier: {\n style: {\n fill: theme?.pointColor,\n lineWidth: theme?.pointBorderWidth,\n stroke: theme?.pointBorderColor,\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 stroke: pointBorderColor,\n lineWidth: pointBorderWidth,\n lineDash: lineDash,\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","chartType","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,MAAM,EAAEE,SAAS,EAAE,GAAGH;IACtB,MAAMI,QAAQF,QAAQ,CAACC,UAAuB,EAAE;IAEhD,MAAME,SAAS;QACb,GAAGR,IAAI;QACP,SAAS;YACP,OAAO;gBACL,MAAMO,OAAO;gBACb,WAAWA,OAAO;gBAClB,QAAQA,OAAO;YACjB;QACF;IACF;IAEA,IAAIE,UAAUV,iBAAiBW,QAAQX,eACrC,OAAOS;IAGT,MAAMG,gBAAiBC,MAAM,OAAO,CAACb,gBAAgBA,eAAe;QAACA;KAAa;IAElF,MAAMc,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,QAAQJ;oBACR,WAAWE;oBACX,UAAUK;gBACZ;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"}
@@ -1 +1 @@
1
- {"version":3,"file":"pipeline/spec/chart/pipes/markStyle/pieStyle.js","sources":["webpack://@visactor/vseed/./src/pipeline/spec/chart/pipes/markStyle/pieStyle.ts"],"sourcesContent":["import type { IPieChartSpec } from '@visactor/vchart'\nimport type { VChartSpecPipe } from 'src/types'\n\nexport const pieStyle: VChartSpecPipe = (spec, context) => {\n const { advancedVSeed, vseed } = context\n const { chartType } = vseed\n const { dataset } = advancedVSeed\n const showStroke = dataset.length <= 30\n const config = advancedVSeed.config?.[chartType as 'pie']\n\n const result = {\n ...spec,\n pie: {\n style: {\n stroke: config?.backgroundColor ?? '#ffffff',\n lineWidth: showStroke ? 1 : 0,\n },\n },\n } as Required<IPieChartSpec>\n\n if ((spec as IPieChartSpec).outerRadius) {\n result.pie.state = {\n hover: {\n outerRadius: ((spec as IPieChartSpec).outerRadius as number) * 1.1,\n },\n }\n }\n\n if (config?.cornerRadius) {\n result.pie.style!.cornerRadius = config.cornerRadius\n }\n\n return result\n}\n"],"names":["pieStyle","spec","context","advancedVSeed","vseed","chartType","dataset","showStroke","config","result"],"mappings":"AAGO,MAAMA,WAA2B,CAACC,MAAMC;IAC7C,MAAM,EAAEC,aAAa,EAAEC,KAAK,EAAE,GAAGF;IACjC,MAAM,EAAEG,SAAS,EAAE,GAAGD;IACtB,MAAM,EAAEE,OAAO,EAAE,GAAGH;IACpB,MAAMI,aAAaD,QAAQ,MAAM,IAAI;IACrC,MAAME,SAASL,cAAc,MAAM,EAAE,CAACE,UAAmB;IAEzD,MAAMI,SAAS;QACb,GAAGR,IAAI;QACP,KAAK;YACH,OAAO;gBACL,QAAQO,QAAQ,mBAAmB;gBACnC,WAAWD,aAAa,IAAI;YAC9B;QACF;IACF;IAEA,IAAKN,KAAuB,WAAW,EACrCQ,OAAO,GAAG,CAAC,KAAK,GAAG;QACjB,OAAO;YACL,aAAeR,AAAgD,MAAhDA,KAAuB,WAAW;QACnD;IACF;IAGF,IAAIO,QAAQ,cACVC,OAAO,GAAG,CAAC,KAAK,CAAE,YAAY,GAAGD,OAAO,YAAY;IAGtD,OAAOC;AACT"}
1
+ {"version":3,"file":"pipeline/spec/chart/pipes/markStyle/pieStyle.js","sources":["../../../../../../../src/pipeline/spec/chart/pipes/markStyle/pieStyle.ts"],"sourcesContent":["import type { IPieChartSpec } from '@visactor/vchart'\nimport type { VChartSpecPipe } from 'src/types'\n\nexport const pieStyle: VChartSpecPipe = (spec, context) => {\n const { advancedVSeed, vseed } = context\n const { chartType } = vseed\n const { dataset } = advancedVSeed\n const showStroke = dataset.length <= 30\n const config = advancedVSeed.config?.[chartType as 'pie']\n\n const result = {\n ...spec,\n pie: {\n style: {\n stroke: config?.backgroundColor ?? '#ffffff',\n lineWidth: showStroke ? 1 : 0,\n },\n },\n } as Required<IPieChartSpec>\n\n if ((spec as IPieChartSpec).outerRadius) {\n result.pie.state = {\n hover: {\n outerRadius: ((spec as IPieChartSpec).outerRadius as number) * 1.1,\n },\n }\n }\n\n if (config?.cornerRadius) {\n result.pie.style!.cornerRadius = config.cornerRadius\n }\n\n return result\n}\n"],"names":["pieStyle","spec","context","advancedVSeed","vseed","chartType","dataset","showStroke","config","result"],"mappings":"AAGO,MAAMA,WAA2B,CAACC,MAAMC;IAC7C,MAAM,EAAEC,aAAa,EAAEC,KAAK,EAAE,GAAGF;IACjC,MAAM,EAAEG,SAAS,EAAE,GAAGD;IACtB,MAAM,EAAEE,OAAO,EAAE,GAAGH;IACpB,MAAMI,aAAaD,QAAQ,MAAM,IAAI;IACrC,MAAME,SAASL,cAAc,MAAM,EAAE,CAACE,UAAmB;IAEzD,MAAMI,SAAS;QACb,GAAGR,IAAI;QACP,KAAK;YACH,OAAO;gBACL,QAAQO,QAAQ,mBAAmB;gBACnC,WAAWD,aAAa,IAAI;YAC9B;QACF;IACF;IAEA,IAAKN,KAAuB,WAAW,EACrCQ,OAAO,GAAG,CAAC,KAAK,GAAG;QACjB,OAAO;YACL,aAAeR,AAAgD,MAAhDA,KAAuB,WAAW;QACnD;IACF;IAGF,IAAIO,QAAQ,cACVC,OAAO,GAAG,CAAC,KAAK,CAAE,YAAY,GAAGD,OAAO,YAAY;IAGtD,OAAOC;AACT"}
@@ -1 +1 @@
1
- {"version":3,"file":"pipeline/spec/chart/pipes/markStyle/pointState.js","sources":["webpack://@visactor/vseed/./src/pipeline/spec/chart/pipes/markStyle/pointState.ts"],"sourcesContent":["import type { IScatterChartSpec } from '@visactor/vchart'\nimport type { Datum, VChartSpecPipe } from 'src/types'\n\nexport const pointStateDimensionHover: VChartSpecPipe = (spec) => {\n const point = (spec as IScatterChartSpec).point || {}\n const result = {\n ...spec,\n point: {\n ...point,\n state: {\n ...(point.state || {}),\n dimension_hover: {\n scaleX: 1.4,\n scaleY: 1.4,\n outerBorder: {\n lineWidth: 4,\n strokeOpacity: 0.25,\n distance: 2,\n },\n },\n },\n },\n } as IScatterChartSpec\n return result\n}\n\nexport const pointStateHover: VChartSpecPipe = (spec, context) => {\n const point = (spec as IScatterChartSpec).point || {}\n const { advancedVSeed } = context\n const { datasetReshapeInfo } = advancedVSeed\n const { unfoldInfo } = datasetReshapeInfo[0]\n const result = {\n ...spec,\n point: {\n ...point,\n state: {\n ...(point.state || {}),\n hover: {\n scaleX: 1.4,\n scaleY: 1.4,\n stroke: (datum: Datum, context: unknown) => {\n const field = unfoldInfo.encodingColorId\n const color = (context as any).seriesColor(datum[field] as string)\n return color\n },\n fillOpacity: 0.6,\n lineWidth: 1,\n },\n },\n },\n } as IScatterChartSpec\n return result\n}\n"],"names":["pointStateDimensionHover","spec","point","result","pointStateHover","context","advancedVSeed","datasetReshapeInfo","unfoldInfo","datum","field","color"],"mappings":"AAGO,MAAMA,2BAA2C,CAACC;IACvD,MAAMC,QAASD,KAA2B,KAAK,IAAI,CAAC;IACpD,MAAME,SAAS;QACb,GAAGF,IAAI;QACP,OAAO;YACL,GAAGC,KAAK;YACR,OAAO;gBACL,GAAIA,MAAM,KAAK,IAAI,CAAC,CAAC;gBACrB,iBAAiB;oBACf,QAAQ;oBACR,QAAQ;oBACR,aAAa;wBACX,WAAW;wBACX,eAAe;wBACf,UAAU;oBACZ;gBACF;YACF;QACF;IACF;IACA,OAAOC;AACT;AAEO,MAAMC,kBAAkC,CAACH,MAAMI;IACpD,MAAMH,QAASD,KAA2B,KAAK,IAAI,CAAC;IACpD,MAAM,EAAEK,aAAa,EAAE,GAAGD;IAC1B,MAAM,EAAEE,kBAAkB,EAAE,GAAGD;IAC/B,MAAM,EAAEE,UAAU,EAAE,GAAGD,kBAAkB,CAAC,EAAE;IAC5C,MAAMJ,SAAS;QACb,GAAGF,IAAI;QACP,OAAO;YACL,GAAGC,KAAK;YACR,OAAO;gBACL,GAAIA,MAAM,KAAK,IAAI,CAAC,CAAC;gBACrB,OAAO;oBACL,QAAQ;oBACR,QAAQ;oBACR,QAAQ,CAACO,OAAcJ;wBACrB,MAAMK,QAAQF,WAAW,eAAe;wBACxC,MAAMG,QAASN,QAAgB,WAAW,CAACI,KAAK,CAACC,MAAM;wBACvD,OAAOC;oBACT;oBACA,aAAa;oBACb,WAAW;gBACb;YACF;QACF;IACF;IACA,OAAOR;AACT"}
1
+ {"version":3,"file":"pipeline/spec/chart/pipes/markStyle/pointState.js","sources":["../../../../../../../src/pipeline/spec/chart/pipes/markStyle/pointState.ts"],"sourcesContent":["import type { IScatterChartSpec } from '@visactor/vchart'\nimport type { Datum, VChartSpecPipe } from 'src/types'\n\nexport const pointStateDimensionHover: VChartSpecPipe = (spec) => {\n const point = (spec as IScatterChartSpec).point || {}\n const result = {\n ...spec,\n point: {\n ...point,\n state: {\n ...(point.state || {}),\n dimension_hover: {\n scaleX: 1.4,\n scaleY: 1.4,\n outerBorder: {\n lineWidth: 4,\n strokeOpacity: 0.25,\n distance: 2,\n },\n },\n },\n },\n } as IScatterChartSpec\n return result\n}\n\nexport const pointStateHover: VChartSpecPipe = (spec, context) => {\n const point = (spec as IScatterChartSpec).point || {}\n const { advancedVSeed } = context\n const { datasetReshapeInfo } = advancedVSeed\n const { unfoldInfo } = datasetReshapeInfo[0]\n const result = {\n ...spec,\n point: {\n ...point,\n state: {\n ...(point.state || {}),\n hover: {\n scaleX: 1.4,\n scaleY: 1.4,\n stroke: (datum: Datum, context: unknown) => {\n const field = unfoldInfo.encodingColorId\n const color = (context as any).seriesColor(datum[field] as string)\n return color\n },\n fillOpacity: 0.6,\n lineWidth: 1,\n },\n },\n },\n } as IScatterChartSpec\n return result\n}\n"],"names":["pointStateDimensionHover","spec","point","result","pointStateHover","context","advancedVSeed","datasetReshapeInfo","unfoldInfo","datum","field","color"],"mappings":"AAGO,MAAMA,2BAA2C,CAACC;IACvD,MAAMC,QAASD,KAA2B,KAAK,IAAI,CAAC;IACpD,MAAME,SAAS;QACb,GAAGF,IAAI;QACP,OAAO;YACL,GAAGC,KAAK;YACR,OAAO;gBACL,GAAIA,MAAM,KAAK,IAAI,CAAC,CAAC;gBACrB,iBAAiB;oBACf,QAAQ;oBACR,QAAQ;oBACR,aAAa;wBACX,WAAW;wBACX,eAAe;wBACf,UAAU;oBACZ;gBACF;YACF;QACF;IACF;IACA,OAAOC;AACT;AAEO,MAAMC,kBAAkC,CAACH,MAAMI;IACpD,MAAMH,QAASD,KAA2B,KAAK,IAAI,CAAC;IACpD,MAAM,EAAEK,aAAa,EAAE,GAAGD;IAC1B,MAAM,EAAEE,kBAAkB,EAAE,GAAGD;IAC/B,MAAM,EAAEE,UAAU,EAAE,GAAGD,kBAAkB,CAAC,EAAE;IAC5C,MAAMJ,SAAS;QACb,GAAGF,IAAI;QACP,OAAO;YACL,GAAGC,KAAK;YACR,OAAO;gBACL,GAAIA,MAAM,KAAK,IAAI,CAAC,CAAC;gBACrB,OAAO;oBACL,QAAQ;oBACR,QAAQ;oBACR,QAAQ,CAACO,OAAcJ;wBACrB,MAAMK,QAAQF,WAAW,eAAe;wBACxC,MAAMG,QAASN,QAAgB,WAAW,CAACI,KAAK,CAACC,MAAM;wBACvD,OAAOC;oBACT;oBACA,aAAa;oBACb,WAAW;gBACb;YACF;QACF;IACF;IACA,OAAOR;AACT"}
@@ -1 +1 @@
1
- {"version":3,"file":"pipeline/spec/chart/pipes/markStyle/pointStyle.js","sources":["webpack://@visactor/vseed/./src/pipeline/spec/chart/pipes/markStyle/pointStyle.ts"],"sourcesContent":["import type { IAreaChartSpec } from '@visactor/vchart'\nimport { selector, selectorWithDynamicFilter } from '../../../../../dataSelector'\nimport type { Datum, PointStyle, VChartSpecPipe } from 'src/types'\nimport { isEmpty, isNullish } from 'remeda'\n\nexport const pointStyle: VChartSpecPipe = (spec, context) => {\n const { advancedVSeed } = context\n const { markStyle } = advancedVSeed\n const { pointStyle } = markStyle\n const result = {\n ...spec,\n point: {\n style: {},\n },\n } as IAreaChartSpec\n if (isNullish(pointStyle) || isEmpty(pointStyle)) {\n return result\n }\n\n const pointStyles = (Array.isArray(pointStyle) ? pointStyle : [pointStyle]) as PointStyle[]\n\n const customMap = pointStyles.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 const shouldApply = style.dynamicFilter\n ? selectorWithDynamicFilter(datum, style.dynamicFilter, style.selector)\n : selector(datum, style.selector)\n if (shouldApply) {\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 point: {\n ...result.point,\n state: {\n ...customMap,\n },\n },\n }\n}\n"],"names":["pointStyle","spec","context","advancedVSeed","markStyle","result","isNullish","isEmpty","pointStyles","Array","customMap","style","index","pointBorderColor","pointBorderStyle","pointBorderWidth","pointColor","pointColorOpacity","pointSize","pointVisible","lineDash","datum","shouldApply","selectorWithDynamicFilter","selector"],"mappings":";;AAKO,MAAMA,wBAA6B,CAACC,MAAMC;IAC/C,MAAM,EAAEC,aAAa,EAAE,GAAGD;IAC1B,MAAM,EAAEE,SAAS,EAAE,GAAGD;IACtB,MAAM,EAAEH,UAAU,EAAE,GAAGI;IACvB,MAAMC,SAAS;QACb,GAAGJ,IAAI;QACP,OAAO;YACL,OAAO,CAAC;QACV;IACF;IACA,IAAIK,UAAUN,eAAeO,QAAQP,aACnC,OAAOK;IAGT,MAAMG,cAAeC,MAAM,OAAO,CAACT,cAAcA,aAAa;QAACA;KAAW;IAE1E,MAAMU,YAAYF,YAAY,MAAM,CAAS,CAACH,QAAQM,OAAOC;QAC3D,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,MAAMC,cAAcX,MAAM,aAAa,GACnCY,0BAA0BF,OAAOV,MAAM,aAAa,EAAEA,MAAM,QAAQ,IACpEa,SAASH,OAAOV,MAAM,QAAQ;oBAClC,IAAIW,aACF,OAAO;oBAET,OAAO;gBACT;gBACA,OAAO;oBACL,SAASH;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,OAAO;YACL,GAAGA,OAAO,KAAK;YACf,OAAO;gBACL,GAAGK,SAAS;YACd;QACF;IACF;AACF"}
1
+ {"version":3,"file":"pipeline/spec/chart/pipes/markStyle/pointStyle.js","sources":["../../../../../../../src/pipeline/spec/chart/pipes/markStyle/pointStyle.ts"],"sourcesContent":["import type { IAreaChartSpec } from '@visactor/vchart'\nimport { selector, selectorWithDynamicFilter } from '../../../../../dataSelector'\nimport type { Datum, PointStyle, VChartSpecPipe } from 'src/types'\nimport { isEmpty, isNullish } from 'remeda'\n\nexport const pointStyle: VChartSpecPipe = (spec, context) => {\n const { advancedVSeed } = context\n const { markStyle } = advancedVSeed\n const { pointStyle } = markStyle\n const result = {\n ...spec,\n point: {\n style: {},\n },\n } as IAreaChartSpec\n if (isNullish(pointStyle) || isEmpty(pointStyle)) {\n return result\n }\n\n const pointStyles = (Array.isArray(pointStyle) ? pointStyle : [pointStyle]) as PointStyle[]\n\n const customMap = pointStyles.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 const shouldApply = style.dynamicFilter\n ? selectorWithDynamicFilter(datum, style.dynamicFilter, style.selector)\n : selector(datum, style.selector)\n if (shouldApply) {\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 point: {\n ...result.point,\n state: {\n ...customMap,\n },\n },\n }\n}\n"],"names":["pointStyle","spec","context","advancedVSeed","markStyle","result","isNullish","isEmpty","pointStyles","Array","customMap","style","index","pointBorderColor","pointBorderStyle","pointBorderWidth","pointColor","pointColorOpacity","pointSize","pointVisible","lineDash","datum","shouldApply","selectorWithDynamicFilter","selector"],"mappings":";;AAKO,MAAMA,wBAA6B,CAACC,MAAMC;IAC/C,MAAM,EAAEC,aAAa,EAAE,GAAGD;IAC1B,MAAM,EAAEE,SAAS,EAAE,GAAGD;IACtB,MAAM,EAAEH,UAAU,EAAE,GAAGI;IACvB,MAAMC,SAAS;QACb,GAAGJ,IAAI;QACP,OAAO;YACL,OAAO,CAAC;QACV;IACF;IACA,IAAIK,UAAUN,eAAeO,QAAQP,aACnC,OAAOK;IAGT,MAAMG,cAAeC,MAAM,OAAO,CAACT,cAAcA,aAAa;QAACA;KAAW;IAE1E,MAAMU,YAAYF,YAAY,MAAM,CAAS,CAACH,QAAQM,OAAOC;QAC3D,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,MAAMC,cAAcX,MAAM,aAAa,GACnCY,0BAA0BF,OAAOV,MAAM,aAAa,EAAEA,MAAM,QAAQ,IACpEa,SAASH,OAAOV,MAAM,QAAQ;oBAClC,IAAIW,aACF,OAAO;oBAET,OAAO;gBACT;gBACA,OAAO;oBACL,SAASH;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,OAAO;YACL,GAAGA,OAAO,KAAK;YACf,OAAO;gBACL,GAAGK,SAAS;YACd;QACF;IACF;AACF"}
@@ -1 +1 @@
1
- {"version":3,"file":"pipeline/spec/chart/pipes/markStyle/roseStyle.js","sources":["webpack://@visactor/vseed/./src/pipeline/spec/chart/pipes/markStyle/roseStyle.ts"],"sourcesContent":["import type { IRoseChartSpec } from '@visactor/vchart'\nimport type { VChartSpecPipe } from 'src/types'\n\nexport const roseStyle: VChartSpecPipe = (spec, context) => {\n const { advancedVSeed } = context\n const { dataset } = advancedVSeed\n const showStroke = dataset.length <= 30\n\n const result = {\n ...spec,\n rose: {\n style: {},\n },\n } as Required<IRoseChartSpec>\n\n return {\n ...result,\n rose: {\n style: {\n stroke: '#ffffff',\n lineWidth: showStroke ? 1 : 0,\n },\n state: {\n hover: {\n lineWidth: 1,\n fillOpacity: 0.6,\n },\n },\n },\n }\n}\n"],"names":["roseStyle","spec","context","advancedVSeed","dataset","showStroke","result"],"mappings":"AAGO,MAAMA,YAA4B,CAACC,MAAMC;IAC9C,MAAM,EAAEC,aAAa,EAAE,GAAGD;IAC1B,MAAM,EAAEE,OAAO,EAAE,GAAGD;IACpB,MAAME,aAAaD,QAAQ,MAAM,IAAI;IAErC,MAAME,SAAS;QACb,GAAGL,IAAI;QACP,MAAM;YACJ,OAAO,CAAC;QACV;IACF;IAEA,OAAO;QACL,GAAGK,MAAM;QACT,MAAM;YACJ,OAAO;gBACL,QAAQ;gBACR,WAAWD,aAAa,IAAI;YAC9B;YACA,OAAO;gBACL,OAAO;oBACL,WAAW;oBACX,aAAa;gBACf;YACF;QACF;IACF;AACF"}
1
+ {"version":3,"file":"pipeline/spec/chart/pipes/markStyle/roseStyle.js","sources":["../../../../../../../src/pipeline/spec/chart/pipes/markStyle/roseStyle.ts"],"sourcesContent":["import type { IRoseChartSpec } from '@visactor/vchart'\nimport type { VChartSpecPipe } from 'src/types'\n\nexport const roseStyle: VChartSpecPipe = (spec, context) => {\n const { advancedVSeed } = context\n const { dataset } = advancedVSeed\n const showStroke = dataset.length <= 30\n\n const result = {\n ...spec,\n rose: {\n style: {},\n },\n } as Required<IRoseChartSpec>\n\n return {\n ...result,\n rose: {\n style: {\n stroke: '#ffffff',\n lineWidth: showStroke ? 1 : 0,\n },\n state: {\n hover: {\n lineWidth: 1,\n fillOpacity: 0.6,\n },\n },\n },\n }\n}\n"],"names":["roseStyle","spec","context","advancedVSeed","dataset","showStroke","result"],"mappings":"AAGO,MAAMA,YAA4B,CAACC,MAAMC;IAC9C,MAAM,EAAEC,aAAa,EAAE,GAAGD;IAC1B,MAAM,EAAEE,OAAO,EAAE,GAAGD;IACpB,MAAME,aAAaD,QAAQ,MAAM,IAAI;IAErC,MAAME,SAAS;QACb,GAAGL,IAAI;QACP,MAAM;YACJ,OAAO,CAAC;QACV;IACF;IAEA,OAAO;QACL,GAAGK,MAAM;QACT,MAAM;YACJ,OAAO;gBACL,QAAQ;gBACR,WAAWD,aAAa,IAAI;YAC9B;YACA,OAAO;gBACL,OAAO;oBACL,WAAW;oBACX,aAAa;gBACf;YACF;QACF;IACF;AACF"}
@@ -1,2 +1 @@
1
- import { percent } from "./percent.js";
2
- export { percent };
1
+ export { percent } from "./percent.js";
@@ -1 +1 @@
1
- {"version":3,"file":"pipeline/spec/chart/pipes/percent/percent.js","sources":["webpack://@visactor/vseed/./src/pipeline/spec/chart/pipes/percent/percent.ts"],"sourcesContent":["import type { IAreaChartSpec, IBarChartSpec } from '@visactor/vchart'\nimport type { VChartSpecPipe } from 'src/types'\n\nexport const percent: VChartSpecPipe = (spec) => {\n const result = { ...spec } as IAreaChartSpec | IBarChartSpec\n result.percent = true\n return result\n}\n"],"names":["percent","spec","result"],"mappings":"AAGO,MAAMA,UAA0B,CAACC;IACtC,MAAMC,SAAS;QAAE,GAAGD,IAAI;IAAC;IACzBC,OAAO,OAAO,GAAG;IACjB,OAAOA;AACT"}
1
+ {"version":3,"file":"pipeline/spec/chart/pipes/percent/percent.js","sources":["../../../../../../../src/pipeline/spec/chart/pipes/percent/percent.ts"],"sourcesContent":["import type { IAreaChartSpec, IBarChartSpec } from '@visactor/vchart'\nimport type { VChartSpecPipe } from 'src/types'\n\nexport const percent: VChartSpecPipe = (spec) => {\n const result = { ...spec } as IAreaChartSpec | IBarChartSpec\n result.percent = true\n return result\n}\n"],"names":["percent","spec","result"],"mappings":"AAGO,MAAMA,UAA0B,CAACC;IACtC,MAAMC,SAAS;QAAE,GAAGD,IAAI;IAAC;IACzBC,OAAO,OAAO,GAAG;IACjB,OAAOA;AACT"}
@@ -1 +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"}
1
+ {"version":3,"file":"pipeline/spec/chart/pipes/pipeFilter/areaStyleFilter.js","sources":["../../../../../../../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"}
@@ -1 +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"}
1
+ {"version":3,"file":"pipeline/spec/chart/pipes/pipeFilter/barStyleFilter.js","sources":["../../../../../../../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"}
@@ -1 +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"}
1
+ {"version":3,"file":"pipeline/spec/chart/pipes/pipeFilter/lineStyleFilter.js","sources":["../../../../../../../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"}
@@ -1 +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"}
1
+ {"version":3,"file":"pipeline/spec/chart/pipes/pipeFilter/pointStyleFilter.js","sources":["../../../../../../../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"}
@@ -1 +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 heightLimitToShowTooltipForEdgeRow: (spec.defaultRowHeight as number) / 2,\n widthLimitToShowTooltipForEdgeColumn: (spec.defaultColWidth as number) / 2,\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,oCAAqCR,KAAK,gBAAgB,GAAc;QACxE,sCAAuCA,KAAK,eAAe,GAAc;QACzEO;IACF;IAEA,OAAOP;AACT"}
1
+ {"version":3,"file":"pipeline/spec/chart/pipes/pivotChart/dimensionLinkage.js","sources":["../../../../../../../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 heightLimitToShowTooltipForEdgeRow: (spec.defaultRowHeight as number) / 2,\n widthLimitToShowTooltipForEdgeColumn: (spec.defaultColWidth as number) / 2,\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,o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,WAAuB;QAC1F,oCAAqCR,KAAK,gBAAgB,GAAc;QACxE,sCAAuCA,KAAK,eAAe,GAAc;QACzEO;IACF;IAEA,OAAOP;AACT"}
@@ -1 +1 @@
1
- {"version":3,"file":"pipeline/spec/chart/pipes/pivotChart/heatmapColorDomain.js","sources":["webpack://@visactor/vseed/./src/pipeline/spec/chart/pipes/pivotChart/heatmapColorDomain.ts"],"sourcesContent":["import type { FoldInfo, PivotChartSpecPipe } from 'src/types'\n\nexport const heatmapColorDomain: PivotChartSpecPipe = (spec, context) => {\n const { advancedVSeed } = context\n\n const indicators = spec.indicators\n\n if (!indicators || !indicators.length || indicators.every((ind: any) => ind.chartSpec.color?.type !== 'linear')) {\n return spec\n }\n const { datasetReshapeInfo } = advancedVSeed\n const max = Math.max(...datasetReshapeInfo.map((d: { foldInfo: FoldInfo }) => d.foldInfo.statistics.colorMax))\n const min = Math.min(...datasetReshapeInfo.map((d: { foldInfo: FoldInfo }) => d.foldInfo.statistics.colorMin))\n\n indicators.forEach((ind: any) => {\n if (ind.chartSpec.color?.type === 'linear') {\n ind.chartSpec.color.domain = [min, max]\n }\n })\n\n return spec\n}\n"],"names":["heatmapColorDomain","spec","context","advancedVSeed","indicators","ind","datasetReshapeInfo","max","Math","d","min"],"mappings":"AAEO,MAAMA,qBAAyC,CAACC,MAAMC;IAC3D,MAAM,EAAEC,aAAa,EAAE,GAAGD;IAE1B,MAAME,aAAaH,KAAK,UAAU;IAElC,IAAI,CAACG,cAAc,CAACA,WAAW,MAAM,IAAIA,WAAW,KAAK,CAAC,CAACC,MAAaA,IAAI,SAAS,CAAC,KAAK,EAAE,SAAS,WACpG,OAAOJ;IAET,MAAM,EAAEK,kBAAkB,EAAE,GAAGH;IAC/B,MAAMI,MAAMC,KAAK,GAAG,IAAIF,mBAAmB,GAAG,CAAC,CAACG,IAA8BA,EAAE,QAAQ,CAAC,UAAU,CAAC,QAAQ;IAC5G,MAAMC,MAAMF,KAAK,GAAG,IAAIF,mBAAmB,GAAG,CAAC,CAACG,IAA8BA,EAAE,QAAQ,CAAC,UAAU,CAAC,QAAQ;IAE5GL,WAAW,OAAO,CAAC,CAACC;QAClB,IAAIA,IAAI,SAAS,CAAC,KAAK,EAAE,SAAS,UAChCA,IAAI,SAAS,CAAC,KAAK,CAAC,MAAM,GAAG;YAACK;YAAKH;SAAI;IAE3C;IAEA,OAAON;AACT"}
1
+ {"version":3,"file":"pipeline/spec/chart/pipes/pivotChart/heatmapColorDomain.js","sources":["../../../../../../../src/pipeline/spec/chart/pipes/pivotChart/heatmapColorDomain.ts"],"sourcesContent":["import type { FoldInfo, PivotChartSpecPipe } from 'src/types'\n\nexport const heatmapColorDomain: PivotChartSpecPipe = (spec, context) => {\n const { advancedVSeed } = context\n\n const indicators = spec.indicators\n\n if (!indicators || !indicators.length || indicators.every((ind: any) => ind.chartSpec.color?.type !== 'linear')) {\n return spec\n }\n const { datasetReshapeInfo } = advancedVSeed\n const max = Math.max(...datasetReshapeInfo.map((d: { foldInfo: FoldInfo }) => d.foldInfo.statistics.colorMax))\n const min = Math.min(...datasetReshapeInfo.map((d: { foldInfo: FoldInfo }) => d.foldInfo.statistics.colorMin))\n\n indicators.forEach((ind: any) => {\n if (ind.chartSpec.color?.type === 'linear') {\n ind.chartSpec.color.domain = [min, max]\n }\n })\n\n return spec\n}\n"],"names":["heatmapColorDomain","spec","context","advancedVSeed","indicators","ind","datasetReshapeInfo","max","Math","d","min"],"mappings":"AAEO,MAAMA,qBAAyC,CAACC,MAAMC;IAC3D,MAAM,EAAEC,aAAa,EAAE,GAAGD;IAE1B,MAAME,aAAaH,KAAK,UAAU;IAElC,IAAI,CAACG,cAAc,CAACA,WAAW,MAAM,IAAIA,WAAW,KAAK,CAAC,CAACC,MAAaA,IAAI,SAAS,CAAC,KAAK,EAAE,SAAS,WACpG,OAAOJ;IAET,MAAM,EAAEK,kBAAkB,EAAE,GAAGH;IAC/B,MAAMI,MAAMC,KAAK,GAAG,IAAIF,mBAAmB,GAAG,CAAC,CAACG,IAA8BA,EAAE,QAAQ,CAAC,UAAU,CAAC,QAAQ;IAC5G,MAAMC,MAAMF,KAAK,GAAG,IAAIF,mBAAmB,GAAG,CAAC,CAACG,IAA8BA,EAAE,QAAQ,CAAC,UAAU,CAAC,QAAQ;IAE5GL,WAAW,OAAO,CAAC,CAACC;QAClB,IAAIA,IAAI,SAAS,CAAC,KAAK,EAAE,SAAS,UAChCA,IAAI,SAAS,CAAC,KAAK,CAAC,MAAM,GAAG;YAACK;YAAKH;SAAI;IAE3C;IAEA,OAAON;AACT"}
@@ -1,11 +1,10 @@
1
- import { pivotAdapter } from "./pivotAdapter.js";
2
- import { pivotIndicators, pivotIndicatorsAsCol, pivotIndicatorsAsRow } from "./pivotIndicators.js";
3
- import { pivotGridStyle } from "./pivotGridStyle.js";
4
- import { pivotColumnDimensions } from "./pivotColumnDimensions.js";
5
- import { pivotRowDimensions } from "./pivotRowDimensions.js";
6
- import { pivotHideIndicatorName } from "./pivotHideIndicatorName.js";
7
- import { pivotAxisStyle } from "./pivotAxisStyle.js";
8
- import { pivotTitle } from "./pivotTitle.js";
9
- import { dimensionLinkage } from "./dimensionLinkage.js";
10
- import { heatmapColorDomain } from "./heatmapColorDomain.js";
11
- export { dimensionLinkage, heatmapColorDomain, pivotAdapter, pivotAxisStyle, pivotColumnDimensions, pivotGridStyle, pivotHideIndicatorName, pivotIndicators, pivotIndicatorsAsCol, pivotIndicatorsAsRow, pivotRowDimensions, pivotTitle };
1
+ export { pivotAdapter } from "./pivotAdapter.js";
2
+ export { pivotIndicators, pivotIndicatorsAsCol, pivotIndicatorsAsRow } from "./pivotIndicators.js";
3
+ export { pivotGridStyle } from "./pivotGridStyle.js";
4
+ export { pivotColumnDimensions } from "./pivotColumnDimensions.js";
5
+ export { pivotRowDimensions } from "./pivotRowDimensions.js";
6
+ export { pivotHideIndicatorName } from "./pivotHideIndicatorName.js";
7
+ export { pivotAxisStyle } from "./pivotAxisStyle.js";
8
+ export { pivotTitle } from "./pivotTitle.js";
9
+ export { dimensionLinkage } from "./dimensionLinkage.js";
10
+ export { heatmapColorDomain } from "./heatmapColorDomain.js";
@@ -1 +1 @@
1
- {"version":3,"file":"pipeline/spec/chart/pipes/pivotChart/pivotAdapter.js","sources":["webpack://@visactor/vseed/./src/pipeline/spec/chart/pipes/pivotChart/pivotAdapter.ts"],"sourcesContent":["import type {\n PivotChartSpecPipe,\n PivotChartSpecPipeline,\n SpecPipe,\n SpecPipelineContext,\n VChartSpecPipe,\n VChartSpecPipeline,\n} from 'src/types'\nimport type { ISpec } from '@visactor/vchart'\nimport type { PivotChartConstructorOptions } from '@visactor/vtable'\nimport { execPipeline, isPivotChart } from '../../../../utils'\n\nexport const pivotAdapter = (pipeline: VChartSpecPipeline, pivotPipeline: PivotChartSpecPipeline): SpecPipe => {\n const adapted = ((spec: unknown, context: SpecPipelineContext) => {\n const { vseed } = context\n const usePivotChart = isPivotChart(vseed)\n if (usePivotChart) {\n return execPipeline<PivotChartConstructorOptions, SpecPipelineContext>(\n pivotPipeline,\n context,\n spec as Partial<PivotChartConstructorOptions>,\n )\n }\n return execPipeline<ISpec, SpecPipelineContext>(pipeline, context, spec as Partial<ISpec>)\n }) as VChartSpecPipe & PivotChartSpecPipe\n\n return adapted as unknown as SpecPipe\n}\n"],"names":["pivotAdapter","pipeline","pivotPipeline","adapted","spec","context","vseed","usePivotChart","isPivotChart","execPipeline"],"mappings":";AAYO,MAAMA,eAAe,CAACC,UAA8BC;IACzD,MAAMC,UAAW,CAACC,MAAeC;QAC/B,MAAM,EAAEC,KAAK,EAAE,GAAGD;QAClB,MAAME,gBAAgBC,aAAaF;QACnC,IAAIC,eACF,OAAOE,aACLP,eACAG,SACAD;QAGJ,OAAOK,aAAyCR,UAAUI,SAASD;IACrE;IAEA,OAAOD;AACT"}
1
+ {"version":3,"file":"pipeline/spec/chart/pipes/pivotChart/pivotAdapter.js","sources":["../../../../../../../src/pipeline/spec/chart/pipes/pivotChart/pivotAdapter.ts"],"sourcesContent":["import type {\n PivotChartSpecPipe,\n PivotChartSpecPipeline,\n SpecPipe,\n SpecPipelineContext,\n VChartSpecPipe,\n VChartSpecPipeline,\n} from 'src/types'\nimport type { ISpec } from '@visactor/vchart'\nimport type { PivotChartConstructorOptions } from '@visactor/vtable'\nimport { execPipeline, isPivotChart } from '../../../../utils'\n\nexport const pivotAdapter = (pipeline: VChartSpecPipeline, pivotPipeline: PivotChartSpecPipeline): SpecPipe => {\n const adapted = ((spec: unknown, context: SpecPipelineContext) => {\n const { vseed } = context\n const usePivotChart = isPivotChart(vseed)\n if (usePivotChart) {\n return execPipeline<PivotChartConstructorOptions, SpecPipelineContext>(\n pivotPipeline,\n context,\n spec as Partial<PivotChartConstructorOptions>,\n )\n }\n return execPipeline<ISpec, SpecPipelineContext>(pipeline, context, spec as Partial<ISpec>)\n }) as VChartSpecPipe & PivotChartSpecPipe\n\n return adapted as unknown as SpecPipe\n}\n"],"names":["pivotAdapter","pipeline","pivotPipeline","adapted","spec","context","vseed","usePivotChart","isPivotChart","execPipeline"],"mappings":";AAYO,MAAMA,eAAe,CAACC,UAA8BC;IACzD,MAAMC,UAAW,CAACC,MAAeC;QAC/B,MAAM,EAAEC,KAAK,EAAE,GAAGD;QAClB,MAAME,gBAAgBC,aAAaF;QACnC,IAAIC,eACF,OAAOE,aACLP,eACAG,SACAD;QAGJ,OAAOK,aAAyCR,UAAUI,SAASD;IACrE;IAEA,OAAOD;AACT"}
@@ -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 { isNil } from '@visactor/vutils'\nimport { MeasureId } from 'src/dataReshape'\nimport { BAND_AXIS_INNER_OFFSET_IN_PIVOT, ChartTypeEnum } 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, encoding, reshapeMeasures, datasetReshapeInfo } = 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 (themConfig.axisLabelFontSize && axis.label && axis.label.visible && axis.label.style) {\n axis.label.style.fontSize = themConfig.axisLabelFontSize\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\n if (\n reshapeMeasures &&\n reshapeMeasures.length > 1 &&\n chartType === ChartTypeEnum.Heatmap &&\n isNil(axis.title.text)\n ) {\n axis.title.visible = true\n axis.title.text = Object.values(datasetReshapeInfo[0].foldInfo.foldMap)[0]\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 if (\n reshapeMeasures &&\n reshapeMeasures.length > 1 &&\n axis.title.text &&\n encoding.color &&\n encoding.color.length &&\n !encoding.color.includes(MeasureId)\n ) {\n axis.title.visible = true\n }\n }\n })\n }\n\n return result\n }\n}\n"],"names":["pivotAxisStyle","axisStyle","spec","context","result","advancedVSeed","config","chartType","enc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BACAA,gBAAgB,MAAM,GAAG,KACzBF,cAAcO,cAAc,OAAO,IACnCC,MAAMH,KAAK,KAAK,CAAC,IAAI,GACrB;4BACAA,KAAK,KAAK,CAAC,OAAO,GAAG;4BACrBA,KAAK,KAAK,CAAC,IAAI,GAAGI,OAAO,MAAM,CAACN,kBAAkB,CAAC,EAAE,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,EAAE;wBAC5E;oBACF,OAAO,IAAIE,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,EAAe;oBACjC,IAAIA,AAAgB,UAAhBA,KAAK,MAAM,IAAcA,AAAgB,aAAhBA,KAAK,MAAM,EACtCA,KAAK,KAAK,CAAC,KAAK,GAAG;oBAGrB,IACEH,mBACAA,gBAAgB,MAAM,GAAG,KACzBG,KAAK,KAAK,CAAC,IAAI,IACfJ,SAAS,KAAK,IACdA,SAAS,KAAK,CAAC,MAAM,IACrB,CAACA,SAAS,KAAK,CAAC,QAAQ,CAACS,YAEzBL,KAAK,KAAK,CAAC,OAAO,GAAG;gBAEzB;YACF;QACF;QAEA,OAAOR;IACT"}
1
+ {"version":3,"file":"pipeline/spec/chart/pipes/pivotChart/pivotAxisStyle.js","sources":["../../../../../../../src/pipeline/spec/chart/pipes/pivotChart/pivotAxisStyle.ts"],"sourcesContent":["import type { ILineChartSpec } from '@visactor/vchart'\nimport { isNil } from '@visactor/vutils'\nimport { MeasureId } from 'src/dataReshape'\nimport { BAND_AXIS_INNER_OFFSET_IN_PIVOT, ChartTypeEnum } 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, encoding, reshapeMeasures, datasetReshapeInfo } = 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 (themConfig.axisLabelFontSize && axis.label && axis.label.visible && axis.label.style) {\n axis.label.style.fontSize = themConfig.axisLabelFontSize\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\n if (\n reshapeMeasures &&\n reshapeMeasures.length > 1 &&\n chartType === ChartTypeEnum.Heatmap &&\n isNil(axis.title.text)\n ) {\n axis.title.visible = true\n axis.title.text = Object.values(datasetReshapeInfo[0].foldInfo.foldMap)[0]\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 if (\n reshapeMeasures &&\n reshapeMeasures.length > 1 &&\n axis.title.text &&\n encoding.color &&\n encoding.color.length &&\n !encoding.color.includes(MeasureId)\n ) {\n axis.title.visible = true\n }\n }\n })\n }\n\n return result\n }\n}\n"],"names":["pivotAxisStyle","axisStyle","spec","context","result","advancedVSeed","config","chartType","encoding","reshapeMeasures","datasetReshapeInfo","themConfig","axis","BAND_AXIS_INNER_OFFSET_IN_PIVOT","ChartTypeEnum","isNil","Object","MeasureId"],"mapp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,KAAK,KAAK,CAAC,OAAO,GAAG;4BACrBA,KAAK,KAAK,CAAC,IAAI,GAAGI,OAAO,MAAM,CAACN,kBAAkB,CAAC,EAAE,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,EAAE;wBAC5E;oBACF,OAAO,IAAIE,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,EAAe;oBACjC,IAAIA,AAAgB,UAAhBA,KAAK,MAAM,IAAcA,AAAgB,aAAhBA,KAAK,MAAM,EACtCA,KAAK,KAAK,CAAC,KAAK,GAAG;oBAGrB,IACEH,mBACAA,gBAAgB,MAAM,GAAG,KACzBG,KAAK,KAAK,CAAC,IAAI,IACfJ,SAAS,KAAK,IACdA,SAAS,KAAK,CAAC,MAAM,IACrB,CAACA,SAAS,KAAK,CAAC,QAAQ,CAACS,YAEzBL,KAAK,KAAK,CAAC,OAAO,GAAG;gBAEzB;YACF;QACF;QAEA,OAAOR;IACT"}
@@ -1 +1 @@
1
- {"version":3,"file":"pipeline/spec/chart/pipes/pivotChart/pivotColumnDimensions.js","sources":["webpack://@visactor/vseed/./src/pipeline/spec/chart/pipes/pivotChart/pivotColumnDimensions.ts"],"sourcesContent":["import type { PivotChartConstructorOptions } from '@visactor/vtable'\nimport { FoldXMeasureId } from 'src/dataReshape'\nimport { createFormatterByDimension } from 'src/pipeline/utils'\nimport type { Dimensions, PivotChartSpecPipe } from 'src/types'\n\nexport const pivotColumnDimensions: PivotChartSpecPipe = (spec, context): Partial<PivotChartConstructorOptions> => {\n const result = { ...spec } as PivotChartConstructorOptions\n const { advancedVSeed } = context\n const dimensions = advancedVSeed.dimensions as Dimensions\n const measures = advancedVSeed.measures ?? []\n\n if (!dimensions) {\n return result\n }\n const columnDimensions = dimensions.filter((dim) => dim.encoding === 'column')\n const columns = columnDimensions.map((dim) => {\n const baseConfig: any = {\n dimensionKey: dim.id,\n title: dim.alias ?? dim.id,\n }\n\n if (dim.id === FoldXMeasureId) {\n baseConfig.headerFormat = (title: string) => {\n const measure = measures.find((m) => m.id === title)\n\n return measure ? (measure.alias ?? measure.id) : title\n }\n } else if (dim.timeFormat) {\n const formatter = createFormatterByDimension(dim, advancedVSeed.locale)\n baseConfig.headerFormat = (value: string | number) => formatter(value)\n }\n\n return baseConfig\n }) as unknown\n\n return {\n ...result,\n columns: columns,\n } as Partial<PivotChartConstructorOptions>\n}\n"],"names":["pivotColumnDimensions","spec","context","result","advancedVSeed","dimensions","measures","columnDimensions","dim","columns","baseConfig","FoldXMeasureId","title","measure","m","formatter","createFormatterByDimension","value"],"mappings":";;AAKO,MAAMA,wBAA4C,CAACC,MAAMC;IAC9D,MAAMC,SAAS;QAAE,GAAGF,IAAI;IAAC;IACzB,MAAM,EAAEG,aAAa,EAAE,GAAGF;IAC1B,MAAMG,aAAaD,cAAc,UAAU;IAC3C,MAAME,WAAWF,cAAc,QAAQ,IAAI,EAAE;IAE7C,IAAI,CAACC,YACH,OAAOF;IAET,MAAMI,mBAAmBF,WAAW,MAAM,CAAC,CAACG,MAAQA,AAAiB,aAAjBA,IAAI,QAAQ;IAChE,MAAMC,UAAUF,iBAAiB,GAAG,CAAC,CAACC;QACpC,MAAME,aAAkB;YACtB,cAAcF,IAAI,EAAE;YACpB,OAAOA,IAAI,KAAK,IAAIA,IAAI,EAAE;QAC5B;QAEA,IAAIA,IAAI,EAAE,KAAKG,gBACbD,WAAW,YAAY,GAAG,CAACE;YACzB,MAAMC,UAAUP,SAAS,IAAI,CAAC,CAACQ,IAAMA,EAAE,EAAE,KAAKF;YAE9C,OAAOC,UAAWA,QAAQ,KAAK,IAAIA,QAAQ,EAAE,GAAID;QACnD;aACK,IAAIJ,IAAI,UAAU,EAAE;YACzB,MAAMO,YAAYC,2BAA2BR,KAAKJ,cAAc,MAAM;YACtEM,WAAW,YAAY,GAAG,CAACO,QAA2BF,UAAUE;QAClE;QAEA,OAAOP;IACT;IAEA,OAAO;QACL,GAAGP,MAAM;QACT,SAASM;IACX;AACF"}
1
+ {"version":3,"file":"pipeline/spec/chart/pipes/pivotChart/pivotColumnDimensions.js","sources":["../../../../../../../src/pipeline/spec/chart/pipes/pivotChart/pivotColumnDimensions.ts"],"sourcesContent":["import type { PivotChartConstructorOptions } from '@visactor/vtable'\nimport { FoldXMeasureId } from 'src/dataReshape'\nimport { createFormatterByDimension } from 'src/pipeline/utils'\nimport type { Dimensions, PivotChartSpecPipe } from 'src/types'\n\nexport const pivotColumnDimensions: PivotChartSpecPipe = (spec, context): Partial<PivotChartConstructorOptions> => {\n const result = { ...spec } as PivotChartConstructorOptions\n const { advancedVSeed } = context\n const dimensions = advancedVSeed.dimensions as Dimensions\n const measures = advancedVSeed.measures ?? []\n\n if (!dimensions) {\n return result\n }\n const columnDimensions = dimensions.filter((dim) => dim.encoding === 'column')\n const columns = columnDimensions.map((dim) => {\n const baseConfig: any = {\n dimensionKey: dim.id,\n title: dim.alias ?? dim.id,\n }\n\n if (dim.id === FoldXMeasureId) {\n baseConfig.headerFormat = (title: string) => {\n const measure = measures.find((m) => m.id === title)\n\n return measure ? (measure.alias ?? measure.id) : title\n }\n } else if (dim.timeFormat) {\n const formatter = createFormatterByDimension(dim, advancedVSeed.locale)\n baseConfig.headerFormat = (value: string | number) => formatter(value)\n }\n\n return baseConfig\n }) as unknown\n\n return {\n ...result,\n columns: columns,\n } as Partial<PivotChartConstructorOptions>\n}\n"],"names":["pivotColumnDimensions","spec","context","result","advancedVSeed","dimensions","measures","columnDimensions","dim","columns","baseConfig","FoldXMeasureId","title","measure","m","formatter","createFormatterByDimension","value"],"mappings":";;AAKO,MAAMA,wBAA4C,CAACC,MAAMC;IAC9D,MAAMC,SAAS;QAAE,GAAGF,IAAI;IAAC;IACzB,MAAM,EAAEG,aAAa,EAAE,GAAGF;IAC1B,MAAMG,aAAaD,cAAc,UAAU;IAC3C,MAAME,WAAWF,cAAc,QAAQ,IAAI,EAAE;IAE7C,IAAI,CAACC,YACH,OAAOF;IAET,MAAMI,mBAAmBF,WAAW,MAAM,CAAC,CAACG,MAAQA,AAAiB,aAAjBA,IAAI,QAAQ;IAChE,MAAMC,UAAUF,iBAAiB,GAAG,CAAC,CAACC;QACpC,MAAME,aAAkB;YACtB,cAAcF,IAAI,EAAE;YACpB,OAAOA,IAAI,KAAK,IAAIA,IAAI,EAAE;QAC5B;QAEA,IAAIA,IAAI,EAAE,KAAKG,gBACbD,WAAW,YAAY,GAAG,CAACE;YACzB,MAAMC,UAAUP,SAAS,IAAI,CAAC,CAACQ,IAAMA,EAAE,EAAE,KAAKF;YAE9C,OAAOC,UAAWA,QAAQ,KAAK,IAAIA,QAAQ,EAAE,GAAID;QACnD;aACK,IAAIJ,IAAI,UAAU,EAAE;YACzB,MAAMO,YAAYC,2BAA2BR,KAAKJ,cAAc,MAAM;YACtEM,WAAW,YAAY,GAAG,CAACO,QAA2BF,UAAUE;QAClE;QAEA,OAAOP;IACT;IAEA,OAAO;QACL,GAAGP,MAAM;QACT,SAASM;IACX;AACF"}
@@ -1 +1 @@
1
- {"version":3,"file":"pipeline/spec/chart/pipes/pivotChart/pivotGridStyle.js","sources":["webpack://@visactor/vseed/./src/pipeline/spec/chart/pipes/pivotChart/pivotGridStyle.ts"],"sourcesContent":["import type { PivotChartConstructorOptions } from '@visactor/vtable'\nimport { isCombination, isPivot } from 'src/pipeline/utils'\nimport type { Config, PivotChartSpecPipe } from 'src/types'\nimport { isNullish } from 'remeda'\n\nexport const pivotGridStyle: PivotChartSpecPipe = (spec, context) => {\n const { vseed, advancedVSeed } = context\n const { config, chartType } = advancedVSeed\n const chartConfig = (config?.[chartType] as (Config['line'] & { fontFamily?: string }) | undefined) ?? {}\n const themConfig = chartConfig?.pivotGrid ?? {}\n const fontFamily = chartConfig?.fontFamily\n\n const onlyCombination = !isPivot(vseed) && isCombination(vseed)\n\n const result = { ...spec } as PivotChartConstructorOptions\n const transparent = 'rgba(0,0,0,0)'\n\n const borderColor = themConfig.borderColor ?? '#e3e5eb'\n const bodyFontSize = themConfig.bodyFontSize ?? 12\n const bodyFontColor = themConfig.bodyFontColor ?? '#141414'\n const headerFontSize = themConfig.headerFontSize ?? 12\n const headerFontColor = themConfig.headerFontColor ?? '#21252c'\n const headerBackgroundColor = themConfig.headerBackgroundColor ?? 'rgba(0,0,0,0)'\n const hoverHeaderBackgroundColor = onlyCombination\n ? transparent\n : (themConfig.hoverHeaderBackgroundColor ?? '#D9DDE4')\n const hoverHeaderInlineBackgroundColor = onlyCombination\n ? transparent\n : (themConfig.hoverHeaderInlineBackgroundColor ?? '#D9DDE455')\n const outlineBorderLineWidth = themConfig.outlineBorderLineWidth ?? 0\n const frameCornerRadius = themConfig.frameCornerRadius ?? 0\n\n if (!isNullish(themConfig.minChartWidth)) {\n result.defaultColWidth = themConfig.minChartWidth!\n }\n\n if (!isNullish(themConfig.minChartHeight)) {\n result.defaultRowHeight = themConfig.minChartHeight!\n }\n\n return {\n ...result,\n theme: {\n underlayBackgroundColor: transparent,\n bodyStyle: {\n borderColor,\n color: bodyFontColor,\n fontSize: bodyFontSize,\n fontFamily,\n borderLineWidth: (arg: { row: number; col: number; table: any }) => {\n const noYAxis =\n chartType === 'pie' ||\n chartType === 'rose' ||\n chartType === 'donut' ||\n chartType === 'radar' ||\n chartType === 'roseParallel'\n\n return [\n arg.row === 0 || (chartType === 'funnel' && arg.row === 1 && arg.table.rowCount <= 2)\n ? outlineBorderLineWidth\n : 1,\n outlineBorderLineWidth,\n 0,\n arg.col === 0 || (noYAxis && arg.col === 1 && arg.table.colCount <= 2) ? outlineBorderLineWidth : 1,\n ]\n },\n bgColor: transparent,\n hover: {\n cellBgColor: 'transparent',\n },\n },\n headerStyle: {\n borderColor,\n fontSize: headerFontSize,\n fontFamily,\n // borderLineWidth: [outlineBorderLineWidth, outlineBorderLineWidth, 1, 1],\n borderLineWidth: (arg: { row: number; col: number }) => {\n return [outlineBorderLineWidth, outlineBorderLineWidth, 1, arg.col === 0 ? outlineBorderLineWidth : 1]\n },\n color: headerFontColor,\n textAlign: 'center',\n bgColor: headerBackgroundColor,\n hover: {\n cellBgColor: hoverHeaderBackgroundColor,\n inlineRowBgColor: hoverHeaderInlineBackgroundColor || undefined,\n inlineColumnBgColor: hoverHeaderInlineBackgroundColor || undefined,\n },\n },\n rowHeaderStyle: {\n borderColor,\n fontSize: headerFontSize,\n fontFamily,\n color: headerFontColor,\n padding: [0, 12, 0, 4],\n borderLineWidth: (arg: { row: number }) => {\n return [arg.row === 0 ? outlineBorderLineWidth : 1, 1, 0, outlineBorderLineWidth]\n },\n bgColor: headerBackgroundColor,\n hover: {\n cellBgColor: hoverHeaderBackgroundColor,\n inlineRowBgColor: hoverHeaderInlineBackgroundColor || undefined,\n inlineColumnBgColor: hoverHeaderInlineBackgroundColor || undefined,\n },\n },\n cornerHeaderStyle: {\n borderColor,\n textAlign: 'center',\n fontSize: headerFontSize,\n fontFamily,\n color: headerFontColor,\n padding: [0, 12, 0, 4],\n fontWeight: 'bold',\n borderLineWidth: [outlineBorderLineWidth, 1, 1, outlineBorderLineWidth],\n bgColor: headerBackgroundColor,\n frameStyle: {\n borderColor,\n },\n hover: {\n cellBgColor: hoverHeaderBackgroundColor,\n inlineRowBgColor: hoverHeaderInlineBackgroundColor || undefined,\n inlineColumnBgColor: hoverHeaderInlineBackgroundColor || undefined,\n },\n },\n cornerLeftBottomCellStyle: {\n borderColor,\n borderLineWidth: [outlineBorderLineWidth, 0, outlineBorderLineWidth, outlineBorderLineWidth],\n bgColor: headerBackgroundColor,\n frameStyle: {\n borderColor,\n borderLineWidth: [1, 0, outlineBorderLineWidth, outlineBorderLineWidth],\n },\n hover: {\n cellBgColor: hoverHeaderBackgroundColor,\n },\n },\n cornerRightTopCellStyle: {\n borderColor,\n borderLineWidth: [outlineBorderLineWidth, outlineBorderLineWidth, 1, 1],\n frameStyle: {\n borderColor,\n borderLineWidth: 0,\n },\n bgColor: headerBackgroundColor,\n hover: {\n cellBgColor: hoverHeaderBackgroundColor,\n },\n },\n rightFrozenStyle: {\n borderColor,\n bgColor: headerBackgroundColor,\n borderLineWidth: (arg: { row: number }) => {\n return [arg.row === 0 ? outlineBorderLineWidth : 1, outlineBorderLineWidth, 0, 1]\n },\n frameStyle: {\n borderLineWidth: 0,\n },\n hover: {\n borderLineWidth: 0,\n cellBgColor: hoverHeaderBackgroundColor,\n },\n },\n cornerRightBottomCellStyle: {\n borderColor,\n bgColor: headerBackgroundColor,\n borderLineWidth: [1, outlineBorderLineWidth, outlineBorderLineWidth, 1],\n frameStyle: {\n borderColor,\n borderLineWidth: [1, outlineBorderLineWidth, outlineBorderLineWidth, 1],\n },\n hover: {\n cellBgColor: hoverHeaderBackgroundColor,\n },\n },\n\n bottomFrozenStyle: {\n borderColor,\n fontSize: headerFontSize,\n color: headerFontColor,\n fontFamily,\n borderLineWidth: [1, outlineBorderLineWidth, outlineBorderLineWidth, 1],\n bgColor: headerBackgroundColor,\n hover: {\n cellBgColor: hoverHeaderBackgroundColor,\n },\n },\n selectionStyle: {\n cellBgColor: '',\n cellBorderColor: '',\n },\n frameStyle: {\n borderColor,\n cornerRadius: frameCornerRadius,\n borderLineWidth: outlineBorderLineWidth,\n },\n\n axisStyle: {\n leftAxisStyle: {\n cellPaddingLeft: 10,\n },\n bottomAxisStyle: {\n cellPaddingBottom: 4,\n },\n rightAxisStyle: {\n cellPaddingRight: 4,\n },\n },\n scrollStyle: {\n visible: 'scrolling',\n hoverOn: false,\n },\n },\n }\n}\n"],"names":["pivotGridStyle","spec","context","vseed","advancedVSeed","config","chartType","chartConfig","themConfig","fontFamily","onlyCombination","isPivot","isCombination","result","transparent","borderColor","bodyFontSize","bodyFontColor","headerFontSize","headerFontColor","headerBackgroundColor","hoverHeaderBackgroundColor","hoverHeaderInlineBackgroundColor","outlineBorderLineWidth","frameCornerRadius","isNullish","arg","noYAxis","undefined"],"mappings":";;AAKO,MAAMA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F"}
1
+ {"version":3,"file":"pipeline/spec/chart/pipes/pivotChart/pivotGridStyle.js","sources":["../../../../../../../src/pipeline/spec/chart/pipes/pivotChart/pivotGridStyle.ts"],"sourcesContent":["import type { PivotChartConstructorOptions } from '@visactor/vtable'\nimport { isCombination, isPivot } from 'src/pipeline/utils'\nimport type { Config, PivotChartSpecPipe } from 'src/types'\nimport { isNullish } from 'remeda'\n\nexport const pivotGridStyle: PivotChartSpecPipe = (spec, context) => {\n const { vseed, advancedVSeed } = context\n const { config, chartType } = advancedVSeed\n const chartConfig = (config?.[chartType] as (Config['line'] & { fontFamily?: string }) | undefined) ?? {}\n const themConfig = chartConfig?.pivotGrid ?? {}\n const fontFamily = chartConfig?.fontFamily\n\n const onlyCombination = !isPivot(vseed) && isCombination(vseed)\n\n const result = { ...spec } as PivotChartConstructorOptions\n const transparent = 'rgba(0,0,0,0)'\n\n const borderColor = themConfig.borderColor ?? '#e3e5eb'\n const bodyFontSize = themConfig.bodyFontSize ?? 12\n const bodyFontColor = themConfig.bodyFontColor ?? '#141414'\n const headerFontSize = themConfig.headerFontSize ?? 12\n const headerFontColor = themConfig.headerFontColor ?? '#21252c'\n const headerBackgroundColor = themConfig.headerBackgroundColor ?? 'rgba(0,0,0,0)'\n const hoverHeaderBackgroundColor = onlyCombination\n ? transparent\n : (themConfig.hoverHeaderBackgroundColor ?? '#D9DDE4')\n const hoverHeaderInlineBackgroundColor = onlyCombination\n ? transparent\n : (themConfig.hoverHeaderInlineBackgroundColor ?? '#D9DDE455')\n const outlineBorderLineWidth = themConfig.outlineBorderLineWidth ?? 0\n const frameCornerRadius = themConfig.frameCornerRadius ?? 0\n\n if (!isNullish(themConfig.minChartWidth)) {\n result.defaultColWidth = themConfig.minChartWidth!\n }\n\n if (!isNullish(themConfig.minChartHeight)) {\n result.defaultRowHeight = themConfig.minChartHeight!\n }\n\n return {\n ...result,\n theme: {\n underlayBackgroundColor: transparent,\n bodyStyle: {\n borderColor,\n color: bodyFontColor,\n fontSize: bodyFontSize,\n fontFamily,\n borderLineWidth: (arg: { row: number; col: number; table: any }) => {\n const noYAxis =\n chartType === 'pie' ||\n chartType === 'rose' ||\n chartType === 'donut' ||\n chartType === 'radar' ||\n chartType === 'roseParallel'\n\n return [\n arg.row === 0 || (chartType === 'funnel' && arg.row === 1 && arg.table.rowCount <= 2)\n ? outlineBorderLineWidth\n : 1,\n outlineBorderLineWidth,\n 0,\n arg.col === 0 || (noYAxis && arg.col === 1 && arg.table.colCount <= 2) ? outlineBorderLineWidth : 1,\n ]\n },\n bgColor: transparent,\n hover: {\n cellBgColor: 'transparent',\n },\n },\n headerStyle: {\n borderColor,\n fontSize: headerFontSize,\n fontFamily,\n // borderLineWidth: [outlineBorderLineWidth, outlineBorderLineWidth, 1, 1],\n borderLineWidth: (arg: { row: number; col: number }) => {\n return [outlineBorderLineWidth, outlineBorderLineWidth, 1, arg.col === 0 ? outlineBorderLineWidth : 1]\n },\n color: headerFontColor,\n textAlign: 'center',\n bgColor: headerBackgroundColor,\n hover: {\n cellBgColor: hoverHeaderBackgroundColor,\n inlineRowBgColor: hoverHeaderInlineBackgroundColor || undefined,\n inlineColumnBgColor: hoverHeaderInlineBackgroundColor || undefined,\n },\n },\n rowHeaderStyle: {\n borderColor,\n fontSize: headerFontSize,\n fontFamily,\n color: headerFontColor,\n padding: [0, 12, 0, 4],\n borderLineWidth: (arg: { row: number }) => {\n return [arg.row === 0 ? outlineBorderLineWidth : 1, 1, 0, outlineBorderLineWidth]\n },\n bgColor: headerBackgroundColor,\n hover: {\n cellBgColor: hoverHeaderBackgroundColor,\n inlineRowBgColor: hoverHeaderInlineBackgroundColor || undefined,\n inlineColumnBgColor: hoverHeaderInlineBackgroundColor || undefined,\n },\n },\n cornerHeaderStyle: {\n borderColor,\n textAlign: 'center',\n fontSize: headerFontSize,\n fontFamily,\n color: headerFontColor,\n padding: [0, 12, 0, 4],\n fontWeight: 'bold',\n borderLineWidth: [outlineBorderLineWidth, 1, 1, outlineBorderLineWidth],\n bgColor: headerBackgroundColor,\n frameStyle: {\n borderColor,\n },\n hover: {\n cellBgColor: hoverHeaderBackgroundColor,\n inlineRowBgColor: hoverHeaderInlineBackgroundColor || undefined,\n inlineColumnBgColor: hoverHeaderInlineBackgroundColor || undefined,\n },\n },\n cornerLeftBottomCellStyle: {\n borderColor,\n borderLineWidth: [outlineBorderLineWidth, 0, outlineBorderLineWidth, outlineBorderLineWidth],\n bgColor: headerBackgroundColor,\n frameStyle: {\n borderColor,\n borderLineWidth: [1, 0, outlineBorderLineWidth, outlineBorderLineWidth],\n },\n hover: {\n cellBgColor: hoverHeaderBackgroundColor,\n },\n },\n cornerRightTopCellStyle: {\n borderColor,\n borderLineWidth: [outlineBorderLineWidth, outlineBorderLineWidth, 1, 1],\n frameStyle: {\n borderColor,\n borderLineWidth: 0,\n },\n bgColor: headerBackgroundColor,\n hover: {\n cellBgColor: hoverHeaderBackgroundColor,\n },\n },\n rightFrozenStyle: {\n borderColor,\n bgColor: headerBackgroundColor,\n borderLineWidth: (arg: { row: number }) => {\n return [arg.row === 0 ? outlineBorderLineWidth : 1, outlineBorderLineWidth, 0, 1]\n },\n frameStyle: {\n borderLineWidth: 0,\n },\n hover: {\n borderLineWidth: 0,\n cellBgColor: hoverHeaderBackgroundColor,\n },\n },\n cornerRightBottomCellStyle: {\n borderColor,\n bgColor: headerBackgroundColor,\n borderLineWidth: [1, outlineBorderLineWidth, outlineBorderLineWidth, 1],\n frameStyle: {\n borderColor,\n borderLineWidth: [1, outlineBorderLineWidth, outlineBorderLineWidth, 1],\n },\n hover: {\n cellBgColor: hoverHeaderBackgroundColor,\n },\n },\n\n bottomFrozenStyle: {\n borderColor,\n fontSize: headerFontSize,\n color: headerFontColor,\n fontFamily,\n borderLineWidth: [1, outlineBorderLineWidth, outlineBorderLineWidth, 1],\n bgColor: headerBackgroundColor,\n hover: {\n cellBgColor: hoverHeaderBackgroundColor,\n },\n },\n selectionStyle: {\n cellBgColor: '',\n cellBorderColor: '',\n },\n frameStyle: {\n borderColor,\n cornerRadius: frameCornerRadius,\n borderLineWidth: outlineBorderLineWidth,\n },\n\n axisStyle: {\n leftAxisStyle: {\n cellPaddingLeft: 10,\n },\n bottomAxisStyle: {\n cellPaddingBottom: 4,\n },\n rightAxisStyle: {\n cellPaddingRight: 4,\n },\n },\n scrollStyle: {\n visible: 'scrolling',\n hoverOn: false,\n },\n },\n }\n}\n"],"names":["pivotGridStyle","spec","context","vseed","advancedVSeed","config","chartType","chartConfig","themConfig","fontFamily","onlyCombination","isPivot","isCombination","result","transparent","borderColor","bodyFontSize","bodyFontColor","headerFontSize","headerFontColor","headerBackgroundColor","hoverHeaderBackgroundColor","hoverHeaderInlineBackgroundColor","outlineBorderLineWidth","frameCornerRadius","isNullish","arg","noYAxis","undefined"],"mappings":";;AAKO,MAAMA,iBAAqC,CAACC,MAAMC;IACvD,MAAM,EAAEC,KAAK,EAAEC,aAAa,EAAE,GAAGF;IACjC,MAAM,EAAEG,MAAM,EAAEC,SAAS,EAAE,GAAGF;IAC9B,MAAMG,cAAeF,QAAQ,CAACC,UAAU,IAA+D,CAAC;IACxG,MAAME,aAAaD,aAAa,aAAa,CAAC;IAC9C,MAAME,aAAaF,aAAa;IAEhC,MAAMG,kBAAkB,CAACC,QAAQR,UAAUS,cAAcT;IAEzD,MAAMU,SAAS;QAAE,GAAGZ,IAAI;IAAC;IACzB,MAAMa,cAAc;IAEpB,MAAMC,cAAcP,WAAW,WAAW,IAAI;IAC9C,MAAMQ,eAAeR,WAAW,YAAY,IAAI;IAChD,MAAMS,gBAAgBT,WAAW,aAAa,IAAI;IAClD,MAAMU,iBAAiBV,WAAW,cAAc,IAAI;IACpD,MAAMW,kBAAkBX,WAAW,eAAe,IAAI;IACtD,MAAMY,wBAAwBZ,WAAW,qBAAqB,IAAI;IAClE,MAAMa,6BAA6BX,kBAC/BI,cACCN,WAAW,0BAA0B,IAAI;IAC9C,MAAMc,mCAAmCZ,kBACrCI,cACCN,WAAW,gCAAgC,IAA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Q;wBAAwBA;wBAAwB;qBAAE;gBACzE;gBACA,OAAO;oBACL,aAAaF;gBACf;YACF;YAEA,mBAAmB;gBACjBN;gBACA,UAAUG;gBACV,OAAOC;gBACPV;gBACA,iBAAiB;oBAAC;oBAAGc;oBAAwBA;oBAAwB;iBAAE;gBACvE,SAASH;gBACT,OAAO;oBACL,aAAaC;gBACf;YACF;YACA,gBAAgB;gBACd,aAAa;gBACb,iBAAiB;YACnB;YACA,YAAY;gBACVN;gBACA,cAAcS;gBACd,iBAAiBD;YACnB;YAEA,WAAW;gBACT,eAAe;oBACb,iBAAiB;gBACnB;gBACA,iBAAiB;oBACf,mBAAmB;gBACrB;gBACA,gBAAgB;oBACd,kBAAkB;gBACpB;YACF;YACA,aAAa;gBACX,SAAS;gBACT,SAAS;YACX;QACF;IACF;AACF"}
@@ -1 +1 @@
1
- {"version":3,"file":"pipeline/spec/chart/pipes/pivotChart/pivotHideIndicatorName.js","sources":["webpack://@visactor/vseed/./src/pipeline/spec/chart/pipes/pivotChart/pivotHideIndicatorName.ts"],"sourcesContent":["import type { PivotChartSpecPipe } from 'src/types'\n\nexport const pivotHideIndicatorName: PivotChartSpecPipe = (spec, context) => {\n const { advancedVSeed } = context\n const { datasetReshapeInfo } = advancedVSeed\n\n return {\n ...spec,\n hideIndicatorName: datasetReshapeInfo.length <= 1,\n }\n}\n"],"names":["pivotHideIndicatorName","spec","context","advancedVSeed","datasetReshapeInfo"],"mappings":"AAEO,MAAMA,yBAA6C,CAACC,MAAMC;IAC/D,MAAM,EAAEC,aAAa,EAAE,GAAGD;IAC1B,MAAM,EAAEE,kBAAkB,EAAE,GAAGD;IAE/B,OAAO;QACL,GAAGF,IAAI;QACP,mBAAmBG,mBAAmB,MAAM,IAAI;IAClD;AACF"}
1
+ {"version":3,"file":"pipeline/spec/chart/pipes/pivotChart/pivotHideIndicatorName.js","sources":["../../../../../../../src/pipeline/spec/chart/pipes/pivotChart/pivotHideIndicatorName.ts"],"sourcesContent":["import type { PivotChartSpecPipe } from 'src/types'\n\nexport const pivotHideIndicatorName: PivotChartSpecPipe = (spec, context) => {\n const { advancedVSeed } = context\n const { datasetReshapeInfo } = advancedVSeed\n\n return {\n ...spec,\n hideIndicatorName: datasetReshapeInfo.length <= 1,\n }\n}\n"],"names":["pivotHideIndicatorName","spec","context","advancedVSeed","datasetReshapeInfo"],"mappings":"AAEO,MAAMA,yBAA6C,CAACC,MAAMC;IAC/D,MAAM,EAAEC,aAAa,EAAE,GAAGD;IAC1B,MAAM,EAAEE,kBAAkB,EAAE,GAAGD;IAE/B,OAAO;QACL,GAAGF,IAAI;QACP,mBAAmBG,mBAAmB,MAAM,IAAI;IAClD;AACF"}
@@ -1 +1 @@
1
- {"version":3,"file":"pipeline/spec/chart/pipes/pivotChart/pivotIndicators.js","sources":["webpack://@visactor/vseed/./src/pipeline/spec/chart/pipes/pivotChart/pivotIndicators.ts"],"sourcesContent":["import type { PivotChartConstructorOptions } from '@visactor/vtable'\nimport { execPipeline, isRectungularCoordinate } from '../../../../utils'\nimport type { Dataset, Encoding, Measures, PivotChartSpecPipe, SpecPipelineContext, VChartSpecPipe } from 'src/types'\nimport { unique } from 'remeda'\n\nexport const pivotIndicators =\n (chartPipeline: VChartSpecPipe[]): PivotChartSpecPipe =>\n (spec, context): Partial<PivotChartConstructorOptions> => {\n const result = { ...spec } as PivotChartConstructorOptions\n const { advancedVSeed } = context\n const { datasetReshapeInfo, dataset, encoding, reshapeMeasures = [] } = advancedVSeed\n\n const colorItems = unique(datasetReshapeInfo.flatMap((d) => d.unfoldInfo.colorItems))\n const allMeasureIds = unique(datasetReshapeInfo.flatMap((d) => Object.keys(d.foldInfo.foldMap || {})))\n const indicators = datasetReshapeInfo.map((reshapeInfo, index) => {\n const subMeasures = (reshapeMeasures[index] || []) as Measures\n const subMeasuresId = (reshapeMeasures[index] || []).map((d) => d.id)\n const invalideMeasuresIds = allMeasureIds.filter((id: string) => !subMeasuresId.includes(id))\n\n const newDataset = dataset[index] as Dataset\n const newDatasetReshapeInfo = [\n {\n ...reshapeInfo,\n unfoldInfo: { ...reshapeInfo.unfoldInfo, colorItems },\n },\n ]\n const newContext: SpecPipelineContext = {\n ...context,\n advancedVSeed: {\n ...advancedVSeed,\n pivotAllDatasetReshapeInfo: datasetReshapeInfo,\n datasetReshapeInfo: newDatasetReshapeInfo,\n encoding: Object.keys(encoding).reduce((res, key) => {\n res[key as keyof Encoding] = encoding[key as keyof Encoding]?.filter((e) => {\n return !invalideMeasuresIds.includes(e)\n }) as string[]\n\n return res\n }, {} as Encoding),\n dataset: newDataset,\n },\n }\n\n const chartSpec = execPipeline(chartPipeline, newContext, {})\n\n return {\n indicatorKey: `${reshapeInfo.id}`,\n title: isRectungularCoordinate(advancedVSeed.chartType)\n ? ''\n : subMeasures.map((m) => m.alias ?? m.id).join('-'),\n cellType: 'chart',\n chartModule: 'vchart',\n chartSpec: chartSpec,\n style: {\n padding: [1, 1, 0, 1],\n },\n }\n })\n\n return {\n ...result,\n indicators: indicators,\n } as Partial<PivotChartConstructorOptions>\n }\n\nexport const pivotIndicatorsAsRow: PivotChartSpecPipe = (spec) => {\n const result = { ...spec } as PivotChartConstructorOptions\n\n return {\n ...result,\n indicatorsAsCol: false,\n }\n}\n\nexport const pivotIndicatorsAsCol: PivotChartSpecPipe = (spec) => {\n const result = { ...spec } as PivotChartConstructorOptions\n\n return {\n ...result,\n indicatorsAsCol: true,\n }\n}\n"],"names":["pivotIndicators","chartPipeline","spec","context","result","advancedVSeed","datasetReshapeInfo","dataset","encoding","reshapeMeasures","colorItems","unique","d","allMeasureIds","Object","indicators","reshapeInfo","index","subMeasures","subMeasuresId","invalideMeasuresIds","id","newDataset","newDatasetReshapeInfo","newContext","res","key","e","chartSpec","execPipeline","isRectungularCoordinate","m","pivotIndicatorsAsRow","pivotIndicatorsAsCol"],"mappings":";;AAKO,MAAMA,kBACX,CAACC,gBACD,CAACC,MAAMC;QACL,MAAMC,SAAS;YAAE,GAAGF,IAAI;QAAC;QACzB,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AAOc,wBAAwBzB,cAAc,SAAS,IAClD,KACAa,YAAY,GAAG,CAAC,CAACa,IAAMA,EAAE,KAAK,IAAIA,EAAE,EAAE,EAAE,IAAI,CAAC;gBACjD,UAAU;gBACV,aAAa;gBACb,WAAWH;gBACX,OAAO;oBACL,SAAS;wBAAC;wBAAG;wBAAG;wBAAG;qBAAE;gBACvB;YACF;QACF;QAEA,OAAO;YACL,GAAGxB,MAAM;YACT,YAAYW;QACd;IACF;AAEK,MAAMiB,uBAA2C,CAAC9B;IACvD,MAAME,SAAS;QAAE,GAAGF,IAAI;IAAC;IAEzB,OAAO;QACL,GAAGE,MAAM;QACT,iBAAiB;IACnB;AACF;AAEO,MAAM6B,uBAA2C,CAAC/B;IACvD,MAAME,SAAS;QAAE,GAAGF,IAAI;IAAC;IAEzB,OAAO;QACL,GAAGE,MAAM;QACT,iBAAiB;IACnB;AACF"}
1
+ {"version":3,"file":"pipeline/spec/chart/pipes/pivotChart/pivotIndicators.js","sources":["../../../../../../../src/pipeline/spec/chart/pipes/pivotChart/pivotIndicators.ts"],"sourcesContent":["import type { PivotChartConstructorOptions } from '@visactor/vtable'\nimport { execPipeline, isRectungularCoordinate } from '../../../../utils'\nimport type { Dataset, Encoding, Measures, PivotChartSpecPipe, SpecPipelineContext, VChartSpecPipe } from 'src/types'\nimport { unique } from 'remeda'\n\nexport const pivotIndicators =\n (chartPipeline: VChartSpecPipe[]): PivotChartSpecPipe =>\n (spec, context): Partial<PivotChartConstructorOptions> => {\n const result = { ...spec } as PivotChartConstructorOptions\n const { advancedVSeed } = context\n const { datasetReshapeInfo, dataset, encoding, reshapeMeasures = [] } = advancedVSeed\n\n const colorItems = unique(datasetReshapeInfo.flatMap((d) => d.unfoldInfo.colorItems))\n const allMeasureIds = unique(datasetReshapeInfo.flatMap((d) => Object.keys(d.foldInfo.foldMap || {})))\n const indicators = datasetReshapeInfo.map((reshapeInfo, index) => {\n const subMeasures = (reshapeMeasures[index] || []) as Measures\n const subMeasuresId = (reshapeMeasures[index] || []).map((d) => d.id)\n const invalideMeasuresIds = allMeasureIds.filter((id: string) => !subMeasuresId.includes(id))\n\n const newDataset = dataset[index] as Dataset\n const newDatasetReshapeInfo = [\n {\n ...reshapeInfo,\n unfoldInfo: { ...reshapeInfo.unfoldInfo, colorItems },\n },\n ]\n const newContext: SpecPipelineContext = {\n ...context,\n advancedVSeed: {\n ...advancedVSeed,\n pivotAllDatasetReshapeInfo: datasetReshapeInfo,\n datasetReshapeInfo: newDatasetReshapeInfo,\n encoding: Object.keys(encoding).reduce((res, key) => {\n res[key as keyof Encoding] = encoding[key as keyof Encoding]?.filter((e) => {\n return !invalideMeasuresIds.includes(e)\n }) as string[]\n\n return res\n }, {} as Encoding),\n dataset: newDataset,\n },\n }\n\n const chartSpec = execPipeline(chartPipeline, newContext, {})\n\n return {\n indicatorKey: `${reshapeInfo.id}`,\n title: isRectungularCoordinate(advancedVSeed.chartType)\n ? ''\n : subMeasures.map((m) => m.alias ?? m.id).join('-'),\n cellType: 'chart',\n chartModule: 'vchart',\n chartSpec: chartSpec,\n style: {\n padding: [1, 1, 0, 1],\n },\n }\n })\n\n return {\n ...result,\n indicators: indicators,\n } as Partial<PivotChartConstructorOptions>\n }\n\nexport const pivotIndicatorsAsRow: PivotChartSpecPipe = (spec) => {\n const result = { ...spec } as PivotChartConstructorOptions\n\n return {\n ...result,\n indicatorsAsCol: false,\n }\n}\n\nexport const pivotIndicatorsAsCol: PivotChartSpecPipe = (spec) => {\n const result = { ...spec } as PivotChartConstructorOptions\n\n return {\n ...result,\n indicatorsAsCol: true,\n }\n}\n"],"names":["pivotIndicators","chartPipeline","spec","context","result","advancedVSeed","datasetReshapeInfo","dataset","encoding","reshapeMeasures","colorItems","unique","d","allMeasureIds","Object","indicators","reshapeInfo","index","subMeasures","subMeasuresId","invalideMeasuresIds","id","newDataset","newDatasetReshapeInfo","newContext","res","key","e","chartSpec","execPipeline","isRectungularCoordinate","m","pivotIndicatorsAsRow","pivotIndicatorsAsC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EA,MAAMM,YAAYC,aAAa5B,eAAeuB,YAAY,CAAC;YAE3D,OAAO;gBACL,cAAc,GAAGR,YAAY,EAAE,EAAE;gBACjC,OAAOc,wBAAwBzB,cAAc,SAAS,IAClD,KACAa,YAAY,GAAG,CAAC,CAACa,IAAMA,EAAE,KAAK,IAAIA,EAAE,EAAE,EAAE,IAAI,CAAC;gBACjD,UAAU;gBACV,aAAa;gBACb,WAAWH;gBACX,OAAO;oBACL,SAAS;wBAAC;wBAAG;wBAAG;wBAAG;qBAAE;gBACvB;YACF;QACF;QAEA,OAAO;YACL,GAAGxB,MAAM;YACT,YAAYW;QACd;IACF;AAEK,MAAMiB,uBAA2C,CAAC9B;IACvD,MAAME,SAAS;QAAE,GAAGF,IAAI;IAAC;IAEzB,OAAO;QACL,GAAGE,MAAM;QACT,iBAAiB;IACnB;AACF;AAEO,MAAM6B,uBAA2C,CAAC/B;IACvD,MAAME,SAAS;QAAE,GAAGF,IAAI;IAAC;IAEzB,OAAO;QACL,GAAGE,MAAM;QACT,iBAAiB;IACnB;AACF"}
@@ -1 +1 @@
1
- {"version":3,"file":"pipeline/spec/chart/pipes/pivotChart/pivotRowDimensions.js","sources":["webpack://@visactor/vseed/./src/pipeline/spec/chart/pipes/pivotChart/pivotRowDimensions.ts"],"sourcesContent":["import type { PivotChartConstructorOptions } from '@visactor/vtable'\nimport { FoldYMeasureId } from 'src/dataReshape/constant'\nimport { createFormatterByDimension } from 'src/pipeline/utils'\nimport type { Dimensions, PivotChartSpecPipe } from 'src/types'\n\nexport const pivotRowDimensions: PivotChartSpecPipe = (spec, context) => {\n const result = { ...spec } as PivotChartConstructorOptions\n const { advancedVSeed } = context\n const dimensions = advancedVSeed.dimensions as Dimensions\n const measures = advancedVSeed.measures ?? []\n if (!dimensions) {\n return result\n }\n const rowDimensions = dimensions.filter((dim) => dim.encoding === 'row')\n const rows = rowDimensions.map((dim) => {\n const baseConfig: any = {\n dimensionKey: dim.id,\n title: dim.alias ?? dim.id,\n }\n\n if (dim.id === FoldYMeasureId) {\n baseConfig.headerFormat = (title: string) => {\n const measure = measures.find((m) => m.id === title)\n\n return measure ? (measure.alias ?? measure.id) : title\n }\n } else if (dim.timeFormat) {\n const formatter = createFormatterByDimension(dim, advancedVSeed.locale)\n baseConfig.headerFormat = (value: string | number) => formatter(value)\n }\n\n return baseConfig\n }) as unknown\n return {\n ...result,\n rows: rows,\n } as Partial<PivotChartConstructorOptions>\n}\n"],"names":["pivotRowDimensions","spec","context","result","advancedVSeed","dimensions","measures","rowDimensions","dim","rows","baseConfig","FoldYMeasureId","title","measure","m","formatter","createFormatterByDimension","value"],"mappings":";;AAKO,MAAMA,qBAAyC,CAACC,MAAMC;IAC3D,MAAMC,SAAS;QAAE,GAAGF,IAAI;IAAC;IACzB,MAAM,EAAEG,aAAa,EAAE,GAAGF;IAC1B,MAAMG,aAAaD,cAAc,UAAU;IAC3C,MAAME,WAAWF,cAAc,QAAQ,IAAI,EAAE;IAC7C,IAAI,CAACC,YACH,OAAOF;IAET,MAAMI,gBAAgBF,WAAW,MAAM,CAAC,CAACG,MAAQA,AAAiB,UAAjBA,IAAI,QAAQ;IAC7D,MAAMC,OAAOF,cAAc,GAAG,CAAC,CAACC;QAC9B,MAAME,aAAkB;YACtB,cAAcF,IAAI,EAAE;YACpB,OAAOA,IAAI,KAAK,IAAIA,IAAI,EAAE;QAC5B;QAEA,IAAIA,IAAI,EAAE,KAAKG,gBACbD,WAAW,YAAY,GAAG,CAACE;YACzB,MAAMC,UAAUP,SAAS,IAAI,CAAC,CAACQ,IAAMA,EAAE,EAAE,KAAKF;YAE9C,OAAOC,UAAWA,QAAQ,KAAK,IAAIA,QAAQ,EAAE,GAAID;QACnD;aACK,IAAIJ,IAAI,UAAU,EAAE;YACzB,MAAMO,YAAYC,2BAA2BR,KAAKJ,cAAc,MAAM;YACtEM,WAAW,YAAY,GAAG,CAACO,QAA2BF,UAAUE;QAClE;QAEA,OAAOP;IACT;IACA,OAAO;QACL,GAAGP,MAAM;QACT,MAAMM;IACR;AACF"}
1
+ {"version":3,"file":"pipeline/spec/chart/pipes/pivotChart/pivotRowDimensions.js","sources":["../../../../../../../src/pipeline/spec/chart/pipes/pivotChart/pivotRowDimensions.ts"],"sourcesContent":["import type { PivotChartConstructorOptions } from '@visactor/vtable'\nimport { FoldYMeasureId } from 'src/dataReshape/constant'\nimport { createFormatterByDimension } from 'src/pipeline/utils'\nimport type { Dimensions, PivotChartSpecPipe } from 'src/types'\n\nexport const pivotRowDimensions: PivotChartSpecPipe = (spec, context) => {\n const result = { ...spec } as PivotChartConstructorOptions\n const { advancedVSeed } = context\n const dimensions = advancedVSeed.dimensions as Dimensions\n const measures = advancedVSeed.measures ?? []\n if (!dimensions) {\n return result\n }\n const rowDimensions = dimensions.filter((dim) => dim.encoding === 'row')\n const rows = rowDimensions.map((dim) => {\n const baseConfig: any = {\n dimensionKey: dim.id,\n title: dim.alias ?? dim.id,\n }\n\n if (dim.id === FoldYMeasureId) {\n baseConfig.headerFormat = (title: string) => {\n const measure = measures.find((m) => m.id === title)\n\n return measure ? (measure.alias ?? measure.id) : title\n }\n } else if (dim.timeFormat) {\n const formatter = createFormatterByDimension(dim, advancedVSeed.locale)\n baseConfig.headerFormat = (value: string | number) => formatter(value)\n }\n\n return baseConfig\n }) as unknown\n return {\n ...result,\n rows: rows,\n } as Partial<PivotChartConstructorOptions>\n}\n"],"names":["pivotRowDimensions","spec","context","result","advancedVSeed","dimensions","measures","rowDimensions","dim","rows","baseConfig","FoldYMeasureId","title","measure","m","formatter","createFormatterByDimension","value"],"mappings":";;AAKO,MAAMA,qBAAyC,CAACC,MAAMC;IAC3D,MAAMC,SAAS;QAAE,GAAGF,IAAI;IAAC;IACzB,MAAM,EAAEG,aAAa,EAAE,GAAGF;IAC1B,MAAMG,aAAaD,cAAc,UAAU;IAC3C,MAAME,WAAWF,cAAc,QAAQ,IAAI,EAAE;IAC7C,IAAI,CAACC,YACH,OAAOF;IAET,MAAMI,gBAAgBF,WAAW,MAAM,CAAC,CAACG,MAAQA,AAAiB,UAAjBA,IAAI,QAAQ;IAC7D,MAAMC,OAAOF,cAAc,GAAG,CAAC,CAACC;QAC9B,MAAME,aAAkB;YACtB,cAAcF,IAAI,EAAE;YACpB,OAAOA,IAAI,KAAK,IAAIA,IAAI,EAAE;QAC5B;QAEA,IAAIA,IAAI,EAAE,KAAKG,gBACbD,WAAW,YAAY,GAAG,CAACE;YACzB,MAAMC,UAAUP,SAAS,IAAI,CAAC,CAACQ,IAAMA,EAAE,EAAE,KAAKF;YAE9C,OAAOC,UAAWA,QAAQ,KAAK,IAAIA,QAAQ,EAAE,GAAID;QACnD;aACK,IAAIJ,IAAI,UAAU,EAAE;YACzB,MAAMO,YAAYC,2BAA2BR,KAAKJ,cAAc,MAAM;YACtEM,WAAW,YAAY,GAAG,CAACO,QAA2BF,UAAUE;QAClE;QAEA,OAAOP;IACT;IACA,OAAO;QACL,GAAGP,MAAM;QACT,MAAMM;IACR;AACF"}
@@ -1 +1 @@
1
- {"version":3,"file":"pipeline/spec/chart/pipes/pivotChart/pivotTitle.js","sources":["webpack://@visactor/vseed/./src/pipeline/spec/chart/pipes/pivotChart/pivotTitle.ts"],"sourcesContent":["import type { PivotChartConstructorOptions } from '@visactor/vtable'\nimport { FoldXMeasureId } from 'src/dataReshape'\nimport type { Config, PivotChartSpecPipe } from 'src/types'\n\nexport const pivotTitle: PivotChartSpecPipe = (spec, context) => {\n const result = { ...spec } as PivotChartConstructorOptions\n const { advancedVSeed } = context\n const { config, chartType } = advancedVSeed\n const themConfig = (config?.[chartType] as Config['line'])?.pivotGrid ?? {}\n const columns = result.columns?.filter((c) => (c as any).dimensionKey !== FoldXMeasureId)\n\n if (columns && columns.length > 0) {\n result.title = {\n text: columns.map((entry: any) => entry.title).join('/'),\n align: 'center',\n orient: 'top',\n padding: [2, 0, 0, 0],\n textStyle: {\n fontSize: themConfig.titleFontSize ?? 12,\n fill: themConfig.titleFontColor ?? '#000',\n fontWeight: themConfig.titleFontWeight ?? 'bold',\n },\n }\n }\n\n return result\n}\n"],"names":["pivotTitle","spec","context","result","advancedVSeed","config","chartType","themConfig","columns","c","FoldXMeasureId","entry"],"mappings":";AAIO,MAAMA,aAAiC,CAACC,MAAMC;IACnD,MAAMC,SAAS;QAAE,GAAGF,IAAI;IAAC;IACzB,MAAM,EAAEG,aAAa,EAAE,GAAGF;IAC1B,MAAM,EAAEG,MAAM,EAAEC,SAAS,EAAE,GAAGF;IAC9B,MAAMG,aAAcF,QAAQ,CAACC,UAAU,EAAqB,aAAa,CAAC;IAC1E,MAAME,UAAUL,OAAO,OAAO,EAAE,OAAO,CAACM,IAAOA,EAAU,YAAY,KAAKC;IAE1E,IAAIF,WAAWA,QAAQ,MAAM,GAAG,GAC9BL,OAAO,KAAK,GAAG;QACb,MAAMK,QAAQ,GAAG,CAAC,CAACG,QAAeA,MAAM,KAAK,EAAE,IAAI,CAAC;QACpD,OAAO;QACP,QAAQ;QACR,SAAS;YAAC;YAAG;YAAG;YAAG;SAAE;QACrB,WAAW;YACT,UAAUJ,WAAW,aAAa,IAAI;YACtC,MAAMA,WAAW,cAAc,IAAI;YACnC,YAAYA,WAAW,eAAe,IAAI;QAC5C;IACF;IAGF,OAAOJ;AACT"}
1
+ {"version":3,"file":"pipeline/spec/chart/pipes/pivotChart/pivotTitle.js","sources":["../../../../../../../src/pipeline/spec/chart/pipes/pivotChart/pivotTitle.ts"],"sourcesContent":["import type { PivotChartConstructorOptions } from '@visactor/vtable'\nimport { FoldXMeasureId } from 'src/dataReshape'\nimport type { Config, PivotChartSpecPipe } from 'src/types'\n\nexport const pivotTitle: PivotChartSpecPipe = (spec, context) => {\n const result = { ...spec } as PivotChartConstructorOptions\n const { advancedVSeed } = context\n const { config, chartType } = advancedVSeed\n const themConfig = (config?.[chartType] as Config['line'])?.pivotGrid ?? {}\n const columns = result.columns?.filter((c) => (c as any).dimensionKey !== FoldXMeasureId)\n\n if (columns && columns.length > 0) {\n result.title = {\n text: columns.map((entry: any) => entry.title).join('/'),\n align: 'center',\n orient: 'top',\n padding: [2, 0, 0, 0],\n textStyle: {\n fontSize: themConfig.titleFontSize ?? 12,\n fill: themConfig.titleFontColor ?? '#000',\n fontWeight: themConfig.titleFontWeight ?? 'bold',\n },\n }\n }\n\n return result\n}\n"],"names":["pivotTitle","spec","context","result","advancedVSeed","config","chartType","themConfig","columns","c","FoldXMeasureId","entry"],"mappings":";AAIO,MAAMA,aAAiC,CAACC,MAAMC;IACnD,MAAMC,SAAS;QAAE,GAAGF,IAAI;IAAC;IACzB,MAAM,EAAEG,aAAa,EAAE,GAAGF;IAC1B,MAAM,EAAEG,MAAM,EAAEC,SAAS,EAAE,GAAGF;IAC9B,MAAMG,aAAcF,QAAQ,CAACC,UAAU,EAAqB,aAAa,CAAC;IAC1E,MAAME,UAAUL,OAAO,OAAO,EAAE,OAAO,CAACM,IAAOA,EAAU,YAAY,KAAKC;IAE1E,IAAIF,WAAWA,QAAQ,MAAM,GAAG,GAC9BL,OAAO,KAAK,GAAG;QACb,MAAMK,QAAQ,GAAG,CAAC,CAACG,QAAeA,MAAM,KAAK,EAAE,IAAI,CAAC;QACpD,OAAO;QACP,QAAQ;QACR,SAAS;YAAC;YAAG;YAAG;YAAG;SAAE;QACrB,WAAW;YACT,UAAUJ,WAAW,aAAa,IAAI;YACtC,MAAMA,WAAW,cAAc,IAAI;YACnC,YAAYA,WAAW,eAAe,IAAI;QAC5C;IACF;IAGF,OAAOJ;AACT"}
@@ -1 +1 @@
1
- {"version":3,"file":"pipeline/spec/chart/pipes/player/isPlayer.js","sources":["webpack://@visactor/vseed/./src/pipeline/spec/chart/pipes/player/isPlayer.ts"],"sourcesContent":["import { isPivotChart, isVTable } from 'src/pipeline/utils'\nimport type { VChartSpecPipe } from 'src/types'\n\nexport const isPlayer = (playerPipe: VChartSpecPipe, defaultPipe: VChartSpecPipe): VChartSpecPipe => {\n return (spec, context) => {\n const { vseed, advancedVSeed } = context\n const { encoding } = advancedVSeed\n\n const hasPlayerEncoding = encoding.player && encoding.player.length > 0\n const isStandardChart = !isVTable(vseed) && !isPivotChart(vseed)\n\n if (hasPlayerEncoding && isStandardChart) {\n return playerPipe(spec, context)\n }\n\n return defaultPipe(spec, context)\n }\n}\n"],"names":["isPlayer","playerPipe","defaultPipe","spec","context","vseed","advancedVSeed","encoding","hasPlayerEncoding","isStandardChart","isVTable","isPivotChart"],"mappings":";AAGO,MAAMA,WAAW,CAACC,YAA4BC,cAC5C,CAACC,MAAMC;QACZ,MAAM,EAAEC,KAAK,EAAEC,aAAa,EAAE,GAAGF;QACjC,MAAM,EAAEG,QAAQ,EAAE,GAAGD;QAErB,MAAME,oBAAoBD,SAAS,MAAM,IAAIA,SAAS,MAAM,CAAC,MAAM,GAAG;QACtE,MAAME,kBAAkB,CAACC,SAASL,UAAU,CAACM,aAAaN;QAE1D,IAAIG,qBAAqBC,iBACvB,OAAOR,WAAWE,MAAMC;QAG1B,OAAOF,YAAYC,MAAMC;IAC3B"}
1
+ {"version":3,"file":"pipeline/spec/chart/pipes/player/isPlayer.js","sources":["../../../../../../../src/pipeline/spec/chart/pipes/player/isPlayer.ts"],"sourcesContent":["import { isPivotChart, isVTable } from 'src/pipeline/utils'\nimport type { VChartSpecPipe } from 'src/types'\n\nexport const isPlayer = (playerPipe: VChartSpecPipe, defaultPipe: VChartSpecPipe): VChartSpecPipe => {\n return (spec, context) => {\n const { vseed, advancedVSeed } = context\n const { encoding } = advancedVSeed\n\n const hasPlayerEncoding = encoding.player && encoding.player.length > 0\n const isStandardChart = !isVTable(vseed) && !isPivotChart(vseed)\n\n if (hasPlayerEncoding && isStandardChart) {\n return playerPipe(spec, context)\n }\n\n return defaultPipe(spec, context)\n }\n}\n"],"names":["isPlayer","playerPipe","defaultPipe","spec","context","vseed","advancedVSeed","encoding","hasPlayerEncoding","isStandardChart","isVTable","isPivotChart"],"mappings":";AAGO,MAAMA,WAAW,CAACC,YAA4BC,cAC5C,CAACC,MAAMC;QACZ,MAAM,EAAEC,KAAK,EAAEC,aAAa,EAAE,GAAGF;QACjC,MAAM,EAAEG,QAAQ,EAAE,GAAGD;QAErB,MAAME,oBAAoBD,SAAS,MAAM,IAAIA,SAAS,MAAM,CAAC,MAAM,GAAG;QACtE,MAAME,kBAAkB,CAACC,SAASL,UAAU,CAACM,aAAaN;QAE1D,IAAIG,qBAAqBC,iBACvB,OAAOR,WAAWE,MAAMC;QAG1B,OAAOF,YAAYC,MAAMC;IAC3B"}
@@ -1 +1 @@
1
- {"version":3,"file":"pipeline/spec/chart/pipes/player/playerBar.js","sources":["webpack://@visactor/vseed/./src/pipeline/spec/chart/pipes/player/playerBar.ts"],"sourcesContent":["import type { IPlayerSpec, ISpec } from '@visactor/vchart'\nimport { groupBy, uniqueBy } from 'remeda'\nimport type { Player, VChartSpecPipe } from 'src/types'\nimport { datasetYX } from '../dataset'\n\nexport const playerBar: VChartSpecPipe = (spec, context) => {\n const { advancedVSeed } = context\n const { dimensions = [], datasetReshapeInfo, chartType, encoding } = advancedVSeed\n\n const baseConfig = advancedVSeed.config[chartType] as { fontFamily?: string; player: Player }\n const result = datasetYX(spec, context)\n\n if (!baseConfig || !baseConfig.player) {\n return result\n }\n const { player } = baseConfig\n const fontFamily = player.fontFamily || baseConfig.fontFamily\n const textSize = player.fontSize ?? 36\n const id = datasetReshapeInfo[0].id\n const { unfoldInfo, foldInfo } = datasetReshapeInfo[0]\n const { encodingPlayer, encodingY } = unfoldInfo\n const { measureValue } = foldInfo\n const {\n maxCount,\n autoPlay = true,\n interval = 1000,\n loop = false,\n position,\n railColor,\n trackColor,\n sliderHandleColor,\n sliderHandleBorderColor,\n startButtonColor,\n pauseButtonColor,\n backwardButtonColor,\n forwardButtonColor,\n } = player\n const duration = interval\n const exchangeDuration = interval * 0.6\n\n const dataGroups = groupBy(advancedVSeed.dataset, (item) => item[encodingPlayer])\n if (result.data && 'values' in result.data) {\n result.data.values = []\n }\n\n const yValues = uniqueBy(\n advancedVSeed.dataset.map((d) => d[encodingY]),\n (item) => item,\n )\n const specs = Object.values(dataGroups).map((items) => {\n // 如果当前items中不存在yValues中的值, 则填充为0, 保证每组都有同样的yValue, 都有对应的数据\n const filledItems = items.map((item) => ({\n ...item,\n [encodingY]: yValues.find((yValue) => yValue === item[encodingY]) || 0,\n }))\n const sortedItems = filledItems.sort((a, b) => b[measureValue] - a[measureValue])\n\n return {\n data: {\n id: id,\n values: maxCount === false ? sortedItems : sortedItems.slice(0, maxCount as number),\n },\n }\n })\n\n const dataKey = dimensions.filter((d) => !encoding.player?.includes(d.id)).map((d) => d.id)\n const padding = 12\n\n return {\n ...result,\n dataKey,\n stackCornerRadius: undefined,\n animationUpdate: {\n bar: [\n {\n type: 'update',\n options: { excludeChannels: ['y'] },\n easing: 'linear',\n duration,\n },\n {\n channel: ['y'],\n easing: 'circInOut',\n duration: exchangeDuration,\n },\n ],\n },\n animationEnter: {\n bar: [\n {\n type: 'moveIn',\n duration: exchangeDuration,\n easing: 'circInOut',\n options: {\n direction: 'y',\n orient: 'negative',\n },\n },\n ],\n },\n animationExit: {\n bar: [\n {\n type: 'moveOut',\n options: {\n direction: 'x',\n },\n duration: exchangeDuration,\n },\n {\n type: 'moveOut',\n options: {\n direction: 'y',\n orient: 'negative',\n },\n duration: exchangeDuration,\n },\n {\n type: 'fadeOut',\n duration: exchangeDuration,\n },\n ],\n },\n customMark: [\n {\n type: 'text',\n dataId: 'year',\n style: {\n textBaseline: 'bottom',\n fontSize: textSize,\n textAlign: 'right',\n fontFamily,\n fontWeight: 600,\n text: (datum: any) => datum[encodingPlayer],\n x: (_datum: any, ctx: any) => {\n return ctx.vchart.getChart().getCanvasRect()?.width - padding\n },\n y: (_datum: any, ctx: any) => {\n return ctx.vchart.getChart().getCanvasRect()?.height - padding - textSize\n },\n fill: 'rgb(100, 100, 100)',\n fillOpacity: 0.25,\n },\n },\n ],\n player: {\n visible: true,\n auto: autoPlay,\n interval: interval,\n loop: loop,\n alternate: false,\n position: 'middle',\n orient: position,\n type: 'discrete',\n specs,\n controller: {\n visible: true,\n start: { visible: true, order: 0, style: { fill: startButtonColor } },\n pause: { visible: true, order: 1, style: { fill: pauseButtonColor } },\n backward: { visible: true, order: 2, style: { fill: backwardButtonColor } },\n forward: { visible: true, order: 3, position: 'end', style: { fill: forwardButtonColor } },\n },\n slider: {\n visible: true,\n railStyle: {\n visible: true,\n fill: railColor,\n [position === 'top' || position === 'bottom' ? 'height' : 'width']: 2,\n },\n trackStyle: {\n visible: true,\n fill: trackColor,\n [position === 'top' || position === 'bottom' ? 'height' : 'width']: 2,\n },\n handlerStyle: {\n visible: true,\n lineWidth: 2,\n stroke: sliderHandleBorderColor,\n fill: sliderHandleColor,\n size: 9,\n },\n },\n } as IPlayerSpec,\n } as unknown as ISpec\n}\n"],"names":["playerBar","spec","context","advancedVSeed","dimensions","datasetReshapeInfo","chartType","encoding","baseConfig","result","datasetYX","player","fontFamily","textSize","id","unfoldInfo","foldInfo","encodingPlayer","encodingY","measureValue","maxCount","autoPlay","interval","loop","position","railColor","trackColor","sliderHandleColor","sliderHandleBorderColor","startButtonColor","pauseButtonColor","backwardButtonColor","forwardButtonColor","duration","exchangeDuration","dataGroups","groupBy","item","yValues","uniqueBy","d","specs","Object","items","filledItems","yValue","sortedItems","a","b","dataKey","padding","undefined","datum","_datum","ctx"],"mappings":";;AAKO,MAAMA,YAA4B,CAACC,MAAMC;IAC9C,MAAM,EAAEC,aAAa,EAAE,GAAGD;IAC1B,MAAM,EAAEE,aAAa,EAAE,EAAEC,kBAAkB,EAAEC,SAAS,EAAEC,QAAQ,EAAE,GAAGJ;IAErE,MAAMK,aAAaL,cAAc,MAAM,CAACG,UAAU;IAClD,MAAMG,SAASC,UAAUT,MAAMC;IAE/B,IAAI,CAACM,cAAc,CAACA,WAAW,MAAM,EACnC,OAAOC;IAET,MAAM,EAAEE,MAAM,EAAE,GAAGH;IACnB,MAAMI,aAAaD,OAAO,UAAU,IAAIH,WAAW,UAAU;IAC7D,MAAMK,WAAWF,OAAO,QAAQ,I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N,WAAW;YACX,UAAU;YACV,QAAQC;YACR,MAAM;YACNiB;YACA,YAAY;gBACV,SAAS;gBACT,OAAO;oBAAE,SAAS;oBAAM,OAAO;oBAAG,OAAO;wBAAE,MAAMZ;oBAAiB;gBAAE;gBACpE,OAAO;oBAAE,SAAS;oBAAM,OAAO;oBAAG,OAAO;wBAAE,MAAMC;oBAAiB;gBAAE;gBACpE,UAAU;oBAAE,SAAS;oBAAM,OAAO;oBAAG,OAAO;wBAAE,MAAMC;oBAAoB;gBAAE;gBAC1E,SAAS;oBAAE,SAAS;oBAAM,OAAO;oBAAG,UAAU;oBAAO,OAAO;wBAAE,MAAMC;oBAAmB;gBAAE;YAC3F;YACA,QAAQ;gBACN,SAAS;gBACT,WAAW;oBACT,SAAS;oBACT,MAAMP;oBACN,CAACD,AAAa,UAAbA,YAAsBA,AAAa,aAAbA,WAAwB,WAAW,QAAQ,EAAE;gBACtE;gBACA,YAAY;oBACV,SAAS;oBACT,MAAME;oBACN,CAACF,AAAa,UAAbA,YAAsBA,AAAa,aAAbA,WAAwB,WAAW,QAAQ,EAAE;gBACtE;gBACA,cAAc;oBACZ,SAAS;oBACT,WAAW;oBACX,QAAQI;oBACR,MAAMD;oBACN,MAAM;gBACR;YACF;QACF;IACF;AACF"}
1
+ {"version":3,"file":"pipeline/spec/chart/pipes/player/playerBar.js","sources":["../../../../../../../src/pipeline/spec/chart/pipes/player/playerBar.ts"],"sourcesContent":["import type { IPlayerSpec, ISpec } from '@visactor/vchart'\nimport { groupBy, uniqueBy } from 'remeda'\nimport type { Player, VChartSpecPipe } from 'src/types'\nimport { datasetYX } from '../dataset'\n\nexport const playerBar: VChartSpecPipe = (spec, context) => {\n const { advancedVSeed } = context\n const { dimensions = [], datasetReshapeInfo, chartType, encoding } = advancedVSeed\n\n const baseConfig = advancedVSeed.config[chartType] as { fontFamily?: string; player: Player }\n const result = datasetYX(spec, context)\n\n if (!baseConfig || !baseConfig.player) {\n return result\n }\n const { player } = baseConfig\n const fontFamily = player.fontFamily || baseConfig.fontFamily\n const textSize = player.fontSize ?? 36\n const id = datasetReshapeInfo[0].id\n const { unfoldInfo, foldInfo } = datasetReshapeInfo[0]\n const { encodingPlayer, encodingY } = unfoldInfo\n const { measureValue } = foldInfo\n const {\n maxCount,\n autoPlay = true,\n interval = 1000,\n loop = false,\n position,\n railColor,\n trackColor,\n sliderHandleColor,\n sliderHandleBorderColor,\n startButtonColor,\n pauseButtonColor,\n backwardButtonColor,\n forwardButtonColor,\n } = player\n const duration = interval\n const exchangeDuration = interval * 0.6\n\n const dataGroups = groupBy(advancedVSeed.dataset, (item) => item[encodingPlayer])\n if (result.data && 'values' in result.data) {\n result.data.values = []\n }\n\n const yValues = uniqueBy(\n advancedVSeed.dataset.map((d) => d[encodingY]),\n (item) => item,\n )\n const specs = Object.values(dataGroups).map((items) => {\n // 如果当前items中不存在yValues中的值, 则填充为0, 保证每组都有同样的yValue, 都有对应的数据\n const filledItems = items.map((item) => ({\n ...item,\n [encodingY]: yValues.find((yValue) => yValue === item[encodingY]) || 0,\n }))\n const sortedItems = filledItems.sort((a, b) => b[measureValue] - a[measureValue])\n\n return {\n data: {\n id: id,\n values: maxCount === false ? sortedItems : sortedItems.slice(0, maxCount as number),\n },\n }\n })\n\n const dataKey = dimensions.filter((d) => !encoding.player?.includes(d.id)).map((d) => d.id)\n const padding = 12\n\n return {\n ...result,\n dataKey,\n stackCornerRadius: undefined,\n animationUpdate: {\n bar: [\n {\n type: 'update',\n options: { excludeChannels: ['y'] },\n easing: 'linear',\n duration,\n },\n {\n channel: ['y'],\n easing: 'circInOut',\n duration: exchangeDuration,\n },\n ],\n },\n animationEnter: {\n bar: [\n {\n type: 'moveIn',\n duration: exchangeDuration,\n easing: 'circInOut',\n options: {\n direction: 'y',\n orient: 'negative',\n },\n },\n ],\n },\n animationExit: {\n bar: [\n {\n type: 'moveOut',\n options: {\n direction: 'x',\n },\n duration: exchangeDuration,\n },\n {\n type: 'moveOut',\n options: {\n direction: 'y',\n orient: 'negative',\n },\n duration: exchangeDuration,\n },\n {\n type: 'fadeOut',\n duration: exchangeDuration,\n },\n ],\n },\n customMark: [\n {\n type: 'text',\n dataId: 'year',\n style: {\n textBaseline: 'bottom',\n fontSize: textSize,\n textAlign: 'right',\n fontFamily,\n fontWeight: 600,\n text: (datum: any) => datum[encodingPlayer],\n x: (_datum: any, ctx: any) => {\n return ctx.vchart.getChart().getCanvasRect()?.width - padding\n },\n y: (_datum: any, ctx: any) => {\n return ctx.vchart.getChart().getCanvasRect()?.height - padding - textSize\n },\n fill: 'rgb(100, 100, 100)',\n fillOpacity: 0.25,\n },\n },\n ],\n player: {\n visible: true,\n auto: autoPlay,\n interval: interval,\n loop: loop,\n alternate: false,\n position: 'middle',\n orient: position,\n type: 'discrete',\n specs,\n controller: {\n visible: true,\n start: { visible: true, order: 0, style: { fill: startButtonColor } },\n pause: { visible: true, order: 1, style: { fill: pauseButtonColor } },\n backward: { visible: true, order: 2, style: { fill: backwardButtonColor } },\n forward: { visible: true, order: 3, position: 'end', style: { fill: forwardButtonColor } },\n },\n slider: {\n visible: true,\n railStyle: {\n visible: true,\n fill: railColor,\n [position === 'top' || position === 'bottom' ? 'height' : 'width']: 2,\n },\n trackStyle: {\n visible: true,\n fill: trackColor,\n [position === 'top' || position === 'bottom' ? 'height' : 'width']: 2,\n },\n handlerStyle: {\n visible: true,\n lineWidth: 2,\n stroke: sliderHandleBorderColor,\n fill: sliderHandleColor,\n size: 9,\n },\n },\n } as IPlayerSpec,\n } as unknown as ISpec\n}\n"],"names":["playerBar","spec","context","advancedVSeed","dimensions","datasetReshapeInfo","chartType","encoding","baseConfig","result","datasetYX","player","fontFamily","textSize","id","unfoldInfo","foldInfo","encodingPlayer","encodingY","measureValue","maxCount","autoPlay","interval","loop","position","railColor","trackColor","sliderHandleColor","sliderHandleBorderColor","startButtonColor","pauseButtonColor","backwardButtonColor","forwardButtonColor","duration","exchangeDuration","dataGroups","groupBy","item","yValues","uniqueBy","d","specs","Object","items","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