@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.
- package/dist/cjs/index.cjs +2 -2
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipes/config/column.js +2 -1
- package/dist/esm/pipeline/advanced/chart/pipes/config/column.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipes/config/line.js +2 -1
- package/dist/esm/pipeline/advanced/chart/pipes/config/line.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipes/config/pie.js +2 -1
- package/dist/esm/pipeline/advanced/chart/pipes/config/pie.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipes/config/scatter.js +2 -1
- package/dist/esm/pipeline/advanced/chart/pipes/config/scatter.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/area.js +3 -1
- package/dist/esm/pipeline/spec/chart/pipeline/area.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/areaPercent.js +3 -1
- package/dist/esm/pipeline/spec/chart/pipeline/areaPercent.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/bar.js +3 -1
- package/dist/esm/pipeline/spec/chart/pipeline/bar.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/barParallel.js +3 -1
- package/dist/esm/pipeline/spec/chart/pipeline/barParallel.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/barPercent.js +3 -1
- package/dist/esm/pipeline/spec/chart/pipeline/barPercent.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/column.js +3 -1
- package/dist/esm/pipeline/spec/chart/pipeline/column.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/columnParallel.js +3 -1
- package/dist/esm/pipeline/spec/chart/pipeline/columnParallel.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/columnPercent.js +3 -1
- package/dist/esm/pipeline/spec/chart/pipeline/columnPercent.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/donut.js +3 -1
- package/dist/esm/pipeline/spec/chart/pipeline/donut.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/line.js +3 -1
- package/dist/esm/pipeline/spec/chart/pipeline/line.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/pie.js +3 -1
- package/dist/esm/pipeline/spec/chart/pipeline/pie.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/radar.js +3 -1
- package/dist/esm/pipeline/spec/chart/pipeline/radar.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/rose.js +3 -1
- package/dist/esm/pipeline/spec/chart/pipeline/rose.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/roseParallel.js +3 -1
- package/dist/esm/pipeline/spec/chart/pipeline/roseParallel.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/scatter.js +3 -1
- package/dist/esm/pipeline/spec/chart/pipeline/scatter.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/animation/animation.d.ts +15 -0
- package/dist/esm/pipeline/spec/chart/pipes/animation/animation.js +94 -0
- package/dist/esm/pipeline/spec/chart/pipes/animation/animation.js.map +1 -0
- package/dist/esm/pipeline/spec/chart/pipes/animation/bar.d.ts +77 -0
- package/dist/esm/pipeline/spec/chart/pipes/animation/bar.js +88 -0
- package/dist/esm/pipeline/spec/chart/pipes/animation/bar.js.map +1 -0
- package/dist/esm/pipeline/spec/chart/pipes/animation/index.d.ts +2 -0
- package/dist/esm/pipeline/spec/chart/pipes/animation/index.js +2 -0
- package/dist/esm/pipeline/spec/chart/pipes/animation/lineOrArea.d.ts +254 -0
- package/dist/esm/pipeline/spec/chart/pipes/animation/lineOrArea.js +138 -0
- package/dist/esm/pipeline/spec/chart/pipes/animation/lineOrArea.js.map +1 -0
- package/dist/esm/pipeline/spec/chart/pipes/animation/pie.d.ts +71 -0
- package/dist/esm/pipeline/spec/chart/pipes/animation/pie.js +176 -0
- package/dist/esm/pipeline/spec/chart/pipes/animation/pie.js.map +1 -0
- package/dist/esm/pipeline/spec/chart/pipes/animation/radar.d.ts +131 -0
- package/dist/esm/pipeline/spec/chart/pipes/animation/radar.js +46 -0
- package/dist/esm/pipeline/spec/chart/pipes/animation/radar.js.map +1 -0
- package/dist/esm/pipeline/spec/chart/pipes/animation/scatter.d.ts +102 -0
- package/dist/esm/pipeline/spec/chart/pipes/animation/scatter.js +57 -0
- package/dist/esm/pipeline/spec/chart/pipes/animation/scatter.js.map +1 -0
- package/dist/esm/pipeline/spec/chart/pipes/animation/types.d.ts +130 -0
- package/dist/esm/pipeline/spec/chart/pipes/animation/types.js +19 -0
- package/dist/esm/pipeline/spec/chart/pipes/animation/types.js.map +1 -0
- package/dist/esm/pipeline/spec/chart/pipes/animation/utils/bar.d.ts +11 -0
- package/dist/esm/pipeline/spec/chart/pipes/animation/utils/bar.js +13 -0
- package/dist/esm/pipeline/spec/chart/pipes/animation/utils/bar.js.map +1 -0
- package/dist/esm/pipeline/spec/chart/pipes/animation/utils/barColor.d.ts +52 -0
- package/dist/esm/pipeline/spec/chart/pipes/animation/utils/barColor.js +51 -0
- package/dist/esm/pipeline/spec/chart/pipes/animation/utils/barColor.js.map +1 -0
- package/dist/esm/pipeline/spec/chart/pipes/animation/utils/barGroup.d.ts +102 -0
- package/dist/esm/pipeline/spec/chart/pipes/animation/utils/barGroup.js +84 -0
- package/dist/esm/pipeline/spec/chart/pipes/animation/utils/barGroup.js.map +1 -0
- package/dist/esm/pipeline/spec/chart/pipes/animation/utils/barMotion.d.ts +66 -0
- package/dist/esm/pipeline/spec/chart/pipes/animation/utils/barMotion.js +72 -0
- package/dist/esm/pipeline/spec/chart/pipes/animation/utils/barMotion.js.map +1 -0
- package/dist/esm/pipeline/spec/chart/pipes/animation/utils/index.d.ts +86 -0
- package/dist/esm/pipeline/spec/chart/pipes/animation/utils/index.js +60 -0
- package/dist/esm/pipeline/spec/chart/pipes/animation/utils/index.js.map +1 -0
- package/dist/esm/pipeline/spec/chart/pipes/animation/utils/lineOrArea.d.ts +29 -0
- package/dist/esm/pipeline/spec/chart/pipes/animation/utils/lineOrArea.js +20 -0
- package/dist/esm/pipeline/spec/chart/pipes/animation/utils/lineOrArea.js.map +1 -0
- package/dist/esm/pipeline/spec/chart/pipes/animation/utils/pie.d.ts +14 -0
- package/dist/esm/pipeline/spec/chart/pipes/animation/utils/pie.js +9 -0
- package/dist/esm/pipeline/spec/chart/pipes/animation/utils/pie.js.map +1 -0
- package/dist/esm/pipeline/spec/chart/pipes/animation/utils/scatter.d.ts +69 -0
- package/dist/esm/pipeline/spec/chart/pipes/animation/utils/scatter.js +59 -0
- package/dist/esm/pipeline/spec/chart/pipes/animation/utils/scatter.js.map +1 -0
- package/dist/esm/pipeline/spec/chart/pipes/index.d.ts +1 -0
- package/dist/esm/pipeline/spec/chart/pipes/index.js +1 -0
- package/dist/esm/types/chartType/area/area.d.ts +6 -1
- package/dist/esm/types/chartType/area/zArea.d.ts +40 -0
- package/dist/esm/types/chartType/area/zArea.js +2 -1
- package/dist/esm/types/chartType/area/zArea.js.map +1 -1
- package/dist/esm/types/chartType/areaPercent/areaPercent.d.ts +6 -1
- package/dist/esm/types/chartType/areaPercent/zAreaPercent.d.ts +40 -0
- package/dist/esm/types/chartType/areaPercent/zAreaPercent.js +2 -1
- package/dist/esm/types/chartType/areaPercent/zAreaPercent.js.map +1 -1
- package/dist/esm/types/chartType/bar/bar.d.ts +6 -1
- package/dist/esm/types/chartType/bar/zBar.d.ts +40 -0
- package/dist/esm/types/chartType/bar/zBar.js +2 -1
- package/dist/esm/types/chartType/bar/zBar.js.map +1 -1
- package/dist/esm/types/chartType/barParallel/barParallel.d.ts +6 -1
- package/dist/esm/types/chartType/barParallel/zBarParallel.d.ts +40 -0
- package/dist/esm/types/chartType/barParallel/zBarParallel.js +2 -1
- package/dist/esm/types/chartType/barParallel/zBarParallel.js.map +1 -1
- package/dist/esm/types/chartType/barPercent/barPercent.d.ts +6 -1
- package/dist/esm/types/chartType/barPercent/zBarPercent.d.ts +40 -0
- package/dist/esm/types/chartType/barPercent/zBarPercent.js +2 -1
- package/dist/esm/types/chartType/barPercent/zBarPercent.js.map +1 -1
- package/dist/esm/types/chartType/column/column.d.ts +6 -1
- package/dist/esm/types/chartType/column/zColumn.d.ts +40 -0
- package/dist/esm/types/chartType/column/zColumn.js +2 -1
- package/dist/esm/types/chartType/column/zColumn.js.map +1 -1
- package/dist/esm/types/chartType/columnParallel/columnParallel.d.ts +6 -1
- package/dist/esm/types/chartType/columnParallel/zColumnParallel.d.ts +40 -0
- package/dist/esm/types/chartType/columnParallel/zColumnParallel.js +2 -1
- package/dist/esm/types/chartType/columnParallel/zColumnParallel.js.map +1 -1
- package/dist/esm/types/chartType/columnPercent/columnPercent.d.ts +6 -1
- package/dist/esm/types/chartType/columnPercent/zColumnPercent.d.ts +40 -0
- package/dist/esm/types/chartType/columnPercent/zColumnPercent.js +2 -1
- package/dist/esm/types/chartType/columnPercent/zColumnPercent.js.map +1 -1
- package/dist/esm/types/chartType/donut/donut.d.ts +6 -1
- package/dist/esm/types/chartType/donut/zDonut.d.ts +40 -0
- package/dist/esm/types/chartType/donut/zDonut.js +2 -1
- package/dist/esm/types/chartType/donut/zDonut.js.map +1 -1
- package/dist/esm/types/chartType/line/line.d.ts +6 -1
- package/dist/esm/types/chartType/line/zLine.d.ts +40 -0
- package/dist/esm/types/chartType/line/zLine.js +2 -1
- package/dist/esm/types/chartType/line/zLine.js.map +1 -1
- package/dist/esm/types/chartType/pie/pie.d.ts +6 -1
- package/dist/esm/types/chartType/pie/zPie.d.ts +40 -0
- package/dist/esm/types/chartType/pie/zPie.js +2 -1
- package/dist/esm/types/chartType/pie/zPie.js.map +1 -1
- package/dist/esm/types/chartType/radar/radar.d.ts +6 -1
- package/dist/esm/types/chartType/radar/zRadar.d.ts +40 -0
- package/dist/esm/types/chartType/radar/zRadar.js +2 -1
- package/dist/esm/types/chartType/radar/zRadar.js.map +1 -1
- package/dist/esm/types/chartType/rose/rose.d.ts +6 -1
- package/dist/esm/types/chartType/rose/zRose.d.ts +40 -0
- package/dist/esm/types/chartType/rose/zRose.js +2 -1
- package/dist/esm/types/chartType/rose/zRose.js.map +1 -1
- package/dist/esm/types/chartType/roseParallel/roseParallel.d.ts +6 -1
- package/dist/esm/types/chartType/roseParallel/zRoseParallel.d.ts +40 -0
- package/dist/esm/types/chartType/roseParallel/zRoseParallel.js +2 -1
- package/dist/esm/types/chartType/roseParallel/zRoseParallel.js.map +1 -1
- package/dist/esm/types/chartType/scatter/scatter.d.ts +6 -1
- package/dist/esm/types/chartType/scatter/zScatter.d.ts +40 -0
- package/dist/esm/types/chartType/scatter/zScatter.js +2 -1
- package/dist/esm/types/chartType/scatter/zScatter.js.map +1 -1
- package/dist/esm/types/properties/config/animation/animation.d.ts +72 -0
- package/dist/esm/types/properties/config/animation/animation.js +0 -0
- package/dist/esm/types/properties/config/animation/animationAtmosphere.d.ts +15 -0
- package/dist/esm/types/properties/config/animation/animationAtmosphere.js +0 -0
- package/dist/esm/types/properties/config/animation/animationConfig.d.ts +2 -0
- package/dist/esm/types/properties/config/animation/animationConfig.js +0 -0
- package/dist/esm/types/properties/config/animation/animationEffect.d.ts +72 -0
- package/dist/esm/types/properties/config/animation/animationEffect.js +0 -0
- package/dist/esm/types/properties/config/animation/animationLoop.d.ts +49 -0
- package/dist/esm/types/properties/config/animation/animationLoop.js +0 -0
- package/dist/esm/types/properties/config/animation/index.d.ts +6 -0
- package/dist/esm/types/properties/config/animation/index.js +1 -0
- package/dist/esm/types/properties/config/animation/zAnimation.d.ts +201 -0
- package/dist/esm/types/properties/config/animation/zAnimation.js +114 -0
- package/dist/esm/types/properties/config/animation/zAnimation.js.map +1 -0
- package/dist/esm/types/properties/config/area.d.ts +80 -0
- package/dist/esm/types/properties/config/area.js +3 -1
- package/dist/esm/types/properties/config/area.js.map +1 -1
- package/dist/esm/types/properties/config/bar.d.ts +120 -0
- package/dist/esm/types/properties/config/bar.js +3 -1
- package/dist/esm/types/properties/config/bar.js.map +1 -1
- package/dist/esm/types/properties/config/column.d.ts +120 -0
- package/dist/esm/types/properties/config/column.js +3 -1
- package/dist/esm/types/properties/config/column.js.map +1 -1
- package/dist/esm/types/properties/config/config.d.ts +840 -0
- package/dist/esm/types/properties/config/index.d.ts +1 -0
- package/dist/esm/types/properties/config/index.js +1 -0
- package/dist/esm/types/properties/config/line.d.ts +40 -0
- package/dist/esm/types/properties/config/line.js +3 -1
- package/dist/esm/types/properties/config/line.js.map +1 -1
- package/dist/esm/types/properties/config/pie.d.ts +120 -0
- package/dist/esm/types/properties/config/pie.js +6 -2
- package/dist/esm/types/properties/config/pie.js.map +1 -1
- package/dist/esm/types/properties/config/race.d.ts +240 -0
- package/dist/esm/types/properties/config/rose.d.ts +80 -0
- package/dist/esm/types/properties/config/rose.js +3 -1
- package/dist/esm/types/properties/config/rose.js.map +1 -1
- package/dist/esm/types/properties/config/scatter.d.ts +40 -0
- package/dist/esm/types/properties/config/scatter.js +3 -1
- package/dist/esm/types/properties/config/scatter.js.map +1 -1
- package/dist/esm/types/properties/theme/customTheme.d.ts +1680 -0
- package/dist/umd/index.js +4962 -613
- package/dist/umd/index.js.map +1 -1
- 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":";;;
|
|
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":";;;
|
|
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":";;;
|
|
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":";;;
|
|
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":";;;
|
|
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
|
+
}
|
|
File without changes
|
|
@@ -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
|
+
}
|
|
File without changes
|
|
File without changes
|