@visactor/vseed 0.4.28 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (193) hide show
  1. package/dist/cjs/index.cjs +2 -2
  2. package/dist/cjs/index.cjs.map +1 -1
  3. package/dist/esm/pipeline/advanced/chart/pipes/config/column.js +2 -1
  4. package/dist/esm/pipeline/advanced/chart/pipes/config/column.js.map +1 -1
  5. package/dist/esm/pipeline/advanced/chart/pipes/config/line.js +2 -1
  6. package/dist/esm/pipeline/advanced/chart/pipes/config/line.js.map +1 -1
  7. package/dist/esm/pipeline/advanced/chart/pipes/config/pie.js +2 -1
  8. package/dist/esm/pipeline/advanced/chart/pipes/config/pie.js.map +1 -1
  9. package/dist/esm/pipeline/advanced/chart/pipes/config/scatter.js +2 -1
  10. package/dist/esm/pipeline/advanced/chart/pipes/config/scatter.js.map +1 -1
  11. package/dist/esm/pipeline/spec/chart/pipeline/area.js +3 -1
  12. package/dist/esm/pipeline/spec/chart/pipeline/area.js.map +1 -1
  13. package/dist/esm/pipeline/spec/chart/pipeline/areaPercent.js +3 -1
  14. package/dist/esm/pipeline/spec/chart/pipeline/areaPercent.js.map +1 -1
  15. package/dist/esm/pipeline/spec/chart/pipeline/bar.js +3 -1
  16. package/dist/esm/pipeline/spec/chart/pipeline/bar.js.map +1 -1
  17. package/dist/esm/pipeline/spec/chart/pipeline/barParallel.js +3 -1
  18. package/dist/esm/pipeline/spec/chart/pipeline/barParallel.js.map +1 -1
  19. package/dist/esm/pipeline/spec/chart/pipeline/barPercent.js +3 -1
  20. package/dist/esm/pipeline/spec/chart/pipeline/barPercent.js.map +1 -1
  21. package/dist/esm/pipeline/spec/chart/pipeline/column.js +3 -1
  22. package/dist/esm/pipeline/spec/chart/pipeline/column.js.map +1 -1
  23. package/dist/esm/pipeline/spec/chart/pipeline/columnParallel.js +3 -1
  24. package/dist/esm/pipeline/spec/chart/pipeline/columnParallel.js.map +1 -1
  25. package/dist/esm/pipeline/spec/chart/pipeline/columnPercent.js +3 -1
  26. package/dist/esm/pipeline/spec/chart/pipeline/columnPercent.js.map +1 -1
  27. package/dist/esm/pipeline/spec/chart/pipeline/donut.js +3 -1
  28. package/dist/esm/pipeline/spec/chart/pipeline/donut.js.map +1 -1
  29. package/dist/esm/pipeline/spec/chart/pipeline/line.js +3 -1
  30. package/dist/esm/pipeline/spec/chart/pipeline/line.js.map +1 -1
  31. package/dist/esm/pipeline/spec/chart/pipeline/pie.js +3 -1
  32. package/dist/esm/pipeline/spec/chart/pipeline/pie.js.map +1 -1
  33. package/dist/esm/pipeline/spec/chart/pipeline/radar.js +3 -1
  34. package/dist/esm/pipeline/spec/chart/pipeline/radar.js.map +1 -1
  35. package/dist/esm/pipeline/spec/chart/pipeline/rose.js +3 -1
  36. package/dist/esm/pipeline/spec/chart/pipeline/rose.js.map +1 -1
  37. package/dist/esm/pipeline/spec/chart/pipeline/roseParallel.js +3 -1
  38. package/dist/esm/pipeline/spec/chart/pipeline/roseParallel.js.map +1 -1
  39. package/dist/esm/pipeline/spec/chart/pipeline/scatter.js +3 -1
  40. package/dist/esm/pipeline/spec/chart/pipeline/scatter.js.map +1 -1
  41. package/dist/esm/pipeline/spec/chart/pipes/animation/animation.d.ts +15 -0
  42. package/dist/esm/pipeline/spec/chart/pipes/animation/animation.js +94 -0
  43. package/dist/esm/pipeline/spec/chart/pipes/animation/animation.js.map +1 -0
  44. package/dist/esm/pipeline/spec/chart/pipes/animation/bar.d.ts +77 -0
  45. package/dist/esm/pipeline/spec/chart/pipes/animation/bar.js +88 -0
  46. package/dist/esm/pipeline/spec/chart/pipes/animation/bar.js.map +1 -0
  47. package/dist/esm/pipeline/spec/chart/pipes/animation/index.d.ts +2 -0
  48. package/dist/esm/pipeline/spec/chart/pipes/animation/index.js +2 -0
  49. package/dist/esm/pipeline/spec/chart/pipes/animation/lineOrArea.d.ts +254 -0
  50. package/dist/esm/pipeline/spec/chart/pipes/animation/lineOrArea.js +138 -0
  51. package/dist/esm/pipeline/spec/chart/pipes/animation/lineOrArea.js.map +1 -0
  52. package/dist/esm/pipeline/spec/chart/pipes/animation/pie.d.ts +71 -0
  53. package/dist/esm/pipeline/spec/chart/pipes/animation/pie.js +176 -0
  54. package/dist/esm/pipeline/spec/chart/pipes/animation/pie.js.map +1 -0
  55. package/dist/esm/pipeline/spec/chart/pipes/animation/radar.d.ts +131 -0
  56. package/dist/esm/pipeline/spec/chart/pipes/animation/radar.js +46 -0
  57. package/dist/esm/pipeline/spec/chart/pipes/animation/radar.js.map +1 -0
  58. package/dist/esm/pipeline/spec/chart/pipes/animation/scatter.d.ts +102 -0
  59. package/dist/esm/pipeline/spec/chart/pipes/animation/scatter.js +57 -0
  60. package/dist/esm/pipeline/spec/chart/pipes/animation/scatter.js.map +1 -0
  61. package/dist/esm/pipeline/spec/chart/pipes/animation/types.d.ts +130 -0
  62. package/dist/esm/pipeline/spec/chart/pipes/animation/types.js +19 -0
  63. package/dist/esm/pipeline/spec/chart/pipes/animation/types.js.map +1 -0
  64. package/dist/esm/pipeline/spec/chart/pipes/animation/utils/bar.d.ts +11 -0
  65. package/dist/esm/pipeline/spec/chart/pipes/animation/utils/bar.js +13 -0
  66. package/dist/esm/pipeline/spec/chart/pipes/animation/utils/bar.js.map +1 -0
  67. package/dist/esm/pipeline/spec/chart/pipes/animation/utils/barColor.d.ts +52 -0
  68. package/dist/esm/pipeline/spec/chart/pipes/animation/utils/barColor.js +51 -0
  69. package/dist/esm/pipeline/spec/chart/pipes/animation/utils/barColor.js.map +1 -0
  70. package/dist/esm/pipeline/spec/chart/pipes/animation/utils/barGroup.d.ts +102 -0
  71. package/dist/esm/pipeline/spec/chart/pipes/animation/utils/barGroup.js +84 -0
  72. package/dist/esm/pipeline/spec/chart/pipes/animation/utils/barGroup.js.map +1 -0
  73. package/dist/esm/pipeline/spec/chart/pipes/animation/utils/barMotion.d.ts +66 -0
  74. package/dist/esm/pipeline/spec/chart/pipes/animation/utils/barMotion.js +72 -0
  75. package/dist/esm/pipeline/spec/chart/pipes/animation/utils/barMotion.js.map +1 -0
  76. package/dist/esm/pipeline/spec/chart/pipes/animation/utils/index.d.ts +86 -0
  77. package/dist/esm/pipeline/spec/chart/pipes/animation/utils/index.js +60 -0
  78. package/dist/esm/pipeline/spec/chart/pipes/animation/utils/index.js.map +1 -0
  79. package/dist/esm/pipeline/spec/chart/pipes/animation/utils/lineOrArea.d.ts +29 -0
  80. package/dist/esm/pipeline/spec/chart/pipes/animation/utils/lineOrArea.js +20 -0
  81. package/dist/esm/pipeline/spec/chart/pipes/animation/utils/lineOrArea.js.map +1 -0
  82. package/dist/esm/pipeline/spec/chart/pipes/animation/utils/pie.d.ts +14 -0
  83. package/dist/esm/pipeline/spec/chart/pipes/animation/utils/pie.js +9 -0
  84. package/dist/esm/pipeline/spec/chart/pipes/animation/utils/pie.js.map +1 -0
  85. package/dist/esm/pipeline/spec/chart/pipes/animation/utils/scatter.d.ts +69 -0
  86. package/dist/esm/pipeline/spec/chart/pipes/animation/utils/scatter.js +59 -0
  87. package/dist/esm/pipeline/spec/chart/pipes/animation/utils/scatter.js.map +1 -0
  88. package/dist/esm/pipeline/spec/chart/pipes/index.d.ts +1 -0
  89. package/dist/esm/pipeline/spec/chart/pipes/index.js +1 -0
  90. package/dist/esm/types/chartType/area/area.d.ts +6 -1
  91. package/dist/esm/types/chartType/area/zArea.d.ts +40 -0
  92. package/dist/esm/types/chartType/area/zArea.js +2 -1
  93. package/dist/esm/types/chartType/area/zArea.js.map +1 -1
  94. package/dist/esm/types/chartType/areaPercent/areaPercent.d.ts +6 -1
  95. package/dist/esm/types/chartType/areaPercent/zAreaPercent.d.ts +40 -0
  96. package/dist/esm/types/chartType/areaPercent/zAreaPercent.js +2 -1
  97. package/dist/esm/types/chartType/areaPercent/zAreaPercent.js.map +1 -1
  98. package/dist/esm/types/chartType/bar/bar.d.ts +6 -1
  99. package/dist/esm/types/chartType/bar/zBar.d.ts +40 -0
  100. package/dist/esm/types/chartType/bar/zBar.js +2 -1
  101. package/dist/esm/types/chartType/bar/zBar.js.map +1 -1
  102. package/dist/esm/types/chartType/barParallel/barParallel.d.ts +6 -1
  103. package/dist/esm/types/chartType/barParallel/zBarParallel.d.ts +40 -0
  104. package/dist/esm/types/chartType/barParallel/zBarParallel.js +2 -1
  105. package/dist/esm/types/chartType/barParallel/zBarParallel.js.map +1 -1
  106. package/dist/esm/types/chartType/barPercent/barPercent.d.ts +6 -1
  107. package/dist/esm/types/chartType/barPercent/zBarPercent.d.ts +40 -0
  108. package/dist/esm/types/chartType/barPercent/zBarPercent.js +2 -1
  109. package/dist/esm/types/chartType/barPercent/zBarPercent.js.map +1 -1
  110. package/dist/esm/types/chartType/column/column.d.ts +6 -1
  111. package/dist/esm/types/chartType/column/zColumn.d.ts +40 -0
  112. package/dist/esm/types/chartType/column/zColumn.js +2 -1
  113. package/dist/esm/types/chartType/column/zColumn.js.map +1 -1
  114. package/dist/esm/types/chartType/columnParallel/columnParallel.d.ts +6 -1
  115. package/dist/esm/types/chartType/columnParallel/zColumnParallel.d.ts +40 -0
  116. package/dist/esm/types/chartType/columnParallel/zColumnParallel.js +2 -1
  117. package/dist/esm/types/chartType/columnParallel/zColumnParallel.js.map +1 -1
  118. package/dist/esm/types/chartType/columnPercent/columnPercent.d.ts +6 -1
  119. package/dist/esm/types/chartType/columnPercent/zColumnPercent.d.ts +40 -0
  120. package/dist/esm/types/chartType/columnPercent/zColumnPercent.js +2 -1
  121. package/dist/esm/types/chartType/columnPercent/zColumnPercent.js.map +1 -1
  122. package/dist/esm/types/chartType/donut/donut.d.ts +6 -1
  123. package/dist/esm/types/chartType/donut/zDonut.d.ts +40 -0
  124. package/dist/esm/types/chartType/donut/zDonut.js +2 -1
  125. package/dist/esm/types/chartType/donut/zDonut.js.map +1 -1
  126. package/dist/esm/types/chartType/line/line.d.ts +6 -1
  127. package/dist/esm/types/chartType/line/zLine.d.ts +40 -0
  128. package/dist/esm/types/chartType/line/zLine.js +2 -1
  129. package/dist/esm/types/chartType/line/zLine.js.map +1 -1
  130. package/dist/esm/types/chartType/pie/pie.d.ts +6 -1
  131. package/dist/esm/types/chartType/pie/zPie.d.ts +40 -0
  132. package/dist/esm/types/chartType/pie/zPie.js +2 -1
  133. package/dist/esm/types/chartType/pie/zPie.js.map +1 -1
  134. package/dist/esm/types/chartType/radar/radar.d.ts +6 -1
  135. package/dist/esm/types/chartType/radar/zRadar.d.ts +40 -0
  136. package/dist/esm/types/chartType/radar/zRadar.js +2 -1
  137. package/dist/esm/types/chartType/radar/zRadar.js.map +1 -1
  138. package/dist/esm/types/chartType/rose/rose.d.ts +6 -1
  139. package/dist/esm/types/chartType/rose/zRose.d.ts +40 -0
  140. package/dist/esm/types/chartType/rose/zRose.js +2 -1
  141. package/dist/esm/types/chartType/rose/zRose.js.map +1 -1
  142. package/dist/esm/types/chartType/roseParallel/roseParallel.d.ts +6 -1
  143. package/dist/esm/types/chartType/roseParallel/zRoseParallel.d.ts +40 -0
  144. package/dist/esm/types/chartType/roseParallel/zRoseParallel.js +2 -1
  145. package/dist/esm/types/chartType/roseParallel/zRoseParallel.js.map +1 -1
  146. package/dist/esm/types/chartType/scatter/scatter.d.ts +6 -1
  147. package/dist/esm/types/chartType/scatter/zScatter.d.ts +40 -0
  148. package/dist/esm/types/chartType/scatter/zScatter.js +2 -1
  149. package/dist/esm/types/chartType/scatter/zScatter.js.map +1 -1
  150. package/dist/esm/types/properties/config/animation/animation.d.ts +72 -0
  151. package/dist/esm/types/properties/config/animation/animation.js +0 -0
  152. package/dist/esm/types/properties/config/animation/animationAtmosphere.d.ts +15 -0
  153. package/dist/esm/types/properties/config/animation/animationAtmosphere.js +0 -0
  154. package/dist/esm/types/properties/config/animation/animationConfig.d.ts +2 -0
  155. package/dist/esm/types/properties/config/animation/animationConfig.js +0 -0
  156. package/dist/esm/types/properties/config/animation/animationEffect.d.ts +72 -0
  157. package/dist/esm/types/properties/config/animation/animationEffect.js +0 -0
  158. package/dist/esm/types/properties/config/animation/animationLoop.d.ts +49 -0
  159. package/dist/esm/types/properties/config/animation/animationLoop.js +0 -0
  160. package/dist/esm/types/properties/config/animation/index.d.ts +6 -0
  161. package/dist/esm/types/properties/config/animation/index.js +1 -0
  162. package/dist/esm/types/properties/config/animation/zAnimation.d.ts +201 -0
  163. package/dist/esm/types/properties/config/animation/zAnimation.js +114 -0
  164. package/dist/esm/types/properties/config/animation/zAnimation.js.map +1 -0
  165. package/dist/esm/types/properties/config/area.d.ts +80 -0
  166. package/dist/esm/types/properties/config/area.js +3 -1
  167. package/dist/esm/types/properties/config/area.js.map +1 -1
  168. package/dist/esm/types/properties/config/bar.d.ts +120 -0
  169. package/dist/esm/types/properties/config/bar.js +3 -1
  170. package/dist/esm/types/properties/config/bar.js.map +1 -1
  171. package/dist/esm/types/properties/config/column.d.ts +120 -0
  172. package/dist/esm/types/properties/config/column.js +3 -1
  173. package/dist/esm/types/properties/config/column.js.map +1 -1
  174. package/dist/esm/types/properties/config/config.d.ts +840 -0
  175. package/dist/esm/types/properties/config/index.d.ts +1 -0
  176. package/dist/esm/types/properties/config/index.js +1 -0
  177. package/dist/esm/types/properties/config/line.d.ts +40 -0
  178. package/dist/esm/types/properties/config/line.js +3 -1
  179. package/dist/esm/types/properties/config/line.js.map +1 -1
  180. package/dist/esm/types/properties/config/pie.d.ts +120 -0
  181. package/dist/esm/types/properties/config/pie.js +6 -2
  182. package/dist/esm/types/properties/config/pie.js.map +1 -1
  183. package/dist/esm/types/properties/config/race.d.ts +240 -0
  184. package/dist/esm/types/properties/config/rose.d.ts +80 -0
  185. package/dist/esm/types/properties/config/rose.js +3 -1
  186. package/dist/esm/types/properties/config/rose.js.map +1 -1
  187. package/dist/esm/types/properties/config/scatter.d.ts +40 -0
  188. package/dist/esm/types/properties/config/scatter.js +3 -1
  189. package/dist/esm/types/properties/config/scatter.js.map +1 -1
  190. package/dist/esm/types/properties/theme/customTheme.d.ts +1680 -0
  191. package/dist/umd/index.js +4962 -613
  192. package/dist/umd/index.js.map +1 -1
  193. package/package.json +2 -2
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pipeline/spec/chart/pipes/animation/utils/pie.js","sources":["../../../../../../../../src/pipeline/spec/chart/pipes/animation/utils/pie.ts"],"sourcesContent":["/**\n * @description 生成饼图/玫瑰图按角度展开的入场动画配置。\n * @returns 饼图/玫瑰图角度展开动画配置。\n */\nexport const radialPie = () => ({ type: 'growAngleIn' })\n\n/**\n * @description 生成饼图/玫瑰图按半径展开的入场动画配置。\n * @returns 饼图/玫瑰图半径展开动画配置。\n */\nexport const scalePie = () => ({ type: 'growRadiusIn' })\n"],"names":["radialPie","scalePie"],"mappings":"AAIO,MAAMA,YAAY,IAAO;QAAE,MAAM;IAAc;AAM/C,MAAMC,WAAW,IAAO;QAAE,MAAM;IAAe"}
@@ -0,0 +1,69 @@
1
+ /**
2
+ * @description 生成散点飞入动画,同时恢复透明度和尺寸。
3
+ * @param duration 动画总时长,单位毫秒。
4
+ * @param easing 缓动函数名称。
5
+ * @param loop 是否循环播放。
6
+ * @param startTime 循环时间线起始时间,单位毫秒。
7
+ * @param delayAfter 单次动画结束后的等待时间,单位毫秒。
8
+ * @returns 散点飞入动画配置。
9
+ */
10
+ export declare const flyInScatter: (duration: number, easing?: string, loop?: boolean, startTime?: number, delayAfter?: number) => ({
11
+ loop: boolean;
12
+ startTime: number;
13
+ duration: number;
14
+ easing: string | undefined;
15
+ type: string;
16
+ delayAfter: number;
17
+ options: {
18
+ direction: string;
19
+ orient: string;
20
+ };
21
+ controlOptions: {
22
+ immediatelyApply: boolean;
23
+ };
24
+ channel?: undefined;
25
+ } | {
26
+ loop: boolean;
27
+ startTime: number;
28
+ duration: number;
29
+ easing: string | undefined;
30
+ delayAfter: number;
31
+ channel: {
32
+ fillOpacity: {
33
+ from: number;
34
+ };
35
+ size: {
36
+ from: (...args: any[]) => any;
37
+ };
38
+ };
39
+ controlOptions: {
40
+ immediatelyApply: boolean;
41
+ };
42
+ type?: undefined;
43
+ options?: undefined;
44
+ })[];
45
+ /**
46
+ * @description 生成散点缩放进入动画,保持点中心不变并从 0 过渡到最终尺寸。
47
+ * @param duration 动画时长,单位毫秒。
48
+ * @param easing 缓动函数名称。
49
+ * @param loop 是否循环播放。
50
+ * @param startTime 循环时间线起始时间,单位毫秒。
51
+ * @param delayAfter 单次动画结束后的等待时间,单位毫秒。
52
+ * @returns 散点缩放动画配置。
53
+ */
54
+ export declare const scaleInScatter: (duration: number, easing?: string, loop?: boolean, startTime?: number, delayAfter?: number) => {
55
+ loop: boolean;
56
+ startTime: number;
57
+ duration: number;
58
+ easing: string | undefined;
59
+ delayAfter: number;
60
+ channel: {
61
+ size: {
62
+ from: number;
63
+ to: (...args: any[]) => any;
64
+ };
65
+ };
66
+ controlOptions: {
67
+ immediatelyApply: boolean;
68
+ };
69
+ }[];
@@ -0,0 +1,59 @@
1
+ const flyInScatter = (duration, easing, loop = false, startTime = 0, delayAfter = 0)=>{
2
+ const half = duration / 2;
3
+ return [
4
+ {
5
+ loop,
6
+ startTime,
7
+ duration: half,
8
+ easing,
9
+ type: 'moveIn',
10
+ delayAfter,
11
+ options: {
12
+ direction: 'y',
13
+ orient: 'negative'
14
+ },
15
+ controlOptions: {
16
+ immediatelyApply: false
17
+ }
18
+ },
19
+ {
20
+ loop,
21
+ startTime,
22
+ duration: half,
23
+ easing,
24
+ delayAfter,
25
+ channel: {
26
+ fillOpacity: {
27
+ from: 0.5
28
+ },
29
+ size: {
30
+ from: (...args)=>args[1]?.attribute?.size
31
+ }
32
+ },
33
+ controlOptions: {
34
+ immediatelyApply: false
35
+ }
36
+ }
37
+ ];
38
+ };
39
+ const scaleInScatter = (duration, easing, loop = false, startTime = 0, delayAfter = 0)=>[
40
+ {
41
+ loop,
42
+ startTime,
43
+ duration,
44
+ easing,
45
+ delayAfter,
46
+ channel: {
47
+ size: {
48
+ from: 0,
49
+ to: (...args)=>args[1]?.attribute?.size
50
+ }
51
+ },
52
+ controlOptions: {
53
+ immediatelyApply: false
54
+ }
55
+ }
56
+ ];
57
+ export { flyInScatter, scaleInScatter };
58
+
59
+ //# sourceMappingURL=scatter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pipeline/spec/chart/pipes/animation/utils/scatter.js","sources":["../../../../../../../../src/pipeline/spec/chart/pipes/animation/utils/scatter.ts"],"sourcesContent":["/**\n * @description 生成散点飞入动画,同时恢复透明度和尺寸。\n * @param duration 动画总时长,单位毫秒。\n * @param easing 缓动函数名称。\n * @param loop 是否循环播放。\n * @param startTime 循环时间线起始时间,单位毫秒。\n * @param delayAfter 单次动画结束后的等待时间,单位毫秒。\n * @returns 散点飞入动画配置。\n */\nexport const flyInScatter = (duration: number, easing?: string, loop = false, startTime = 0, delayAfter = 0) => {\n const half = duration / 2\n return [\n {\n loop,\n startTime,\n duration: half,\n easing,\n type: 'moveIn',\n delayAfter,\n options: { direction: 'y', orient: 'negative' },\n controlOptions: { immediatelyApply: false },\n },\n {\n loop,\n startTime,\n duration: half,\n easing,\n delayAfter,\n channel: { fillOpacity: { from: 0.5 }, size: { from: (...args: any[]) => args[1]?.attribute?.size } },\n controlOptions: { immediatelyApply: false },\n },\n ]\n}\n\n/**\n * @description 生成散点缩放进入动画,保持点中心不变并从 0 过渡到最终尺寸。\n * @param duration 动画时长,单位毫秒。\n * @param easing 缓动函数名称。\n * @param loop 是否循环播放。\n * @param startTime 循环时间线起始时间,单位毫秒。\n * @param delayAfter 单次动画结束后的等待时间,单位毫秒。\n * @returns 散点缩放动画配置。\n */\nexport const scaleInScatter = (duration: number, easing?: string, loop = false, startTime = 0, delayAfter = 0) => [\n {\n loop,\n startTime,\n duration,\n easing,\n delayAfter,\n channel: { size: { from: 0, to: (...args: any[]) => args[1]?.attribute?.size } },\n controlOptions: { immediatelyApply: false },\n },\n]\n"],"names":["flyInScatter","duration","easing","loop","startTime","delayAfter","half","args","scaleInScatter"],"mappings":"AASO,MAAMA,eAAe,CAACC,UAAkBC,QAAiBC,OAAO,KAAK,EAAEC,YAAY,CAAC,EAAEC,aAAa,CAAC;IACzG,MAAMC,OAAOL,WAAW;IACxB,OAAO;QACL;YACEE;YACAC;YACA,UAAUE;YACVJ;YACA,MAAM;YACNG;YACA,SAAS;gBAAE,WAAW;gBAAK,QAAQ;YAAW;YAC9C,gBAAgB;gBAAE,kBAAkB;YAAM;QAC5C;QACA;YACEF;YACAC;YACA,UAAUE;YACVJ;YACAG;YACA,SAAS;gBAAE,aAAa;oBAAE,MAAM;gBAAI;gBAAG,MAAM;oBAAE,MAAM,CAAC,GAAGE,OAAgBA,IAAI,CAAC,EAAE,EAAE,WAAW;gBAAK;YAAE;YACpG,gBAAgB;gBAAE,kBAAkB;YAAM;QAC5C;KACD;AACH;AAWO,MAAMC,iBAAiB,CAACP,UAAkBC,QAAiBC,OAAO,KAAK,EAAEC,YAAY,CAAC,EAAEC,aAAa,CAAC,GAAK;QAChH;YACEF;YACAC;YACAH;YACAC;YACAG;YACA,SAAS;gBAAE,MAAM;oBAAE,MAAM;oBAAG,IAAI,CAAC,GAAGE,OAAgBA,IAAI,CAAC,EAAE,EAAE,WAAW;gBAAK;YAAE;YAC/E,gBAAgB;gBAAE,kBAAkB;YAAM;QAC5C;KACD"}
@@ -24,3 +24,4 @@ export * from './pipeFilter';
24
24
  export * from './player';
25
25
  export * from './hierarchy';
26
26
  export * from './theme';
27
+ export * from './animation';
@@ -24,3 +24,4 @@ export * from "./pipeFilter/index.js";
24
24
  export * from "./player/index.js";
25
25
  export * from "./hierarchy/index.js";
26
26
  export * from "./theme/index.js";
27
+ export * from "./animation/index.js";
@@ -1,5 +1,5 @@
1
1
  import type { Locale } from '../../i18n';
2
- import type { AnnotationArea, AnnotationDifferenceLine, 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, AnnotationDifferenceLine, 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
  * @recommend
5
5
  * - 推荐字段配置: `1`个指标, `2`个维度
@@ -100,6 +100,11 @@ export interface Area {
100
100
  * @description 框选配置,用于开启/关闭 brush 框选能力
101
101
  */
102
102
  brush?: Brush;
103
+ /**
104
+ * 动画配置
105
+ * @description 图表动画配置,按图表类型约束可选效果
106
+ */
107
+ animation?: LineAreaAnimation;
103
108
  /**
104
109
  * x轴
105
110
  * @description 类目轴, x轴配置, 用于定义图表的x轴, 包括x轴的位置, 格式, 样式等.
@@ -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>>>;
@@ -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>>;
@@ -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>>;
@@ -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
  */