@visactor/vseed 0.4.28 → 0.5.1

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 (234) hide show
  1. package/dist/cjs/index.cjs +2 -2
  2. package/dist/cjs/index.cjs.map +1 -1
  3. package/dist/esm/builder/builder/advanced/colorItems.d.ts +1 -0
  4. package/dist/esm/builder/builder/advanced/colorItems.js +21 -1
  5. package/dist/esm/builder/builder/advanced/colorItems.js.map +1 -1
  6. package/dist/esm/builder/builder/buildSpec.js.map +1 -1
  7. package/dist/esm/builder/builder/builder.d.ts +4 -0
  8. package/dist/esm/builder/builder/builder.js +2 -1
  9. package/dist/esm/builder/builder/builder.js.map +1 -1
  10. package/dist/esm/dataSelector/selector.js.map +1 -1
  11. package/dist/esm/pipeline/advanced/chart/pipes/config/column.js +2 -1
  12. package/dist/esm/pipeline/advanced/chart/pipes/config/column.js.map +1 -1
  13. package/dist/esm/pipeline/advanced/chart/pipes/config/line.js +2 -1
  14. package/dist/esm/pipeline/advanced/chart/pipes/config/line.js.map +1 -1
  15. package/dist/esm/pipeline/advanced/chart/pipes/config/pie.js +2 -1
  16. package/dist/esm/pipeline/advanced/chart/pipes/config/pie.js.map +1 -1
  17. package/dist/esm/pipeline/advanced/chart/pipes/config/scatter.js +2 -1
  18. package/dist/esm/pipeline/advanced/chart/pipes/config/scatter.js.map +1 -1
  19. package/dist/esm/pipeline/spec/chart/pipeline/area.js +3 -1
  20. package/dist/esm/pipeline/spec/chart/pipeline/area.js.map +1 -1
  21. package/dist/esm/pipeline/spec/chart/pipeline/areaPercent.js +3 -1
  22. package/dist/esm/pipeline/spec/chart/pipeline/areaPercent.js.map +1 -1
  23. package/dist/esm/pipeline/spec/chart/pipeline/bar.js +3 -1
  24. package/dist/esm/pipeline/spec/chart/pipeline/bar.js.map +1 -1
  25. package/dist/esm/pipeline/spec/chart/pipeline/barParallel.js +3 -1
  26. package/dist/esm/pipeline/spec/chart/pipeline/barParallel.js.map +1 -1
  27. package/dist/esm/pipeline/spec/chart/pipeline/barPercent.js +3 -1
  28. package/dist/esm/pipeline/spec/chart/pipeline/barPercent.js.map +1 -1
  29. package/dist/esm/pipeline/spec/chart/pipeline/column.js +3 -1
  30. package/dist/esm/pipeline/spec/chart/pipeline/column.js.map +1 -1
  31. package/dist/esm/pipeline/spec/chart/pipeline/columnParallel.js +3 -1
  32. package/dist/esm/pipeline/spec/chart/pipeline/columnParallel.js.map +1 -1
  33. package/dist/esm/pipeline/spec/chart/pipeline/columnPercent.js +3 -1
  34. package/dist/esm/pipeline/spec/chart/pipeline/columnPercent.js.map +1 -1
  35. package/dist/esm/pipeline/spec/chart/pipeline/donut.js +3 -1
  36. package/dist/esm/pipeline/spec/chart/pipeline/donut.js.map +1 -1
  37. package/dist/esm/pipeline/spec/chart/pipeline/line.js +3 -1
  38. package/dist/esm/pipeline/spec/chart/pipeline/line.js.map +1 -1
  39. package/dist/esm/pipeline/spec/chart/pipeline/pie.js +3 -1
  40. package/dist/esm/pipeline/spec/chart/pipeline/pie.js.map +1 -1
  41. package/dist/esm/pipeline/spec/chart/pipeline/radar.js +3 -1
  42. package/dist/esm/pipeline/spec/chart/pipeline/radar.js.map +1 -1
  43. package/dist/esm/pipeline/spec/chart/pipeline/rose.js +3 -1
  44. package/dist/esm/pipeline/spec/chart/pipeline/rose.js.map +1 -1
  45. package/dist/esm/pipeline/spec/chart/pipeline/roseParallel.js +3 -1
  46. package/dist/esm/pipeline/spec/chart/pipeline/roseParallel.js.map +1 -1
  47. package/dist/esm/pipeline/spec/chart/pipeline/scatter.js +3 -1
  48. package/dist/esm/pipeline/spec/chart/pipeline/scatter.js.map +1 -1
  49. package/dist/esm/pipeline/spec/chart/pipes/animation/animation.d.ts +15 -0
  50. package/dist/esm/pipeline/spec/chart/pipes/animation/animation.js +94 -0
  51. package/dist/esm/pipeline/spec/chart/pipes/animation/animation.js.map +1 -0
  52. package/dist/esm/pipeline/spec/chart/pipes/animation/bar.d.ts +77 -0
  53. package/dist/esm/pipeline/spec/chart/pipes/animation/bar.js +88 -0
  54. package/dist/esm/pipeline/spec/chart/pipes/animation/bar.js.map +1 -0
  55. package/dist/esm/pipeline/spec/chart/pipes/animation/index.d.ts +2 -0
  56. package/dist/esm/pipeline/spec/chart/pipes/animation/index.js +2 -0
  57. package/dist/esm/pipeline/spec/chart/pipes/animation/lineOrArea.d.ts +254 -0
  58. package/dist/esm/pipeline/spec/chart/pipes/animation/lineOrArea.js +138 -0
  59. package/dist/esm/pipeline/spec/chart/pipes/animation/lineOrArea.js.map +1 -0
  60. package/dist/esm/pipeline/spec/chart/pipes/animation/pie.d.ts +71 -0
  61. package/dist/esm/pipeline/spec/chart/pipes/animation/pie.js +176 -0
  62. package/dist/esm/pipeline/spec/chart/pipes/animation/pie.js.map +1 -0
  63. package/dist/esm/pipeline/spec/chart/pipes/animation/radar.d.ts +131 -0
  64. package/dist/esm/pipeline/spec/chart/pipes/animation/radar.js +46 -0
  65. package/dist/esm/pipeline/spec/chart/pipes/animation/radar.js.map +1 -0
  66. package/dist/esm/pipeline/spec/chart/pipes/animation/scatter.d.ts +102 -0
  67. package/dist/esm/pipeline/spec/chart/pipes/animation/scatter.js +57 -0
  68. package/dist/esm/pipeline/spec/chart/pipes/animation/scatter.js.map +1 -0
  69. package/dist/esm/pipeline/spec/chart/pipes/animation/types.d.ts +130 -0
  70. package/dist/esm/pipeline/spec/chart/pipes/animation/types.js +19 -0
  71. package/dist/esm/pipeline/spec/chart/pipes/animation/types.js.map +1 -0
  72. package/dist/esm/pipeline/spec/chart/pipes/animation/utils/bar.d.ts +11 -0
  73. package/dist/esm/pipeline/spec/chart/pipes/animation/utils/bar.js +13 -0
  74. package/dist/esm/pipeline/spec/chart/pipes/animation/utils/bar.js.map +1 -0
  75. package/dist/esm/pipeline/spec/chart/pipes/animation/utils/barColor.d.ts +52 -0
  76. package/dist/esm/pipeline/spec/chart/pipes/animation/utils/barColor.js +51 -0
  77. package/dist/esm/pipeline/spec/chart/pipes/animation/utils/barColor.js.map +1 -0
  78. package/dist/esm/pipeline/spec/chart/pipes/animation/utils/barGroup.d.ts +102 -0
  79. package/dist/esm/pipeline/spec/chart/pipes/animation/utils/barGroup.js +84 -0
  80. package/dist/esm/pipeline/spec/chart/pipes/animation/utils/barGroup.js.map +1 -0
  81. package/dist/esm/pipeline/spec/chart/pipes/animation/utils/barMotion.d.ts +66 -0
  82. package/dist/esm/pipeline/spec/chart/pipes/animation/utils/barMotion.js +72 -0
  83. package/dist/esm/pipeline/spec/chart/pipes/animation/utils/barMotion.js.map +1 -0
  84. package/dist/esm/pipeline/spec/chart/pipes/animation/utils/index.d.ts +86 -0
  85. package/dist/esm/pipeline/spec/chart/pipes/animation/utils/index.js +60 -0
  86. package/dist/esm/pipeline/spec/chart/pipes/animation/utils/index.js.map +1 -0
  87. package/dist/esm/pipeline/spec/chart/pipes/animation/utils/lineOrArea.d.ts +29 -0
  88. package/dist/esm/pipeline/spec/chart/pipes/animation/utils/lineOrArea.js +20 -0
  89. package/dist/esm/pipeline/spec/chart/pipes/animation/utils/lineOrArea.js.map +1 -0
  90. package/dist/esm/pipeline/spec/chart/pipes/animation/utils/pie.d.ts +14 -0
  91. package/dist/esm/pipeline/spec/chart/pipes/animation/utils/pie.js +9 -0
  92. package/dist/esm/pipeline/spec/chart/pipes/animation/utils/pie.js.map +1 -0
  93. package/dist/esm/pipeline/spec/chart/pipes/animation/utils/scatter.d.ts +69 -0
  94. package/dist/esm/pipeline/spec/chart/pipes/animation/utils/scatter.js +59 -0
  95. package/dist/esm/pipeline/spec/chart/pipes/animation/utils/scatter.js.map +1 -0
  96. package/dist/esm/pipeline/spec/chart/pipes/annotation/annotationArea.js +2 -2
  97. package/dist/esm/pipeline/spec/chart/pipes/annotation/annotationArea.js.map +1 -1
  98. package/dist/esm/pipeline/spec/chart/pipes/annotation/annotationAreaBand.js +2 -2
  99. package/dist/esm/pipeline/spec/chart/pipes/annotation/annotationAreaBand.js.map +1 -1
  100. package/dist/esm/pipeline/spec/chart/pipes/annotation/annotationDifferenceLine.js +63 -18
  101. package/dist/esm/pipeline/spec/chart/pipes/annotation/annotationDifferenceLine.js.map +1 -1
  102. package/dist/esm/pipeline/spec/chart/pipes/annotation/annotationHorizontalLine.js +7 -13
  103. package/dist/esm/pipeline/spec/chart/pipes/annotation/annotationHorizontalLine.js.map +1 -1
  104. package/dist/esm/pipeline/spec/chart/pipes/annotation/annotationPointCommon.js +2 -2
  105. package/dist/esm/pipeline/spec/chart/pipes/annotation/annotationPointCommon.js.map +1 -1
  106. package/dist/esm/pipeline/spec/chart/pipes/annotation/annotationVerticalLine.js +9 -15
  107. package/dist/esm/pipeline/spec/chart/pipes/annotation/annotationVerticalLine.js.map +1 -1
  108. package/dist/esm/pipeline/spec/chart/pipes/annotation/utils.d.ts +2 -0
  109. package/dist/esm/pipeline/spec/chart/pipes/annotation/utils.js +15 -1
  110. package/dist/esm/pipeline/spec/chart/pipes/annotation/utils.js.map +1 -1
  111. package/dist/esm/pipeline/spec/chart/pipes/index.d.ts +1 -0
  112. package/dist/esm/pipeline/spec/chart/pipes/index.js +1 -0
  113. package/dist/esm/pipeline/utils/sandbox/execute.js.map +1 -1
  114. package/dist/esm/theme/tokenTheme.d.ts +6 -0
  115. package/dist/esm/theme/tokenTheme.js +36 -7
  116. package/dist/esm/theme/tokenTheme.js.map +1 -1
  117. package/dist/esm/types/builder/builder.d.ts +1 -0
  118. package/dist/esm/types/builder/builder.js.map +1 -1
  119. package/dist/esm/types/chartType/area/area.d.ts +6 -1
  120. package/dist/esm/types/chartType/area/zArea.d.ts +50 -0
  121. package/dist/esm/types/chartType/area/zArea.js +2 -1
  122. package/dist/esm/types/chartType/area/zArea.js.map +1 -1
  123. package/dist/esm/types/chartType/areaPercent/areaPercent.d.ts +6 -1
  124. package/dist/esm/types/chartType/areaPercent/zAreaPercent.d.ts +40 -0
  125. package/dist/esm/types/chartType/areaPercent/zAreaPercent.js +2 -1
  126. package/dist/esm/types/chartType/areaPercent/zAreaPercent.js.map +1 -1
  127. package/dist/esm/types/chartType/bar/bar.d.ts +6 -1
  128. package/dist/esm/types/chartType/bar/zBar.d.ts +50 -0
  129. package/dist/esm/types/chartType/bar/zBar.js +2 -1
  130. package/dist/esm/types/chartType/bar/zBar.js.map +1 -1
  131. package/dist/esm/types/chartType/barParallel/barParallel.d.ts +6 -1
  132. package/dist/esm/types/chartType/barParallel/zBarParallel.d.ts +50 -0
  133. package/dist/esm/types/chartType/barParallel/zBarParallel.js +2 -1
  134. package/dist/esm/types/chartType/barParallel/zBarParallel.js.map +1 -1
  135. package/dist/esm/types/chartType/barPercent/barPercent.d.ts +6 -1
  136. package/dist/esm/types/chartType/barPercent/zBarPercent.d.ts +40 -0
  137. package/dist/esm/types/chartType/barPercent/zBarPercent.js +2 -1
  138. package/dist/esm/types/chartType/barPercent/zBarPercent.js.map +1 -1
  139. package/dist/esm/types/chartType/column/column.d.ts +6 -1
  140. package/dist/esm/types/chartType/column/zColumn.d.ts +50 -0
  141. package/dist/esm/types/chartType/column/zColumn.js +2 -1
  142. package/dist/esm/types/chartType/column/zColumn.js.map +1 -1
  143. package/dist/esm/types/chartType/columnParallel/columnParallel.d.ts +6 -1
  144. package/dist/esm/types/chartType/columnParallel/zColumnParallel.d.ts +50 -0
  145. package/dist/esm/types/chartType/columnParallel/zColumnParallel.js +2 -1
  146. package/dist/esm/types/chartType/columnParallel/zColumnParallel.js.map +1 -1
  147. package/dist/esm/types/chartType/columnPercent/columnPercent.d.ts +6 -1
  148. package/dist/esm/types/chartType/columnPercent/zColumnPercent.d.ts +40 -0
  149. package/dist/esm/types/chartType/columnPercent/zColumnPercent.js +2 -1
  150. package/dist/esm/types/chartType/columnPercent/zColumnPercent.js.map +1 -1
  151. package/dist/esm/types/chartType/donut/donut.d.ts +6 -1
  152. package/dist/esm/types/chartType/donut/zDonut.d.ts +40 -0
  153. package/dist/esm/types/chartType/donut/zDonut.js +2 -1
  154. package/dist/esm/types/chartType/donut/zDonut.js.map +1 -1
  155. package/dist/esm/types/chartType/line/line.d.ts +6 -1
  156. package/dist/esm/types/chartType/line/zLine.d.ts +50 -0
  157. package/dist/esm/types/chartType/line/zLine.js +2 -1
  158. package/dist/esm/types/chartType/line/zLine.js.map +1 -1
  159. package/dist/esm/types/chartType/pie/pie.d.ts +6 -1
  160. package/dist/esm/types/chartType/pie/zPie.d.ts +40 -0
  161. package/dist/esm/types/chartType/pie/zPie.js +2 -1
  162. package/dist/esm/types/chartType/pie/zPie.js.map +1 -1
  163. package/dist/esm/types/chartType/radar/radar.d.ts +6 -1
  164. package/dist/esm/types/chartType/radar/zRadar.d.ts +40 -0
  165. package/dist/esm/types/chartType/radar/zRadar.js +2 -1
  166. package/dist/esm/types/chartType/radar/zRadar.js.map +1 -1
  167. package/dist/esm/types/chartType/rose/rose.d.ts +6 -1
  168. package/dist/esm/types/chartType/rose/zRose.d.ts +40 -0
  169. package/dist/esm/types/chartType/rose/zRose.js +2 -1
  170. package/dist/esm/types/chartType/rose/zRose.js.map +1 -1
  171. package/dist/esm/types/chartType/roseParallel/roseParallel.d.ts +6 -1
  172. package/dist/esm/types/chartType/roseParallel/zRoseParallel.d.ts +40 -0
  173. package/dist/esm/types/chartType/roseParallel/zRoseParallel.js +2 -1
  174. package/dist/esm/types/chartType/roseParallel/zRoseParallel.js.map +1 -1
  175. package/dist/esm/types/chartType/scatter/scatter.d.ts +6 -1
  176. package/dist/esm/types/chartType/scatter/zScatter.d.ts +40 -0
  177. package/dist/esm/types/chartType/scatter/zScatter.js +2 -1
  178. package/dist/esm/types/chartType/scatter/zScatter.js.map +1 -1
  179. package/dist/esm/types/properties/annotation/annotation.d.ts +10 -0
  180. package/dist/esm/types/properties/annotation/annotationDifferenceLine.d.ts +4 -0
  181. package/dist/esm/types/properties/annotation/zAnnotationDifferenceLine.d.ts +5 -0
  182. package/dist/esm/types/properties/annotation/zAnnotationDifferenceLine.js +6 -1
  183. package/dist/esm/types/properties/annotation/zAnnotationDifferenceLine.js.map +1 -1
  184. package/dist/esm/types/properties/config/animation/animation.d.ts +72 -0
  185. package/dist/esm/types/properties/config/animation/animation.js +0 -0
  186. package/dist/esm/types/properties/config/animation/animationAtmosphere.d.ts +15 -0
  187. package/dist/esm/types/properties/config/animation/animationAtmosphere.js +0 -0
  188. package/dist/esm/types/properties/config/animation/animationConfig.d.ts +2 -0
  189. package/dist/esm/types/properties/config/animation/animationConfig.js +0 -0
  190. package/dist/esm/types/properties/config/animation/animationEffect.d.ts +72 -0
  191. package/dist/esm/types/properties/config/animation/animationEffect.js +0 -0
  192. package/dist/esm/types/properties/config/animation/animationLoop.d.ts +49 -0
  193. package/dist/esm/types/properties/config/animation/animationLoop.js +0 -0
  194. package/dist/esm/types/properties/config/animation/index.d.ts +6 -0
  195. package/dist/esm/types/properties/config/animation/index.js +1 -0
  196. package/dist/esm/types/properties/config/animation/zAnimation.d.ts +201 -0
  197. package/dist/esm/types/properties/config/animation/zAnimation.js +114 -0
  198. package/dist/esm/types/properties/config/animation/zAnimation.js.map +1 -0
  199. package/dist/esm/types/properties/config/annotation/annotation.d.ts +32 -5
  200. package/dist/esm/types/properties/config/annotation/zAnnotation.d.ts +30 -4
  201. package/dist/esm/types/properties/config/annotation/zAnnotation.js +11 -1
  202. package/dist/esm/types/properties/config/annotation/zAnnotation.js.map +1 -1
  203. package/dist/esm/types/properties/config/area.d.ts +110 -4
  204. package/dist/esm/types/properties/config/area.js +3 -1
  205. package/dist/esm/types/properties/config/area.js.map +1 -1
  206. package/dist/esm/types/properties/config/bar.d.ts +165 -6
  207. package/dist/esm/types/properties/config/bar.js +3 -1
  208. package/dist/esm/types/properties/config/bar.js.map +1 -1
  209. package/dist/esm/types/properties/config/boxplot.d.ts +15 -2
  210. package/dist/esm/types/properties/config/column.d.ts +165 -6
  211. package/dist/esm/types/properties/config/column.js +3 -1
  212. package/dist/esm/types/properties/config/column.js.map +1 -1
  213. package/dist/esm/types/properties/config/config.d.ts +1125 -38
  214. package/dist/esm/types/properties/config/dualAxis.d.ts +15 -2
  215. package/dist/esm/types/properties/config/histogram.d.ts +15 -2
  216. package/dist/esm/types/properties/config/index.d.ts +1 -0
  217. package/dist/esm/types/properties/config/index.js +1 -0
  218. package/dist/esm/types/properties/config/line.d.ts +55 -2
  219. package/dist/esm/types/properties/config/line.js +3 -1
  220. package/dist/esm/types/properties/config/line.js.map +1 -1
  221. package/dist/esm/types/properties/config/pie.d.ts +120 -0
  222. package/dist/esm/types/properties/config/pie.js +6 -2
  223. package/dist/esm/types/properties/config/pie.js.map +1 -1
  224. package/dist/esm/types/properties/config/race.d.ts +330 -12
  225. package/dist/esm/types/properties/config/rose.d.ts +80 -0
  226. package/dist/esm/types/properties/config/rose.js +3 -1
  227. package/dist/esm/types/properties/config/rose.js.map +1 -1
  228. package/dist/esm/types/properties/config/scatter.d.ts +55 -2
  229. package/dist/esm/types/properties/config/scatter.js +3 -1
  230. package/dist/esm/types/properties/config/scatter.js.map +1 -1
  231. package/dist/esm/types/properties/theme/customTheme.d.ts +2250 -76
  232. package/dist/umd/index.js +5152 -689
  233. package/dist/umd/index.js.map +1 -1
  234. package/package.json +4 -9
@@ -487,6 +487,46 @@ export declare const zColumn: z.ZodObject<{
487
487
  lineWidth: z.ZodOptional<z.ZodNumber>;
488
488
  }, z.core.$strip>>;
489
489
  }, z.core.$strip>>>;
490
+ animation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
491
+ enable: z.ZodOptional<z.ZodBoolean>;
492
+ params: z.ZodOptional<z.ZodObject<{
493
+ appear: z.ZodOptional<z.ZodObject<{
494
+ enable: z.ZodOptional<z.ZodBoolean>;
495
+ effects: z.ZodOptional<z.ZodArray<z.ZodEnum<{
496
+ [x: string]: string;
497
+ }>>>;
498
+ ease: z.ZodOptional<z.ZodString>;
499
+ duration: z.ZodOptional<z.ZodNumber>;
500
+ color: z.ZodOptional<z.ZodString>;
501
+ }, z.core.$strip>>;
502
+ update: z.ZodOptional<z.ZodObject<{
503
+ enable: z.ZodOptional<z.ZodBoolean>;
504
+ effects: z.ZodOptional<z.ZodArray<z.ZodEnum<{
505
+ [x: string]: string;
506
+ }>>>;
507
+ ease: z.ZodOptional<z.ZodString>;
508
+ duration: z.ZodOptional<z.ZodNumber>;
509
+ color: z.ZodOptional<z.ZodString>;
510
+ }, z.core.$strip>>;
511
+ loop: z.ZodOptional<z.ZodObject<{
512
+ atmosphere?: z.ZodOptional<z.ZodObject<{
513
+ ease: z.ZodOptional<z.ZodString>;
514
+ color: z.ZodOptional<z.ZodString>;
515
+ }, z.core.$strip>> | undefined;
516
+ loop?: z.ZodOptional<z.ZodObject<{
517
+ enable: z.ZodOptional<z.ZodBoolean>;
518
+ effects: z.ZodOptional<z.ZodArray<z.ZodEnum<{
519
+ [x: string]: string;
520
+ }>>>;
521
+ ease: z.ZodOptional<z.ZodString>;
522
+ duration: z.ZodOptional<z.ZodNumber>;
523
+ color: z.ZodOptional<z.ZodString>;
524
+ }, z.core.$strip>> | undefined;
525
+ enable: z.ZodOptional<z.ZodBoolean>;
526
+ interval: z.ZodOptional<z.ZodNumber>;
527
+ }, z.core.$strip>>;
528
+ }, z.core.$strip>>;
529
+ }, z.core.$strip>>>;
490
530
  xAxis: z.ZodOptional<z.ZodNullable<z.ZodObject<{
491
531
  visible: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
492
532
  labelAutoHide: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
@@ -1882,6 +1922,11 @@ export declare const zColumn: z.ZodObject<{
1882
1922
  textColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1883
1923
  textBackgroundColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1884
1924
  lineColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1925
+ lineStyle: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1926
+ solid: "solid";
1927
+ dashed: "dashed";
1928
+ dotted: "dotted";
1929
+ }>>>;
1885
1930
  }, z.core.$strip>>, z.ZodObject<{
1886
1931
  start: z.ZodObject<{
1887
1932
  selector: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>, z.ZodObject<{
@@ -2033,6 +2078,11 @@ export declare const zColumn: z.ZodObject<{
2033
2078
  textColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2034
2079
  textBackgroundColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2035
2080
  lineColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2081
+ lineStyle: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
2082
+ solid: "solid";
2083
+ dashed: "dashed";
2084
+ dotted: "dotted";
2085
+ }>>>;
2036
2086
  }, z.core.$strip>]>>>;
2037
2087
  polynomialRegressionLine: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodArray<z.ZodObject<{
2038
2088
  enable: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
@@ -1,6 +1,6 @@
1
1
  import { z } from "zod";
2
2
  import { zLocale } from "../../i18n/index.js";
3
- import { zAnnotationArea, zAnnotationDifferenceLine, zAnnotationHorizontalLine, zAnnotationPoint, zAnnotationVerticalLine, zBackgroundColor, zBarMaxWidth, zBarStyle, zBrush, zColor, zCrosshairRect, zDataset, zDimensionLinkage, zDimensions, zEncoding, zLabel, zLegend, zMeasures, zPage, zPlayer, zPolynomialRegressionLine, zRegionPadding, zSort, zSortLegend, zStackCornerRadius, zTheme, zTooltip, zXBandAxis, zYLinearAxis } from "../../properties/index.js";
3
+ import { zAnnotationArea, zAnnotationDifferenceLine, zAnnotationHorizontalLine, zAnnotationPoint, zAnnotationVerticalLine, zBackgroundColor, zBarLikeAnimation, zBarMaxWidth, zBarStyle, zBrush, zColor, zCrosshairRect, zDataset, zDimensionLinkage, zDimensions, zEncoding, zLabel, zLegend, zMeasures, zPage, zPlayer, zPolynomialRegressionLine, zRegionPadding, zSort, zSortLegend, zStackCornerRadius, zTheme, zTooltip, zXBandAxis, zYLinearAxis } from "../../properties/index.js";
4
4
  const zColumn = z.object({
5
5
  chartType: z.literal('column'),
6
6
  dataset: zDataset.nullish(),
@@ -16,6 +16,7 @@ const zColumn = z.object({
16
16
  regionPadding: zRegionPadding.nullish(),
17
17
  tooltip: zTooltip.nullish(),
18
18
  brush: zBrush.nullish(),
19
+ animation: zBarLikeAnimation.nullish(),
19
20
  xAxis: zXBandAxis.nullish(),
20
21
  yAxis: zYLinearAxis.nullish(),
21
22
  sort: zSort.nullish(),
@@ -1 +1 @@
1
- {"version":3,"file":"types/chartType/column/zColumn.js","sources":["../../../../../src/types/chartType/column/zColumn.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zLocale } from '../../i18n'\nimport {\n zAnnotationArea,\n zAnnotationDifferenceLine,\n zAnnotationHorizontalLine,\n zAnnotationPoint,\n zAnnotationVerticalLine,\n zBackgroundColor,\n zBarMaxWidth,\n zBarStyle,\n zColor,\n zCrosshairRect,\n zDataset,\n zDimensionLinkage,\n zDimensions,\n zEncoding,\n zLabel,\n zLegend,\n zMeasures,\n zPolynomialRegressionLine,\n zRegionPadding,\n zSort,\n zSortLegend,\n zStackCornerRadius,\n zTheme,\n zTooltip,\n zBrush,\n zXBandAxis,\n zYLinearAxis,\n zPage,\n zPlayer,\n} from '../../properties'\n\nexport const zColumn = z.object({\n chartType: z.literal('column'),\n dataset: zDataset.nullish(),\n encoding: zEncoding.nullish(),\n dimensions: zDimensions.nullish(),\n measures: zMeasures.nullish(),\n page: zPage.nullish(),\n player: zPlayer.nullish(),\n\n backgroundColor: zBackgroundColor.nullish(),\n color: zColor.nullish(),\n label: zLabel.nullish(),\n legend: zLegend.nullish(),\n regionPadding: zRegionPadding.nullish(),\n tooltip: zTooltip.nullish(),\n brush: zBrush.nullish(),\n xAxis: zXBandAxis.nullish(),\n yAxis: zYLinearAxis.nullish(),\n sort: zSort.nullish(),\n sortLegent: zSortLegend.nullish(),\n crosshairRect: zCrosshairRect.nullish(),\n stackCornerRadius: zStackCornerRadius.nullish(),\n barMaxWidth: zBarMaxWidth.nullish(),\n theme: zTheme.nullish(),\n barStyle: z.array(zBarStyle).or(zBarStyle).nullish(),\n annotationPoint: z.array(zAnnotationPoint).or(zAnnotationPoint).nullish(),\n annotationVerticalLine: z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).nullish(),\n annotationHorizontalLine: z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).nullish(),\n annotationArea: z.array(zAnnotationArea).or(zAnnotationArea).nullish(),\n annotationDifferenceLine: z.array(zAnnotationDifferenceLine).or(zAnnotationDifferenceLine).nullish(),\n polynomialRegressionLine: z.array(zPolynomialRegressionLine).or(zPolynomialRegressionLine).nullish(),\n dimensionLinkage: zDimensionLinkage.nullish(),\n locale: zLocale.nullish(),\n})\n"],"names":["zColumn","z","zDataset","zEncoding","zDimensions","zMeasures","zPage","zPlayer","zBackgroundColor","zColor","zLabel","zLegend","zRegionPadding","zTooltip","zBrush","zXBandAxis","zYLinearAxis","zSort","zSortLegend","zCrosshairRect","zStackCornerRadius","zBarMaxWidth","zTheme","zBarStyle","zAnnotationPoint","zAnnotationVerticalLine","zAnnotationHorizontalLine","zAnnotationArea","zAnnotationDifferenceLine","zPolynomialRegressionLine","zDimensionLinkage","zLocale"],"mappings":";;;AAkCO,MAAMA,UAAUC,EAAE,MAAM,CAAC;IAC9B,WAAWA,EAAE,OAAO,CAAC;IACrB,SAASC,SAAS,OAAO;IACzB,UAAUC,UAAU,OAAO;IAC3B,YAAYC,YAAY,OAAO;IAC/B,UAAUC,UAAU,OAAO;IAC3B,MAAMC,MAAM,OAAO;IACnB,QAAQC,QAAQ,OAAO;IAEvB,iBAAiBC,iBAAiB,OAAO;IACzC,OAAOC,OAAO,OAAO;IACrB,OAAOC,OAAO,OAAO;IACrB,QAAQC,QAAQ,OAAO;IACvB,eAAeC,eAAe,OAAO;IACrC,SAASC,SAAS,OAAO;IACzB,OAAOC,OAAO,OAAO;IACrB,OAAOC,WAAW,OAAO;IACzB,OAAOC,aAAa,OAAO;IAC3B,MAAMC,MAAM,OAAO;IACnB,YAAYC,YAAY,OAAO;IAC/B,eAAeC,eAAe,OAAO;IACrC,mBAAmBC,mBAAmB,OAAO;IAC7C,aAAaC,aAAa,OAAO;IACjC,OAAOC,OAAO,OAAO;IACrB,UAAUrB,EAAE,KAAK,CAACsB,WAAW,EAAE,CAACA,WAAW,OAAO;IAClD,iBAAiBtB,EAAE,KAAK,CAACuB,kBAAkB,EAAE,CAACA,kBAAkB,OAAO;IACvE,wBAAwBvB,EAAE,KAAK,CAACwB,yBAAyB,EAAE,CAACA,yBAAyB,OAAO;IAC5F,0BAA0BxB,EAAE,KAAK,CAACyB,2BAA2B,EAAE,CAACA,2BAA2B,OAAO;IAClG,gBAAgBzB,EAAE,KAAK,CAAC0B,iBAAiB,EAAE,CAACA,iBAAiB,OAAO;IACpE,0BAA0B1B,EAAE,KAAK,CAAC2B,2BAA2B,EAAE,CAACA,2BAA2B,OAAO;IAClG,0BAA0B3B,EAAE,KAAK,CAAC4B,2BAA2B,EAAE,CAACA,2BAA2B,OAAO;IAClG,kBAAkBC,kBAAkB,OAAO;IAC3C,QAAQC,QAAQ,OAAO;AACzB"}
1
+ {"version":3,"file":"types/chartType/column/zColumn.js","sources":["../../../../../src/types/chartType/column/zColumn.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zLocale } from '../../i18n'\nimport {\n zAnnotationArea,\n zAnnotationDifferenceLine,\n zAnnotationHorizontalLine,\n zAnnotationPoint,\n zAnnotationVerticalLine,\n zBackgroundColor,\n zBarMaxWidth,\n zBarStyle,\n zColor,\n zCrosshairRect,\n zDataset,\n zDimensionLinkage,\n zDimensions,\n zEncoding,\n zLabel,\n zLegend,\n zMeasures,\n zPolynomialRegressionLine,\n zRegionPadding,\n zSort,\n zSortLegend,\n zStackCornerRadius,\n zTheme,\n zTooltip,\n zBrush,\n zXBandAxis,\n zYLinearAxis,\n zPage,\n zPlayer,\n zBarLikeAnimation,\n} from '../../properties'\n\nexport const zColumn = z.object({\n chartType: z.literal('column'),\n dataset: zDataset.nullish(),\n encoding: zEncoding.nullish(),\n dimensions: zDimensions.nullish(),\n measures: zMeasures.nullish(),\n page: zPage.nullish(),\n player: zPlayer.nullish(),\n\n backgroundColor: zBackgroundColor.nullish(),\n color: zColor.nullish(),\n label: zLabel.nullish(),\n legend: zLegend.nullish(),\n regionPadding: zRegionPadding.nullish(),\n tooltip: zTooltip.nullish(),\n brush: zBrush.nullish(),\n animation: zBarLikeAnimation.nullish(),\n xAxis: zXBandAxis.nullish(),\n yAxis: zYLinearAxis.nullish(),\n sort: zSort.nullish(),\n sortLegent: zSortLegend.nullish(),\n crosshairRect: zCrosshairRect.nullish(),\n stackCornerRadius: zStackCornerRadius.nullish(),\n barMaxWidth: zBarMaxWidth.nullish(),\n theme: zTheme.nullish(),\n barStyle: z.array(zBarStyle).or(zBarStyle).nullish(),\n annotationPoint: z.array(zAnnotationPoint).or(zAnnotationPoint).nullish(),\n annotationVerticalLine: z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).nullish(),\n annotationHorizontalLine: z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).nullish(),\n annotationArea: z.array(zAnnotationArea).or(zAnnotationArea).nullish(),\n annotationDifferenceLine: z.array(zAnnotationDifferenceLine).or(zAnnotationDifferenceLine).nullish(),\n polynomialRegressionLine: z.array(zPolynomialRegressionLine).or(zPolynomialRegressionLine).nullish(),\n dimensionLinkage: zDimensionLinkage.nullish(),\n locale: zLocale.nullish(),\n})\n"],"names":["zColumn","z","zDataset","zEncoding","zDimensions","zMeasures","zPage","zPlayer","zBackgroundColor","zColor","zLabel","zLegend","zRegionPadding","zTooltip","zBrush","zBarLikeAnimation","zXBandAxis","zYLinearAxis","zSort","zSortLegend","zCrosshairRect","zStackCornerRadius","zBarMaxWidth","zTheme","zBarStyle","zAnnotationPoint","zAnnotationVerticalLine","zAnnotationHorizontalLine","zAnnotationArea","zAnnotationDifferenceLine","zPolynomialRegressionLine","zDimensionLinkage","zLocale"],"mappings":";;;AAmCO,MAAMA,UAAUC,EAAE,MAAM,CAAC;IAC9B,WAAWA,EAAE,OAAO,CAAC;IACrB,SAASC,SAAS,OAAO;IACzB,UAAUC,UAAU,OAAO;IAC3B,YAAYC,YAAY,OAAO;IAC/B,UAAUC,UAAU,OAAO;IAC3B,MAAMC,MAAM,OAAO;IACnB,QAAQC,QAAQ,OAAO;IAEvB,iBAAiBC,iBAAiB,OAAO;IACzC,OAAOC,OAAO,OAAO;IACrB,OAAOC,OAAO,OAAO;IACrB,QAAQC,QAAQ,OAAO;IACvB,eAAeC,eAAe,OAAO;IACrC,SAASC,SAAS,OAAO;IACzB,OAAOC,OAAO,OAAO;IACrB,WAAWC,kBAAkB,OAAO;IACpC,OAAOC,WAAW,OAAO;IACzB,OAAOC,aAAa,OAAO;IAC3B,MAAMC,MAAM,OAAO;IACnB,YAAYC,YAAY,OAAO;IAC/B,eAAeC,eAAe,OAAO;IACrC,mBAAmBC,mBAAmB,OAAO;IAC7C,aAAaC,aAAa,OAAO;IACjC,OAAOC,OAAO,OAAO;IACrB,UAAUtB,EAAE,KAAK,CAACuB,WAAW,EAAE,CAACA,WAAW,OAAO;IAClD,iBAAiBvB,EAAE,KAAK,CAACwB,kBAAkB,EAAE,CAACA,kBAAkB,OAAO;IACvE,wBAAwBxB,EAAE,KAAK,CAACyB,yBAAyB,EAAE,CAACA,yBAAyB,OAAO;IAC5F,0BAA0BzB,EAAE,KAAK,CAAC0B,2BAA2B,EAAE,CAACA,2BAA2B,OAAO;IAClG,gBAAgB1B,EAAE,KAAK,CAAC2B,iBAAiB,EAAE,CAACA,iBAAiB,OAAO;IACpE,0BAA0B3B,EAAE,KAAK,CAAC4B,2BAA2B,EAAE,CAACA,2BAA2B,OAAO;IAClG,0BAA0B5B,EAAE,KAAK,CAAC6B,2BAA2B,EAAE,CAACA,2BAA2B,OAAO;IAClG,kBAAkBC,kBAAkB,OAAO;IAC3C,QAAQC,QAAQ,OAAO;AACzB"}
@@ -1,5 +1,5 @@
1
1
  import type { Locale } from '../../i18n';
2
- import type { AnnotationArea, AnnotationDifferenceLine, AnnotationHorizontalLine, AnnotationPoint, AnnotationVerticalLine, BackgroundColor, Brush, BarStyle, Color, CrosshairRect, Dataset, Label, Legend, StackCornerRadius, Theme, Tooltip, XBandAxis, YLinearAxis, SortLegend, Sort, BarMaxWidth, BarGapInGroup, DimensionLinkage, ColumnMeasure, ColumnDimension, Page, RegionPadding } from '../../properties';
2
+ import type { AnnotationArea, AnnotationDifferenceLine, AnnotationHorizontalLine, AnnotationPoint, AnnotationVerticalLine, BackgroundColor, Brush, BarStyle, Color, CrosshairRect, Dataset, Label, Legend, StackCornerRadius, Theme, Tooltip, XBandAxis, YLinearAxis, SortLegend, Sort, BarMaxWidth, BarGapInGroup, DimensionLinkage, ColumnMeasure, ColumnDimension, Page, RegionPadding, BarLikeAnimation } from '../../properties';
3
3
  /**
4
4
  * @description 并列柱状图,适用于多指标并行对比场景,多个柱子并列排列展示不同指标值
5
5
  * 适用场景:
@@ -81,6 +81,11 @@ export interface ColumnParallel {
81
81
  * @description 框选配置,用于开启/关闭 brush 框选能力
82
82
  */
83
83
  brush?: Brush;
84
+ /**
85
+ * 动画配置
86
+ * @description 图表动画配置,按图表类型约束可选效果
87
+ */
88
+ animation?: BarLikeAnimation;
84
89
  /**
85
90
  * @description x轴, 类目轴, x轴配置, 用于定义图表的x轴, 包括x轴的位置, 格式, 样式等.
86
91
  */
@@ -487,6 +487,46 @@ export declare const zColumnParallel: z.ZodObject<{
487
487
  lineWidth: z.ZodOptional<z.ZodNumber>;
488
488
  }, z.core.$strip>>;
489
489
  }, z.core.$strip>>>;
490
+ animation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
491
+ enable: z.ZodOptional<z.ZodBoolean>;
492
+ params: z.ZodOptional<z.ZodObject<{
493
+ appear: z.ZodOptional<z.ZodObject<{
494
+ enable: z.ZodOptional<z.ZodBoolean>;
495
+ effects: z.ZodOptional<z.ZodArray<z.ZodEnum<{
496
+ [x: string]: string;
497
+ }>>>;
498
+ ease: z.ZodOptional<z.ZodString>;
499
+ duration: z.ZodOptional<z.ZodNumber>;
500
+ color: z.ZodOptional<z.ZodString>;
501
+ }, z.core.$strip>>;
502
+ update: z.ZodOptional<z.ZodObject<{
503
+ enable: z.ZodOptional<z.ZodBoolean>;
504
+ effects: z.ZodOptional<z.ZodArray<z.ZodEnum<{
505
+ [x: string]: string;
506
+ }>>>;
507
+ ease: z.ZodOptional<z.ZodString>;
508
+ duration: z.ZodOptional<z.ZodNumber>;
509
+ color: z.ZodOptional<z.ZodString>;
510
+ }, z.core.$strip>>;
511
+ loop: z.ZodOptional<z.ZodObject<{
512
+ atmosphere?: z.ZodOptional<z.ZodObject<{
513
+ ease: z.ZodOptional<z.ZodString>;
514
+ color: z.ZodOptional<z.ZodString>;
515
+ }, z.core.$strip>> | undefined;
516
+ loop?: z.ZodOptional<z.ZodObject<{
517
+ enable: z.ZodOptional<z.ZodBoolean>;
518
+ effects: z.ZodOptional<z.ZodArray<z.ZodEnum<{
519
+ [x: string]: string;
520
+ }>>>;
521
+ ease: z.ZodOptional<z.ZodString>;
522
+ duration: z.ZodOptional<z.ZodNumber>;
523
+ color: z.ZodOptional<z.ZodString>;
524
+ }, z.core.$strip>> | undefined;
525
+ enable: z.ZodOptional<z.ZodBoolean>;
526
+ interval: z.ZodOptional<z.ZodNumber>;
527
+ }, z.core.$strip>>;
528
+ }, z.core.$strip>>;
529
+ }, z.core.$strip>>>;
490
530
  xAxis: z.ZodOptional<z.ZodNullable<z.ZodObject<{
491
531
  visible: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
492
532
  labelAutoHide: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
@@ -1867,6 +1907,11 @@ export declare const zColumnParallel: z.ZodObject<{
1867
1907
  textColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1868
1908
  textBackgroundColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1869
1909
  lineColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1910
+ lineStyle: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1911
+ solid: "solid";
1912
+ dashed: "dashed";
1913
+ dotted: "dotted";
1914
+ }>>>;
1870
1915
  }, z.core.$strip>>, z.ZodObject<{
1871
1916
  start: z.ZodObject<{
1872
1917
  selector: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>, z.ZodObject<{
@@ -2018,6 +2063,11 @@ export declare const zColumnParallel: z.ZodObject<{
2018
2063
  textColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2019
2064
  textBackgroundColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2020
2065
  lineColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2066
+ lineStyle: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
2067
+ solid: "solid";
2068
+ dashed: "dashed";
2069
+ dotted: "dotted";
2070
+ }>>>;
2021
2071
  }, z.core.$strip>]>>>;
2022
2072
  dimensionLinkage: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2023
2073
  enable: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
@@ -1,6 +1,6 @@
1
1
  import { z } from "zod";
2
2
  import { zLocale } from "../../i18n/index.js";
3
- import { zAnnotationArea, zAnnotationDifferenceLine, zAnnotationHorizontalLine, zAnnotationPoint, zAnnotationVerticalLine, zBackgroundColor, zBarGapInGroup, zBarMaxWidth, zBarStyle, zBrush, zColor, zCrosshairRect, zDataset, zDimensionLinkage, zDimensions, zEncoding, zLabel, zLegend, zMeasures, zPage, zPlayer, zRegionPadding, zStackCornerRadius, zTheme, zTooltip, zXBandAxis, zYLinearAxis } from "../../properties/index.js";
3
+ import { zAnnotationArea, zAnnotationDifferenceLine, zAnnotationHorizontalLine, zAnnotationPoint, zAnnotationVerticalLine, zBackgroundColor, zBarGapInGroup, zBarLikeAnimation, zBarMaxWidth, zBarStyle, zBrush, zColor, zCrosshairRect, zDataset, zDimensionLinkage, zDimensions, zEncoding, zLabel, zLegend, zMeasures, zPage, zPlayer, zRegionPadding, zStackCornerRadius, zTheme, zTooltip, zXBandAxis, zYLinearAxis } from "../../properties/index.js";
4
4
  const zColumnParallel = z.object({
5
5
  chartType: z.literal('columnParallel'),
6
6
  dataset: zDataset.nullish(),
@@ -16,6 +16,7 @@ const zColumnParallel = z.object({
16
16
  regionPadding: zRegionPadding.nullish(),
17
17
  tooltip: zTooltip.nullish(),
18
18
  brush: zBrush.nullish(),
19
+ animation: zBarLikeAnimation.nullish(),
19
20
  xAxis: zXBandAxis.nullish(),
20
21
  yAxis: zYLinearAxis.nullish(),
21
22
  crosshairRect: zCrosshairRect.nullish(),
@@ -1 +1 @@
1
- {"version":3,"file":"types/chartType/columnParallel/zColumnParallel.js","sources":["../../../../../src/types/chartType/columnParallel/zColumnParallel.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zLocale } from '../../i18n'\nimport {\n zAnnotationArea,\n zAnnotationDifferenceLine,\n zAnnotationHorizontalLine,\n zAnnotationPoint,\n zAnnotationVerticalLine,\n zBackgroundColor,\n zBarGapInGroup,\n zBarMaxWidth,\n zBarStyle,\n zColor,\n zCrosshairRect,\n zDataset,\n zDimensionLinkage,\n zDimensions,\n zEncoding,\n zLabel,\n zLegend,\n zMeasures,\n zRegionPadding,\n zStackCornerRadius,\n zTheme,\n zTooltip,\n zBrush,\n zXBandAxis,\n zYLinearAxis,\n zPage,\n zPlayer,\n} from '../../properties'\n\nexport const zColumnParallel = z.object({\n chartType: z.literal('columnParallel'),\n dataset: zDataset.nullish(),\n encoding: zEncoding.nullish(),\n dimensions: zDimensions.nullish(),\n measures: zMeasures.nullish(),\n page: zPage.nullish(),\n player: zPlayer.nullish(),\n\n backgroundColor: zBackgroundColor.nullish(),\n color: zColor.nullish(),\n label: zLabel.nullish(),\n legend: zLegend.nullish(),\n regionPadding: zRegionPadding.nullish(),\n tooltip: zTooltip.nullish(),\n brush: zBrush.nullish(),\n xAxis: zXBandAxis.nullish(),\n yAxis: zYLinearAxis.nullish(),\n crosshairRect: zCrosshairRect.nullish(),\n stackCornerRadius: zStackCornerRadius.nullish(),\n barMaxWidth: zBarMaxWidth.nullish(),\n barGapInGroup: zBarGapInGroup.nullish(),\n theme: zTheme.nullish(),\n barStyle: z.array(zBarStyle).or(zBarStyle).nullish(),\n annotationPoint: z.array(zAnnotationPoint).or(zAnnotationPoint).nullish(),\n annotationVerticalLine: z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).nullish(),\n annotationHorizontalLine: z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).nullish(),\n annotationArea: z.array(zAnnotationArea).or(zAnnotationArea).nullish(),\n annotationDifferenceLine: z.array(zAnnotationDifferenceLine).or(zAnnotationDifferenceLine).nullish(),\n dimensionLinkage: zDimensionLinkage.nullish(),\n locale: zLocale.nullish(),\n})\n"],"names":["zColumnParallel","z","zDataset","zEncoding","zDimensions","zMeasures","zPage","zPlayer","zBackgroundColor","zColor","zLabel","zLegend","zRegionPadding","zTooltip","zBrush","zXBandAxis","zYLinearAxis","zCrosshairRect","zStackCornerRadius","zBarMaxWidth","zBarGapInGroup","zTheme","zBarStyle","zAnnotationPoint","zAnnotationVerticalLine","zAnnotationHorizontalLine","zAnnotationArea","zAnnotationDifferenceLine","zDimensionLinkage","zLocale"],"mappings":";;;AAgCO,MAAMA,kBAAkBC,EAAE,MAAM,CAAC;IACtC,WAAWA,EAAE,OAAO,CAAC;IACrB,SAASC,SAAS,OAAO;IACzB,UAAUC,UAAU,OAAO;IAC3B,YAAYC,YAAY,OAAO;IAC/B,UAAUC,UAAU,OAAO;IAC3B,MAAMC,MAAM,OAAO;IACnB,QAAQC,QAAQ,OAAO;IAEvB,iBAAiBC,iBAAiB,OAAO;IACzC,OAAOC,OAAO,OAAO;IACrB,OAAOC,OAAO,OAAO;IACrB,QAAQC,QAAQ,OAAO;IACvB,eAAeC,eAAe,OAAO;IACrC,SAASC,SAAS,OAAO;IACzB,OAAOC,OAAO,OAAO;IACrB,OAAOC,WAAW,OAAO;IACzB,OAAOC,aAAa,OAAO;IAC3B,eAAeC,eAAe,OAAO;IACrC,mBAAmBC,mBAAmB,OAAO;IAC7C,aAAaC,aAAa,OAAO;IACjC,eAAeC,eAAe,OAAO;IACrC,OAAOC,OAAO,OAAO;IACrB,UAAUpB,EAAE,KAAK,CAACqB,WAAW,EAAE,CAACA,WAAW,OAAO;IAClD,iBAAiBrB,EAAE,KAAK,CAACsB,kBAAkB,EAAE,CAACA,kBAAkB,OAAO;IACvE,wBAAwBtB,EAAE,KAAK,CAACuB,yBAAyB,EAAE,CAACA,yBAAyB,OAAO;IAC5F,0BAA0BvB,EAAE,KAAK,CAACwB,2BAA2B,EAAE,CAACA,2BAA2B,OAAO;IAClG,gBAAgBxB,EAAE,KAAK,CAACyB,iBAAiB,EAAE,CAACA,iBAAiB,OAAO;IACpE,0BAA0BzB,EAAE,KAAK,CAAC0B,2BAA2B,EAAE,CAACA,2BAA2B,OAAO;IAClG,kBAAkBC,kBAAkB,OAAO;IAC3C,QAAQC,QAAQ,OAAO;AACzB"}
1
+ {"version":3,"file":"types/chartType/columnParallel/zColumnParallel.js","sources":["../../../../../src/types/chartType/columnParallel/zColumnParallel.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zLocale } from '../../i18n'\nimport {\n zAnnotationArea,\n zAnnotationDifferenceLine,\n zAnnotationHorizontalLine,\n zAnnotationPoint,\n zAnnotationVerticalLine,\n zBackgroundColor,\n zBarGapInGroup,\n zBarMaxWidth,\n zBarStyle,\n zColor,\n zCrosshairRect,\n zDataset,\n zDimensionLinkage,\n zDimensions,\n zEncoding,\n zLabel,\n zLegend,\n zMeasures,\n zRegionPadding,\n zStackCornerRadius,\n zTheme,\n zTooltip,\n zBrush,\n zXBandAxis,\n zYLinearAxis,\n zPage,\n zPlayer,\n zBarLikeAnimation,\n} from '../../properties'\n\nexport const zColumnParallel = z.object({\n chartType: z.literal('columnParallel'),\n dataset: zDataset.nullish(),\n encoding: zEncoding.nullish(),\n dimensions: zDimensions.nullish(),\n measures: zMeasures.nullish(),\n page: zPage.nullish(),\n player: zPlayer.nullish(),\n\n backgroundColor: zBackgroundColor.nullish(),\n color: zColor.nullish(),\n label: zLabel.nullish(),\n legend: zLegend.nullish(),\n regionPadding: zRegionPadding.nullish(),\n tooltip: zTooltip.nullish(),\n brush: zBrush.nullish(),\n animation: zBarLikeAnimation.nullish(),\n xAxis: zXBandAxis.nullish(),\n yAxis: zYLinearAxis.nullish(),\n crosshairRect: zCrosshairRect.nullish(),\n stackCornerRadius: zStackCornerRadius.nullish(),\n barMaxWidth: zBarMaxWidth.nullish(),\n barGapInGroup: zBarGapInGroup.nullish(),\n theme: zTheme.nullish(),\n barStyle: z.array(zBarStyle).or(zBarStyle).nullish(),\n annotationPoint: z.array(zAnnotationPoint).or(zAnnotationPoint).nullish(),\n annotationVerticalLine: z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).nullish(),\n annotationHorizontalLine: z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).nullish(),\n annotationArea: z.array(zAnnotationArea).or(zAnnotationArea).nullish(),\n annotationDifferenceLine: z.array(zAnnotationDifferenceLine).or(zAnnotationDifferenceLine).nullish(),\n dimensionLinkage: zDimensionLinkage.nullish(),\n locale: zLocale.nullish(),\n})\n"],"names":["zColumnParallel","z","zDataset","zEncoding","zDimensions","zMeasures","zPage","zPlayer","zBackgroundColor","zColor","zLabel","zLegend","zRegionPadding","zTooltip","zBrush","zBarLikeAnimation","zXBandAxis","zYLinearAxis","zCrosshairRect","zStackCornerRadius","zBarMaxWidth","zBarGapInGroup","zTheme","zBarStyle","zAnnotationPoint","zAnnotationVerticalLine","zAnnotationHorizontalLine","zAnnotationArea","zAnnotationDifferenceLine","zDimensionLinkage","zLocale"],"mappings":";;;AAiCO,MAAMA,kBAAkBC,EAAE,MAAM,CAAC;IACtC,WAAWA,EAAE,OAAO,CAAC;IACrB,SAASC,SAAS,OAAO;IACzB,UAAUC,UAAU,OAAO;IAC3B,YAAYC,YAAY,OAAO;IAC/B,UAAUC,UAAU,OAAO;IAC3B,MAAMC,MAAM,OAAO;IACnB,QAAQC,QAAQ,OAAO;IAEvB,iBAAiBC,iBAAiB,OAAO;IACzC,OAAOC,OAAO,OAAO;IACrB,OAAOC,OAAO,OAAO;IACrB,QAAQC,QAAQ,OAAO;IACvB,eAAeC,eAAe,OAAO;IACrC,SAASC,SAAS,OAAO;IACzB,OAAOC,OAAO,OAAO;IACrB,WAAWC,kBAAkB,OAAO;IACpC,OAAOC,WAAW,OAAO;IACzB,OAAOC,aAAa,OAAO;IAC3B,eAAeC,eAAe,OAAO;IACrC,mBAAmBC,mBAAmB,OAAO;IAC7C,aAAaC,aAAa,OAAO;IACjC,eAAeC,eAAe,OAAO;IACrC,OAAOC,OAAO,OAAO;IACrB,UAAUrB,EAAE,KAAK,CAACsB,WAAW,EAAE,CAACA,WAAW,OAAO;IAClD,iBAAiBtB,EAAE,KAAK,CAACuB,kBAAkB,EAAE,CAACA,kBAAkB,OAAO;IACvE,wBAAwBvB,EAAE,KAAK,CAACwB,yBAAyB,EAAE,CAACA,yBAAyB,OAAO;IAC5F,0BAA0BxB,EAAE,KAAK,CAACyB,2BAA2B,EAAE,CAACA,2BAA2B,OAAO;IAClG,gBAAgBzB,EAAE,KAAK,CAAC0B,iBAAiB,EAAE,CAACA,iBAAiB,OAAO;IACpE,0BAA0B1B,EAAE,KAAK,CAAC2B,2BAA2B,EAAE,CAACA,2BAA2B,OAAO;IAClG,kBAAkBC,kBAAkB,OAAO;IAC3C,QAAQC,QAAQ,OAAO;AACzB"}
@@ -1,5 +1,5 @@
1
1
  import type { Locale } from '../../i18n';
2
- import type { AnnotationArea, AnnotationHorizontalLine, AnnotationPoint, AnnotationVerticalLine, BackgroundColor, Brush, BarStyle, Color, CrosshairRect, Dataset, Label, Legend, StackCornerRadius, Theme, Tooltip, XBandAxis, YLinearAxis, Sort, SortLegend, BarMaxWidth, DimensionLinkage, ColumnMeasure, ColumnDimension, Page, RegionPadding } from '../../properties';
2
+ import type { AnnotationArea, AnnotationHorizontalLine, AnnotationPoint, AnnotationVerticalLine, BackgroundColor, Brush, BarStyle, Color, CrosshairRect, Dataset, Label, Legend, StackCornerRadius, Theme, Tooltip, XBandAxis, YLinearAxis, Sort, SortLegend, BarMaxWidth, DimensionLinkage, ColumnMeasure, ColumnDimension, Page, RegionPadding, BarLikeAnimation } from '../../properties';
3
3
  /**
4
4
  * @description 百分比柱状图,适用于展示各类别占比关系的场景,Y轴以百分比形式展示数据占比
5
5
  * 适用场景:
@@ -86,6 +86,11 @@ export interface ColumnPercent {
86
86
  * @description 框选配置,用于开启/关闭 brush 框选能力
87
87
  */
88
88
  brush?: Brush;
89
+ /**
90
+ * 动画配置
91
+ * @description 图表动画配置,按图表类型约束可选效果
92
+ */
93
+ animation?: BarLikeAnimation;
89
94
  /**
90
95
  * @description x轴, 类目轴, x轴配置, 用于定义图表的x轴, 包括x轴的位置, 格式, 样式等.
91
96
  */
@@ -466,6 +466,46 @@ export declare const zColumnPercent: z.ZodObject<{
466
466
  lineWidth: z.ZodOptional<z.ZodNumber>;
467
467
  }, z.core.$strip>>;
468
468
  }, z.core.$strip>>>;
469
+ animation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
470
+ enable: z.ZodOptional<z.ZodBoolean>;
471
+ params: z.ZodOptional<z.ZodObject<{
472
+ appear: z.ZodOptional<z.ZodObject<{
473
+ enable: z.ZodOptional<z.ZodBoolean>;
474
+ effects: z.ZodOptional<z.ZodArray<z.ZodEnum<{
475
+ [x: string]: string;
476
+ }>>>;
477
+ ease: z.ZodOptional<z.ZodString>;
478
+ duration: z.ZodOptional<z.ZodNumber>;
479
+ color: z.ZodOptional<z.ZodString>;
480
+ }, z.core.$strip>>;
481
+ update: z.ZodOptional<z.ZodObject<{
482
+ enable: z.ZodOptional<z.ZodBoolean>;
483
+ effects: z.ZodOptional<z.ZodArray<z.ZodEnum<{
484
+ [x: string]: string;
485
+ }>>>;
486
+ ease: z.ZodOptional<z.ZodString>;
487
+ duration: z.ZodOptional<z.ZodNumber>;
488
+ color: z.ZodOptional<z.ZodString>;
489
+ }, z.core.$strip>>;
490
+ loop: z.ZodOptional<z.ZodObject<{
491
+ atmosphere?: z.ZodOptional<z.ZodObject<{
492
+ ease: z.ZodOptional<z.ZodString>;
493
+ color: z.ZodOptional<z.ZodString>;
494
+ }, z.core.$strip>> | undefined;
495
+ loop?: z.ZodOptional<z.ZodObject<{
496
+ enable: z.ZodOptional<z.ZodBoolean>;
497
+ effects: z.ZodOptional<z.ZodArray<z.ZodEnum<{
498
+ [x: string]: string;
499
+ }>>>;
500
+ ease: z.ZodOptional<z.ZodString>;
501
+ duration: z.ZodOptional<z.ZodNumber>;
502
+ color: z.ZodOptional<z.ZodString>;
503
+ }, z.core.$strip>> | undefined;
504
+ enable: z.ZodOptional<z.ZodBoolean>;
505
+ interval: z.ZodOptional<z.ZodNumber>;
506
+ }, z.core.$strip>>;
507
+ }, z.core.$strip>>;
508
+ }, z.core.$strip>>>;
469
509
  xAxis: z.ZodOptional<z.ZodNullable<z.ZodObject<{
470
510
  visible: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
471
511
  labelAutoHide: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
@@ -1,5 +1,5 @@
1
1
  import { zLocale } from "../../i18n/index.js";
2
- import { zAnnotationArea, zAnnotationHorizontalLine, zAnnotationPoint, zAnnotationVerticalLine, zBackgroundColor, zBarMaxWidth, zBarStyle, zBrush, zColor, zCrosshairRect, zDataset, zDimensionLinkage, zDimensions, zEncoding, zLabel, zLegend, zMeasures, zPage, zRegionPadding, zStackCornerRadius, zTheme, zTooltip, zXBandAxis, zYLinearAxis } from "../../properties/index.js";
2
+ import { zAnnotationArea, zAnnotationHorizontalLine, zAnnotationPoint, zAnnotationVerticalLine, zBackgroundColor, zBarLikeAnimation, zBarMaxWidth, zBarStyle, zBrush, zColor, zCrosshairRect, zDataset, zDimensionLinkage, zDimensions, zEncoding, zLabel, zLegend, zMeasures, zPage, zRegionPadding, zStackCornerRadius, zTheme, zTooltip, zXBandAxis, zYLinearAxis } from "../../properties/index.js";
3
3
  import { z } from "zod";
4
4
  const zColumnPercent = z.object({
5
5
  chartType: z.literal('columnPercent'),
@@ -15,6 +15,7 @@ const zColumnPercent = z.object({
15
15
  regionPadding: zRegionPadding.nullish(),
16
16
  tooltip: zTooltip.nullish(),
17
17
  brush: zBrush.nullish(),
18
+ animation: zBarLikeAnimation.nullish(),
18
19
  xAxis: zXBandAxis.nullish(),
19
20
  yAxis: zYLinearAxis.nullish(),
20
21
  crosshairRect: zCrosshairRect.nullish(),
@@ -1 +1 @@
1
- {"version":3,"file":"types/chartType/columnPercent/zColumnPercent.js","sources":["../../../../../src/types/chartType/columnPercent/zColumnPercent.ts"],"sourcesContent":["import { zLocale } from '../../i18n'\nimport {\n zAnnotationArea,\n zAnnotationHorizontalLine,\n zAnnotationPoint,\n zAnnotationVerticalLine,\n zBackgroundColor,\n zBarMaxWidth,\n zBarStyle,\n zColor,\n zCrosshairRect,\n zDataset,\n zDimensionLinkage,\n zDimensions,\n zEncoding,\n zLabel,\n zLegend,\n zMeasures,\n zRegionPadding,\n zStackCornerRadius,\n zTheme,\n zTooltip,\n zBrush,\n zXBandAxis,\n zYLinearAxis,\n zPage,\n} from '../../properties'\n\nimport { z } from 'zod'\n\nexport const zColumnPercent = z.object({\n chartType: z.literal('columnPercent'),\n dataset: zDataset.nullish(),\n encoding: zEncoding.nullish(),\n dimensions: zDimensions.nullish(),\n measures: zMeasures.nullish(),\n page: zPage.nullish(),\n\n backgroundColor: zBackgroundColor.nullish(),\n color: zColor.nullish(),\n label: zLabel.nullish(),\n legend: zLegend.nullish(),\n regionPadding: zRegionPadding.nullish(),\n tooltip: zTooltip.nullish(),\n brush: zBrush.nullish(),\n xAxis: zXBandAxis.nullish(),\n yAxis: zYLinearAxis.nullish(),\n crosshairRect: zCrosshairRect.nullish(),\n stackCornerRadius: zStackCornerRadius.nullish(),\n barMaxWidth: zBarMaxWidth.nullish(),\n theme: zTheme.nullish(),\n barStyle: z.array(zBarStyle).or(zBarStyle).nullish(),\n annotationPoint: z.array(zAnnotationPoint).or(zAnnotationPoint).nullish(),\n annotationVerticalLine: z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).nullish(),\n annotationHorizontalLine: z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).nullish(),\n annotationArea: z.array(zAnnotationArea).or(zAnnotationArea).nullish(),\n dimensionLinkage: zDimensionLinkage.nullish(),\n locale: zLocale.nullish(),\n})\n"],"names":["zColumnPercent","z","zDataset","zEncoding","zDimensions","zMeasures","zPage","zBackgroundColor","zColor","zLabel","zLegend","zRegionPadding","zTooltip","zBrush","zXBandAxis","zYLinearAxis","zCrosshairRect","zStackCornerRadius","zBarMaxWidth","zTheme","zBarStyle","zAnnotationPoint","zAnnotationVerticalLine","zAnnotationHorizontalLine","zAnnotationArea","zDimensionLinkage","zLocale"],"mappings":";;;AA8BO,MAAMA,iBAAiBC,EAAE,MAAM,CAAC;IACrC,WAAWA,EAAE,OAAO,CAAC;IACrB,SAASC,SAAS,OAAO;IACzB,UAAUC,UAAU,OAAO;IAC3B,YAAYC,YAAY,OAAO;IAC/B,UAAUC,UAAU,OAAO;IAC3B,MAAMC,MAAM,OAAO;IAEnB,iBAAiBC,iBAAiB,OAAO;IACzC,OAAOC,OAAO,OAAO;IACrB,OAAOC,OAAO,OAAO;IACrB,QAAQC,QAAQ,OAAO;IACvB,eAAeC,eAAe,OAAO;IACrC,SAASC,SAAS,OAAO;IACzB,OAAOC,OAAO,OAAO;IACrB,OAAOC,WAAW,OAAO;IACzB,OAAOC,aAAa,OAAO;IAC3B,eAAeC,eAAe,OAAO;IACrC,mBAAmBC,mBAAmB,OAAO;IAC7C,aAAaC,aAAa,OAAO;IACjC,OAAOC,OAAO,OAAO;IACrB,UAAUlB,EAAE,KAAK,CAACmB,WAAW,EAAE,CAACA,WAAW,OAAO;IAClD,iBAAiBnB,EAAE,KAAK,CAACoB,kBAAkB,EAAE,CAACA,kBAAkB,OAAO;IACvE,wBAAwBpB,EAAE,KAAK,CAACqB,yBAAyB,EAAE,CAACA,yBAAyB,OAAO;IAC5F,0BAA0BrB,EAAE,KAAK,CAACsB,2BAA2B,EAAE,CAACA,2BAA2B,OAAO;IAClG,gBAAgBtB,EAAE,KAAK,CAACuB,iBAAiB,EAAE,CAACA,iBAAiB,OAAO;IACpE,kBAAkBC,kBAAkB,OAAO;IAC3C,QAAQC,QAAQ,OAAO;AACzB"}
1
+ {"version":3,"file":"types/chartType/columnPercent/zColumnPercent.js","sources":["../../../../../src/types/chartType/columnPercent/zColumnPercent.ts"],"sourcesContent":["import { zLocale } from '../../i18n'\nimport {\n zAnnotationArea,\n zAnnotationHorizontalLine,\n zAnnotationPoint,\n zAnnotationVerticalLine,\n zBackgroundColor,\n zBarMaxWidth,\n zBarStyle,\n zColor,\n zCrosshairRect,\n zDataset,\n zDimensionLinkage,\n zDimensions,\n zEncoding,\n zLabel,\n zLegend,\n zMeasures,\n zRegionPadding,\n zStackCornerRadius,\n zTheme,\n zTooltip,\n zBrush,\n zXBandAxis,\n zYLinearAxis,\n zPage,\n zBarLikeAnimation,\n} from '../../properties'\n\nimport { z } from 'zod'\n\nexport const zColumnPercent = z.object({\n chartType: z.literal('columnPercent'),\n dataset: zDataset.nullish(),\n encoding: zEncoding.nullish(),\n dimensions: zDimensions.nullish(),\n measures: zMeasures.nullish(),\n page: zPage.nullish(),\n\n backgroundColor: zBackgroundColor.nullish(),\n color: zColor.nullish(),\n label: zLabel.nullish(),\n legend: zLegend.nullish(),\n regionPadding: zRegionPadding.nullish(),\n tooltip: zTooltip.nullish(),\n brush: zBrush.nullish(),\n animation: zBarLikeAnimation.nullish(),\n xAxis: zXBandAxis.nullish(),\n yAxis: zYLinearAxis.nullish(),\n crosshairRect: zCrosshairRect.nullish(),\n stackCornerRadius: zStackCornerRadius.nullish(),\n barMaxWidth: zBarMaxWidth.nullish(),\n theme: zTheme.nullish(),\n barStyle: z.array(zBarStyle).or(zBarStyle).nullish(),\n annotationPoint: z.array(zAnnotationPoint).or(zAnnotationPoint).nullish(),\n annotationVerticalLine: z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).nullish(),\n annotationHorizontalLine: z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).nullish(),\n annotationArea: z.array(zAnnotationArea).or(zAnnotationArea).nullish(),\n dimensionLinkage: zDimensionLinkage.nullish(),\n locale: zLocale.nullish(),\n})\n"],"names":["zColumnPercent","z","zDataset","zEncoding","zDimensions","zMeasures","zPage","zBackgroundColor","zColor","zLabel","zLegend","zRegionPadding","zTooltip","zBrush","zBarLikeAnimation","zXBandAxis","zYLinearAxis","zCrosshairRect","zStackCornerRadius","zBarMaxWidth","zTheme","zBarStyle","zAnnotationPoint","zAnnotationVerticalLine","zAnnotationHorizontalLine","zAnnotationArea","zDimensionLinkage","zLocale"],"mappings":";;;AA+BO,MAAMA,iBAAiBC,EAAE,MAAM,CAAC;IACrC,WAAWA,EAAE,OAAO,CAAC;IACrB,SAASC,SAAS,OAAO;IACzB,UAAUC,UAAU,OAAO;IAC3B,YAAYC,YAAY,OAAO;IAC/B,UAAUC,UAAU,OAAO;IAC3B,MAAMC,MAAM,OAAO;IAEnB,iBAAiBC,iBAAiB,OAAO;IACzC,OAAOC,OAAO,OAAO;IACrB,OAAOC,OAAO,OAAO;IACrB,QAAQC,QAAQ,OAAO;IACvB,eAAeC,eAAe,OAAO;IACrC,SAASC,SAAS,OAAO;IACzB,OAAOC,OAAO,OAAO;IACrB,WAAWC,kBAAkB,OAAO;IACpC,OAAOC,WAAW,OAAO;IACzB,OAAOC,aAAa,OAAO;IAC3B,eAAeC,eAAe,OAAO;IACrC,mBAAmBC,mBAAmB,OAAO;IAC7C,aAAaC,aAAa,OAAO;IACjC,OAAOC,OAAO,OAAO;IACrB,UAAUnB,EAAE,KAAK,CAACoB,WAAW,EAAE,CAACA,WAAW,OAAO;IAClD,iBAAiBpB,EAAE,KAAK,CAACqB,kBAAkB,EAAE,CAACA,kBAAkB,OAAO;IACvE,wBAAwBrB,EAAE,KAAK,CAACsB,yBAAyB,EAAE,CAACA,yBAAyB,OAAO;IAC5F,0BAA0BtB,EAAE,KAAK,CAACuB,2BAA2B,EAAE,CAACA,2BAA2B,OAAO;IAClG,gBAAgBvB,EAAE,KAAK,CAACwB,iBAAiB,EAAE,CAACA,iBAAiB,OAAO;IACpE,kBAAkBC,kBAAkB,OAAO;IAC3C,QAAQC,QAAQ,OAAO;AACzB"}
@@ -1,5 +1,5 @@
1
1
  import { type Locale } from '../../i18n';
2
- import type { BackgroundColor, Color, Dataset, DonutDimension, Legend, DonutMeasure, PieLabel, Theme, Tooltip, Page } from '../../properties';
2
+ import type { BackgroundColor, Color, Dataset, DonutDimension, Legend, DonutMeasure, PieLabel, Theme, Tooltip, Page, PieLikeAnimation } from '../../properties';
3
3
  import type { Brush } from '../../properties';
4
4
  /**
5
5
  * @description 环形图,适用于展示单一维度数据的占比关系,中心留有空白区域可展示汇总信息
@@ -87,6 +87,11 @@ export interface Donut {
87
87
  * @description 框选配置,用于开启/关闭 brush 框选能力
88
88
  */
89
89
  brush?: Brush;
90
+ /**
91
+ * 动画配置
92
+ * @description 图表动画配置,按图表类型约束可选效果
93
+ */
94
+ animation?: PieLikeAnimation;
90
95
  /**
91
96
  * 图表的主题, 主题是优先级较低的功能配置, 包含所有图表类型共用的通用配置, 与单类图表类型共用的图表配置
92
97
  * @default light 默认为亮色主题
@@ -461,6 +461,46 @@ export declare const zDonut: z.ZodObject<{
461
461
  lineWidth: z.ZodOptional<z.ZodNumber>;
462
462
  }, z.core.$strip>>;
463
463
  }, z.core.$strip>>>;
464
+ animation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
465
+ enable: z.ZodOptional<z.ZodBoolean>;
466
+ params: z.ZodOptional<z.ZodObject<{
467
+ appear: z.ZodOptional<z.ZodObject<{
468
+ enable: z.ZodOptional<z.ZodBoolean>;
469
+ effects: z.ZodOptional<z.ZodArray<z.ZodEnum<{
470
+ [x: string]: string;
471
+ }>>>;
472
+ ease: z.ZodOptional<z.ZodString>;
473
+ duration: z.ZodOptional<z.ZodNumber>;
474
+ color: z.ZodOptional<z.ZodString>;
475
+ }, z.core.$strip>>;
476
+ update: z.ZodOptional<z.ZodObject<{
477
+ enable: z.ZodOptional<z.ZodBoolean>;
478
+ effects: z.ZodOptional<z.ZodArray<z.ZodEnum<{
479
+ [x: string]: string;
480
+ }>>>;
481
+ ease: z.ZodOptional<z.ZodString>;
482
+ duration: z.ZodOptional<z.ZodNumber>;
483
+ color: z.ZodOptional<z.ZodString>;
484
+ }, z.core.$strip>>;
485
+ loop: z.ZodOptional<z.ZodObject<{
486
+ atmosphere?: z.ZodOptional<z.ZodObject<{
487
+ ease: z.ZodOptional<z.ZodString>;
488
+ color: z.ZodOptional<z.ZodString>;
489
+ }, z.core.$strip>> | undefined;
490
+ loop?: z.ZodOptional<z.ZodObject<{
491
+ enable: z.ZodOptional<z.ZodBoolean>;
492
+ effects: z.ZodOptional<z.ZodArray<z.ZodEnum<{
493
+ [x: string]: string;
494
+ }>>>;
495
+ ease: z.ZodOptional<z.ZodString>;
496
+ duration: z.ZodOptional<z.ZodNumber>;
497
+ color: z.ZodOptional<z.ZodString>;
498
+ }, z.core.$strip>> | undefined;
499
+ enable: z.ZodOptional<z.ZodBoolean>;
500
+ interval: z.ZodOptional<z.ZodNumber>;
501
+ }, z.core.$strip>>;
502
+ }, z.core.$strip>>;
503
+ }, z.core.$strip>>>;
464
504
  theme: z.ZodOptional<z.ZodNullable<z.ZodString>>;
465
505
  locale: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodEnum<{
466
506
  "zh-CN": "zh-CN";
@@ -1,6 +1,6 @@
1
1
  import { z } from "zod";
2
2
  import { zLocale } from "../../i18n/index.js";
3
- import { zBackgroundColor, zBrush, zColor, zDataset, zDimensions, zEncoding, zLegend, zMeasures, zPage, zPieLabel, zTheme, zTooltip } from "../../properties/index.js";
3
+ import { zBackgroundColor, zBrush, zColor, zDataset, zDimensions, zEncoding, zLegend, zMeasures, zPage, zPieLabel, zPieLikeAnimation, zTheme, zTooltip } from "../../properties/index.js";
4
4
  const zDonut = z.object({
5
5
  chartType: z.literal('donut'),
6
6
  dataset: zDataset.nullish(),
@@ -14,6 +14,7 @@ const zDonut = z.object({
14
14
  legend: zLegend.nullish(),
15
15
  tooltip: zTooltip.nullish(),
16
16
  brush: zBrush.nullish(),
17
+ animation: zPieLikeAnimation.nullish(),
17
18
  theme: zTheme.nullish(),
18
19
  locale: zLocale.nullish()
19
20
  });
@@ -1 +1 @@
1
- {"version":3,"file":"types/chartType/donut/zDonut.js","sources":["../../../../../src/types/chartType/donut/zDonut.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zLocale } from '../../i18n'\n\nimport {\n zBackgroundColor,\n zColor,\n zDataset,\n zDimensions,\n zEncoding,\n zLegend,\n zMeasures,\n zPieLabel,\n zTheme,\n zTooltip,\n zBrush,\n zPage,\n} from '../../properties'\n\nexport const zDonut = z.object({\n chartType: z.literal('donut'),\n dataset: zDataset.nullish(),\n encoding: zEncoding.nullish(),\n dimensions: zDimensions.nullish(),\n measures: zMeasures.nullish(),\n page: zPage.nullish(),\n\n backgroundColor: zBackgroundColor.nullish(),\n color: zColor.nullish(),\n label: zPieLabel.nullish(),\n legend: zLegend.nullish(),\n tooltip: zTooltip.nullish(),\n brush: zBrush.nullish(),\n theme: zTheme.nullish(),\n locale: zLocale.nullish(),\n})\n"],"names":["zDonut","z","zDataset","zEncoding","zDimensions","zMeasures","zPage","zBackgroundColor","zColor","zPieLabel","zLegend","zTooltip","zBrush","zTheme","zLocale"],"mappings":";;;AAkBO,MAAMA,SAASC,EAAE,MAAM,CAAC;IAC7B,WAAWA,EAAE,OAAO,CAAC;IACrB,SAASC,SAAS,OAAO;IACzB,UAAUC,UAAU,OAAO;IAC3B,YAAYC,YAAY,OAAO;IAC/B,UAAUC,UAAU,OAAO;IAC3B,MAAMC,MAAM,OAAO;IAEnB,iBAAiBC,iBAAiB,OAAO;IACzC,OAAOC,OAAO,OAAO;IACrB,OAAOC,UAAU,OAAO;IACxB,QAAQC,QAAQ,OAAO;IACvB,SAASC,SAAS,OAAO;IACzB,OAAOC,OAAO,OAAO;IACrB,OAAOC,OAAO,OAAO;IACrB,QAAQC,QAAQ,OAAO;AACzB"}
1
+ {"version":3,"file":"types/chartType/donut/zDonut.js","sources":["../../../../../src/types/chartType/donut/zDonut.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zLocale } from '../../i18n'\n\nimport {\n zBackgroundColor,\n zColor,\n zDataset,\n zDimensions,\n zEncoding,\n zLegend,\n zMeasures,\n zPieLabel,\n zTheme,\n zTooltip,\n zBrush,\n zPage,\n zPieLikeAnimation,\n} from '../../properties'\n\nexport const zDonut = z.object({\n chartType: z.literal('donut'),\n dataset: zDataset.nullish(),\n encoding: zEncoding.nullish(),\n dimensions: zDimensions.nullish(),\n measures: zMeasures.nullish(),\n page: zPage.nullish(),\n\n backgroundColor: zBackgroundColor.nullish(),\n color: zColor.nullish(),\n label: zPieLabel.nullish(),\n legend: zLegend.nullish(),\n tooltip: zTooltip.nullish(),\n brush: zBrush.nullish(),\n animation: zPieLikeAnimation.nullish(),\n theme: zTheme.nullish(),\n locale: zLocale.nullish(),\n})\n"],"names":["zDonut","z","zDataset","zEncoding","zDimensions","zMeasures","zPage","zBackgroundColor","zColor","zPieLabel","zLegend","zTooltip","zBrush","zPieLikeAnimation","zTheme","zLocale"],"mappings":";;;AAmBO,MAAMA,SAASC,EAAE,MAAM,CAAC;IAC7B,WAAWA,EAAE,OAAO,CAAC;IACrB,SAASC,SAAS,OAAO;IACzB,UAAUC,UAAU,OAAO;IAC3B,YAAYC,YAAY,OAAO;IAC/B,UAAUC,UAAU,OAAO;IAC3B,MAAMC,MAAM,OAAO;IAEnB,iBAAiBC,iBAAiB,OAAO;IACzC,OAAOC,OAAO,OAAO;IACrB,OAAOC,UAAU,OAAO;IACxB,QAAQC,QAAQ,OAAO;IACvB,SAASC,SAAS,OAAO;IACzB,OAAOC,OAAO,OAAO;IACrB,WAAWC,kBAAkB,OAAO;IACpC,OAAOC,OAAO,OAAO;IACrB,QAAQC,QAAQ,OAAO;AACzB"}
@@ -1,5 +1,5 @@
1
1
  import type { Locale } from '../../i18n';
2
- import type { AnnotationArea, AnnotationDifferenceLine, AnnotationHorizontalLine, AnnotationPoint, AnnotationVerticalLine, BackgroundColor, Brush, Color, Dataset, Label, Legend, Page, LineStyle, PointStyle, Theme, Tooltip, CrosshairLine, XBandAxis, YLinearAxis, Sort, SortLegend, DimensionLinkage, LineMeasure, LineDimension, RegionPadding } from '../../properties';
2
+ import type { AnnotationArea, AnnotationDifferenceLine, AnnotationHorizontalLine, AnnotationPoint, AnnotationVerticalLine, BackgroundColor, Brush, Color, Dataset, Label, Legend, Page, LineStyle, PointStyle, Theme, Tooltip, CrosshairLine, XBandAxis, YLinearAxis, Sort, SortLegend, DimensionLinkage, LineMeasure, LineDimension, RegionPadding, LineAreaAnimation } from '../../properties';
3
3
  /**
4
4
  * @description 折线图,适用于展示数据随时间或有序类别变化的趋势,通过线段连接数据点形成趋势线
5
5
  * 适用场景:
@@ -86,6 +86,11 @@ export interface Line {
86
86
  * @description 框选配置,用于开启/关闭 brush 框选能力
87
87
  */
88
88
  brush?: Brush;
89
+ /**
90
+ * 动画配置
91
+ * @description 图表动画配置,按图表类型约束可选效果
92
+ */
93
+ animation?: LineAreaAnimation;
89
94
  /**
90
95
  * x轴
91
96
  * @description 类目轴, x轴配置, 用于定义图表的x轴, 包括x轴的位置, 格式, 样式等.
@@ -466,6 +466,46 @@ export declare const zLine: z.ZodObject<{
466
466
  lineWidth: z.ZodOptional<z.ZodNumber>;
467
467
  }, z.core.$strip>>;
468
468
  }, z.core.$strip>>>;
469
+ animation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
470
+ enable: z.ZodOptional<z.ZodBoolean>;
471
+ params: z.ZodOptional<z.ZodObject<{
472
+ appear: z.ZodOptional<z.ZodObject<{
473
+ enable: z.ZodOptional<z.ZodBoolean>;
474
+ effects: z.ZodOptional<z.ZodArray<z.ZodEnum<{
475
+ [x: string]: string;
476
+ }>>>;
477
+ ease: z.ZodOptional<z.ZodString>;
478
+ duration: z.ZodOptional<z.ZodNumber>;
479
+ color: z.ZodOptional<z.ZodString>;
480
+ }, z.core.$strip>>;
481
+ update: z.ZodOptional<z.ZodObject<{
482
+ enable: z.ZodOptional<z.ZodBoolean>;
483
+ effects: z.ZodOptional<z.ZodArray<z.ZodEnum<{
484
+ [x: string]: string;
485
+ }>>>;
486
+ ease: z.ZodOptional<z.ZodString>;
487
+ duration: z.ZodOptional<z.ZodNumber>;
488
+ color: z.ZodOptional<z.ZodString>;
489
+ }, z.core.$strip>>;
490
+ loop: z.ZodOptional<z.ZodObject<{
491
+ atmosphere?: z.ZodOptional<z.ZodObject<{
492
+ ease: z.ZodOptional<z.ZodString>;
493
+ color: z.ZodOptional<z.ZodString>;
494
+ }, z.core.$strip>> | undefined;
495
+ loop?: z.ZodOptional<z.ZodObject<{
496
+ enable: z.ZodOptional<z.ZodBoolean>;
497
+ effects: z.ZodOptional<z.ZodArray<z.ZodEnum<{
498
+ [x: string]: string;
499
+ }>>>;
500
+ ease: z.ZodOptional<z.ZodString>;
501
+ duration: z.ZodOptional<z.ZodNumber>;
502
+ color: z.ZodOptional<z.ZodString>;
503
+ }, z.core.$strip>> | undefined;
504
+ enable: z.ZodOptional<z.ZodBoolean>;
505
+ interval: z.ZodOptional<z.ZodNumber>;
506
+ }, z.core.$strip>>;
507
+ }, z.core.$strip>>;
508
+ }, z.core.$strip>>>;
469
509
  xAxis: z.ZodOptional<z.ZodNullable<z.ZodObject<{
470
510
  visible: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
471
511
  labelAutoHide: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
@@ -2207,6 +2247,11 @@ export declare const zLine: z.ZodObject<{
2207
2247
  textColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2208
2248
  textBackgroundColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2209
2249
  lineColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2250
+ lineStyle: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
2251
+ solid: "solid";
2252
+ dashed: "dashed";
2253
+ dotted: "dotted";
2254
+ }>>>;
2210
2255
  }, z.core.$strip>>, z.ZodObject<{
2211
2256
  start: z.ZodObject<{
2212
2257
  selector: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>, z.ZodObject<{
@@ -2358,6 +2403,11 @@ export declare const zLine: z.ZodObject<{
2358
2403
  textColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2359
2404
  textBackgroundColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2360
2405
  lineColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2406
+ lineStyle: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
2407
+ solid: "solid";
2408
+ dashed: "dashed";
2409
+ dotted: "dotted";
2410
+ }>>>;
2361
2411
  }, z.core.$strip>]>>>;
2362
2412
  dimensionLinkage: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2363
2413
  enable: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
@@ -1,5 +1,5 @@
1
1
  import { zLocale } from "../../i18n/index.js";
2
- import { zAnnotationArea, zAnnotationDifferenceLine, zAnnotationHorizontalLine, zAnnotationPoint, zAnnotationVerticalLine, zBackgroundColor, zBrush, zColor, zCrosshairLine, zDataset, zDimensionLinkage, zDimensions, zEncoding, zLabel, zLegend, zLineStyle, zMeasures, zPage, zPointStyle, zRegionPadding, zSort, zSortLegend, zTheme, zTooltip, zXBandAxis, zYLinearAxis } from "../../properties/index.js";
2
+ import { zAnnotationArea, zAnnotationDifferenceLine, zAnnotationHorizontalLine, zAnnotationPoint, zAnnotationVerticalLine, zBackgroundColor, zBrush, zColor, zCrosshairLine, zDataset, zDimensionLinkage, zDimensions, zEncoding, zLabel, zLegend, zLineAreaAnimation, zLineStyle, zMeasures, zPage, zPointStyle, zRegionPadding, zSort, zSortLegend, zTheme, zTooltip, zXBandAxis, zYLinearAxis } from "../../properties/index.js";
3
3
  import { z } from "zod";
4
4
  const zLine = z.object({
5
5
  chartType: z.literal('line'),
@@ -15,6 +15,7 @@ const zLine = z.object({
15
15
  regionPadding: zRegionPadding.nullish(),
16
16
  tooltip: zTooltip.nullish(),
17
17
  brush: zBrush.nullish(),
18
+ animation: zLineAreaAnimation.nullish(),
18
19
  xAxis: zXBandAxis.nullish(),
19
20
  yAxis: zYLinearAxis.nullish(),
20
21
  crosshairLine: zCrosshairLine.nullish(),
@@ -1 +1 @@
1
- {"version":3,"file":"types/chartType/line/zLine.js","sources":["../../../../../src/types/chartType/line/zLine.ts"],"sourcesContent":["import { zLocale } from '../../i18n'\nimport {\n zAnnotationArea,\n zAnnotationDifferenceLine,\n zAnnotationHorizontalLine,\n zAnnotationPoint,\n zAnnotationVerticalLine,\n zBackgroundColor,\n zColor,\n zCrosshairLine,\n zDataset,\n zDimensionLinkage,\n zDimensions,\n zEncoding,\n zLabel,\n zLegend,\n zLineStyle,\n zMeasures,\n zPointStyle,\n zRegionPadding,\n zSort,\n zSortLegend,\n zTheme,\n zTooltip,\n zBrush,\n zXBandAxis,\n zYLinearAxis,\n zPage,\n} from '../../properties'\n\nimport { z } from 'zod'\n\nexport const zLine = z.object({\n chartType: z.literal('line'),\n dataset: zDataset.nullish(),\n encoding: zEncoding.nullish(),\n dimensions: zDimensions.nullish(),\n measures: zMeasures.nullish(),\n page: zPage.nullish(),\n\n backgroundColor: zBackgroundColor.nullish(),\n color: zColor.nullish(),\n label: zLabel.nullish(),\n legend: zLegend.nullish(),\n regionPadding: zRegionPadding.nullish(),\n tooltip: zTooltip.nullish(),\n brush: zBrush.nullish(),\n xAxis: zXBandAxis.nullish(),\n yAxis: zYLinearAxis.nullish(),\n crosshairLine: zCrosshairLine.nullish(),\n sort: zSort.nullish(),\n sortLegend: zSortLegend.nullish(),\n theme: zTheme.nullish(),\n pointStyle: z.array(zPointStyle).or(zPointStyle).nullish(),\n lineStyle: z.array(zLineStyle).or(zLineStyle).nullish(),\n annotationPoint: z.array(zAnnotationPoint).or(zAnnotationPoint).nullish(),\n annotationVerticalLine: z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).nullish(),\n annotationHorizontalLine: z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).nullish(),\n annotationArea: z.array(zAnnotationArea).or(zAnnotationArea).nullish(),\n annotationDifferenceLine: z.array(zAnnotationDifferenceLine).or(zAnnotationDifferenceLine).nullish(),\n dimensionLinkage: zDimensionLinkage.nullish(),\n locale: zLocale.nullish(),\n})\n"],"names":["zLine","z","zDataset","zEncoding","zDimensions","zMeasures","zPage","zBackgroundColor","zColor","zLabel","zLegend","zRegionPadding","zTooltip","zBrush","zXBandAxis","zYLinearAxis","zCrosshairLine","zSort","zSortLegend","zTheme","zPointStyle","zLineStyle","zAnnotationPoint","zAnnotationVerticalLine","zAnnotationHorizontalLine","zAnnotationArea","zAnnotationDifferenceLine","zDimensionLinkage","zLocale"],"mappings":";;;AAgCO,MAAMA,QAAQC,EAAE,MAAM,CAAC;IAC5B,WAAWA,EAAE,OAAO,CAAC;IACrB,SAASC,SAAS,OAAO;IACzB,UAAUC,UAAU,OAAO;IAC3B,YAAYC,YAAY,OAAO;IAC/B,UAAUC,UAAU,OAAO;IAC3B,MAAMC,MAAM,OAAO;IAEnB,iBAAiBC,iBAAiB,OAAO;IACzC,OAAOC,OAAO,OAAO;IACrB,OAAOC,OAAO,OAAO;IACrB,QAAQC,QAAQ,OAAO;IACvB,eAAeC,eAAe,OAAO;IACrC,SAASC,SAAS,OAAO;IACzB,OAAOC,OAAO,OAAO;IACrB,OAAOC,WAAW,OAAO;IACzB,OAAOC,aAAa,OAAO;IAC3B,eAAeC,eAAe,OAAO;IACrC,MAAMC,MAAM,OAAO;IACnB,YAAYC,YAAY,OAAO;IAC/B,OAAOC,OAAO,OAAO;IACrB,YAAYlB,EAAE,KAAK,CAACmB,aAAa,EAAE,CAACA,aAAa,OAAO;IACxD,WAAWnB,EAAE,KAAK,CAACoB,YAAY,EAAE,CAACA,YAAY,OAAO;IACrD,iBAAiBpB,EAAE,KAAK,CAACqB,kBAAkB,EAAE,CAACA,kBAAkB,OAAO;IACvE,wBAAwBrB,EAAE,KAAK,CAACsB,yBAAyB,EAAE,CAACA,yBAAyB,OAAO;IAC5F,0BAA0BtB,EAAE,KAAK,CAACuB,2BAA2B,EAAE,CAACA,2BAA2B,OAAO;IAClG,gBAAgBvB,EAAE,KAAK,CAACwB,iBAAiB,EAAE,CAACA,iBAAiB,OAAO;IACpE,0BAA0BxB,EAAE,KAAK,CAACyB,2BAA2B,EAAE,CAACA,2BAA2B,OAAO;IAClG,kBAAkBC,kBAAkB,OAAO;IAC3C,QAAQC,QAAQ,OAAO;AACzB"}
1
+ {"version":3,"file":"types/chartType/line/zLine.js","sources":["../../../../../src/types/chartType/line/zLine.ts"],"sourcesContent":["import { zLocale } from '../../i18n'\nimport {\n zAnnotationArea,\n zAnnotationDifferenceLine,\n zAnnotationHorizontalLine,\n zAnnotationPoint,\n zAnnotationVerticalLine,\n zBackgroundColor,\n zColor,\n zCrosshairLine,\n zDataset,\n zDimensionLinkage,\n zDimensions,\n zEncoding,\n zLabel,\n zLegend,\n zLineStyle,\n zMeasures,\n zPointStyle,\n zRegionPadding,\n zSort,\n zSortLegend,\n zTheme,\n zTooltip,\n zBrush,\n zXBandAxis,\n zYLinearAxis,\n zPage,\n zLineAreaAnimation,\n} from '../../properties'\n\nimport { z } from 'zod'\n\nexport const zLine = z.object({\n chartType: z.literal('line'),\n dataset: zDataset.nullish(),\n encoding: zEncoding.nullish(),\n dimensions: zDimensions.nullish(),\n measures: zMeasures.nullish(),\n page: zPage.nullish(),\n\n backgroundColor: zBackgroundColor.nullish(),\n color: zColor.nullish(),\n label: zLabel.nullish(),\n legend: zLegend.nullish(),\n regionPadding: zRegionPadding.nullish(),\n tooltip: zTooltip.nullish(),\n brush: zBrush.nullish(),\n animation: zLineAreaAnimation.nullish(),\n xAxis: zXBandAxis.nullish(),\n yAxis: zYLinearAxis.nullish(),\n crosshairLine: zCrosshairLine.nullish(),\n sort: zSort.nullish(),\n sortLegend: zSortLegend.nullish(),\n theme: zTheme.nullish(),\n pointStyle: z.array(zPointStyle).or(zPointStyle).nullish(),\n lineStyle: z.array(zLineStyle).or(zLineStyle).nullish(),\n annotationPoint: z.array(zAnnotationPoint).or(zAnnotationPoint).nullish(),\n annotationVerticalLine: z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).nullish(),\n annotationHorizontalLine: z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).nullish(),\n annotationArea: z.array(zAnnotationArea).or(zAnnotationArea).nullish(),\n annotationDifferenceLine: z.array(zAnnotationDifferenceLine).or(zAnnotationDifferenceLine).nullish(),\n dimensionLinkage: zDimensionLinkage.nullish(),\n locale: zLocale.nullish(),\n})\n"],"names":["zLine","z","zDataset","zEncoding","zDimensions","zMeasures","zPage","zBackgroundColor","zColor","zLabel","zLegend","zRegionPadding","zTooltip","zBrush","zLineAreaAnimation","zXBandAxis","zYLinearAxis","zCrosshairLine","zSort","zSortLegend","zTheme","zPointStyle","zLineStyle","zAnnotationPoint","zAnnotationVerticalLine","zAnnotationHorizontalLine","zAnnotationArea","zAnnotationDifferenceLine","zDimensionLinkage","zLocale"],"mappings":";;;AAiCO,MAAMA,QAAQC,EAAE,MAAM,CAAC;IAC5B,WAAWA,EAAE,OAAO,CAAC;IACrB,SAASC,SAAS,OAAO;IACzB,UAAUC,UAAU,OAAO;IAC3B,YAAYC,YAAY,OAAO;IAC/B,UAAUC,UAAU,OAAO;IAC3B,MAAMC,MAAM,OAAO;IAEnB,iBAAiBC,iBAAiB,OAAO;IACzC,OAAOC,OAAO,OAAO;IACrB,OAAOC,OAAO,OAAO;IACrB,QAAQC,QAAQ,OAAO;IACvB,eAAeC,eAAe,OAAO;IACrC,SAASC,SAAS,OAAO;IACzB,OAAOC,OAAO,OAAO;IACrB,WAAWC,mBAAmB,OAAO;IACrC,OAAOC,WAAW,OAAO;IACzB,OAAOC,aAAa,OAAO;IAC3B,eAAeC,eAAe,OAAO;IACrC,MAAMC,MAAM,OAAO;IACnB,YAAYC,YAAY,OAAO;IAC/B,OAAOC,OAAO,OAAO;IACrB,YAAYnB,EAAE,KAAK,CAACoB,aAAa,EAAE,CAACA,aAAa,OAAO;IACxD,WAAWpB,EAAE,KAAK,CAACqB,YAAY,EAAE,CAACA,YAAY,OAAO;IACrD,iBAAiBrB,EAAE,KAAK,CAACsB,kBAAkB,EAAE,CAACA,kBAAkB,OAAO;IACvE,wBAAwBtB,EAAE,KAAK,CAACuB,yBAAyB,EAAE,CAACA,yBAAyB,OAAO;IAC5F,0BAA0BvB,EAAE,KAAK,CAACwB,2BAA2B,EAAE,CAACA,2BAA2B,OAAO;IAClG,gBAAgBxB,EAAE,KAAK,CAACyB,iBAAiB,EAAE,CAACA,iBAAiB,OAAO;IACpE,0BAA0BzB,EAAE,KAAK,CAAC0B,2BAA2B,EAAE,CAACA,2BAA2B,OAAO;IAClG,kBAAkBC,kBAAkB,OAAO;IAC3C,QAAQC,QAAQ,OAAO;AACzB"}
@@ -1,5 +1,5 @@
1
1
  import type { Locale } from '../../i18n';
2
- import type { BackgroundColor, Color, Dataset, PieDimension, Legend, PieMeasure, PieLabel, Theme, Tooltip, Page } from '../../properties';
2
+ import type { BackgroundColor, Color, Dataset, PieDimension, Legend, PieMeasure, PieLabel, Theme, Tooltip, Page, PieLikeAnimation } from '../../properties';
3
3
  import type { Brush } from '../../properties';
4
4
  /**
5
5
  * @description 饼图,适用于展示单一维度数据的占比关系,通过扇形面积大小表示各类别占比
@@ -87,6 +87,11 @@ export interface Pie {
87
87
  * @description 框选配置,用于开启/关闭 brush 框选能力
88
88
  */
89
89
  brush?: Brush;
90
+ /**
91
+ * 动画配置
92
+ * @description 图表动画配置,按图表类型约束可选效果
93
+ */
94
+ animation?: PieLikeAnimation;
90
95
  /**
91
96
  * 图表的主题, 主题是优先级较低的功能配置, 包含所有图表类型共用的通用配置, 与单类图表类型共用的图表配置
92
97
  * @default light 默认为亮色主题