@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
@@ -466,6 +466,46 @@ export declare const zArea: 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>>>;
@@ -2516,6 +2556,11 @@ export declare const zArea: z.ZodObject<{
2516
2556
  textColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2517
2557
  textBackgroundColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2518
2558
  lineColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2559
+ lineStyle: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
2560
+ solid: "solid";
2561
+ dashed: "dashed";
2562
+ dotted: "dotted";
2563
+ }>>>;
2519
2564
  }, z.core.$strip>>, z.ZodObject<{
2520
2565
  start: z.ZodObject<{
2521
2566
  selector: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>, z.ZodObject<{
@@ -2667,6 +2712,11 @@ export declare const zArea: z.ZodObject<{
2667
2712
  textColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2668
2713
  textBackgroundColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2669
2714
  lineColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2715
+ lineStyle: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
2716
+ solid: "solid";
2717
+ dashed: "dashed";
2718
+ dotted: "dotted";
2719
+ }>>>;
2670
2720
  }, z.core.$strip>]>>>;
2671
2721
  dimensionLinkage: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2672
2722
  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, zAreaStyle, zBackgroundColor, zBrush, zColor, zCrosshairLine, zDataset, zDimensionLinkage, zDimensions, zEncoding, zLabel, zLegend, zLineStyle, zMeasures, zPage, zPointStyle, zRegionPadding, zTheme, zTooltip, zXBandAxis, zYLinearAxis } from "../../properties/index.js";
3
+ import { zAnnotationArea, zAnnotationDifferenceLine, zAnnotationHorizontalLine, zAnnotationPoint, zAnnotationVerticalLine, zAreaStyle, zBackgroundColor, zBrush, zColor, zCrosshairLine, zDataset, zDimensionLinkage, zDimensions, zEncoding, zLabel, zLegend, zLineAreaAnimation, zLineStyle, zMeasures, zPage, zPointStyle, zRegionPadding, zTheme, zTooltip, zXBandAxis, zYLinearAxis } from "../../properties/index.js";
4
4
  const zArea = z.object({
5
5
  chartType: z.literal('area'),
6
6
  dataset: zDataset.nullish(),
@@ -15,6 +15,7 @@ const zArea = 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/area/zArea.js","sources":["../../../../../src/types/chartType/area/zArea.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zLocale } from '../../i18n'\nimport {\n zAnnotationArea,\n zAnnotationDifferenceLine,\n zAnnotationHorizontalLine,\n zAnnotationPoint,\n zAnnotationVerticalLine,\n zAreaStyle,\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 zTheme,\n zTooltip,\n zBrush,\n zXBandAxis,\n zYLinearAxis,\n zPage,\n} from '../../properties'\n\nexport const zArea = z.object({\n chartType: z.literal('area'),\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 theme: zTheme.nullish(),\n pointStyle: z.array(zPointStyle).or(zPointStyle).nullish(),\n lineStyle: z.array(zLineStyle).or(zLineStyle).nullish(),\n areaStyle: z.array(zAreaStyle).or(zAreaStyle).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":["zArea","z","zDataset","zEncoding","zDimensions","zMeasures","zPage","zBackgroundColor","zColor","zLabel","zLegend","zRegionPadding","zTooltip","zBrush","zXBandAxis","zYLinearAxis","zCrosshairLine","zTheme","zPointStyle","zLineStyle","zAreaStyle","zAnnotationPoint","zAnnotationVerticalLine","zAnnotationHorizontalLine","zAnnotationArea","zAnnotationDifferenceLine","zDimensionLinkage","zLocale"],"mappings":";;;AA8BO,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,OAAOC,OAAO,OAAO;IACrB,YAAYhB,EAAE,KAAK,CAACiB,aAAa,EAAE,CAACA,aAAa,OAAO;IACxD,WAAWjB,EAAE,KAAK,CAACkB,YAAY,EAAE,CAACA,YAAY,OAAO;IACrD,WAAWlB,EAAE,KAAK,CAACmB,YAAY,EAAE,CAACA,YAAY,OAAO;IACrD,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,0BAA0BvB,EAAE,KAAK,CAACwB,2BAA2B,EAAE,CAACA,2BAA2B,OAAO;IAClG,kBAAkBC,kBAAkB,OAAO;IAC3C,QAAQC,QAAQ,OAAO;AACzB"}
1
+ {"version":3,"file":"types/chartType/area/zArea.js","sources":["../../../../../src/types/chartType/area/zArea.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zLocale } from '../../i18n'\nimport {\n zAnnotationArea,\n zAnnotationDifferenceLine,\n zAnnotationHorizontalLine,\n zAnnotationPoint,\n zAnnotationVerticalLine,\n zAreaStyle,\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 zTheme,\n zTooltip,\n zBrush,\n zXBandAxis,\n zYLinearAxis,\n zPage,\n zLineAreaAnimation,\n} from '../../properties'\n\nexport const zArea = z.object({\n chartType: z.literal('area'),\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 theme: zTheme.nullish(),\n pointStyle: z.array(zPointStyle).or(zPointStyle).nullish(),\n lineStyle: z.array(zLineStyle).or(zLineStyle).nullish(),\n areaStyle: z.array(zAreaStyle).or(zAreaStyle).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":["zArea","z","zDataset","zEncoding","zDimensions","zMeasures","zPage","zBackgroundColor","zColor","zLabel","zLegend","zRegionPadding","zTooltip","zBrush","zLineAreaAnimation","zXBandAxis","zYLinearAxis","zCrosshairLine","zTheme","zPointStyle","zLineStyle","zAreaStyle","zAnnotationPoint","zAnnotationVerticalLine","zAnnotationHorizontalLine","zAnnotationArea","zAnnotationDifferenceLine","zDimensionLinkage","zLocale"],"mappings":";;;AA+BO,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,OAAOC,OAAO,OAAO;IACrB,YAAYjB,EAAE,KAAK,CAACkB,aAAa,EAAE,CAACA,aAAa,OAAO;IACxD,WAAWlB,EAAE,KAAK,CAACmB,YAAY,EAAE,CAACA,YAAY,OAAO;IACrD,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,5 +1,5 @@
1
1
  import type { Locale } from '../../i18n';
2
- import type { AnnotationArea, AnnotationHorizontalLine, AnnotationPoint, AnnotationVerticalLine, AreaStyle, BackgroundColor, Brush, Color, Dataset, Label, Legend, LineStyle, PointStyle, Theme, Tooltip, XBandAxis, YLinearAxis, CrosshairLine, Sort, SortLegend, DimensionLinkage, ColumnDimension, ColumnMeasure, Page, RegionPadding } from '../../properties';
2
+ import type { AnnotationArea, AnnotationHorizontalLine, AnnotationPoint, AnnotationVerticalLine, AreaStyle, BackgroundColor, Brush, Color, Dataset, Label, Legend, LineStyle, PointStyle, Theme, Tooltip, XBandAxis, YLinearAxis, CrosshairLine, Sort, SortLegend, DimensionLinkage, ColumnDimension, ColumnMeasure, Page, RegionPadding, LineAreaAnimation } from '../../properties';
3
3
  /**
4
4
  * @description 百分比面积图,适用于展示多类别占比随时间变化的趋势,Y轴以百分比形式展示占比关系
5
5
  * 适用场景:
@@ -92,6 +92,11 @@ export interface AreaPercent {
92
92
  * @description 框选配置,用于开启/关闭 brush 框选能力
93
93
  */
94
94
  brush?: Brush;
95
+ /**
96
+ * 动画配置
97
+ * @description 图表动画配置,按图表类型约束可选效果
98
+ */
99
+ animation?: LineAreaAnimation;
95
100
  /**
96
101
  * x轴
97
102
  * @description 类目轴, x轴配置, 用于定义图表的x轴, 包括x轴的位置, 格式, 样式等.
@@ -466,6 +466,46 @@ export declare const zAreaPercent: 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, zAreaStyle, zBackgroundColor, zBrush, zColor, zCrosshairLine, zDataset, zDimensionLinkage, zDimensions, zEncoding, zLabel, zLegend, zLineStyle, zMeasures, zPage, zPointStyle, zRegionPadding, zTheme, zTooltip, zXBandAxis, zYLinearAxis } from "../../properties/index.js";
2
+ import { zAnnotationArea, zAnnotationHorizontalLine, zAnnotationPoint, zAnnotationVerticalLine, zAreaStyle, zBackgroundColor, zBrush, zColor, zCrosshairLine, zDataset, zDimensionLinkage, zDimensions, zEncoding, zLabel, zLegend, zLineAreaAnimation, zLineStyle, zMeasures, zPage, zPointStyle, zRegionPadding, zTheme, zTooltip, zXBandAxis, zYLinearAxis } from "../../properties/index.js";
3
3
  import { z } from "zod";
4
4
  const zAreaPercent = z.object({
5
5
  chartType: z.literal('areaPercent'),
@@ -15,6 +15,7 @@ const zAreaPercent = 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/areaPercent/zAreaPercent.js","sources":["../../../../../src/types/chartType/areaPercent/zAreaPercent.ts"],"sourcesContent":["import { zLocale } from '../../i18n'\nimport {\n zAnnotationArea,\n zAnnotationHorizontalLine,\n zAnnotationPoint,\n zAnnotationVerticalLine,\n zAreaStyle,\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 zTheme,\n zTooltip,\n zBrush,\n zXBandAxis,\n zYLinearAxis,\n zPage,\n} from '../../properties'\n\nimport { z } from 'zod'\n\nexport const zAreaPercent = z.object({\n chartType: z.literal('areaPercent'),\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 theme: zTheme.nullish(),\n pointStyle: z.array(zPointStyle).or(zPointStyle).nullish(),\n lineStyle: z.array(zLineStyle).or(zLineStyle).nullish(),\n areaStyle: z.array(zAreaStyle).or(zAreaStyle).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":["zAreaPercent","z","zDataset","zEncoding","zDimensions","zMeasures","zPage","zBackgroundColor","zColor","zLabel","zLegend","zRegionPadding","zTooltip","zBrush","zXBandAxis","zYLinearAxis","zCrosshairLine","zTheme","zPointStyle","zLineStyle","zAreaStyle","zAnnotationPoint","zAnnotationVerticalLine","zAnnotationHorizontalLine","zAnnotationArea","zDimensionLinkage","zLocale"],"mappings":";;;AA8BO,MAAMA,eAAeC,EAAE,MAAM,CAAC;IACnC,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,OAAOC,OAAO,OAAO;IACrB,YAAYhB,EAAE,KAAK,CAACiB,aAAa,EAAE,CAACA,aAAa,OAAO;IACxD,WAAWjB,EAAE,KAAK,CAACkB,YAAY,EAAE,CAACA,YAAY,OAAO;IACrD,WAAWlB,EAAE,KAAK,CAACmB,YAAY,EAAE,CAACA,YAAY,OAAO;IACrD,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/areaPercent/zAreaPercent.js","sources":["../../../../../src/types/chartType/areaPercent/zAreaPercent.ts"],"sourcesContent":["import { zLocale } from '../../i18n'\nimport {\n zAnnotationArea,\n zAnnotationHorizontalLine,\n zAnnotationPoint,\n zAnnotationVerticalLine,\n zAreaStyle,\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 zTheme,\n zTooltip,\n zBrush,\n zXBandAxis,\n zYLinearAxis,\n zPage,\n zLineAreaAnimation,\n} from '../../properties'\n\nimport { z } from 'zod'\n\nexport const zAreaPercent = z.object({\n chartType: z.literal('areaPercent'),\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 theme: zTheme.nullish(),\n pointStyle: z.array(zPointStyle).or(zPointStyle).nullish(),\n lineStyle: z.array(zLineStyle).or(zLineStyle).nullish(),\n areaStyle: z.array(zAreaStyle).or(zAreaStyle).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":["zAreaPercent","z","zDataset","zEncoding","zDimensions","zMeasures","zPage","zBackgroundColor","zColor","zLabel","zLegend","zRegionPadding","zTooltip","zBrush","zLineAreaAnimation","zXBandAxis","zYLinearAxis","zCrosshairLine","zTheme","zPointStyle","zLineStyle","zAreaStyle","zAnnotationPoint","zAnnotationVerticalLine","zAnnotationHorizontalLine","zAnnotationArea","zDimensionLinkage","zLocale"],"mappings":";;;AA+BO,MAAMA,eAAeC,EAAE,MAAM,CAAC;IACnC,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,OAAOC,OAAO,OAAO;IACrB,YAAYjB,EAAE,KAAK,CAACkB,aAAa,EAAE,CAACA,aAAa,OAAO;IACxD,WAAWlB,EAAE,KAAK,CAACmB,YAAY,EAAE,CAACA,YAAY,OAAO;IACrD,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,kBAAkBC,kBAAkB,OAAO;IAC3C,QAAQC,QAAQ,OAAO;AACzB"}
@@ -1,5 +1,5 @@
1
1
  import { type Locale } from '../../i18n';
2
- import type { BarDimension, BarMaxWidth, BarMeasure, DimensionLinkage, RegionPadding, Sort, SortLegend } from '../../properties';
2
+ import type { BarDimension, BarLikeAnimation, BarMaxWidth, BarMeasure, DimensionLinkage, RegionPadding, Sort, SortLegend } from '../../properties';
3
3
  import { type AnnotationArea, type AnnotationDifferenceLine, type AnnotationHorizontalLine, type AnnotationPoint, type AnnotationVerticalLine, type BackgroundColor, type Brush, type BarStyle, type Color, type CrosshairRect, type Dataset, type Label, type Legend, type StackCornerRadius, type Theme, type Tooltip, type XLinearAxis, type YBandAxis, type Page } from '../../properties';
4
4
  /**
5
5
  * @description 条形图,适用于横向数据对比场景,Y轴为类目轴(分类数据),X轴为数值轴(连续数据),柱子横向排列
@@ -86,6 +86,11 @@ export interface Bar {
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 zBar: 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
  min: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -1845,6 +1885,11 @@ export declare const zBar: z.ZodObject<{
1845
1885
  textColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1846
1886
  textBackgroundColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1847
1887
  lineColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1888
+ lineStyle: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1889
+ solid: "solid";
1890
+ dashed: "dashed";
1891
+ dotted: "dotted";
1892
+ }>>>;
1848
1893
  }, z.core.$strip>>, z.ZodObject<{
1849
1894
  start: z.ZodObject<{
1850
1895
  selector: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>, z.ZodObject<{
@@ -1996,6 +2041,11 @@ export declare const zBar: z.ZodObject<{
1996
2041
  textColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1997
2042
  textBackgroundColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1998
2043
  lineColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2044
+ lineStyle: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
2045
+ solid: "solid";
2046
+ dashed: "dashed";
2047
+ dotted: "dotted";
2048
+ }>>>;
1999
2049
  }, z.core.$strip>]>>>;
2000
2050
  dimensionLinkage: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2001
2051
  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, zBarMaxWidth, zBarStyle, zBrush, zColor, zCrosshairRect, zDataset, zDimensionLinkage, zDimensions, zEncoding, zLabel, zLegend, zMeasures, zPage, zRegionPadding, zStackCornerRadius, zTheme, zTooltip, zXLinearAxis, zYBandAxis } from "../../properties/index.js";
2
+ import { zAnnotationArea, zAnnotationDifferenceLine, zAnnotationHorizontalLine, zAnnotationPoint, zAnnotationVerticalLine, zBackgroundColor, zBarLikeAnimation, zBarMaxWidth, zBarStyle, zBrush, zColor, zCrosshairRect, zDataset, zDimensionLinkage, zDimensions, zEncoding, zLabel, zLegend, zMeasures, zPage, zRegionPadding, zStackCornerRadius, zTheme, zTooltip, zXLinearAxis, zYBandAxis } from "../../properties/index.js";
3
3
  import { z } from "zod";
4
4
  const zBar = z.object({
5
5
  chartType: z.literal('bar'),
@@ -15,6 +15,7 @@ const zBar = z.object({
15
15
  regionPadding: zRegionPadding.nullish(),
16
16
  tooltip: zTooltip.nullish(),
17
17
  brush: zBrush.nullish(),
18
+ animation: zBarLikeAnimation.nullish(),
18
19
  xAxis: zXLinearAxis.nullish(),
19
20
  yAxis: zYBandAxis.nullish(),
20
21
  crosshairRect: zCrosshairRect.nullish(),
@@ -1 +1 @@
1
- {"version":3,"file":"types/chartType/bar/zBar.js","sources":["../../../../../src/types/chartType/bar/zBar.ts"],"sourcesContent":["import { 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 zRegionPadding,\n zStackCornerRadius,\n zTheme,\n zTooltip,\n zBrush,\n zXLinearAxis,\n zYBandAxis,\n zPage,\n} from '../../properties'\n\nimport { z } from 'zod'\n\nexport const zBar = z.object({\n chartType: z.literal('bar'),\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: zXLinearAxis.nullish(),\n yAxis: zYBandAxis.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 dimensionLinkage: zDimensionLinkage.nullish(),\n locale: zLocale.nullish(),\n})\n"],"names":["zBar","z","zDataset","zEncoding","zDimensions","zMeasures","zPage","zBackgroundColor","zColor","zLabel","zLegend","zRegionPadding","zTooltip","zBrush","zXLinearAxis","zYBandAxis","zCrosshairRect","zStackCornerRadius","zBarMaxWidth","zTheme","zBarStyle","zAnnotationPoint","zAnnotationVerticalLine","zAnnotationHorizontalLine","zAnnotationArea","zAnnotationDifferenceLine","zDimensionLinkage","zLocale"],"mappings":";;;AA+BO,MAAMA,OAAOC,EAAE,MAAM,CAAC;IAC3B,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,aAAa,OAAO;IAC3B,OAAOC,WAAW,OAAO;IACzB,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,0BAA0BvB,EAAE,KAAK,CAACwB,2BAA2B,EAAE,CAACA,2BAA2B,OAAO;IAClG,kBAAkBC,kBAAkB,OAAO;IAC3C,QAAQC,QAAQ,OAAO;AACzB"}
1
+ {"version":3,"file":"types/chartType/bar/zBar.js","sources":["../../../../../src/types/chartType/bar/zBar.ts"],"sourcesContent":["import { 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 zRegionPadding,\n zStackCornerRadius,\n zTheme,\n zTooltip,\n zBrush,\n zXLinearAxis,\n zYBandAxis,\n zPage,\n zBarLikeAnimation,\n} from '../../properties'\n\nimport { z } from 'zod'\n\nexport const zBar = z.object({\n chartType: z.literal('bar'),\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: zXLinearAxis.nullish(),\n yAxis: zYBandAxis.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 dimensionLinkage: zDimensionLinkage.nullish(),\n locale: zLocale.nullish(),\n})\n"],"names":["zBar","z","zDataset","zEncoding","zDimensions","zMeasures","zPage","zBackgroundColor","zColor","zLabel","zLegend","zRegionPadding","zTooltip","zBrush","zBarLikeAnimation","zXLinearAxis","zYBandAxis","zCrosshairRect","zStackCornerRadius","zBarMaxWidth","zTheme","zBarStyle","zAnnotationPoint","zAnnotationVerticalLine","zAnnotationHorizontalLine","zAnnotationArea","zAnnotationDifferenceLine","zDimensionLinkage","zLocale"],"mappings":";;;AAgCO,MAAMA,OAAOC,EAAE,MAAM,CAAC;IAC3B,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,aAAa,OAAO;IAC3B,OAAOC,WAAW,OAAO;IACzB,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,0BAA0BxB,EAAE,KAAK,CAACyB,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, XLinearAxis, YBandAxis, Sort, SortLegend, BarMaxWidth, BarGapInGroup, DimensionLinkage, BarDimension, BarMeasure, Page, RegionPadding } from '../../properties';
2
+ import type { AnnotationArea, AnnotationDifferenceLine, AnnotationHorizontalLine, AnnotationPoint, AnnotationVerticalLine, BackgroundColor, Brush, BarStyle, Color, CrosshairRect, Dataset, Label, Legend, StackCornerRadius, Theme, Tooltip, XLinearAxis, YBandAxis, Sort, SortLegend, BarMaxWidth, BarGapInGroup, DimensionLinkage, BarDimension, BarMeasure, Page, RegionPadding, BarLikeAnimation } from '../../properties';
3
3
  /**
4
4
  * @description 并列条形图,适用于多指标横向并行对比场景,多个条形平行排列展示不同指标值
5
5
  * 适用场景:
@@ -83,6 +83,11 @@ export interface BarParallel {
83
83
  * @description 框选配置,用于开启/关闭 brush 框选能力
84
84
  */
85
85
  brush?: Brush;
86
+ /**
87
+ * 动画配置
88
+ * @description 图表动画配置,按图表类型约束可选效果
89
+ */
90
+ animation?: BarLikeAnimation;
86
91
  /**
87
92
  * @description x轴, 数值轴, x轴配置, 用于定义图表的x轴, 包括x轴的位置, 格式, 样式等.
88
93
  */
@@ -462,6 +462,46 @@ export declare const zBarParallel: z.ZodObject<{
462
462
  lineWidth: z.ZodOptional<z.ZodNumber>;
463
463
  }, z.core.$strip>>;
464
464
  }, z.core.$strip>>>;
465
+ animation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
466
+ enable: z.ZodOptional<z.ZodBoolean>;
467
+ params: z.ZodOptional<z.ZodObject<{
468
+ appear: z.ZodOptional<z.ZodObject<{
469
+ enable: z.ZodOptional<z.ZodBoolean>;
470
+ effects: z.ZodOptional<z.ZodArray<z.ZodEnum<{
471
+ [x: string]: string;
472
+ }>>>;
473
+ ease: z.ZodOptional<z.ZodString>;
474
+ duration: z.ZodOptional<z.ZodNumber>;
475
+ color: z.ZodOptional<z.ZodString>;
476
+ }, z.core.$strip>>;
477
+ update: z.ZodOptional<z.ZodObject<{
478
+ enable: z.ZodOptional<z.ZodBoolean>;
479
+ effects: z.ZodOptional<z.ZodArray<z.ZodEnum<{
480
+ [x: string]: string;
481
+ }>>>;
482
+ ease: z.ZodOptional<z.ZodString>;
483
+ duration: z.ZodOptional<z.ZodNumber>;
484
+ color: z.ZodOptional<z.ZodString>;
485
+ }, z.core.$strip>>;
486
+ loop: z.ZodOptional<z.ZodObject<{
487
+ atmosphere?: z.ZodOptional<z.ZodObject<{
488
+ ease: z.ZodOptional<z.ZodString>;
489
+ color: z.ZodOptional<z.ZodString>;
490
+ }, z.core.$strip>> | undefined;
491
+ loop?: z.ZodOptional<z.ZodObject<{
492
+ enable: z.ZodOptional<z.ZodBoolean>;
493
+ effects: z.ZodOptional<z.ZodArray<z.ZodEnum<{
494
+ [x: string]: string;
495
+ }>>>;
496
+ ease: z.ZodOptional<z.ZodString>;
497
+ duration: z.ZodOptional<z.ZodNumber>;
498
+ color: z.ZodOptional<z.ZodString>;
499
+ }, z.core.$strip>> | undefined;
500
+ enable: z.ZodOptional<z.ZodBoolean>;
501
+ interval: z.ZodOptional<z.ZodNumber>;
502
+ }, z.core.$strip>>;
503
+ }, z.core.$strip>>;
504
+ }, z.core.$strip>>>;
465
505
  xAxis: z.ZodOptional<z.ZodNullable<z.ZodObject<{
466
506
  visible: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
467
507
  min: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -1842,6 +1882,11 @@ export declare const zBarParallel: z.ZodObject<{
1842
1882
  textColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1843
1883
  textBackgroundColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1844
1884
  lineColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1885
+ lineStyle: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1886
+ solid: "solid";
1887
+ dashed: "dashed";
1888
+ dotted: "dotted";
1889
+ }>>>;
1845
1890
  }, z.core.$strip>>, z.ZodObject<{
1846
1891
  start: z.ZodObject<{
1847
1892
  selector: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>, z.ZodObject<{
@@ -1993,6 +2038,11 @@ export declare const zBarParallel: z.ZodObject<{
1993
2038
  textColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1994
2039
  textBackgroundColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1995
2040
  lineColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2041
+ lineStyle: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
2042
+ solid: "solid";
2043
+ dashed: "dashed";
2044
+ dotted: "dotted";
2045
+ }>>>;
1996
2046
  }, z.core.$strip>]>>>;
1997
2047
  dimensionLinkage: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1998
2048
  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, zRegionPadding, zStackCornerRadius, zTheme, zTooltip, zXLinearAxis, zYBandAxis } 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, zRegionPadding, zStackCornerRadius, zTheme, zTooltip, zXLinearAxis, zYBandAxis } from "../../properties/index.js";
4
4
  const zBarParallel = z.object({
5
5
  chartType: z.literal('barParallel'),
6
6
  dataset: zDataset.nullish(),
@@ -14,6 +14,7 @@ const zBarParallel = z.object({
14
14
  regionPadding: zRegionPadding.nullish(),
15
15
  tooltip: zTooltip.nullish(),
16
16
  brush: zBrush.nullish(),
17
+ animation: zBarLikeAnimation.nullish(),
17
18
  xAxis: zXLinearAxis.nullish(),
18
19
  yAxis: zYBandAxis.nullish(),
19
20
  crosshairRect: zCrosshairRect.nullish(),
@@ -1 +1 @@
1
- {"version":3,"file":"types/chartType/barParallel/zBarParallel.js","sources":["../../../../../src/types/chartType/barParallel/zBarParallel.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 zXLinearAxis,\n zYBandAxis,\n zPage,\n} from '../../properties'\n\nexport const zBarParallel = z.object({\n chartType: z.literal('barParallel'),\n dataset: zDataset.nullish(),\n encoding: zEncoding.nullish(),\n dimensions: zDimensions.nullish(),\n measures: zMeasures.nullish(),\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: zXLinearAxis.nullish(),\n yAxis: zYBandAxis.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 page: zPage.nullish(),\n})\n"],"names":["zBarParallel","z","zDataset","zEncoding","zDimensions","zMeasures","zBackgroundColor","zColor","zLabel","zLegend","zRegionPadding","zTooltip","zBrush","zXLinearAxis","zYBandAxis","zCrosshairRect","zStackCornerRadius","zBarMaxWidth","zBarGapInGroup","zTheme","zBarStyle","zAnnotationPoint","zAnnotationVerticalLine","zAnnotationHorizontalLine","zAnnotationArea","zAnnotationDifferenceLine","zDimensionLinkage","zLocale","zPage"],"mappings":";;;AA+BO,MAAMA,eAAeC,EAAE,MAAM,CAAC;IACnC,WAAWA,EAAE,OAAO,CAAC;IACrB,SAASC,SAAS,OAAO;IACzB,UAAUC,UAAU,OAAO;IAC3B,YAAYC,YAAY,OAAO;IAC/B,UAAUC,UAAU,OAAO;IAC3B,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,aAAa,OAAO;IAC3B,OAAOC,WAAW,OAAO;IACzB,eAAeC,eAAe,OAAO;IACrC,mBAAmBC,mBAAmB,OAAO;IAC7C,aAAaC,aAAa,OAAO;IACjC,eAAeC,eAAe,OAAO;IACrC,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,0BAA0BvB,EAAE,KAAK,CAACwB,2BAA2B,EAAE,CAACA,2BAA2B,OAAO;IAClG,kBAAkBC,kBAAkB,OAAO;IAC3C,QAAQC,QAAQ,OAAO;IACvB,MAAMC,MAAM,OAAO;AACrB"}
1
+ {"version":3,"file":"types/chartType/barParallel/zBarParallel.js","sources":["../../../../../src/types/chartType/barParallel/zBarParallel.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 zXLinearAxis,\n zYBandAxis,\n zPage,\n zBarLikeAnimation,\n} from '../../properties'\n\nexport const zBarParallel = z.object({\n chartType: z.literal('barParallel'),\n dataset: zDataset.nullish(),\n encoding: zEncoding.nullish(),\n dimensions: zDimensions.nullish(),\n measures: zMeasures.nullish(),\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: zXLinearAxis.nullish(),\n yAxis: zYBandAxis.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 page: zPage.nullish(),\n})\n"],"names":["zBarParallel","z","zDataset","zEncoding","zDimensions","zMeasures","zBackgroundColor","zColor","zLabel","zLegend","zRegionPadding","zTooltip","zBrush","zBarLikeAnimation","zXLinearAxis","zYBandAxis","zCrosshairRect","zStackCornerRadius","zBarMaxWidth","zBarGapInGroup","zTheme","zBarStyle","zAnnotationPoint","zAnnotationVerticalLine","zAnnotationHorizontalLine","zAnnotationArea","zAnnotationDifferenceLine","zDimensionLinkage","zLocale","zPage"],"mappings":";;;AAgCO,MAAMA,eAAeC,EAAE,MAAM,CAAC;IACnC,WAAWA,EAAE,OAAO,CAAC;IACrB,SAASC,SAAS,OAAO;IACzB,UAAUC,UAAU,OAAO;IAC3B,YAAYC,YAAY,OAAO;IAC/B,UAAUC,UAAU,OAAO;IAC3B,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,aAAa,OAAO;IAC3B,OAAOC,WAAW,OAAO;IACzB,eAAeC,eAAe,OAAO;IACrC,mBAAmBC,mBAAmB,OAAO;IAC7C,aAAaC,aAAa,OAAO;IACjC,eAAeC,eAAe,OAAO;IACrC,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,0BAA0BxB,EAAE,KAAK,CAACyB,2BAA2B,EAAE,CAACA,2BAA2B,OAAO;IAClG,kBAAkBC,kBAAkB,OAAO;IAC3C,QAAQC,QAAQ,OAAO;IACvB,MAAMC,MAAM,OAAO;AACrB"}
@@ -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, XLinearAxis, YBandAxis, Sort, SortLegend, BarMaxWidth, DimensionLinkage, BarDimension, BarMeasure, Page, RegionPadding } from '../../properties';
2
+ import type { AnnotationArea, AnnotationHorizontalLine, AnnotationPoint, AnnotationVerticalLine, BackgroundColor, Brush, BarStyle, Color, CrosshairRect, Dataset, Label, Legend, StackCornerRadius, Theme, Tooltip, XLinearAxis, YBandAxis, Sort, SortLegend, BarMaxWidth, DimensionLinkage, BarDimension, BarMeasure, Page, RegionPadding, BarLikeAnimation } from '../../properties';
3
3
  /**
4
4
  * @description 百分比条形图,适用于横向展示各类别占比关系的场景,X轴以百分比形式展示数据占比
5
5
  * 适用场景:
@@ -85,6 +85,11 @@ export interface BarPercent {
85
85
  * @description 框选配置,用于开启/关闭 brush 框选能力
86
86
  */
87
87
  brush?: Brush;
88
+ /**
89
+ * 动画配置
90
+ * @description 图表动画配置,按图表类型约束可选效果
91
+ */
92
+ animation?: BarLikeAnimation;
88
93
  /**
89
94
  * @description x轴, 数值轴, x轴配置, 用于定义图表的x轴, 包括x轴的位置, 格式, 样式等.
90
95
  */
@@ -466,6 +466,46 @@ export declare const zBarPercent: 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
  min: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -1,6 +1,6 @@
1
1
  import { z } from "zod";
2
2
  import { zLocale } from "../../i18n/index.js";
3
- import { zAnnotationArea, zAnnotationHorizontalLine, zAnnotationPoint, zAnnotationVerticalLine, zBackgroundColor, zBarMaxWidth, zBarStyle, zBrush, zColor, zCrosshairRect, zDataset, zDimensionLinkage, zDimensions, zEncoding, zLabel, zLegend, zMeasures, zPage, zRegionPadding, zStackCornerRadius, zTheme, zTooltip, zXLinearAxis, zYBandAxis } from "../../properties/index.js";
3
+ import { zAnnotationArea, zAnnotationHorizontalLine, zAnnotationPoint, zAnnotationVerticalLine, zBackgroundColor, zBarLikeAnimation, zBarMaxWidth, zBarStyle, zBrush, zColor, zCrosshairRect, zDataset, zDimensionLinkage, zDimensions, zEncoding, zLabel, zLegend, zMeasures, zPage, zRegionPadding, zStackCornerRadius, zTheme, zTooltip, zXLinearAxis, zYBandAxis } from "../../properties/index.js";
4
4
  const zBarPercent = z.object({
5
5
  chartType: z.literal('barPercent'),
6
6
  dataset: zDataset.nullish(),
@@ -15,6 +15,7 @@ const zBarPercent = z.object({
15
15
  regionPadding: zRegionPadding.nullish(),
16
16
  tooltip: zTooltip.nullish(),
17
17
  brush: zBrush.nullish(),
18
+ animation: zBarLikeAnimation.nullish(),
18
19
  xAxis: zXLinearAxis.nullish(),
19
20
  yAxis: zYBandAxis.nullish(),
20
21
  crosshairRect: zCrosshairRect.nullish(),
@@ -1 +1 @@
1
- {"version":3,"file":"types/chartType/barPercent/zBarPercent.js","sources":["../../../../../src/types/chartType/barPercent/zBarPercent.ts"],"sourcesContent":["import { z } from 'zod'\nimport { 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 zXLinearAxis,\n zYBandAxis,\n zPage,\n} from '../../properties'\n\nexport const zBarPercent = z.object({\n chartType: z.literal('barPercent'),\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: zXLinearAxis.nullish(),\n yAxis: zYBandAxis.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":["zBarPercent","z","zDataset","zEncoding","zDimensions","zMeasures","zPage","zBackgroundColor","zColor","zLabel","zLegend","zRegionPadding","zTooltip","zBrush","zXLinearAxis","zYBandAxis","zCrosshairRect","zStackCornerRadius","zBarMaxWidth","zTheme","zBarStyle","zAnnotationPoint","zAnnotationVerticalLine","zAnnotationHorizontalLine","zAnnotationArea","zDimensionLinkage","zLocale"],"mappings":";;;AA6BO,MAAMA,cAAcC,EAAE,MAAM,CAAC;IAClC,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,aAAa,OAAO;IAC3B,OAAOC,WAAW,OAAO;IACzB,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/barPercent/zBarPercent.js","sources":["../../../../../src/types/chartType/barPercent/zBarPercent.ts"],"sourcesContent":["import { z } from 'zod'\nimport { 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 zXLinearAxis,\n zYBandAxis,\n zPage,\n zBarLikeAnimation,\n} from '../../properties'\n\nexport const zBarPercent = z.object({\n chartType: z.literal('barPercent'),\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: zXLinearAxis.nullish(),\n yAxis: zYBandAxis.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":["zBarPercent","z","zDataset","zEncoding","zDimensions","zMeasures","zPage","zBackgroundColor","zColor","zLabel","zLegend","zRegionPadding","zTooltip","zBrush","zBarLikeAnimation","zXLinearAxis","zYBandAxis","zCrosshairRect","zStackCornerRadius","zBarMaxWidth","zTheme","zBarStyle","zAnnotationPoint","zAnnotationVerticalLine","zAnnotationHorizontalLine","zAnnotationArea","zDimensionLinkage","zLocale"],"mappings":";;;AA8BO,MAAMA,cAAcC,EAAE,MAAM,CAAC;IAClC,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,aAAa,OAAO;IAC3B,OAAOC,WAAW,OAAO;IACzB,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 { AnnotationArea, AnnotationDifferenceLine, AnnotationHorizontalLine, AnnotationPoint, AnnotationVerticalLine, BackgroundColor, Brush, BarStyle, Color, CrosshairRect, Dataset, Label, Legend, StackCornerRadius, Theme, Tooltip, XBandAxis, YLinearAxis, Sort, SortLegend, BarMaxWidth, PolynomialRegressionLine, 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, Sort, SortLegend, BarMaxWidth, PolynomialRegressionLine, DimensionLinkage, ColumnMeasure, ColumnDimension, Page, RegionPadding, BarLikeAnimation } from '../../properties';
3
3
  /**
4
4
  * @description 柱状图,适用于纵向数据对比场景,X轴为类目轴(分类数据),Y轴为数值轴(连续数据),柱子纵向排列
5
5
  * 适用场景:
@@ -82,6 +82,11 @@ export interface Column {
82
82
  * @description 框选配置,用于开启/关闭 brush 框选能力
83
83
  */
84
84
  brush?: Brush;
85
+ /**
86
+ * 动画配置
87
+ * @description 图表动画配置,按图表类型约束可选效果
88
+ */
89
+ animation?: BarLikeAnimation;
85
90
  /**
86
91
  * @description x轴, 类目轴, x轴配置, 用于定义图表的x轴, 包括x轴的位置, 格式, 样式等.
87
92
  */