@visactor/vseed 0.4.28 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (193) hide show
  1. package/dist/cjs/index.cjs +2 -2
  2. package/dist/cjs/index.cjs.map +1 -1
  3. package/dist/esm/pipeline/advanced/chart/pipes/config/column.js +2 -1
  4. package/dist/esm/pipeline/advanced/chart/pipes/config/column.js.map +1 -1
  5. package/dist/esm/pipeline/advanced/chart/pipes/config/line.js +2 -1
  6. package/dist/esm/pipeline/advanced/chart/pipes/config/line.js.map +1 -1
  7. package/dist/esm/pipeline/advanced/chart/pipes/config/pie.js +2 -1
  8. package/dist/esm/pipeline/advanced/chart/pipes/config/pie.js.map +1 -1
  9. package/dist/esm/pipeline/advanced/chart/pipes/config/scatter.js +2 -1
  10. package/dist/esm/pipeline/advanced/chart/pipes/config/scatter.js.map +1 -1
  11. package/dist/esm/pipeline/spec/chart/pipeline/area.js +3 -1
  12. package/dist/esm/pipeline/spec/chart/pipeline/area.js.map +1 -1
  13. package/dist/esm/pipeline/spec/chart/pipeline/areaPercent.js +3 -1
  14. package/dist/esm/pipeline/spec/chart/pipeline/areaPercent.js.map +1 -1
  15. package/dist/esm/pipeline/spec/chart/pipeline/bar.js +3 -1
  16. package/dist/esm/pipeline/spec/chart/pipeline/bar.js.map +1 -1
  17. package/dist/esm/pipeline/spec/chart/pipeline/barParallel.js +3 -1
  18. package/dist/esm/pipeline/spec/chart/pipeline/barParallel.js.map +1 -1
  19. package/dist/esm/pipeline/spec/chart/pipeline/barPercent.js +3 -1
  20. package/dist/esm/pipeline/spec/chart/pipeline/barPercent.js.map +1 -1
  21. package/dist/esm/pipeline/spec/chart/pipeline/column.js +3 -1
  22. package/dist/esm/pipeline/spec/chart/pipeline/column.js.map +1 -1
  23. package/dist/esm/pipeline/spec/chart/pipeline/columnParallel.js +3 -1
  24. package/dist/esm/pipeline/spec/chart/pipeline/columnParallel.js.map +1 -1
  25. package/dist/esm/pipeline/spec/chart/pipeline/columnPercent.js +3 -1
  26. package/dist/esm/pipeline/spec/chart/pipeline/columnPercent.js.map +1 -1
  27. package/dist/esm/pipeline/spec/chart/pipeline/donut.js +3 -1
  28. package/dist/esm/pipeline/spec/chart/pipeline/donut.js.map +1 -1
  29. package/dist/esm/pipeline/spec/chart/pipeline/line.js +3 -1
  30. package/dist/esm/pipeline/spec/chart/pipeline/line.js.map +1 -1
  31. package/dist/esm/pipeline/spec/chart/pipeline/pie.js +3 -1
  32. package/dist/esm/pipeline/spec/chart/pipeline/pie.js.map +1 -1
  33. package/dist/esm/pipeline/spec/chart/pipeline/radar.js +3 -1
  34. package/dist/esm/pipeline/spec/chart/pipeline/radar.js.map +1 -1
  35. package/dist/esm/pipeline/spec/chart/pipeline/rose.js +3 -1
  36. package/dist/esm/pipeline/spec/chart/pipeline/rose.js.map +1 -1
  37. package/dist/esm/pipeline/spec/chart/pipeline/roseParallel.js +3 -1
  38. package/dist/esm/pipeline/spec/chart/pipeline/roseParallel.js.map +1 -1
  39. package/dist/esm/pipeline/spec/chart/pipeline/scatter.js +3 -1
  40. package/dist/esm/pipeline/spec/chart/pipeline/scatter.js.map +1 -1
  41. package/dist/esm/pipeline/spec/chart/pipes/animation/animation.d.ts +15 -0
  42. package/dist/esm/pipeline/spec/chart/pipes/animation/animation.js +94 -0
  43. package/dist/esm/pipeline/spec/chart/pipes/animation/animation.js.map +1 -0
  44. package/dist/esm/pipeline/spec/chart/pipes/animation/bar.d.ts +77 -0
  45. package/dist/esm/pipeline/spec/chart/pipes/animation/bar.js +88 -0
  46. package/dist/esm/pipeline/spec/chart/pipes/animation/bar.js.map +1 -0
  47. package/dist/esm/pipeline/spec/chart/pipes/animation/index.d.ts +2 -0
  48. package/dist/esm/pipeline/spec/chart/pipes/animation/index.js +2 -0
  49. package/dist/esm/pipeline/spec/chart/pipes/animation/lineOrArea.d.ts +254 -0
  50. package/dist/esm/pipeline/spec/chart/pipes/animation/lineOrArea.js +138 -0
  51. package/dist/esm/pipeline/spec/chart/pipes/animation/lineOrArea.js.map +1 -0
  52. package/dist/esm/pipeline/spec/chart/pipes/animation/pie.d.ts +71 -0
  53. package/dist/esm/pipeline/spec/chart/pipes/animation/pie.js +176 -0
  54. package/dist/esm/pipeline/spec/chart/pipes/animation/pie.js.map +1 -0
  55. package/dist/esm/pipeline/spec/chart/pipes/animation/radar.d.ts +131 -0
  56. package/dist/esm/pipeline/spec/chart/pipes/animation/radar.js +46 -0
  57. package/dist/esm/pipeline/spec/chart/pipes/animation/radar.js.map +1 -0
  58. package/dist/esm/pipeline/spec/chart/pipes/animation/scatter.d.ts +102 -0
  59. package/dist/esm/pipeline/spec/chart/pipes/animation/scatter.js +57 -0
  60. package/dist/esm/pipeline/spec/chart/pipes/animation/scatter.js.map +1 -0
  61. package/dist/esm/pipeline/spec/chart/pipes/animation/types.d.ts +130 -0
  62. package/dist/esm/pipeline/spec/chart/pipes/animation/types.js +19 -0
  63. package/dist/esm/pipeline/spec/chart/pipes/animation/types.js.map +1 -0
  64. package/dist/esm/pipeline/spec/chart/pipes/animation/utils/bar.d.ts +11 -0
  65. package/dist/esm/pipeline/spec/chart/pipes/animation/utils/bar.js +13 -0
  66. package/dist/esm/pipeline/spec/chart/pipes/animation/utils/bar.js.map +1 -0
  67. package/dist/esm/pipeline/spec/chart/pipes/animation/utils/barColor.d.ts +52 -0
  68. package/dist/esm/pipeline/spec/chart/pipes/animation/utils/barColor.js +51 -0
  69. package/dist/esm/pipeline/spec/chart/pipes/animation/utils/barColor.js.map +1 -0
  70. package/dist/esm/pipeline/spec/chart/pipes/animation/utils/barGroup.d.ts +102 -0
  71. package/dist/esm/pipeline/spec/chart/pipes/animation/utils/barGroup.js +84 -0
  72. package/dist/esm/pipeline/spec/chart/pipes/animation/utils/barGroup.js.map +1 -0
  73. package/dist/esm/pipeline/spec/chart/pipes/animation/utils/barMotion.d.ts +66 -0
  74. package/dist/esm/pipeline/spec/chart/pipes/animation/utils/barMotion.js +72 -0
  75. package/dist/esm/pipeline/spec/chart/pipes/animation/utils/barMotion.js.map +1 -0
  76. package/dist/esm/pipeline/spec/chart/pipes/animation/utils/index.d.ts +86 -0
  77. package/dist/esm/pipeline/spec/chart/pipes/animation/utils/index.js +60 -0
  78. package/dist/esm/pipeline/spec/chart/pipes/animation/utils/index.js.map +1 -0
  79. package/dist/esm/pipeline/spec/chart/pipes/animation/utils/lineOrArea.d.ts +29 -0
  80. package/dist/esm/pipeline/spec/chart/pipes/animation/utils/lineOrArea.js +20 -0
  81. package/dist/esm/pipeline/spec/chart/pipes/animation/utils/lineOrArea.js.map +1 -0
  82. package/dist/esm/pipeline/spec/chart/pipes/animation/utils/pie.d.ts +14 -0
  83. package/dist/esm/pipeline/spec/chart/pipes/animation/utils/pie.js +9 -0
  84. package/dist/esm/pipeline/spec/chart/pipes/animation/utils/pie.js.map +1 -0
  85. package/dist/esm/pipeline/spec/chart/pipes/animation/utils/scatter.d.ts +69 -0
  86. package/dist/esm/pipeline/spec/chart/pipes/animation/utils/scatter.js +59 -0
  87. package/dist/esm/pipeline/spec/chart/pipes/animation/utils/scatter.js.map +1 -0
  88. package/dist/esm/pipeline/spec/chart/pipes/index.d.ts +1 -0
  89. package/dist/esm/pipeline/spec/chart/pipes/index.js +1 -0
  90. package/dist/esm/types/chartType/area/area.d.ts +6 -1
  91. package/dist/esm/types/chartType/area/zArea.d.ts +40 -0
  92. package/dist/esm/types/chartType/area/zArea.js +2 -1
  93. package/dist/esm/types/chartType/area/zArea.js.map +1 -1
  94. package/dist/esm/types/chartType/areaPercent/areaPercent.d.ts +6 -1
  95. package/dist/esm/types/chartType/areaPercent/zAreaPercent.d.ts +40 -0
  96. package/dist/esm/types/chartType/areaPercent/zAreaPercent.js +2 -1
  97. package/dist/esm/types/chartType/areaPercent/zAreaPercent.js.map +1 -1
  98. package/dist/esm/types/chartType/bar/bar.d.ts +6 -1
  99. package/dist/esm/types/chartType/bar/zBar.d.ts +40 -0
  100. package/dist/esm/types/chartType/bar/zBar.js +2 -1
  101. package/dist/esm/types/chartType/bar/zBar.js.map +1 -1
  102. package/dist/esm/types/chartType/barParallel/barParallel.d.ts +6 -1
  103. package/dist/esm/types/chartType/barParallel/zBarParallel.d.ts +40 -0
  104. package/dist/esm/types/chartType/barParallel/zBarParallel.js +2 -1
  105. package/dist/esm/types/chartType/barParallel/zBarParallel.js.map +1 -1
  106. package/dist/esm/types/chartType/barPercent/barPercent.d.ts +6 -1
  107. package/dist/esm/types/chartType/barPercent/zBarPercent.d.ts +40 -0
  108. package/dist/esm/types/chartType/barPercent/zBarPercent.js +2 -1
  109. package/dist/esm/types/chartType/barPercent/zBarPercent.js.map +1 -1
  110. package/dist/esm/types/chartType/column/column.d.ts +6 -1
  111. package/dist/esm/types/chartType/column/zColumn.d.ts +40 -0
  112. package/dist/esm/types/chartType/column/zColumn.js +2 -1
  113. package/dist/esm/types/chartType/column/zColumn.js.map +1 -1
  114. package/dist/esm/types/chartType/columnParallel/columnParallel.d.ts +6 -1
  115. package/dist/esm/types/chartType/columnParallel/zColumnParallel.d.ts +40 -0
  116. package/dist/esm/types/chartType/columnParallel/zColumnParallel.js +2 -1
  117. package/dist/esm/types/chartType/columnParallel/zColumnParallel.js.map +1 -1
  118. package/dist/esm/types/chartType/columnPercent/columnPercent.d.ts +6 -1
  119. package/dist/esm/types/chartType/columnPercent/zColumnPercent.d.ts +40 -0
  120. package/dist/esm/types/chartType/columnPercent/zColumnPercent.js +2 -1
  121. package/dist/esm/types/chartType/columnPercent/zColumnPercent.js.map +1 -1
  122. package/dist/esm/types/chartType/donut/donut.d.ts +6 -1
  123. package/dist/esm/types/chartType/donut/zDonut.d.ts +40 -0
  124. package/dist/esm/types/chartType/donut/zDonut.js +2 -1
  125. package/dist/esm/types/chartType/donut/zDonut.js.map +1 -1
  126. package/dist/esm/types/chartType/line/line.d.ts +6 -1
  127. package/dist/esm/types/chartType/line/zLine.d.ts +40 -0
  128. package/dist/esm/types/chartType/line/zLine.js +2 -1
  129. package/dist/esm/types/chartType/line/zLine.js.map +1 -1
  130. package/dist/esm/types/chartType/pie/pie.d.ts +6 -1
  131. package/dist/esm/types/chartType/pie/zPie.d.ts +40 -0
  132. package/dist/esm/types/chartType/pie/zPie.js +2 -1
  133. package/dist/esm/types/chartType/pie/zPie.js.map +1 -1
  134. package/dist/esm/types/chartType/radar/radar.d.ts +6 -1
  135. package/dist/esm/types/chartType/radar/zRadar.d.ts +40 -0
  136. package/dist/esm/types/chartType/radar/zRadar.js +2 -1
  137. package/dist/esm/types/chartType/radar/zRadar.js.map +1 -1
  138. package/dist/esm/types/chartType/rose/rose.d.ts +6 -1
  139. package/dist/esm/types/chartType/rose/zRose.d.ts +40 -0
  140. package/dist/esm/types/chartType/rose/zRose.js +2 -1
  141. package/dist/esm/types/chartType/rose/zRose.js.map +1 -1
  142. package/dist/esm/types/chartType/roseParallel/roseParallel.d.ts +6 -1
  143. package/dist/esm/types/chartType/roseParallel/zRoseParallel.d.ts +40 -0
  144. package/dist/esm/types/chartType/roseParallel/zRoseParallel.js +2 -1
  145. package/dist/esm/types/chartType/roseParallel/zRoseParallel.js.map +1 -1
  146. package/dist/esm/types/chartType/scatter/scatter.d.ts +6 -1
  147. package/dist/esm/types/chartType/scatter/zScatter.d.ts +40 -0
  148. package/dist/esm/types/chartType/scatter/zScatter.js +2 -1
  149. package/dist/esm/types/chartType/scatter/zScatter.js.map +1 -1
  150. package/dist/esm/types/properties/config/animation/animation.d.ts +72 -0
  151. package/dist/esm/types/properties/config/animation/animation.js +0 -0
  152. package/dist/esm/types/properties/config/animation/animationAtmosphere.d.ts +15 -0
  153. package/dist/esm/types/properties/config/animation/animationAtmosphere.js +0 -0
  154. package/dist/esm/types/properties/config/animation/animationConfig.d.ts +2 -0
  155. package/dist/esm/types/properties/config/animation/animationConfig.js +0 -0
  156. package/dist/esm/types/properties/config/animation/animationEffect.d.ts +72 -0
  157. package/dist/esm/types/properties/config/animation/animationEffect.js +0 -0
  158. package/dist/esm/types/properties/config/animation/animationLoop.d.ts +49 -0
  159. package/dist/esm/types/properties/config/animation/animationLoop.js +0 -0
  160. package/dist/esm/types/properties/config/animation/index.d.ts +6 -0
  161. package/dist/esm/types/properties/config/animation/index.js +1 -0
  162. package/dist/esm/types/properties/config/animation/zAnimation.d.ts +201 -0
  163. package/dist/esm/types/properties/config/animation/zAnimation.js +114 -0
  164. package/dist/esm/types/properties/config/animation/zAnimation.js.map +1 -0
  165. package/dist/esm/types/properties/config/area.d.ts +80 -0
  166. package/dist/esm/types/properties/config/area.js +3 -1
  167. package/dist/esm/types/properties/config/area.js.map +1 -1
  168. package/dist/esm/types/properties/config/bar.d.ts +120 -0
  169. package/dist/esm/types/properties/config/bar.js +3 -1
  170. package/dist/esm/types/properties/config/bar.js.map +1 -1
  171. package/dist/esm/types/properties/config/column.d.ts +120 -0
  172. package/dist/esm/types/properties/config/column.js +3 -1
  173. package/dist/esm/types/properties/config/column.js.map +1 -1
  174. package/dist/esm/types/properties/config/config.d.ts +840 -0
  175. package/dist/esm/types/properties/config/index.d.ts +1 -0
  176. package/dist/esm/types/properties/config/index.js +1 -0
  177. package/dist/esm/types/properties/config/line.d.ts +40 -0
  178. package/dist/esm/types/properties/config/line.js +3 -1
  179. package/dist/esm/types/properties/config/line.js.map +1 -1
  180. package/dist/esm/types/properties/config/pie.d.ts +120 -0
  181. package/dist/esm/types/properties/config/pie.js +6 -2
  182. package/dist/esm/types/properties/config/pie.js.map +1 -1
  183. package/dist/esm/types/properties/config/race.d.ts +240 -0
  184. package/dist/esm/types/properties/config/rose.d.ts +80 -0
  185. package/dist/esm/types/properties/config/rose.js +3 -1
  186. package/dist/esm/types/properties/config/rose.js.map +1 -1
  187. package/dist/esm/types/properties/config/scatter.d.ts +40 -0
  188. package/dist/esm/types/properties/config/scatter.js +3 -1
  189. package/dist/esm/types/properties/config/scatter.js.map +1 -1
  190. package/dist/esm/types/properties/theme/customTheme.d.ts +1680 -0
  191. package/dist/umd/index.js +4962 -613
  192. package/dist/umd/index.js.map +1 -1
  193. package/package.json +2 -2
@@ -1,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 默认为亮色主题
@@ -461,6 +461,46 @@ export declare const zPie: 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 zPie = z.object({
5
5
  chartType: z.literal('pie'),
6
6
  dataset: zDataset.nullish(),
@@ -14,6 +14,7 @@ const zPie = 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/pie/zPie.js","sources":["../../../../../src/types/chartType/pie/zPie.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zLocale } from '../../i18n'\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 zPie = z.object({\n chartType: z.literal('pie'),\n dataset: zDataset.nullish(),\n encoding: zEncoding.nullish(),\n dimensions: zDimensions.nullish(),\n measures: zMeasures.nullish(),\n page: zPage.nullish(),\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":["zPie","z","zDataset","zEncoding","zDimensions","zMeasures","zPage","zBackgroundColor","zColor","zPieLabel","zLegend","zTooltip","zBrush","zTheme","zLocale"],"mappings":";;;AAiBO,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;IACnB,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/pie/zPie.js","sources":["../../../../../src/types/chartType/pie/zPie.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zLocale } from '../../i18n'\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 zPie = z.object({\n chartType: z.literal('pie'),\n dataset: zDataset.nullish(),\n encoding: zEncoding.nullish(),\n dimensions: zDimensions.nullish(),\n measures: zMeasures.nullish(),\n page: zPage.nullish(),\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":["zPie","z","zDataset","zEncoding","zDimensions","zMeasures","zPage","zBackgroundColor","zColor","zPieLabel","zLegend","zTooltip","zBrush","zPieLikeAnimation","zTheme","zLocale"],"mappings":";;;AAkBO,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;IACnB,iBAAiBC,iBAAiB,OAAO;IACzC,OAAOC,OAAO,OAAO;IACrB,OAAOC,UAAU,OAAO;IACxB,QAAQC,QAAQ,OAAO;IACvB,SAASC,SAAS,OAAO;IACzB,OAAOC,OAAO,OAAO;IACrB,WAAWC,kBAAkB,OAAO;IACpC,OAAOC,OAAO,OAAO;IACrB,QAAQC,QAAQ,OAAO;AACzB"}
@@ -1,5 +1,5 @@
1
1
  import { type Locale } from '../../i18n';
2
- import type { BackgroundColor, Color, Dataset, Label, Legend, Theme, Tooltip, Page, AreaStyle, LineStyle, PointStyle, RadarDimension, RadarMeasure } from '../../properties';
2
+ import type { BackgroundColor, Color, Dataset, Label, Legend, Theme, Tooltip, Page, AreaStyle, LineStyle, PointStyle, RadarDimension, RadarMeasure, RadarAnimation } from '../../properties';
3
3
  import type { Brush } from '../../properties';
4
4
  /**
5
5
  * @description 雷达图,适用于多维度数据的对比分析,通过多轴坐标系展示各维度的数值分布
@@ -87,6 +87,11 @@ export interface Radar {
87
87
  * @description 框选配置,用于开启/关闭 brush 框选能力
88
88
  */
89
89
  brush?: Brush;
90
+ /**
91
+ * 动画配置
92
+ * @description 图表动画配置,按图表类型约束可选效果
93
+ */
94
+ animation?: RadarAnimation;
90
95
  /**
91
96
  * 图表的主题, 主题是优先级较低的功能配置, 包含所有图表类型共用的通用配置, 与单类图表类型共用的图表配置
92
97
  * @default light 默认为亮色主题
@@ -460,6 +460,46 @@ export declare const zRadar: z.ZodObject<{
460
460
  lineWidth: z.ZodOptional<z.ZodNumber>;
461
461
  }, z.core.$strip>>;
462
462
  }, z.core.$strip>>>;
463
+ animation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
464
+ enable: z.ZodOptional<z.ZodBoolean>;
465
+ params: z.ZodOptional<z.ZodObject<{
466
+ appear: z.ZodOptional<z.ZodObject<{
467
+ enable: z.ZodOptional<z.ZodBoolean>;
468
+ effects: z.ZodOptional<z.ZodArray<z.ZodEnum<{
469
+ [x: string]: string;
470
+ }>>>;
471
+ ease: z.ZodOptional<z.ZodString>;
472
+ duration: z.ZodOptional<z.ZodNumber>;
473
+ color: z.ZodOptional<z.ZodString>;
474
+ }, z.core.$strip>>;
475
+ update: z.ZodOptional<z.ZodObject<{
476
+ enable: z.ZodOptional<z.ZodBoolean>;
477
+ effects: z.ZodOptional<z.ZodArray<z.ZodEnum<{
478
+ [x: string]: string;
479
+ }>>>;
480
+ ease: z.ZodOptional<z.ZodString>;
481
+ duration: z.ZodOptional<z.ZodNumber>;
482
+ color: z.ZodOptional<z.ZodString>;
483
+ }, z.core.$strip>>;
484
+ loop: z.ZodOptional<z.ZodObject<{
485
+ atmosphere?: z.ZodOptional<z.ZodObject<{
486
+ ease: z.ZodOptional<z.ZodString>;
487
+ color: z.ZodOptional<z.ZodString>;
488
+ }, z.core.$strip>> | undefined;
489
+ loop?: z.ZodOptional<z.ZodObject<{
490
+ enable: z.ZodOptional<z.ZodBoolean>;
491
+ effects: z.ZodOptional<z.ZodArray<z.ZodEnum<{
492
+ [x: string]: string;
493
+ }>>>;
494
+ ease: z.ZodOptional<z.ZodString>;
495
+ duration: z.ZodOptional<z.ZodNumber>;
496
+ color: z.ZodOptional<z.ZodString>;
497
+ }, z.core.$strip>> | undefined;
498
+ enable: z.ZodOptional<z.ZodBoolean>;
499
+ interval: z.ZodOptional<z.ZodNumber>;
500
+ }, z.core.$strip>>;
501
+ }, z.core.$strip>>;
502
+ }, z.core.$strip>>>;
463
503
  theme: z.ZodOptional<z.ZodNullable<z.ZodString>>;
464
504
  locale: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodEnum<{
465
505
  "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, zLabel, zLegend, zMeasures, zPage, zTheme, zTooltip } from "../../properties/index.js";
3
+ import { zBackgroundColor, zBrush, zColor, zDataset, zDimensions, zEncoding, zLabel, zLegend, zMeasures, zPage, zRadarAnimation, zTheme, zTooltip } from "../../properties/index.js";
4
4
  const zRadar = z.object({
5
5
  chartType: z.literal('radar'),
6
6
  dataset: zDataset.nullish(),
@@ -14,6 +14,7 @@ const zRadar = z.object({
14
14
  legend: zLegend.nullish(),
15
15
  tooltip: zTooltip.nullish(),
16
16
  brush: zBrush.nullish(),
17
+ animation: zRadarAnimation.nullish(),
17
18
  theme: zTheme.nullish(),
18
19
  locale: zLocale.nullish()
19
20
  });
@@ -1 +1 @@
1
- {"version":3,"file":"types/chartType/radar/zRadar.js","sources":["../../../../../src/types/chartType/radar/zRadar.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zLocale } from '../../i18n'\n\nimport {\n zBackgroundColor,\n zColor,\n zDataset,\n zDimensions,\n zEncoding,\n zLabel,\n zLegend,\n zMeasures,\n zTheme,\n zTooltip,\n zBrush,\n zPage,\n} from '../../properties'\n\nexport const zRadar = z.object({\n chartType: z.literal('radar'),\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 tooltip: zTooltip.nullish(),\n brush: zBrush.nullish(),\n theme: zTheme.nullish(),\n locale: zLocale.nullish(),\n})\n"],"names":["zRadar","z","zDataset","zEncoding","zDimensions","zMeasures","zPage","zBackgroundColor","zColor","zLabel","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,OAAO,OAAO;IACrB,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/radar/zRadar.js","sources":["../../../../../src/types/chartType/radar/zRadar.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zLocale } from '../../i18n'\n\nimport {\n zBackgroundColor,\n zColor,\n zDataset,\n zDimensions,\n zEncoding,\n zLabel,\n zLegend,\n zMeasures,\n zTheme,\n zTooltip,\n zBrush,\n zPage,\n zRadarAnimation,\n} from '../../properties'\n\nexport const zRadar = z.object({\n chartType: z.literal('radar'),\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 tooltip: zTooltip.nullish(),\n brush: zBrush.nullish(),\n animation: zRadarAnimation.nullish(),\n theme: zTheme.nullish(),\n locale: zLocale.nullish(),\n})\n"],"names":["zRadar","z","zDataset","zEncoding","zDimensions","zMeasures","zPage","zBackgroundColor","zColor","zLabel","zLegend","zTooltip","zBrush","zRadarAnimation","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,OAAO,OAAO;IACrB,QAAQC,QAAQ,OAAO;IACvB,SAASC,SAAS,OAAO;IACzB,OAAOC,OAAO,OAAO;IACrB,WAAWC,gBAAgB,OAAO;IAClC,OAAOC,OAAO,OAAO;IACrB,QAAQC,QAAQ,OAAO;AACzB"}
@@ -1,5 +1,5 @@
1
1
  import { type Locale } from '../../i18n';
2
- import type { Brush, RoseDimension, RoseMeasure, PieLabel, Page, BackgroundColor, Color, Dataset, Legend, Theme, Tooltip } from '../../properties';
2
+ import type { Brush, RoseDimension, RoseMeasure, PieLabel, Page, BackgroundColor, Color, Dataset, Legend, Theme, Tooltip, PieLikeAnimation } from '../../properties';
3
3
  /**
4
4
  * @description 堆叠玫瑰图,适用于多维度数据对比场景,通过极坐标系下的扇形弧度和半径展示数据大小
5
5
  * 适用场景:
@@ -87,6 +87,11 @@ export interface Rose {
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 默认为亮色主题
@@ -460,6 +460,46 @@ export declare const zRose: z.ZodObject<{
460
460
  lineWidth: z.ZodOptional<z.ZodNumber>;
461
461
  }, z.core.$strip>>;
462
462
  }, z.core.$strip>>>;
463
+ animation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
464
+ enable: z.ZodOptional<z.ZodBoolean>;
465
+ params: z.ZodOptional<z.ZodObject<{
466
+ appear: z.ZodOptional<z.ZodObject<{
467
+ enable: z.ZodOptional<z.ZodBoolean>;
468
+ effects: z.ZodOptional<z.ZodArray<z.ZodEnum<{
469
+ [x: string]: string;
470
+ }>>>;
471
+ ease: z.ZodOptional<z.ZodString>;
472
+ duration: z.ZodOptional<z.ZodNumber>;
473
+ color: z.ZodOptional<z.ZodString>;
474
+ }, z.core.$strip>>;
475
+ update: z.ZodOptional<z.ZodObject<{
476
+ enable: z.ZodOptional<z.ZodBoolean>;
477
+ effects: z.ZodOptional<z.ZodArray<z.ZodEnum<{
478
+ [x: string]: string;
479
+ }>>>;
480
+ ease: z.ZodOptional<z.ZodString>;
481
+ duration: z.ZodOptional<z.ZodNumber>;
482
+ color: z.ZodOptional<z.ZodString>;
483
+ }, z.core.$strip>>;
484
+ loop: z.ZodOptional<z.ZodObject<{
485
+ atmosphere?: z.ZodOptional<z.ZodObject<{
486
+ ease: z.ZodOptional<z.ZodString>;
487
+ color: z.ZodOptional<z.ZodString>;
488
+ }, z.core.$strip>> | undefined;
489
+ loop?: z.ZodOptional<z.ZodObject<{
490
+ enable: z.ZodOptional<z.ZodBoolean>;
491
+ effects: z.ZodOptional<z.ZodArray<z.ZodEnum<{
492
+ [x: string]: string;
493
+ }>>>;
494
+ ease: z.ZodOptional<z.ZodString>;
495
+ duration: z.ZodOptional<z.ZodNumber>;
496
+ color: z.ZodOptional<z.ZodString>;
497
+ }, z.core.$strip>> | undefined;
498
+ enable: z.ZodOptional<z.ZodBoolean>;
499
+ interval: z.ZodOptional<z.ZodNumber>;
500
+ }, z.core.$strip>>;
501
+ }, z.core.$strip>>;
502
+ }, z.core.$strip>>>;
463
503
  theme: z.ZodOptional<z.ZodNullable<z.ZodString>>;
464
504
  locale: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodEnum<{
465
505
  "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, zLabel, zLegend, zMeasures, zPage, zTheme, zTooltip } from "../../properties/index.js";
3
+ import { zBackgroundColor, zBrush, zColor, zDataset, zDimensions, zEncoding, zLabel, zLegend, zMeasures, zPage, zPieLikeAnimation, zTheme, zTooltip } from "../../properties/index.js";
4
4
  const zRose = z.object({
5
5
  chartType: z.literal('rose'),
6
6
  dataset: zDataset.nullish(),
@@ -14,6 +14,7 @@ const zRose = 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/rose/zRose.js","sources":["../../../../../src/types/chartType/rose/zRose.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zLocale } from '../../i18n'\n\nimport {\n zBackgroundColor,\n zColor,\n zDataset,\n zDimensions,\n zEncoding,\n zLabel,\n zLegend,\n zMeasures,\n zTheme,\n zTooltip,\n zBrush,\n zPage,\n} from '../../properties'\n\nexport const zRose = z.object({\n chartType: z.literal('rose'),\n dataset: zDataset.nullish(),\n encoding: zEncoding.nullish(),\n dimensions: zDimensions.nullish(),\n measures: zMeasures.nullish(),\n page: zPage.nullish(),\n backgroundColor: zBackgroundColor.nullish(),\n color: zColor.nullish(),\n label: zLabel.nullish(),\n legend: zLegend.nullish(),\n tooltip: zTooltip.nullish(),\n brush: zBrush.nullish(),\n theme: zTheme.nullish(),\n locale: zLocale.nullish(),\n})\n"],"names":["zRose","z","zDataset","zEncoding","zDimensions","zMeasures","zPage","zBackgroundColor","zColor","zLabel","zLegend","zTooltip","zBrush","zTheme","zLocale"],"mappings":";;;AAkBO,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;IACnB,iBAAiBC,iBAAiB,OAAO;IACzC,OAAOC,OAAO,OAAO;IACrB,OAAOC,OAAO,OAAO;IACrB,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/rose/zRose.js","sources":["../../../../../src/types/chartType/rose/zRose.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zLocale } from '../../i18n'\n\nimport {\n zBackgroundColor,\n zColor,\n zDataset,\n zDimensions,\n zEncoding,\n zLabel,\n zLegend,\n zMeasures,\n zTheme,\n zTooltip,\n zBrush,\n zPage,\n zPieLikeAnimation,\n} from '../../properties'\n\nexport const zRose = z.object({\n chartType: z.literal('rose'),\n dataset: zDataset.nullish(),\n encoding: zEncoding.nullish(),\n dimensions: zDimensions.nullish(),\n measures: zMeasures.nullish(),\n page: zPage.nullish(),\n backgroundColor: zBackgroundColor.nullish(),\n color: zColor.nullish(),\n label: zLabel.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":["zRose","z","zDataset","zEncoding","zDimensions","zMeasures","zPage","zBackgroundColor","zColor","zLabel","zLegend","zTooltip","zBrush","zPieLikeAnimation","zTheme","zLocale"],"mappings":";;;AAmBO,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;IACnB,iBAAiBC,iBAAiB,OAAO;IACzC,OAAOC,OAAO,OAAO;IACrB,OAAOC,OAAO,OAAO;IACrB,QAAQC,QAAQ,OAAO;IACvB,SAASC,SAAS,OAAO;IACzB,OAAOC,OAAO,OAAO;IACrB,WAAWC,kBAAkB,OAAO;IACpC,OAAOC,OAAO,OAAO;IACrB,QAAQC,QAAQ,OAAO;AACzB"}
@@ -1,5 +1,5 @@
1
1
  import { type Locale } from '../../i18n';
2
- import type { RoseParallelDimension, RoseParallelMeasure, PieLabel, Page, BackgroundColor, Color, Dataset, Legend, Theme, Tooltip } from '../../properties';
2
+ import type { RoseParallelDimension, RoseParallelMeasure, PieLabel, Page, BackgroundColor, Color, Dataset, Legend, Theme, Tooltip, PieLikeAnimation } from '../../properties';
3
3
  import type { Brush } from '../../properties';
4
4
  /**
5
5
  * @description 分组玫瑰图,适用于多维度数据对比场景,通过极坐标系下的扇形弧度和半径展示数据大小
@@ -88,6 +88,11 @@ export interface RoseParallel {
88
88
  * @description 框选配置,用于开启/关闭 brush 框选能力
89
89
  */
90
90
  brush?: Brush;
91
+ /**
92
+ * 动画配置
93
+ * @description 图表动画配置,按图表类型约束可选效果
94
+ */
95
+ animation?: PieLikeAnimation;
91
96
  /**
92
97
  * 图表的主题, 主题是优先级较低的功能配置, 包含所有图表类型共用的通用配置, 与单类图表类型共用的图表配置
93
98
  * @default light 默认为亮色主题
@@ -460,6 +460,46 @@ export declare const zRoseParallel: z.ZodObject<{
460
460
  lineWidth: z.ZodOptional<z.ZodNumber>;
461
461
  }, z.core.$strip>>;
462
462
  }, z.core.$strip>>>;
463
+ animation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
464
+ enable: z.ZodOptional<z.ZodBoolean>;
465
+ params: z.ZodOptional<z.ZodObject<{
466
+ appear: z.ZodOptional<z.ZodObject<{
467
+ enable: z.ZodOptional<z.ZodBoolean>;
468
+ effects: z.ZodOptional<z.ZodArray<z.ZodEnum<{
469
+ [x: string]: string;
470
+ }>>>;
471
+ ease: z.ZodOptional<z.ZodString>;
472
+ duration: z.ZodOptional<z.ZodNumber>;
473
+ color: z.ZodOptional<z.ZodString>;
474
+ }, z.core.$strip>>;
475
+ update: z.ZodOptional<z.ZodObject<{
476
+ enable: z.ZodOptional<z.ZodBoolean>;
477
+ effects: z.ZodOptional<z.ZodArray<z.ZodEnum<{
478
+ [x: string]: string;
479
+ }>>>;
480
+ ease: z.ZodOptional<z.ZodString>;
481
+ duration: z.ZodOptional<z.ZodNumber>;
482
+ color: z.ZodOptional<z.ZodString>;
483
+ }, z.core.$strip>>;
484
+ loop: z.ZodOptional<z.ZodObject<{
485
+ atmosphere?: z.ZodOptional<z.ZodObject<{
486
+ ease: z.ZodOptional<z.ZodString>;
487
+ color: z.ZodOptional<z.ZodString>;
488
+ }, z.core.$strip>> | undefined;
489
+ loop?: z.ZodOptional<z.ZodObject<{
490
+ enable: z.ZodOptional<z.ZodBoolean>;
491
+ effects: z.ZodOptional<z.ZodArray<z.ZodEnum<{
492
+ [x: string]: string;
493
+ }>>>;
494
+ ease: z.ZodOptional<z.ZodString>;
495
+ duration: z.ZodOptional<z.ZodNumber>;
496
+ color: z.ZodOptional<z.ZodString>;
497
+ }, z.core.$strip>> | undefined;
498
+ enable: z.ZodOptional<z.ZodBoolean>;
499
+ interval: z.ZodOptional<z.ZodNumber>;
500
+ }, z.core.$strip>>;
501
+ }, z.core.$strip>>;
502
+ }, z.core.$strip>>>;
463
503
  theme: z.ZodOptional<z.ZodNullable<z.ZodString>>;
464
504
  locale: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodEnum<{
465
505
  "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, zLabel, zLegend, zMeasures, zPage, zTheme, zTooltip } from "../../properties/index.js";
3
+ import { zBackgroundColor, zBrush, zColor, zDataset, zDimensions, zEncoding, zLabel, zLegend, zMeasures, zPage, zPieLikeAnimation, zTheme, zTooltip } from "../../properties/index.js";
4
4
  const zRoseParallel = z.object({
5
5
  chartType: z.literal('roseParallel'),
6
6
  dataset: zDataset.nullish(),
@@ -14,6 +14,7 @@ const zRoseParallel = 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/roseParallel/zRoseParallel.js","sources":["../../../../../src/types/chartType/roseParallel/zRoseParallel.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zLocale } from '../../i18n'\nimport {\n zBackgroundColor,\n zColor,\n zDataset,\n zDimensions,\n zEncoding,\n zLabel,\n zLegend,\n zMeasures,\n zTheme,\n zTooltip,\n zBrush,\n zPage,\n} from '../../properties'\n\nexport const zRoseParallel = z.object({\n chartType: z.literal('roseParallel'),\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 tooltip: zTooltip.nullish(),\n brush: zBrush.nullish(),\n theme: zTheme.nullish(),\n locale: zLocale.nullish(),\n})\n"],"names":["zRoseParallel","z","zDataset","zEncoding","zDimensions","zMeasures","zPage","zBackgroundColor","zColor","zLabel","zLegend","zTooltip","zBrush","zTheme","zLocale"],"mappings":";;;AAiBO,MAAMA,gBAAgBC,EAAE,MAAM,CAAC;IACpC,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,SAASC,SAAS,OAAO;IACzB,OAAOC,OAAO,OAAO;IACrB,OAAOC,OAAO,OAAO;IACrB,QAAQC,QAAQ,OAAO;AACzB"}
1
+ {"version":3,"file":"types/chartType/roseParallel/zRoseParallel.js","sources":["../../../../../src/types/chartType/roseParallel/zRoseParallel.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zLocale } from '../../i18n'\nimport {\n zBackgroundColor,\n zColor,\n zDataset,\n zDimensions,\n zEncoding,\n zLabel,\n zLegend,\n zMeasures,\n zTheme,\n zTooltip,\n zBrush,\n zPage,\n zPieLikeAnimation,\n} from '../../properties'\n\nexport const zRoseParallel = z.object({\n chartType: z.literal('roseParallel'),\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 tooltip: zTooltip.nullish(),\n brush: zBrush.nullish(),\n animation: zPieLikeAnimation.nullish(),\n theme: zTheme.nullish(),\n locale: zLocale.nullish(),\n})\n"],"names":["zRoseParallel","z","zDataset","zEncoding","zDimensions","zMeasures","zPage","zBackgroundColor","zColor","zLabel","zLegend","zTooltip","zBrush","zPieLikeAnimation","zTheme","zLocale"],"mappings":";;;AAkBO,MAAMA,gBAAgBC,EAAE,MAAM,CAAC;IACpC,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,SAASC,SAAS,OAAO;IACzB,OAAOC,OAAO,OAAO;IACrB,WAAWC,kBAAkB,OAAO;IACpC,OAAOC,OAAO,OAAO;IACrB,QAAQC,QAAQ,OAAO;AACzB"}
@@ -1,5 +1,5 @@
1
1
  import type { Locale } from '../../i18n';
2
- import type { AnnotationArea, AnnotationHorizontalLine, AnnotationPoint, AnnotationVerticalLine, BackgroundColor, Brush, Color, Dataset, Label, Legend, ScatterDimension, ScatterMeasure, PointStyle, Theme, Tooltip, CrosshairLine, YLinearAxis, XLinearAxis, LinearRegressionLine, LowessRegressionLine, PolynomialRegressionLine, LogisticRegressionLine, DimensionLinkage, Page } from '../../properties';
2
+ import type { AnnotationArea, AnnotationHorizontalLine, AnnotationPoint, AnnotationVerticalLine, BackgroundColor, Brush, Color, Dataset, Label, Legend, ScatterDimension, ScatterMeasure, PointStyle, Theme, Tooltip, CrosshairLine, YLinearAxis, XLinearAxis, LinearRegressionLine, LowessRegressionLine, PolynomialRegressionLine, LogisticRegressionLine, DimensionLinkage, Page, ScatterAnimation } from '../../properties';
3
3
  /**
4
4
  * @description 散点图,适用于展示数据的分布情况,通过点的位置表示数据的数值
5
5
  * 适用场景:
@@ -105,6 +105,11 @@ export interface Scatter {
105
105
  * @description 框选配置,用于开启/关闭 brush 框选能力
106
106
  */
107
107
  brush?: Brush;
108
+ /**
109
+ * 动画配置
110
+ * @description 图表动画配置,按图表类型约束可选效果
111
+ */
112
+ animation?: ScatterAnimation;
108
113
  /**
109
114
  * x轴
110
115
  * @description 数值轴, x轴配置, 用于定义图表的x轴, 包括x轴的位置, 格式, 样式等.
@@ -462,6 +462,46 @@ export declare const zScatter: 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, zAnnotationHorizontalLine, zAnnotationPoint, zAnnotationVerticalLine, zBackgroundColor, zBrush, zColor, zCrosshairLine, zDataset, zDimensionLinkage, zDimensions, zEncoding, zLabel, zLegend, zLinearRegressionLine, zLogisticRegressionLine, zLowessRegressionLine, zMeasures, zPage, zPointStyle, zPolynomialRegressionLine, zTheme, zTooltip, zXLinearAxis, zYLinearAxis } from "../../properties/index.js";
3
+ import { zAnnotationArea, zAnnotationHorizontalLine, zAnnotationPoint, zAnnotationVerticalLine, zBackgroundColor, zBrush, zColor, zCrosshairLine, zDataset, zDimensionLinkage, zDimensions, zEncoding, zLabel, zLegend, zLinearRegressionLine, zLogisticRegressionLine, zLowessRegressionLine, zMeasures, zPage, zPointStyle, zPolynomialRegressionLine, zScatterAnimation, zTheme, zTooltip, zXLinearAxis, zYLinearAxis } from "../../properties/index.js";
4
4
  const zScatter = z.object({
5
5
  chartType: z.literal('scatter'),
6
6
  dataset: zDataset.nullish(),
@@ -16,6 +16,7 @@ const zScatter = z.object({
16
16
  legend: zLegend.nullish(),
17
17
  tooltip: zTooltip.nullish(),
18
18
  brush: zBrush.nullish(),
19
+ animation: zScatterAnimation.nullish(),
19
20
  xAxis: zXLinearAxis.nullish(),
20
21
  yAxis: zYLinearAxis.nullish(),
21
22
  crosshairLine: zCrosshairLine.nullish(),
@@ -1 +1 @@
1
- {"version":3,"file":"types/chartType/scatter/zScatter.js","sources":["../../../../../src/types/chartType/scatter/zScatter.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zLocale } from '../../i18n'\nimport {\n zAnnotationArea,\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 zLinearRegressionLine,\n zLogisticRegressionLine,\n zLowessRegressionLine,\n zMeasures,\n zPointStyle,\n zPolynomialRegressionLine,\n zTheme,\n zTooltip,\n zBrush,\n zXLinearAxis,\n zYLinearAxis,\n zPage,\n} from '../../properties'\n\nexport const zScatter = z.object({\n chartType: z.literal('scatter'),\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 size: z.number().or(z.array(z.number())).nullish(),\n sizeRange: z.number().or(z.array(z.number())).nullish(),\n color: zColor.nullish(),\n label: zLabel.nullish(),\n legend: zLegend.nullish(),\n tooltip: zTooltip.nullish(),\n brush: zBrush.nullish(),\n xAxis: zXLinearAxis.nullish(),\n yAxis: zYLinearAxis.nullish(),\n crosshairLine: zCrosshairLine.nullish(),\n theme: zTheme.nullish(),\n pointStyle: z.array(zPointStyle).or(zPointStyle).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 linearRegressionLine: z.array(zLinearRegressionLine).or(zLinearRegressionLine).nullish(),\n lowessRegressionLine: z.array(zLowessRegressionLine).or(zLowessRegressionLine).nullish(),\n polynomialRegressionLine: z.array(zPolynomialRegressionLine).or(zPolynomialRegressionLine).nullish(),\n logisticRegressionLine: z.array(zLogisticRegressionLine).or(zLogisticRegressionLine).nullish(),\n dimensionLinkage: zDimensionLinkage.nullish(),\n locale: zLocale.nullish(),\n})\n"],"names":["zScatter","z","zDataset","zEncoding","zDimensions","zMeasures","zPage","zBackgroundColor","zColor","zLabel","zLegend","zTooltip","zBrush","zXLinearAxis","zYLinearAxis","zCrosshairLine","zTheme","zPointStyle","zAnnotationPoint","zAnnotationVerticalLine","zAnnotationHorizontalLine","zAnnotationArea","zLinearRegressionLine","zLowessRegressionLine","zPolynomialRegressionLine","zLogisticRegressionLine","zDimensionLinkage","zLocale"],"mappings":";;;AA8BO,MAAMA,WAAWC,EAAE,MAAM,CAAC;IAC/B,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,MAAMN,EAAE,MAAM,GAAG,EAAE,CAACA,EAAE,KAAK,CAACA,EAAE,MAAM,KAAK,OAAO;IAChD,WAAWA,EAAE,MAAM,GAAG,EAAE,CAACA,EAAE,KAAK,CAACA,EAAE,MAAM,KAAK,OAAO;IACrD,OAAOO,OAAO,OAAO;IACrB,OAAOC,OAAO,OAAO;IACrB,QAAQC,QAAQ,OAAO;IACvB,SAASC,SAAS,OAAO;IACzB,OAAOC,OAAO,OAAO;IACrB,OAAOC,aAAa,OAAO;IAC3B,OAAOC,aAAa,OAAO;IAC3B,eAAeC,eAAe,OAAO;IACrC,OAAOC,OAAO,OAAO;IACrB,YAAYf,EAAE,KAAK,CAACgB,aAAa,EAAE,CAACA,aAAa,OAAO;IACxD,iBAAiBhB,EAAE,KAAK,CAACiB,kBAAkB,EAAE,CAACA,kBAAkB,OAAO;IACvE,wBAAwBjB,EAAE,KAAK,CAACkB,yBAAyB,EAAE,CAACA,yBAAyB,OAAO;IAC5F,0BAA0BlB,EAAE,KAAK,CAACmB,2BAA2B,EAAE,CAACA,2BAA2B,OAAO;IAClG,gBAAgBnB,EAAE,KAAK,CAACoB,iBAAiB,EAAE,CAACA,iBAAiB,OAAO;IACpE,sBAAsBpB,EAAE,KAAK,CAACqB,uBAAuB,EAAE,CAACA,uBAAuB,OAAO;IACtF,sBAAsBrB,EAAE,KAAK,CAACsB,uBAAuB,EAAE,CAACA,uBAAuB,OAAO;IACtF,0BAA0BtB,EAAE,KAAK,CAACuB,2BAA2B,EAAE,CAACA,2BAA2B,OAAO;IAClG,wBAAwBvB,EAAE,KAAK,CAACwB,yBAAyB,EAAE,CAACA,yBAAyB,OAAO;IAC5F,kBAAkBC,kBAAkB,OAAO;IAC3C,QAAQC,QAAQ,OAAO;AACzB"}
1
+ {"version":3,"file":"types/chartType/scatter/zScatter.js","sources":["../../../../../src/types/chartType/scatter/zScatter.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zLocale } from '../../i18n'\nimport {\n zAnnotationArea,\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 zLinearRegressionLine,\n zLogisticRegressionLine,\n zLowessRegressionLine,\n zMeasures,\n zPointStyle,\n zPolynomialRegressionLine,\n zTheme,\n zTooltip,\n zBrush,\n zXLinearAxis,\n zYLinearAxis,\n zPage,\n zScatterAnimation,\n} from '../../properties'\n\nexport const zScatter = z.object({\n chartType: z.literal('scatter'),\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 size: z.number().or(z.array(z.number())).nullish(),\n sizeRange: z.number().or(z.array(z.number())).nullish(),\n color: zColor.nullish(),\n label: zLabel.nullish(),\n legend: zLegend.nullish(),\n tooltip: zTooltip.nullish(),\n brush: zBrush.nullish(),\n animation: zScatterAnimation.nullish(),\n xAxis: zXLinearAxis.nullish(),\n yAxis: zYLinearAxis.nullish(),\n crosshairLine: zCrosshairLine.nullish(),\n theme: zTheme.nullish(),\n pointStyle: z.array(zPointStyle).or(zPointStyle).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 linearRegressionLine: z.array(zLinearRegressionLine).or(zLinearRegressionLine).nullish(),\n lowessRegressionLine: z.array(zLowessRegressionLine).or(zLowessRegressionLine).nullish(),\n polynomialRegressionLine: z.array(zPolynomialRegressionLine).or(zPolynomialRegressionLine).nullish(),\n logisticRegressionLine: z.array(zLogisticRegressionLine).or(zLogisticRegressionLine).nullish(),\n dimensionLinkage: zDimensionLinkage.nullish(),\n locale: zLocale.nullish(),\n})\n"],"names":["zScatter","z","zDataset","zEncoding","zDimensions","zMeasures","zPage","zBackgroundColor","zColor","zLabel","zLegend","zTooltip","zBrush","zScatterAnimation","zXLinearAxis","zYLinearAxis","zCrosshairLine","zTheme","zPointStyle","zAnnotationPoint","zAnnotationVerticalLine","zAnnotationHorizontalLine","zAnnotationArea","zLinearRegressionLine","zLowessRegressionLine","zPolynomialRegressionLine","zLogisticRegressionLine","zDimensionLinkage","zLocale"],"mappings":";;;AA+BO,MAAMA,WAAWC,EAAE,MAAM,CAAC;IAC/B,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,MAAMN,EAAE,MAAM,GAAG,EAAE,CAACA,EAAE,KAAK,CAACA,EAAE,MAAM,KAAK,OAAO;IAChD,WAAWA,EAAE,MAAM,GAAG,EAAE,CAACA,EAAE,KAAK,CAACA,EAAE,MAAM,KAAK,OAAO;IACrD,OAAOO,OAAO,OAAO;IACrB,OAAOC,OAAO,OAAO;IACrB,QAAQC,QAAQ,OAAO;IACvB,SAASC,SAAS,OAAO;IACzB,OAAOC,OAAO,OAAO;IACrB,WAAWC,kBAAkB,OAAO;IACpC,OAAOC,aAAa,OAAO;IAC3B,OAAOC,aAAa,OAAO;IAC3B,eAAeC,eAAe,OAAO;IACrC,OAAOC,OAAO,OAAO;IACrB,YAAYhB,EAAE,KAAK,CAACiB,aAAa,EAAE,CAACA,aAAa,OAAO;IACxD,iBAAiBjB,EAAE,KAAK,CAACkB,kBAAkB,EAAE,CAACA,kBAAkB,OAAO;IACvE,wBAAwBlB,EAAE,KAAK,CAACmB,yBAAyB,EAAE,CAACA,yBAAyB,OAAO;IAC5F,0BAA0BnB,EAAE,KAAK,CAACoB,2BAA2B,EAAE,CAACA,2BAA2B,OAAO;IAClG,gBAAgBpB,EAAE,KAAK,CAACqB,iBAAiB,EAAE,CAACA,iBAAiB,OAAO;IACpE,sBAAsBrB,EAAE,KAAK,CAACsB,uBAAuB,EAAE,CAACA,uBAAuB,OAAO;IACtF,sBAAsBtB,EAAE,KAAK,CAACuB,uBAAuB,EAAE,CAACA,uBAAuB,OAAO;IACtF,0BAA0BvB,EAAE,KAAK,CAACwB,2BAA2B,EAAE,CAACA,2BAA2B,OAAO;IAClG,wBAAwBxB,EAAE,KAAK,CAACyB,yBAAyB,EAAE,CAACA,yBAAyB,OAAO;IAC5F,kBAAkBC,kBAAkB,OAAO;IAC3C,QAAQC,QAAQ,OAAO;AACzB"}
@@ -0,0 +1,72 @@
1
+ import type { BarLikeAppearAnimation, BarLikeUpdateAnimation, LineAreaAppearAnimation, LineAreaUpdateAnimation, PieLikeAppearAnimation, PieLikeUpdateAnimation, RadarAppearAnimation, RadarUpdateAnimation, ScatterAppearAnimation, ScatterUpdateAnimation } from './animationConfig';
2
+ import type { BarLikeAnimationLoop, LineAreaAnimationLoop, PieLikeAnimationLoop, RadarAnimationLoop, ScatterAnimationLoop } from './animationLoop';
3
+ export interface BarLikeAnimationParams {
4
+ /** @description 条形/柱形图入场动画配置 */
5
+ appear?: BarLikeAppearAnimation;
6
+ /** @description 条形/柱形图更新动画配置 */
7
+ update?: BarLikeUpdateAnimation;
8
+ /** @description 条形/柱形图循环动画配置 */
9
+ loop?: BarLikeAnimationLoop;
10
+ }
11
+ export interface LineAreaAnimationParams {
12
+ /** @description 折线/面积图入场动画配置 */
13
+ appear?: LineAreaAppearAnimation;
14
+ /** @description 折线/面积图更新动画配置 */
15
+ update?: LineAreaUpdateAnimation;
16
+ /** @description 折线/面积图循环动画配置 */
17
+ loop?: LineAreaAnimationLoop;
18
+ }
19
+ export interface ScatterAnimationParams {
20
+ /** @description 散点图入场动画配置 */
21
+ appear?: ScatterAppearAnimation;
22
+ /** @description 散点图更新动画配置 */
23
+ update?: ScatterUpdateAnimation;
24
+ /** @description 散点图循环动画配置 */
25
+ loop?: ScatterAnimationLoop;
26
+ }
27
+ export interface PieLikeAnimationParams {
28
+ /** @description 饼图/环图/玫瑰图入场动画配置 */
29
+ appear?: PieLikeAppearAnimation;
30
+ /** @description 饼图/环图/玫瑰图更新动画配置 */
31
+ update?: PieLikeUpdateAnimation;
32
+ /** @description 饼图/环图/玫瑰图循环动画配置 */
33
+ loop?: PieLikeAnimationLoop;
34
+ }
35
+ export interface RadarAnimationParams {
36
+ /** @description 雷达图入场动画配置 */
37
+ appear?: RadarAppearAnimation;
38
+ /** @description 雷达图更新动画配置 */
39
+ update?: RadarUpdateAnimation;
40
+ /** @description 雷达图循环动画配置 */
41
+ loop?: RadarAnimationLoop;
42
+ }
43
+ export interface BarLikeAnimation {
44
+ /** @description 是否启用条形/柱形图动画 */
45
+ enable?: boolean;
46
+ /** @description 条形/柱形图动画参数 */
47
+ params?: BarLikeAnimationParams;
48
+ }
49
+ export interface LineAreaAnimation {
50
+ /** @description 是否启用折线/面积图动画 */
51
+ enable?: boolean;
52
+ /** @description 折线/面积图动画参数 */
53
+ params?: LineAreaAnimationParams;
54
+ }
55
+ export interface ScatterAnimation {
56
+ /** @description 是否启用散点图动画 */
57
+ enable?: boolean;
58
+ /** @description 散点图动画参数 */
59
+ params?: ScatterAnimationParams;
60
+ }
61
+ export interface PieLikeAnimation {
62
+ /** @description 是否启用饼图/环图/玫瑰图动画 */
63
+ enable?: boolean;
64
+ /** @description 饼图/环图/玫瑰图动画参数 */
65
+ params?: PieLikeAnimationParams;
66
+ }
67
+ export interface RadarAnimation {
68
+ /** @description 是否启用雷达图动画 */
69
+ enable?: boolean;
70
+ /** @description 雷达图动画参数 */
71
+ params?: RadarAnimationParams;
72
+ }
@@ -0,0 +1,15 @@
1
+ export type PointAtmosphereEffect = 'ripple' | 'reveal' | 'breath';
2
+ export interface PointAtmosphereConfig {
3
+ /** @description 氛围动画缓动函数 */
4
+ ease?: string;
5
+ /** @description 氛围动画颜色 */
6
+ color?: string;
7
+ /** @description 氛围动画效果,支持涟漪、显隐和呼吸 */
8
+ effect?: PointAtmosphereEffect;
9
+ }
10
+ export interface NoEffectAtmosphereConfig {
11
+ /** @description 氛围动画缓动函数 */
12
+ ease?: string;
13
+ /** @description 氛围动画颜色 */
14
+ color?: string;
15
+ }
@@ -0,0 +1,2 @@
1
+ export type * from './animationAtmosphere';
2
+ export type * from './animationEffect';