@visactor/vseed 0.4.27 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (214) hide show
  1. package/dist/cjs/index.cjs +2 -2
  2. package/dist/cjs/index.cjs.map +1 -1
  3. package/dist/esm/pipeline/advanced/chart/pipes/config/column.js +2 -1
  4. package/dist/esm/pipeline/advanced/chart/pipes/config/column.js.map +1 -1
  5. package/dist/esm/pipeline/advanced/chart/pipes/config/line.js +2 -1
  6. package/dist/esm/pipeline/advanced/chart/pipes/config/line.js.map +1 -1
  7. package/dist/esm/pipeline/advanced/chart/pipes/config/pie.js +2 -1
  8. package/dist/esm/pipeline/advanced/chart/pipes/config/pie.js.map +1 -1
  9. package/dist/esm/pipeline/advanced/chart/pipes/config/scatter.js +2 -1
  10. package/dist/esm/pipeline/advanced/chart/pipes/config/scatter.js.map +1 -1
  11. package/dist/esm/pipeline/spec/chart/pipeline/area.js +3 -1
  12. package/dist/esm/pipeline/spec/chart/pipeline/area.js.map +1 -1
  13. package/dist/esm/pipeline/spec/chart/pipeline/areaPercent.js +3 -1
  14. package/dist/esm/pipeline/spec/chart/pipeline/areaPercent.js.map +1 -1
  15. package/dist/esm/pipeline/spec/chart/pipeline/bar.js +3 -1
  16. package/dist/esm/pipeline/spec/chart/pipeline/bar.js.map +1 -1
  17. package/dist/esm/pipeline/spec/chart/pipeline/barParallel.js +3 -1
  18. package/dist/esm/pipeline/spec/chart/pipeline/barParallel.js.map +1 -1
  19. package/dist/esm/pipeline/spec/chart/pipeline/barPercent.js +3 -1
  20. package/dist/esm/pipeline/spec/chart/pipeline/barPercent.js.map +1 -1
  21. package/dist/esm/pipeline/spec/chart/pipeline/column.js +3 -1
  22. package/dist/esm/pipeline/spec/chart/pipeline/column.js.map +1 -1
  23. package/dist/esm/pipeline/spec/chart/pipeline/columnParallel.js +3 -1
  24. package/dist/esm/pipeline/spec/chart/pipeline/columnParallel.js.map +1 -1
  25. package/dist/esm/pipeline/spec/chart/pipeline/columnPercent.js +3 -1
  26. package/dist/esm/pipeline/spec/chart/pipeline/columnPercent.js.map +1 -1
  27. package/dist/esm/pipeline/spec/chart/pipeline/donut.js +3 -1
  28. package/dist/esm/pipeline/spec/chart/pipeline/donut.js.map +1 -1
  29. package/dist/esm/pipeline/spec/chart/pipeline/line.js +3 -1
  30. package/dist/esm/pipeline/spec/chart/pipeline/line.js.map +1 -1
  31. package/dist/esm/pipeline/spec/chart/pipeline/pie.js +3 -1
  32. package/dist/esm/pipeline/spec/chart/pipeline/pie.js.map +1 -1
  33. package/dist/esm/pipeline/spec/chart/pipeline/radar.js +3 -1
  34. package/dist/esm/pipeline/spec/chart/pipeline/radar.js.map +1 -1
  35. package/dist/esm/pipeline/spec/chart/pipeline/rose.js +3 -1
  36. package/dist/esm/pipeline/spec/chart/pipeline/rose.js.map +1 -1
  37. package/dist/esm/pipeline/spec/chart/pipeline/roseParallel.js +3 -1
  38. package/dist/esm/pipeline/spec/chart/pipeline/roseParallel.js.map +1 -1
  39. package/dist/esm/pipeline/spec/chart/pipeline/scatter.js +3 -1
  40. package/dist/esm/pipeline/spec/chart/pipeline/scatter.js.map +1 -1
  41. package/dist/esm/pipeline/spec/chart/pipes/animation/animation.d.ts +15 -0
  42. package/dist/esm/pipeline/spec/chart/pipes/animation/animation.js +94 -0
  43. package/dist/esm/pipeline/spec/chart/pipes/animation/animation.js.map +1 -0
  44. package/dist/esm/pipeline/spec/chart/pipes/animation/bar.d.ts +77 -0
  45. package/dist/esm/pipeline/spec/chart/pipes/animation/bar.js +88 -0
  46. package/dist/esm/pipeline/spec/chart/pipes/animation/bar.js.map +1 -0
  47. package/dist/esm/pipeline/spec/chart/pipes/animation/index.d.ts +2 -0
  48. package/dist/esm/pipeline/spec/chart/pipes/animation/index.js +2 -0
  49. package/dist/esm/pipeline/spec/chart/pipes/animation/lineOrArea.d.ts +254 -0
  50. package/dist/esm/pipeline/spec/chart/pipes/animation/lineOrArea.js +138 -0
  51. package/dist/esm/pipeline/spec/chart/pipes/animation/lineOrArea.js.map +1 -0
  52. package/dist/esm/pipeline/spec/chart/pipes/animation/pie.d.ts +71 -0
  53. package/dist/esm/pipeline/spec/chart/pipes/animation/pie.js +176 -0
  54. package/dist/esm/pipeline/spec/chart/pipes/animation/pie.js.map +1 -0
  55. package/dist/esm/pipeline/spec/chart/pipes/animation/radar.d.ts +131 -0
  56. package/dist/esm/pipeline/spec/chart/pipes/animation/radar.js +46 -0
  57. package/dist/esm/pipeline/spec/chart/pipes/animation/radar.js.map +1 -0
  58. package/dist/esm/pipeline/spec/chart/pipes/animation/scatter.d.ts +102 -0
  59. package/dist/esm/pipeline/spec/chart/pipes/animation/scatter.js +57 -0
  60. package/dist/esm/pipeline/spec/chart/pipes/animation/scatter.js.map +1 -0
  61. package/dist/esm/pipeline/spec/chart/pipes/animation/types.d.ts +130 -0
  62. package/dist/esm/pipeline/spec/chart/pipes/animation/types.js +19 -0
  63. package/dist/esm/pipeline/spec/chart/pipes/animation/types.js.map +1 -0
  64. package/dist/esm/pipeline/spec/chart/pipes/animation/utils/bar.d.ts +11 -0
  65. package/dist/esm/pipeline/spec/chart/pipes/animation/utils/bar.js +13 -0
  66. package/dist/esm/pipeline/spec/chart/pipes/animation/utils/bar.js.map +1 -0
  67. package/dist/esm/pipeline/spec/chart/pipes/animation/utils/barColor.d.ts +52 -0
  68. package/dist/esm/pipeline/spec/chart/pipes/animation/utils/barColor.js +51 -0
  69. package/dist/esm/pipeline/spec/chart/pipes/animation/utils/barColor.js.map +1 -0
  70. package/dist/esm/pipeline/spec/chart/pipes/animation/utils/barGroup.d.ts +102 -0
  71. package/dist/esm/pipeline/spec/chart/pipes/animation/utils/barGroup.js +84 -0
  72. package/dist/esm/pipeline/spec/chart/pipes/animation/utils/barGroup.js.map +1 -0
  73. package/dist/esm/pipeline/spec/chart/pipes/animation/utils/barMotion.d.ts +66 -0
  74. package/dist/esm/pipeline/spec/chart/pipes/animation/utils/barMotion.js +72 -0
  75. package/dist/esm/pipeline/spec/chart/pipes/animation/utils/barMotion.js.map +1 -0
  76. package/dist/esm/pipeline/spec/chart/pipes/animation/utils/index.d.ts +86 -0
  77. package/dist/esm/pipeline/spec/chart/pipes/animation/utils/index.js +60 -0
  78. package/dist/esm/pipeline/spec/chart/pipes/animation/utils/index.js.map +1 -0
  79. package/dist/esm/pipeline/spec/chart/pipes/animation/utils/lineOrArea.d.ts +29 -0
  80. package/dist/esm/pipeline/spec/chart/pipes/animation/utils/lineOrArea.js +20 -0
  81. package/dist/esm/pipeline/spec/chart/pipes/animation/utils/lineOrArea.js.map +1 -0
  82. package/dist/esm/pipeline/spec/chart/pipes/animation/utils/pie.d.ts +14 -0
  83. package/dist/esm/pipeline/spec/chart/pipes/animation/utils/pie.js +9 -0
  84. package/dist/esm/pipeline/spec/chart/pipes/animation/utils/pie.js.map +1 -0
  85. package/dist/esm/pipeline/spec/chart/pipes/animation/utils/scatter.d.ts +69 -0
  86. package/dist/esm/pipeline/spec/chart/pipes/animation/utils/scatter.js +59 -0
  87. package/dist/esm/pipeline/spec/chart/pipes/animation/utils/scatter.js.map +1 -0
  88. package/dist/esm/pipeline/spec/chart/pipes/annotation/annotationDifferenceLine.js +63 -10
  89. package/dist/esm/pipeline/spec/chart/pipes/annotation/annotationDifferenceLine.js.map +1 -1
  90. package/dist/esm/pipeline/spec/chart/pipes/annotation/annotationPointCommon.d.ts +1 -0
  91. package/dist/esm/pipeline/spec/chart/pipes/annotation/annotationPointCommon.js +8 -3
  92. package/dist/esm/pipeline/spec/chart/pipes/annotation/annotationPointCommon.js.map +1 -1
  93. package/dist/esm/pipeline/spec/chart/pipes/annotation/annotationPointOfDualAxis.js +3 -3
  94. package/dist/esm/pipeline/spec/chart/pipes/annotation/annotationPointOfDualAxis.js.map +1 -1
  95. package/dist/esm/pipeline/spec/chart/pipes/index.d.ts +1 -0
  96. package/dist/esm/pipeline/spec/chart/pipes/index.js +1 -0
  97. package/dist/esm/types/chartType/area/area.d.ts +6 -1
  98. package/dist/esm/types/chartType/area/zArea.d.ts +42 -0
  99. package/dist/esm/types/chartType/area/zArea.js +2 -1
  100. package/dist/esm/types/chartType/area/zArea.js.map +1 -1
  101. package/dist/esm/types/chartType/areaPercent/areaPercent.d.ts +6 -1
  102. package/dist/esm/types/chartType/areaPercent/zAreaPercent.d.ts +42 -0
  103. package/dist/esm/types/chartType/areaPercent/zAreaPercent.js +2 -1
  104. package/dist/esm/types/chartType/areaPercent/zAreaPercent.js.map +1 -1
  105. package/dist/esm/types/chartType/bar/bar.d.ts +6 -1
  106. package/dist/esm/types/chartType/bar/zBar.d.ts +42 -0
  107. package/dist/esm/types/chartType/bar/zBar.js +2 -1
  108. package/dist/esm/types/chartType/bar/zBar.js.map +1 -1
  109. package/dist/esm/types/chartType/barParallel/barParallel.d.ts +6 -1
  110. package/dist/esm/types/chartType/barParallel/zBarParallel.d.ts +42 -0
  111. package/dist/esm/types/chartType/barParallel/zBarParallel.js +2 -1
  112. package/dist/esm/types/chartType/barParallel/zBarParallel.js.map +1 -1
  113. package/dist/esm/types/chartType/barPercent/barPercent.d.ts +6 -1
  114. package/dist/esm/types/chartType/barPercent/zBarPercent.d.ts +42 -0
  115. package/dist/esm/types/chartType/barPercent/zBarPercent.js +2 -1
  116. package/dist/esm/types/chartType/barPercent/zBarPercent.js.map +1 -1
  117. package/dist/esm/types/chartType/boxPlot/zBoxPlot.d.ts +2 -0
  118. package/dist/esm/types/chartType/column/column.d.ts +6 -1
  119. package/dist/esm/types/chartType/column/zColumn.d.ts +42 -0
  120. package/dist/esm/types/chartType/column/zColumn.js +2 -1
  121. package/dist/esm/types/chartType/column/zColumn.js.map +1 -1
  122. package/dist/esm/types/chartType/columnParallel/columnParallel.d.ts +6 -1
  123. package/dist/esm/types/chartType/columnParallel/zColumnParallel.d.ts +42 -0
  124. package/dist/esm/types/chartType/columnParallel/zColumnParallel.js +2 -1
  125. package/dist/esm/types/chartType/columnParallel/zColumnParallel.js.map +1 -1
  126. package/dist/esm/types/chartType/columnPercent/columnPercent.d.ts +6 -1
  127. package/dist/esm/types/chartType/columnPercent/zColumnPercent.d.ts +42 -0
  128. package/dist/esm/types/chartType/columnPercent/zColumnPercent.js +2 -1
  129. package/dist/esm/types/chartType/columnPercent/zColumnPercent.js.map +1 -1
  130. package/dist/esm/types/chartType/donut/donut.d.ts +6 -1
  131. package/dist/esm/types/chartType/donut/zDonut.d.ts +40 -0
  132. package/dist/esm/types/chartType/donut/zDonut.js +2 -1
  133. package/dist/esm/types/chartType/donut/zDonut.js.map +1 -1
  134. package/dist/esm/types/chartType/dualAxis/zDualAxis.d.ts +2 -0
  135. package/dist/esm/types/chartType/histogram/zHistogram.d.ts +2 -0
  136. package/dist/esm/types/chartType/line/line.d.ts +6 -1
  137. package/dist/esm/types/chartType/line/zLine.d.ts +42 -0
  138. package/dist/esm/types/chartType/line/zLine.js +2 -1
  139. package/dist/esm/types/chartType/line/zLine.js.map +1 -1
  140. package/dist/esm/types/chartType/pie/pie.d.ts +6 -1
  141. package/dist/esm/types/chartType/pie/zPie.d.ts +40 -0
  142. package/dist/esm/types/chartType/pie/zPie.js +2 -1
  143. package/dist/esm/types/chartType/pie/zPie.js.map +1 -1
  144. package/dist/esm/types/chartType/raceBar/zRaceBar.d.ts +2 -0
  145. package/dist/esm/types/chartType/raceColumn/zRaceColumn.d.ts +2 -0
  146. package/dist/esm/types/chartType/raceLine/zRaceLine.d.ts +2 -0
  147. package/dist/esm/types/chartType/raceScatter/zRaceScatter.d.ts +2 -0
  148. package/dist/esm/types/chartType/radar/radar.d.ts +6 -1
  149. package/dist/esm/types/chartType/radar/zRadar.d.ts +40 -0
  150. package/dist/esm/types/chartType/radar/zRadar.js +2 -1
  151. package/dist/esm/types/chartType/radar/zRadar.js.map +1 -1
  152. package/dist/esm/types/chartType/rose/rose.d.ts +6 -1
  153. package/dist/esm/types/chartType/rose/zRose.d.ts +40 -0
  154. package/dist/esm/types/chartType/rose/zRose.js +2 -1
  155. package/dist/esm/types/chartType/rose/zRose.js.map +1 -1
  156. package/dist/esm/types/chartType/roseParallel/roseParallel.d.ts +6 -1
  157. package/dist/esm/types/chartType/roseParallel/zRoseParallel.d.ts +40 -0
  158. package/dist/esm/types/chartType/roseParallel/zRoseParallel.js +2 -1
  159. package/dist/esm/types/chartType/roseParallel/zRoseParallel.js.map +1 -1
  160. package/dist/esm/types/chartType/scatter/scatter.d.ts +6 -1
  161. package/dist/esm/types/chartType/scatter/zScatter.d.ts +42 -0
  162. package/dist/esm/types/chartType/scatter/zScatter.js +2 -1
  163. package/dist/esm/types/chartType/scatter/zScatter.js.map +1 -1
  164. package/dist/esm/types/properties/annotation/annotation.d.ts +2 -0
  165. package/dist/esm/types/properties/annotation/annotationPoint.d.ts +4 -0
  166. package/dist/esm/types/properties/annotation/zAnnotationPoint.d.ts +1 -0
  167. package/dist/esm/types/properties/annotation/zAnnotationPoint.js +1 -0
  168. package/dist/esm/types/properties/annotation/zAnnotationPoint.js.map +1 -1
  169. package/dist/esm/types/properties/config/animation/animation.d.ts +72 -0
  170. package/dist/esm/types/properties/config/animation/animation.js +0 -0
  171. package/dist/esm/types/properties/config/animation/animationAtmosphere.d.ts +15 -0
  172. package/dist/esm/types/properties/config/animation/animationAtmosphere.js +0 -0
  173. package/dist/esm/types/properties/config/animation/animationConfig.d.ts +2 -0
  174. package/dist/esm/types/properties/config/animation/animationConfig.js +0 -0
  175. package/dist/esm/types/properties/config/animation/animationEffect.d.ts +72 -0
  176. package/dist/esm/types/properties/config/animation/animationEffect.js +0 -0
  177. package/dist/esm/types/properties/config/animation/animationLoop.d.ts +49 -0
  178. package/dist/esm/types/properties/config/animation/animationLoop.js +0 -0
  179. package/dist/esm/types/properties/config/animation/index.d.ts +6 -0
  180. package/dist/esm/types/properties/config/animation/index.js +1 -0
  181. package/dist/esm/types/properties/config/animation/zAnimation.d.ts +201 -0
  182. package/dist/esm/types/properties/config/animation/zAnimation.js +114 -0
  183. package/dist/esm/types/properties/config/animation/zAnimation.js.map +1 -0
  184. package/dist/esm/types/properties/config/annotation/zAnnotation.js +1 -0
  185. package/dist/esm/types/properties/config/annotation/zAnnotation.js.map +1 -1
  186. package/dist/esm/types/properties/config/area.d.ts +80 -0
  187. package/dist/esm/types/properties/config/area.js +3 -1
  188. package/dist/esm/types/properties/config/area.js.map +1 -1
  189. package/dist/esm/types/properties/config/bar.d.ts +120 -0
  190. package/dist/esm/types/properties/config/bar.js +3 -1
  191. package/dist/esm/types/properties/config/bar.js.map +1 -1
  192. package/dist/esm/types/properties/config/column.d.ts +120 -0
  193. package/dist/esm/types/properties/config/column.js +3 -1
  194. package/dist/esm/types/properties/config/column.js.map +1 -1
  195. package/dist/esm/types/properties/config/config.d.ts +840 -0
  196. package/dist/esm/types/properties/config/index.d.ts +1 -0
  197. package/dist/esm/types/properties/config/index.js +1 -0
  198. package/dist/esm/types/properties/config/line.d.ts +40 -0
  199. package/dist/esm/types/properties/config/line.js +3 -1
  200. package/dist/esm/types/properties/config/line.js.map +1 -1
  201. package/dist/esm/types/properties/config/pie.d.ts +120 -0
  202. package/dist/esm/types/properties/config/pie.js +6 -2
  203. package/dist/esm/types/properties/config/pie.js.map +1 -1
  204. package/dist/esm/types/properties/config/race.d.ts +240 -0
  205. package/dist/esm/types/properties/config/rose.d.ts +80 -0
  206. package/dist/esm/types/properties/config/rose.js +3 -1
  207. package/dist/esm/types/properties/config/rose.js.map +1 -1
  208. package/dist/esm/types/properties/config/scatter.d.ts +40 -0
  209. package/dist/esm/types/properties/config/scatter.js +3 -1
  210. package/dist/esm/types/properties/config/scatter.js.map +1 -1
  211. package/dist/esm/types/properties/theme/customTheme.d.ts +1680 -0
  212. package/dist/umd/index.js +5040 -641
  213. package/dist/umd/index.js.map +1 -1
  214. package/package.json +3 -3
@@ -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>>>;
@@ -1039,6 +1079,7 @@ export declare const zColumn: z.ZodObject<{
1039
1079
  }>>>;
1040
1080
  value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
1041
1081
  }, z.core.$strip>, z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>]>>]>>>;
1082
+ measureId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1042
1083
  dynamicFilter: z.ZodOptional<z.ZodObject<{
1043
1084
  type: z.ZodLiteral<"row-with-field">;
1044
1085
  description: z.ZodOptional<z.ZodString>;
@@ -1220,6 +1261,7 @@ export declare const zColumn: z.ZodObject<{
1220
1261
  }>>>;
1221
1262
  value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
1222
1263
  }, z.core.$strip>, z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>]>>]>>>;
1264
+ measureId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1223
1265
  dynamicFilter: z.ZodOptional<z.ZodObject<{
1224
1266
  type: z.ZodLiteral<"row-with-field">;
1225
1267
  description: z.ZodOptional<z.ZodString>;
@@ -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>>>;
@@ -1024,6 +1064,7 @@ export declare const zColumnParallel: z.ZodObject<{
1024
1064
  }>>>;
1025
1065
  value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
1026
1066
  }, z.core.$strip>, z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>]>>]>>>;
1067
+ measureId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1027
1068
  dynamicFilter: z.ZodOptional<z.ZodObject<{
1028
1069
  type: z.ZodLiteral<"row-with-field">;
1029
1070
  description: z.ZodOptional<z.ZodString>;
@@ -1205,6 +1246,7 @@ export declare const zColumnParallel: z.ZodObject<{
1205
1246
  }>>>;
1206
1247
  value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
1207
1248
  }, z.core.$strip>, z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>]>>]>>>;
1249
+ measureId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1208
1250
  dynamicFilter: z.ZodOptional<z.ZodObject<{
1209
1251
  type: z.ZodLiteral<"row-with-field">;
1210
1252
  description: z.ZodOptional<z.ZodString>;
@@ -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>>>;
@@ -1002,6 +1042,7 @@ export declare const zColumnPercent: z.ZodObject<{
1002
1042
  }>>>;
1003
1043
  value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
1004
1044
  }, z.core.$strip>, z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>]>>]>>>;
1045
+ measureId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1005
1046
  dynamicFilter: z.ZodOptional<z.ZodObject<{
1006
1047
  type: z.ZodLiteral<"row-with-field">;
1007
1048
  description: z.ZodOptional<z.ZodString>;
@@ -1183,6 +1224,7 @@ export declare const zColumnPercent: z.ZodObject<{
1183
1224
  }>>>;
1184
1225
  value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
1185
1226
  }, z.core.$strip>, z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>]>>]>>>;
1227
+ measureId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1186
1228
  dynamicFilter: z.ZodOptional<z.ZodObject<{
1187
1229
  type: z.ZodLiteral<"row-with-field">;
1188
1230
  description: z.ZodOptional<z.ZodString>;
@@ -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"}
@@ -2199,6 +2199,7 @@ export declare const zDualAxis: z.ZodObject<{
2199
2199
  }>>>;
2200
2200
  value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
2201
2201
  }, z.core.$strip>, z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>]>>]>>>;
2202
+ measureId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2202
2203
  dynamicFilter: z.ZodOptional<z.ZodObject<{
2203
2204
  type: z.ZodLiteral<"row-with-field">;
2204
2205
  description: z.ZodOptional<z.ZodString>;
@@ -2380,6 +2381,7 @@ export declare const zDualAxis: z.ZodObject<{
2380
2381
  }>>>;
2381
2382
  value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
2382
2383
  }, z.core.$strip>, z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>]>>]>>>;
2384
+ measureId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2383
2385
  dynamicFilter: z.ZodOptional<z.ZodObject<{
2384
2386
  type: z.ZodLiteral<"row-with-field">;
2385
2387
  description: z.ZodOptional<z.ZodString>;
@@ -1028,6 +1028,7 @@ export declare const zHistogram: z.ZodObject<{
1028
1028
  }>>>;
1029
1029
  value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
1030
1030
  }, z.core.$strip>, z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>]>>]>>>;
1031
+ measureId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1031
1032
  dynamicFilter: z.ZodOptional<z.ZodObject<{
1032
1033
  type: z.ZodLiteral<"row-with-field">;
1033
1034
  description: z.ZodOptional<z.ZodString>;
@@ -1209,6 +1210,7 @@ export declare const zHistogram: z.ZodObject<{
1209
1210
  }>>>;
1210
1211
  value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
1211
1212
  }, z.core.$strip>, z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>]>>]>>>;
1213
+ measureId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1212
1214
  dynamicFilter: z.ZodOptional<z.ZodObject<{
1213
1215
  type: z.ZodLiteral<"row-with-field">;
1214
1216
  description: z.ZodOptional<z.ZodString>;
@@ -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>>>;
@@ -1364,6 +1404,7 @@ export declare const zLine: z.ZodObject<{
1364
1404
  }>>>;
1365
1405
  value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
1366
1406
  }, z.core.$strip>, z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>]>>]>>>;
1407
+ measureId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1367
1408
  dynamicFilter: z.ZodOptional<z.ZodObject<{
1368
1409
  type: z.ZodLiteral<"row-with-field">;
1369
1410
  description: z.ZodOptional<z.ZodString>;
@@ -1545,6 +1586,7 @@ export declare const zLine: z.ZodObject<{
1545
1586
  }>>>;
1546
1587
  value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
1547
1588
  }, z.core.$strip>, z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>]>>]>>>;
1589
+ measureId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1548
1590
  dynamicFilter: z.ZodOptional<z.ZodObject<{
1549
1591
  type: z.ZodLiteral<"row-with-field">;
1550
1592
  description: z.ZodOptional<z.ZodString>;
@@ -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 默认为亮色主题