@visactor/vseed 0.1.40 → 0.1.42

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (193) hide show
  1. package/dist/cjs/index.cjs +3 -3
  2. package/dist/cjs/index.cjs.map +1 -1
  3. package/dist/esm/builder/builder/builder.d.ts +3211 -349
  4. package/dist/esm/pipeline/advanced/chart/pipeline/column.js +3 -2
  5. package/dist/esm/pipeline/advanced/chart/pipeline/column.js.map +1 -1
  6. package/dist/esm/pipeline/advanced/chart/pipeline/scatter.js +3 -2
  7. package/dist/esm/pipeline/advanced/chart/pipeline/scatter.js.map +1 -1
  8. package/dist/esm/pipeline/advanced/chart/pipes/analysis/common.d.ts +3 -0
  9. package/dist/esm/pipeline/advanced/chart/pipes/analysis/common.js +22 -0
  10. package/dist/esm/pipeline/advanced/chart/pipes/analysis/common.js.map +1 -0
  11. package/dist/esm/pipeline/advanced/chart/pipes/analysis/index.d.ts +1 -0
  12. package/dist/esm/pipeline/advanced/chart/pipes/analysis/index.js +1 -0
  13. package/dist/esm/pipeline/advanced/chart/pipes/analysis/sortLegend.js +1 -19
  14. package/dist/esm/pipeline/advanced/chart/pipes/analysis/sortLegend.js.map +1 -1
  15. package/dist/esm/pipeline/advanced/chart/pipes/analysis/sortXBand.d.ts +1 -2
  16. package/dist/esm/pipeline/advanced/chart/pipes/analysis/sortXBand.js +2 -20
  17. package/dist/esm/pipeline/advanced/chart/pipes/analysis/sortXBand.js.map +1 -1
  18. package/dist/esm/pipeline/advanced/chart/pipes/analysis/sortYBand.js +1 -1
  19. package/dist/esm/pipeline/advanced/chart/pipes/analysis/sortYBand.js.map +1 -1
  20. package/dist/esm/pipeline/advanced/chart/pipes/regressionLine/regressionLine.js +28 -1
  21. package/dist/esm/pipeline/advanced/chart/pipes/regressionLine/regressionLine.js.map +1 -1
  22. package/dist/esm/pipeline/advanced/chart/pipes/reshape/pivotReshapeWithBoxplotEncoding.js +0 -1
  23. package/dist/esm/pipeline/advanced/chart/pipes/reshape/pivotReshapeWithBoxplotEncoding.js.map +1 -1
  24. package/dist/esm/pipeline/spec/chart/pipeline/area.js +7 -4
  25. package/dist/esm/pipeline/spec/chart/pipeline/area.js.map +1 -1
  26. package/dist/esm/pipeline/spec/chart/pipeline/areaPercent.js +3 -2
  27. package/dist/esm/pipeline/spec/chart/pipeline/areaPercent.js.map +1 -1
  28. package/dist/esm/pipeline/spec/chart/pipeline/bar.js +4 -2
  29. package/dist/esm/pipeline/spec/chart/pipeline/bar.js.map +1 -1
  30. package/dist/esm/pipeline/spec/chart/pipeline/barParallel.js +4 -2
  31. package/dist/esm/pipeline/spec/chart/pipeline/barParallel.js.map +1 -1
  32. package/dist/esm/pipeline/spec/chart/pipeline/barPercent.js +4 -2
  33. package/dist/esm/pipeline/spec/chart/pipeline/barPercent.js.map +1 -1
  34. package/dist/esm/pipeline/spec/chart/pipeline/boxplot.js +3 -2
  35. package/dist/esm/pipeline/spec/chart/pipeline/boxplot.js.map +1 -1
  36. package/dist/esm/pipeline/spec/chart/pipeline/column.js +8 -4
  37. package/dist/esm/pipeline/spec/chart/pipeline/column.js.map +1 -1
  38. package/dist/esm/pipeline/spec/chart/pipeline/columnParallel.js +4 -2
  39. package/dist/esm/pipeline/spec/chart/pipeline/columnParallel.js.map +1 -1
  40. package/dist/esm/pipeline/spec/chart/pipeline/columnPercent.js +4 -2
  41. package/dist/esm/pipeline/spec/chart/pipeline/columnPercent.js.map +1 -1
  42. package/dist/esm/pipeline/spec/chart/pipeline/donut.js +3 -1
  43. package/dist/esm/pipeline/spec/chart/pipeline/donut.js.map +1 -1
  44. package/dist/esm/pipeline/spec/chart/pipeline/dualAxis.js +3 -2
  45. package/dist/esm/pipeline/spec/chart/pipeline/dualAxis.js.map +1 -1
  46. package/dist/esm/pipeline/spec/chart/pipeline/funnel.js +2 -1
  47. package/dist/esm/pipeline/spec/chart/pipeline/funnel.js.map +1 -1
  48. package/dist/esm/pipeline/spec/chart/pipeline/heatmap.js +3 -2
  49. package/dist/esm/pipeline/spec/chart/pipeline/heatmap.js.map +1 -1
  50. package/dist/esm/pipeline/spec/chart/pipeline/histogram.js +7 -4
  51. package/dist/esm/pipeline/spec/chart/pipeline/histogram.js.map +1 -1
  52. package/dist/esm/pipeline/spec/chart/pipeline/line.js +7 -4
  53. package/dist/esm/pipeline/spec/chart/pipeline/line.js.map +1 -1
  54. package/dist/esm/pipeline/spec/chart/pipeline/pie.js +4 -2
  55. package/dist/esm/pipeline/spec/chart/pipeline/pie.js.map +1 -1
  56. package/dist/esm/pipeline/spec/chart/pipeline/radar.js +3 -1
  57. package/dist/esm/pipeline/spec/chart/pipeline/radar.js.map +1 -1
  58. package/dist/esm/pipeline/spec/chart/pipeline/rose.js +3 -1
  59. package/dist/esm/pipeline/spec/chart/pipeline/rose.js.map +1 -1
  60. package/dist/esm/pipeline/spec/chart/pipeline/roseParallel.js +3 -1
  61. package/dist/esm/pipeline/spec/chart/pipeline/roseParallel.js.map +1 -1
  62. package/dist/esm/pipeline/spec/chart/pipeline/scatter.js +11 -4
  63. package/dist/esm/pipeline/spec/chart/pipeline/scatter.js.map +1 -1
  64. package/dist/esm/pipeline/spec/chart/pipes/annotation/index.d.ts +1 -0
  65. package/dist/esm/pipeline/spec/chart/pipes/annotation/index.js +2 -1
  66. package/dist/esm/pipeline/spec/chart/pipes/annotation/splitLine.d.ts +2 -0
  67. package/dist/esm/pipeline/spec/chart/pipes/annotation/splitLine.js +172 -0
  68. package/dist/esm/pipeline/spec/chart/pipes/annotation/splitLine.js.map +1 -0
  69. package/dist/esm/pipeline/spec/chart/pipes/index.d.ts +1 -0
  70. package/dist/esm/pipeline/spec/chart/pipes/index.js +1 -0
  71. package/dist/esm/pipeline/spec/chart/pipes/init/pivot.js +1 -1
  72. package/dist/esm/pipeline/spec/chart/pipes/init/pivot.js.map +1 -1
  73. package/dist/esm/pipeline/spec/chart/pipes/pivotChart/index.d.ts +2 -0
  74. package/dist/esm/pipeline/spec/chart/pipes/pivotChart/index.js +3 -1
  75. package/dist/esm/pipeline/spec/chart/pipes/pivotChart/pivotAxisStyle.d.ts +2 -0
  76. package/dist/esm/pipeline/spec/chart/pipes/pivotChart/pivotAxisStyle.js +13 -0
  77. package/dist/esm/pipeline/spec/chart/pipes/pivotChart/pivotAxisStyle.js.map +1 -0
  78. package/dist/esm/pipeline/spec/chart/pipes/pivotChart/pivotGridStyle.js +38 -32
  79. package/dist/esm/pipeline/spec/chart/pipes/pivotChart/pivotGridStyle.js.map +1 -1
  80. package/dist/esm/pipeline/spec/chart/pipes/pivotChart/pivotTitle.d.ts +2 -0
  81. package/dist/esm/pipeline/spec/chart/pipes/pivotChart/pivotTitle.js +28 -0
  82. package/dist/esm/pipeline/spec/chart/pipes/pivotChart/pivotTitle.js.map +1 -0
  83. package/dist/esm/pipeline/spec/chart/pipes/region/addRegionPadding.d.ts +2 -0
  84. package/dist/esm/pipeline/spec/chart/pipes/region/addRegionPadding.js +10 -0
  85. package/dist/esm/pipeline/spec/chart/pipes/region/addRegionPadding.js.map +1 -0
  86. package/dist/esm/pipeline/spec/chart/pipes/region/index.d.ts +1 -0
  87. package/dist/esm/pipeline/spec/chart/pipes/region/index.js +1 -0
  88. package/dist/esm/pipeline/spec/chart/pipes/regressionLine/columnRegressionLine.d.ts +2 -0
  89. package/dist/esm/pipeline/spec/chart/pipes/regressionLine/columnRegressionLine.js +150 -0
  90. package/dist/esm/pipeline/spec/chart/pipes/regressionLine/columnRegressionLine.js.map +1 -0
  91. package/dist/esm/pipeline/spec/chart/pipes/regressionLine/common.d.ts +4 -0
  92. package/dist/esm/pipeline/spec/chart/pipes/regressionLine/common.js +21 -0
  93. package/dist/esm/pipeline/spec/chart/pipes/regressionLine/common.js.map +1 -0
  94. package/dist/esm/pipeline/spec/chart/pipes/regressionLine/ecdfRegressionLine.d.ts +2 -0
  95. package/dist/esm/pipeline/spec/chart/pipes/regressionLine/ecdfRegressionLine.js +98 -0
  96. package/dist/esm/pipeline/spec/chart/pipes/regressionLine/ecdfRegressionLine.js.map +1 -0
  97. package/dist/esm/pipeline/spec/chart/pipes/regressionLine/index.d.ts +4 -1
  98. package/dist/esm/pipeline/spec/chart/pipes/regressionLine/index.js +4 -1
  99. package/dist/esm/pipeline/spec/chart/pipes/regressionLine/kdeRegressionLine.d.ts +2 -0
  100. package/dist/esm/pipeline/spec/chart/pipes/regressionLine/kdeRegressionLine.js +98 -0
  101. package/dist/esm/pipeline/spec/chart/pipes/regressionLine/kdeRegressionLine.js.map +1 -0
  102. package/dist/esm/pipeline/spec/chart/pipes/regressionLine/linearRegressionLine.d.ts +16 -0
  103. package/dist/esm/pipeline/spec/chart/pipes/regressionLine/linearRegressionLine.js +159 -0
  104. package/dist/esm/pipeline/spec/chart/pipes/regressionLine/linearRegressionLine.js.map +1 -0
  105. package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltip.d.ts +2 -2
  106. package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltip.js +5 -5
  107. package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltip.js.map +1 -1
  108. package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltipDualAxis.js +2 -2
  109. package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltipDualAxis.js.map +1 -1
  110. package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltipScatter.d.ts +1 -1
  111. package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltipScatter.js +1 -6
  112. package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltipScatter.js.map +1 -1
  113. package/dist/esm/theme/common/color.d.ts +4 -0
  114. package/dist/esm/theme/common/color.js +6 -2
  115. package/dist/esm/theme/common/color.js.map +1 -1
  116. package/dist/esm/theme/common/regressionLine.d.ts +8 -4
  117. package/dist/esm/theme/common/regressionLine.js +60 -8
  118. package/dist/esm/theme/common/regressionLine.js.map +1 -1
  119. package/dist/esm/theme/common/table.d.ts +6 -0
  120. package/dist/esm/theme/common/table.js +4 -1
  121. package/dist/esm/theme/common/table.js.map +1 -1
  122. package/dist/esm/theme/dark/dark.js +8 -6
  123. package/dist/esm/theme/dark/dark.js.map +1 -1
  124. package/dist/esm/theme/light/light.js +8 -6
  125. package/dist/esm/theme/light/light.js.map +1 -1
  126. package/dist/esm/types/advancedVSeed.d.ts +1028 -37
  127. package/dist/esm/types/advancedVSeed.js +2 -2
  128. package/dist/esm/types/advancedVSeed.js.map +1 -1
  129. package/dist/esm/types/chartType/column/column.d.ts +6 -1
  130. package/dist/esm/types/chartType/column/zColumn.d.ts +25 -0
  131. package/dist/esm/types/chartType/column/zColumn.js +2 -1
  132. package/dist/esm/types/chartType/column/zColumn.js.map +1 -1
  133. package/dist/esm/types/chartType/histogram/histogram.d.ts +7 -3
  134. package/dist/esm/types/chartType/histogram/zHistogram.d.ts +19 -4
  135. package/dist/esm/types/chartType/histogram/zHistogram.js +3 -2
  136. package/dist/esm/types/chartType/histogram/zHistogram.js.map +1 -1
  137. package/dist/esm/types/chartType/scatter/scatter.d.ts +21 -1
  138. package/dist/esm/types/chartType/scatter/zScatter.d.ts +94 -0
  139. package/dist/esm/types/chartType/scatter/zScatter.js +5 -1
  140. package/dist/esm/types/chartType/scatter/zScatter.js.map +1 -1
  141. package/dist/esm/types/properties/annotation/annotationHorizontalLine.d.ts +13 -0
  142. package/dist/esm/types/properties/config/area.d.ts +6 -0
  143. package/dist/esm/types/properties/config/bar.d.ts +9 -0
  144. package/dist/esm/types/properties/config/boxplot.d.ts +3 -0
  145. package/dist/esm/types/properties/config/color/color.d.ts +8 -0
  146. package/dist/esm/types/properties/config/color/color.js.map +1 -1
  147. package/dist/esm/types/properties/config/column.d.ts +141 -2
  148. package/dist/esm/types/properties/config/column.js +6 -3
  149. package/dist/esm/types/properties/config/column.js.map +1 -1
  150. package/dist/esm/types/properties/config/config.d.ts +449 -9
  151. package/dist/esm/types/properties/config/dualAxis.d.ts +3 -0
  152. package/dist/esm/types/properties/config/funnel.d.ts +3 -0
  153. package/dist/esm/types/properties/config/heatmap.d.ts +3 -0
  154. package/dist/esm/types/properties/config/histogram.d.ts +132 -9
  155. package/dist/esm/types/properties/config/histogram.js +2 -2
  156. package/dist/esm/types/properties/config/histogram.js.map +1 -1
  157. package/dist/esm/types/properties/config/line.d.ts +3 -0
  158. package/dist/esm/types/properties/config/pie.d.ts +9 -0
  159. package/dist/esm/types/properties/config/pivotGrid/pivotGrid.d.ts +3 -0
  160. package/dist/esm/types/properties/config/pivotGrid/pivotGrid.js +4 -1
  161. package/dist/esm/types/properties/config/pivotGrid/pivotGrid.js.map +1 -1
  162. package/dist/esm/types/properties/config/rose.d.ts +6 -0
  163. package/dist/esm/types/properties/config/scatter.d.ts +133 -0
  164. package/dist/esm/types/properties/config/scatter.js +3 -1
  165. package/dist/esm/types/properties/config/scatter.js.map +1 -1
  166. package/dist/esm/types/properties/regressionLine/{histogramRegressionLine.d.ts → ecdfRegressionLine.d.ts} +2 -7
  167. package/dist/esm/types/properties/regressionLine/index.d.ts +7 -2
  168. package/dist/esm/types/properties/regressionLine/index.js +1 -1
  169. package/dist/esm/types/properties/regressionLine/kdeRegressionLine.d.ts +40 -0
  170. package/dist/esm/types/properties/regressionLine/linearRegressionLine.d.ts +53 -0
  171. package/dist/esm/types/properties/regressionLine/logisticRegressionLine.d.ts +53 -0
  172. package/dist/esm/types/properties/regressionLine/logisticRegressionLine.js +0 -0
  173. package/dist/esm/types/properties/regressionLine/lowessRegressionLine.d.ts +53 -0
  174. package/dist/esm/types/properties/regressionLine/lowessRegressionLine.js +0 -0
  175. package/dist/esm/types/properties/regressionLine/polynomialRegressionLine.d.ts +57 -0
  176. package/dist/esm/types/properties/regressionLine/polynomialRegressionLine.js +0 -0
  177. package/dist/esm/types/properties/regressionLine/zRegressionLine.d.ts +199 -0
  178. package/dist/esm/types/properties/regressionLine/zRegressionLine.js +32 -0
  179. package/dist/esm/types/properties/regressionLine/zRegressionLine.js.map +1 -0
  180. package/dist/esm/types/properties/theme/customTheme.d.ts +898 -18
  181. package/dist/esm/types/zVseed.d.ts +138 -4
  182. package/dist/umd/index.js +1889 -279
  183. package/dist/umd/index.js.map +1 -1
  184. package/package.json +1 -1
  185. package/dist/esm/pipeline/spec/chart/pipes/regressionLine/histogramRegressionLine.d.ts +0 -2
  186. package/dist/esm/pipeline/spec/chart/pipes/regressionLine/histogramRegressionLine.js +0 -126
  187. package/dist/esm/pipeline/spec/chart/pipes/regressionLine/histogramRegressionLine.js.map +0 -1
  188. package/dist/esm/types/properties/regressionLine/zHistogramRegressionLine.d.ts +0 -11
  189. package/dist/esm/types/properties/regressionLine/zHistogramRegressionLine.js +0 -17
  190. package/dist/esm/types/properties/regressionLine/zHistogramRegressionLine.js.map +0 -1
  191. /package/dist/esm/{pipeline/advanced/chart/pipes/analysis/sort.d.ts → types/properties/regressionLine/ecdfRegressionLine.js} +0 -0
  192. /package/dist/esm/{pipeline/advanced/chart/pipes/analysis/sort.js → types/properties/regressionLine/kdeRegressionLine.js} +0 -0
  193. /package/dist/esm/types/properties/regressionLine/{histogramRegressionLine.js → linearRegressionLine.js} +0 -0
@@ -1,4 +1,4 @@
1
- import { annotation, buildMeasures, columnConfig, defaultDimensions, defaultEncodingForColumn, defaultMeasureName, defaultMeasures, deleteEncodingForMeasure, deleteTooltipAndLabelDimension, encodingAdapter, encodingForColumn, initAdvancedVSeed, markStyle, pivotAdapter, pivotReshapeWithEncoding, reshapeWithEncoding, sortLegend, sortXBandAxis, theme } from "../pipes/index.js";
1
+ import { annotation, buildMeasures, columnConfig, defaultDimensions, defaultEncodingForColumn, defaultMeasureName, defaultMeasures, deleteEncodingForMeasure, deleteTooltipAndLabelDimension, encodingAdapter, encodingForColumn, initAdvancedVSeed, markStyle, pivotAdapter, pivotReshapeWithEncoding, regressionLine, reshapeWithEncoding, sortLegend, sortXBandAxis, theme } from "../pipes/index.js";
2
2
  const columnAdvancedPipeline = [
3
3
  initAdvancedVSeed,
4
4
  defaultMeasures,
@@ -27,7 +27,8 @@ const columnAdvancedPipeline = [
27
27
  columnConfig,
28
28
  theme,
29
29
  markStyle,
30
- annotation
30
+ annotation,
31
+ regressionLine
31
32
  ];
32
33
  export { columnAdvancedPipeline };
33
34
 
@@ -1 +1 @@
1
- {"version":3,"file":"pipeline/advanced/chart/pipeline/column.js","sources":["webpack://@visactor/vseed/./src/pipeline/advanced/chart/pipeline/column.ts"],"sourcesContent":["import type { AdvancedPipeline } from 'src/types'\nimport {\n initAdvancedVSeed,\n theme,\n pivotAdapter,\n columnConfig,\n markStyle,\n annotation,\n sortXBandAxis,\n sortLegend,\n encodingForColumn,\n reshapeWithEncoding,\n pivotReshapeWithEncoding,\n buildMeasures,\n defaultMeasures,\n defaultDimensions,\n defaultMeasureName,\n encodingAdapter,\n defaultEncodingForColumn,\n deleteEncodingForMeasure,\n deleteTooltipAndLabelDimension,\n} from '../pipes'\n\nexport const columnAdvancedPipeline: AdvancedPipeline = [\n initAdvancedVSeed,\n defaultMeasures,\n defaultDimensions,\n defaultMeasureName,\n\n encodingAdapter(\n [defaultEncodingForColumn, buildMeasures],\n [\n encodingForColumn,\n buildMeasures,\n deleteEncodingForMeasure(['tooltip', 'label', 'color']),\n deleteTooltipAndLabelDimension,\n ],\n ),\n pivotAdapter([reshapeWithEncoding], [pivotReshapeWithEncoding]),\n\n sortXBandAxis,\n sortLegend,\n columnConfig,\n theme,\n markStyle,\n annotation,\n]\n"],"names":["columnAdvancedPipeline","initAdvancedVSeed","defaultMeasures","defaultDimensions","defaultMeasureName","encodingAdapter","defaultEncodingForColumn","buildMeasures","encodingForColumn","deleteEncodingForMeasure","deleteTooltipAndLabelDimension","pivotAdapter","reshapeWithEncoding","pivotReshapeWithEncoding","sortXBandAxis","sortLegend","columnConfig","theme","markStyle","annotation"],"mappings":";AAuBO,MAAMA,yBAA2C;IACtDC;IACAC;IACAC;IACAC;IAEAC,gBACE;QAACC;QAA0BC;KAAc,EACzC;QACEC;QACAD;QACAE,yBAAyB;YAAC;YAAW;YAAS;SAAQ;QACtDC;KACD;IAEHC,aAAa;QAACC;KAAoB,EAAE;QAACC;KAAyB;IAE9DC;IACAC;IACAC;IACAC;IACAC;IACAC;CACD"}
1
+ {"version":3,"file":"pipeline/advanced/chart/pipeline/column.js","sources":["webpack://@visactor/vseed/./src/pipeline/advanced/chart/pipeline/column.ts"],"sourcesContent":["import type { AdvancedPipeline } from 'src/types'\nimport {\n initAdvancedVSeed,\n theme,\n pivotAdapter,\n columnConfig,\n markStyle,\n annotation,\n sortXBandAxis,\n sortLegend,\n encodingForColumn,\n reshapeWithEncoding,\n pivotReshapeWithEncoding,\n buildMeasures,\n defaultMeasures,\n defaultDimensions,\n defaultMeasureName,\n encodingAdapter,\n defaultEncodingForColumn,\n deleteEncodingForMeasure,\n deleteTooltipAndLabelDimension,\n regressionLine,\n} from '../pipes'\n\nexport const columnAdvancedPipeline: AdvancedPipeline = [\n initAdvancedVSeed,\n defaultMeasures,\n defaultDimensions,\n defaultMeasureName,\n\n encodingAdapter(\n [defaultEncodingForColumn, buildMeasures],\n [\n encodingForColumn,\n buildMeasures,\n deleteEncodingForMeasure(['tooltip', 'label', 'color']),\n deleteTooltipAndLabelDimension,\n ],\n ),\n pivotAdapter([reshapeWithEncoding], [pivotReshapeWithEncoding]),\n\n sortXBandAxis,\n sortLegend,\n columnConfig,\n theme,\n markStyle,\n annotation,\n regressionLine,\n]\n"],"names":["columnAdvancedPipeline","initAdvancedVSeed","defaultMeasures","defaultDimensions","defaultMeasureName","encodingAdapter","defaultEncodingForColumn","buildMeasures","encodingForColumn","deleteEncodingForMeasure","deleteTooltipAndLabelDimension","pivotAdapter","reshapeWithEncoding","pivotReshapeWithEncoding","sortXBandAxis","sortLegend","columnConfig","theme","markStyle","annotation","regressionLine"],"mappings":";AAwBO,MAAMA,yBAA2C;IACtDC;IACAC;IACAC;IACAC;IAEAC,gBACE;QAACC;QAA0BC;KAAc,EACzC;QACEC;QACAD;QACAE,yBAAyB;YAAC;YAAW;YAAS;SAAQ;QACtDC;KACD;IAEHC,aAAa;QAACC;KAAoB,EAAE;QAACC;KAAyB;IAE9DC;IACAC;IACAC;IACAC;IACAC;IACAC;IACAC;CACD"}
@@ -1,4 +1,4 @@
1
- import { annotation, buildMeasuresForScatter, defaultDimensions, defaultEncodingForScatter, defaultMeasureName, defaultMeasures, deleteEncodingForMeasure, deleteTooltipAndLabelDimension, encodingAdapter, encodingForScatter, initAdvancedVSeed, markStyle, pivotAdapter, scatterConfig, theme } from "../pipes/index.js";
1
+ import { annotation, buildMeasuresForScatter, defaultDimensions, defaultEncodingForScatter, defaultMeasureName, defaultMeasures, deleteEncodingForMeasure, deleteTooltipAndLabelDimension, encodingAdapter, encodingForScatter, initAdvancedVSeed, markStyle, pivotAdapter, regressionLine, scatterConfig, theme } from "../pipes/index.js";
2
2
  import { reshapeWithScatterEncoding } from "../pipes/reshape/reshapeWithScatterEncoding.js";
3
3
  import { pivotReshapeWithScatterEncoding } from "../pipes/reshape/pivotReshapeWithScatterEncoding.js";
4
4
  const scatterAdvancedPipeline = [
@@ -27,7 +27,8 @@ const scatterAdvancedPipeline = [
27
27
  scatterConfig,
28
28
  theme,
29
29
  markStyle,
30
- annotation
30
+ annotation,
31
+ regressionLine
31
32
  ];
32
33
  export { scatterAdvancedPipeline };
33
34
 
@@ -1 +1 @@
1
- {"version":3,"file":"pipeline/advanced/chart/pipeline/scatter.js","sources":["webpack://@visactor/vseed/./src/pipeline/advanced/chart/pipeline/scatter.ts"],"sourcesContent":["import type { AdvancedPipeline } from 'src/types'\nimport {\n initAdvancedVSeed,\n theme,\n pivotAdapter,\n annotation,\n markStyle,\n scatterConfig,\n encodingForScatter,\n buildMeasuresForScatter,\n defaultMeasures,\n defaultDimensions,\n defaultMeasureName,\n encodingAdapter,\n defaultEncodingForScatter,\n deleteEncodingForMeasure,\n deleteTooltipAndLabelDimension,\n} from '../pipes'\nimport { reshapeWithScatterEncoding } from '../pipes/reshape/reshapeWithScatterEncoding'\nimport { pivotReshapeWithScatterEncoding } from '../pipes/reshape/pivotReshapeWithScatterEncoding'\n\nexport const scatterAdvancedPipeline: AdvancedPipeline = [\n initAdvancedVSeed,\n defaultMeasures,\n defaultDimensions,\n defaultMeasureName,\n\n encodingAdapter(\n [defaultEncodingForScatter, buildMeasuresForScatter],\n [\n encodingForScatter,\n buildMeasuresForScatter,\n deleteEncodingForMeasure(['tooltip', 'label', 'size']),\n deleteTooltipAndLabelDimension,\n ],\n ),\n pivotAdapter([reshapeWithScatterEncoding], [pivotReshapeWithScatterEncoding]),\n\n scatterConfig,\n theme,\n markStyle,\n annotation,\n]\n"],"names":["scatterAdvancedPipeline","initAdvancedVSeed","defaultMeasures","defaultDimensions","defaultMeasureName","encodingAdapter","defaultEncodingForScatter","buildMeasuresForScatter","encodingForScatter","deleteEncodingForMeasure","deleteTooltipAndLabelDimension","pivotAdapter","reshapeWithScatterEncoding","pivotReshapeWithScatterEncoding","scatterConfig","theme","markStyle","annotation"],"mappings":";;;AAqBO,MAAMA,0BAA4C;IACvDC;IACAC;IACAC;IACAC;IAEAC,gBACE;QAACC;QAA2BC;KAAwB,EACpD;QACEC;QACAD;QACAE,yBAAyB;YAAC;YAAW;YAAS;SAAO;QACrDC;KACD;IAEHC,aAAa;QAACC;KAA2B,EAAE;QAACC;KAAgC;IAE5EC;IACAC;IACAC;IACAC;CACD"}
1
+ {"version":3,"file":"pipeline/advanced/chart/pipeline/scatter.js","sources":["webpack://@visactor/vseed/./src/pipeline/advanced/chart/pipeline/scatter.ts"],"sourcesContent":["import type { AdvancedPipeline } from 'src/types'\nimport {\n initAdvancedVSeed,\n theme,\n pivotAdapter,\n annotation,\n markStyle,\n scatterConfig,\n encodingForScatter,\n buildMeasuresForScatter,\n defaultMeasures,\n defaultDimensions,\n defaultMeasureName,\n encodingAdapter,\n defaultEncodingForScatter,\n deleteEncodingForMeasure,\n deleteTooltipAndLabelDimension,\n regressionLine,\n} from '../pipes'\nimport { reshapeWithScatterEncoding } from '../pipes/reshape/reshapeWithScatterEncoding'\nimport { pivotReshapeWithScatterEncoding } from '../pipes/reshape/pivotReshapeWithScatterEncoding'\n\nexport const scatterAdvancedPipeline: AdvancedPipeline = [\n initAdvancedVSeed,\n defaultMeasures,\n defaultDimensions,\n defaultMeasureName,\n\n encodingAdapter(\n [defaultEncodingForScatter, buildMeasuresForScatter],\n [\n encodingForScatter,\n buildMeasuresForScatter,\n deleteEncodingForMeasure(['tooltip', 'label', 'size']),\n deleteTooltipAndLabelDimension,\n ],\n ),\n pivotAdapter([reshapeWithScatterEncoding], [pivotReshapeWithScatterEncoding]),\n\n scatterConfig,\n theme,\n markStyle,\n annotation,\n regressionLine,\n]\n"],"names":["scatterAdvancedPipeline","initAdvancedVSeed","defaultMeasures","defaultDimensions","defaultMeasureName","encodingAdapter","defaultEncodingForScatter","buildMeasuresForScatter","encodingForScatter","deleteEncodingForMeasure","deleteTooltipAndLabelDimension","pivotAdapter","reshapeWithScatterEncoding","pivotReshapeWithScatterEncoding","scatterConfig","theme","markStyle","annotation","regressionLine"],"mappings":";;;AAsBO,MAAMA,0BAA4C;IACvDC;IACAC;IACAC;IACAC;IAEAC,gBACE;QAACC;QAA2BC;KAAwB,EACpD;QACEC;QACAD;QACAE,yBAAyB;YAAC;YAAW;YAAS;SAAO;QACrDC;KACD;IAEHC,aAAa;QAACC;KAA2B,EAAE;QAACC;KAAgC;IAE5EC;IACAC;IACAC;IACAC;IACAC;CACD"}
@@ -0,0 +1,3 @@
1
+ import type { Dataset } from '../../../../../types';
2
+ import type { Sort } from '../../../../../types/properties/analysis/sort';
3
+ export declare const calcOrder: (sortConfig: Sort, id: string, dataset: Dataset) => string[];
@@ -0,0 +1,22 @@
1
+ import { sort, unique } from "remeda";
2
+ const calcOrder = (sortConfig, id, dataset)=>{
3
+ if (sortConfig.customOrder) return sortConfig.customOrder;
4
+ const order = sortConfig.order || 'asc';
5
+ const orderBy = sortConfig.orderBy;
6
+ const res = sort(dataset, (a, b)=>{
7
+ const aValue = a[orderBy || id];
8
+ const bValue = b[orderBy || id];
9
+ if ('asc' === order) {
10
+ if (aValue < bValue) return -1;
11
+ if (aValue > bValue) return 1;
12
+ return 0;
13
+ }
14
+ if (aValue > bValue) return -1;
15
+ if (aValue < bValue) return 1;
16
+ return 0;
17
+ });
18
+ return unique(res.map((item)=>item[id]));
19
+ };
20
+ export { calcOrder };
21
+
22
+ //# sourceMappingURL=common.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pipeline/advanced/chart/pipes/analysis/common.js","sources":["webpack://@visactor/vseed/./src/pipeline/advanced/chart/pipes/analysis/common.ts"],"sourcesContent":["import { sort, unique } from 'remeda'\nimport type { Dataset, Datum } from 'src/types'\nimport type { Sort } from 'src/types/properties/analysis/sort'\n\nexport const calcOrder = (sortConfig: Sort, id: string, dataset: Dataset): string[] => {\n if (sortConfig.customOrder) {\n return sortConfig.customOrder\n }\n\n const order = sortConfig.order || 'asc'\n const orderBy = sortConfig.orderBy\n\n const res = sort(dataset, (a, b) => {\n const aValue = a[orderBy || id] as string | number\n const bValue = b[orderBy || id] as string | number\n\n if (order === 'asc') {\n if (aValue < bValue) {\n return -1\n }\n if (aValue > bValue) {\n return 1\n }\n return 0\n }\n if (aValue > bValue) {\n return -1\n }\n if (aValue < bValue) {\n return 1\n }\n return 0\n })\n\n return unique(res.map((item: Datum) => item[id] as string))\n}\n"],"names":["calcOrder","sortConfig","id","dataset","order","orderBy","res","sort","a","b","aValue","bValue","unique","item"],"mappings":";AAIO,MAAMA,YAAY,CAACC,YAAkBC,IAAYC;IACtD,IAAIF,WAAW,WAAW,EACxB,OAAOA,WAAW,WAAW;IAG/B,MAAMG,QAAQH,WAAW,KAAK,IAAI;IAClC,MAAMI,UAAUJ,WAAW,OAAO;IAElC,MAAMK,MAAMC,KAAKJ,SAAS,CAACK,GAAGC;QAC5B,MAAMC,SAASF,CAAC,CAACH,WAAWH,GAAG;QAC/B,MAAMS,SAASF,CAAC,CAACJ,WAAWH,GAAG;QAE/B,IAAIE,AAAU,UAAVA,OAAiB;YACnB,IAAIM,SAASC,QACX,OAAO;YAET,IAAID,SAASC,QACX,OAAO;YAET,OAAO;QACT;QACA,IAAID,SAASC,QACX,OAAO;QAET,IAAID,SAASC,QACX,OAAO;QAET,OAAO;IACT;IAEA,OAAOC,OAAON,IAAI,GAAG,CAAC,CAACO,OAAgBA,IAAI,CAACX,GAAG;AACjD"}
@@ -1,3 +1,4 @@
1
1
  export { sortLegend } from './sortLegend';
2
2
  export { sortXBandAxis } from './sortXBand';
3
3
  export { sortYBandAxis } from './sortYBand';
4
+ export * from './common';
@@ -1,4 +1,5 @@
1
1
  import { sortLegend } from "./sortLegend.js";
2
2
  import { sortXBandAxis } from "./sortXBand.js";
3
3
  import { sortYBandAxis } from "./sortYBand.js";
4
+ export * from "./common.js";
4
5
  export { sortLegend, sortXBandAxis, sortYBandAxis };
@@ -1,4 +1,4 @@
1
- import { sort, unique } from "remeda";
1
+ import { calcOrder } from "./common.js";
2
2
  const sortLegend_sortLegend = (advancedVSeed, context)=>{
3
3
  const result = {
4
4
  ...advancedVSeed
@@ -25,24 +25,6 @@ const sortLegend_sortLegend = (advancedVSeed, context)=>{
25
25
  result.analysis.orderMapping[colorId] = orderRes;
26
26
  return result;
27
27
  };
28
- const calcOrder = (sortConfig, id, dataset)=>{
29
- if (sortConfig.customOrder) return sortConfig.customOrder;
30
- const order = sortConfig.order || 'asc';
31
- const orderBy = sortConfig.orderBy;
32
- const res = sort(dataset, (a, b)=>{
33
- const aValue = a[orderBy || id];
34
- const bValue = b[orderBy || id];
35
- if ('asc' === order) {
36
- if (aValue < bValue) return -1;
37
- if (aValue > bValue) return 1;
38
- return 0;
39
- }
40
- if (aValue > bValue) return -1;
41
- if (aValue < bValue) return 1;
42
- return 0;
43
- });
44
- return unique(res.map((item)=>item[id]));
45
- };
46
28
  export { sortLegend_sortLegend as sortLegend };
47
29
 
48
30
  //# sourceMappingURL=sortLegend.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"pipeline/advanced/chart/pipes/analysis/sortLegend.js","sources":["webpack://@visactor/vseed/./src/pipeline/advanced/chart/pipes/analysis/sortLegend.ts"],"sourcesContent":["import { sort, unique } from 'remeda'\nimport type { AdvancedPipe, Dataset, Datum, Line, SortLegend } from 'src/types'\n\nexport const sortLegend: AdvancedPipe = (advancedVSeed, context) => {\n const result = { ...advancedVSeed }\n const { vseed } = context\n const { sortLegend } = vseed as Line\n const { datasetReshapeInfo, dataset } = advancedVSeed\n const colorId = datasetReshapeInfo?.[0]?.unfoldInfo?.encodingColorId\n const colorIdMap = datasetReshapeInfo?.[0]?.unfoldInfo?.colorIdMap\n const colorItems = datasetReshapeInfo?.[0]?.unfoldInfo?.colorItems\n if (!sortLegend || !colorId || !colorIdMap || !colorItems) {\n return advancedVSeed\n }\n\n if (!result.analysis) result.analysis = {}\n if (!result.analysis.orderMapping) result.analysis.orderMapping = {}\n\n if (sortLegend.customOrder) {\n const nameMap = Object.keys(colorIdMap).reduce<Record<string, string>>((pre, cur) => {\n pre[colorIdMap[cur]] = cur\n return pre\n }, {})\n\n // 先根据名称匹配, 若名称不存在, 则根据id匹配, 从而兼容名称和id的两种情况\n const orderRes = sortLegend.customOrder.map((itemNameOrId) =>\n nameMap[itemNameOrId] ? nameMap[itemNameOrId] : itemNameOrId,\n )\n result.analysis.orderMapping[colorId] = orderRes\n return result\n }\n\n const orderRes = calcOrder(sortLegend, colorId, dataset?.flat(2) || [])\n result.analysis.orderMapping[colorId] = orderRes\n\n return result\n}\n\nconst calcOrder = (sortConfig: SortLegend, id: string, dataset: Dataset): string[] => {\n if (sortConfig.customOrder) {\n return sortConfig.customOrder\n }\n\n const order = sortConfig.order || 'asc'\n const orderBy = sortConfig.orderBy\n\n const res = sort(dataset, (a, b) => {\n const aValue = a[orderBy || id] as string | number\n const bValue = b[orderBy || id] as string | number\n\n if (order === 'asc') {\n if (aValue < bValue) {\n return -1\n }\n if (aValue > bValue) {\n return 1\n }\n return 0\n }\n if (aValue > bValue) {\n return -1\n }\n if (aValue < bValue) {\n return 1\n }\n return 0\n })\n\n return unique(res.map((item: Datum) => item[id] as string))\n}\n"],"names":["sortLegend","advancedVSeed","context","result","vseed","datasetReshapeInfo","dataset","colorId","colorIdMap","colorItems","nameMap","Object","pre","cur","orderRes","itemNameOrId","calcOrder","sortConfig","id","order","orderBy","res","sort","a","b","aValue","bValue","unique","item"],"mappings":";AAGO,MAAMA,wBAA2B,CAACC,eAAeC;IACtD,MAAMC,SAAS;QAAE,GAAGF,aAAa;IAAC;IAClC,MAAM,EAAEG,KAAK,EAAE,GAAGF;IAClB,MAAM,EAAEF,UAAU,EAAE,GAAGI;IACvB,MAAM,EAAEC,kBAAkB,EAAEC,OAAO,EAAE,GAAGL;IACxC,MAAMM,UAAUF,oBAAoB,CAAC,EAAE,EAAE,YAAY;IACrD,MAAMG,aAAaH,oBAAoB,CAAC,EAAE,EAAE,YAAY;IACxD,MAAMI,aAAaJ,oBAAoB,CAAC,EAAE,EAAE,YAAY;IACxD,IAAI,CAACL,cAAc,CAACO,WAAW,CAACC,cAAc,CAACC,YAC7C,OAAOR;IAGT,IAAI,CAACE,OAAO,QAAQ,EAAEA,OAAO,QAAQ,GAAG,CAAC;IACzC,IAAI,CAACA,OAAO,QAAQ,CAAC,YAAY,EAAEA,OAAO,QAAQ,CAAC,YAAY,GAAG,CAAC;IAEnE,IAAIH,WAAW,WAAW,EAAE;QAC1B,MAAMU,UAAUC,OAAO,IAAI,CAACH,YAAY,MAAM,CAAyB,CAACI,KAAKC;YAC3ED,GAAG,CAACJ,UAAU,CAACK,IAAI,CAAC,GAAGA;YACvB,OAAOD;QACT,GAAG,CAAC;QAGJ,MAAME,WAAWd,WAAW,WAAW,CAAC,GAAG,CAAC,CAACe,eAC3CL,OAAO,CAACK,aAAa,GAAGL,OAAO,CAACK,aAAa,GAAGA;QAElDZ,OAAO,QAAQ,CAAC,YAAY,CAACI,QAAQ,GAAGO;QACxC,OAAOX;IACT;IAEA,MAAMW,WAAWE,UAAUhB,YAAYO,SAASD,SAAS,KAAK,MAAM,EAAE;IACtEH,OAAO,QAAQ,CAAC,YAAY,CAACI,QAAQ,GAAGO;IAExC,OAAOX;AACT;AAEA,MAAMa,YAAY,CAACC,YAAwBC,IAAYZ;IACrD,IAAIW,WAAW,WAAW,EACxB,OAAOA,WAAW,WAAW;IAG/B,MAAME,QAAQF,WAAW,KAAK,IAAI;IAClC,MAAMG,UAAUH,WAAW,OAAO;IAElC,MAAMI,MAAMC,KAAKhB,SAAS,CAACiB,GAAGC;QAC5B,MAAMC,SAASF,CAAC,CAACH,WAAWF,GAAG;QAC/B,MAAMQ,SAASF,CAAC,CAACJ,WAAWF,GAAG;QAE/B,IAAIC,AAAU,UAAVA,OAAiB;YACnB,IAAIM,SAASC,QACX,OAAO;YAET,IAAID,SAASC,QACX,OAAO;YAET,OAAO;QACT;QACA,IAAID,SAASC,QACX,OAAO;QAET,IAAID,SAASC,QACX,OAAO;QAET,OAAO;IACT;IAEA,OAAOC,OAAON,IAAI,GAAG,CAAC,CAACO,OAAgBA,IAAI,CAACV,GAAG;AACjD"}
1
+ {"version":3,"file":"pipeline/advanced/chart/pipes/analysis/sortLegend.js","sources":["webpack://@visactor/vseed/./src/pipeline/advanced/chart/pipes/analysis/sortLegend.ts"],"sourcesContent":["import type { AdvancedPipe, Line } from 'src/types'\nimport { calcOrder } from './common'\n\nexport const sortLegend: AdvancedPipe = (advancedVSeed, context) => {\n const result = { ...advancedVSeed }\n const { vseed } = context\n const { sortLegend } = vseed as Line\n const { datasetReshapeInfo, dataset } = advancedVSeed\n const colorId = datasetReshapeInfo?.[0]?.unfoldInfo?.encodingColorId\n const colorIdMap = datasetReshapeInfo?.[0]?.unfoldInfo?.colorIdMap\n const colorItems = datasetReshapeInfo?.[0]?.unfoldInfo?.colorItems\n if (!sortLegend || !colorId || !colorIdMap || !colorItems) {\n return advancedVSeed\n }\n\n if (!result.analysis) result.analysis = {}\n if (!result.analysis.orderMapping) result.analysis.orderMapping = {}\n\n if (sortLegend.customOrder) {\n const nameMap = Object.keys(colorIdMap).reduce<Record<string, string>>((pre, cur) => {\n pre[colorIdMap[cur]] = cur\n return pre\n }, {})\n\n // 先根据名称匹配, 若名称不存在, 则根据id匹配, 从而兼容名称和id的两种情况\n const orderRes = sortLegend.customOrder.map((itemNameOrId) =>\n nameMap[itemNameOrId] ? nameMap[itemNameOrId] : itemNameOrId,\n )\n result.analysis.orderMapping[colorId] = orderRes\n return result\n }\n\n const orderRes = calcOrder(sortLegend, colorId, dataset?.flat(2) || [])\n result.analysis.orderMapping[colorId] = orderRes\n\n return result\n}\n"],"names":["sortLegend","advancedVSeed","context","result","vseed","datasetReshapeInfo","dataset","colorId","colorIdMap","colorItems","nameMap","Object","pre","cur","orderRes","itemNameOrId","calcOrder"],"mappings":";AAGO,MAAMA,wBAA2B,CAACC,eAAeC;IACtD,MAAMC,SAAS;QAAE,GAAGF,aAAa;IAAC;IAClC,MAAM,EAAEG,KAAK,EAAE,GAAGF;IAClB,MAAM,EAAEF,UAAU,EAAE,GAAGI;IACvB,MAAM,EAAEC,kBAAkB,EAAEC,OAAO,EAAE,GAAGL;IACxC,MAAMM,UAAUF,oBAAoB,CAAC,EAAE,EAAE,YAAY;IACrD,MAAMG,aAAaH,oBAAoB,CAAC,EAAE,EAAE,YAAY;IACxD,MAAMI,aAAaJ,oBAAoB,CAAC,EAAE,EAAE,YAAY;IACxD,IAAI,CAACL,cAAc,CAACO,WAAW,CAACC,cAAc,CAACC,YAC7C,OAAOR;IAGT,IAAI,CAACE,OAAO,QAAQ,EAAEA,OAAO,QAAQ,GAAG,CAAC;IACzC,IAAI,CAACA,OAAO,QAAQ,CAAC,YAAY,EAAEA,OAAO,QAAQ,CAAC,YAAY,GAAG,CAAC;IAEnE,IAAIH,WAAW,WAAW,EAAE;QAC1B,MAAMU,UAAUC,OAAO,IAAI,CAACH,YAAY,MAAM,CAAyB,CAACI,KAAKC;YAC3ED,GAAG,CAACJ,UAAU,CAACK,IAAI,CAAC,GAAGA;YACvB,OAAOD;QACT,GAAG,CAAC;QAGJ,MAAME,WAAWd,WAAW,WAAW,CAAC,GAAG,CAAC,CAACe,eAC3CL,OAAO,CAACK,aAAa,GAAGL,OAAO,CAACK,aAAa,GAAGA;QAElDZ,OAAO,QAAQ,CAAC,YAAY,CAACI,QAAQ,GAAGO;QACxC,OAAOX;IACT;IAEA,MAAMW,WAAWE,UAAUhB,YAAYO,SAASD,SAAS,KAAK,MAAM,EAAE;IACtEH,OAAO,QAAQ,CAAC,YAAY,CAACI,QAAQ,GAAGO;IAExC,OAAOX;AACT"}
@@ -1,3 +1,2 @@
1
- import type { AdvancedPipe, Dataset, Sort } from '../../../../../types';
1
+ import type { AdvancedPipe } from '../../../../../types';
2
2
  export declare const sortXBandAxis: AdvancedPipe;
3
- export declare const calcOrder: (sortConfig: Sort, id: string, dataset: Dataset) => string[];
@@ -1,4 +1,4 @@
1
- import { sort, unique } from "remeda";
1
+ import { calcOrder } from "./common.js";
2
2
  const sortXBandAxis = (advancedVSeed, context)=>{
3
3
  const result = {
4
4
  ...advancedVSeed
@@ -15,24 +15,6 @@ const sortXBandAxis = (advancedVSeed, context)=>{
15
15
  result.analysis.orderMapping[xField] = axisOrderResult;
16
16
  return result;
17
17
  };
18
- const calcOrder = (sortConfig, id, dataset)=>{
19
- if (sortConfig.customOrder) return sortConfig.customOrder;
20
- const order = sortConfig.order || 'asc';
21
- const orderBy = sortConfig.orderBy;
22
- const res = sort(dataset, (a, b)=>{
23
- const aValue = a[orderBy || id];
24
- const bValue = b[orderBy || id];
25
- if ('asc' === order) {
26
- if (aValue < bValue) return -1;
27
- if (aValue > bValue) return 1;
28
- return 0;
29
- }
30
- if (aValue > bValue) return -1;
31
- if (aValue < bValue) return 1;
32
- return 0;
33
- });
34
- return unique(res.map((item)=>item[id]));
35
- };
36
- export { calcOrder, sortXBandAxis };
18
+ export { sortXBandAxis };
37
19
 
38
20
  //# sourceMappingURL=sortXBand.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"pipeline/advanced/chart/pipes/analysis/sortXBand.js","sources":["webpack://@visactor/vseed/./src/pipeline/advanced/chart/pipes/analysis/sortXBand.ts"],"sourcesContent":["import { sort, unique } from 'remeda'\nimport type { AdvancedPipe, Dataset, DatasetReshapeInfo, Datum, Line, Sort } from 'src/types'\n\nexport const sortXBandAxis: AdvancedPipe = (advancedVSeed, context) => {\n const result = { ...advancedVSeed }\n const { vseed } = context\n const { sort: sortAxis } = vseed as Line\n const { datasetReshapeInfo, dataset } = advancedVSeed as { datasetReshapeInfo: DatasetReshapeInfo; dataset: Dataset }\n const { unfoldInfo } = datasetReshapeInfo[0]\n const xField = unfoldInfo.encodingX\n if (!sortAxis || !xField) {\n return advancedVSeed\n }\n if (!result.analysis) result.analysis = {}\n if (!result.analysis.orderMapping) result.analysis.orderMapping = {}\n\n const axisOrderResult = calcOrder(sortAxis, xField, dataset.flat(2))\n\n result.analysis.orderMapping[xField] = axisOrderResult\n\n return result\n}\n\nexport const calcOrder = (sortConfig: Sort, id: string, dataset: Dataset): string[] => {\n if (sortConfig.customOrder) {\n return sortConfig.customOrder\n }\n\n const order = sortConfig.order || 'asc'\n const orderBy = sortConfig.orderBy\n\n const res = sort(dataset, (a, b) => {\n const aValue = a[orderBy || id] as string | number\n const bValue = b[orderBy || id] as string | number\n\n if (order === 'asc') {\n if (aValue < bValue) {\n return -1\n }\n if (aValue > bValue) {\n return 1\n }\n return 0\n }\n if (aValue > bValue) {\n return -1\n }\n if (aValue < bValue) {\n return 1\n }\n return 0\n })\n\n return unique(res.map((item: Datum) => item[id] as string))\n}\n"],"names":["sortXBandAxis","advancedVSeed","context","result","vseed","sortAxis","datasetReshapeInfo","dataset","unfoldInfo","xField","axisOrderResult","calcOrder","sortConfig","id","order","orderBy","res","sort","a","b","aValue","bValue","unique","item"],"mappings":";AAGO,MAAMA,gBAA8B,CAACC,eAAeC;IACzD,MAAMC,SAAS;QAAE,GAAGF,aAAa;IAAC;IAClC,MAAM,EAAEG,KAAK,EAAE,GAAGF;IAClB,MAAM,EAAE,MAAMG,QAAQ,EAAE,GAAGD;IAC3B,MAAM,EAAEE,kBAAkB,EAAEC,OAAO,EAAE,GAAGN;IACxC,MAAM,EAAEO,UAAU,EAAE,GAAGF,kBAAkB,CAAC,EAAE;IAC5C,MAAMG,SAASD,WAAW,SAAS;IACnC,IAAI,CAACH,YAAY,CAACI,QAChB,OAAOR;IAET,IAAI,CAACE,OAAO,QAAQ,EAAEA,OAAO,QAAQ,GAAG,CAAC;IACzC,IAAI,CAACA,OAAO,QAAQ,CAAC,YAAY,EAAEA,OAAO,QAAQ,CAAC,YAAY,GAAG,CAAC;IAEnE,MAAMO,kBAAkBC,UAAUN,UAAUI,QAAQF,QAAQ,IAAI,CAAC;IAEjEJ,OAAO,QAAQ,CAAC,YAAY,CAACM,OAAO,GAAGC;IAEvC,OAAOP;AACT;AAEO,MAAMQ,YAAY,CAACC,YAAkBC,IAAYN;IACtD,IAAIK,WAAW,WAAW,EACxB,OAAOA,WAAW,WAAW;IAG/B,MAAME,QAAQF,WAAW,KAAK,IAAI;IAClC,MAAMG,UAAUH,WAAW,OAAO;IAElC,MAAMI,MAAMC,KAAKV,SAAS,CAACW,GAAGC;QAC5B,MAAMC,SAASF,CAAC,CAACH,WAAWF,GAAG;QAC/B,MAAMQ,SAASF,CAAC,CAACJ,WAAWF,GAAG;QAE/B,IAAIC,AAAU,UAAVA,OAAiB;YACnB,IAAIM,SAASC,QACX,OAAO;YAET,IAAID,SAASC,QACX,OAAO;YAET,OAAO;QACT;QACA,IAAID,SAASC,QACX,OAAO;QAET,IAAID,SAASC,QACX,OAAO;QAET,OAAO;IACT;IAEA,OAAOC,OAAON,IAAI,GAAG,CAAC,CAACO,OAAgBA,IAAI,CAACV,GAAG;AACjD"}
1
+ {"version":3,"file":"pipeline/advanced/chart/pipes/analysis/sortXBand.js","sources":["webpack://@visactor/vseed/./src/pipeline/advanced/chart/pipes/analysis/sortXBand.ts"],"sourcesContent":["import type { AdvancedPipe, Dataset, DatasetReshapeInfo, Line } from 'src/types'\nimport { calcOrder } from './common'\n\nexport const sortXBandAxis: AdvancedPipe = (advancedVSeed, context) => {\n const result = { ...advancedVSeed }\n const { vseed } = context\n const { sort: sortAxis } = vseed as Line\n const { datasetReshapeInfo, dataset } = advancedVSeed as { datasetReshapeInfo: DatasetReshapeInfo; dataset: Dataset }\n const { unfoldInfo } = datasetReshapeInfo[0]\n const xField = unfoldInfo.encodingX\n if (!sortAxis || !xField) {\n return advancedVSeed\n }\n if (!result.analysis) result.analysis = {}\n if (!result.analysis.orderMapping) result.analysis.orderMapping = {}\n\n const axisOrderResult = calcOrder(sortAxis, xField, dataset.flat(2))\n\n result.analysis.orderMapping[xField] = axisOrderResult\n\n return result\n}\n"],"names":["sortXBandAxis","advancedVSeed","context","result","vseed","sortAxis","datasetReshapeInfo","dataset","unfoldInfo","xField","axisOrderResult","calcOrder"],"mappings":";AAGO,MAAMA,gBAA8B,CAACC,eAAeC;IACzD,MAAMC,SAAS;QAAE,GAAGF,aAAa;IAAC;IAClC,MAAM,EAAEG,KAAK,EAAE,GAAGF;IAClB,MAAM,EAAE,MAAMG,QAAQ,EAAE,GAAGD;IAC3B,MAAM,EAAEE,kBAAkB,EAAEC,OAAO,EAAE,GAAGN;IACxC,MAAM,EAAEO,UAAU,EAAE,GAAGF,kBAAkB,CAAC,EAAE;IAC5C,MAAMG,SAASD,WAAW,SAAS;IACnC,IAAI,CAACH,YAAY,CAACI,QAChB,OAAOR;IAET,IAAI,CAACE,OAAO,QAAQ,EAAEA,OAAO,QAAQ,GAAG,CAAC;IACzC,IAAI,CAACA,OAAO,QAAQ,CAAC,YAAY,EAAEA,OAAO,QAAQ,CAAC,YAAY,GAAG,CAAC;IAEnE,MAAMO,kBAAkBC,UAAUN,UAAUI,QAAQF,QAAQ,IAAI,CAAC;IAEjEJ,OAAO,QAAQ,CAAC,YAAY,CAACM,OAAO,GAAGC;IAEvC,OAAOP;AACT"}
@@ -1,4 +1,4 @@
1
- import { calcOrder } from "./sortXBand.js";
1
+ import { calcOrder } from "./common.js";
2
2
  const sortYBandAxis = (advancedVSeed, context)=>{
3
3
  const result = {
4
4
  ...advancedVSeed
@@ -1 +1 @@
1
- {"version":3,"file":"pipeline/advanced/chart/pipes/analysis/sortYBand.js","sources":["webpack://@visactor/vseed/./src/pipeline/advanced/chart/pipes/analysis/sortYBand.ts"],"sourcesContent":["import type { AdvancedPipe, Dataset, DatasetReshapeInfo, Line } from 'src/types'\nimport { calcOrder } from './sortXBand'\n\nexport const sortYBandAxis: AdvancedPipe = (advancedVSeed, context) => {\n const result = { ...advancedVSeed }\n const { vseed } = context\n const { sort: sortAxis } = vseed as Line\n const { datasetReshapeInfo, dataset } = advancedVSeed as { datasetReshapeInfo: DatasetReshapeInfo; dataset: Dataset }\n const { unfoldInfo } = datasetReshapeInfo[0]\n const yField = unfoldInfo?.encodingY\n if (!sortAxis || !yField) {\n return advancedVSeed\n }\n if (!result.analysis) result.analysis = {}\n if (!result.analysis.orderMapping) result.analysis.orderMapping = {}\n\n const axisOrderResult = calcOrder(sortAxis, yField, dataset.flat(2))\n\n result.analysis.orderMapping[yField] = axisOrderResult\n\n return result\n}\n"],"names":["sortYBandAxis","advancedVSeed","context","result","vseed","sortAxis","datasetReshapeInfo","dataset","unfoldInfo","yField","axisOrderResult","calcOrder"],"mappings":";AAGO,MAAMA,gBAA8B,CAACC,eAAeC;IACzD,MAAMC,SAAS;QAAE,GAAGF,aAAa;IAAC;IAClC,MAAM,EAAEG,KAAK,EAAE,GAAGF;IAClB,MAAM,EAAE,MAAMG,QAAQ,EAAE,GAAGD;IAC3B,MAAM,EAAEE,kBAAkB,EAAEC,OAAO,EAAE,GAAGN;IACxC,MAAM,EAAEO,UAAU,EAAE,GAAGF,kBAAkB,CAAC,EAAE;IAC5C,MAAMG,SAASD,YAAY;IAC3B,IAAI,CAACH,YAAY,CAACI,QAChB,OAAOR;IAET,IAAI,CAACE,OAAO,QAAQ,EAAEA,OAAO,QAAQ,GAAG,CAAC;IACzC,IAAI,CAACA,OAAO,QAAQ,CAAC,YAAY,EAAEA,OAAO,QAAQ,CAAC,YAAY,GAAG,CAAC;IAEnE,MAAMO,kBAAkBC,UAAUN,UAAUI,QAAQF,QAAQ,IAAI,CAAC;IAEjEJ,OAAO,QAAQ,CAAC,YAAY,CAACM,OAAO,GAAGC;IAEvC,OAAOP;AACT"}
1
+ {"version":3,"file":"pipeline/advanced/chart/pipes/analysis/sortYBand.js","sources":["webpack://@visactor/vseed/./src/pipeline/advanced/chart/pipes/analysis/sortYBand.ts"],"sourcesContent":["import type { AdvancedPipe, Dataset, DatasetReshapeInfo, Line } from 'src/types'\nimport { calcOrder } from './common'\n\nexport const sortYBandAxis: AdvancedPipe = (advancedVSeed, context) => {\n const result = { ...advancedVSeed }\n const { vseed } = context\n const { sort: sortAxis } = vseed as Line\n const { datasetReshapeInfo, dataset } = advancedVSeed as { datasetReshapeInfo: DatasetReshapeInfo; dataset: Dataset }\n const { unfoldInfo } = datasetReshapeInfo[0]\n const yField = unfoldInfo?.encodingY\n if (!sortAxis || !yField) {\n return advancedVSeed\n }\n if (!result.analysis) result.analysis = {}\n if (!result.analysis.orderMapping) result.analysis.orderMapping = {}\n\n const axisOrderResult = calcOrder(sortAxis, yField, dataset.flat(2))\n\n result.analysis.orderMapping[yField] = axisOrderResult\n\n return result\n}\n"],"names":["sortYBandAxis","advancedVSeed","context","result","vseed","sortAxis","datasetReshapeInfo","dataset","unfoldInfo","yField","axisOrderResult","calcOrder"],"mappings":";AAGO,MAAMA,gBAA8B,CAACC,eAAeC;IACzD,MAAMC,SAAS;QAAE,GAAGF,aAAa;IAAC;IAClC,MAAM,EAAEG,KAAK,EAAE,GAAGF;IAClB,MAAM,EAAE,MAAMG,QAAQ,EAAE,GAAGD;IAC3B,MAAM,EAAEE,kBAAkB,EAAEC,OAAO,EAAE,GAAGN;IACxC,MAAM,EAAEO,UAAU,EAAE,GAAGF,kBAAkB,CAAC,EAAE;IAC5C,MAAMG,SAASD,YAAY;IAC3B,IAAI,CAACH,YAAY,CAACI,QAChB,OAAOR;IAET,IAAI,CAACE,OAAO,QAAQ,EAAEA,OAAO,QAAQ,GAAG,CAAC;IACzC,IAAI,CAACA,OAAO,QAAQ,CAAC,YAAY,EAAEA,OAAO,QAAQ,CAAC,YAAY,GAAG,CAAC;IAEnE,MAAMO,kBAAkBC,UAAUN,UAAUI,QAAQF,QAAQ,IAAI,CAAC;IAEjEJ,OAAO,QAAQ,CAAC,YAAY,CAACM,OAAO,GAAGC;IAEvC,OAAOP;AACT"}
@@ -1,6 +1,33 @@
1
1
  const regressionLine = (advancedVSeed, context)=>{
2
2
  const { vseed } = context;
3
- if ('histogramRegressionLine' in vseed && 'histogram' === vseed.chartType) advancedVSeed.histogramRegressionLine = vseed.histogramRegressionLine;
3
+ let keys = [];
4
+ if ('histogram' === vseed.chartType) keys = [
5
+ 'kdeRegressionLine',
6
+ 'ecdfRegressionLine'
7
+ ];
8
+ else if ('scatter' === vseed.chartType) keys = [
9
+ 'linearRegressionLine',
10
+ 'lowessRegressionLine',
11
+ 'polynomialRegressionLine',
12
+ 'logisticRegressionLine'
13
+ ];
14
+ else if ('column' === vseed.chartType) keys = [
15
+ 'polynomialRegressionLine'
16
+ ];
17
+ if (keys.length) {
18
+ const regressionLineConfig = {};
19
+ let hasLine = false;
20
+ keys.forEach((key)=>{
21
+ if (vseed[key]) {
22
+ hasLine = true;
23
+ regressionLineConfig[key] = true === vseed[key] ? {} : vseed[key];
24
+ }
25
+ });
26
+ return hasLine ? {
27
+ ...advancedVSeed,
28
+ regressionLine: regressionLineConfig
29
+ } : advancedVSeed;
30
+ }
4
31
  return advancedVSeed;
5
32
  };
6
33
  export { regressionLine };
@@ -1 +1 @@
1
- {"version":3,"file":"pipeline/advanced/chart/pipes/regressionLine/regressionLine.js","sources":["webpack://@visactor/vseed/./src/pipeline/advanced/chart/pipes/regressionLine/regressionLine.ts"],"sourcesContent":["import type { AdvancedPipe } from 'src/types'\n\nexport const regressionLine: AdvancedPipe = (advancedVSeed, context) => {\n const { vseed } = context\n\n if ('histogramRegressionLine' in vseed && vseed.chartType === 'histogram') {\n advancedVSeed.histogramRegressionLine = vseed.histogramRegressionLine\n }\n\n return advancedVSeed\n}\n"],"names":["regressionLine","advancedVSeed","context","vseed"],"mappings":"AAEO,MAAMA,iBAA+B,CAACC,eAAeC;IAC1D,MAAM,EAAEC,KAAK,EAAE,GAAGD;IAElB,IAAI,6BAA6BC,SAASA,AAAoB,gBAApBA,MAAM,SAAS,EACvDF,cAAc,uBAAuB,GAAGE,MAAM,uBAAuB;IAGvE,OAAOF;AACT"}
1
+ {"version":3,"file":"pipeline/advanced/chart/pipes/regressionLine/regressionLine.js","sources":["webpack://@visactor/vseed/./src/pipeline/advanced/chart/pipes/regressionLine/regressionLine.ts"],"sourcesContent":["import type { AdvancedPipe, RegressionLineConfig } from 'src/types'\n\nexport const regressionLine: AdvancedPipe = (advancedVSeed, context) => {\n const { vseed } = context\n let keys = [] as string[]\n\n if (vseed.chartType === 'histogram') {\n keys = ['kdeRegressionLine', 'ecdfRegressionLine']\n } else if (vseed.chartType === 'scatter') {\n keys = ['linearRegressionLine', 'lowessRegressionLine', 'polynomialRegressionLine', 'logisticRegressionLine']\n } else if (vseed.chartType === 'column') {\n keys = ['polynomialRegressionLine']\n }\n\n if (keys.length) {\n const regressionLineConfig: RegressionLineConfig = {}\n let hasLine = false\n\n keys.forEach((key: string) => {\n if ((vseed as any)[key]) {\n hasLine = true\n regressionLineConfig[key as keyof RegressionLineConfig] =\n (vseed as any)[key] === true ? {} : (vseed as any)[key]\n }\n })\n\n return hasLine\n ? {\n ...advancedVSeed,\n regressionLine: regressionLineConfig,\n }\n : advancedVSeed\n }\n\n return advancedVSeed\n}\n"],"names":["regressionLine","advancedVSeed","context","vseed","keys","regressionLineConfig","hasLine","key"],"mappings":"AAEO,MAAMA,iBAA+B,CAACC,eAAeC;IAC1D,MAAM,EAAEC,KAAK,EAAE,GAAGD;IAClB,IAAIE,OAAO,EAAE;IAEb,IAAID,AAAoB,gBAApBA,MAAM,SAAS,EACjBC,OAAO;QAAC;QAAqB;KAAqB;SAC7C,IAAID,AAAoB,cAApBA,MAAM,SAAS,EACxBC,OAAO;QAAC;QAAwB;QAAwB;QAA4B;KAAyB;SACxG,IAAID,AAAoB,aAApBA,MAAM,SAAS,EACxBC,OAAO;QAAC;KAA2B;IAGrC,IAAIA,KAAK,MAAM,EAAE;QACf,MAAMC,uBAA6C,CAAC;QACpD,IAAIC,UAAU;QAEdF,KAAK,OAAO,CAAC,CAACG;YACZ,IAAKJ,KAAa,CAACI,IAAI,EAAE;gBACvBD,UAAU;gBACVD,oBAAoB,CAACE,IAAkC,GACpDJ,AAAuB,SAAvBA,KAAa,CAACI,IAAI,GAAY,CAAC,IAAKJ,KAAa,CAACI,IAAI;YAC3D;QACF;QAEA,OAAOD,UACH;YACE,GAAGL,aAAa;YAChB,gBAAgBI;QAClB,IACAJ;IACN;IAEA,OAAOA;AACT"}
@@ -84,7 +84,6 @@ const pivotReshapeWithBoxplotEncoding = (advancedVSeed, context)=>{
84
84
  datasets.push(newDatasets);
85
85
  datasetReshapeInfo.push(reshapeInfo);
86
86
  });
87
- console.log(datasets);
88
87
  return {
89
88
  ...result,
90
89
  dataset: datasets,
@@ -1 +1 @@
1
- {"version":3,"file":"pipeline/advanced/chart/pipes/reshape/pivotReshapeWithBoxplotEncoding.js","sources":["webpack://@visactor/vseed/./src/pipeline/advanced/chart/pipes/reshape/pivotReshapeWithBoxplotEncoding.ts"],"sourcesContent":["import { boxplot } from '@visactor/vdataset'\nimport { uniqueBy } from 'remeda'\nimport {\n FoldMeasureId,\n FoldMeasureName,\n MaxMeasureId,\n MedianMeasureId,\n MinMeasureId,\n OutliersMeasureId,\n Q1MeasureValue,\n Q3MeasureValue,\n Separator,\n unfoldDimensions,\n} from 'src/dataReshape'\nimport type {\n AdvancedPipe,\n ColumnParallel,\n Dataset,\n DatasetReshapeInfo,\n Dimension,\n Encoding,\n MeasureGroup,\n} from 'src/types'\n\nexport const pivotReshapeWithBoxplotEncoding: AdvancedPipe = (advancedVSeed, context) => {\n const result = { ...advancedVSeed }\n const { vseed } = context\n const { dataset, chartType } = vseed as ColumnParallel\n const { dimensions = [], measures = [], encoding = {}, config } = advancedVSeed\n const uniqDims = uniqueBy(dimensions, (item: Dimension) => item.id)\n const chartConfig = config?.[chartType as 'boxPlot']\n const whiskers = chartConfig?.whiskers\n\n const measureGroups: MeasureGroup[] = []\n if (measures) {\n measures.forEach((measure: MeasureGroup) => {\n if (measure.children && measure.children.length > 0) {\n measureGroups.push(measure)\n }\n })\n }\n\n const rowColumnFields = uniqueBy(\n dimensions.filter((dim: Dimension) => dim.encoding === 'row' || dim.encoding === 'column'),\n (item: Dimension) => item.id,\n )\n const datasets: Dataset = []\n const datasetReshapeInfo: DatasetReshapeInfo = []\n\n measureGroups.forEach((measureGroup, index) => {\n const subMeasures = measureGroup.children\n if (!subMeasures) {\n return\n }\n const groupId = measureGroup.id\n let newDatasets: any[] = []\n let foldInfo: any = {}\n let unfoldInfo: any = {}\n\n if (encoding.value?.length) {\n encoding.value.forEach((f) => {\n const m = subMeasures.find((m) => m.id === f)\n const boxPlotData = boxplot(dataset, {\n field: f,\n groupField: [\n ...(encoding.x ?? []),\n ...(encoding.color ?? []),\n ...rowColumnFields.map((item: Dimension) => item.id),\n ] as string[],\n whiskers,\n outputNames: {\n q1: Q1MeasureValue,\n q3: Q3MeasureValue,\n min: MinMeasureId,\n max: MaxMeasureId,\n median: MedianMeasureId,\n outliers: OutliersMeasureId,\n },\n }) as Dataset\n\n boxPlotData.forEach((datum) => {\n datum[FoldMeasureId] = f\n datum[FoldMeasureName] = m?.alias ?? f\n })\n\n const res = unfoldDimensions(boxPlotData, uniqDims, encoding as Encoding, {\n foldMeasureId: FoldMeasureId,\n separator: Separator,\n colorItemAsId: false,\n })\n\n res.dataset.forEach((d) => {\n newDatasets.push(d)\n })\n unfoldInfo = res.unfoldInfo\n })\n } else if (\n encoding.q1?.length &&\n encoding.q3?.length &&\n encoding.min?.length &&\n encoding.max?.length &&\n encoding.median?.length\n ) {\n const res = unfoldDimensions(dataset, uniqDims, encoding as Encoding, {\n foldMeasureId: FoldMeasureId,\n separator: Separator,\n colorItemAsId: false,\n })\n\n res.dataset.forEach((datum) => {\n datum[MaxMeasureId] = datum[encoding.max![0]]\n datum[MinMeasureId] = datum[encoding.min![0]]\n datum[Q1MeasureValue] = datum[encoding.q1![0]]\n datum[Q3MeasureValue] = datum[encoding.q3![0]]\n datum[MedianMeasureId] = datum[encoding.median![0]]\n })\n\n newDatasets = res.dataset\n foldInfo = {}\n unfoldInfo = res.unfoldInfo\n }\n\n const reshapeInfo = {\n id: groupId,\n index,\n foldInfo,\n unfoldInfo,\n }\n datasets.push(newDatasets)\n datasetReshapeInfo.push(reshapeInfo)\n })\n\n console.log(datasets)\n\n return {\n ...result,\n dataset: datasets,\n datasetReshapeInfo: datasetReshapeInfo,\n }\n}\n"],"names":["pivotReshapeWithBoxplotEncoding","advancedVSeed","context","result","vseed","dataset","chartType","dimensions","measures","encoding","config","uniqDims","uniqueBy","item","chartConfig","whiskers","measureGroups","measure","rowColumnFields","dim","datasets","datasetReshapeInfo","measureGroup","index","subMeasures","groupId","newDatasets","foldInfo","unfoldInfo","f","m","boxPlotData","boxplot","Q1MeasureValue","Q3MeasureValue","MinMeasureId","MaxMeasureId","MedianMeasureId","OutliersMeasureId","datum","FoldMeasureId","FoldMeasureName","res","unfoldDimensions","Separator","d","reshapeInfo","console"],"mappings":"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"}
1
+ {"version":3,"file":"pipeline/advanced/chart/pipes/reshape/pivotReshapeWithBoxplotEncoding.js","sources":["webpack://@visactor/vseed/./src/pipeline/advanced/chart/pipes/reshape/pivotReshapeWithBoxplotEncoding.ts"],"sourcesContent":["import { boxplot } from '@visactor/vdataset'\nimport { uniqueBy } from 'remeda'\nimport {\n FoldMeasureId,\n FoldMeasureName,\n MaxMeasureId,\n MedianMeasureId,\n MinMeasureId,\n OutliersMeasureId,\n Q1MeasureValue,\n Q3MeasureValue,\n Separator,\n unfoldDimensions,\n} from 'src/dataReshape'\nimport type {\n AdvancedPipe,\n ColumnParallel,\n Dataset,\n DatasetReshapeInfo,\n Dimension,\n Encoding,\n MeasureGroup,\n} from 'src/types'\n\nexport const pivotReshapeWithBoxplotEncoding: AdvancedPipe = (advancedVSeed, context) => {\n const result = { ...advancedVSeed }\n const { vseed } = context\n const { dataset, chartType } = vseed as ColumnParallel\n const { dimensions = [], measures = [], encoding = {}, config } = advancedVSeed\n const uniqDims = uniqueBy(dimensions, (item: Dimension) => item.id)\n const chartConfig = config?.[chartType as 'boxPlot']\n const whiskers = chartConfig?.whiskers\n\n const measureGroups: MeasureGroup[] = []\n if (measures) {\n measures.forEach((measure: MeasureGroup) => {\n if (measure.children && measure.children.length > 0) {\n measureGroups.push(measure)\n }\n })\n }\n\n const rowColumnFields = uniqueBy(\n dimensions.filter((dim: Dimension) => dim.encoding === 'row' || dim.encoding === 'column'),\n (item: Dimension) => item.id,\n )\n const datasets: Dataset = []\n const datasetReshapeInfo: DatasetReshapeInfo = []\n\n measureGroups.forEach((measureGroup, index) => {\n const subMeasures = measureGroup.children\n if (!subMeasures) {\n return\n }\n const groupId = measureGroup.id\n let newDatasets: any[] = []\n let foldInfo: any = {}\n let unfoldInfo: any = {}\n\n if (encoding.value?.length) {\n encoding.value.forEach((f) => {\n const m = subMeasures.find((m) => m.id === f)\n const boxPlotData = boxplot(dataset, {\n field: f,\n groupField: [\n ...(encoding.x ?? []),\n ...(encoding.color ?? []),\n ...rowColumnFields.map((item: Dimension) => item.id),\n ] as string[],\n whiskers,\n outputNames: {\n q1: Q1MeasureValue,\n q3: Q3MeasureValue,\n min: MinMeasureId,\n max: MaxMeasureId,\n median: MedianMeasureId,\n outliers: OutliersMeasureId,\n },\n }) as Dataset\n\n boxPlotData.forEach((datum) => {\n datum[FoldMeasureId] = f\n datum[FoldMeasureName] = m?.alias ?? f\n })\n\n const res = unfoldDimensions(boxPlotData, uniqDims, encoding as Encoding, {\n foldMeasureId: FoldMeasureId,\n separator: Separator,\n colorItemAsId: false,\n })\n\n res.dataset.forEach((d) => {\n newDatasets.push(d)\n })\n unfoldInfo = res.unfoldInfo\n })\n } else if (\n encoding.q1?.length &&\n encoding.q3?.length &&\n encoding.min?.length &&\n encoding.max?.length &&\n encoding.median?.length\n ) {\n const res = unfoldDimensions(dataset, uniqDims, encoding as Encoding, {\n foldMeasureId: FoldMeasureId,\n separator: Separator,\n colorItemAsId: false,\n })\n\n res.dataset.forEach((datum) => {\n datum[MaxMeasureId] = datum[encoding.max![0]]\n datum[MinMeasureId] = datum[encoding.min![0]]\n datum[Q1MeasureValue] = datum[encoding.q1![0]]\n datum[Q3MeasureValue] = datum[encoding.q3![0]]\n datum[MedianMeasureId] = datum[encoding.median![0]]\n })\n\n newDatasets = res.dataset\n foldInfo = {}\n unfoldInfo = res.unfoldInfo\n }\n\n const reshapeInfo = {\n id: groupId,\n index,\n foldInfo,\n unfoldInfo,\n }\n datasets.push(newDatasets)\n datasetReshapeInfo.push(reshapeInfo)\n })\n\n return {\n ...result,\n dataset: datasets,\n datasetReshapeInfo: datasetReshapeInfo,\n }\n}\n"],"names":["pivotReshapeWithBoxplotEncoding","advancedVSeed","context","result","vseed","dataset","chartType","dimensions","measures","encoding","config","uniqDims","uniqueBy","item","chartConfig","whiskers","measureGroups","measure","rowColumnFields","dim","datasets","datasetReshapeInfo","measureGroup","index","subMeasures","groupId","newDatasets","foldInfo","unfoldInfo","f","m","boxPlotData","boxplot","Q1MeasureValue","Q3MeasureValue","MinMeasureId","MaxMeasureId","MedianMeasureId","OutliersMeasureId","datum","FoldMeasureId","FoldMeasureName","res","unfoldDimensions","Separator","d","reshapeInfo"],"mappings":"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"}
@@ -1,4 +1,4 @@
1
- import { annotationArea, annotationHorizontalLine, annotationPoint, annotationVerticalLine, areaStyle, backgroundColor, color, colorAdapter, colorAreaStyleFill, colorLegend, colorLineStyleFill, colorPointStyleFill, datasetPivot, datasetXY, discreteLegend, initArea, initPivot, label, lineStyle, linearColor, pivotAdapter, pivotColorLegend, pivotColumnDimensions, pivotDiscreteLegend, pivotGridStyle, pivotIndicators, pivotIndicatorsAsRow, pivotRowDimensions, pointStateDimensionHover, pointStyle, progressive, stackInverse, tooltip, verticalCrosshairLine, xBand, yLinear } from "../pipes/index.js";
1
+ import { annotationArea, annotationHorizontalLine, annotationPoint, annotationVerticalLine, areaStyle, backgroundColor, color, colorAdapter, colorAreaStyleFill, colorLegend, colorLineStyleFill, colorPointStyleFill, datasetPivot, datasetXY, discreteLegend, initArea, initPivot, label, lineStyle, linearColor, pivotAdapter, pivotAxisStyle, pivotColorLegend, pivotColumnDimensions, pivotDiscreteLegend, pivotGridStyle, pivotIndicators, pivotIndicatorsAsRow, pivotRowDimensions, pivotTitle, pointStateDimensionHover, pointStyle, progressive, splitLine, stackInverse, tooltip, verticalCrosshairLine, xBand, yLinear } from "../pipes/index.js";
2
2
  const area_area = [
3
3
  initArea,
4
4
  stackInverse,
@@ -19,7 +19,8 @@ const area_area = [
19
19
  annotationPoint,
20
20
  annotationVerticalLine,
21
21
  annotationHorizontalLine,
22
- annotationArea
22
+ annotationArea,
23
+ splitLine
23
24
  ];
24
25
  const pivotArea = [
25
26
  initPivot,
@@ -34,7 +35,7 @@ const pivotArea = [
34
35
  datasetXY,
35
36
  progressive,
36
37
  xBand,
37
- yLinear,
38
+ pivotAxisStyle(yLinear),
38
39
  label,
39
40
  tooltip,
40
41
  verticalCrosshairLine,
@@ -45,10 +46,12 @@ const pivotArea = [
45
46
  annotationPoint,
46
47
  annotationVerticalLine,
47
48
  annotationHorizontalLine,
48
- annotationArea
49
+ annotationArea,
50
+ splitLine
49
51
  ]),
50
52
  pivotRowDimensions,
51
53
  pivotColumnDimensions,
54
+ pivotTitle,
52
55
  colorAdapter(pivotDiscreteLegend, pivotColorLegend)
53
56
  ];
54
57
  const areaSpecPipeline = [
@@ -1 +1 @@
1
- {"version":3,"file":"pipeline/spec/chart/pipeline/area.js","sources":["webpack://@visactor/vseed/./src/pipeline/spec/chart/pipeline/area.ts"],"sourcesContent":["import type { SpecPipeline } from 'src/types'\nimport {\n xBand,\n yLinear,\n initArea,\n stackInverse,\n backgroundColor,\n label,\n tooltip,\n discreteLegend,\n color,\n datasetPivot,\n pivotIndicators,\n pivotDiscreteLegend,\n pivotAdapter,\n initPivot,\n pivotIndicatorsAsRow,\n pivotGridStyle,\n pivotColumnDimensions,\n pivotRowDimensions,\n annotationPoint,\n annotationVerticalLine,\n annotationHorizontalLine,\n annotationArea,\n pointStyle,\n lineStyle,\n areaStyle,\n verticalCrosshairLine,\n pointStateDimensionHover,\n datasetXY,\n progressive,\n colorAdapter,\n linearColor,\n colorLegend,\n colorPointStyleFill,\n colorLineStyleFill,\n colorAreaStyleFill,\n pivotColorLegend,\n} from '../pipes'\n\nconst area: SpecPipeline = [\n initArea,\n stackInverse,\n colorAdapter(color, linearColor),\n backgroundColor,\n datasetXY,\n progressive,\n xBand,\n yLinear,\n label,\n tooltip,\n colorAdapter(discreteLegend, colorLegend),\n verticalCrosshairLine,\n colorPointStyleFill(pointStyle),\n pointStateDimensionHover,\n colorLineStyleFill(lineStyle),\n colorAreaStyleFill(areaStyle),\n annotationPoint,\n annotationVerticalLine,\n annotationHorizontalLine,\n annotationArea,\n]\n\nconst pivotArea: SpecPipeline = [\n initPivot,\n pivotGridStyle,\n pivotIndicatorsAsRow,\n datasetPivot,\n pivotIndicators([\n initArea,\n colorAdapter(color, linearColor),\n backgroundColor,\n stackInverse,\n datasetXY,\n progressive,\n xBand,\n yLinear,\n label,\n tooltip,\n verticalCrosshairLine,\n colorPointStyleFill(pointStyle),\n pointStateDimensionHover,\n colorLineStyleFill(lineStyle),\n colorAreaStyleFill(areaStyle),\n annotationPoint,\n annotationVerticalLine,\n annotationHorizontalLine,\n annotationArea,\n ]),\n pivotRowDimensions,\n pivotColumnDimensions,\n colorAdapter(pivotDiscreteLegend, pivotColorLegend),\n]\n\nexport const areaSpecPipeline = [pivotAdapter(area, pivotArea)]\n"],"names":["area","initArea","stackInverse","colorAdapter","color","linearColor","backgroundColor","datasetXY","progressive","xBand","yLinear","label","tooltip","discreteLegend","colorLegend","verticalCrosshairLine","colorPointStyleFill","pointStyle","pointStateDimensionHover","colorLineStyleFill","lineStyle","colorAreaStyleFill","areaStyle","annotationPoint","annotationVerticalLine","annotationHorizontalLine","annotationArea","pivotArea","initPivot","pivotGridStyle","pivotIndicatorsAsRow","datasetPivot","pivotIndicators","pivotRowDimensions","pivotColumnDimensions","pivotDiscreteLegend","pivotColorLegend","areaSpecPipeline","pivotAdapter"],"mappings":";AAwCA,MAAMA,YAAqB;IACzBC;IACAC;IACAC,aAAaC,OAAOC;IACpBC;IACAC;IACAC;IACAC;IACAC;IACAC;IACAC;IACAT,aAAaU,gBAAgBC;IAC7BC;IACAC,oBAAoBC;IACpBC;IACAC,mBAAmBC;IACnBC,mBAAmBC;IACnBC;IACAC;IACAC;IACAC;CACD;AAED,MAAMC,YAA0B;IAC9BC;IACAC;IACAC;IACAC;IACAC,gBAAgB;QACd/B;QACAE,aAAaC,OAAOC;QACpBC;QACAJ;QACAK;QACAC;QACAC;QACAC;QACAC;QACAC;QACAG;QACAC,oBAAoBC;QACpBC;QACAC,mBAAmBC;QACnBC,mBAAmBC;QACnBC;QACAC;QACAC;QACAC;KACD;IACDO;IACAC;IACA/B,aAAagC,qBAAqBC;CACnC;AAEM,MAAMC,mBAAmB;IAACC,aAAatC,WAAM2B;CAAW"}
1
+ {"version":3,"file":"pipeline/spec/chart/pipeline/area.js","sources":["webpack://@visactor/vseed/./src/pipeline/spec/chart/pipeline/area.ts"],"sourcesContent":["import type { SpecPipeline } from 'src/types'\nimport {\n xBand,\n yLinear,\n initArea,\n stackInverse,\n backgroundColor,\n label,\n tooltip,\n discreteLegend,\n color,\n datasetPivot,\n pivotIndicators,\n pivotDiscreteLegend,\n pivotAdapter,\n initPivot,\n pivotIndicatorsAsRow,\n pivotGridStyle,\n pivotColumnDimensions,\n pivotRowDimensions,\n annotationPoint,\n annotationVerticalLine,\n annotationHorizontalLine,\n annotationArea,\n pointStyle,\n lineStyle,\n areaStyle,\n verticalCrosshairLine,\n pointStateDimensionHover,\n datasetXY,\n progressive,\n colorAdapter,\n linearColor,\n colorLegend,\n colorPointStyleFill,\n colorLineStyleFill,\n colorAreaStyleFill,\n pivotColorLegend,\n pivotAxisStyle,\n pivotTitle,\n splitLine,\n} from '../pipes'\n\nconst area: SpecPipeline = [\n initArea,\n stackInverse,\n colorAdapter(color, linearColor),\n backgroundColor,\n datasetXY,\n progressive,\n xBand,\n yLinear,\n label,\n tooltip,\n colorAdapter(discreteLegend, colorLegend),\n verticalCrosshairLine,\n colorPointStyleFill(pointStyle),\n pointStateDimensionHover,\n colorLineStyleFill(lineStyle),\n colorAreaStyleFill(areaStyle),\n annotationPoint,\n annotationVerticalLine,\n annotationHorizontalLine,\n annotationArea,\n splitLine,\n]\n\nconst pivotArea: SpecPipeline = [\n initPivot,\n pivotGridStyle,\n pivotIndicatorsAsRow,\n datasetPivot,\n pivotIndicators([\n initArea,\n colorAdapter(color, linearColor),\n backgroundColor,\n stackInverse,\n datasetXY,\n progressive,\n xBand,\n pivotAxisStyle(yLinear),\n label,\n tooltip,\n verticalCrosshairLine,\n colorPointStyleFill(pointStyle),\n pointStateDimensionHover,\n colorLineStyleFill(lineStyle),\n colorAreaStyleFill(areaStyle),\n annotationPoint,\n annotationVerticalLine,\n annotationHorizontalLine,\n annotationArea,\n splitLine,\n ]),\n pivotRowDimensions,\n pivotColumnDimensions,\n pivotTitle,\n colorAdapter(pivotDiscreteLegend, pivotColorLegend),\n]\n\nexport const areaSpecPipeline = [pivotAdapter(area, pivotArea)]\n"],"names":["area","initArea","stackInverse","colorAdapter","color","linearColor","backgroundColor","datasetXY","progressive","xBand","yLinear","label","tooltip","discreteLegend","colorLegend","verticalCrosshairLine","colorPointStyleFill","pointStyle","pointStateDimensionHover","colorLineStyleFill","lineStyle","colorAreaStyleFill","areaStyle","annotationPoint","annotationVerticalLine","annotationHorizontalLine","annotationArea","splitLine","pivotArea","initPivot","pivotGridStyle","pivotIndicatorsAsRow","datasetPivot","pivotIndicators","pivotAxisStyle","pivotRowDimensions","pivotColumnDimensions","pivotTitle","pivotDiscreteLegend","pivotColorLegend","areaSpecPipeline","pivotAdapter"],"mappings":";AA2CA,MAAMA,YAAqB;IACzBC;IACAC;IACAC,aAAaC,OAAOC;IACpBC;IACAC;IACAC;IACAC;IACAC;IACAC;IACAC;IACAT,aAAaU,gBAAgBC;IAC7BC;IACAC,oBAAoBC;IACpBC;IACAC,mBAAmBC;IACnBC,mBAAmBC;IACnBC;IACAC;IACAC;IACAC;IACAC;CACD;AAED,MAAMC,YAA0B;IAC9BC;IACAC;IACAC;IACAC;IACAC,gBAAgB;QACdhC;QACAE,aAAaC,OAAOC;QACpBC;QACAJ;QACAK;QACAC;QACAC;QACAyB,eAAexB;QACfC;QACAC;QACAG;QACAC,oBAAoBC;QACpBC;QACAC,mBAAmBC;QACnBC,mBAAmBC;QACnBC;QACAC;QACAC;QACAC;QACAC;KACD;IACDQ;IACAC;IACAC;IACAlC,aAAamC,qBAAqBC;CACnC;AAEM,MAAMC,mBAAmB;IAACC,aAAazC,WAAM4B;CAAW"}
@@ -1,4 +1,4 @@
1
- import { annotationArea, annotationHorizontalLine, annotationPoint, annotationVerticalLine, areaStyle, backgroundColor, color, colorAdapter, colorAreaStyleFill, colorLegend, colorLineStyleFill, colorPointStyleFill, datasetPivot, datasetXY, discreteLegend, initArea, initPivot, label, lineStyle, linearColor, percent, pivotAdapter, pivotColorLegend, pivotColumnDimensions, pivotDiscreteLegend, pivotGridStyle, pivotIndicators, pivotIndicatorsAsRow, pivotRowDimensions, pointStateDimensionHover, pointStyle, progressive, stackInverse, tooltip, verticalCrosshairLine, xBand, yLinear } from "../pipes/index.js";
1
+ import { annotationArea, annotationHorizontalLine, annotationPoint, annotationVerticalLine, areaStyle, backgroundColor, color, colorAdapter, colorAreaStyleFill, colorLegend, colorLineStyleFill, colorPointStyleFill, datasetPivot, datasetXY, discreteLegend, initArea, initPivot, label, lineStyle, linearColor, percent, pivotAdapter, pivotAxisStyle, pivotColorLegend, pivotColumnDimensions, pivotDiscreteLegend, pivotGridStyle, pivotIndicators, pivotIndicatorsAsRow, pivotRowDimensions, pivotTitle, pointStateDimensionHover, pointStyle, progressive, stackInverse, tooltip, verticalCrosshairLine, xBand, yLinear } from "../pipes/index.js";
2
2
  const areaPercent = [
3
3
  initArea,
4
4
  stackInverse,
@@ -36,7 +36,7 @@ const pivotAreaPercent = [
36
36
  datasetXY,
37
37
  progressive,
38
38
  xBand,
39
- yLinear,
39
+ pivotAxisStyle(yLinear),
40
40
  label,
41
41
  tooltip,
42
42
  verticalCrosshairLine,
@@ -51,6 +51,7 @@ const pivotAreaPercent = [
51
51
  ]),
52
52
  pivotRowDimensions,
53
53
  pivotColumnDimensions,
54
+ pivotTitle,
54
55
  colorAdapter(pivotDiscreteLegend, pivotColorLegend)
55
56
  ];
56
57
  const areaPercentSpecPipeline = [
@@ -1 +1 @@
1
- {"version":3,"file":"pipeline/spec/chart/pipeline/areaPercent.js","sources":["webpack://@visactor/vseed/./src/pipeline/spec/chart/pipeline/areaPercent.ts"],"sourcesContent":["import type { SpecPipeline } from 'src/types'\nimport {\n percent,\n datasetXY,\n xBand,\n yLinear,\n initArea,\n backgroundColor,\n label,\n tooltip,\n discreteLegend,\n color,\n datasetPivot,\n pivotIndicators,\n pivotDiscreteLegend,\n pivotAdapter,\n initPivot,\n pivotIndicatorsAsRow,\n pivotGridStyle,\n pivotRowDimensions,\n pivotColumnDimensions,\n stackInverse,\n annotationPoint,\n annotationVerticalLine,\n annotationHorizontalLine,\n annotationArea,\n pointStyle,\n lineStyle,\n areaStyle,\n verticalCrosshairLine,\n progressive,\n colorLegend,\n colorAdapter,\n linearColor,\n pivotColorLegend,\n pointStateDimensionHover,\n colorPointStyleFill,\n colorLineStyleFill,\n colorAreaStyleFill,\n} from '../pipes'\n\nconst areaPercent: SpecPipeline = [\n initArea,\n stackInverse,\n colorAdapter(color, linearColor),\n backgroundColor,\n percent,\n datasetXY,\n progressive,\n xBand,\n yLinear,\n label,\n tooltip,\n colorAdapter(discreteLegend, colorLegend),\n verticalCrosshairLine,\n colorPointStyleFill(pointStyle),\n pointStateDimensionHover,\n colorLineStyleFill(lineStyle),\n colorAreaStyleFill(areaStyle),\n annotationPoint,\n annotationVerticalLine,\n annotationHorizontalLine,\n annotationArea,\n]\n\nconst pivotAreaPercent: SpecPipeline = [\n initPivot,\n\n pivotGridStyle,\n pivotIndicatorsAsRow,\n datasetPivot,\n pivotIndicators([\n initArea,\n stackInverse,\n colorAdapter(color, linearColor),\n backgroundColor,\n percent,\n datasetXY,\n progressive,\n xBand,\n yLinear,\n label,\n tooltip,\n verticalCrosshairLine,\n colorPointStyleFill(pointStyle),\n pointStateDimensionHover,\n colorLineStyleFill(lineStyle),\n colorAreaStyleFill(areaStyle),\n annotationPoint,\n annotationVerticalLine,\n annotationHorizontalLine,\n annotationArea,\n ]),\n pivotRowDimensions,\n pivotColumnDimensions,\n colorAdapter(pivotDiscreteLegend, pivotColorLegend),\n]\n\nexport const areaPercentSpecPipeline = [pivotAdapter(areaPercent, pivotAreaPercent)]\n"],"names":["areaPercent","initArea","stackInverse","colorAdapter","color","linearColor","backgroundColor","percent","datasetXY","progressive","xBand","yLinear","label","tooltip","discreteLegend","colorLegend","verticalCrosshairLine","colorPointStyleFill","pointStyle","pointStateDimensionHover","colorLineStyleFill","lineStyle","colorAreaStyleFill","areaStyle","annotationPoint","annotationVerticalLine","annotationHorizontalLine","annotationArea","pivotAreaPercent","initPivot","pivotGridStyle","pivotIndicatorsAsRow","datasetPivot","pivotIndicators","pivotRowDimensions","pivotColumnDimensions","pivotDiscreteLegend","pivotColorLegend","areaPercentSpecPipeline","pivotAdapter"],"mappings":";AAyCA,MAAMA,cAA4B;IAChCC;IACAC;IACAC,aAAaC,OAAOC;IACpBC;IACAC;IACAC;IACAC;IACAC;IACAC;IACAC;IACAC;IACAV,aAAaW,gBAAgBC;IAC7BC;IACAC,oBAAoBC;IACpBC;IACAC,mBAAmBC;IACnBC,mBAAmBC;IACnBC;IACAC;IACAC;IACAC;CACD;AAED,MAAMC,mBAAiC;IACrCC;IAEAC;IACAC;IACAC;IACAC,gBAAgB;QACdhC;QACAC;QACAC,aAAaC,OAAOC;QACpBC;QACAC;QACAC;QACAC;QACAC;QACAC;QACAC;QACAC;QACAG;QACAC,oBAAoBC;QACpBC;QACAC,mBAAmBC;QACnBC,mBAAmBC;QACnBC;QACAC;QACAC;QACAC;KACD;IACDO;IACAC;IACAhC,aAAaiC,qBAAqBC;CACnC;AAEM,MAAMC,0BAA0B;IAACC,aAAavC,aAAa4B;CAAkB"}
1
+ {"version":3,"file":"pipeline/spec/chart/pipeline/areaPercent.js","sources":["webpack://@visactor/vseed/./src/pipeline/spec/chart/pipeline/areaPercent.ts"],"sourcesContent":["import type { SpecPipeline } from 'src/types'\nimport {\n percent,\n datasetXY,\n xBand,\n yLinear,\n initArea,\n backgroundColor,\n label,\n tooltip,\n discreteLegend,\n color,\n datasetPivot,\n pivotIndicators,\n pivotDiscreteLegend,\n pivotAdapter,\n initPivot,\n pivotIndicatorsAsRow,\n pivotGridStyle,\n pivotRowDimensions,\n pivotColumnDimensions,\n stackInverse,\n annotationPoint,\n annotationVerticalLine,\n annotationHorizontalLine,\n annotationArea,\n pointStyle,\n lineStyle,\n areaStyle,\n verticalCrosshairLine,\n progressive,\n colorLegend,\n colorAdapter,\n linearColor,\n pivotColorLegend,\n pointStateDimensionHover,\n colorPointStyleFill,\n colorLineStyleFill,\n colorAreaStyleFill,\n pivotAxisStyle,\n pivotTitle,\n} from '../pipes'\n\nconst areaPercent: SpecPipeline = [\n initArea,\n stackInverse,\n colorAdapter(color, linearColor),\n backgroundColor,\n percent,\n datasetXY,\n progressive,\n xBand,\n yLinear,\n label,\n tooltip,\n colorAdapter(discreteLegend, colorLegend),\n verticalCrosshairLine,\n colorPointStyleFill(pointStyle),\n pointStateDimensionHover,\n colorLineStyleFill(lineStyle),\n colorAreaStyleFill(areaStyle),\n annotationPoint,\n annotationVerticalLine,\n annotationHorizontalLine,\n annotationArea,\n]\n\nconst pivotAreaPercent: SpecPipeline = [\n initPivot,\n\n pivotGridStyle,\n pivotIndicatorsAsRow,\n datasetPivot,\n pivotIndicators([\n initArea,\n stackInverse,\n colorAdapter(color, linearColor),\n backgroundColor,\n percent,\n datasetXY,\n progressive,\n xBand,\n pivotAxisStyle(yLinear),\n label,\n tooltip,\n verticalCrosshairLine,\n colorPointStyleFill(pointStyle),\n pointStateDimensionHover,\n colorLineStyleFill(lineStyle),\n colorAreaStyleFill(areaStyle),\n annotationPoint,\n annotationVerticalLine,\n annotationHorizontalLine,\n annotationArea,\n ]),\n pivotRowDimensions,\n pivotColumnDimensions,\n pivotTitle,\n colorAdapter(pivotDiscreteLegend, pivotColorLegend),\n]\n\nexport const areaPercentSpecPipeline = [pivotAdapter(areaPercent, pivotAreaPercent)]\n"],"names":["areaPercent","initArea","stackInverse","colorAdapter","color","linearColor","backgroundColor","percent","datasetXY","progressive","xBand","yLinear","label","tooltip","discreteLegend","colorLegend","verticalCrosshairLine","colorPointStyleFill","pointStyle","pointStateDimensionHover","colorLineStyleFill","lineStyle","colorAreaStyleFill","areaStyle","annotationPoint","annotationVerticalLine","annotationHorizontalLine","annotationArea","pivotAreaPercent","initPivot","pivotGridStyle","pivotIndicatorsAsRow","datasetPivot","pivotIndicators","pivotAxisStyle","pivotRowDimensions","pivotColumnDimensions","pivotTitle","pivotDiscreteLegend","pivotColorLegend","areaPercentSpecPipeline","pivotAdapter"],"mappings":";AA2CA,MAAMA,cAA4B;IAChCC;IACAC;IACAC,aAAaC,OAAOC;IACpBC;IACAC;IACAC;IACAC;IACAC;IACAC;IACAC;IACAC;IACAV,aAAaW,gBAAgBC;IAC7BC;IACAC,oBAAoBC;IACpBC;IACAC,mBAAmBC;IACnBC,mBAAmBC;IACnBC;IACAC;IACAC;IACAC;CACD;AAED,MAAMC,mBAAiC;IACrCC;IAEAC;IACAC;IACAC;IACAC,gBAAgB;QACdhC;QACAC;QACAC,aAAaC,OAAOC;QACpBC;QACAC;QACAC;QACAC;QACAC;QACAwB,eAAevB;QACfC;QACAC;QACAG;QACAC,oBAAoBC;QACpBC;QACAC,mBAAmBC;QACnBC,mBAAmBC;QACnBC;QACAC;QACAC;QACAC;KACD;IACDQ;IACAC;IACAC;IACAlC,aAAamC,qBAAqBC;CACnC;AAEM,MAAMC,0BAA0B;IAACC,aAAazC,aAAa4B;CAAkB"}
@@ -1,4 +1,4 @@
1
- import { annotationAreaBand, annotationHorizontalLine, annotationPoint, annotationVerticalLine, backgroundColor, barMaxWidth, barStyle, color, colorAdapter, colorBarStyleFill, colorLegend, datasetPivot, datasetYX, discreteLegend, horizontalCrosshairRect, initBar, initPivot, label, linearColor, pivotAdapter, pivotColorLegend, pivotColumnDimensions, pivotDiscreteLegend, pivotGridStyle, pivotIndicators, pivotIndicatorsAsCol, pivotRowDimensions, progressive, stackCornerRadius, tooltip, xLinear, yBand } from "../pipes/index.js";
1
+ import { annotationAreaBand, annotationHorizontalLine, annotationPoint, annotationVerticalLine, backgroundColor, barMaxWidth, barStyle, color, colorAdapter, colorBarStyleFill, colorLegend, datasetPivot, datasetYX, discreteLegend, horizontalCrosshairRect, initBar, initPivot, label, linearColor, pivotAdapter, pivotAxisStyle, pivotColorLegend, pivotColumnDimensions, pivotDiscreteLegend, pivotGridStyle, pivotIndicators, pivotIndicatorsAsCol, pivotRowDimensions, pivotTitle, progressive, stackCornerRadius, tooltip, xLinear, yBand } from "../pipes/index.js";
2
2
  const bar = [
3
3
  initBar,
4
4
  stackCornerRadius,
@@ -27,12 +27,13 @@ const pivotBar = [
27
27
  pivotIndicators([
28
28
  initBar,
29
29
  stackCornerRadius,
30
+ barMaxWidth,
30
31
  colorAdapter(color, linearColor),
31
32
  backgroundColor,
32
33
  datasetYX,
33
34
  progressive,
34
35
  xLinear,
35
- yBand,
36
+ pivotAxisStyle(yBand),
36
37
  label,
37
38
  tooltip,
38
39
  colorBarStyleFill(barStyle),
@@ -44,6 +45,7 @@ const pivotBar = [
44
45
  ]),
45
46
  pivotRowDimensions,
46
47
  pivotColumnDimensions,
48
+ pivotTitle,
47
49
  colorAdapter(pivotDiscreteLegend, pivotColorLegend)
48
50
  ];
49
51
  const barSpecPipeline = [
@@ -1 +1 @@
1
- {"version":3,"file":"pipeline/spec/chart/pipeline/bar.js","sources":["webpack://@visactor/vseed/./src/pipeline/spec/chart/pipeline/bar.ts"],"sourcesContent":["import type { SpecPipeline } from 'src/types'\nimport {\n initBar,\n datasetYX,\n xLinear,\n yBand,\n backgroundColor,\n label,\n tooltip,\n discreteLegend,\n color,\n pivotAdapter,\n initPivot,\n datasetPivot,\n pivotIndicators,\n pivotDiscreteLegend,\n pivotIndicatorsAsCol,\n pivotGridStyle,\n pivotColumnDimensions,\n pivotRowDimensions,\n barStyle,\n annotationPoint,\n annotationVerticalLine,\n annotationHorizontalLine,\n annotationAreaBand,\n horizontalCrosshairRect,\n stackCornerRadius,\n progressive,\n colorAdapter,\n linearColor,\n colorLegend,\n colorBarStyleFill,\n pivotColorLegend,\n barMaxWidth,\n} from '../pipes'\n\nconst bar: SpecPipeline = [\n initBar,\n stackCornerRadius,\n barMaxWidth,\n colorAdapter(color, linearColor),\n backgroundColor,\n datasetYX,\n progressive,\n xLinear,\n yBand,\n label,\n tooltip,\n colorAdapter(discreteLegend, colorLegend),\n horizontalCrosshairRect,\n colorBarStyleFill(barStyle),\n annotationPoint,\n annotationVerticalLine,\n annotationHorizontalLine,\n annotationAreaBand,\n]\n\nconst pivotBar: SpecPipeline = [\n initPivot,\n pivotGridStyle,\n pivotIndicatorsAsCol,\n datasetPivot,\n pivotIndicators([\n initBar,\n stackCornerRadius,\n colorAdapter(color, linearColor),\n backgroundColor,\n datasetYX,\n progressive,\n xLinear,\n yBand,\n label,\n tooltip,\n colorBarStyleFill(barStyle),\n horizontalCrosshairRect,\n annotationPoint,\n annotationVerticalLine,\n annotationHorizontalLine,\n annotationAreaBand,\n ]),\n pivotRowDimensions,\n pivotColumnDimensions,\n colorAdapter(pivotDiscreteLegend, pivotColorLegend),\n]\n\nexport const barSpecPipeline: SpecPipeline = [pivotAdapter(bar, pivotBar)]\n"],"names":["bar","initBar","stackCornerRadius","barMaxWidth","colorAdapter","color","linearColor","backgroundColor","datasetYX","progressive","xLinear","yBand","label","tooltip","discreteLegend","colorLegend","horizontalCrosshairRect","colorBarStyleFill","barStyle","annotationPoint","annotationVerticalLine","annotationHorizontalLine","annotationAreaBand","pivotBar","initPivot","pivotGridStyle","pivotIndicatorsAsCol","datasetPivot","pivotIndicators","pivotRowDimensions","pivotColumnDimensions","pivotDiscreteLegend","pivotColorLegend","barSpecPipeline","pivotAdapter"],"mappings":";AAoCA,MAAMA,MAAoB;IACxBC;IACAC;IACAC;IACAC,aAAaC,OAAOC;IACpBC;IACAC;IACAC;IACAC;IACAC;IACAC;IACAC;IACAT,aAAaU,gBAAgBC;IAC7BC;IACAC,kBAAkBC;IAClBC;IACAC;IACAC;IACAC;CACD;AAED,MAAMC,WAAyB;IAC7BC;IACAC;IACAC;IACAC;IACAC,gBAAgB;QACd3B;QACAC;QACAE,aAAaC,OAAOC;QACpBC;QACAC;QACAC;QACAC;QACAC;QACAC;QACAC;QACAI,kBAAkBC;QAClBF;QACAG;QACAC;QACAC;QACAC;KACD;IACDO;IACAC;IACA1B,aAAa2B,qBAAqBC;CACnC;AAEM,MAAMC,kBAAgC;IAACC,aAAalC,KAAKuB;CAAU"}
1
+ {"version":3,"file":"pipeline/spec/chart/pipeline/bar.js","sources":["webpack://@visactor/vseed/./src/pipeline/spec/chart/pipeline/bar.ts"],"sourcesContent":["import type { SpecPipeline } from 'src/types'\nimport {\n initBar,\n datasetYX,\n xLinear,\n yBand,\n backgroundColor,\n label,\n tooltip,\n discreteLegend,\n color,\n pivotAdapter,\n initPivot,\n datasetPivot,\n pivotIndicators,\n pivotDiscreteLegend,\n pivotIndicatorsAsCol,\n pivotGridStyle,\n pivotColumnDimensions,\n pivotRowDimensions,\n barStyle,\n annotationPoint,\n annotationVerticalLine,\n annotationHorizontalLine,\n annotationAreaBand,\n horizontalCrosshairRect,\n stackCornerRadius,\n progressive,\n colorAdapter,\n linearColor,\n colorLegend,\n colorBarStyleFill,\n pivotColorLegend,\n barMaxWidth,\n pivotAxisStyle,\n pivotTitle,\n} from '../pipes'\n\nconst bar: SpecPipeline = [\n initBar,\n stackCornerRadius,\n barMaxWidth,\n colorAdapter(color, linearColor),\n backgroundColor,\n datasetYX,\n progressive,\n xLinear,\n yBand,\n label,\n tooltip,\n colorAdapter(discreteLegend, colorLegend),\n horizontalCrosshairRect,\n colorBarStyleFill(barStyle),\n annotationPoint,\n annotationVerticalLine,\n annotationHorizontalLine,\n annotationAreaBand,\n]\n\nconst pivotBar: SpecPipeline = [\n initPivot,\n pivotGridStyle,\n pivotIndicatorsAsCol,\n datasetPivot,\n pivotIndicators([\n initBar,\n stackCornerRadius,\n barMaxWidth,\n colorAdapter(color, linearColor),\n backgroundColor,\n datasetYX,\n progressive,\n xLinear,\n pivotAxisStyle(yBand),\n label,\n tooltip,\n colorBarStyleFill(barStyle),\n horizontalCrosshairRect,\n annotationPoint,\n annotationVerticalLine,\n annotationHorizontalLine,\n annotationAreaBand,\n ]),\n pivotRowDimensions,\n pivotColumnDimensions,\n pivotTitle,\n colorAdapter(pivotDiscreteLegend, pivotColorLegend),\n]\n\nexport const barSpecPipeline: SpecPipeline = [pivotAdapter(bar, pivotBar)]\n"],"names":["bar","initBar","stackCornerRadius","barMaxWidth","colorAdapter","color","linearColor","backgroundColor","datasetYX","progressive","xLinear","yBand","label","tooltip","discreteLegend","colorLegend","horizontalCrosshairRect","colorBarStyleFill","barStyle","annotationPoint","annotationVerticalLine","annotationHorizontalLine","annotationAreaBand","pivotBar","initPivot","pivotGridStyle","pivotIndicatorsAsCol","datasetPivot","pivotIndicators","pivotAxisStyle","pivotRowDimensions","pivotColumnDimensions","pivotTitle","pivotDiscreteLegend","pivotColorLegend","barSpecPipeline","pivotAdapter"],"mappings":";AAsCA,MAAMA,MAAoB;IACxBC;IACAC;IACAC;IACAC,aAAaC,OAAOC;IACpBC;IACAC;IACAC;IACAC;IACAC;IACAC;IACAC;IACAT,aAAaU,gBAAgBC;IAC7BC;IACAC,kBAAkBC;IAClBC;IACAC;IACAC;IACAC;CACD;AAED,MAAMC,WAAyB;IAC7BC;IACAC;IACAC;IACAC;IACAC,gBAAgB;QACd3B;QACAC;QACAC;QACAC,aAAaC,OAAOC;QACpBC;QACAC;QACAC;QACAC;QACAmB,eAAelB;QACfC;QACAC;QACAI,kBAAkBC;QAClBF;QACAG;QACAC;QACAC;QACAC;KACD;IACDQ;IACAC;IACAC;IACA5B,aAAa6B,qBAAqBC;CACnC;AAEM,MAAMC,kBAAgC;IAACC,aAAapC,KAAKuB;CAAU"}
@@ -1,4 +1,4 @@
1
- import { annotationAreaBand, annotationHorizontalLine, annotationPoint, annotationVerticalLine, backgroundColor, barGapInGroup, barMaxWidth, barStyle, color, colorAdapter, colorBarStyleFill, colorLegend, datasetPivot, datasetYX, discreteLegend, horizontalCrosshairRect, initBarParallel, initPivot, label, linearColor, pivotAdapter, pivotColorLegend, pivotColumnDimensions, pivotDiscreteLegend, pivotGridStyle, pivotIndicators, pivotIndicatorsAsCol, pivotRowDimensions, progressive, stackCornerRadius, tooltip, xLinear, yBand } from "../pipes/index.js";
1
+ import { annotationAreaBand, annotationHorizontalLine, annotationPoint, annotationVerticalLine, backgroundColor, barGapInGroup, barMaxWidth, barStyle, color, colorAdapter, colorBarStyleFill, colorLegend, datasetPivot, datasetYX, discreteLegend, horizontalCrosshairRect, initBarParallel, initPivot, label, linearColor, pivotAdapter, pivotAxisStyle, pivotColorLegend, pivotColumnDimensions, pivotDiscreteLegend, pivotGridStyle, pivotIndicators, pivotIndicatorsAsCol, pivotRowDimensions, pivotTitle, progressive, stackCornerRadius, tooltip, xLinear, yBand } from "../pipes/index.js";
2
2
  const barParallel = [
3
3
  initBarParallel,
4
4
  stackCornerRadius,
@@ -28,11 +28,12 @@ const pivotBarParallel = [
28
28
  pivotIndicators([
29
29
  initBarParallel,
30
30
  stackCornerRadius,
31
+ barMaxWidth,
31
32
  colorAdapter(color, linearColor),
32
33
  backgroundColor,
33
34
  datasetYX,
34
35
  xLinear,
35
- yBand,
36
+ pivotAxisStyle(yBand),
36
37
  label,
37
38
  tooltip,
38
39
  colorBarStyleFill(barStyle),
@@ -44,6 +45,7 @@ const pivotBarParallel = [
44
45
  ]),
45
46
  pivotRowDimensions,
46
47
  pivotColumnDimensions,
48
+ pivotTitle,
47
49
  colorAdapter(pivotDiscreteLegend, pivotColorLegend)
48
50
  ];
49
51
  const barParallelSpecPipeline = [
@@ -1 +1 @@
1
- {"version":3,"file":"pipeline/spec/chart/pipeline/barParallel.js","sources":["webpack://@visactor/vseed/./src/pipeline/spec/chart/pipeline/barParallel.ts"],"sourcesContent":["import type { SpecPipeline } from 'src/types'\nimport {\n datasetYX,\n xLinear,\n yBand,\n initBarParallel,\n backgroundColor,\n label,\n tooltip,\n discreteLegend,\n color,\n initPivot,\n datasetPivot,\n pivotDiscreteLegend,\n pivotIndicators,\n pivotAdapter,\n pivotIndicatorsAsCol,\n pivotGridStyle,\n pivotRowDimensions,\n pivotColumnDimensions,\n barStyle,\n annotationPoint,\n annotationVerticalLine,\n annotationHorizontalLine,\n annotationAreaBand,\n horizontalCrosshairRect,\n stackCornerRadius,\n progressive,\n linearColor,\n colorAdapter,\n colorLegend,\n colorBarStyleFill,\n pivotColorLegend,\n barMaxWidth,\n barGapInGroup,\n} from '../pipes'\n\nconst barParallel: SpecPipeline = [\n initBarParallel,\n stackCornerRadius,\n barMaxWidth,\n barGapInGroup,\n colorAdapter(color, linearColor),\n backgroundColor,\n datasetYX,\n progressive,\n xLinear,\n yBand,\n label,\n tooltip,\n colorAdapter(discreteLegend, colorLegend),\n horizontalCrosshairRect,\n colorBarStyleFill(barStyle),\n annotationPoint,\n annotationVerticalLine,\n annotationHorizontalLine,\n annotationAreaBand,\n]\n\nconst pivotBarParallel: SpecPipeline = [\n initPivot,\n pivotGridStyle,\n pivotIndicatorsAsCol,\n datasetPivot,\n pivotIndicators([\n initBarParallel,\n stackCornerRadius,\n colorAdapter(color, linearColor),\n backgroundColor,\n datasetYX,\n xLinear,\n yBand,\n label,\n tooltip,\n colorBarStyleFill(barStyle),\n horizontalCrosshairRect,\n annotationPoint,\n annotationVerticalLine,\n annotationHorizontalLine,\n annotationAreaBand,\n ]),\n pivotRowDimensions,\n pivotColumnDimensions,\n colorAdapter(pivotDiscreteLegend, pivotColorLegend),\n]\n\nexport const barParallelSpecPipeline: SpecPipeline = [pivotAdapter(barParallel, pivotBarParallel)]\n"],"names":["barParallel","initBarParallel","stackCornerRadius","barMaxWidth","barGapInGroup","colorAdapter","color","linearColor","backgroundColor","datasetYX","progressive","xLinear","yBand","label","tooltip","discreteLegend","colorLegend","horizontalCrosshairRect","colorBarStyleFill","barStyle","annotationPoint","annotationVerticalLine","annotationHorizontalLine","annotationAreaBand","pivotBarParallel","initPivot","pivotGridStyle","pivotIndicatorsAsCol","datasetPivot","pivotIndicators","pivotRowDimensions","pivotColumnDimensions","pivotDiscreteLegend","pivotColorLegend","barParallelSpecPipeline","pivotAdapter"],"mappings":";AAqCA,MAAMA,cAA4B;IAChCC;IACAC;IACAC;IACAC;IACAC,aAAaC,OAAOC;IACpBC;IACAC;IACAC;IACAC;IACAC;IACAC;IACAC;IACAT,aAAaU,gBAAgBC;IAC7BC;IACAC,kBAAkBC;IAClBC;IACAC;IACAC;IACAC;CACD;AAED,MAAMC,mBAAiC;IACrCC;IACAC;IACAC;IACAC;IACAC,gBAAgB;QACd5B;QACAC;QACAG,aAAaC,OAAOC;QACpBC;QACAC;QACAE;QACAC;QACAC;QACAC;QACAI,kBAAkBC;QAClBF;QACAG;QACAC;QACAC;QACAC;KACD;IACDO;IACAC;IACA1B,aAAa2B,qBAAqBC;CACnC;AAEM,MAAMC,0BAAwC;IAACC,aAAanC,aAAawB;CAAkB"}
1
+ {"version":3,"file":"pipeline/spec/chart/pipeline/barParallel.js","sources":["webpack://@visactor/vseed/./src/pipeline/spec/chart/pipeline/barParallel.ts"],"sourcesContent":["import type { SpecPipeline } from 'src/types'\nimport {\n datasetYX,\n xLinear,\n yBand,\n initBarParallel,\n backgroundColor,\n label,\n tooltip,\n discreteLegend,\n color,\n initPivot,\n datasetPivot,\n pivotDiscreteLegend,\n pivotIndicators,\n pivotAdapter,\n pivotIndicatorsAsCol,\n pivotGridStyle,\n pivotRowDimensions,\n pivotColumnDimensions,\n barStyle,\n annotationPoint,\n annotationVerticalLine,\n annotationHorizontalLine,\n annotationAreaBand,\n horizontalCrosshairRect,\n stackCornerRadius,\n progressive,\n linearColor,\n colorAdapter,\n colorLegend,\n colorBarStyleFill,\n pivotColorLegend,\n barMaxWidth,\n barGapInGroup,\n pivotAxisStyle,\n pivotTitle,\n} from '../pipes'\n\nconst barParallel: SpecPipeline = [\n initBarParallel,\n stackCornerRadius,\n barMaxWidth,\n barGapInGroup,\n colorAdapter(color, linearColor),\n backgroundColor,\n datasetYX,\n progressive,\n xLinear,\n yBand,\n label,\n tooltip,\n colorAdapter(discreteLegend, colorLegend),\n horizontalCrosshairRect,\n colorBarStyleFill(barStyle),\n annotationPoint,\n annotationVerticalLine,\n annotationHorizontalLine,\n annotationAreaBand,\n]\n\nconst pivotBarParallel: SpecPipeline = [\n initPivot,\n pivotGridStyle,\n pivotIndicatorsAsCol,\n datasetPivot,\n pivotIndicators([\n initBarParallel,\n stackCornerRadius,\n barMaxWidth,\n colorAdapter(color, linearColor),\n backgroundColor,\n datasetYX,\n xLinear,\n pivotAxisStyle(yBand),\n label,\n tooltip,\n colorBarStyleFill(barStyle),\n horizontalCrosshairRect,\n annotationPoint,\n annotationVerticalLine,\n annotationHorizontalLine,\n annotationAreaBand,\n ]),\n pivotRowDimensions,\n pivotColumnDimensions,\n pivotTitle,\n colorAdapter(pivotDiscreteLegend, pivotColorLegend),\n]\n\nexport const barParallelSpecPipeline: SpecPipeline = [pivotAdapter(barParallel, pivotBarParallel)]\n"],"names":["barParallel","initBarParallel","stackCornerRadius","barMaxWidth","barGapInGroup","colorAdapter","color","linearColor","backgroundColor","datasetYX","progressive","xLinear","yBand","label","tooltip","discreteLegend","colorLegend","horizontalCrosshairRect","colorBarStyleFill","barStyle","annotationPoint","annotationVerticalLine","annotationHorizontalLine","annotationAreaBand","pivotBarParallel","initPivot","pivotGridStyle","pivotIndicatorsAsCol","datasetPivot","pivotIndicators","pivotAxisStyle","pivotRowDimensions","pivotColumnDimensions","pivotTitle","pivotDiscreteLegend","pivotColorLegend","barParallelSpecPipeline","pivotAdapter"],"mappings":";AAuCA,MAAMA,cAA4B;IAChCC;IACAC;IACAC;IACAC;IACAC,aAAaC,OAAOC;IACpBC;IACAC;IACAC;IACAC;IACAC;IACAC;IACAC;IACAT,aAAaU,gBAAgBC;IAC7BC;IACAC,kBAAkBC;IAClBC;IACAC;IACAC;IACAC;CACD;AAED,MAAMC,mBAAiC;IACrCC;IACAC;IACAC;IACAC;IACAC,gBAAgB;QACd5B;QACAC;QACAC;QACAE,aAAaC,OAAOC;QACpBC;QACAC;QACAE;QACAmB,eAAelB;QACfC;QACAC;QACAI,kBAAkBC;QAClBF;QACAG;QACAC;QACAC;QACAC;KACD;IACDQ;IACAC;IACAC;IACA5B,aAAa6B,qBAAqBC;CACnC;AAEM,MAAMC,0BAAwC;IAACC,aAAarC,aAAawB;CAAkB"}
@@ -1,4 +1,4 @@
1
- import { annotationAreaBand, annotationHorizontalLine, annotationPoint, annotationVerticalLine, backgroundColor, barMaxWidth, barStyle, color, colorAdapter, colorBarStyleFill, colorLegend, datasetPivot, datasetYX, discreteLegend, horizontalCrosshairRect, initBar, initPivot, label, linearColor, percent, pivotAdapter, pivotColorLegend, pivotColumnDimensions, pivotDiscreteLegend, pivotGridStyle, pivotIndicators, pivotIndicatorsAsCol, pivotRowDimensions, progressive, stackCornerRadius, tooltip, xLinear, yBand } from "../pipes/index.js";
1
+ import { annotationAreaBand, annotationHorizontalLine, annotationPoint, annotationVerticalLine, backgroundColor, barMaxWidth, barStyle, color, colorAdapter, colorBarStyleFill, colorLegend, datasetPivot, datasetYX, discreteLegend, horizontalCrosshairRect, initBar, initPivot, label, linearColor, percent, pivotAdapter, pivotAxisStyle, pivotColorLegend, pivotColumnDimensions, pivotDiscreteLegend, pivotGridStyle, pivotIndicators, pivotIndicatorsAsCol, pivotRowDimensions, pivotTitle, progressive, stackCornerRadius, tooltip, xLinear, yBand } from "../pipes/index.js";
2
2
  const barPercent = [
3
3
  initBar,
4
4
  stackCornerRadius,
@@ -28,12 +28,13 @@ const pivotBarPercent = [
28
28
  pivotIndicators([
29
29
  initBar,
30
30
  stackCornerRadius,
31
+ barMaxWidth,
31
32
  colorAdapter(color, linearColor),
32
33
  backgroundColor,
33
34
  percent,
34
35
  datasetYX,
35
- yBand,
36
36
  xLinear,
37
+ pivotAxisStyle(yBand),
37
38
  label,
38
39
  tooltip,
39
40
  colorBarStyleFill(barStyle),
@@ -45,6 +46,7 @@ const pivotBarPercent = [
45
46
  ]),
46
47
  pivotRowDimensions,
47
48
  pivotColumnDimensions,
49
+ pivotTitle,
48
50
  colorAdapter(pivotDiscreteLegend, pivotColorLegend)
49
51
  ];
50
52
  const barPercentSpecPipeline = [
@@ -1 +1 @@
1
- {"version":3,"file":"pipeline/spec/chart/pipeline/barPercent.js","sources":["webpack://@visactor/vseed/./src/pipeline/spec/chart/pipeline/barPercent.ts"],"sourcesContent":["import type { SpecPipeline } from 'src/types'\nimport {\n initBar,\n datasetYX,\n xLinear,\n yBand,\n percent,\n backgroundColor,\n label,\n tooltip,\n discreteLegend,\n color,\n pivotAdapter,\n initPivot,\n datasetPivot,\n pivotIndicators,\n pivotDiscreteLegend,\n pivotIndicatorsAsCol,\n pivotGridStyle,\n pivotRowDimensions,\n pivotColumnDimensions,\n barStyle,\n annotationPoint,\n annotationVerticalLine,\n annotationHorizontalLine,\n annotationAreaBand,\n horizontalCrosshairRect,\n stackCornerRadius,\n progressive,\n colorAdapter,\n linearColor,\n colorLegend,\n colorBarStyleFill,\n pivotColorLegend,\n barMaxWidth,\n} from '../pipes'\n\nconst barPercent: SpecPipeline = [\n initBar,\n stackCornerRadius,\n barMaxWidth,\n colorAdapter(color, linearColor),\n backgroundColor,\n percent,\n datasetYX,\n progressive,\n xLinear,\n yBand,\n label,\n tooltip,\n colorAdapter(discreteLegend, colorLegend),\n horizontalCrosshairRect,\n colorBarStyleFill(barStyle),\n annotationPoint,\n annotationVerticalLine,\n annotationHorizontalLine,\n annotationAreaBand,\n]\n\nconst pivotBarPercent: SpecPipeline = [\n initPivot,\n pivotGridStyle,\n pivotIndicatorsAsCol,\n datasetPivot,\n pivotIndicators([\n initBar,\n stackCornerRadius,\n colorAdapter(color, linearColor),\n backgroundColor,\n percent,\n datasetYX,\n yBand,\n xLinear,\n label,\n tooltip,\n colorBarStyleFill(barStyle),\n horizontalCrosshairRect,\n annotationPoint,\n annotationVerticalLine,\n annotationHorizontalLine,\n annotationAreaBand,\n ]),\n pivotRowDimensions,\n pivotColumnDimensions,\n colorAdapter(pivotDiscreteLegend, pivotColorLegend),\n]\n\nexport const barPercentSpecPipeline: SpecPipeline = [pivotAdapter(barPercent, pivotBarPercent)]\n"],"names":["barPercent","initBar","stackCornerRadius","barMaxWidth","colorAdapter","color","linearColor","backgroundColor","percent","datasetYX","progressive","xLinear","yBand","label","tooltip","discreteLegend","colorLegend","horizontalCrosshairRect","colorBarStyleFill","barStyle","annotationPoint","annotationVerticalLine","annotationHorizontalLine","annotationAreaBand","pivotBarPercent","initPivot","pivotGridStyle","pivotIndicatorsAsCol","datasetPivot","pivotIndicators","pivotRowDimensions","pivotColumnDimensions","pivotDiscreteLegend","pivotColorLegend","barPercentSpecPipeline","pivotAdapter"],"mappings":";AAqCA,MAAMA,aAA2B;IAC/BC;IACAC;IACAC;IACAC,aAAaC,OAAOC;IACpBC;IACAC;IACAC;IACAC;IACAC;IACAC;IACAC;IACAC;IACAV,aAAaW,gBAAgBC;IAC7BC;IACAC,kBAAkBC;IAClBC;IACAC;IACAC;IACAC;CACD;AAED,MAAMC,kBAAgC;IACpCC;IACAC;IACAC;IACAC;IACAC,gBAAgB;QACd5B;QACAC;QACAE,aAAaC,OAAOC;QACpBC;QACAC;QACAC;QACAG;QACAD;QACAE;QACAC;QACAI,kBAAkBC;QAClBF;QACAG;QACAC;QACAC;QACAC;KACD;IACDO;IACAC;IACA3B,aAAa4B,qBAAqBC;CACnC;AAEM,MAAMC,yBAAuC;IAACC,aAAanC,YAAYwB;CAAiB"}
1
+ {"version":3,"file":"pipeline/spec/chart/pipeline/barPercent.js","sources":["webpack://@visactor/vseed/./src/pipeline/spec/chart/pipeline/barPercent.ts"],"sourcesContent":["import type { SpecPipeline } from 'src/types'\nimport {\n initBar,\n datasetYX,\n xLinear,\n yBand,\n percent,\n backgroundColor,\n label,\n tooltip,\n discreteLegend,\n color,\n pivotAdapter,\n initPivot,\n datasetPivot,\n pivotIndicators,\n pivotDiscreteLegend,\n pivotIndicatorsAsCol,\n pivotGridStyle,\n pivotRowDimensions,\n pivotColumnDimensions,\n barStyle,\n annotationPoint,\n annotationVerticalLine,\n annotationHorizontalLine,\n annotationAreaBand,\n horizontalCrosshairRect,\n stackCornerRadius,\n progressive,\n colorAdapter,\n linearColor,\n colorLegend,\n colorBarStyleFill,\n pivotColorLegend,\n barMaxWidth,\n pivotAxisStyle,\n pivotTitle,\n} from '../pipes'\n\nconst barPercent: SpecPipeline = [\n initBar,\n stackCornerRadius,\n barMaxWidth,\n colorAdapter(color, linearColor),\n backgroundColor,\n percent,\n datasetYX,\n progressive,\n xLinear,\n yBand,\n label,\n tooltip,\n colorAdapter(discreteLegend, colorLegend),\n horizontalCrosshairRect,\n colorBarStyleFill(barStyle),\n annotationPoint,\n annotationVerticalLine,\n annotationHorizontalLine,\n annotationAreaBand,\n]\n\nconst pivotBarPercent: SpecPipeline = [\n initPivot,\n pivotGridStyle,\n pivotIndicatorsAsCol,\n datasetPivot,\n pivotIndicators([\n initBar,\n stackCornerRadius,\n barMaxWidth,\n colorAdapter(color, linearColor),\n backgroundColor,\n percent,\n datasetYX,\n xLinear,\n pivotAxisStyle(yBand),\n label,\n tooltip,\n colorBarStyleFill(barStyle),\n horizontalCrosshairRect,\n annotationPoint,\n annotationVerticalLine,\n annotationHorizontalLine,\n annotationAreaBand,\n ]),\n pivotRowDimensions,\n pivotColumnDimensions,\n pivotTitle,\n colorAdapter(pivotDiscreteLegend, pivotColorLegend),\n]\n\nexport const barPercentSpecPipeline: SpecPipeline = [pivotAdapter(barPercent, pivotBarPercent)]\n"],"names":["barPercent","initBar","stackCornerRadius","barMaxWidth","colorAdapter","color","linearColor","backgroundColor","percent","datasetYX","progressive","xLinear","yBand","label","tooltip","discreteLegend","colorLegend","horizontalCrosshairRect","colorBarStyleFill","barStyle","annotationPoint","annotationVerticalLine","annotationHorizontalLine","annotationAreaBand","pivotBarPercent","initPivot","pivotGridStyle","pivotIndicatorsAsCol","datasetPivot","pivotIndicators","pivotAxisStyle","pivotRowDimensions","pivotColumnDimensions","pivotTitle","pivotDiscreteLegend","pivotColorLegend","barPercentSpecPipeline","pivotAdapter"],"mappings":";AAuCA,MAAMA,aAA2B;IAC/BC;IACAC;IACAC;IACAC,aAAaC,OAAOC;IACpBC;IACAC;IACAC;IACAC;IACAC;IACAC;IACAC;IACAC;IACAV,aAAaW,gBAAgBC;IAC7BC;IACAC,kBAAkBC;IAClBC;IACAC;IACAC;IACAC;CACD;AAED,MAAMC,kBAAgC;IACpCC;IACAC;IACAC;IACAC;IACAC,gBAAgB;QACd5B;QACAC;QACAC;QACAC,aAAaC,OAAOC;QACpBC;QACAC;QACAC;QACAE;QACAmB,eAAelB;QACfC;QACAC;QACAI,kBAAkBC;QAClBF;QACAG;QACAC;QACAC;QACAC;KACD;IACDQ;IACAC;IACAC;IACA7B,aAAa8B,qBAAqBC;CACnC;AAEM,MAAMC,yBAAuC;IAACC,aAAarC,YAAYwB;CAAiB"}