@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
|
@@ -466,6 +466,46 @@ export declare const zBarPercent: z.ZodObject<{
|
|
|
466
466
|
lineWidth: z.ZodOptional<z.ZodNumber>;
|
|
467
467
|
}, z.core.$strip>>;
|
|
468
468
|
}, z.core.$strip>>>;
|
|
469
|
+
animation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
470
|
+
enable: z.ZodOptional<z.ZodBoolean>;
|
|
471
|
+
params: z.ZodOptional<z.ZodObject<{
|
|
472
|
+
appear: z.ZodOptional<z.ZodObject<{
|
|
473
|
+
enable: z.ZodOptional<z.ZodBoolean>;
|
|
474
|
+
effects: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
475
|
+
[x: string]: string;
|
|
476
|
+
}>>>;
|
|
477
|
+
ease: z.ZodOptional<z.ZodString>;
|
|
478
|
+
duration: z.ZodOptional<z.ZodNumber>;
|
|
479
|
+
color: z.ZodOptional<z.ZodString>;
|
|
480
|
+
}, z.core.$strip>>;
|
|
481
|
+
update: z.ZodOptional<z.ZodObject<{
|
|
482
|
+
enable: z.ZodOptional<z.ZodBoolean>;
|
|
483
|
+
effects: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
484
|
+
[x: string]: string;
|
|
485
|
+
}>>>;
|
|
486
|
+
ease: z.ZodOptional<z.ZodString>;
|
|
487
|
+
duration: z.ZodOptional<z.ZodNumber>;
|
|
488
|
+
color: z.ZodOptional<z.ZodString>;
|
|
489
|
+
}, z.core.$strip>>;
|
|
490
|
+
loop: z.ZodOptional<z.ZodObject<{
|
|
491
|
+
atmosphere?: z.ZodOptional<z.ZodObject<{
|
|
492
|
+
ease: z.ZodOptional<z.ZodString>;
|
|
493
|
+
color: z.ZodOptional<z.ZodString>;
|
|
494
|
+
}, z.core.$strip>> | undefined;
|
|
495
|
+
loop?: z.ZodOptional<z.ZodObject<{
|
|
496
|
+
enable: z.ZodOptional<z.ZodBoolean>;
|
|
497
|
+
effects: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
498
|
+
[x: string]: string;
|
|
499
|
+
}>>>;
|
|
500
|
+
ease: z.ZodOptional<z.ZodString>;
|
|
501
|
+
duration: z.ZodOptional<z.ZodNumber>;
|
|
502
|
+
color: z.ZodOptional<z.ZodString>;
|
|
503
|
+
}, z.core.$strip>> | undefined;
|
|
504
|
+
enable: z.ZodOptional<z.ZodBoolean>;
|
|
505
|
+
interval: z.ZodOptional<z.ZodNumber>;
|
|
506
|
+
}, z.core.$strip>>;
|
|
507
|
+
}, z.core.$strip>>;
|
|
508
|
+
}, z.core.$strip>>>;
|
|
469
509
|
xAxis: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
470
510
|
visible: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
471
511
|
min: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { zLocale } from "../../i18n/index.js";
|
|
3
|
-
import { zAnnotationArea, zAnnotationHorizontalLine, zAnnotationPoint, zAnnotationVerticalLine, zBackgroundColor, zBarMaxWidth, zBarStyle, zBrush, zColor, zCrosshairRect, zDataset, zDimensionLinkage, zDimensions, zEncoding, zLabel, zLegend, zMeasures, zPage, zRegionPadding, zStackCornerRadius, zTheme, zTooltip, zXLinearAxis, zYBandAxis } from "../../properties/index.js";
|
|
3
|
+
import { zAnnotationArea, zAnnotationHorizontalLine, zAnnotationPoint, zAnnotationVerticalLine, zBackgroundColor, zBarLikeAnimation, zBarMaxWidth, zBarStyle, zBrush, zColor, zCrosshairRect, zDataset, zDimensionLinkage, zDimensions, zEncoding, zLabel, zLegend, zMeasures, zPage, zRegionPadding, zStackCornerRadius, zTheme, zTooltip, zXLinearAxis, zYBandAxis } from "../../properties/index.js";
|
|
4
4
|
const zBarPercent = z.object({
|
|
5
5
|
chartType: z.literal('barPercent'),
|
|
6
6
|
dataset: zDataset.nullish(),
|
|
@@ -15,6 +15,7 @@ const zBarPercent = z.object({
|
|
|
15
15
|
regionPadding: zRegionPadding.nullish(),
|
|
16
16
|
tooltip: zTooltip.nullish(),
|
|
17
17
|
brush: zBrush.nullish(),
|
|
18
|
+
animation: zBarLikeAnimation.nullish(),
|
|
18
19
|
xAxis: zXLinearAxis.nullish(),
|
|
19
20
|
yAxis: zYBandAxis.nullish(),
|
|
20
21
|
crosshairRect: zCrosshairRect.nullish(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types/chartType/barPercent/zBarPercent.js","sources":["../../../../../src/types/chartType/barPercent/zBarPercent.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zLocale } from '../../i18n'\nimport {\n zAnnotationArea,\n zAnnotationHorizontalLine,\n zAnnotationPoint,\n zAnnotationVerticalLine,\n zBackgroundColor,\n zBarMaxWidth,\n zBarStyle,\n zColor,\n zCrosshairRect,\n zDataset,\n zDimensionLinkage,\n zDimensions,\n zEncoding,\n zLabel,\n zLegend,\n zMeasures,\n zRegionPadding,\n zStackCornerRadius,\n zTheme,\n zTooltip,\n zBrush,\n zXLinearAxis,\n zYBandAxis,\n zPage,\n} from '../../properties'\n\nexport const zBarPercent = z.object({\n chartType: z.literal('barPercent'),\n dataset: zDataset.nullish(),\n encoding: zEncoding.nullish(),\n dimensions: zDimensions.nullish(),\n measures: zMeasures.nullish(),\n page: zPage.nullish(),\n\n backgroundColor: zBackgroundColor.nullish(),\n color: zColor.nullish(),\n label: zLabel.nullish(),\n legend: zLegend.nullish(),\n regionPadding: zRegionPadding.nullish(),\n tooltip: zTooltip.nullish(),\n brush: zBrush.nullish(),\n xAxis: zXLinearAxis.nullish(),\n yAxis: zYBandAxis.nullish(),\n crosshairRect: zCrosshairRect.nullish(),\n stackCornerRadius: zStackCornerRadius.nullish(),\n barMaxWidth: zBarMaxWidth.nullish(),\n theme: zTheme.nullish(),\n barStyle: z.array(zBarStyle).or(zBarStyle).nullish(),\n annotationPoint: z.array(zAnnotationPoint).or(zAnnotationPoint).nullish(),\n annotationVerticalLine: z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).nullish(),\n annotationHorizontalLine: z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).nullish(),\n annotationArea: z.array(zAnnotationArea).or(zAnnotationArea).nullish(),\n dimensionLinkage: zDimensionLinkage.nullish(),\n locale: zLocale.nullish(),\n})\n"],"names":["zBarPercent","z","zDataset","zEncoding","zDimensions","zMeasures","zPage","zBackgroundColor","zColor","zLabel","zLegend","zRegionPadding","zTooltip","zBrush","zXLinearAxis","zYBandAxis","zCrosshairRect","zStackCornerRadius","zBarMaxWidth","zTheme","zBarStyle","zAnnotationPoint","zAnnotationVerticalLine","zAnnotationHorizontalLine","zAnnotationArea","zDimensionLinkage","zLocale"],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"types/chartType/barPercent/zBarPercent.js","sources":["../../../../../src/types/chartType/barPercent/zBarPercent.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zLocale } from '../../i18n'\nimport {\n zAnnotationArea,\n zAnnotationHorizontalLine,\n zAnnotationPoint,\n zAnnotationVerticalLine,\n zBackgroundColor,\n zBarMaxWidth,\n zBarStyle,\n zColor,\n zCrosshairRect,\n zDataset,\n zDimensionLinkage,\n zDimensions,\n zEncoding,\n zLabel,\n zLegend,\n zMeasures,\n zRegionPadding,\n zStackCornerRadius,\n zTheme,\n zTooltip,\n zBrush,\n zXLinearAxis,\n zYBandAxis,\n zPage,\n zBarLikeAnimation,\n} from '../../properties'\n\nexport const zBarPercent = z.object({\n chartType: z.literal('barPercent'),\n dataset: zDataset.nullish(),\n encoding: zEncoding.nullish(),\n dimensions: zDimensions.nullish(),\n measures: zMeasures.nullish(),\n page: zPage.nullish(),\n\n backgroundColor: zBackgroundColor.nullish(),\n color: zColor.nullish(),\n label: zLabel.nullish(),\n legend: zLegend.nullish(),\n regionPadding: zRegionPadding.nullish(),\n tooltip: zTooltip.nullish(),\n brush: zBrush.nullish(),\n animation: zBarLikeAnimation.nullish(),\n xAxis: zXLinearAxis.nullish(),\n yAxis: zYBandAxis.nullish(),\n crosshairRect: zCrosshairRect.nullish(),\n stackCornerRadius: zStackCornerRadius.nullish(),\n barMaxWidth: zBarMaxWidth.nullish(),\n theme: zTheme.nullish(),\n barStyle: z.array(zBarStyle).or(zBarStyle).nullish(),\n annotationPoint: z.array(zAnnotationPoint).or(zAnnotationPoint).nullish(),\n annotationVerticalLine: z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).nullish(),\n annotationHorizontalLine: z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).nullish(),\n annotationArea: z.array(zAnnotationArea).or(zAnnotationArea).nullish(),\n dimensionLinkage: zDimensionLinkage.nullish(),\n locale: zLocale.nullish(),\n})\n"],"names":["zBarPercent","z","zDataset","zEncoding","zDimensions","zMeasures","zPage","zBackgroundColor","zColor","zLabel","zLegend","zRegionPadding","zTooltip","zBrush","zBarLikeAnimation","zXLinearAxis","zYBandAxis","zCrosshairRect","zStackCornerRadius","zBarMaxWidth","zTheme","zBarStyle","zAnnotationPoint","zAnnotationVerticalLine","zAnnotationHorizontalLine","zAnnotationArea","zDimensionLinkage","zLocale"],"mappings":";;;AA8BO,MAAMA,cAAcC,EAAE,MAAM,CAAC;IAClC,WAAWA,EAAE,OAAO,CAAC;IACrB,SAASC,SAAS,OAAO;IACzB,UAAUC,UAAU,OAAO;IAC3B,YAAYC,YAAY,OAAO;IAC/B,UAAUC,UAAU,OAAO;IAC3B,MAAMC,MAAM,OAAO;IAEnB,iBAAiBC,iBAAiB,OAAO;IACzC,OAAOC,OAAO,OAAO;IACrB,OAAOC,OAAO,OAAO;IACrB,QAAQC,QAAQ,OAAO;IACvB,eAAeC,eAAe,OAAO;IACrC,SAASC,SAAS,OAAO;IACzB,OAAOC,OAAO,OAAO;IACrB,WAAWC,kBAAkB,OAAO;IACpC,OAAOC,aAAa,OAAO;IAC3B,OAAOC,WAAW,OAAO;IACzB,eAAeC,eAAe,OAAO;IACrC,mBAAmBC,mBAAmB,OAAO;IAC7C,aAAaC,aAAa,OAAO;IACjC,OAAOC,OAAO,OAAO;IACrB,UAAUnB,EAAE,KAAK,CAACoB,WAAW,EAAE,CAACA,WAAW,OAAO;IAClD,iBAAiBpB,EAAE,KAAK,CAACqB,kBAAkB,EAAE,CAACA,kBAAkB,OAAO;IACvE,wBAAwBrB,EAAE,KAAK,CAACsB,yBAAyB,EAAE,CAACA,yBAAyB,OAAO;IAC5F,0BAA0BtB,EAAE,KAAK,CAACuB,2BAA2B,EAAE,CAACA,2BAA2B,OAAO;IAClG,gBAAgBvB,EAAE,KAAK,CAACwB,iBAAiB,EAAE,CAACA,iBAAiB,OAAO;IACpE,kBAAkBC,kBAAkB,OAAO;IAC3C,QAAQC,QAAQ,OAAO;AACzB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Locale } from '../../i18n';
|
|
2
|
-
import type { AnnotationArea, AnnotationDifferenceLine, AnnotationHorizontalLine, AnnotationPoint, AnnotationVerticalLine, BackgroundColor, Brush, BarStyle, Color, CrosshairRect, Dataset, Label, Legend, StackCornerRadius, Theme, Tooltip, XBandAxis, YLinearAxis, Sort, SortLegend, BarMaxWidth, PolynomialRegressionLine, DimensionLinkage, ColumnMeasure, ColumnDimension, Page, RegionPadding } from '../../properties';
|
|
2
|
+
import type { AnnotationArea, AnnotationDifferenceLine, AnnotationHorizontalLine, AnnotationPoint, AnnotationVerticalLine, BackgroundColor, Brush, BarStyle, Color, CrosshairRect, Dataset, Label, Legend, StackCornerRadius, Theme, Tooltip, XBandAxis, YLinearAxis, Sort, SortLegend, BarMaxWidth, PolynomialRegressionLine, DimensionLinkage, ColumnMeasure, ColumnDimension, Page, RegionPadding, BarLikeAnimation } from '../../properties';
|
|
3
3
|
/**
|
|
4
4
|
* @description 柱状图,适用于纵向数据对比场景,X轴为类目轴(分类数据),Y轴为数值轴(连续数据),柱子纵向排列
|
|
5
5
|
* 适用场景:
|
|
@@ -82,6 +82,11 @@ export interface Column {
|
|
|
82
82
|
* @description 框选配置,用于开启/关闭 brush 框选能力
|
|
83
83
|
*/
|
|
84
84
|
brush?: Brush;
|
|
85
|
+
/**
|
|
86
|
+
* 动画配置
|
|
87
|
+
* @description 图表动画配置,按图表类型约束可选效果
|
|
88
|
+
*/
|
|
89
|
+
animation?: BarLikeAnimation;
|
|
85
90
|
/**
|
|
86
91
|
* @description x轴, 类目轴, x轴配置, 用于定义图表的x轴, 包括x轴的位置, 格式, 样式等.
|
|
87
92
|
*/
|
|
@@ -487,6 +487,46 @@ export declare const zColumn: z.ZodObject<{
|
|
|
487
487
|
lineWidth: z.ZodOptional<z.ZodNumber>;
|
|
488
488
|
}, z.core.$strip>>;
|
|
489
489
|
}, z.core.$strip>>>;
|
|
490
|
+
animation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
491
|
+
enable: z.ZodOptional<z.ZodBoolean>;
|
|
492
|
+
params: z.ZodOptional<z.ZodObject<{
|
|
493
|
+
appear: z.ZodOptional<z.ZodObject<{
|
|
494
|
+
enable: z.ZodOptional<z.ZodBoolean>;
|
|
495
|
+
effects: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
496
|
+
[x: string]: string;
|
|
497
|
+
}>>>;
|
|
498
|
+
ease: z.ZodOptional<z.ZodString>;
|
|
499
|
+
duration: z.ZodOptional<z.ZodNumber>;
|
|
500
|
+
color: z.ZodOptional<z.ZodString>;
|
|
501
|
+
}, z.core.$strip>>;
|
|
502
|
+
update: z.ZodOptional<z.ZodObject<{
|
|
503
|
+
enable: z.ZodOptional<z.ZodBoolean>;
|
|
504
|
+
effects: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
505
|
+
[x: string]: string;
|
|
506
|
+
}>>>;
|
|
507
|
+
ease: z.ZodOptional<z.ZodString>;
|
|
508
|
+
duration: z.ZodOptional<z.ZodNumber>;
|
|
509
|
+
color: z.ZodOptional<z.ZodString>;
|
|
510
|
+
}, z.core.$strip>>;
|
|
511
|
+
loop: z.ZodOptional<z.ZodObject<{
|
|
512
|
+
atmosphere?: z.ZodOptional<z.ZodObject<{
|
|
513
|
+
ease: z.ZodOptional<z.ZodString>;
|
|
514
|
+
color: z.ZodOptional<z.ZodString>;
|
|
515
|
+
}, z.core.$strip>> | undefined;
|
|
516
|
+
loop?: z.ZodOptional<z.ZodObject<{
|
|
517
|
+
enable: z.ZodOptional<z.ZodBoolean>;
|
|
518
|
+
effects: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
519
|
+
[x: string]: string;
|
|
520
|
+
}>>>;
|
|
521
|
+
ease: z.ZodOptional<z.ZodString>;
|
|
522
|
+
duration: z.ZodOptional<z.ZodNumber>;
|
|
523
|
+
color: z.ZodOptional<z.ZodString>;
|
|
524
|
+
}, z.core.$strip>> | undefined;
|
|
525
|
+
enable: z.ZodOptional<z.ZodBoolean>;
|
|
526
|
+
interval: z.ZodOptional<z.ZodNumber>;
|
|
527
|
+
}, z.core.$strip>>;
|
|
528
|
+
}, z.core.$strip>>;
|
|
529
|
+
}, z.core.$strip>>>;
|
|
490
530
|
xAxis: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
491
531
|
visible: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
492
532
|
labelAutoHide: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { zLocale } from "../../i18n/index.js";
|
|
3
|
-
import { zAnnotationArea, zAnnotationDifferenceLine, zAnnotationHorizontalLine, zAnnotationPoint, zAnnotationVerticalLine, zBackgroundColor, zBarMaxWidth, zBarStyle, zBrush, zColor, zCrosshairRect, zDataset, zDimensionLinkage, zDimensions, zEncoding, zLabel, zLegend, zMeasures, zPage, zPlayer, zPolynomialRegressionLine, zRegionPadding, zSort, zSortLegend, zStackCornerRadius, zTheme, zTooltip, zXBandAxis, zYLinearAxis } from "../../properties/index.js";
|
|
3
|
+
import { zAnnotationArea, zAnnotationDifferenceLine, zAnnotationHorizontalLine, zAnnotationPoint, zAnnotationVerticalLine, zBackgroundColor, zBarLikeAnimation, zBarMaxWidth, zBarStyle, zBrush, zColor, zCrosshairRect, zDataset, zDimensionLinkage, zDimensions, zEncoding, zLabel, zLegend, zMeasures, zPage, zPlayer, zPolynomialRegressionLine, zRegionPadding, zSort, zSortLegend, zStackCornerRadius, zTheme, zTooltip, zXBandAxis, zYLinearAxis } from "../../properties/index.js";
|
|
4
4
|
const zColumn = z.object({
|
|
5
5
|
chartType: z.literal('column'),
|
|
6
6
|
dataset: zDataset.nullish(),
|
|
@@ -16,6 +16,7 @@ const zColumn = z.object({
|
|
|
16
16
|
regionPadding: zRegionPadding.nullish(),
|
|
17
17
|
tooltip: zTooltip.nullish(),
|
|
18
18
|
brush: zBrush.nullish(),
|
|
19
|
+
animation: zBarLikeAnimation.nullish(),
|
|
19
20
|
xAxis: zXBandAxis.nullish(),
|
|
20
21
|
yAxis: zYLinearAxis.nullish(),
|
|
21
22
|
sort: zSort.nullish(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types/chartType/column/zColumn.js","sources":["../../../../../src/types/chartType/column/zColumn.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zLocale } from '../../i18n'\nimport {\n zAnnotationArea,\n zAnnotationDifferenceLine,\n zAnnotationHorizontalLine,\n zAnnotationPoint,\n zAnnotationVerticalLine,\n zBackgroundColor,\n zBarMaxWidth,\n zBarStyle,\n zColor,\n zCrosshairRect,\n zDataset,\n zDimensionLinkage,\n zDimensions,\n zEncoding,\n zLabel,\n zLegend,\n zMeasures,\n zPolynomialRegressionLine,\n zRegionPadding,\n zSort,\n zSortLegend,\n zStackCornerRadius,\n zTheme,\n zTooltip,\n zBrush,\n zXBandAxis,\n zYLinearAxis,\n zPage,\n zPlayer,\n} from '../../properties'\n\nexport const zColumn = z.object({\n chartType: z.literal('column'),\n dataset: zDataset.nullish(),\n encoding: zEncoding.nullish(),\n dimensions: zDimensions.nullish(),\n measures: zMeasures.nullish(),\n page: zPage.nullish(),\n player: zPlayer.nullish(),\n\n backgroundColor: zBackgroundColor.nullish(),\n color: zColor.nullish(),\n label: zLabel.nullish(),\n legend: zLegend.nullish(),\n regionPadding: zRegionPadding.nullish(),\n tooltip: zTooltip.nullish(),\n brush: zBrush.nullish(),\n xAxis: zXBandAxis.nullish(),\n yAxis: zYLinearAxis.nullish(),\n sort: zSort.nullish(),\n sortLegent: zSortLegend.nullish(),\n crosshairRect: zCrosshairRect.nullish(),\n stackCornerRadius: zStackCornerRadius.nullish(),\n barMaxWidth: zBarMaxWidth.nullish(),\n theme: zTheme.nullish(),\n barStyle: z.array(zBarStyle).or(zBarStyle).nullish(),\n annotationPoint: z.array(zAnnotationPoint).or(zAnnotationPoint).nullish(),\n annotationVerticalLine: z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).nullish(),\n annotationHorizontalLine: z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).nullish(),\n annotationArea: z.array(zAnnotationArea).or(zAnnotationArea).nullish(),\n annotationDifferenceLine: z.array(zAnnotationDifferenceLine).or(zAnnotationDifferenceLine).nullish(),\n polynomialRegressionLine: z.array(zPolynomialRegressionLine).or(zPolynomialRegressionLine).nullish(),\n dimensionLinkage: zDimensionLinkage.nullish(),\n locale: zLocale.nullish(),\n})\n"],"names":["zColumn","z","zDataset","zEncoding","zDimensions","zMeasures","zPage","zPlayer","zBackgroundColor","zColor","zLabel","zLegend","zRegionPadding","zTooltip","zBrush","zXBandAxis","zYLinearAxis","zSort","zSortLegend","zCrosshairRect","zStackCornerRadius","zBarMaxWidth","zTheme","zBarStyle","zAnnotationPoint","zAnnotationVerticalLine","zAnnotationHorizontalLine","zAnnotationArea","zAnnotationDifferenceLine","zPolynomialRegressionLine","zDimensionLinkage","zLocale"],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"types/chartType/column/zColumn.js","sources":["../../../../../src/types/chartType/column/zColumn.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zLocale } from '../../i18n'\nimport {\n zAnnotationArea,\n zAnnotationDifferenceLine,\n zAnnotationHorizontalLine,\n zAnnotationPoint,\n zAnnotationVerticalLine,\n zBackgroundColor,\n zBarMaxWidth,\n zBarStyle,\n zColor,\n zCrosshairRect,\n zDataset,\n zDimensionLinkage,\n zDimensions,\n zEncoding,\n zLabel,\n zLegend,\n zMeasures,\n zPolynomialRegressionLine,\n zRegionPadding,\n zSort,\n zSortLegend,\n zStackCornerRadius,\n zTheme,\n zTooltip,\n zBrush,\n zXBandAxis,\n zYLinearAxis,\n zPage,\n zPlayer,\n zBarLikeAnimation,\n} from '../../properties'\n\nexport const zColumn = z.object({\n chartType: z.literal('column'),\n dataset: zDataset.nullish(),\n encoding: zEncoding.nullish(),\n dimensions: zDimensions.nullish(),\n measures: zMeasures.nullish(),\n page: zPage.nullish(),\n player: zPlayer.nullish(),\n\n backgroundColor: zBackgroundColor.nullish(),\n color: zColor.nullish(),\n label: zLabel.nullish(),\n legend: zLegend.nullish(),\n regionPadding: zRegionPadding.nullish(),\n tooltip: zTooltip.nullish(),\n brush: zBrush.nullish(),\n animation: zBarLikeAnimation.nullish(),\n xAxis: zXBandAxis.nullish(),\n yAxis: zYLinearAxis.nullish(),\n sort: zSort.nullish(),\n sortLegent: zSortLegend.nullish(),\n crosshairRect: zCrosshairRect.nullish(),\n stackCornerRadius: zStackCornerRadius.nullish(),\n barMaxWidth: zBarMaxWidth.nullish(),\n theme: zTheme.nullish(),\n barStyle: z.array(zBarStyle).or(zBarStyle).nullish(),\n annotationPoint: z.array(zAnnotationPoint).or(zAnnotationPoint).nullish(),\n annotationVerticalLine: z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).nullish(),\n annotationHorizontalLine: z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).nullish(),\n annotationArea: z.array(zAnnotationArea).or(zAnnotationArea).nullish(),\n annotationDifferenceLine: z.array(zAnnotationDifferenceLine).or(zAnnotationDifferenceLine).nullish(),\n polynomialRegressionLine: z.array(zPolynomialRegressionLine).or(zPolynomialRegressionLine).nullish(),\n dimensionLinkage: zDimensionLinkage.nullish(),\n locale: zLocale.nullish(),\n})\n"],"names":["zColumn","z","zDataset","zEncoding","zDimensions","zMeasures","zPage","zPlayer","zBackgroundColor","zColor","zLabel","zLegend","zRegionPadding","zTooltip","zBrush","zBarLikeAnimation","zXBandAxis","zYLinearAxis","zSort","zSortLegend","zCrosshairRect","zStackCornerRadius","zBarMaxWidth","zTheme","zBarStyle","zAnnotationPoint","zAnnotationVerticalLine","zAnnotationHorizontalLine","zAnnotationArea","zAnnotationDifferenceLine","zPolynomialRegressionLine","zDimensionLinkage","zLocale"],"mappings":";;;AAmCO,MAAMA,UAAUC,EAAE,MAAM,CAAC;IAC9B,WAAWA,EAAE,OAAO,CAAC;IACrB,SAASC,SAAS,OAAO;IACzB,UAAUC,UAAU,OAAO;IAC3B,YAAYC,YAAY,OAAO;IAC/B,UAAUC,UAAU,OAAO;IAC3B,MAAMC,MAAM,OAAO;IACnB,QAAQC,QAAQ,OAAO;IAEvB,iBAAiBC,iBAAiB,OAAO;IACzC,OAAOC,OAAO,OAAO;IACrB,OAAOC,OAAO,OAAO;IACrB,QAAQC,QAAQ,OAAO;IACvB,eAAeC,eAAe,OAAO;IACrC,SAASC,SAAS,OAAO;IACzB,OAAOC,OAAO,OAAO;IACrB,WAAWC,kBAAkB,OAAO;IACpC,OAAOC,WAAW,OAAO;IACzB,OAAOC,aAAa,OAAO;IAC3B,MAAMC,MAAM,OAAO;IACnB,YAAYC,YAAY,OAAO;IAC/B,eAAeC,eAAe,OAAO;IACrC,mBAAmBC,mBAAmB,OAAO;IAC7C,aAAaC,aAAa,OAAO;IACjC,OAAOC,OAAO,OAAO;IACrB,UAAUtB,EAAE,KAAK,CAACuB,WAAW,EAAE,CAACA,WAAW,OAAO;IAClD,iBAAiBvB,EAAE,KAAK,CAACwB,kBAAkB,EAAE,CAACA,kBAAkB,OAAO;IACvE,wBAAwBxB,EAAE,KAAK,CAACyB,yBAAyB,EAAE,CAACA,yBAAyB,OAAO;IAC5F,0BAA0BzB,EAAE,KAAK,CAAC0B,2BAA2B,EAAE,CAACA,2BAA2B,OAAO;IAClG,gBAAgB1B,EAAE,KAAK,CAAC2B,iBAAiB,EAAE,CAACA,iBAAiB,OAAO;IACpE,0BAA0B3B,EAAE,KAAK,CAAC4B,2BAA2B,EAAE,CAACA,2BAA2B,OAAO;IAClG,0BAA0B5B,EAAE,KAAK,CAAC6B,2BAA2B,EAAE,CAACA,2BAA2B,OAAO;IAClG,kBAAkBC,kBAAkB,OAAO;IAC3C,QAAQC,QAAQ,OAAO;AACzB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Locale } from '../../i18n';
|
|
2
|
-
import type { AnnotationArea, AnnotationDifferenceLine, AnnotationHorizontalLine, AnnotationPoint, AnnotationVerticalLine, BackgroundColor, Brush, BarStyle, Color, CrosshairRect, Dataset, Label, Legend, StackCornerRadius, Theme, Tooltip, XBandAxis, YLinearAxis, SortLegend, Sort, BarMaxWidth, BarGapInGroup, DimensionLinkage, ColumnMeasure, ColumnDimension, Page, RegionPadding } from '../../properties';
|
|
2
|
+
import type { AnnotationArea, AnnotationDifferenceLine, AnnotationHorizontalLine, AnnotationPoint, AnnotationVerticalLine, BackgroundColor, Brush, BarStyle, Color, CrosshairRect, Dataset, Label, Legend, StackCornerRadius, Theme, Tooltip, XBandAxis, YLinearAxis, SortLegend, Sort, BarMaxWidth, BarGapInGroup, DimensionLinkage, ColumnMeasure, ColumnDimension, Page, RegionPadding, BarLikeAnimation } from '../../properties';
|
|
3
3
|
/**
|
|
4
4
|
* @description 并列柱状图,适用于多指标并行对比场景,多个柱子并列排列展示不同指标值
|
|
5
5
|
* 适用场景:
|
|
@@ -81,6 +81,11 @@ export interface ColumnParallel {
|
|
|
81
81
|
* @description 框选配置,用于开启/关闭 brush 框选能力
|
|
82
82
|
*/
|
|
83
83
|
brush?: Brush;
|
|
84
|
+
/**
|
|
85
|
+
* 动画配置
|
|
86
|
+
* @description 图表动画配置,按图表类型约束可选效果
|
|
87
|
+
*/
|
|
88
|
+
animation?: BarLikeAnimation;
|
|
84
89
|
/**
|
|
85
90
|
* @description x轴, 类目轴, x轴配置, 用于定义图表的x轴, 包括x轴的位置, 格式, 样式等.
|
|
86
91
|
*/
|
|
@@ -487,6 +487,46 @@ export declare const zColumnParallel: z.ZodObject<{
|
|
|
487
487
|
lineWidth: z.ZodOptional<z.ZodNumber>;
|
|
488
488
|
}, z.core.$strip>>;
|
|
489
489
|
}, z.core.$strip>>>;
|
|
490
|
+
animation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
491
|
+
enable: z.ZodOptional<z.ZodBoolean>;
|
|
492
|
+
params: z.ZodOptional<z.ZodObject<{
|
|
493
|
+
appear: z.ZodOptional<z.ZodObject<{
|
|
494
|
+
enable: z.ZodOptional<z.ZodBoolean>;
|
|
495
|
+
effects: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
496
|
+
[x: string]: string;
|
|
497
|
+
}>>>;
|
|
498
|
+
ease: z.ZodOptional<z.ZodString>;
|
|
499
|
+
duration: z.ZodOptional<z.ZodNumber>;
|
|
500
|
+
color: z.ZodOptional<z.ZodString>;
|
|
501
|
+
}, z.core.$strip>>;
|
|
502
|
+
update: z.ZodOptional<z.ZodObject<{
|
|
503
|
+
enable: z.ZodOptional<z.ZodBoolean>;
|
|
504
|
+
effects: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
505
|
+
[x: string]: string;
|
|
506
|
+
}>>>;
|
|
507
|
+
ease: z.ZodOptional<z.ZodString>;
|
|
508
|
+
duration: z.ZodOptional<z.ZodNumber>;
|
|
509
|
+
color: z.ZodOptional<z.ZodString>;
|
|
510
|
+
}, z.core.$strip>>;
|
|
511
|
+
loop: z.ZodOptional<z.ZodObject<{
|
|
512
|
+
atmosphere?: z.ZodOptional<z.ZodObject<{
|
|
513
|
+
ease: z.ZodOptional<z.ZodString>;
|
|
514
|
+
color: z.ZodOptional<z.ZodString>;
|
|
515
|
+
}, z.core.$strip>> | undefined;
|
|
516
|
+
loop?: z.ZodOptional<z.ZodObject<{
|
|
517
|
+
enable: z.ZodOptional<z.ZodBoolean>;
|
|
518
|
+
effects: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
519
|
+
[x: string]: string;
|
|
520
|
+
}>>>;
|
|
521
|
+
ease: z.ZodOptional<z.ZodString>;
|
|
522
|
+
duration: z.ZodOptional<z.ZodNumber>;
|
|
523
|
+
color: z.ZodOptional<z.ZodString>;
|
|
524
|
+
}, z.core.$strip>> | undefined;
|
|
525
|
+
enable: z.ZodOptional<z.ZodBoolean>;
|
|
526
|
+
interval: z.ZodOptional<z.ZodNumber>;
|
|
527
|
+
}, z.core.$strip>>;
|
|
528
|
+
}, z.core.$strip>>;
|
|
529
|
+
}, z.core.$strip>>>;
|
|
490
530
|
xAxis: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
491
531
|
visible: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
492
532
|
labelAutoHide: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { zLocale } from "../../i18n/index.js";
|
|
3
|
-
import { zAnnotationArea, zAnnotationDifferenceLine, zAnnotationHorizontalLine, zAnnotationPoint, zAnnotationVerticalLine, zBackgroundColor, zBarGapInGroup, zBarMaxWidth, zBarStyle, zBrush, zColor, zCrosshairRect, zDataset, zDimensionLinkage, zDimensions, zEncoding, zLabel, zLegend, zMeasures, zPage, zPlayer, zRegionPadding, zStackCornerRadius, zTheme, zTooltip, zXBandAxis, zYLinearAxis } from "../../properties/index.js";
|
|
3
|
+
import { zAnnotationArea, zAnnotationDifferenceLine, zAnnotationHorizontalLine, zAnnotationPoint, zAnnotationVerticalLine, zBackgroundColor, zBarGapInGroup, zBarLikeAnimation, zBarMaxWidth, zBarStyle, zBrush, zColor, zCrosshairRect, zDataset, zDimensionLinkage, zDimensions, zEncoding, zLabel, zLegend, zMeasures, zPage, zPlayer, zRegionPadding, zStackCornerRadius, zTheme, zTooltip, zXBandAxis, zYLinearAxis } from "../../properties/index.js";
|
|
4
4
|
const zColumnParallel = z.object({
|
|
5
5
|
chartType: z.literal('columnParallel'),
|
|
6
6
|
dataset: zDataset.nullish(),
|
|
@@ -16,6 +16,7 @@ const zColumnParallel = z.object({
|
|
|
16
16
|
regionPadding: zRegionPadding.nullish(),
|
|
17
17
|
tooltip: zTooltip.nullish(),
|
|
18
18
|
brush: zBrush.nullish(),
|
|
19
|
+
animation: zBarLikeAnimation.nullish(),
|
|
19
20
|
xAxis: zXBandAxis.nullish(),
|
|
20
21
|
yAxis: zYLinearAxis.nullish(),
|
|
21
22
|
crosshairRect: zCrosshairRect.nullish(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types/chartType/columnParallel/zColumnParallel.js","sources":["../../../../../src/types/chartType/columnParallel/zColumnParallel.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zLocale } from '../../i18n'\nimport {\n zAnnotationArea,\n zAnnotationDifferenceLine,\n zAnnotationHorizontalLine,\n zAnnotationPoint,\n zAnnotationVerticalLine,\n zBackgroundColor,\n zBarGapInGroup,\n zBarMaxWidth,\n zBarStyle,\n zColor,\n zCrosshairRect,\n zDataset,\n zDimensionLinkage,\n zDimensions,\n zEncoding,\n zLabel,\n zLegend,\n zMeasures,\n zRegionPadding,\n zStackCornerRadius,\n zTheme,\n zTooltip,\n zBrush,\n zXBandAxis,\n zYLinearAxis,\n zPage,\n zPlayer,\n} from '../../properties'\n\nexport const zColumnParallel = z.object({\n chartType: z.literal('columnParallel'),\n dataset: zDataset.nullish(),\n encoding: zEncoding.nullish(),\n dimensions: zDimensions.nullish(),\n measures: zMeasures.nullish(),\n page: zPage.nullish(),\n player: zPlayer.nullish(),\n\n backgroundColor: zBackgroundColor.nullish(),\n color: zColor.nullish(),\n label: zLabel.nullish(),\n legend: zLegend.nullish(),\n regionPadding: zRegionPadding.nullish(),\n tooltip: zTooltip.nullish(),\n brush: zBrush.nullish(),\n xAxis: zXBandAxis.nullish(),\n yAxis: zYLinearAxis.nullish(),\n crosshairRect: zCrosshairRect.nullish(),\n stackCornerRadius: zStackCornerRadius.nullish(),\n barMaxWidth: zBarMaxWidth.nullish(),\n barGapInGroup: zBarGapInGroup.nullish(),\n theme: zTheme.nullish(),\n barStyle: z.array(zBarStyle).or(zBarStyle).nullish(),\n annotationPoint: z.array(zAnnotationPoint).or(zAnnotationPoint).nullish(),\n annotationVerticalLine: z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).nullish(),\n annotationHorizontalLine: z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).nullish(),\n annotationArea: z.array(zAnnotationArea).or(zAnnotationArea).nullish(),\n annotationDifferenceLine: z.array(zAnnotationDifferenceLine).or(zAnnotationDifferenceLine).nullish(),\n dimensionLinkage: zDimensionLinkage.nullish(),\n locale: zLocale.nullish(),\n})\n"],"names":["zColumnParallel","z","zDataset","zEncoding","zDimensions","zMeasures","zPage","zPlayer","zBackgroundColor","zColor","zLabel","zLegend","zRegionPadding","zTooltip","zBrush","zXBandAxis","zYLinearAxis","zCrosshairRect","zStackCornerRadius","zBarMaxWidth","zBarGapInGroup","zTheme","zBarStyle","zAnnotationPoint","zAnnotationVerticalLine","zAnnotationHorizontalLine","zAnnotationArea","zAnnotationDifferenceLine","zDimensionLinkage","zLocale"],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"types/chartType/columnParallel/zColumnParallel.js","sources":["../../../../../src/types/chartType/columnParallel/zColumnParallel.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zLocale } from '../../i18n'\nimport {\n zAnnotationArea,\n zAnnotationDifferenceLine,\n zAnnotationHorizontalLine,\n zAnnotationPoint,\n zAnnotationVerticalLine,\n zBackgroundColor,\n zBarGapInGroup,\n zBarMaxWidth,\n zBarStyle,\n zColor,\n zCrosshairRect,\n zDataset,\n zDimensionLinkage,\n zDimensions,\n zEncoding,\n zLabel,\n zLegend,\n zMeasures,\n zRegionPadding,\n zStackCornerRadius,\n zTheme,\n zTooltip,\n zBrush,\n zXBandAxis,\n zYLinearAxis,\n zPage,\n zPlayer,\n zBarLikeAnimation,\n} from '../../properties'\n\nexport const zColumnParallel = z.object({\n chartType: z.literal('columnParallel'),\n dataset: zDataset.nullish(),\n encoding: zEncoding.nullish(),\n dimensions: zDimensions.nullish(),\n measures: zMeasures.nullish(),\n page: zPage.nullish(),\n player: zPlayer.nullish(),\n\n backgroundColor: zBackgroundColor.nullish(),\n color: zColor.nullish(),\n label: zLabel.nullish(),\n legend: zLegend.nullish(),\n regionPadding: zRegionPadding.nullish(),\n tooltip: zTooltip.nullish(),\n brush: zBrush.nullish(),\n animation: zBarLikeAnimation.nullish(),\n xAxis: zXBandAxis.nullish(),\n yAxis: zYLinearAxis.nullish(),\n crosshairRect: zCrosshairRect.nullish(),\n stackCornerRadius: zStackCornerRadius.nullish(),\n barMaxWidth: zBarMaxWidth.nullish(),\n barGapInGroup: zBarGapInGroup.nullish(),\n theme: zTheme.nullish(),\n barStyle: z.array(zBarStyle).or(zBarStyle).nullish(),\n annotationPoint: z.array(zAnnotationPoint).or(zAnnotationPoint).nullish(),\n annotationVerticalLine: z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).nullish(),\n annotationHorizontalLine: z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).nullish(),\n annotationArea: z.array(zAnnotationArea).or(zAnnotationArea).nullish(),\n annotationDifferenceLine: z.array(zAnnotationDifferenceLine).or(zAnnotationDifferenceLine).nullish(),\n dimensionLinkage: zDimensionLinkage.nullish(),\n locale: zLocale.nullish(),\n})\n"],"names":["zColumnParallel","z","zDataset","zEncoding","zDimensions","zMeasures","zPage","zPlayer","zBackgroundColor","zColor","zLabel","zLegend","zRegionPadding","zTooltip","zBrush","zBarLikeAnimation","zXBandAxis","zYLinearAxis","zCrosshairRect","zStackCornerRadius","zBarMaxWidth","zBarGapInGroup","zTheme","zBarStyle","zAnnotationPoint","zAnnotationVerticalLine","zAnnotationHorizontalLine","zAnnotationArea","zAnnotationDifferenceLine","zDimensionLinkage","zLocale"],"mappings":";;;AAiCO,MAAMA,kBAAkBC,EAAE,MAAM,CAAC;IACtC,WAAWA,EAAE,OAAO,CAAC;IACrB,SAASC,SAAS,OAAO;IACzB,UAAUC,UAAU,OAAO;IAC3B,YAAYC,YAAY,OAAO;IAC/B,UAAUC,UAAU,OAAO;IAC3B,MAAMC,MAAM,OAAO;IACnB,QAAQC,QAAQ,OAAO;IAEvB,iBAAiBC,iBAAiB,OAAO;IACzC,OAAOC,OAAO,OAAO;IACrB,OAAOC,OAAO,OAAO;IACrB,QAAQC,QAAQ,OAAO;IACvB,eAAeC,eAAe,OAAO;IACrC,SAASC,SAAS,OAAO;IACzB,OAAOC,OAAO,OAAO;IACrB,WAAWC,kBAAkB,OAAO;IACpC,OAAOC,WAAW,OAAO;IACzB,OAAOC,aAAa,OAAO;IAC3B,eAAeC,eAAe,OAAO;IACrC,mBAAmBC,mBAAmB,OAAO;IAC7C,aAAaC,aAAa,OAAO;IACjC,eAAeC,eAAe,OAAO;IACrC,OAAOC,OAAO,OAAO;IACrB,UAAUrB,EAAE,KAAK,CAACsB,WAAW,EAAE,CAACA,WAAW,OAAO;IAClD,iBAAiBtB,EAAE,KAAK,CAACuB,kBAAkB,EAAE,CAACA,kBAAkB,OAAO;IACvE,wBAAwBvB,EAAE,KAAK,CAACwB,yBAAyB,EAAE,CAACA,yBAAyB,OAAO;IAC5F,0BAA0BxB,EAAE,KAAK,CAACyB,2BAA2B,EAAE,CAACA,2BAA2B,OAAO;IAClG,gBAAgBzB,EAAE,KAAK,CAAC0B,iBAAiB,EAAE,CAACA,iBAAiB,OAAO;IACpE,0BAA0B1B,EAAE,KAAK,CAAC2B,2BAA2B,EAAE,CAACA,2BAA2B,OAAO;IAClG,kBAAkBC,kBAAkB,OAAO;IAC3C,QAAQC,QAAQ,OAAO;AACzB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Locale } from '../../i18n';
|
|
2
|
-
import type { AnnotationArea, AnnotationHorizontalLine, AnnotationPoint, AnnotationVerticalLine, BackgroundColor, Brush, BarStyle, Color, CrosshairRect, Dataset, Label, Legend, StackCornerRadius, Theme, Tooltip, XBandAxis, YLinearAxis, Sort, SortLegend, BarMaxWidth, DimensionLinkage, ColumnMeasure, ColumnDimension, Page, RegionPadding } from '../../properties';
|
|
2
|
+
import type { AnnotationArea, AnnotationHorizontalLine, AnnotationPoint, AnnotationVerticalLine, BackgroundColor, Brush, BarStyle, Color, CrosshairRect, Dataset, Label, Legend, StackCornerRadius, Theme, Tooltip, XBandAxis, YLinearAxis, Sort, SortLegend, BarMaxWidth, DimensionLinkage, ColumnMeasure, ColumnDimension, Page, RegionPadding, BarLikeAnimation } from '../../properties';
|
|
3
3
|
/**
|
|
4
4
|
* @description 百分比柱状图,适用于展示各类别占比关系的场景,Y轴以百分比形式展示数据占比
|
|
5
5
|
* 适用场景:
|
|
@@ -86,6 +86,11 @@ export interface ColumnPercent {
|
|
|
86
86
|
* @description 框选配置,用于开启/关闭 brush 框选能力
|
|
87
87
|
*/
|
|
88
88
|
brush?: Brush;
|
|
89
|
+
/**
|
|
90
|
+
* 动画配置
|
|
91
|
+
* @description 图表动画配置,按图表类型约束可选效果
|
|
92
|
+
*/
|
|
93
|
+
animation?: BarLikeAnimation;
|
|
89
94
|
/**
|
|
90
95
|
* @description x轴, 类目轴, x轴配置, 用于定义图表的x轴, 包括x轴的位置, 格式, 样式等.
|
|
91
96
|
*/
|
|
@@ -466,6 +466,46 @@ export declare const zColumnPercent: z.ZodObject<{
|
|
|
466
466
|
lineWidth: z.ZodOptional<z.ZodNumber>;
|
|
467
467
|
}, z.core.$strip>>;
|
|
468
468
|
}, z.core.$strip>>>;
|
|
469
|
+
animation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
470
|
+
enable: z.ZodOptional<z.ZodBoolean>;
|
|
471
|
+
params: z.ZodOptional<z.ZodObject<{
|
|
472
|
+
appear: z.ZodOptional<z.ZodObject<{
|
|
473
|
+
enable: z.ZodOptional<z.ZodBoolean>;
|
|
474
|
+
effects: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
475
|
+
[x: string]: string;
|
|
476
|
+
}>>>;
|
|
477
|
+
ease: z.ZodOptional<z.ZodString>;
|
|
478
|
+
duration: z.ZodOptional<z.ZodNumber>;
|
|
479
|
+
color: z.ZodOptional<z.ZodString>;
|
|
480
|
+
}, z.core.$strip>>;
|
|
481
|
+
update: z.ZodOptional<z.ZodObject<{
|
|
482
|
+
enable: z.ZodOptional<z.ZodBoolean>;
|
|
483
|
+
effects: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
484
|
+
[x: string]: string;
|
|
485
|
+
}>>>;
|
|
486
|
+
ease: z.ZodOptional<z.ZodString>;
|
|
487
|
+
duration: z.ZodOptional<z.ZodNumber>;
|
|
488
|
+
color: z.ZodOptional<z.ZodString>;
|
|
489
|
+
}, z.core.$strip>>;
|
|
490
|
+
loop: z.ZodOptional<z.ZodObject<{
|
|
491
|
+
atmosphere?: z.ZodOptional<z.ZodObject<{
|
|
492
|
+
ease: z.ZodOptional<z.ZodString>;
|
|
493
|
+
color: z.ZodOptional<z.ZodString>;
|
|
494
|
+
}, z.core.$strip>> | undefined;
|
|
495
|
+
loop?: z.ZodOptional<z.ZodObject<{
|
|
496
|
+
enable: z.ZodOptional<z.ZodBoolean>;
|
|
497
|
+
effects: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
498
|
+
[x: string]: string;
|
|
499
|
+
}>>>;
|
|
500
|
+
ease: z.ZodOptional<z.ZodString>;
|
|
501
|
+
duration: z.ZodOptional<z.ZodNumber>;
|
|
502
|
+
color: z.ZodOptional<z.ZodString>;
|
|
503
|
+
}, z.core.$strip>> | undefined;
|
|
504
|
+
enable: z.ZodOptional<z.ZodBoolean>;
|
|
505
|
+
interval: z.ZodOptional<z.ZodNumber>;
|
|
506
|
+
}, z.core.$strip>>;
|
|
507
|
+
}, z.core.$strip>>;
|
|
508
|
+
}, z.core.$strip>>>;
|
|
469
509
|
xAxis: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
470
510
|
visible: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
471
511
|
labelAutoHide: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { zLocale } from "../../i18n/index.js";
|
|
2
|
-
import { zAnnotationArea, zAnnotationHorizontalLine, zAnnotationPoint, zAnnotationVerticalLine, zBackgroundColor, zBarMaxWidth, zBarStyle, zBrush, zColor, zCrosshairRect, zDataset, zDimensionLinkage, zDimensions, zEncoding, zLabel, zLegend, zMeasures, zPage, zRegionPadding, zStackCornerRadius, zTheme, zTooltip, zXBandAxis, zYLinearAxis } from "../../properties/index.js";
|
|
2
|
+
import { zAnnotationArea, zAnnotationHorizontalLine, zAnnotationPoint, zAnnotationVerticalLine, zBackgroundColor, zBarLikeAnimation, zBarMaxWidth, zBarStyle, zBrush, zColor, zCrosshairRect, zDataset, zDimensionLinkage, zDimensions, zEncoding, zLabel, zLegend, zMeasures, zPage, zRegionPadding, zStackCornerRadius, zTheme, zTooltip, zXBandAxis, zYLinearAxis } from "../../properties/index.js";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
const zColumnPercent = z.object({
|
|
5
5
|
chartType: z.literal('columnPercent'),
|
|
@@ -15,6 +15,7 @@ const zColumnPercent = z.object({
|
|
|
15
15
|
regionPadding: zRegionPadding.nullish(),
|
|
16
16
|
tooltip: zTooltip.nullish(),
|
|
17
17
|
brush: zBrush.nullish(),
|
|
18
|
+
animation: zBarLikeAnimation.nullish(),
|
|
18
19
|
xAxis: zXBandAxis.nullish(),
|
|
19
20
|
yAxis: zYLinearAxis.nullish(),
|
|
20
21
|
crosshairRect: zCrosshairRect.nullish(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types/chartType/columnPercent/zColumnPercent.js","sources":["../../../../../src/types/chartType/columnPercent/zColumnPercent.ts"],"sourcesContent":["import { zLocale } from '../../i18n'\nimport {\n zAnnotationArea,\n zAnnotationHorizontalLine,\n zAnnotationPoint,\n zAnnotationVerticalLine,\n zBackgroundColor,\n zBarMaxWidth,\n zBarStyle,\n zColor,\n zCrosshairRect,\n zDataset,\n zDimensionLinkage,\n zDimensions,\n zEncoding,\n zLabel,\n zLegend,\n zMeasures,\n zRegionPadding,\n zStackCornerRadius,\n zTheme,\n zTooltip,\n zBrush,\n zXBandAxis,\n zYLinearAxis,\n zPage,\n} from '../../properties'\n\nimport { z } from 'zod'\n\nexport const zColumnPercent = z.object({\n chartType: z.literal('columnPercent'),\n dataset: zDataset.nullish(),\n encoding: zEncoding.nullish(),\n dimensions: zDimensions.nullish(),\n measures: zMeasures.nullish(),\n page: zPage.nullish(),\n\n backgroundColor: zBackgroundColor.nullish(),\n color: zColor.nullish(),\n label: zLabel.nullish(),\n legend: zLegend.nullish(),\n regionPadding: zRegionPadding.nullish(),\n tooltip: zTooltip.nullish(),\n brush: zBrush.nullish(),\n xAxis: zXBandAxis.nullish(),\n yAxis: zYLinearAxis.nullish(),\n crosshairRect: zCrosshairRect.nullish(),\n stackCornerRadius: zStackCornerRadius.nullish(),\n barMaxWidth: zBarMaxWidth.nullish(),\n theme: zTheme.nullish(),\n barStyle: z.array(zBarStyle).or(zBarStyle).nullish(),\n annotationPoint: z.array(zAnnotationPoint).or(zAnnotationPoint).nullish(),\n annotationVerticalLine: z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).nullish(),\n annotationHorizontalLine: z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).nullish(),\n annotationArea: z.array(zAnnotationArea).or(zAnnotationArea).nullish(),\n dimensionLinkage: zDimensionLinkage.nullish(),\n locale: zLocale.nullish(),\n})\n"],"names":["zColumnPercent","z","zDataset","zEncoding","zDimensions","zMeasures","zPage","zBackgroundColor","zColor","zLabel","zLegend","zRegionPadding","zTooltip","zBrush","zXBandAxis","zYLinearAxis","zCrosshairRect","zStackCornerRadius","zBarMaxWidth","zTheme","zBarStyle","zAnnotationPoint","zAnnotationVerticalLine","zAnnotationHorizontalLine","zAnnotationArea","zDimensionLinkage","zLocale"],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"types/chartType/columnPercent/zColumnPercent.js","sources":["../../../../../src/types/chartType/columnPercent/zColumnPercent.ts"],"sourcesContent":["import { zLocale } from '../../i18n'\nimport {\n zAnnotationArea,\n zAnnotationHorizontalLine,\n zAnnotationPoint,\n zAnnotationVerticalLine,\n zBackgroundColor,\n zBarMaxWidth,\n zBarStyle,\n zColor,\n zCrosshairRect,\n zDataset,\n zDimensionLinkage,\n zDimensions,\n zEncoding,\n zLabel,\n zLegend,\n zMeasures,\n zRegionPadding,\n zStackCornerRadius,\n zTheme,\n zTooltip,\n zBrush,\n zXBandAxis,\n zYLinearAxis,\n zPage,\n zBarLikeAnimation,\n} from '../../properties'\n\nimport { z } from 'zod'\n\nexport const zColumnPercent = z.object({\n chartType: z.literal('columnPercent'),\n dataset: zDataset.nullish(),\n encoding: zEncoding.nullish(),\n dimensions: zDimensions.nullish(),\n measures: zMeasures.nullish(),\n page: zPage.nullish(),\n\n backgroundColor: zBackgroundColor.nullish(),\n color: zColor.nullish(),\n label: zLabel.nullish(),\n legend: zLegend.nullish(),\n regionPadding: zRegionPadding.nullish(),\n tooltip: zTooltip.nullish(),\n brush: zBrush.nullish(),\n animation: zBarLikeAnimation.nullish(),\n xAxis: zXBandAxis.nullish(),\n yAxis: zYLinearAxis.nullish(),\n crosshairRect: zCrosshairRect.nullish(),\n stackCornerRadius: zStackCornerRadius.nullish(),\n barMaxWidth: zBarMaxWidth.nullish(),\n theme: zTheme.nullish(),\n barStyle: z.array(zBarStyle).or(zBarStyle).nullish(),\n annotationPoint: z.array(zAnnotationPoint).or(zAnnotationPoint).nullish(),\n annotationVerticalLine: z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).nullish(),\n annotationHorizontalLine: z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).nullish(),\n annotationArea: z.array(zAnnotationArea).or(zAnnotationArea).nullish(),\n dimensionLinkage: zDimensionLinkage.nullish(),\n locale: zLocale.nullish(),\n})\n"],"names":["zColumnPercent","z","zDataset","zEncoding","zDimensions","zMeasures","zPage","zBackgroundColor","zColor","zLabel","zLegend","zRegionPadding","zTooltip","zBrush","zBarLikeAnimation","zXBandAxis","zYLinearAxis","zCrosshairRect","zStackCornerRadius","zBarMaxWidth","zTheme","zBarStyle","zAnnotationPoint","zAnnotationVerticalLine","zAnnotationHorizontalLine","zAnnotationArea","zDimensionLinkage","zLocale"],"mappings":";;;AA+BO,MAAMA,iBAAiBC,EAAE,MAAM,CAAC;IACrC,WAAWA,EAAE,OAAO,CAAC;IACrB,SAASC,SAAS,OAAO;IACzB,UAAUC,UAAU,OAAO;IAC3B,YAAYC,YAAY,OAAO;IAC/B,UAAUC,UAAU,OAAO;IAC3B,MAAMC,MAAM,OAAO;IAEnB,iBAAiBC,iBAAiB,OAAO;IACzC,OAAOC,OAAO,OAAO;IACrB,OAAOC,OAAO,OAAO;IACrB,QAAQC,QAAQ,OAAO;IACvB,eAAeC,eAAe,OAAO;IACrC,SAASC,SAAS,OAAO;IACzB,OAAOC,OAAO,OAAO;IACrB,WAAWC,kBAAkB,OAAO;IACpC,OAAOC,WAAW,OAAO;IACzB,OAAOC,aAAa,OAAO;IAC3B,eAAeC,eAAe,OAAO;IACrC,mBAAmBC,mBAAmB,OAAO;IAC7C,aAAaC,aAAa,OAAO;IACjC,OAAOC,OAAO,OAAO;IACrB,UAAUnB,EAAE,KAAK,CAACoB,WAAW,EAAE,CAACA,WAAW,OAAO;IAClD,iBAAiBpB,EAAE,KAAK,CAACqB,kBAAkB,EAAE,CAACA,kBAAkB,OAAO;IACvE,wBAAwBrB,EAAE,KAAK,CAACsB,yBAAyB,EAAE,CAACA,yBAAyB,OAAO;IAC5F,0BAA0BtB,EAAE,KAAK,CAACuB,2BAA2B,EAAE,CAACA,2BAA2B,OAAO;IAClG,gBAAgBvB,EAAE,KAAK,CAACwB,iBAAiB,EAAE,CAACA,iBAAiB,OAAO;IACpE,kBAAkBC,kBAAkB,OAAO;IAC3C,QAAQC,QAAQ,OAAO;AACzB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type Locale } from '../../i18n';
|
|
2
|
-
import type { BackgroundColor, Color, Dataset, DonutDimension, Legend, DonutMeasure, PieLabel, Theme, Tooltip, Page } from '../../properties';
|
|
2
|
+
import type { BackgroundColor, Color, Dataset, DonutDimension, Legend, DonutMeasure, PieLabel, Theme, Tooltip, Page, PieLikeAnimation } from '../../properties';
|
|
3
3
|
import type { Brush } from '../../properties';
|
|
4
4
|
/**
|
|
5
5
|
* @description 环形图,适用于展示单一维度数据的占比关系,中心留有空白区域可展示汇总信息
|
|
@@ -87,6 +87,11 @@ export interface Donut {
|
|
|
87
87
|
* @description 框选配置,用于开启/关闭 brush 框选能力
|
|
88
88
|
*/
|
|
89
89
|
brush?: Brush;
|
|
90
|
+
/**
|
|
91
|
+
* 动画配置
|
|
92
|
+
* @description 图表动画配置,按图表类型约束可选效果
|
|
93
|
+
*/
|
|
94
|
+
animation?: PieLikeAnimation;
|
|
90
95
|
/**
|
|
91
96
|
* 图表的主题, 主题是优先级较低的功能配置, 包含所有图表类型共用的通用配置, 与单类图表类型共用的图表配置
|
|
92
97
|
* @default light 默认为亮色主题
|
|
@@ -461,6 +461,46 @@ export declare const zDonut: z.ZodObject<{
|
|
|
461
461
|
lineWidth: z.ZodOptional<z.ZodNumber>;
|
|
462
462
|
}, z.core.$strip>>;
|
|
463
463
|
}, z.core.$strip>>>;
|
|
464
|
+
animation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
465
|
+
enable: z.ZodOptional<z.ZodBoolean>;
|
|
466
|
+
params: z.ZodOptional<z.ZodObject<{
|
|
467
|
+
appear: z.ZodOptional<z.ZodObject<{
|
|
468
|
+
enable: z.ZodOptional<z.ZodBoolean>;
|
|
469
|
+
effects: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
470
|
+
[x: string]: string;
|
|
471
|
+
}>>>;
|
|
472
|
+
ease: z.ZodOptional<z.ZodString>;
|
|
473
|
+
duration: z.ZodOptional<z.ZodNumber>;
|
|
474
|
+
color: z.ZodOptional<z.ZodString>;
|
|
475
|
+
}, z.core.$strip>>;
|
|
476
|
+
update: z.ZodOptional<z.ZodObject<{
|
|
477
|
+
enable: z.ZodOptional<z.ZodBoolean>;
|
|
478
|
+
effects: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
479
|
+
[x: string]: string;
|
|
480
|
+
}>>>;
|
|
481
|
+
ease: z.ZodOptional<z.ZodString>;
|
|
482
|
+
duration: z.ZodOptional<z.ZodNumber>;
|
|
483
|
+
color: z.ZodOptional<z.ZodString>;
|
|
484
|
+
}, z.core.$strip>>;
|
|
485
|
+
loop: z.ZodOptional<z.ZodObject<{
|
|
486
|
+
atmosphere?: z.ZodOptional<z.ZodObject<{
|
|
487
|
+
ease: z.ZodOptional<z.ZodString>;
|
|
488
|
+
color: z.ZodOptional<z.ZodString>;
|
|
489
|
+
}, z.core.$strip>> | undefined;
|
|
490
|
+
loop?: z.ZodOptional<z.ZodObject<{
|
|
491
|
+
enable: z.ZodOptional<z.ZodBoolean>;
|
|
492
|
+
effects: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
493
|
+
[x: string]: string;
|
|
494
|
+
}>>>;
|
|
495
|
+
ease: z.ZodOptional<z.ZodString>;
|
|
496
|
+
duration: z.ZodOptional<z.ZodNumber>;
|
|
497
|
+
color: z.ZodOptional<z.ZodString>;
|
|
498
|
+
}, z.core.$strip>> | undefined;
|
|
499
|
+
enable: z.ZodOptional<z.ZodBoolean>;
|
|
500
|
+
interval: z.ZodOptional<z.ZodNumber>;
|
|
501
|
+
}, z.core.$strip>>;
|
|
502
|
+
}, z.core.$strip>>;
|
|
503
|
+
}, z.core.$strip>>>;
|
|
464
504
|
theme: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
465
505
|
locale: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodEnum<{
|
|
466
506
|
"zh-CN": "zh-CN";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { zLocale } from "../../i18n/index.js";
|
|
3
|
-
import { zBackgroundColor, zBrush, zColor, zDataset, zDimensions, zEncoding, zLegend, zMeasures, zPage, zPieLabel, zTheme, zTooltip } from "../../properties/index.js";
|
|
3
|
+
import { zBackgroundColor, zBrush, zColor, zDataset, zDimensions, zEncoding, zLegend, zMeasures, zPage, zPieLabel, zPieLikeAnimation, zTheme, zTooltip } from "../../properties/index.js";
|
|
4
4
|
const zDonut = z.object({
|
|
5
5
|
chartType: z.literal('donut'),
|
|
6
6
|
dataset: zDataset.nullish(),
|
|
@@ -14,6 +14,7 @@ const zDonut = z.object({
|
|
|
14
14
|
legend: zLegend.nullish(),
|
|
15
15
|
tooltip: zTooltip.nullish(),
|
|
16
16
|
brush: zBrush.nullish(),
|
|
17
|
+
animation: zPieLikeAnimation.nullish(),
|
|
17
18
|
theme: zTheme.nullish(),
|
|
18
19
|
locale: zLocale.nullish()
|
|
19
20
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types/chartType/donut/zDonut.js","sources":["../../../../../src/types/chartType/donut/zDonut.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zLocale } from '../../i18n'\n\nimport {\n zBackgroundColor,\n zColor,\n zDataset,\n zDimensions,\n zEncoding,\n zLegend,\n zMeasures,\n zPieLabel,\n zTheme,\n zTooltip,\n zBrush,\n zPage,\n} from '../../properties'\n\nexport const zDonut = z.object({\n chartType: z.literal('donut'),\n dataset: zDataset.nullish(),\n encoding: zEncoding.nullish(),\n dimensions: zDimensions.nullish(),\n measures: zMeasures.nullish(),\n page: zPage.nullish(),\n\n backgroundColor: zBackgroundColor.nullish(),\n color: zColor.nullish(),\n label: zPieLabel.nullish(),\n legend: zLegend.nullish(),\n tooltip: zTooltip.nullish(),\n brush: zBrush.nullish(),\n theme: zTheme.nullish(),\n locale: zLocale.nullish(),\n})\n"],"names":["zDonut","z","zDataset","zEncoding","zDimensions","zMeasures","zPage","zBackgroundColor","zColor","zPieLabel","zLegend","zTooltip","zBrush","zTheme","zLocale"],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"types/chartType/donut/zDonut.js","sources":["../../../../../src/types/chartType/donut/zDonut.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zLocale } from '../../i18n'\n\nimport {\n zBackgroundColor,\n zColor,\n zDataset,\n zDimensions,\n zEncoding,\n zLegend,\n zMeasures,\n zPieLabel,\n zTheme,\n zTooltip,\n zBrush,\n zPage,\n zPieLikeAnimation,\n} from '../../properties'\n\nexport const zDonut = z.object({\n chartType: z.literal('donut'),\n dataset: zDataset.nullish(),\n encoding: zEncoding.nullish(),\n dimensions: zDimensions.nullish(),\n measures: zMeasures.nullish(),\n page: zPage.nullish(),\n\n backgroundColor: zBackgroundColor.nullish(),\n color: zColor.nullish(),\n label: zPieLabel.nullish(),\n legend: zLegend.nullish(),\n tooltip: zTooltip.nullish(),\n brush: zBrush.nullish(),\n animation: zPieLikeAnimation.nullish(),\n theme: zTheme.nullish(),\n locale: zLocale.nullish(),\n})\n"],"names":["zDonut","z","zDataset","zEncoding","zDimensions","zMeasures","zPage","zBackgroundColor","zColor","zPieLabel","zLegend","zTooltip","zBrush","zPieLikeAnimation","zTheme","zLocale"],"mappings":";;;AAmBO,MAAMA,SAASC,EAAE,MAAM,CAAC;IAC7B,WAAWA,EAAE,OAAO,CAAC;IACrB,SAASC,SAAS,OAAO;IACzB,UAAUC,UAAU,OAAO;IAC3B,YAAYC,YAAY,OAAO;IAC/B,UAAUC,UAAU,OAAO;IAC3B,MAAMC,MAAM,OAAO;IAEnB,iBAAiBC,iBAAiB,OAAO;IACzC,OAAOC,OAAO,OAAO;IACrB,OAAOC,UAAU,OAAO;IACxB,QAAQC,QAAQ,OAAO;IACvB,SAASC,SAAS,OAAO;IACzB,OAAOC,OAAO,OAAO;IACrB,WAAWC,kBAAkB,OAAO;IACpC,OAAOC,OAAO,OAAO;IACrB,QAAQC,QAAQ,OAAO;AACzB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Locale } from '../../i18n';
|
|
2
|
-
import type { AnnotationArea, AnnotationDifferenceLine, AnnotationHorizontalLine, AnnotationPoint, AnnotationVerticalLine, BackgroundColor, Brush, Color, Dataset, Label, Legend, Page, LineStyle, PointStyle, Theme, Tooltip, CrosshairLine, XBandAxis, YLinearAxis, Sort, SortLegend, DimensionLinkage, LineMeasure, LineDimension, RegionPadding } from '../../properties';
|
|
2
|
+
import type { AnnotationArea, AnnotationDifferenceLine, AnnotationHorizontalLine, AnnotationPoint, AnnotationVerticalLine, BackgroundColor, Brush, Color, Dataset, Label, Legend, Page, LineStyle, PointStyle, Theme, Tooltip, CrosshairLine, XBandAxis, YLinearAxis, Sort, SortLegend, DimensionLinkage, LineMeasure, LineDimension, RegionPadding, LineAreaAnimation } from '../../properties';
|
|
3
3
|
/**
|
|
4
4
|
* @description 折线图,适用于展示数据随时间或有序类别变化的趋势,通过线段连接数据点形成趋势线
|
|
5
5
|
* 适用场景:
|
|
@@ -86,6 +86,11 @@ export interface Line {
|
|
|
86
86
|
* @description 框选配置,用于开启/关闭 brush 框选能力
|
|
87
87
|
*/
|
|
88
88
|
brush?: Brush;
|
|
89
|
+
/**
|
|
90
|
+
* 动画配置
|
|
91
|
+
* @description 图表动画配置,按图表类型约束可选效果
|
|
92
|
+
*/
|
|
93
|
+
animation?: LineAreaAnimation;
|
|
89
94
|
/**
|
|
90
95
|
* x轴
|
|
91
96
|
* @description 类目轴, x轴配置, 用于定义图表的x轴, 包括x轴的位置, 格式, 样式等.
|
|
@@ -466,6 +466,46 @@ export declare const zLine: z.ZodObject<{
|
|
|
466
466
|
lineWidth: z.ZodOptional<z.ZodNumber>;
|
|
467
467
|
}, z.core.$strip>>;
|
|
468
468
|
}, z.core.$strip>>>;
|
|
469
|
+
animation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
470
|
+
enable: z.ZodOptional<z.ZodBoolean>;
|
|
471
|
+
params: z.ZodOptional<z.ZodObject<{
|
|
472
|
+
appear: z.ZodOptional<z.ZodObject<{
|
|
473
|
+
enable: z.ZodOptional<z.ZodBoolean>;
|
|
474
|
+
effects: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
475
|
+
[x: string]: string;
|
|
476
|
+
}>>>;
|
|
477
|
+
ease: z.ZodOptional<z.ZodString>;
|
|
478
|
+
duration: z.ZodOptional<z.ZodNumber>;
|
|
479
|
+
color: z.ZodOptional<z.ZodString>;
|
|
480
|
+
}, z.core.$strip>>;
|
|
481
|
+
update: z.ZodOptional<z.ZodObject<{
|
|
482
|
+
enable: z.ZodOptional<z.ZodBoolean>;
|
|
483
|
+
effects: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
484
|
+
[x: string]: string;
|
|
485
|
+
}>>>;
|
|
486
|
+
ease: z.ZodOptional<z.ZodString>;
|
|
487
|
+
duration: z.ZodOptional<z.ZodNumber>;
|
|
488
|
+
color: z.ZodOptional<z.ZodString>;
|
|
489
|
+
}, z.core.$strip>>;
|
|
490
|
+
loop: z.ZodOptional<z.ZodObject<{
|
|
491
|
+
atmosphere?: z.ZodOptional<z.ZodObject<{
|
|
492
|
+
ease: z.ZodOptional<z.ZodString>;
|
|
493
|
+
color: z.ZodOptional<z.ZodString>;
|
|
494
|
+
}, z.core.$strip>> | undefined;
|
|
495
|
+
loop?: z.ZodOptional<z.ZodObject<{
|
|
496
|
+
enable: z.ZodOptional<z.ZodBoolean>;
|
|
497
|
+
effects: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
498
|
+
[x: string]: string;
|
|
499
|
+
}>>>;
|
|
500
|
+
ease: z.ZodOptional<z.ZodString>;
|
|
501
|
+
duration: z.ZodOptional<z.ZodNumber>;
|
|
502
|
+
color: z.ZodOptional<z.ZodString>;
|
|
503
|
+
}, z.core.$strip>> | undefined;
|
|
504
|
+
enable: z.ZodOptional<z.ZodBoolean>;
|
|
505
|
+
interval: z.ZodOptional<z.ZodNumber>;
|
|
506
|
+
}, z.core.$strip>>;
|
|
507
|
+
}, z.core.$strip>>;
|
|
508
|
+
}, z.core.$strip>>>;
|
|
469
509
|
xAxis: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
470
510
|
visible: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
471
511
|
labelAutoHide: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { zLocale } from "../../i18n/index.js";
|
|
2
|
-
import { zAnnotationArea, zAnnotationDifferenceLine, zAnnotationHorizontalLine, zAnnotationPoint, zAnnotationVerticalLine, zBackgroundColor, zBrush, zColor, zCrosshairLine, zDataset, zDimensionLinkage, zDimensions, zEncoding, zLabel, zLegend, zLineStyle, zMeasures, zPage, zPointStyle, zRegionPadding, zSort, zSortLegend, zTheme, zTooltip, zXBandAxis, zYLinearAxis } from "../../properties/index.js";
|
|
2
|
+
import { zAnnotationArea, zAnnotationDifferenceLine, zAnnotationHorizontalLine, zAnnotationPoint, zAnnotationVerticalLine, zBackgroundColor, zBrush, zColor, zCrosshairLine, zDataset, zDimensionLinkage, zDimensions, zEncoding, zLabel, zLegend, zLineAreaAnimation, zLineStyle, zMeasures, zPage, zPointStyle, zRegionPadding, zSort, zSortLegend, zTheme, zTooltip, zXBandAxis, zYLinearAxis } from "../../properties/index.js";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
const zLine = z.object({
|
|
5
5
|
chartType: z.literal('line'),
|
|
@@ -15,6 +15,7 @@ const zLine = z.object({
|
|
|
15
15
|
regionPadding: zRegionPadding.nullish(),
|
|
16
16
|
tooltip: zTooltip.nullish(),
|
|
17
17
|
brush: zBrush.nullish(),
|
|
18
|
+
animation: zLineAreaAnimation.nullish(),
|
|
18
19
|
xAxis: zXBandAxis.nullish(),
|
|
19
20
|
yAxis: zYLinearAxis.nullish(),
|
|
20
21
|
crosshairLine: zCrosshairLine.nullish(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types/chartType/line/zLine.js","sources":["../../../../../src/types/chartType/line/zLine.ts"],"sourcesContent":["import { zLocale } from '../../i18n'\nimport {\n zAnnotationArea,\n zAnnotationDifferenceLine,\n zAnnotationHorizontalLine,\n zAnnotationPoint,\n zAnnotationVerticalLine,\n zBackgroundColor,\n zColor,\n zCrosshairLine,\n zDataset,\n zDimensionLinkage,\n zDimensions,\n zEncoding,\n zLabel,\n zLegend,\n zLineStyle,\n zMeasures,\n zPointStyle,\n zRegionPadding,\n zSort,\n zSortLegend,\n zTheme,\n zTooltip,\n zBrush,\n zXBandAxis,\n zYLinearAxis,\n zPage,\n} from '../../properties'\n\nimport { z } from 'zod'\n\nexport const zLine = z.object({\n chartType: z.literal('line'),\n dataset: zDataset.nullish(),\n encoding: zEncoding.nullish(),\n dimensions: zDimensions.nullish(),\n measures: zMeasures.nullish(),\n page: zPage.nullish(),\n\n backgroundColor: zBackgroundColor.nullish(),\n color: zColor.nullish(),\n label: zLabel.nullish(),\n legend: zLegend.nullish(),\n regionPadding: zRegionPadding.nullish(),\n tooltip: zTooltip.nullish(),\n brush: zBrush.nullish(),\n xAxis: zXBandAxis.nullish(),\n yAxis: zYLinearAxis.nullish(),\n crosshairLine: zCrosshairLine.nullish(),\n sort: zSort.nullish(),\n sortLegend: zSortLegend.nullish(),\n theme: zTheme.nullish(),\n pointStyle: z.array(zPointStyle).or(zPointStyle).nullish(),\n lineStyle: z.array(zLineStyle).or(zLineStyle).nullish(),\n annotationPoint: z.array(zAnnotationPoint).or(zAnnotationPoint).nullish(),\n annotationVerticalLine: z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).nullish(),\n annotationHorizontalLine: z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).nullish(),\n annotationArea: z.array(zAnnotationArea).or(zAnnotationArea).nullish(),\n annotationDifferenceLine: z.array(zAnnotationDifferenceLine).or(zAnnotationDifferenceLine).nullish(),\n dimensionLinkage: zDimensionLinkage.nullish(),\n locale: zLocale.nullish(),\n})\n"],"names":["zLine","z","zDataset","zEncoding","zDimensions","zMeasures","zPage","zBackgroundColor","zColor","zLabel","zLegend","zRegionPadding","zTooltip","zBrush","zXBandAxis","zYLinearAxis","zCrosshairLine","zSort","zSortLegend","zTheme","zPointStyle","zLineStyle","zAnnotationPoint","zAnnotationVerticalLine","zAnnotationHorizontalLine","zAnnotationArea","zAnnotationDifferenceLine","zDimensionLinkage","zLocale"],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"types/chartType/line/zLine.js","sources":["../../../../../src/types/chartType/line/zLine.ts"],"sourcesContent":["import { zLocale } from '../../i18n'\nimport {\n zAnnotationArea,\n zAnnotationDifferenceLine,\n zAnnotationHorizontalLine,\n zAnnotationPoint,\n zAnnotationVerticalLine,\n zBackgroundColor,\n zColor,\n zCrosshairLine,\n zDataset,\n zDimensionLinkage,\n zDimensions,\n zEncoding,\n zLabel,\n zLegend,\n zLineStyle,\n zMeasures,\n zPointStyle,\n zRegionPadding,\n zSort,\n zSortLegend,\n zTheme,\n zTooltip,\n zBrush,\n zXBandAxis,\n zYLinearAxis,\n zPage,\n zLineAreaAnimation,\n} from '../../properties'\n\nimport { z } from 'zod'\n\nexport const zLine = z.object({\n chartType: z.literal('line'),\n dataset: zDataset.nullish(),\n encoding: zEncoding.nullish(),\n dimensions: zDimensions.nullish(),\n measures: zMeasures.nullish(),\n page: zPage.nullish(),\n\n backgroundColor: zBackgroundColor.nullish(),\n color: zColor.nullish(),\n label: zLabel.nullish(),\n legend: zLegend.nullish(),\n regionPadding: zRegionPadding.nullish(),\n tooltip: zTooltip.nullish(),\n brush: zBrush.nullish(),\n animation: zLineAreaAnimation.nullish(),\n xAxis: zXBandAxis.nullish(),\n yAxis: zYLinearAxis.nullish(),\n crosshairLine: zCrosshairLine.nullish(),\n sort: zSort.nullish(),\n sortLegend: zSortLegend.nullish(),\n theme: zTheme.nullish(),\n pointStyle: z.array(zPointStyle).or(zPointStyle).nullish(),\n lineStyle: z.array(zLineStyle).or(zLineStyle).nullish(),\n annotationPoint: z.array(zAnnotationPoint).or(zAnnotationPoint).nullish(),\n annotationVerticalLine: z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).nullish(),\n annotationHorizontalLine: z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).nullish(),\n annotationArea: z.array(zAnnotationArea).or(zAnnotationArea).nullish(),\n annotationDifferenceLine: z.array(zAnnotationDifferenceLine).or(zAnnotationDifferenceLine).nullish(),\n dimensionLinkage: zDimensionLinkage.nullish(),\n locale: zLocale.nullish(),\n})\n"],"names":["zLine","z","zDataset","zEncoding","zDimensions","zMeasures","zPage","zBackgroundColor","zColor","zLabel","zLegend","zRegionPadding","zTooltip","zBrush","zLineAreaAnimation","zXBandAxis","zYLinearAxis","zCrosshairLine","zSort","zSortLegend","zTheme","zPointStyle","zLineStyle","zAnnotationPoint","zAnnotationVerticalLine","zAnnotationHorizontalLine","zAnnotationArea","zAnnotationDifferenceLine","zDimensionLinkage","zLocale"],"mappings":";;;AAiCO,MAAMA,QAAQC,EAAE,MAAM,CAAC;IAC5B,WAAWA,EAAE,OAAO,CAAC;IACrB,SAASC,SAAS,OAAO;IACzB,UAAUC,UAAU,OAAO;IAC3B,YAAYC,YAAY,OAAO;IAC/B,UAAUC,UAAU,OAAO;IAC3B,MAAMC,MAAM,OAAO;IAEnB,iBAAiBC,iBAAiB,OAAO;IACzC,OAAOC,OAAO,OAAO;IACrB,OAAOC,OAAO,OAAO;IACrB,QAAQC,QAAQ,OAAO;IACvB,eAAeC,eAAe,OAAO;IACrC,SAASC,SAAS,OAAO;IACzB,OAAOC,OAAO,OAAO;IACrB,WAAWC,mBAAmB,OAAO;IACrC,OAAOC,WAAW,OAAO;IACzB,OAAOC,aAAa,OAAO;IAC3B,eAAeC,eAAe,OAAO;IACrC,MAAMC,MAAM,OAAO;IACnB,YAAYC,YAAY,OAAO;IAC/B,OAAOC,OAAO,OAAO;IACrB,YAAYnB,EAAE,KAAK,CAACoB,aAAa,EAAE,CAACA,aAAa,OAAO;IACxD,WAAWpB,EAAE,KAAK,CAACqB,YAAY,EAAE,CAACA,YAAY,OAAO;IACrD,iBAAiBrB,EAAE,KAAK,CAACsB,kBAAkB,EAAE,CAACA,kBAAkB,OAAO;IACvE,wBAAwBtB,EAAE,KAAK,CAACuB,yBAAyB,EAAE,CAACA,yBAAyB,OAAO;IAC5F,0BAA0BvB,EAAE,KAAK,CAACwB,2BAA2B,EAAE,CAACA,2BAA2B,OAAO;IAClG,gBAAgBxB,EAAE,KAAK,CAACyB,iBAAiB,EAAE,CAACA,iBAAiB,OAAO;IACpE,0BAA0BzB,EAAE,KAAK,CAAC0B,2BAA2B,EAAE,CAACA,2BAA2B,OAAO;IAClG,kBAAkBC,kBAAkB,OAAO;IAC3C,QAAQC,QAAQ,OAAO;AACzB"}
|