@visactor/vseed 0.4.28 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (193) hide show
  1. package/dist/cjs/index.cjs +2 -2
  2. package/dist/cjs/index.cjs.map +1 -1
  3. package/dist/esm/pipeline/advanced/chart/pipes/config/column.js +2 -1
  4. package/dist/esm/pipeline/advanced/chart/pipes/config/column.js.map +1 -1
  5. package/dist/esm/pipeline/advanced/chart/pipes/config/line.js +2 -1
  6. package/dist/esm/pipeline/advanced/chart/pipes/config/line.js.map +1 -1
  7. package/dist/esm/pipeline/advanced/chart/pipes/config/pie.js +2 -1
  8. package/dist/esm/pipeline/advanced/chart/pipes/config/pie.js.map +1 -1
  9. package/dist/esm/pipeline/advanced/chart/pipes/config/scatter.js +2 -1
  10. package/dist/esm/pipeline/advanced/chart/pipes/config/scatter.js.map +1 -1
  11. package/dist/esm/pipeline/spec/chart/pipeline/area.js +3 -1
  12. package/dist/esm/pipeline/spec/chart/pipeline/area.js.map +1 -1
  13. package/dist/esm/pipeline/spec/chart/pipeline/areaPercent.js +3 -1
  14. package/dist/esm/pipeline/spec/chart/pipeline/areaPercent.js.map +1 -1
  15. package/dist/esm/pipeline/spec/chart/pipeline/bar.js +3 -1
  16. package/dist/esm/pipeline/spec/chart/pipeline/bar.js.map +1 -1
  17. package/dist/esm/pipeline/spec/chart/pipeline/barParallel.js +3 -1
  18. package/dist/esm/pipeline/spec/chart/pipeline/barParallel.js.map +1 -1
  19. package/dist/esm/pipeline/spec/chart/pipeline/barPercent.js +3 -1
  20. package/dist/esm/pipeline/spec/chart/pipeline/barPercent.js.map +1 -1
  21. package/dist/esm/pipeline/spec/chart/pipeline/column.js +3 -1
  22. package/dist/esm/pipeline/spec/chart/pipeline/column.js.map +1 -1
  23. package/dist/esm/pipeline/spec/chart/pipeline/columnParallel.js +3 -1
  24. package/dist/esm/pipeline/spec/chart/pipeline/columnParallel.js.map +1 -1
  25. package/dist/esm/pipeline/spec/chart/pipeline/columnPercent.js +3 -1
  26. package/dist/esm/pipeline/spec/chart/pipeline/columnPercent.js.map +1 -1
  27. package/dist/esm/pipeline/spec/chart/pipeline/donut.js +3 -1
  28. package/dist/esm/pipeline/spec/chart/pipeline/donut.js.map +1 -1
  29. package/dist/esm/pipeline/spec/chart/pipeline/line.js +3 -1
  30. package/dist/esm/pipeline/spec/chart/pipeline/line.js.map +1 -1
  31. package/dist/esm/pipeline/spec/chart/pipeline/pie.js +3 -1
  32. package/dist/esm/pipeline/spec/chart/pipeline/pie.js.map +1 -1
  33. package/dist/esm/pipeline/spec/chart/pipeline/radar.js +3 -1
  34. package/dist/esm/pipeline/spec/chart/pipeline/radar.js.map +1 -1
  35. package/dist/esm/pipeline/spec/chart/pipeline/rose.js +3 -1
  36. package/dist/esm/pipeline/spec/chart/pipeline/rose.js.map +1 -1
  37. package/dist/esm/pipeline/spec/chart/pipeline/roseParallel.js +3 -1
  38. package/dist/esm/pipeline/spec/chart/pipeline/roseParallel.js.map +1 -1
  39. package/dist/esm/pipeline/spec/chart/pipeline/scatter.js +3 -1
  40. package/dist/esm/pipeline/spec/chart/pipeline/scatter.js.map +1 -1
  41. package/dist/esm/pipeline/spec/chart/pipes/animation/animation.d.ts +15 -0
  42. package/dist/esm/pipeline/spec/chart/pipes/animation/animation.js +94 -0
  43. package/dist/esm/pipeline/spec/chart/pipes/animation/animation.js.map +1 -0
  44. package/dist/esm/pipeline/spec/chart/pipes/animation/bar.d.ts +77 -0
  45. package/dist/esm/pipeline/spec/chart/pipes/animation/bar.js +88 -0
  46. package/dist/esm/pipeline/spec/chart/pipes/animation/bar.js.map +1 -0
  47. package/dist/esm/pipeline/spec/chart/pipes/animation/index.d.ts +2 -0
  48. package/dist/esm/pipeline/spec/chart/pipes/animation/index.js +2 -0
  49. package/dist/esm/pipeline/spec/chart/pipes/animation/lineOrArea.d.ts +254 -0
  50. package/dist/esm/pipeline/spec/chart/pipes/animation/lineOrArea.js +138 -0
  51. package/dist/esm/pipeline/spec/chart/pipes/animation/lineOrArea.js.map +1 -0
  52. package/dist/esm/pipeline/spec/chart/pipes/animation/pie.d.ts +71 -0
  53. package/dist/esm/pipeline/spec/chart/pipes/animation/pie.js +176 -0
  54. package/dist/esm/pipeline/spec/chart/pipes/animation/pie.js.map +1 -0
  55. package/dist/esm/pipeline/spec/chart/pipes/animation/radar.d.ts +131 -0
  56. package/dist/esm/pipeline/spec/chart/pipes/animation/radar.js +46 -0
  57. package/dist/esm/pipeline/spec/chart/pipes/animation/radar.js.map +1 -0
  58. package/dist/esm/pipeline/spec/chart/pipes/animation/scatter.d.ts +102 -0
  59. package/dist/esm/pipeline/spec/chart/pipes/animation/scatter.js +57 -0
  60. package/dist/esm/pipeline/spec/chart/pipes/animation/scatter.js.map +1 -0
  61. package/dist/esm/pipeline/spec/chart/pipes/animation/types.d.ts +130 -0
  62. package/dist/esm/pipeline/spec/chart/pipes/animation/types.js +19 -0
  63. package/dist/esm/pipeline/spec/chart/pipes/animation/types.js.map +1 -0
  64. package/dist/esm/pipeline/spec/chart/pipes/animation/utils/bar.d.ts +11 -0
  65. package/dist/esm/pipeline/spec/chart/pipes/animation/utils/bar.js +13 -0
  66. package/dist/esm/pipeline/spec/chart/pipes/animation/utils/bar.js.map +1 -0
  67. package/dist/esm/pipeline/spec/chart/pipes/animation/utils/barColor.d.ts +52 -0
  68. package/dist/esm/pipeline/spec/chart/pipes/animation/utils/barColor.js +51 -0
  69. package/dist/esm/pipeline/spec/chart/pipes/animation/utils/barColor.js.map +1 -0
  70. package/dist/esm/pipeline/spec/chart/pipes/animation/utils/barGroup.d.ts +102 -0
  71. package/dist/esm/pipeline/spec/chart/pipes/animation/utils/barGroup.js +84 -0
  72. package/dist/esm/pipeline/spec/chart/pipes/animation/utils/barGroup.js.map +1 -0
  73. package/dist/esm/pipeline/spec/chart/pipes/animation/utils/barMotion.d.ts +66 -0
  74. package/dist/esm/pipeline/spec/chart/pipes/animation/utils/barMotion.js +72 -0
  75. package/dist/esm/pipeline/spec/chart/pipes/animation/utils/barMotion.js.map +1 -0
  76. package/dist/esm/pipeline/spec/chart/pipes/animation/utils/index.d.ts +86 -0
  77. package/dist/esm/pipeline/spec/chart/pipes/animation/utils/index.js +60 -0
  78. package/dist/esm/pipeline/spec/chart/pipes/animation/utils/index.js.map +1 -0
  79. package/dist/esm/pipeline/spec/chart/pipes/animation/utils/lineOrArea.d.ts +29 -0
  80. package/dist/esm/pipeline/spec/chart/pipes/animation/utils/lineOrArea.js +20 -0
  81. package/dist/esm/pipeline/spec/chart/pipes/animation/utils/lineOrArea.js.map +1 -0
  82. package/dist/esm/pipeline/spec/chart/pipes/animation/utils/pie.d.ts +14 -0
  83. package/dist/esm/pipeline/spec/chart/pipes/animation/utils/pie.js +9 -0
  84. package/dist/esm/pipeline/spec/chart/pipes/animation/utils/pie.js.map +1 -0
  85. package/dist/esm/pipeline/spec/chart/pipes/animation/utils/scatter.d.ts +69 -0
  86. package/dist/esm/pipeline/spec/chart/pipes/animation/utils/scatter.js +59 -0
  87. package/dist/esm/pipeline/spec/chart/pipes/animation/utils/scatter.js.map +1 -0
  88. package/dist/esm/pipeline/spec/chart/pipes/index.d.ts +1 -0
  89. package/dist/esm/pipeline/spec/chart/pipes/index.js +1 -0
  90. package/dist/esm/types/chartType/area/area.d.ts +6 -1
  91. package/dist/esm/types/chartType/area/zArea.d.ts +40 -0
  92. package/dist/esm/types/chartType/area/zArea.js +2 -1
  93. package/dist/esm/types/chartType/area/zArea.js.map +1 -1
  94. package/dist/esm/types/chartType/areaPercent/areaPercent.d.ts +6 -1
  95. package/dist/esm/types/chartType/areaPercent/zAreaPercent.d.ts +40 -0
  96. package/dist/esm/types/chartType/areaPercent/zAreaPercent.js +2 -1
  97. package/dist/esm/types/chartType/areaPercent/zAreaPercent.js.map +1 -1
  98. package/dist/esm/types/chartType/bar/bar.d.ts +6 -1
  99. package/dist/esm/types/chartType/bar/zBar.d.ts +40 -0
  100. package/dist/esm/types/chartType/bar/zBar.js +2 -1
  101. package/dist/esm/types/chartType/bar/zBar.js.map +1 -1
  102. package/dist/esm/types/chartType/barParallel/barParallel.d.ts +6 -1
  103. package/dist/esm/types/chartType/barParallel/zBarParallel.d.ts +40 -0
  104. package/dist/esm/types/chartType/barParallel/zBarParallel.js +2 -1
  105. package/dist/esm/types/chartType/barParallel/zBarParallel.js.map +1 -1
  106. package/dist/esm/types/chartType/barPercent/barPercent.d.ts +6 -1
  107. package/dist/esm/types/chartType/barPercent/zBarPercent.d.ts +40 -0
  108. package/dist/esm/types/chartType/barPercent/zBarPercent.js +2 -1
  109. package/dist/esm/types/chartType/barPercent/zBarPercent.js.map +1 -1
  110. package/dist/esm/types/chartType/column/column.d.ts +6 -1
  111. package/dist/esm/types/chartType/column/zColumn.d.ts +40 -0
  112. package/dist/esm/types/chartType/column/zColumn.js +2 -1
  113. package/dist/esm/types/chartType/column/zColumn.js.map +1 -1
  114. package/dist/esm/types/chartType/columnParallel/columnParallel.d.ts +6 -1
  115. package/dist/esm/types/chartType/columnParallel/zColumnParallel.d.ts +40 -0
  116. package/dist/esm/types/chartType/columnParallel/zColumnParallel.js +2 -1
  117. package/dist/esm/types/chartType/columnParallel/zColumnParallel.js.map +1 -1
  118. package/dist/esm/types/chartType/columnPercent/columnPercent.d.ts +6 -1
  119. package/dist/esm/types/chartType/columnPercent/zColumnPercent.d.ts +40 -0
  120. package/dist/esm/types/chartType/columnPercent/zColumnPercent.js +2 -1
  121. package/dist/esm/types/chartType/columnPercent/zColumnPercent.js.map +1 -1
  122. package/dist/esm/types/chartType/donut/donut.d.ts +6 -1
  123. package/dist/esm/types/chartType/donut/zDonut.d.ts +40 -0
  124. package/dist/esm/types/chartType/donut/zDonut.js +2 -1
  125. package/dist/esm/types/chartType/donut/zDonut.js.map +1 -1
  126. package/dist/esm/types/chartType/line/line.d.ts +6 -1
  127. package/dist/esm/types/chartType/line/zLine.d.ts +40 -0
  128. package/dist/esm/types/chartType/line/zLine.js +2 -1
  129. package/dist/esm/types/chartType/line/zLine.js.map +1 -1
  130. package/dist/esm/types/chartType/pie/pie.d.ts +6 -1
  131. package/dist/esm/types/chartType/pie/zPie.d.ts +40 -0
  132. package/dist/esm/types/chartType/pie/zPie.js +2 -1
  133. package/dist/esm/types/chartType/pie/zPie.js.map +1 -1
  134. package/dist/esm/types/chartType/radar/radar.d.ts +6 -1
  135. package/dist/esm/types/chartType/radar/zRadar.d.ts +40 -0
  136. package/dist/esm/types/chartType/radar/zRadar.js +2 -1
  137. package/dist/esm/types/chartType/radar/zRadar.js.map +1 -1
  138. package/dist/esm/types/chartType/rose/rose.d.ts +6 -1
  139. package/dist/esm/types/chartType/rose/zRose.d.ts +40 -0
  140. package/dist/esm/types/chartType/rose/zRose.js +2 -1
  141. package/dist/esm/types/chartType/rose/zRose.js.map +1 -1
  142. package/dist/esm/types/chartType/roseParallel/roseParallel.d.ts +6 -1
  143. package/dist/esm/types/chartType/roseParallel/zRoseParallel.d.ts +40 -0
  144. package/dist/esm/types/chartType/roseParallel/zRoseParallel.js +2 -1
  145. package/dist/esm/types/chartType/roseParallel/zRoseParallel.js.map +1 -1
  146. package/dist/esm/types/chartType/scatter/scatter.d.ts +6 -1
  147. package/dist/esm/types/chartType/scatter/zScatter.d.ts +40 -0
  148. package/dist/esm/types/chartType/scatter/zScatter.js +2 -1
  149. package/dist/esm/types/chartType/scatter/zScatter.js.map +1 -1
  150. package/dist/esm/types/properties/config/animation/animation.d.ts +72 -0
  151. package/dist/esm/types/properties/config/animation/animation.js +0 -0
  152. package/dist/esm/types/properties/config/animation/animationAtmosphere.d.ts +15 -0
  153. package/dist/esm/types/properties/config/animation/animationAtmosphere.js +0 -0
  154. package/dist/esm/types/properties/config/animation/animationConfig.d.ts +2 -0
  155. package/dist/esm/types/properties/config/animation/animationConfig.js +0 -0
  156. package/dist/esm/types/properties/config/animation/animationEffect.d.ts +72 -0
  157. package/dist/esm/types/properties/config/animation/animationEffect.js +0 -0
  158. package/dist/esm/types/properties/config/animation/animationLoop.d.ts +49 -0
  159. package/dist/esm/types/properties/config/animation/animationLoop.js +0 -0
  160. package/dist/esm/types/properties/config/animation/index.d.ts +6 -0
  161. package/dist/esm/types/properties/config/animation/index.js +1 -0
  162. package/dist/esm/types/properties/config/animation/zAnimation.d.ts +201 -0
  163. package/dist/esm/types/properties/config/animation/zAnimation.js +114 -0
  164. package/dist/esm/types/properties/config/animation/zAnimation.js.map +1 -0
  165. package/dist/esm/types/properties/config/area.d.ts +80 -0
  166. package/dist/esm/types/properties/config/area.js +3 -1
  167. package/dist/esm/types/properties/config/area.js.map +1 -1
  168. package/dist/esm/types/properties/config/bar.d.ts +120 -0
  169. package/dist/esm/types/properties/config/bar.js +3 -1
  170. package/dist/esm/types/properties/config/bar.js.map +1 -1
  171. package/dist/esm/types/properties/config/column.d.ts +120 -0
  172. package/dist/esm/types/properties/config/column.js +3 -1
  173. package/dist/esm/types/properties/config/column.js.map +1 -1
  174. package/dist/esm/types/properties/config/config.d.ts +840 -0
  175. package/dist/esm/types/properties/config/index.d.ts +1 -0
  176. package/dist/esm/types/properties/config/index.js +1 -0
  177. package/dist/esm/types/properties/config/line.d.ts +40 -0
  178. package/dist/esm/types/properties/config/line.js +3 -1
  179. package/dist/esm/types/properties/config/line.js.map +1 -1
  180. package/dist/esm/types/properties/config/pie.d.ts +120 -0
  181. package/dist/esm/types/properties/config/pie.js +6 -2
  182. package/dist/esm/types/properties/config/pie.js.map +1 -1
  183. package/dist/esm/types/properties/config/race.d.ts +240 -0
  184. package/dist/esm/types/properties/config/rose.d.ts +80 -0
  185. package/dist/esm/types/properties/config/rose.js +3 -1
  186. package/dist/esm/types/properties/config/rose.js.map +1 -1
  187. package/dist/esm/types/properties/config/scatter.d.ts +40 -0
  188. package/dist/esm/types/properties/config/scatter.js +3 -1
  189. package/dist/esm/types/properties/config/scatter.js.map +1 -1
  190. package/dist/esm/types/properties/theme/customTheme.d.ts +1680 -0
  191. package/dist/umd/index.js +4962 -613
  192. package/dist/umd/index.js.map +1 -1
  193. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"pipeline/spec/chart/pipeline/radar.js","sources":["../../../../../../src/pipeline/spec/chart/pipeline/radar.ts"],"sourcesContent":["import type { PivotChartSpecPipeline, SpecPipeline, VChartSpecPipeline } from 'src/types'\nimport {\n datasetXY,\n backgroundColor,\n label,\n tooltip,\n discreteLegend,\n color,\n initPivot,\n datasetPivot,\n pivotDiscreteLegend,\n pivotIndicators,\n pivotAdapter,\n pivotIndicatorsAsRow,\n pivotGridStyle,\n pivotColumnDimensions,\n pivotRowDimensions,\n pointStyle,\n lineStyle,\n verticalCrosshairLine,\n pointStateDimensionHover,\n initRadar,\n areaStyle,\n radarAngleAxis,\n radarRadiusAxis,\n progressive,\n linearColor,\n colorAdapter,\n colorLegend,\n colorPointStyleFill,\n colorLineStyleFill,\n colorAreaStyleFill,\n pivotColorLegend,\n pivotHideIndicatorName,\n pivotTitle,\n addRegionPadding,\n fontFamilyTheme,\n} from '../pipes'\n\nconst radar: VChartSpecPipeline = [\n fontFamilyTheme,\n initRadar,\n colorAdapter(color, linearColor),\n backgroundColor,\n datasetXY,\n progressive,\n radarAngleAxis,\n radarRadiusAxis,\n label,\n tooltip({ titleEncoding: 'angle' }),\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 pivotRadar: PivotChartSpecPipeline = [\n initPivot,\n pivotGridStyle,\n pivotIndicatorsAsRow,\n pivotHideIndicatorName,\n datasetPivot,\n pivotIndicators([\n fontFamilyTheme,\n initRadar,\n addRegionPadding,\n colorAdapter(color, linearColor),\n backgroundColor,\n datasetXY,\n progressive,\n radarAngleAxis,\n radarRadiusAxis,\n label,\n tooltip({ titleEncoding: 'angle' }),\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 radarSpecPipeline: SpecPipeline = [pivotAdapter(radar, pivotRadar)]\n"],"names":["radar","fontFamilyTheme","initRadar","colorAdapter","color","linearColor","backgroundColor","datasetXY","progressive","radarAngleAxis","radarRadiusAxis","label","tooltip","discreteLegend","colorLegend","verticalCrosshairLine","colorPointStyleFill","pointStyle","pointStateDimensionHover","colorLineStyleFill","lineStyle","colorAreaStyleFill","areaStyle","pivotRadar","initPivot","pivotGridStyle","pivotIndicatorsAsRow","pivotHideIndicatorName","datasetPivot","pivotIndicators","addRegionPadding","pivotRowDimensions","pivotColumnDimensions","pivotTitle","pivotDiscreteLegend","pivotColorLegend","radarSpecPipeline","pivotAdapter"],"mappings":";AAuCA,MAAMA,QAA4B;IAChCC;IACAC;IACAC,aAAaC,OAAOC;IACpBC;IACAC;IACAC;IACAC;IACAC;IACAC;IACAC,QAAQ;QAAE,eAAe;IAAQ;IACjCT,aAAaU,gBAAgBC;IAC7BC;IACAC,oBAAoBC;IACpBC;IACAC,mBAAmBC;IACnBC,mBAAmBC;CAKpB;AAED,MAAMC,aAAqC;IACzCC;IACAC;IACAC;IACAC;IACAC;IACAC,gBAAgB;QACd5B;QACAC;QACA4B;QACA3B,aAAaC,OAAOC;QACpBC;QACAC;QACAC;QACAC;QACAC;QACAC;QACAC,QAAQ;YAAE,eAAe;QAAQ;QACjCG;QACAC,oBAAoBC;QACpBC;QACAC,mBAAmBC;QACnBC,mBAAmBC;KAKpB;IACDS;IACAC;IACAC;IACA9B,aAAa+B,qBAAqBC;CACnC;AAEM,MAAMC,oBAAkC;IAACC,aAAarC,OAAOuB;CAAY"}
1
+ {"version":3,"file":"pipeline/spec/chart/pipeline/radar.js","sources":["../../../../../../src/pipeline/spec/chart/pipeline/radar.ts"],"sourcesContent":["import type { PivotChartSpecPipeline, SpecPipeline, VChartSpecPipeline } from 'src/types'\nimport {\n datasetXY,\n backgroundColor,\n label,\n tooltip,\n discreteLegend,\n color,\n initPivot,\n datasetPivot,\n pivotDiscreteLegend,\n pivotIndicators,\n pivotAdapter,\n pivotIndicatorsAsRow,\n pivotGridStyle,\n pivotColumnDimensions,\n pivotRowDimensions,\n pointStyle,\n lineStyle,\n verticalCrosshairLine,\n pointStateDimensionHover,\n initRadar,\n animation,\n areaStyle,\n radarAngleAxis,\n radarRadiusAxis,\n progressive,\n linearColor,\n colorAdapter,\n colorLegend,\n colorPointStyleFill,\n colorLineStyleFill,\n colorAreaStyleFill,\n pivotColorLegend,\n pivotHideIndicatorName,\n pivotTitle,\n addRegionPadding,\n fontFamilyTheme,\n} from '../pipes'\n\nconst radar: VChartSpecPipeline = [\n fontFamilyTheme,\n initRadar,\n animation,\n colorAdapter(color, linearColor),\n backgroundColor,\n datasetXY,\n progressive,\n radarAngleAxis,\n radarRadiusAxis,\n label,\n tooltip({ titleEncoding: 'angle' }),\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 pivotRadar: PivotChartSpecPipeline = [\n initPivot,\n pivotGridStyle,\n pivotIndicatorsAsRow,\n pivotHideIndicatorName,\n datasetPivot,\n pivotIndicators([\n fontFamilyTheme,\n initRadar,\n animation,\n addRegionPadding,\n colorAdapter(color, linearColor),\n backgroundColor,\n datasetXY,\n progressive,\n radarAngleAxis,\n radarRadiusAxis,\n label,\n tooltip({ titleEncoding: 'angle' }),\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 radarSpecPipeline: SpecPipeline = [pivotAdapter(radar, pivotRadar)]\n"],"names":["radar","fontFamilyTheme","initRadar","animation","colorAdapter","color","linearColor","backgroundColor","datasetXY","progressive","radarAngleAxis","radarRadiusAxis","label","tooltip","discreteLegend","colorLegend","verticalCrosshairLine","colorPointStyleFill","pointStyle","pointStateDimensionHover","colorLineStyleFill","lineStyle","colorAreaStyleFill","areaStyle","pivotRadar","initPivot","pivotGridStyle","pivotIndicatorsAsRow","pivotHideIndicatorName","datasetPivot","pivotIndicators","addRegionPadding","pivotRowDimensions","pivotColumnDimensions","pivotTitle","pivotDiscreteLegend","pivotColorLegend","radarSpecPipeline","pivotAdapter"],"mappings":";AAwCA,MAAMA,QAA4B;IAChCC;IACAC;IACAC;IACAC,aAAaC,OAAOC;IACpBC;IACAC;IACAC;IACAC;IACAC;IACAC;IACAC,QAAQ;QAAE,eAAe;IAAQ;IACjCT,aAAaU,gBAAgBC;IAC7BC;IACAC,oBAAoBC;IACpBC;IACAC,mBAAmBC;IACnBC,mBAAmBC;CAKpB;AAED,MAAMC,aAAqC;IACzCC;IACAC;IACAC;IACAC;IACAC;IACAC,gBAAgB;QACd7B;QACAC;QACAC;QACA4B;QACA3B,aAAaC,OAAOC;QACpBC;QACAC;QACAC;QACAC;QACAC;QACAC;QACAC,QAAQ;YAAE,eAAe;QAAQ;QACjCG;QACAC,oBAAoBC;QACpBC;QACAC,mBAAmBC;QACnBC,mBAAmBC;KAKpB;IACDS;IACAC;IACAC;IACA9B,aAAa+B,qBAAqBC;CACnC;AAEM,MAAMC,oBAAkC;IAACC,aAAatC,OAAOwB;CAAY"}
@@ -1,7 +1,8 @@
1
- import { addRegionPadding, backgroundColor, color, colorAdapter, colorLegend, colorRoseStyleFill, datasetPivot, datasetXY, dimensionLinkage, discreteLegend, fontFamilyTheme, initPivot, initRose, labelPie, linearColor, pivotAdapter, pivotColorLegend, pivotColumnDimensions, pivotDiscreteLegend, pivotGridStyle, pivotHideIndicatorName, pivotIndicators, pivotIndicatorsAsRow, pivotRowDimensions, pivotTitle, progressive, radiusAxis, roseStyle, stackCornerRadius, stackInverse, tooltip, verticalCrosshairRect } from "../pipes/index.js";
1
+ import { addRegionPadding, animation, backgroundColor, color, colorAdapter, colorLegend, colorRoseStyleFill, datasetPivot, datasetXY, dimensionLinkage, discreteLegend, fontFamilyTheme, initPivot, initRose, labelPie, linearColor, pivotAdapter, pivotColorLegend, pivotColumnDimensions, pivotDiscreteLegend, pivotGridStyle, pivotHideIndicatorName, pivotIndicators, pivotIndicatorsAsRow, pivotRowDimensions, pivotTitle, progressive, radiusAxis, roseStyle, stackCornerRadius, stackInverse, tooltip, verticalCrosshairRect } from "../pipes/index.js";
2
2
  const rose = [
3
3
  fontFamilyTheme,
4
4
  initRose,
5
+ animation,
5
6
  stackCornerRadius,
6
7
  stackInverse,
7
8
  colorAdapter(color, linearColor),
@@ -26,6 +27,7 @@ const pivotRose = [
26
27
  pivotIndicators([
27
28
  fontFamilyTheme,
28
29
  initRose,
30
+ animation,
29
31
  addRegionPadding,
30
32
  stackCornerRadius,
31
33
  stackInverse,
@@ -1 +1 @@
1
- {"version":3,"file":"pipeline/spec/chart/pipeline/rose.js","sources":["../../../../../../src/pipeline/spec/chart/pipeline/rose.ts"],"sourcesContent":["import type { PivotChartSpecPipeline, VChartSpecPipeline } from 'src/types'\nimport {\n datasetXY,\n backgroundColor,\n tooltip,\n discreteLegend,\n color,\n pivotAdapter,\n initPivot,\n datasetPivot,\n pivotIndicators,\n pivotDiscreteLegend,\n pivotIndicatorsAsRow,\n pivotGridStyle,\n pivotRowDimensions,\n pivotColumnDimensions,\n stackInverse,\n verticalCrosshairRect,\n stackCornerRadius,\n initRose,\n radiusAxis,\n progressive,\n linearColor,\n colorAdapter,\n pivotColorLegend,\n colorLegend,\n roseStyle,\n colorRoseStyleFill,\n labelPie,\n pivotHideIndicatorName,\n pivotTitle,\n addRegionPadding,\n dimensionLinkage,\n fontFamilyTheme,\n} from '../pipes'\n\nconst rose: VChartSpecPipeline = [\n fontFamilyTheme,\n initRose,\n stackCornerRadius,\n stackInverse,\n colorAdapter(color, linearColor),\n backgroundColor,\n datasetXY,\n progressive,\n radiusAxis,\n verticalCrosshairRect,\n colorRoseStyleFill(roseStyle),\n colorAdapter(discreteLegend, colorLegend),\n labelPie,\n tooltip({ titleEncoding: 'angle' }),\n]\n\nconst pivotRose: PivotChartSpecPipeline = [\n initPivot,\n pivotGridStyle,\n pivotIndicatorsAsRow,\n pivotHideIndicatorName,\n datasetPivot,\n pivotIndicators([\n fontFamilyTheme,\n initRose,\n addRegionPadding,\n stackCornerRadius,\n stackInverse,\n colorAdapter(color, linearColor),\n backgroundColor,\n datasetXY,\n progressive,\n radiusAxis,\n verticalCrosshairRect,\n colorRoseStyleFill(roseStyle),\n labelPie,\n tooltip({ titleEncoding: 'angle' }),\n ]),\n pivotRowDimensions,\n pivotColumnDimensions,\n pivotTitle,\n colorAdapter(pivotDiscreteLegend, pivotColorLegend),\n dimensionLinkage,\n]\n\nexport const roseSpecPipeline = [pivotAdapter(rose, pivotRose)]\n"],"names":["rose","fontFamilyTheme","initRose","stackCornerRadius","stackInverse","colorAdapter","color","linearColor","backgroundColor","datasetXY","progressive","radiusAxis","verticalCrosshairRect","colorRoseStyleFill","roseStyle","discreteLegend","colorLegend","labelPie","tooltip","pivotRose","initPivot","pivotGridStyle","pivotIndicatorsAsRow","pivotHideIndicatorName","datasetPivot","pivotIndicators","addRegionPadding","pivotRowDimensions","pivotColumnDimensions","pivotTitle","pivotDiscreteLegend","pivotColorLegend","dimensionLinkage","roseSpecPipeline","pivotAdapter"],"mappings":";AAoCA,MAAMA,OAA2B;IAC/BC;IACAC;IACAC;IACAC;IACAC,aAAaC,OAAOC;IACpBC;IACAC;IACAC;IACAC;IACAC;IACAC,mBAAmBC;IACnBT,aAAaU,gBAAgBC;IAC7BC;IACAC,QAAQ;QAAE,eAAe;IAAQ;CAClC;AAED,MAAMC,YAAoC;IACxCC;IACAC;IACAC;IACAC;IACAC;IACAC,gBAAgB;QACdxB;QACAC;QACAwB;QACAvB;QACAC;QACAC,aAAaC,OAAOC;QACpBC;QACAC;QACAC;QACAC;QACAC;QACAC,mBAAmBC;QACnBG;QACAC,QAAQ;YAAE,eAAe;QAAQ;KAClC;IACDS;IACAC;IACAC;IACAxB,aAAayB,qBAAqBC;IAClCC;CACD;AAEM,MAAMC,mBAAmB;IAACC,aAAalC,MAAMmB;CAAW"}
1
+ {"version":3,"file":"pipeline/spec/chart/pipeline/rose.js","sources":["../../../../../../src/pipeline/spec/chart/pipeline/rose.ts"],"sourcesContent":["import type { PivotChartSpecPipeline, VChartSpecPipeline } from 'src/types'\nimport {\n datasetXY,\n backgroundColor,\n tooltip,\n discreteLegend,\n color,\n pivotAdapter,\n initPivot,\n datasetPivot,\n pivotIndicators,\n pivotDiscreteLegend,\n pivotIndicatorsAsRow,\n pivotGridStyle,\n pivotRowDimensions,\n pivotColumnDimensions,\n stackInverse,\n verticalCrosshairRect,\n stackCornerRadius,\n initRose,\n animation,\n radiusAxis,\n progressive,\n linearColor,\n colorAdapter,\n pivotColorLegend,\n colorLegend,\n roseStyle,\n colorRoseStyleFill,\n labelPie,\n pivotHideIndicatorName,\n pivotTitle,\n addRegionPadding,\n dimensionLinkage,\n fontFamilyTheme,\n} from '../pipes'\n\nconst rose: VChartSpecPipeline = [\n fontFamilyTheme,\n initRose,\n animation,\n stackCornerRadius,\n stackInverse,\n colorAdapter(color, linearColor),\n backgroundColor,\n datasetXY,\n progressive,\n radiusAxis,\n verticalCrosshairRect,\n colorRoseStyleFill(roseStyle),\n colorAdapter(discreteLegend, colorLegend),\n labelPie,\n tooltip({ titleEncoding: 'angle' }),\n]\n\nconst pivotRose: PivotChartSpecPipeline = [\n initPivot,\n pivotGridStyle,\n pivotIndicatorsAsRow,\n pivotHideIndicatorName,\n datasetPivot,\n pivotIndicators([\n fontFamilyTheme,\n initRose,\n animation,\n addRegionPadding,\n stackCornerRadius,\n stackInverse,\n colorAdapter(color, linearColor),\n backgroundColor,\n datasetXY,\n progressive,\n radiusAxis,\n verticalCrosshairRect,\n colorRoseStyleFill(roseStyle),\n labelPie,\n tooltip({ titleEncoding: 'angle' }),\n ]),\n pivotRowDimensions,\n pivotColumnDimensions,\n pivotTitle,\n colorAdapter(pivotDiscreteLegend, pivotColorLegend),\n dimensionLinkage,\n]\n\nexport const roseSpecPipeline = [pivotAdapter(rose, pivotRose)]\n"],"names":["rose","fontFamilyTheme","initRose","animation","stackCornerRadius","stackInverse","colorAdapter","color","linearColor","backgroundColor","datasetXY","progressive","radiusAxis","verticalCrosshairRect","colorRoseStyleFill","roseStyle","discreteLegend","colorLegend","labelPie","tooltip","pivotRose","initPivot","pivotGridStyle","pivotIndicatorsAsRow","pivotHideIndicatorName","datasetPivot","pivotIndicators","addRegionPadding","pivotRowDimensions","pivotColumnDimensions","pivotTitle","pivotDiscreteLegend","pivotColorLegend","dimensionLinkage","roseSpecPipeline","pivotAdapter"],"mappings":";AAqCA,MAAMA,OAA2B;IAC/BC;IACAC;IACAC;IACAC;IACAC;IACAC,aAAaC,OAAOC;IACpBC;IACAC;IACAC;IACAC;IACAC;IACAC,mBAAmBC;IACnBT,aAAaU,gBAAgBC;IAC7BC;IACAC,QAAQ;QAAE,eAAe;IAAQ;CAClC;AAED,MAAMC,YAAoC;IACxCC;IACAC;IACAC;IACAC;IACAC;IACAC,gBAAgB;QACdzB;QACAC;QACAC;QACAwB;QACAvB;QACAC;QACAC,aAAaC,OAAOC;QACpBC;QACAC;QACAC;QACAC;QACAC;QACAC,mBAAmBC;QACnBG;QACAC,QAAQ;YAAE,eAAe;QAAQ;KAClC;IACDS;IACAC;IACAC;IACAxB,aAAayB,qBAAqBC;IAClCC;CACD;AAEM,MAAMC,mBAAmB;IAACC,aAAanC,MAAMoB;CAAW"}
@@ -1,7 +1,8 @@
1
- import { addRegionPadding, annotationAreaBand, annotationHorizontalLine, annotationPoint, annotationVerticalLine, backgroundColor, color, colorAdapter, colorLegend, colorRoseStyleFill, datasetPivot, datasetXY, dimensionLinkage, discreteLegend, fontFamilyTheme, initPivot, initRoseParallel, labelPie, linearColor, pivotAdapter, pivotColorLegend, pivotColumnDimensions, pivotDiscreteLegend, pivotGridStyle, pivotHideIndicatorName, pivotIndicators, pivotIndicatorsAsRow, pivotRowDimensions, pivotTitle, progressive, radiusAxis, roseStyle, stackCornerRadius, tooltip, verticalCrosshairRect } from "../pipes/index.js";
1
+ import { addRegionPadding, animation, annotationAreaBand, annotationHorizontalLine, annotationPoint, annotationVerticalLine, backgroundColor, color, colorAdapter, colorLegend, colorRoseStyleFill, datasetPivot, datasetXY, dimensionLinkage, discreteLegend, fontFamilyTheme, initPivot, initRoseParallel, labelPie, linearColor, pivotAdapter, pivotColorLegend, pivotColumnDimensions, pivotDiscreteLegend, pivotGridStyle, pivotHideIndicatorName, pivotIndicators, pivotIndicatorsAsRow, pivotRowDimensions, pivotTitle, progressive, radiusAxis, roseStyle, stackCornerRadius, tooltip, verticalCrosshairRect } from "../pipes/index.js";
2
2
  const roseParallel = [
3
3
  fontFamilyTheme,
4
4
  initRoseParallel,
5
+ animation,
5
6
  stackCornerRadius,
6
7
  colorAdapter(color, linearColor),
7
8
  backgroundColor,
@@ -29,6 +30,7 @@ const pivotRoseParallel = [
29
30
  pivotIndicators([
30
31
  fontFamilyTheme,
31
32
  initRoseParallel,
33
+ animation,
32
34
  addRegionPadding,
33
35
  stackCornerRadius,
34
36
  colorAdapter(color, linearColor),
@@ -1 +1 @@
1
- {"version":3,"file":"pipeline/spec/chart/pipeline/roseParallel.js","sources":["../../../../../../src/pipeline/spec/chart/pipeline/roseParallel.ts"],"sourcesContent":["import type { PivotChartSpecPipeline, VChartSpecPipeline } from 'src/types'\nimport {\n datasetXY,\n backgroundColor,\n tooltip,\n discreteLegend,\n color,\n pivotIndicators,\n initPivot,\n datasetPivot,\n pivotAdapter,\n pivotDiscreteLegend,\n pivotIndicatorsAsRow,\n pivotGridStyle,\n pivotRowDimensions,\n pivotColumnDimensions,\n annotationPoint,\n annotationVerticalLine,\n annotationHorizontalLine,\n annotationAreaBand,\n verticalCrosshairRect,\n stackCornerRadius,\n initRoseParallel,\n radiusAxis,\n progressive,\n pivotColorLegend,\n colorAdapter,\n linearColor,\n colorLegend,\n roseStyle,\n colorRoseStyleFill,\n labelPie,\n pivotHideIndicatorName,\n pivotTitle,\n addRegionPadding,\n dimensionLinkage,\n fontFamilyTheme,\n} from '../pipes'\n\nconst roseParallel: VChartSpecPipeline = [\n fontFamilyTheme,\n initRoseParallel,\n stackCornerRadius,\n colorAdapter(color, linearColor),\n backgroundColor,\n datasetXY,\n progressive,\n radiusAxis,\n colorRoseStyleFill(roseStyle),\n colorAdapter(discreteLegend, colorLegend),\n labelPie,\n tooltip({ titleEncoding: 'angle' }),\n verticalCrosshairRect,\n annotationPoint,\n annotationVerticalLine,\n annotationHorizontalLine,\n annotationAreaBand,\n]\n\nconst pivotRoseParallel: PivotChartSpecPipeline = [\n initPivot,\n pivotGridStyle,\n pivotIndicatorsAsRow,\n pivotHideIndicatorName,\n datasetPivot,\n pivotIndicators([\n fontFamilyTheme,\n initRoseParallel,\n addRegionPadding,\n stackCornerRadius,\n colorAdapter(color, linearColor),\n backgroundColor,\n datasetXY,\n progressive,\n radiusAxis,\n verticalCrosshairRect,\n colorRoseStyleFill(roseStyle),\n labelPie,\n tooltip({ titleEncoding: 'angle' }),\n annotationPoint,\n annotationVerticalLine,\n annotationHorizontalLine,\n annotationAreaBand,\n ]),\n pivotRowDimensions,\n pivotColumnDimensions,\n pivotTitle,\n colorAdapter(pivotDiscreteLegend, pivotColorLegend),\n dimensionLinkage,\n]\n\nexport const roseParallelSpecPipeline = [pivotAdapter(roseParallel, pivotRoseParallel)]\n"],"names":["roseParallel","fontFamilyTheme","initRoseParallel","stackCornerRadius","colorAdapter","color","linearColor","backgroundColor","datasetXY","progressive","radiusAxis","colorRoseStyleFill","roseStyle","discreteLegend","colorLegend","labelPie","tooltip","verticalCrosshairRect","annotationPoint","annotationVerticalLine","annotationHorizontalLine","annotationAreaBand","pivotRoseParallel","initPivot","pivotGridStyle","pivotIndicatorsAsRow","pivotHideIndicatorName","datasetPivot","pivotIndicators","addRegionPadding","pivotRowDimensions","pivotColumnDimensions","pivotTitle","pivotDiscreteLegend","pivotColorLegend","dimensionLinkage","roseParallelSpecPipeline","pivotAdapter"],"mappings":";AAuCA,MAAMA,eAAmC;IACvCC;IACAC;IACAC;IACAC,aAAaC,OAAOC;IACpBC;IACAC;IACAC;IACAC;IACAC,mBAAmBC;IACnBR,aAAaS,gBAAgBC;IAC7BC;IACAC,QAAQ;QAAE,eAAe;IAAQ;IACjCC;IACAC;IACAC;IACAC;IACAC;CACD;AAED,MAAMC,oBAA4C;IAChDC;IACAC;IACAC;IACAC;IACAC;IACAC,gBAAgB;QACd3B;QACAC;QACA2B;QACA1B;QACAC,aAAaC,OAAOC;QACpBC;QACAC;QACAC;QACAC;QACAO;QACAN,mBAAmBC;QACnBG;QACAC,QAAQ;YAAE,eAAe;QAAQ;QACjCE;QACAC;QACAC;QACAC;KACD;IACDS;IACAC;IACAC;IACA5B,aAAa6B,qBAAqBC;IAClCC;CACD;AAEM,MAAMC,2BAA2B;IAACC,aAAarC,cAAcsB;CAAmB"}
1
+ {"version":3,"file":"pipeline/spec/chart/pipeline/roseParallel.js","sources":["../../../../../../src/pipeline/spec/chart/pipeline/roseParallel.ts"],"sourcesContent":["import type { PivotChartSpecPipeline, VChartSpecPipeline } from 'src/types'\nimport {\n datasetXY,\n backgroundColor,\n tooltip,\n discreteLegend,\n color,\n pivotIndicators,\n initPivot,\n datasetPivot,\n pivotAdapter,\n pivotDiscreteLegend,\n pivotIndicatorsAsRow,\n pivotGridStyle,\n pivotRowDimensions,\n pivotColumnDimensions,\n annotationPoint,\n annotationVerticalLine,\n annotationHorizontalLine,\n annotationAreaBand,\n verticalCrosshairRect,\n stackCornerRadius,\n initRoseParallel,\n animation,\n radiusAxis,\n progressive,\n pivotColorLegend,\n colorAdapter,\n linearColor,\n colorLegend,\n roseStyle,\n colorRoseStyleFill,\n labelPie,\n pivotHideIndicatorName,\n pivotTitle,\n addRegionPadding,\n dimensionLinkage,\n fontFamilyTheme,\n} from '../pipes'\n\nconst roseParallel: VChartSpecPipeline = [\n fontFamilyTheme,\n initRoseParallel,\n animation,\n stackCornerRadius,\n colorAdapter(color, linearColor),\n backgroundColor,\n datasetXY,\n progressive,\n radiusAxis,\n colorRoseStyleFill(roseStyle),\n colorAdapter(discreteLegend, colorLegend),\n labelPie,\n tooltip({ titleEncoding: 'angle' }),\n verticalCrosshairRect,\n annotationPoint,\n annotationVerticalLine,\n annotationHorizontalLine,\n annotationAreaBand,\n]\n\nconst pivotRoseParallel: PivotChartSpecPipeline = [\n initPivot,\n pivotGridStyle,\n pivotIndicatorsAsRow,\n pivotHideIndicatorName,\n datasetPivot,\n pivotIndicators([\n fontFamilyTheme,\n initRoseParallel,\n animation,\n addRegionPadding,\n stackCornerRadius,\n colorAdapter(color, linearColor),\n backgroundColor,\n datasetXY,\n progressive,\n radiusAxis,\n verticalCrosshairRect,\n colorRoseStyleFill(roseStyle),\n labelPie,\n tooltip({ titleEncoding: 'angle' }),\n annotationPoint,\n annotationVerticalLine,\n annotationHorizontalLine,\n annotationAreaBand,\n ]),\n pivotRowDimensions,\n pivotColumnDimensions,\n pivotTitle,\n colorAdapter(pivotDiscreteLegend, pivotColorLegend),\n dimensionLinkage,\n]\n\nexport const roseParallelSpecPipeline = [pivotAdapter(roseParallel, pivotRoseParallel)]\n"],"names":["roseParallel","fontFamilyTheme","initRoseParallel","animation","stackCornerRadius","colorAdapter","color","linearColor","backgroundColor","datasetXY","progressive","radiusAxis","colorRoseStyleFill","roseStyle","discreteLegend","colorLegend","labelPie","tooltip","verticalCrosshairRect","annotationPoint","annotationVerticalLine","annotationHorizontalLine","annotationAreaBand","pivotRoseParallel","initPivot","pivotGridStyle","pivotIndicatorsAsRow","pivotHideIndicatorName","datasetPivot","pivotIndicators","addRegionPadding","pivotRowDimensions","pivotColumnDimensions","pivotTitle","pivotDiscreteLegend","pivotColorLegend","dimensionLinkage","roseParallelSpecPipeline","pivotAdapter"],"mappings":";AAwCA,MAAMA,eAAmC;IACvCC;IACAC;IACAC;IACAC;IACAC,aAAaC,OAAOC;IACpBC;IACAC;IACAC;IACAC;IACAC,mBAAmBC;IACnBR,aAAaS,gBAAgBC;IAC7BC;IACAC,QAAQ;QAAE,eAAe;IAAQ;IACjCC;IACAC;IACAC;IACAC;IACAC;CACD;AAED,MAAMC,oBAA4C;IAChDC;IACAC;IACAC;IACAC;IACAC;IACAC,gBAAgB;QACd5B;QACAC;QACAC;QACA2B;QACA1B;QACAC,aAAaC,OAAOC;QACpBC;QACAC;QACAC;QACAC;QACAO;QACAN,mBAAmBC;QACnBG;QACAC,QAAQ;YAAE,eAAe;QAAQ;QACjCE;QACAC;QACAC;QACAC;KACD;IACDS;IACAC;IACAC;IACA5B,aAAa6B,qBAAqBC;IAClCC;CACD;AAEM,MAAMC,2BAA2B;IAACC,aAAatC,cAAcuB;CAAmB"}
@@ -1,7 +1,8 @@
1
- import { annotationArea, annotationHorizontalLine, annotationPoint, annotationVerticalLine, backgroundColor, brush, color, colorAdapter, colorLegend, colorPointStyleFill, datasetPivot, datasetScatter, dimensionLinkage, discreteLegend, fontFamilyTheme, horizontalCrosshairLine, initPivot, initScatter, labelScatter, linearColor, linearRegressionLine, logisticRegressionLine, lowessRegressionLine, pivotAdapter, pivotAxisStyle, pivotColorLegend, pivotColumnDimensions, pivotDiscreteLegend, pivotGridStyle, pivotIndicators, pivotIndicatorsAsRow, pivotRowDimensions, pivotTitle, pointStateHover, pointStyle, polynomialRegressionLine, progressive, scatterSize, tooltipScatter, verticalCrosshairLine, xLinear, yLinear } from "../pipes/index.js";
1
+ import { animation, annotationArea, annotationHorizontalLine, annotationPoint, annotationVerticalLine, backgroundColor, brush, color, colorAdapter, colorLegend, colorPointStyleFill, datasetPivot, datasetScatter, dimensionLinkage, discreteLegend, fontFamilyTheme, horizontalCrosshairLine, initPivot, initScatter, labelScatter, linearColor, linearRegressionLine, logisticRegressionLine, lowessRegressionLine, pivotAdapter, pivotAxisStyle, pivotColorLegend, pivotColumnDimensions, pivotDiscreteLegend, pivotGridStyle, pivotIndicators, pivotIndicatorsAsRow, pivotRowDimensions, pivotTitle, pointStateHover, pointStyle, polynomialRegressionLine, progressive, scatterSize, tooltipScatter, verticalCrosshairLine, xLinear, yLinear } from "../pipes/index.js";
2
2
  const scatter = [
3
3
  fontFamilyTheme,
4
4
  initScatter,
5
+ animation,
5
6
  colorAdapter(color, linearColor),
6
7
  backgroundColor,
7
8
  datasetScatter,
@@ -34,6 +35,7 @@ const pivotScatter = [
34
35
  pivotIndicators([
35
36
  fontFamilyTheme,
36
37
  initScatter,
38
+ animation,
37
39
  colorAdapter(color, linearColor),
38
40
  backgroundColor,
39
41
  datasetScatter,
@@ -1 +1 @@
1
- {"version":3,"file":"pipeline/spec/chart/pipeline/scatter.js","sources":["../../../../../../src/pipeline/spec/chart/pipeline/scatter.ts"],"sourcesContent":["import type { PivotChartSpecPipeline, VChartSpecPipeline } from 'src/types'\nimport {\n yLinear,\n backgroundColor,\n tooltipScatter,\n discreteLegend,\n color,\n initPivot,\n datasetPivot,\n pivotDiscreteLegend,\n pivotIndicators,\n pivotAdapter,\n pivotIndicatorsAsRow,\n pivotGridStyle,\n pivotColumnDimensions,\n pivotRowDimensions,\n annotationPoint,\n annotationVerticalLine,\n annotationHorizontalLine,\n annotationArea,\n pointStyle,\n verticalCrosshairLine,\n xLinear,\n horizontalCrosshairLine,\n pointStateHover,\n initScatter,\n progressive,\n datasetScatter,\n linearColor,\n colorAdapter,\n colorPointStyleFill,\n colorLegend,\n pivotColorLegend,\n labelScatter,\n scatterSize,\n linearRegressionLine,\n lowessRegressionLine,\n polynomialRegressionLine,\n logisticRegressionLine,\n pivotAxisStyle,\n pivotTitle,\n dimensionLinkage,\n brush,\n fontFamilyTheme,\n} from '../pipes'\n\nconst scatter: VChartSpecPipeline = [\n fontFamilyTheme,\n initScatter,\n colorAdapter(color, linearColor),\n backgroundColor,\n datasetScatter,\n progressive,\n xLinear,\n yLinear,\n brush,\n scatterSize,\n labelScatter,\n tooltipScatter,\n colorAdapter(discreteLegend, colorLegend),\n verticalCrosshairLine,\n horizontalCrosshairLine,\n colorPointStyleFill(pointStyle),\n pointStateHover,\n annotationPoint,\n annotationVerticalLine,\n annotationHorizontalLine,\n annotationArea,\n linearRegressionLine,\n lowessRegressionLine,\n polynomialRegressionLine,\n logisticRegressionLine,\n]\n\nconst pivotScatter: PivotChartSpecPipeline = [\n initPivot,\n pivotGridStyle,\n pivotIndicatorsAsRow,\n datasetPivot,\n pivotIndicators([\n fontFamilyTheme,\n initScatter,\n colorAdapter(color, linearColor),\n backgroundColor,\n datasetScatter,\n progressive,\n xLinear,\n pivotAxisStyle(yLinear),\n brush,\n scatterSize,\n labelScatter,\n tooltipScatter,\n verticalCrosshairLine,\n horizontalCrosshairLine,\n colorPointStyleFill(pointStyle),\n pointStateHover,\n annotationPoint,\n annotationVerticalLine,\n annotationHorizontalLine,\n annotationArea,\n linearRegressionLine,\n lowessRegressionLine,\n polynomialRegressionLine,\n logisticRegressionLine,\n ]),\n pivotRowDimensions,\n pivotColumnDimensions,\n pivotTitle,\n colorAdapter(pivotDiscreteLegend, pivotColorLegend),\n dimensionLinkage,\n]\n\nexport const scatterSpecPipeline = [pivotAdapter(scatter, pivotScatter)]\n"],"names":["scatter","fontFamilyTheme","initScatter","colorAdapter","color","linearColor","backgroundColor","datasetScatter","progressive","xLinear","yLinear","brush","scatterSize","labelScatter","tooltipScatter","discreteLegend","colorLegend","verticalCrosshairLine","horizontalCrosshairLine","colorPointStyleFill","pointStyle","pointStateHover","annotationPoint","annotationVerticalLine","annotationHorizontalLine","annotationArea","linearRegressionLine","lowessRegressionLine","polynomialRegressionLine","logisticRegressionLine","pivotScatter","initPivot","pivotGridStyle","pivotIndicatorsAsRow","datasetPivot","pivotIndicators","pivotAxisStyle","pivotRowDimensions","pivotColumnDimensions","pivotTitle","pivotDiscreteLegend","pivotColorLegend","dimensionLinkage","scatterSpecPipeline","pivotAdapter"],"mappings":";AA8CA,MAAMA,UAA8B;IAClCC;IACAC;IACAC,aAAaC,OAAOC;IACpBC;IACAC;IACAC;IACAC;IACAC;IACAC;IACAC;IACAC;IACAC;IACAX,aAAaY,gBAAgBC;IAC7BC;IACAC;IACAC,oBAAoBC;IACpBC;IACAC;IACAC;IACAC;IACAC;IACAC;IACAC;IACAC;IACAC;CACD;AAED,MAAMC,eAAuC;IAC3CC;IACAC;IACAC;IACAC;IACAC,gBAAgB;QACdlC;QACAC;QACAC,aAAaC,OAAOC;QACpBC;QACAC;QACAC;QACAC;QACA2B,eAAe1B;QACfC;QACAC;QACAC;QACAC;QACAG;QACAC;QACAC,oBAAoBC;QACpBC;QACAC;QACAC;QACAC;QACAC;QACAC;QACAC;QACAC;QACAC;KACD;IACDQ;IACAC;IACAC;IACApC,aAAaqC,qBAAqBC;IAClCC;CACD;AAEM,MAAMC,sBAAsB;IAACC,aAAa5C,SAAS8B;CAAc"}
1
+ {"version":3,"file":"pipeline/spec/chart/pipeline/scatter.js","sources":["../../../../../../src/pipeline/spec/chart/pipeline/scatter.ts"],"sourcesContent":["import type { PivotChartSpecPipeline, VChartSpecPipeline } from 'src/types'\nimport {\n yLinear,\n backgroundColor,\n tooltipScatter,\n discreteLegend,\n color,\n initPivot,\n datasetPivot,\n pivotDiscreteLegend,\n pivotIndicators,\n pivotAdapter,\n pivotIndicatorsAsRow,\n pivotGridStyle,\n pivotColumnDimensions,\n pivotRowDimensions,\n annotationPoint,\n annotationVerticalLine,\n annotationHorizontalLine,\n annotationArea,\n pointStyle,\n verticalCrosshairLine,\n xLinear,\n horizontalCrosshairLine,\n pointStateHover,\n initScatter,\n animation,\n progressive,\n datasetScatter,\n linearColor,\n colorAdapter,\n colorPointStyleFill,\n colorLegend,\n pivotColorLegend,\n labelScatter,\n scatterSize,\n linearRegressionLine,\n lowessRegressionLine,\n polynomialRegressionLine,\n logisticRegressionLine,\n pivotAxisStyle,\n pivotTitle,\n dimensionLinkage,\n brush,\n fontFamilyTheme,\n} from '../pipes'\n\nconst scatter: VChartSpecPipeline = [\n fontFamilyTheme,\n initScatter,\n animation,\n colorAdapter(color, linearColor),\n backgroundColor,\n datasetScatter,\n progressive,\n xLinear,\n yLinear,\n brush,\n scatterSize,\n labelScatter,\n tooltipScatter,\n colorAdapter(discreteLegend, colorLegend),\n verticalCrosshairLine,\n horizontalCrosshairLine,\n colorPointStyleFill(pointStyle),\n pointStateHover,\n annotationPoint,\n annotationVerticalLine,\n annotationHorizontalLine,\n annotationArea,\n linearRegressionLine,\n lowessRegressionLine,\n polynomialRegressionLine,\n logisticRegressionLine,\n]\n\nconst pivotScatter: PivotChartSpecPipeline = [\n initPivot,\n pivotGridStyle,\n pivotIndicatorsAsRow,\n datasetPivot,\n pivotIndicators([\n fontFamilyTheme,\n initScatter,\n animation,\n colorAdapter(color, linearColor),\n backgroundColor,\n datasetScatter,\n progressive,\n xLinear,\n pivotAxisStyle(yLinear),\n brush,\n scatterSize,\n labelScatter,\n tooltipScatter,\n verticalCrosshairLine,\n horizontalCrosshairLine,\n colorPointStyleFill(pointStyle),\n pointStateHover,\n annotationPoint,\n annotationVerticalLine,\n annotationHorizontalLine,\n annotationArea,\n linearRegressionLine,\n lowessRegressionLine,\n polynomialRegressionLine,\n logisticRegressionLine,\n ]),\n pivotRowDimensions,\n pivotColumnDimensions,\n pivotTitle,\n colorAdapter(pivotDiscreteLegend, pivotColorLegend),\n dimensionLinkage,\n]\n\nexport const scatterSpecPipeline = [pivotAdapter(scatter, pivotScatter)]\n"],"names":["scatter","fontFamilyTheme","initScatter","animation","colorAdapter","color","linearColor","backgroundColor","datasetScatter","progressive","xLinear","yLinear","brush","scatterSize","labelScatter","tooltipScatter","discreteLegend","colorLegend","verticalCrosshairLine","horizontalCrosshairLine","colorPointStyleFill","pointStyle","pointStateHover","annotationPoint","annotationVerticalLine","annotationHorizontalLine","annotationArea","linearRegressionLine","lowessRegressionLine","polynomialRegressionLine","logisticRegressionLine","pivotScatter","initPivot","pivotGridStyle","pivotIndicatorsAsRow","datasetPivot","pivotIndicators","pivotAxisStyle","pivotRowDimensions","pivotColumnDimensions","pivotTitle","pivotDiscreteLegend","pivotColorLegend","dimensionLinkage","scatterSpecPipeline","pivotAdapter"],"mappings":";AA+CA,MAAMA,UAA8B;IAClCC;IACAC;IACAC;IACAC,aAAaC,OAAOC;IACpBC;IACAC;IACAC;IACAC;IACAC;IACAC;IACAC;IACAC;IACAC;IACAX,aAAaY,gBAAgBC;IAC7BC;IACAC;IACAC,oBAAoBC;IACpBC;IACAC;IACAC;IACAC;IACAC;IACAC;IACAC;IACAC;IACAC;CACD;AAED,MAAMC,eAAuC;IAC3CC;IACAC;IACAC;IACAC;IACAC,gBAAgB;QACdnC;QACAC;QACAC;QACAC,aAAaC,OAAOC;QACpBC;QACAC;QACAC;QACAC;QACA2B,eAAe1B;QACfC;QACAC;QACAC;QACAC;QACAG;QACAC;QACAC,oBAAoBC;QACpBC;QACAC;QACAC;QACAC;QACAC;QACAC;QACAC;QACAC;QACAC;KACD;IACDQ;IACAC;IACAC;IACApC,aAAaqC,qBAAqBC;IAClCC;CACD;AAEM,MAAMC,sBAAsB;IAACC,aAAa7C,SAAS+B;CAAc"}
@@ -0,0 +1,15 @@
1
+ import type { VChartSpecPipe } from '../../../../../types';
2
+ /**
3
+ * 图表动画总编排入口
4
+ * 动画类型:
5
+ * 1. appear: 入场动画
6
+ * 效果:图表首次渲染时执行对应图表族的入场效果。
7
+ * 编排逻辑:按 chartType 分流到柱图、折线/面积、饼图、散点图、雷达图各自的 appear 构建函数。
8
+ * 2. normal: 循环动画
9
+ * 效果:图表稳定展示后重复执行 loop/atmosphere 效果。
10
+ * 编排逻辑:appear 存在时 normal 延后一个 interval 启动, 避免首次入场和循环动画叠加。
11
+ * 3. enter/update/exit: 数据变更动画
12
+ * 效果:数据进入、更新和离场时执行对应阶段动画。
13
+ * 编排逻辑:enter/update 通常共用更新动画配置, exit 独立处理离场动画。
14
+ */
15
+ export declare const animation: VChartSpecPipe;
@@ -0,0 +1,94 @@
1
+ import { allowAnimation } from "./utils/index.js";
2
+ import { barAppear, barExit, barLoop, barUpdate } from "./bar.js";
3
+ import { lineOrAreaAppear, lineOrAreaExit, lineOrAreaLoop, lineOrAreaUpdate } from "./lineOrArea.js";
4
+ import { pieAppear, pieEnter, pieExit, pieLoop, pieUpdate } from "./pie.js";
5
+ import { radarAppear, radarExit, radarLoop, radarUpdate } from "./radar.js";
6
+ import { scatterAppear, scatterExit, scatterLoop, scatterUpdate } from "./scatter.js";
7
+ const barFamily = [
8
+ 'bar',
9
+ 'barPercent',
10
+ 'barParallel',
11
+ 'column',
12
+ 'columnPercent',
13
+ 'columnParallel'
14
+ ];
15
+ const pieFamily = [
16
+ 'pie',
17
+ 'donut',
18
+ 'rose',
19
+ 'roseParallel'
20
+ ];
21
+ const lineFamily = [
22
+ 'line',
23
+ 'area',
24
+ 'areaPercent'
25
+ ];
26
+ const animation = (spec, context)=>{
27
+ const { chartType, config } = context.advancedVSeed;
28
+ const nextSpec = {
29
+ ...spec
30
+ };
31
+ const animationChartType = chartType;
32
+ const chartConfig = config?.[animationChartType];
33
+ const animationConfig = chartConfig?.animation;
34
+ if (!animationConfig?.enable) {
35
+ nextSpec.animation = false;
36
+ return nextSpec;
37
+ }
38
+ const params = animationConfig.params;
39
+ const appear = params?.appear;
40
+ const ignoreFirstNormal = allowAnimation(appear);
41
+ let animationAppear = false;
42
+ let animationNormal = false;
43
+ let animationEnter = false;
44
+ let animationUpdate = false;
45
+ let animationExit = false;
46
+ if (barFamily.includes(chartType)) {
47
+ const barParams = params;
48
+ animationAppear = barAppear(barParams?.appear, chartType);
49
+ animationNormal = barLoop(barParams?.loop, ignoreFirstNormal, chartType, nextSpec);
50
+ animationEnter = barUpdate(barParams?.update, chartType, nextSpec);
51
+ animationUpdate = animationEnter;
52
+ animationExit = barExit(barParams?.update, chartType);
53
+ } else if (lineFamily.includes(chartType)) {
54
+ const lineParams = params;
55
+ animationAppear = lineOrAreaAppear(lineParams?.appear);
56
+ animationNormal = lineOrAreaLoop(lineParams?.loop, ignoreFirstNormal);
57
+ animationEnter = lineOrAreaUpdate(lineParams?.update);
58
+ animationUpdate = animationEnter;
59
+ animationExit = lineOrAreaExit(lineParams?.update);
60
+ } else if (pieFamily.includes(chartType)) {
61
+ const pieParams = params;
62
+ animationAppear = pieAppear(pieParams?.appear, chartType);
63
+ animationNormal = pieLoop(pieParams?.loop, ignoreFirstNormal);
64
+ animationEnter = pieEnter(pieParams?.update, pieParams?.loop);
65
+ animationUpdate = pieUpdate(pieParams?.update);
66
+ animationExit = pieExit();
67
+ } else if ('scatter' === chartType) {
68
+ const scatterParams = params;
69
+ animationAppear = scatterAppear(scatterParams?.appear);
70
+ animationNormal = scatterLoop(scatterParams?.loop, ignoreFirstNormal);
71
+ animationEnter = scatterUpdate(scatterParams?.update);
72
+ animationUpdate = animationEnter;
73
+ animationExit = scatterExit(scatterParams?.update);
74
+ } else if ('radar' === chartType) {
75
+ const radarParams = params;
76
+ animationAppear = radarAppear(radarParams?.appear);
77
+ animationNormal = radarLoop(radarParams?.loop, ignoreFirstNormal);
78
+ animationEnter = radarUpdate(radarParams?.update);
79
+ animationUpdate = animationEnter;
80
+ animationExit = radarExit(radarParams?.update);
81
+ }
82
+ return {
83
+ ...nextSpec,
84
+ animation: true,
85
+ animationAppear,
86
+ animationNormal,
87
+ animationEnter,
88
+ animationUpdate,
89
+ animationExit
90
+ };
91
+ };
92
+ export { animation };
93
+
94
+ //# sourceMappingURL=animation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pipeline/spec/chart/pipes/animation/animation.js","sources":["../../../../../../../src/pipeline/spec/chart/pipes/animation/animation.ts"],"sourcesContent":["import type { VChartSpecPipe } from 'src/types'\nimport type {\n BarLikeAnimation,\n ChartAnimationByChartType,\n LineAreaAnimation,\n PieLikeAnimation,\n RadarAnimation,\n ScatterAnimation,\n SupportedAnimationChartType,\n} from './types'\nimport { allowAnimation } from './utils'\nimport { barAppear, barExit, barLoop, barUpdate } from './bar'\nimport { lineOrAreaAppear, lineOrAreaExit, lineOrAreaLoop, lineOrAreaUpdate } from './lineOrArea'\nimport { pieAppear, pieEnter, pieExit, pieLoop, pieUpdate } from './pie'\nimport { radarAppear, radarExit, radarLoop, radarUpdate } from './radar'\nimport { scatterAppear, scatterExit, scatterLoop, scatterUpdate } from './scatter'\n\nconst barFamily = ['bar', 'barPercent', 'barParallel', 'column', 'columnPercent', 'columnParallel']\nconst pieFamily = ['pie', 'donut', 'rose', 'roseParallel']\nconst lineFamily = ['line', 'area', 'areaPercent']\n\n/**\n * 图表动画总编排入口\n * 动画类型:\n * 1. appear: 入场动画\n * 效果:图表首次渲染时执行对应图表族的入场效果。\n * 编排逻辑:按 chartType 分流到柱图、折线/面积、饼图、散点图、雷达图各自的 appear 构建函数。\n * 2. normal: 循环动画\n * 效果:图表稳定展示后重复执行 loop/atmosphere 效果。\n * 编排逻辑:appear 存在时 normal 延后一个 interval 启动, 避免首次入场和循环动画叠加。\n * 3. enter/update/exit: 数据变更动画\n * 效果:数据进入、更新和离场时执行对应阶段动画。\n * 编排逻辑:enter/update 通常共用更新动画配置, exit 独立处理离场动画。\n */\nexport const animation: VChartSpecPipe = (spec, context) => {\n const { chartType, config } = context.advancedVSeed\n const nextSpec = { ...spec }\n const animationChartType = chartType as SupportedAnimationChartType\n const chartConfig = config?.[animationChartType as keyof typeof config] as\n | { animation?: ChartAnimationByChartType<typeof animationChartType> }\n | undefined\n const animationConfig = chartConfig?.animation\n\n if (!animationConfig?.enable) {\n ;(nextSpec as any).animation = false\n return nextSpec\n }\n\n const params = animationConfig.params\n const appear = params?.appear\n const ignoreFirstNormal = allowAnimation(appear)\n let animationAppear: any = false\n let animationNormal: any = false\n let animationEnter: any = false\n let animationUpdate: any = false\n let animationExit: any = false\n\n if (barFamily.includes(chartType)) {\n const barParams = params as BarLikeAnimation['params']\n animationAppear = barAppear(barParams?.appear, chartType)\n animationNormal = barLoop(barParams?.loop, ignoreFirstNormal, chartType, nextSpec)\n animationEnter = barUpdate(barParams?.update, chartType, nextSpec)\n animationUpdate = animationEnter\n animationExit = barExit(barParams?.update, chartType)\n } else if (lineFamily.includes(chartType)) {\n const lineParams = params as LineAreaAnimation['params']\n animationAppear = lineOrAreaAppear(lineParams?.appear)\n animationNormal = lineOrAreaLoop(lineParams?.loop, ignoreFirstNormal)\n animationEnter = lineOrAreaUpdate(lineParams?.update)\n animationUpdate = animationEnter\n animationExit = lineOrAreaExit(lineParams?.update)\n } else if (pieFamily.includes(chartType)) {\n const pieParams = params as PieLikeAnimation['params']\n animationAppear = pieAppear(pieParams?.appear, chartType)\n animationNormal = pieLoop(pieParams?.loop, ignoreFirstNormal)\n animationEnter = pieEnter(pieParams?.update, pieParams?.loop)\n animationUpdate = pieUpdate(pieParams?.update)\n animationExit = pieExit()\n } else if (chartType === 'scatter') {\n const scatterParams = params as ScatterAnimation['params']\n animationAppear = scatterAppear(scatterParams?.appear)\n animationNormal = scatterLoop(scatterParams?.loop, ignoreFirstNormal)\n animationEnter = scatterUpdate(scatterParams?.update)\n animationUpdate = animationEnter\n animationExit = scatterExit(scatterParams?.update)\n } else if (chartType === 'radar') {\n const radarParams = params as RadarAnimation['params']\n animationAppear = radarAppear(radarParams?.appear)\n animationNormal = radarLoop(radarParams?.loop, ignoreFirstNormal)\n animationEnter = radarUpdate(radarParams?.update)\n animationUpdate = animationEnter\n animationExit = radarExit(radarParams?.update)\n }\n\n return {\n ...nextSpec,\n animation: true,\n animationAppear,\n animationNormal,\n animationEnter,\n animationUpdate,\n animationExit,\n }\n}\n"],"names":["barFamily","pieFamily","lineFamily","animation","spec","context","chartType","config","nextSpec","animationChartType","chartConfig","animationConfig","params","appear","ignoreFirstNormal","allowAnimation","animationAppear","animationNormal","animationEnter","animationUpdate","animationExit","barParams","barAppear","barLoop","barUpdate","barExit","lineParams","lineOrAreaAppear","lineOrAreaLoop","lineOrAreaUpdate","lineOrAreaExit","pieParams","pieAppear","pieLoop","pieEnter","pieUpdate","pieExit","scatterParams","scatterAppear","scatterLoop","scatterUpdate","scatterExit","radarParams","radarAppear","radarLoop","radarUpdate","radarExit"],"mappings":";;;;;;AAiBA,MAAMA,YAAY;IAAC;IAAO;IAAc;IAAe;IAAU;IAAiB;CAAiB;AACnG,MAAMC,YAAY;IAAC;IAAO;IAAS;IAAQ;CAAe;AAC1D,MAAMC,aAAa;IAAC;IAAQ;IAAQ;CAAc;AAe3C,MAAMC,YAA4B,CAACC,MAAMC;IAC9C,MAAM,EAAEC,SAAS,EAAEC,MAAM,EAAE,GAAGF,QAAQ,aAAa;IACnD,MAAMG,WAAW;QAAE,GAAGJ,IAAI;IAAC;IAC3B,MAAMK,qBAAqBH;IAC3B,MAAMI,cAAcH,QAAQ,CAACE,mBAA0C;IAGvE,MAAME,kBAAkBD,aAAa;IAErC,IAAI,CAACC,iBAAiB,QAAQ;QAC1BH,SAAiB,SAAS,GAAG;QAC/B,OAAOA;IACT;IAEA,MAAMI,SAASD,gBAAgB,MAAM;IACrC,MAAME,SAASD,QAAQ;IACvB,MAAME,oBAAoBC,eAAeF;IACzC,IAAIG,kBAAuB;IAC3B,IAAIC,kBAAuB;IAC3B,IAAIC,iBAAsB;IAC1B,IAAIC,kBAAuB;IAC3B,IAAIC,gBAAqB;IAEzB,IAAIpB,UAAU,QAAQ,CAACM,YAAY;QACjC,MAAMe,YAAYT;QAClBI,kBAAkBM,UAAUD,WAAW,QAAQf;QAC/CW,kBAAkBM,QAAQF,WAAW,MAAMP,mBAAmBR,WAAWE;QACzEU,iBAAiBM,UAAUH,WAAW,QAAQf,WAAWE;QACzDW,kBAAkBD;QAClBE,gBAAgBK,QAAQJ,WAAW,QAAQf;IAC7C,OAAO,IAAIJ,WAAW,QAAQ,CAACI,YAAY;QACzC,MAAMoB,aAAad;QACnBI,kBAAkBW,iBAAiBD,YAAY;QAC/CT,kBAAkBW,eAAeF,YAAY,MAAMZ;QACnDI,iBAAiBW,iBAAiBH,YAAY;QAC9CP,kBAAkBD;QAClBE,gBAAgBU,eAAeJ,YAAY;IAC7C,OAAO,IAAIzB,UAAU,QAAQ,CAACK,YAAY;QACxC,MAAMyB,YAAYnB;QAClBI,kBAAkBgB,UAAUD,WAAW,QAAQzB;QAC/CW,kBAAkBgB,QAAQF,WAAW,MAAMjB;QAC3CI,iBAAiBgB,SAASH,WAAW,QAAQA,WAAW;QACxDZ,kBAAkBgB,UAAUJ,WAAW;QACvCX,gBAAgBgB;IAClB,OAAO,IAAI9B,AAAc,cAAdA,WAAyB;QAClC,MAAM+B,gBAAgBzB;QACtBI,kBAAkBsB,cAAcD,eAAe;QAC/CpB,kBAAkBsB,YAAYF,eAAe,MAAMvB;QACnDI,iBAAiBsB,cAAcH,eAAe;QAC9ClB,kBAAkBD;QAClBE,gBAAgBqB,YAAYJ,eAAe;IAC7C,OAAO,IAAI/B,AAAc,YAAdA,WAAuB;QAChC,MAAMoC,cAAc9B;QACpBI,kBAAkB2B,YAAYD,aAAa;QAC3CzB,kBAAkB2B,UAAUF,aAAa,MAAM5B;QAC/CI,iBAAiB2B,YAAYH,aAAa;QAC1CvB,kBAAkBD;QAClBE,gBAAgB0B,UAAUJ,aAAa;IACzC;IAEA,OAAO;QACL,GAAGlC,QAAQ;QACX,WAAW;QACXQ;QACAC;QACAC;QACAC;QACAC;IACF;AACF"}
@@ -0,0 +1,77 @@
1
+ import type { BarLikeAppearConfig, BarLikeLoopConfig, BarLikeUpdateConfig } from './types';
2
+ /**
3
+ * 柱图/条形图 入场动画
4
+ * 动画类型:
5
+ * 1. growth: 生长动画
6
+ * 效果:横向柱使用宽度增长, 纵向柱使用高度增长。
7
+ * 编排逻辑:仅作用于 bar mark, 使用 appear 的 easing 和 duration。
8
+ * 2. load: 加载动画
9
+ * 效果:使用逐个淡入, 让柱子按图元顺序出现。
10
+ * 编排逻辑:仅作用于 bar mark, 使用 appear 的 easing 和 duration。
11
+ * 3. 其他: 默认入场动画
12
+ * 效果:不指定额外动画 type, 交给 VChart 默认入场补间。
13
+ * 编排逻辑:仅保留 easing 和 duration。
14
+ */
15
+ export declare const barAppear: (config: BarLikeAppearConfig | undefined, chartType: string) => false | {
16
+ bar: {
17
+ easing: string | undefined;
18
+ duration: number;
19
+ };
20
+ };
21
+ /**
22
+ * 柱图/条形图 更新动画
23
+ * 动画类型:
24
+ * 1. moveIn: 移入动画
25
+ * 效果:update 阶段沿柱图方向从画布外移入。
26
+ * 编排逻辑:复用移入方向, 但不再补随机 dataKey, 只作用于 bar mark。
27
+ * 2. 其他: 默认更新动画
28
+ * 效果:使用 VChart 默认更新补间。
29
+ * 编排逻辑:只保留 easing 和 duration, 不影响轴、标签等其他组件。
30
+ */
31
+ export declare const barUpdate: (config: BarLikeUpdateConfig | undefined, chartType: string, spec?: any) => false | {
32
+ bar: {
33
+ easing: string | undefined;
34
+ duration: number;
35
+ };
36
+ };
37
+ /**
38
+ * 柱图/条形图 循环动画
39
+ * 动画类型:
40
+ * 1. highLight: 分组高亮动画
41
+ * 效果:按类目分组依次切换高亮填充和描边。
42
+ * 编排逻辑:startTime = appear 存在 ? interval : 0, loopDuration = groupDuration * groupCount + stopDuration, 一轮结束后等待 interval。
43
+ * 2. growth/moveIn/load: mark 循环动画
44
+ * 效果:复用对应的柱图 mark 动画。
45
+ * 编排逻辑:先执行 loopDuration, 再等待 interval + atmosphereDuration 后重复。
46
+ * 3. atmosphere: 流光氛围动画
47
+ * 效果:使用 StreamLight 在柱子上形成流光。
48
+ * 编排逻辑:延迟 loopDuration 后启动, 持续 atmosphereDuration, 一轮结束后等待 interval。
49
+ */
50
+ export declare const barLoop: (config: BarLikeLoopConfig | undefined, ignoreFirstNormal: boolean, chartType: string, spec?: any) => false | {
51
+ bar: any[];
52
+ };
53
+ /**
54
+ * 柱图/条形图 离场动画
55
+ * 动画类型:
56
+ * 1. moveIn: 反向移出动画
57
+ * 效果:沿柱图进入方向反向移出画布。
58
+ * 编排逻辑:只有 update 效果为 moveIn 时才补充 moveOut。
59
+ * 2. 其他: 默认离场动画
60
+ * 效果:不配置自定义 exit。
61
+ * 编排逻辑:返回空配置, 由 VChart 默认行为处理。
62
+ */
63
+ export declare const barExit: (config: BarLikeUpdateConfig | undefined, chartType: string) => false | {
64
+ bar?: undefined;
65
+ } | {
66
+ bar: {
67
+ duration: number;
68
+ type: string;
69
+ options: {
70
+ direction: string;
71
+ orient: string;
72
+ point: (_datum: any, element: any, opt: any) => {
73
+ [x: string]: any;
74
+ };
75
+ };
76
+ };
77
+ };
@@ -0,0 +1,88 @@
1
+ import { StreamLight } from "@visactor/vchart";
2
+ import { VScreenAnimationType } from "./types.js";
3
+ import { allowAnimation, getPrimaryEffect, toMs } from "./utils/index.js";
4
+ import { fadeInBar, getGroupCountFromSpec, getLoopResult, groupHighLightBar, growBar, isHorizontalBar, moveInBar, moveOutBar, transform2VChartColor } from "./utils/bar.js";
5
+ const barAppear = (config, chartType)=>{
6
+ if (!allowAnimation(config)) return false;
7
+ const effect = getPrimaryEffect(config);
8
+ const configByType = effect === VScreenAnimationType.growth ? growBar(chartType) : effect === VScreenAnimationType.load ? fadeInBar() : {};
9
+ return {
10
+ bar: {
11
+ ...configByType,
12
+ easing: config?.ease,
13
+ duration: toMs(config?.duration ?? 1)
14
+ }
15
+ };
16
+ };
17
+ const barUpdate = (config, chartType, spec)=>{
18
+ if (!allowAnimation(config)) return false;
19
+ const effect = getPrimaryEffect(config);
20
+ const configByType = effect === VScreenAnimationType.moveIn ? moveInBar(chartType, spec, true) : {};
21
+ return {
22
+ bar: {
23
+ ...configByType,
24
+ easing: config?.ease,
25
+ duration: toMs(config?.duration ?? 1)
26
+ }
27
+ };
28
+ };
29
+ const barLoop = (config, ignoreFirstNormal, chartType, spec)=>{
30
+ if (!config?.enable) return false;
31
+ const interval = config.interval ?? 0;
32
+ const startTime = ignoreFirstNormal ? toMs(interval) : 0;
33
+ const loop = config.loop;
34
+ const atmosphere = config.atmosphere;
35
+ const loopEffect = getPrimaryEffect(loop);
36
+ const result = [];
37
+ let loopDuration = loopEffect === VScreenAnimationType.none ? 0 : 1;
38
+ const atmosphereDuration = loopEffect === VScreenAnimationType.none ? 2 : 1;
39
+ if (loopEffect === VScreenAnimationType.highLight && loop) {
40
+ const groupDuration = 0.7;
41
+ const stopDuration = 0.85;
42
+ loopDuration = groupDuration * getGroupCountFromSpec(spec).groupCount + stopDuration;
43
+ result.push(...groupHighLightBar(startTime, loop, loopDuration, interval, atmosphereDuration, isHorizontalBar(chartType), spec));
44
+ } else if (loop) result.push({
45
+ ...getLoopResult(loopEffect, chartType, spec),
46
+ startTime,
47
+ easing: loop.ease,
48
+ duration: toMs(loopDuration),
49
+ delayAfter: toMs(interval + atmosphereDuration),
50
+ loop: true,
51
+ controlOptions: {
52
+ immediatelyApply: false
53
+ }
54
+ });
55
+ if (atmosphere?.ease || atmosphere?.color) result.push({
56
+ loop: true,
57
+ startTime,
58
+ delay: toMs(loopDuration),
59
+ delayAfter: toMs(interval),
60
+ duration: toMs(atmosphereDuration),
61
+ easing: atmosphere.ease,
62
+ custom: StreamLight,
63
+ customParameters: {
64
+ isHorizontal: isHorizontalBar(chartType),
65
+ attribute: {
66
+ fill: transform2VChartColor(atmosphere.color),
67
+ blur: 0,
68
+ shadowColor: 'rgba(0,0,0,0)'
69
+ }
70
+ }
71
+ });
72
+ return result.length > 0 ? {
73
+ bar: result
74
+ } : false;
75
+ };
76
+ const barExit = (config, chartType)=>{
77
+ if (!allowAnimation(config)) return false;
78
+ if (getPrimaryEffect(config) !== VScreenAnimationType.moveIn) return {};
79
+ return {
80
+ bar: {
81
+ ...moveOutBar(chartType),
82
+ duration: 1000
83
+ }
84
+ };
85
+ };
86
+ export { barAppear, barExit, barLoop, barUpdate };
87
+
88
+ //# sourceMappingURL=bar.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pipeline/spec/chart/pipes/animation/bar.js","sources":["../../../../../../../src/pipeline/spec/chart/pipes/animation/bar.ts"],"sourcesContent":["import { StreamLight } from '@visactor/vchart'\nimport type { BarLikeAppearConfig, BarLikeLoopConfig, BarLikeUpdateConfig } from './types'\nimport { VScreenAnimationType } from './types'\nimport { allowAnimation, getPrimaryEffect, toMs } from './utils'\nimport {\n fadeInBar,\n getGroupCountFromSpec,\n getLoopResult,\n groupHighLightBar,\n growBar,\n isHorizontalBar,\n moveInBar,\n moveOutBar,\n transform2VChartColor,\n} from './utils/bar'\n\n/**\n * 柱图/条形图 入场动画\n * 动画类型:\n * 1. growth: 生长动画\n * 效果:横向柱使用宽度增长, 纵向柱使用高度增长。\n * 编排逻辑:仅作用于 bar mark, 使用 appear 的 easing 和 duration。\n * 2. load: 加载动画\n * 效果:使用逐个淡入, 让柱子按图元顺序出现。\n * 编排逻辑:仅作用于 bar mark, 使用 appear 的 easing 和 duration。\n * 3. 其他: 默认入场动画\n * 效果:不指定额外动画 type, 交给 VChart 默认入场补间。\n * 编排逻辑:仅保留 easing 和 duration。\n */\nexport const barAppear = (config: BarLikeAppearConfig | undefined, chartType: string) => {\n if (!allowAnimation(config)) return false\n const effect = getPrimaryEffect(config)\n const configByType =\n effect === VScreenAnimationType.growth\n ? growBar(chartType)\n : effect === VScreenAnimationType.load\n ? fadeInBar()\n : {}\n return { bar: { ...configByType, easing: config?.ease, duration: toMs(config?.duration ?? 1) } }\n}\n\n/**\n * 柱图/条形图 更新动画\n * 动画类型:\n * 1. moveIn: 移入动画\n * 效果:update 阶段沿柱图方向从画布外移入。\n * 编排逻辑:复用移入方向, 但不再补随机 dataKey, 只作用于 bar mark。\n * 2. 其他: 默认更新动画\n * 效果:使用 VChart 默认更新补间。\n * 编排逻辑:只保留 easing 和 duration, 不影响轴、标签等其他组件。\n */\nexport const barUpdate = (config: BarLikeUpdateConfig | undefined, chartType: string, spec?: any) => {\n if (!allowAnimation(config)) return false\n const effect = getPrimaryEffect(config)\n const configByType = effect === VScreenAnimationType.moveIn ? moveInBar(chartType, spec, true) : {}\n return { bar: { ...configByType, easing: config?.ease, duration: toMs(config?.duration ?? 1) } }\n}\n\n/**\n * 柱图/条形图 循环动画\n * 动画类型:\n * 1. highLight: 分组高亮动画\n * 效果:按类目分组依次切换高亮填充和描边。\n * 编排逻辑:startTime = appear 存在 ? interval : 0, loopDuration = groupDuration * groupCount + stopDuration, 一轮结束后等待 interval。\n * 2. growth/moveIn/load: mark 循环动画\n * 效果:复用对应的柱图 mark 动画。\n * 编排逻辑:先执行 loopDuration, 再等待 interval + atmosphereDuration 后重复。\n * 3. atmosphere: 流光氛围动画\n * 效果:使用 StreamLight 在柱子上形成流光。\n * 编排逻辑:延迟 loopDuration 后启动, 持续 atmosphereDuration, 一轮结束后等待 interval。\n */\nexport const barLoop = (\n config: BarLikeLoopConfig | undefined,\n ignoreFirstNormal: boolean,\n chartType: string,\n spec?: any,\n) => {\n if (!config?.enable) return false\n const interval = config.interval ?? 0\n const startTime = ignoreFirstNormal ? toMs(interval) : 0\n const loop = config.loop\n const atmosphere = config.atmosphere\n const loopEffect = getPrimaryEffect(loop)\n const result: any[] = []\n let loopDuration = loopEffect === VScreenAnimationType.none ? 0 : 1\n const atmosphereDuration = loopEffect === VScreenAnimationType.none ? 2 : 1\n\n if (loopEffect === VScreenAnimationType.highLight && loop) {\n const groupDuration = 0.7\n const stopDuration = 0.85\n loopDuration = groupDuration * getGroupCountFromSpec(spec).groupCount + stopDuration\n result.push(\n ...groupHighLightBar(\n startTime,\n loop,\n loopDuration,\n interval,\n atmosphereDuration,\n isHorizontalBar(chartType),\n spec,\n ),\n )\n } else if (loop) {\n result.push({\n ...getLoopResult(loopEffect, chartType, spec),\n startTime,\n easing: loop.ease,\n duration: toMs(loopDuration),\n delayAfter: toMs(interval + atmosphereDuration),\n loop: true,\n controlOptions: { immediatelyApply: false },\n })\n }\n\n if (atmosphere?.ease || atmosphere?.color) {\n result.push({\n loop: true,\n startTime,\n delay: toMs(loopDuration),\n delayAfter: toMs(interval),\n duration: toMs(atmosphereDuration),\n easing: atmosphere.ease,\n custom: StreamLight,\n customParameters: {\n isHorizontal: isHorizontalBar(chartType),\n attribute: {\n fill: transform2VChartColor(atmosphere.color),\n blur: 0,\n shadowColor: 'rgba(0,0,0,0)',\n },\n },\n })\n }\n\n return result.length > 0 ? { bar: result } : false\n}\n\n/**\n * 柱图/条形图 离场动画\n * 动画类型:\n * 1. moveIn: 反向移出动画\n * 效果:沿柱图进入方向反向移出画布。\n * 编排逻辑:只有 update 效果为 moveIn 时才补充 moveOut。\n * 2. 其他: 默认离场动画\n * 效果:不配置自定义 exit。\n * 编排逻辑:返回空配置, 由 VChart 默认行为处理。\n */\nexport const barExit = (config: BarLikeUpdateConfig | undefined, chartType: string) => {\n if (!allowAnimation(config)) return false\n if (getPrimaryEffect(config) !== VScreenAnimationType.moveIn) return {}\n return { bar: { ...moveOutBar(chartType), duration: 1000 } }\n}\n"],"names":["barAppear","config","chartType","allowAnimation","effect","getPrimaryEffect","configByType","VScreenAnimationType","growBar","fadeInBar","toMs","barUpdate","spec","moveInBar","barLoop","ignoreFirstNormal","interval","startTime","loop","atmosphere","loopEffect","result","loopDuration","atmosphereDuration","groupDuration","stopDuration","getGroupCountFromSpec","groupHighLightBar","isHorizontalBar","getLoopResult","StreamLight","transform2VChartColor","barExit","moveOutBar"],"mappings":";;;;AA6BO,MAAMA,YAAY,CAACC,QAAyCC;IACjE,IAAI,CAACC,eAAeF,SAAS,OAAO;IACpC,MAAMG,SAASC,iBAAiBJ;IAChC,MAAMK,eACJF,WAAWG,qBAAqB,MAAM,GAClCC,QAAQN,aACRE,WAAWG,qBAAqB,IAAI,GAClCE,cACA,CAAC;IACT,OAAO;QAAE,KAAK;YAAE,GAAGH,YAAY;YAAE,QAAQL,QAAQ;YAAM,UAAUS,KAAKT,QAAQ,YAAY;QAAG;IAAE;AACjG;AAYO,MAAMU,YAAY,CAACV,QAAyCC,WAAmBU;IACpF,IAAI,CAACT,eAAeF,SAAS,OAAO;IACpC,MAAMG,SAASC,iBAAiBJ;IAChC,MAAMK,eAAeF,WAAWG,qBAAqB,MAAM,GAAGM,UAAUX,WAAWU,MAAM,QAAQ,CAAC;IAClG,OAAO;QAAE,KAAK;YAAE,GAAGN,YAAY;YAAE,QAAQL,QAAQ;YAAM,UAAUS,KAAKT,QAAQ,YAAY;QAAG;IAAE;AACjG;AAeO,MAAMa,UAAU,CACrBb,QACAc,mBACAb,WACAU;IAEA,IAAI,CAACX,QAAQ,QAAQ,OAAO;IAC5B,MAAMe,WAAWf,OAAO,QAAQ,IAAI;IACpC,MAAMgB,YAAYF,oBAAoBL,KAAKM,YAAY;IACvD,MAAME,OAAOjB,OAAO,IAAI;IACxB,MAAMkB,aAAalB,OAAO,UAAU;IACpC,MAAMmB,aAAaf,iBAAiBa;IACpC,MAAMG,SAAgB,EAAE;IACxB,IAAIC,eAAeF,eAAeb,qBAAqB,IAAI,GAAG,IAAI;IAClE,MAAMgB,qBAAqBH,eAAeb,qBAAqB,IAAI,GAAG,IAAI;IAE1E,IAAIa,eAAeb,qBAAqB,SAAS,IAAIW,MAAM;QACzD,MAAMM,gBAAgB;QACtB,MAAMC,eAAe;QACrBH,eAAeE,gBAAgBE,sBAAsBd,MAAM,UAAU,GAAGa;QACxEJ,OAAO,IAAI,IACNM,kBACDV,WACAC,MACAI,cACAN,UACAO,oBACAK,gBAAgB1B,YAChBU;IAGN,OAAO,IAAIM,MACTG,OAAO,IAAI,CAAC;QACV,GAAGQ,cAAcT,YAAYlB,WAAWU,KAAK;QAC7CK;QACA,QAAQC,KAAK,IAAI;QACjB,UAAUR,KAAKY;QACf,YAAYZ,KAAKM,WAAWO;QAC5B,MAAM;QACN,gBAAgB;YAAE,kBAAkB;QAAM;IAC5C;IAGF,IAAIJ,YAAY,QAAQA,YAAY,OAClCE,OAAO,IAAI,CAAC;QACV,MAAM;QACNJ;QACA,OAAOP,KAAKY;QACZ,YAAYZ,KAAKM;QACjB,UAAUN,KAAKa;QACf,QAAQJ,WAAW,IAAI;QACvB,QAAQW;QACR,kBAAkB;YAChB,cAAcF,gBAAgB1B;YAC9B,WAAW;gBACT,MAAM6B,sBAAsBZ,WAAW,KAAK;gBAC5C,MAAM;gBACN,aAAa;YACf;QACF;IACF;IAGF,OAAOE,OAAO,MAAM,GAAG,IAAI;QAAE,KAAKA;IAAO,IAAI;AAC/C;AAYO,MAAMW,UAAU,CAAC/B,QAAyCC;IAC/D,IAAI,CAACC,eAAeF,SAAS,OAAO;IACpC,IAAII,iBAAiBJ,YAAYM,qBAAqB,MAAM,EAAE,OAAO,CAAC;IACtE,OAAO;QAAE,KAAK;YAAE,GAAG0B,WAAW/B,UAAU;YAAE,UAAU;QAAK;IAAE;AAC7D"}
@@ -0,0 +1,2 @@
1
+ export * from './animation';
2
+ export * from './types';
@@ -0,0 +1,2 @@
1
+ export * from "./animation.js";
2
+ export * from "./types.js";