@visactor/vseed 0.4.27 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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/annotation/annotationDifferenceLine.js +63 -10
- package/dist/esm/pipeline/spec/chart/pipes/annotation/annotationDifferenceLine.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/annotation/annotationPointCommon.d.ts +1 -0
- package/dist/esm/pipeline/spec/chart/pipes/annotation/annotationPointCommon.js +8 -3
- package/dist/esm/pipeline/spec/chart/pipes/annotation/annotationPointCommon.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/annotation/annotationPointOfDualAxis.js +3 -3
- package/dist/esm/pipeline/spec/chart/pipes/annotation/annotationPointOfDualAxis.js.map +1 -1
- 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 +42 -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 +42 -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 +42 -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 +42 -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 +42 -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/boxPlot/zBoxPlot.d.ts +2 -0
- package/dist/esm/types/chartType/column/column.d.ts +6 -1
- package/dist/esm/types/chartType/column/zColumn.d.ts +42 -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 +42 -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 +42 -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/dualAxis/zDualAxis.d.ts +2 -0
- package/dist/esm/types/chartType/histogram/zHistogram.d.ts +2 -0
- package/dist/esm/types/chartType/line/line.d.ts +6 -1
- package/dist/esm/types/chartType/line/zLine.d.ts +42 -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/raceBar/zRaceBar.d.ts +2 -0
- package/dist/esm/types/chartType/raceColumn/zRaceColumn.d.ts +2 -0
- package/dist/esm/types/chartType/raceLine/zRaceLine.d.ts +2 -0
- package/dist/esm/types/chartType/raceScatter/zRaceScatter.d.ts +2 -0
- 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 +42 -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/annotation/annotation.d.ts +2 -0
- package/dist/esm/types/properties/annotation/annotationPoint.d.ts +4 -0
- package/dist/esm/types/properties/annotation/zAnnotationPoint.d.ts +1 -0
- package/dist/esm/types/properties/annotation/zAnnotationPoint.js +1 -0
- package/dist/esm/types/properties/annotation/zAnnotationPoint.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/annotation/zAnnotation.js +1 -0
- package/dist/esm/types/properties/config/annotation/zAnnotation.js.map +1 -1
- 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 +5040 -641
- package/dist/umd/index.js.map +1 -1
- package/package.json +3 -3
|
@@ -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"}
|
|
@@ -1033,6 +1033,7 @@ export declare const zRaceBar: z.ZodObject<{
|
|
|
1033
1033
|
}>>>;
|
|
1034
1034
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
|
1035
1035
|
}, z.core.$strip>, z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>]>>]>>>;
|
|
1036
|
+
measureId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1036
1037
|
dynamicFilter: z.ZodOptional<z.ZodObject<{
|
|
1037
1038
|
type: z.ZodLiteral<"row-with-field">;
|
|
1038
1039
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -1214,6 +1215,7 @@ export declare const zRaceBar: z.ZodObject<{
|
|
|
1214
1215
|
}>>>;
|
|
1215
1216
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
|
1216
1217
|
}, z.core.$strip>, z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>]>>]>>>;
|
|
1218
|
+
measureId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1217
1219
|
dynamicFilter: z.ZodOptional<z.ZodObject<{
|
|
1218
1220
|
type: z.ZodLiteral<"row-with-field">;
|
|
1219
1221
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -1033,6 +1033,7 @@ export declare const zRaceColumn: z.ZodObject<{
|
|
|
1033
1033
|
}>>>;
|
|
1034
1034
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
|
1035
1035
|
}, z.core.$strip>, z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>]>>]>>>;
|
|
1036
|
+
measureId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1036
1037
|
dynamicFilter: z.ZodOptional<z.ZodObject<{
|
|
1037
1038
|
type: z.ZodLiteral<"row-with-field">;
|
|
1038
1039
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -1214,6 +1215,7 @@ export declare const zRaceColumn: z.ZodObject<{
|
|
|
1214
1215
|
}>>>;
|
|
1215
1216
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
|
1216
1217
|
}, z.core.$strip>, z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>]>>]>>>;
|
|
1218
|
+
measureId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1217
1219
|
dynamicFilter: z.ZodOptional<z.ZodObject<{
|
|
1218
1220
|
type: z.ZodLiteral<"row-with-field">;
|
|
1219
1221
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -1379,6 +1379,7 @@ export declare const zRaceLine: z.ZodObject<{
|
|
|
1379
1379
|
}>>>;
|
|
1380
1380
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
|
1381
1381
|
}, z.core.$strip>, z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>]>>]>>>;
|
|
1382
|
+
measureId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1382
1383
|
dynamicFilter: z.ZodOptional<z.ZodObject<{
|
|
1383
1384
|
type: z.ZodLiteral<"row-with-field">;
|
|
1384
1385
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -1560,6 +1561,7 @@ export declare const zRaceLine: z.ZodObject<{
|
|
|
1560
1561
|
}>>>;
|
|
1561
1562
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
|
1562
1563
|
}, z.core.$strip>, z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>]>>]>>>;
|
|
1564
|
+
measureId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1563
1565
|
dynamicFilter: z.ZodOptional<z.ZodObject<{
|
|
1564
1566
|
type: z.ZodLiteral<"row-with-field">;
|
|
1565
1567
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -1065,6 +1065,7 @@ export declare const zRaceScatter: z.ZodObject<{
|
|
|
1065
1065
|
}>>>;
|
|
1066
1066
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
|
1067
1067
|
}, z.core.$strip>, z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>]>>]>>>;
|
|
1068
|
+
measureId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1068
1069
|
dynamicFilter: z.ZodOptional<z.ZodObject<{
|
|
1069
1070
|
type: z.ZodLiteral<"row-with-field">;
|
|
1070
1071
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -1246,6 +1247,7 @@ export declare const zRaceScatter: z.ZodObject<{
|
|
|
1246
1247
|
}>>>;
|
|
1247
1248
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
|
1248
1249
|
}, z.core.$strip>, z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>]>>]>>>;
|
|
1250
|
+
measureId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1249
1251
|
dynamicFilter: z.ZodOptional<z.ZodObject<{
|
|
1250
1252
|
type: z.ZodLiteral<"row-with-field">;
|
|
1251
1253
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -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>>;
|
|
@@ -1036,6 +1076,7 @@ export declare const zScatter: z.ZodObject<{
|
|
|
1036
1076
|
}>>>;
|
|
1037
1077
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
|
1038
1078
|
}, z.core.$strip>, z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>]>>]>>>;
|
|
1079
|
+
measureId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1039
1080
|
dynamicFilter: z.ZodOptional<z.ZodObject<{
|
|
1040
1081
|
type: z.ZodLiteral<"row-with-field">;
|
|
1041
1082
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -1217,6 +1258,7 @@ export declare const zScatter: z.ZodObject<{
|
|
|
1217
1258
|
}>>>;
|
|
1218
1259
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
|
1219
1260
|
}, z.core.$strip>, z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>]>>]>>>;
|
|
1261
|
+
measureId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1220
1262
|
dynamicFilter: z.ZodOptional<z.ZodObject<{
|
|
1221
1263
|
type: z.ZodLiteral<"row-with-field">;
|
|
1222
1264
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { zLocale } from "../../i18n/index.js";
|
|
3
|
-
import { zAnnotationArea, 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"}
|
|
@@ -74,6 +74,7 @@ export declare const zAnnotation: z.ZodObject<{
|
|
|
74
74
|
}>>>;
|
|
75
75
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
|
76
76
|
}, z.core.$strip>, z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>]>>]>>>;
|
|
77
|
+
measureId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
77
78
|
dynamicFilter: z.ZodOptional<z.ZodObject<{
|
|
78
79
|
type: z.ZodLiteral<"row-with-field">;
|
|
79
80
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -255,6 +256,7 @@ export declare const zAnnotation: z.ZodObject<{
|
|
|
255
256
|
}>>>;
|
|
256
257
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
|
257
258
|
}, z.core.$strip>, z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>]>>]>>>;
|
|
259
|
+
measureId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
258
260
|
dynamicFilter: z.ZodOptional<z.ZodObject<{
|
|
259
261
|
type: z.ZodLiteral<"row-with-field">;
|
|
260
262
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -8,6 +8,10 @@ export type AnnotationPoint = {
|
|
|
8
8
|
* @description 标注点的选择器, 用于选择数据点.
|
|
9
9
|
*/
|
|
10
10
|
selector?: Selector | Selectors;
|
|
11
|
+
/**
|
|
12
|
+
* @description 指定标注点所属的指标 id。在多 measure 场景下,可与 selector 组合以唯一定位目标指标对应的标注点。
|
|
13
|
+
*/
|
|
14
|
+
measureId?: string;
|
|
11
15
|
/**
|
|
12
16
|
* 动态筛选器(AI生成代码执行)
|
|
13
17
|
* @description
|
|
@@ -73,6 +73,7 @@ export declare const zAnnotationPoint: z.ZodObject<{
|
|
|
73
73
|
}>>>;
|
|
74
74
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
|
75
75
|
}, z.core.$strip>, z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>]>>]>>>;
|
|
76
|
+
measureId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
76
77
|
dynamicFilter: z.ZodOptional<z.ZodObject<{
|
|
77
78
|
type: z.ZodLiteral<"row-with-field">;
|
|
78
79
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -5,6 +5,7 @@ const zAnnotationPoint = z.object({
|
|
|
5
5
|
zSelector,
|
|
6
6
|
zSelectors
|
|
7
7
|
]).nullish(),
|
|
8
|
+
measureId: z.string().nullish(),
|
|
8
9
|
dynamicFilter: zChartDynamicFilter.optional(),
|
|
9
10
|
text: z.string().or(z.array(z.string())).nullish(),
|
|
10
11
|
textColor: z.string().default('#ffffff').nullish(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types/properties/annotation/zAnnotationPoint.js","sources":["../../../../../src/types/properties/annotation/zAnnotationPoint.ts"],"sourcesContent":["import { zChartDynamicFilter, zSelector, zSelectors } from '../../dataSelector'\nimport { z } from 'zod'\n\nexport const zAnnotationPoint = z.object({\n selector: z.union([zSelector, zSelectors]).nullish(),\n dynamicFilter: zChartDynamicFilter.optional(),\n text: z.string().or(z.array(z.string())).nullish(),\n textColor: z.string().default('#ffffff').nullish(),\n textFontSize: z.number().default(12).nullish(),\n textFontWeight: z.number().default(400).nullish(),\n textAlign: z.enum(['left', 'right', 'center']).default('center').nullish(),\n textBaseline: z.enum(['top', 'middle', 'bottom']).default('middle').nullish(),\n textBackgroundVisible: z.boolean().default(true).nullish(),\n textBackgroundColor: z.string().default('#212121').nullish(),\n textBackgroundBorderColor: z.string().nullish(),\n textBackgroundBorderWidth: z.number().default(1).nullish(),\n textBackgroundBorderRadius: z.number().default(4).nullish(),\n textBackgroundPadding: z.number().nullish(),\n\n offsetY: z.number().default(0).nullish(),\n offsetX: z.number().default(0).nullish(),\n})\n"],"names":["zAnnotationPoint","z","zSelector","zSelectors","zChartDynamicFilter"],"mappings":";;AAGO,MAAMA,mBAAmBC,EAAE,MAAM,CAAC;IACvC,UAAUA,EAAE,KAAK,CAAC;QAACC;QAAWC;KAAW,EAAE,OAAO;IAClD,
|
|
1
|
+
{"version":3,"file":"types/properties/annotation/zAnnotationPoint.js","sources":["../../../../../src/types/properties/annotation/zAnnotationPoint.ts"],"sourcesContent":["import { zChartDynamicFilter, zSelector, zSelectors } from '../../dataSelector'\nimport { z } from 'zod'\n\nexport const zAnnotationPoint = z.object({\n selector: z.union([zSelector, zSelectors]).nullish(),\n measureId: z.string().nullish(),\n dynamicFilter: zChartDynamicFilter.optional(),\n text: z.string().or(z.array(z.string())).nullish(),\n textColor: z.string().default('#ffffff').nullish(),\n textFontSize: z.number().default(12).nullish(),\n textFontWeight: z.number().default(400).nullish(),\n textAlign: z.enum(['left', 'right', 'center']).default('center').nullish(),\n textBaseline: z.enum(['top', 'middle', 'bottom']).default('middle').nullish(),\n textBackgroundVisible: z.boolean().default(true).nullish(),\n textBackgroundColor: z.string().default('#212121').nullish(),\n textBackgroundBorderColor: z.string().nullish(),\n textBackgroundBorderWidth: z.number().default(1).nullish(),\n textBackgroundBorderRadius: z.number().default(4).nullish(),\n textBackgroundPadding: z.number().nullish(),\n\n offsetY: z.number().default(0).nullish(),\n offsetX: z.number().default(0).nullish(),\n})\n"],"names":["zAnnotationPoint","z","zSelector","zSelectors","zChartDynamicFilter"],"mappings":";;AAGO,MAAMA,mBAAmBC,EAAE,MAAM,CAAC;IACvC,UAAUA,EAAE,KAAK,CAAC;QAACC;QAAWC;KAAW,EAAE,OAAO;IAClD,WAAWF,EAAE,MAAM,GAAG,OAAO;IAC7B,eAAeG,oBAAoB,QAAQ;IAC3C,MAAMH,EAAE,MAAM,GAAG,EAAE,CAACA,EAAE,KAAK,CAACA,EAAE,MAAM,KAAK,OAAO;IAChD,WAAWA,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,OAAO;IAChD,cAAcA,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,OAAO;IAC5C,gBAAgBA,EAAE,MAAM,GAAG,OAAO,CAAC,KAAK,OAAO;IAC/C,WAAWA,CAAC,CAADA,OAAM,CAAC;QAAC;QAAQ;QAAS;KAAS,EAAE,OAAO,CAAC,UAAU,OAAO;IACxE,cAAcA,CAAC,CAADA,OAAM,CAAC;QAAC;QAAO;QAAU;KAAS,EAAE,OAAO,CAAC,UAAU,OAAO;IAC3E,uBAAuBA,EAAE,OAAO,GAAG,OAAO,CAAC,MAAM,OAAO;IACxD,qBAAqBA,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,OAAO;IAC1D,2BAA2BA,EAAE,MAAM,GAAG,OAAO;IAC7C,2BAA2BA,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,OAAO;IACxD,4BAA4BA,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,OAAO;IACzD,uBAAuBA,EAAE,MAAM,GAAG,OAAO;IAEzC,SAASA,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,OAAO;IACtC,SAASA,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,OAAO;AACxC"}
|