@visactor/vseed 0.1.40 → 0.1.42
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 +3 -3
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/esm/builder/builder/builder.d.ts +3211 -349
- package/dist/esm/pipeline/advanced/chart/pipeline/column.js +3 -2
- package/dist/esm/pipeline/advanced/chart/pipeline/column.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipeline/scatter.js +3 -2
- package/dist/esm/pipeline/advanced/chart/pipeline/scatter.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipes/analysis/common.d.ts +3 -0
- package/dist/esm/pipeline/advanced/chart/pipes/analysis/common.js +22 -0
- package/dist/esm/pipeline/advanced/chart/pipes/analysis/common.js.map +1 -0
- package/dist/esm/pipeline/advanced/chart/pipes/analysis/index.d.ts +1 -0
- package/dist/esm/pipeline/advanced/chart/pipes/analysis/index.js +1 -0
- package/dist/esm/pipeline/advanced/chart/pipes/analysis/sortLegend.js +1 -19
- package/dist/esm/pipeline/advanced/chart/pipes/analysis/sortLegend.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipes/analysis/sortXBand.d.ts +1 -2
- package/dist/esm/pipeline/advanced/chart/pipes/analysis/sortXBand.js +2 -20
- package/dist/esm/pipeline/advanced/chart/pipes/analysis/sortXBand.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipes/analysis/sortYBand.js +1 -1
- package/dist/esm/pipeline/advanced/chart/pipes/analysis/sortYBand.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipes/regressionLine/regressionLine.js +28 -1
- package/dist/esm/pipeline/advanced/chart/pipes/regressionLine/regressionLine.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipes/reshape/pivotReshapeWithBoxplotEncoding.js +0 -1
- package/dist/esm/pipeline/advanced/chart/pipes/reshape/pivotReshapeWithBoxplotEncoding.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/area.js +7 -4
- package/dist/esm/pipeline/spec/chart/pipeline/area.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/areaPercent.js +3 -2
- package/dist/esm/pipeline/spec/chart/pipeline/areaPercent.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/bar.js +4 -2
- package/dist/esm/pipeline/spec/chart/pipeline/bar.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/barParallel.js +4 -2
- package/dist/esm/pipeline/spec/chart/pipeline/barParallel.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/barPercent.js +4 -2
- package/dist/esm/pipeline/spec/chart/pipeline/barPercent.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/boxplot.js +3 -2
- package/dist/esm/pipeline/spec/chart/pipeline/boxplot.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/column.js +8 -4
- package/dist/esm/pipeline/spec/chart/pipeline/column.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/columnParallel.js +4 -2
- package/dist/esm/pipeline/spec/chart/pipeline/columnParallel.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/columnPercent.js +4 -2
- 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/dualAxis.js +3 -2
- package/dist/esm/pipeline/spec/chart/pipeline/dualAxis.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/funnel.js +2 -1
- package/dist/esm/pipeline/spec/chart/pipeline/funnel.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/heatmap.js +3 -2
- package/dist/esm/pipeline/spec/chart/pipeline/heatmap.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/histogram.js +7 -4
- package/dist/esm/pipeline/spec/chart/pipeline/histogram.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/line.js +7 -4
- package/dist/esm/pipeline/spec/chart/pipeline/line.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/pie.js +4 -2
- 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 +11 -4
- package/dist/esm/pipeline/spec/chart/pipeline/scatter.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/annotation/index.d.ts +1 -0
- package/dist/esm/pipeline/spec/chart/pipes/annotation/index.js +2 -1
- package/dist/esm/pipeline/spec/chart/pipes/annotation/splitLine.d.ts +2 -0
- package/dist/esm/pipeline/spec/chart/pipes/annotation/splitLine.js +172 -0
- package/dist/esm/pipeline/spec/chart/pipes/annotation/splitLine.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/pipeline/spec/chart/pipes/init/pivot.js +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/init/pivot.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/pivotChart/index.d.ts +2 -0
- package/dist/esm/pipeline/spec/chart/pipes/pivotChart/index.js +3 -1
- package/dist/esm/pipeline/spec/chart/pipes/pivotChart/pivotAxisStyle.d.ts +2 -0
- package/dist/esm/pipeline/spec/chart/pipes/pivotChart/pivotAxisStyle.js +13 -0
- package/dist/esm/pipeline/spec/chart/pipes/pivotChart/pivotAxisStyle.js.map +1 -0
- package/dist/esm/pipeline/spec/chart/pipes/pivotChart/pivotGridStyle.js +38 -32
- package/dist/esm/pipeline/spec/chart/pipes/pivotChart/pivotGridStyle.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/pivotChart/pivotTitle.d.ts +2 -0
- package/dist/esm/pipeline/spec/chart/pipes/pivotChart/pivotTitle.js +28 -0
- package/dist/esm/pipeline/spec/chart/pipes/pivotChart/pivotTitle.js.map +1 -0
- package/dist/esm/pipeline/spec/chart/pipes/region/addRegionPadding.d.ts +2 -0
- package/dist/esm/pipeline/spec/chart/pipes/region/addRegionPadding.js +10 -0
- package/dist/esm/pipeline/spec/chart/pipes/region/addRegionPadding.js.map +1 -0
- package/dist/esm/pipeline/spec/chart/pipes/region/index.d.ts +1 -0
- package/dist/esm/pipeline/spec/chart/pipes/region/index.js +1 -0
- package/dist/esm/pipeline/spec/chart/pipes/regressionLine/columnRegressionLine.d.ts +2 -0
- package/dist/esm/pipeline/spec/chart/pipes/regressionLine/columnRegressionLine.js +150 -0
- package/dist/esm/pipeline/spec/chart/pipes/regressionLine/columnRegressionLine.js.map +1 -0
- package/dist/esm/pipeline/spec/chart/pipes/regressionLine/common.d.ts +4 -0
- package/dist/esm/pipeline/spec/chart/pipes/regressionLine/common.js +21 -0
- package/dist/esm/pipeline/spec/chart/pipes/regressionLine/common.js.map +1 -0
- package/dist/esm/pipeline/spec/chart/pipes/regressionLine/ecdfRegressionLine.d.ts +2 -0
- package/dist/esm/pipeline/spec/chart/pipes/regressionLine/ecdfRegressionLine.js +98 -0
- package/dist/esm/pipeline/spec/chart/pipes/regressionLine/ecdfRegressionLine.js.map +1 -0
- package/dist/esm/pipeline/spec/chart/pipes/regressionLine/index.d.ts +4 -1
- package/dist/esm/pipeline/spec/chart/pipes/regressionLine/index.js +4 -1
- package/dist/esm/pipeline/spec/chart/pipes/regressionLine/kdeRegressionLine.d.ts +2 -0
- package/dist/esm/pipeline/spec/chart/pipes/regressionLine/kdeRegressionLine.js +98 -0
- package/dist/esm/pipeline/spec/chart/pipes/regressionLine/kdeRegressionLine.js.map +1 -0
- package/dist/esm/pipeline/spec/chart/pipes/regressionLine/linearRegressionLine.d.ts +16 -0
- package/dist/esm/pipeline/spec/chart/pipes/regressionLine/linearRegressionLine.js +159 -0
- package/dist/esm/pipeline/spec/chart/pipes/regressionLine/linearRegressionLine.js.map +1 -0
- package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltip.d.ts +2 -2
- package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltip.js +5 -5
- package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltip.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltipDualAxis.js +2 -2
- package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltipDualAxis.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltipScatter.d.ts +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltipScatter.js +1 -6
- package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltipScatter.js.map +1 -1
- package/dist/esm/theme/common/color.d.ts +4 -0
- package/dist/esm/theme/common/color.js +6 -2
- package/dist/esm/theme/common/color.js.map +1 -1
- package/dist/esm/theme/common/regressionLine.d.ts +8 -4
- package/dist/esm/theme/common/regressionLine.js +60 -8
- package/dist/esm/theme/common/regressionLine.js.map +1 -1
- package/dist/esm/theme/common/table.d.ts +6 -0
- package/dist/esm/theme/common/table.js +4 -1
- package/dist/esm/theme/common/table.js.map +1 -1
- package/dist/esm/theme/dark/dark.js +8 -6
- package/dist/esm/theme/dark/dark.js.map +1 -1
- package/dist/esm/theme/light/light.js +8 -6
- package/dist/esm/theme/light/light.js.map +1 -1
- package/dist/esm/types/advancedVSeed.d.ts +1028 -37
- package/dist/esm/types/advancedVSeed.js +2 -2
- package/dist/esm/types/advancedVSeed.js.map +1 -1
- package/dist/esm/types/chartType/column/column.d.ts +6 -1
- package/dist/esm/types/chartType/column/zColumn.d.ts +25 -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/histogram/histogram.d.ts +7 -3
- package/dist/esm/types/chartType/histogram/zHistogram.d.ts +19 -4
- package/dist/esm/types/chartType/histogram/zHistogram.js +3 -2
- package/dist/esm/types/chartType/histogram/zHistogram.js.map +1 -1
- package/dist/esm/types/chartType/scatter/scatter.d.ts +21 -1
- package/dist/esm/types/chartType/scatter/zScatter.d.ts +94 -0
- package/dist/esm/types/chartType/scatter/zScatter.js +5 -1
- package/dist/esm/types/chartType/scatter/zScatter.js.map +1 -1
- package/dist/esm/types/properties/annotation/annotationHorizontalLine.d.ts +13 -0
- package/dist/esm/types/properties/config/area.d.ts +6 -0
- package/dist/esm/types/properties/config/bar.d.ts +9 -0
- package/dist/esm/types/properties/config/boxplot.d.ts +3 -0
- package/dist/esm/types/properties/config/color/color.d.ts +8 -0
- package/dist/esm/types/properties/config/color/color.js.map +1 -1
- package/dist/esm/types/properties/config/column.d.ts +141 -2
- package/dist/esm/types/properties/config/column.js +6 -3
- package/dist/esm/types/properties/config/column.js.map +1 -1
- package/dist/esm/types/properties/config/config.d.ts +449 -9
- package/dist/esm/types/properties/config/dualAxis.d.ts +3 -0
- package/dist/esm/types/properties/config/funnel.d.ts +3 -0
- package/dist/esm/types/properties/config/heatmap.d.ts +3 -0
- package/dist/esm/types/properties/config/histogram.d.ts +132 -9
- package/dist/esm/types/properties/config/histogram.js +2 -2
- package/dist/esm/types/properties/config/histogram.js.map +1 -1
- package/dist/esm/types/properties/config/line.d.ts +3 -0
- package/dist/esm/types/properties/config/pie.d.ts +9 -0
- package/dist/esm/types/properties/config/pivotGrid/pivotGrid.d.ts +3 -0
- package/dist/esm/types/properties/config/pivotGrid/pivotGrid.js +4 -1
- package/dist/esm/types/properties/config/pivotGrid/pivotGrid.js.map +1 -1
- package/dist/esm/types/properties/config/rose.d.ts +6 -0
- package/dist/esm/types/properties/config/scatter.d.ts +133 -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/regressionLine/{histogramRegressionLine.d.ts → ecdfRegressionLine.d.ts} +2 -7
- package/dist/esm/types/properties/regressionLine/index.d.ts +7 -2
- package/dist/esm/types/properties/regressionLine/index.js +1 -1
- package/dist/esm/types/properties/regressionLine/kdeRegressionLine.d.ts +40 -0
- package/dist/esm/types/properties/regressionLine/linearRegressionLine.d.ts +53 -0
- package/dist/esm/types/properties/regressionLine/logisticRegressionLine.d.ts +53 -0
- package/dist/esm/types/properties/regressionLine/logisticRegressionLine.js +0 -0
- package/dist/esm/types/properties/regressionLine/lowessRegressionLine.d.ts +53 -0
- package/dist/esm/types/properties/regressionLine/lowessRegressionLine.js +0 -0
- package/dist/esm/types/properties/regressionLine/polynomialRegressionLine.d.ts +57 -0
- package/dist/esm/types/properties/regressionLine/polynomialRegressionLine.js +0 -0
- package/dist/esm/types/properties/regressionLine/zRegressionLine.d.ts +199 -0
- package/dist/esm/types/properties/regressionLine/zRegressionLine.js +32 -0
- package/dist/esm/types/properties/regressionLine/zRegressionLine.js.map +1 -0
- package/dist/esm/types/properties/theme/customTheme.d.ts +898 -18
- package/dist/esm/types/zVseed.d.ts +138 -4
- package/dist/umd/index.js +1889 -279
- package/dist/umd/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/regressionLine/histogramRegressionLine.d.ts +0 -2
- package/dist/esm/pipeline/spec/chart/pipes/regressionLine/histogramRegressionLine.js +0 -126
- package/dist/esm/pipeline/spec/chart/pipes/regressionLine/histogramRegressionLine.js.map +0 -1
- package/dist/esm/types/properties/regressionLine/zHistogramRegressionLine.d.ts +0 -11
- package/dist/esm/types/properties/regressionLine/zHistogramRegressionLine.js +0 -17
- package/dist/esm/types/properties/regressionLine/zHistogramRegressionLine.js.map +0 -1
- /package/dist/esm/{pipeline/advanced/chart/pipes/analysis/sort.d.ts → types/properties/regressionLine/ecdfRegressionLine.js} +0 -0
- /package/dist/esm/{pipeline/advanced/chart/pipes/analysis/sort.js → types/properties/regressionLine/kdeRegressionLine.js} +0 -0
- /package/dist/esm/types/properties/regressionLine/{histogramRegressionLine.js → linearRegressionLine.js} +0 -0
|
@@ -7,7 +7,7 @@ import { zEncoding } from "./properties/encoding/index.js";
|
|
|
7
7
|
import { zDatasetReshapeInfo } from "./properties/datasetReshapeInfo/index.js";
|
|
8
8
|
import { zCustomThemeConfig, zTheme } from "./properties/theme/index.js";
|
|
9
9
|
import { zConfig } from "./properties/config/index.js";
|
|
10
|
-
import { zAnalysis, zAnnotation,
|
|
10
|
+
import { zAnalysis, zAnnotation, zMarkStyle, zRegressionLine } from "./properties/index.js";
|
|
11
11
|
import { zLocale } from "./i18n/index.js";
|
|
12
12
|
const zAdvancedVSeed = z.object({
|
|
13
13
|
chartType: zChartType,
|
|
@@ -23,7 +23,7 @@ const zAdvancedVSeed = z.object({
|
|
|
23
23
|
customTheme: zCustomThemeConfig,
|
|
24
24
|
annotation: zAnnotation,
|
|
25
25
|
locale: zLocale,
|
|
26
|
-
|
|
26
|
+
regressionLine: zRegressionLine
|
|
27
27
|
});
|
|
28
28
|
export { zAdvancedVSeed };
|
|
29
29
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types/advancedVSeed.js","sources":["webpack://@visactor/vseed/./src/types/advancedVSeed.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zChartType } from './properties/chartType'\nimport { zDataset } from './properties/dataset'\nimport { zDimensionTree } from './properties/dimensions'\nimport { zMeasureTree } from './properties/measures'\nimport { zEncoding } from './properties/encoding'\nimport { zDatasetReshapeInfo } from './properties/datasetReshapeInfo'\nimport { zTheme, zCustomThemeConfig } from './properties/theme'\nimport { zConfig } from './properties/config'\nimport { zAnalysis, zAnnotation,
|
|
1
|
+
{"version":3,"file":"types/advancedVSeed.js","sources":["webpack://@visactor/vseed/./src/types/advancedVSeed.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zChartType } from './properties/chartType'\nimport { zDataset } from './properties/dataset'\nimport { zDimensionTree } from './properties/dimensions'\nimport { zMeasureTree } from './properties/measures'\nimport { zEncoding } from './properties/encoding'\nimport { zDatasetReshapeInfo } from './properties/datasetReshapeInfo'\nimport { zTheme, zCustomThemeConfig } from './properties/theme'\nimport { zConfig } from './properties/config'\nimport { zAnalysis, zAnnotation, zRegressionLine, zMarkStyle } from './properties'\nimport { zLocale } from './i18n'\n\nexport const zAdvancedVSeed = z.object({\n chartType: zChartType,\n dataset: zDataset,\n datasetReshapeInfo: zDatasetReshapeInfo,\n dimensions: zDimensionTree,\n measures: zMeasureTree,\n encoding: zEncoding,\n config: zConfig,\n analysis: zAnalysis,\n theme: zTheme,\n markStyle: zMarkStyle,\n customTheme: zCustomThemeConfig,\n annotation: zAnnotation,\n locale: zLocale,\n regressionLine: zRegressionLine,\n})\n\nexport type AdvancedVSeed = z.infer<typeof zAdvancedVSeed>\n"],"names":["zAdvancedVSeed","z","zChartType","zDataset","zDatasetReshapeInfo","zDimensionTree","zMeasureTree","zEncoding","zConfig","zAnalysis","zTheme","zMarkStyle","zCustomThemeConfig","zAnnotation","zLocale","zRegressionLine"],"mappings":";;;;;;;;;;;AAYO,MAAMA,iBAAiBC,EAAE,MAAM,CAAC;IACrC,WAAWC;IACX,SAASC;IACT,oBAAoBC;IACpB,YAAYC;IACZ,UAAUC;IACV,UAAUC;IACV,QAAQC;IACR,UAAUC;IACV,OAAOC;IACP,WAAWC;IACX,aAAaC;IACb,YAAYC;IACZ,QAAQC;IACR,gBAAgBC;AAClB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Locale } from '../../i18n';
|
|
2
|
-
import type { AnnotationArea, AnnotationHorizontalLine, AnnotationPoint, AnnotationVerticalLine, BackgroundColor, BarStyle, Color, CrosshairRect, Dataset, Dimensions, Label, Legend, StackCornerRadius, Theme, Tooltip, XBandAxis, YLinearAxis, MeasureTree, Sort, SortLegend, BarMaxWidth } from '../../properties';
|
|
2
|
+
import type { AnnotationArea, AnnotationHorizontalLine, AnnotationPoint, AnnotationVerticalLine, BackgroundColor, BarStyle, Color, CrosshairRect, Dataset, Dimensions, Label, Legend, StackCornerRadius, Theme, Tooltip, XBandAxis, YLinearAxis, MeasureTree, Sort, SortLegend, BarMaxWidth, PolynomialRegressionLine } from '../../properties';
|
|
3
3
|
/**
|
|
4
4
|
* @description 柱状图,适用于纵向数据对比场景,X轴为类目轴(分类数据),Y轴为数值轴(连续数据),柱子纵向排列
|
|
5
5
|
* 适用场景:
|
|
@@ -147,6 +147,11 @@ export interface Column {
|
|
|
147
147
|
* @description 标注区域配置, 根据选择的数据, 定义图表的标注区域, 包括标注区域的位置, 样式等.
|
|
148
148
|
*/
|
|
149
149
|
annotationArea?: AnnotationArea | AnnotationArea[];
|
|
150
|
+
/**
|
|
151
|
+
* 多项式回归线
|
|
152
|
+
* @description 多项式回归线配置, 包括多项式的阶数、回归线的样式等.
|
|
153
|
+
*/
|
|
154
|
+
polynomialRegressionLine?: boolean | PolynomialRegressionLine | PolynomialRegressionLine[];
|
|
150
155
|
/**
|
|
151
156
|
* @description 图表语言配置, 支持'zh-CN'与'en-US'两种语言, 另外可以调用 intl.setLocale('zh-CN') 方法设置语言
|
|
152
157
|
* @default 'zh-CN'
|
|
@@ -1334,6 +1334,31 @@ export declare const zColumn: z.ZodObject<{
|
|
|
1334
1334
|
areaLineDash: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
|
|
1335
1335
|
outerPadding: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodNumber>>>;
|
|
1336
1336
|
}, z.core.$strip>]>>>;
|
|
1337
|
+
polynomialRegressionLine: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodUnion<[z.ZodArray<z.ZodObject<{
|
|
1338
|
+
color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1339
|
+
lineWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1340
|
+
lineDash: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
|
|
1341
|
+
text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1342
|
+
textColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1343
|
+
textFontSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1344
|
+
textFontWeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1345
|
+
confidenceIntervalVisible: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
1346
|
+
confidenceIntervalColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1347
|
+
confidenceIntervalOpacity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1348
|
+
degree: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1349
|
+
}, z.core.$strip>>, z.ZodObject<{
|
|
1350
|
+
color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1351
|
+
lineWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1352
|
+
lineDash: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
|
|
1353
|
+
text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1354
|
+
textColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1355
|
+
textFontSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1356
|
+
textFontWeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1357
|
+
confidenceIntervalVisible: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
1358
|
+
confidenceIntervalColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1359
|
+
confidenceIntervalOpacity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1360
|
+
degree: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1361
|
+
}, z.core.$strip>]>, z.ZodBoolean]>>>;
|
|
1337
1362
|
locale: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodEnum<{
|
|
1338
1363
|
"zh-CN": "zh-CN";
|
|
1339
1364
|
"en-US": "en-US";
|
|
@@ -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, zColor, zCrosshairRect, zDataset, zDimensions, zEncoding, zLabel, zLegend, zMeasureTree, zSort, zSortLegend, zStackCornerRadius, zTheme, zTooltip, zXBandAxis, zYLinearAxis } from "../../properties/index.js";
|
|
3
|
+
import { zAnnotationArea, zAnnotationHorizontalLine, zAnnotationPoint, zAnnotationVerticalLine, zBackgroundColor, zBarMaxWidth, zBarStyle, zColor, zCrosshairRect, zDataset, zDimensions, zEncoding, zLabel, zLegend, zMeasureTree, zPolynomialRegressionLine, 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(),
|
|
@@ -25,6 +25,7 @@ const zColumn = z.object({
|
|
|
25
25
|
annotationVerticalLine: z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).nullish(),
|
|
26
26
|
annotationHorizontalLine: z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).nullish(),
|
|
27
27
|
annotationArea: z.array(zAnnotationArea).or(zAnnotationArea).nullish(),
|
|
28
|
+
polynomialRegressionLine: z.array(zPolynomialRegressionLine).or(zPolynomialRegressionLine).or(z.boolean()).nullish(),
|
|
28
29
|
locale: zLocale.nullish()
|
|
29
30
|
});
|
|
30
31
|
export { zColumn };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types/chartType/column/zColumn.js","sources":["webpack://@visactor/vseed/./src/types/chartType/column/zColumn.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 zDimensions,\n zEncoding,\n zLabel,\n zLegend,\n zMeasureTree,\n zSort,\n zSortLegend,\n zStackCornerRadius,\n zTheme,\n zTooltip,\n zXBandAxis,\n zYLinearAxis,\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: zMeasureTree.nullish(),\n backgroundColor: zBackgroundColor.nullish(),\n color: zColor.nullish(),\n label: zLabel.nullish(),\n legend: zLegend.nullish(),\n tooltip: zTooltip.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 locale: zLocale.nullish(),\n})\n"],"names":["zColumn","z","zDataset","zEncoding","zDimensions","zMeasureTree","zBackgroundColor","zColor","zLabel","zLegend","zTooltip","zXBandAxis","zYLinearAxis","zSort","zSortLegend","zCrosshairRect","zStackCornerRadius","zBarMaxWidth","zTheme","zBarStyle","zAnnotationPoint","zAnnotationVerticalLine","zAnnotationHorizontalLine","zAnnotationArea","zLocale"],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"types/chartType/column/zColumn.js","sources":["webpack://@visactor/vseed/./src/types/chartType/column/zColumn.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 zDimensions,\n zEncoding,\n zLabel,\n zLegend,\n zMeasureTree,\n zPolynomialRegressionLine,\n zSort,\n zSortLegend,\n zStackCornerRadius,\n zTheme,\n zTooltip,\n zXBandAxis,\n zYLinearAxis,\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: zMeasureTree.nullish(),\n backgroundColor: zBackgroundColor.nullish(),\n color: zColor.nullish(),\n label: zLabel.nullish(),\n legend: zLegend.nullish(),\n tooltip: zTooltip.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 polynomialRegressionLine: z.array(zPolynomialRegressionLine).or(zPolynomialRegressionLine).or(z.boolean()).nullish(),\n locale: zLocale.nullish(),\n})\n"],"names":["zColumn","z","zDataset","zEncoding","zDimensions","zMeasureTree","zBackgroundColor","zColor","zLabel","zLegend","zTooltip","zXBandAxis","zYLinearAxis","zSort","zSortLegend","zCrosshairRect","zStackCornerRadius","zBarMaxWidth","zTheme","zBarStyle","zAnnotationPoint","zAnnotationVerticalLine","zAnnotationHorizontalLine","zAnnotationArea","zPolynomialRegressionLine","zLocale"],"mappings":";;;AA4BO,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,aAAa,OAAO;IAC9B,iBAAiBC,iBAAiB,OAAO;IACzC,OAAOC,OAAO,OAAO;IACrB,OAAOC,OAAO,OAAO;IACrB,QAAQC,QAAQ,OAAO;IACvB,SAASC,SAAS,OAAO;IACzB,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,UAAUjB,EAAE,KAAK,CAACkB,WAAW,EAAE,CAACA,WAAW,OAAO;IAClD,iBAAiBlB,EAAE,KAAK,CAACmB,kBAAkB,EAAE,CAACA,kBAAkB,OAAO;IACvE,wBAAwBnB,EAAE,KAAK,CAACoB,yBAAyB,EAAE,CAACA,yBAAyB,OAAO;IAC5F,0BAA0BpB,EAAE,KAAK,CAACqB,2BAA2B,EAAE,CAACA,2BAA2B,OAAO;IAClG,gBAAgBrB,EAAE,KAAK,CAACsB,iBAAiB,EAAE,CAACA,iBAAiB,OAAO;IACpE,0BAA0BtB,EAAE,KAAK,CAACuB,2BAA2B,EAAE,CAACA,2BAA2B,EAAE,CAACvB,EAAE,OAAO,IAAI,OAAO;IAClH,QAAQwB,QAAQ,OAAO;AACzB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Locale } from '../../i18n';
|
|
2
|
-
import type { AnnotationArea, AnnotationHorizontalLine, AnnotationPoint, AnnotationVerticalLine, BackgroundColor, BarStyle, Color, CrosshairRect, Dataset, Dimensions, Label, Legend, StackCornerRadius, Theme, Tooltip, YLinearAxis, MeasureTree, XLinearAxis,
|
|
2
|
+
import type { AnnotationArea, AnnotationHorizontalLine, AnnotationPoint, AnnotationVerticalLine, BackgroundColor, BarStyle, Color, CrosshairRect, Dataset, Dimensions, Label, Legend, StackCornerRadius, Theme, Tooltip, YLinearAxis, MeasureTree, XLinearAxis, KdeRegressionLine, EcdfRegressionLine } from '../../properties';
|
|
3
3
|
/**
|
|
4
4
|
* @description 直方图,适用于展示数据分布情况的场景,X轴为数值轴(连续数据),Y轴为数值轴(连续数据),柱子纵向排列
|
|
5
5
|
* 适用场景:
|
|
@@ -116,9 +116,13 @@ export interface Histogram {
|
|
|
116
116
|
*/
|
|
117
117
|
annotationArea?: AnnotationArea | AnnotationArea[];
|
|
118
118
|
/**
|
|
119
|
-
* @description
|
|
119
|
+
* @description 核密度回归线配置, 用于展示数据的趋势和分布情况
|
|
120
120
|
*/
|
|
121
|
-
|
|
121
|
+
kdeRegressionLine?: boolean | KdeRegressionLine | KdeRegressionLine[];
|
|
122
|
+
/**
|
|
123
|
+
* @description 经验累积分布函数回归线配置, 用于展示数据的累积分布情况
|
|
124
|
+
*/
|
|
125
|
+
ecdfRegressionLine?: boolean | EcdfRegressionLine | EcdfRegressionLine[];
|
|
122
126
|
/**
|
|
123
127
|
* @description 图表语言配置, 支持'zh-CN'与'en-US'两种语言, 另外可以调用 intl.setLocale('zh-CN') 方法设置语言
|
|
124
128
|
* @default 'zh-CN'
|
|
@@ -1350,8 +1350,7 @@ export declare const zHistogram: z.ZodObject<{
|
|
|
1350
1350
|
areaLineDash: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
|
|
1351
1351
|
outerPadding: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodNumber>>>;
|
|
1352
1352
|
}, z.core.$strip>]>>>;
|
|
1353
|
-
|
|
1354
|
-
type: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<"kde">, z.ZodLiteral<"ecdf">]>>>;
|
|
1353
|
+
ecdfRegressionLine: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodUnion<[z.ZodArray<z.ZodObject<{
|
|
1355
1354
|
color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1356
1355
|
lineWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1357
1356
|
lineDash: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
|
|
@@ -1360,7 +1359,6 @@ export declare const zHistogram: z.ZodObject<{
|
|
|
1360
1359
|
textFontSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1361
1360
|
textFontWeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1362
1361
|
}, z.core.$strip>>, z.ZodObject<{
|
|
1363
|
-
type: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<"kde">, z.ZodLiteral<"ecdf">]>>>;
|
|
1364
1362
|
color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1365
1363
|
lineWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1366
1364
|
lineDash: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
|
|
@@ -1368,7 +1366,24 @@ export declare const zHistogram: z.ZodObject<{
|
|
|
1368
1366
|
textColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1369
1367
|
textFontSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1370
1368
|
textFontWeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1371
|
-
}, z.core.$strip>]>>>;
|
|
1369
|
+
}, z.core.$strip>]>, z.ZodBoolean]>>>;
|
|
1370
|
+
kdeRegressionLine: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodUnion<[z.ZodArray<z.ZodObject<{
|
|
1371
|
+
color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1372
|
+
lineWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1373
|
+
lineDash: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
|
|
1374
|
+
text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1375
|
+
textColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1376
|
+
textFontSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1377
|
+
textFontWeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1378
|
+
}, z.core.$strip>>, z.ZodObject<{
|
|
1379
|
+
color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1380
|
+
lineWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1381
|
+
lineDash: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
|
|
1382
|
+
text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1383
|
+
textColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1384
|
+
textFontSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1385
|
+
textFontWeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1386
|
+
}, z.core.$strip>]>, z.ZodBoolean]>>>;
|
|
1372
1387
|
locale: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodEnum<{
|
|
1373
1388
|
"zh-CN": "zh-CN";
|
|
1374
1389
|
"en-US": "en-US";
|
|
@@ -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, zBarStyle, zColor, zCrosshairRect, zDataset, zDimensions, zEncoding,
|
|
3
|
+
import { zAnnotationArea, zAnnotationHorizontalLine, zAnnotationPoint, zAnnotationVerticalLine, zBackgroundColor, zBarStyle, zColor, zCrosshairRect, zDataset, zDimensions, zEcdfRegressionLine, zEncoding, zKdeRegressionLine, zLabel, zLegend, zMeasureTree, zTheme, zTooltip, zXLinearAxis, zYLinearAxis } from "../../properties/index.js";
|
|
4
4
|
const zHistogram = z.object({
|
|
5
5
|
chartType: z.literal('histogram'),
|
|
6
6
|
dataset: zDataset.nullish(),
|
|
@@ -24,7 +24,8 @@ const zHistogram = z.object({
|
|
|
24
24
|
annotationVerticalLine: z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).nullish(),
|
|
25
25
|
annotationHorizontalLine: z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).nullish(),
|
|
26
26
|
annotationArea: z.array(zAnnotationArea).or(zAnnotationArea).nullish(),
|
|
27
|
-
|
|
27
|
+
ecdfRegressionLine: z.array(zEcdfRegressionLine).or(zEcdfRegressionLine).or(z.boolean()).nullish(),
|
|
28
|
+
kdeRegressionLine: z.array(zKdeRegressionLine).or(zKdeRegressionLine).or(z.boolean()).nullish(),
|
|
28
29
|
locale: zLocale.nullish()
|
|
29
30
|
});
|
|
30
31
|
export { zHistogram };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types/chartType/histogram/zHistogram.js","sources":["webpack://@visactor/vseed/./src/types/chartType/histogram/zHistogram.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zLocale } from '../../i18n'\nimport {\n zAnnotationArea,\n zAnnotationHorizontalLine,\n zAnnotationPoint,\n zAnnotationVerticalLine,\n zBackgroundColor,\n zBarStyle,\n zColor,\n zCrosshairRect,\n zDataset,\n zDimensions,\n zEncoding,\n
|
|
1
|
+
{"version":3,"file":"types/chartType/histogram/zHistogram.js","sources":["webpack://@visactor/vseed/./src/types/chartType/histogram/zHistogram.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zLocale } from '../../i18n'\nimport {\n zAnnotationArea,\n zAnnotationHorizontalLine,\n zAnnotationPoint,\n zAnnotationVerticalLine,\n zBackgroundColor,\n zBarStyle,\n zColor,\n zCrosshairRect,\n zDataset,\n zDimensions,\n zEcdfRegressionLine,\n zEncoding,\n zKdeRegressionLine,\n zLabel,\n zLegend,\n zMeasureTree,\n zTheme,\n zTooltip,\n zXLinearAxis,\n zYLinearAxis,\n} from '../../properties'\n\nexport const zHistogram = z.object({\n chartType: z.literal('histogram'),\n dataset: zDataset.nullish(),\n encoding: zEncoding.nullish(),\n dimensions: zDimensions.nullish(),\n measures: zMeasureTree.nullish(),\n backgroundColor: zBackgroundColor.nullish(),\n color: zColor.nullish(),\n label: zLabel.nullish(),\n legend: zLegend.nullish(),\n tooltip: zTooltip.nullish(),\n xAxis: zXLinearAxis.nullish(),\n yAxis: zYLinearAxis.nullish(),\n crosshairRect: zCrosshairRect.nullish(),\n binCount: z.number().positive().nullish(),\n binStep: z.number().positive().nullish(),\n binValueType: z.literal('count').or(z.literal('percentage')).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 ecdfRegressionLine: z.array(zEcdfRegressionLine).or(zEcdfRegressionLine).or(z.boolean()).nullish(),\n kdeRegressionLine: z.array(zKdeRegressionLine).or(zKdeRegressionLine).or(z.boolean()).nullish(),\n locale: zLocale.nullish(),\n})\n\nexport type Histogram = z.infer<typeof zHistogram>\n"],"names":["zHistogram","z","zDataset","zEncoding","zDimensions","zMeasureTree","zBackgroundColor","zColor","zLabel","zLegend","zTooltip","zXLinearAxis","zYLinearAxis","zCrosshairRect","zTheme","zBarStyle","zAnnotationPoint","zAnnotationVerticalLine","zAnnotationHorizontalLine","zAnnotationArea","zEcdfRegressionLine","zKdeRegressionLine","zLocale"],"mappings":";;;AAyBO,MAAMA,aAAaC,EAAE,MAAM,CAAC;IACjC,WAAWA,EAAE,OAAO,CAAC;IACrB,SAASC,SAAS,OAAO;IACzB,UAAUC,UAAU,OAAO;IAC3B,YAAYC,YAAY,OAAO;IAC/B,UAAUC,aAAa,OAAO;IAC9B,iBAAiBC,iBAAiB,OAAO;IACzC,OAAOC,OAAO,OAAO;IACrB,OAAOC,OAAO,OAAO;IACrB,QAAQC,QAAQ,OAAO;IACvB,SAASC,SAAS,OAAO;IACzB,OAAOC,aAAa,OAAO;IAC3B,OAAOC,aAAa,OAAO;IAC3B,eAAeC,eAAe,OAAO;IACrC,UAAUZ,EAAE,MAAM,GAAG,QAAQ,GAAG,OAAO;IACvC,SAASA,EAAE,MAAM,GAAG,QAAQ,GAAG,OAAO;IACtC,cAAcA,EAAE,OAAO,CAAC,SAAS,EAAE,CAACA,EAAE,OAAO,CAAC,eAAe,OAAO;IACpE,OAAOa,OAAO,OAAO;IACrB,UAAUb,EAAE,KAAK,CAACc,WAAW,EAAE,CAACA,WAAW,OAAO;IAClD,iBAAiBd,EAAE,KAAK,CAACe,kBAAkB,EAAE,CAACA,kBAAkB,OAAO;IACvE,wBAAwBf,EAAE,KAAK,CAACgB,yBAAyB,EAAE,CAACA,yBAAyB,OAAO;IAC5F,0BAA0BhB,EAAE,KAAK,CAACiB,2BAA2B,EAAE,CAACA,2BAA2B,OAAO;IAClG,gBAAgBjB,EAAE,KAAK,CAACkB,iBAAiB,EAAE,CAACA,iBAAiB,OAAO;IACpE,oBAAoBlB,EAAE,KAAK,CAACmB,qBAAqB,EAAE,CAACA,qBAAqB,EAAE,CAACnB,EAAE,OAAO,IAAI,OAAO;IAChG,mBAAmBA,EAAE,KAAK,CAACoB,oBAAoB,EAAE,CAACA,oBAAoB,EAAE,CAACpB,EAAE,OAAO,IAAI,OAAO;IAC7F,QAAQqB,QAAQ,OAAO;AACzB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Locale } from '../../i18n';
|
|
2
|
-
import type { AnnotationArea, AnnotationHorizontalLine, AnnotationPoint, AnnotationVerticalLine, BackgroundColor, Color, Dataset, Dimensions, Label, Legend, PointStyle, Theme, Tooltip, CrosshairLine, YLinearAxis, XLinearAxis, MeasureTree, ScatterMeasures } from '../../properties';
|
|
2
|
+
import type { AnnotationArea, AnnotationHorizontalLine, AnnotationPoint, AnnotationVerticalLine, BackgroundColor, Color, Dataset, Dimensions, Label, Legend, PointStyle, Theme, Tooltip, CrosshairLine, YLinearAxis, XLinearAxis, MeasureTree, ScatterMeasures, LinearRegressionLine, LowessRegressionLine, PolynomialRegressionLine, LogisticRegressionLine } from '../../properties';
|
|
3
3
|
/**
|
|
4
4
|
* @description 散点图,适用于展示数据的分布情况,通过点的位置表示数据的数值
|
|
5
5
|
* 适用场景:
|
|
@@ -219,6 +219,26 @@ export interface Scatter {
|
|
|
219
219
|
* @description 标注区域配置, 根据选择的数据, 定义图表的标注区域, 包括标注区域的位置, 样式等.
|
|
220
220
|
*/
|
|
221
221
|
annotationArea?: AnnotationArea | AnnotationArea[];
|
|
222
|
+
/**
|
|
223
|
+
* 线性回归线
|
|
224
|
+
* @description 线性回归线配置, 包括线性回归线的样式等.
|
|
225
|
+
*/
|
|
226
|
+
linearRegressionLine?: boolean | LinearRegressionLine | LinearRegressionLine[];
|
|
227
|
+
/**
|
|
228
|
+
* 局部加权回归线配置项
|
|
229
|
+
* @description 局部加权回归线配置项, 包括局部加权回归线的样式等.
|
|
230
|
+
*/
|
|
231
|
+
lowessRegressionLine?: boolean | LowessRegressionLine | LowessRegressionLine[];
|
|
232
|
+
/**
|
|
233
|
+
* 多项式回归线
|
|
234
|
+
* @description 多项式回归线配置, 包括多项式的阶数、回归线的样式等.
|
|
235
|
+
*/
|
|
236
|
+
polynomialRegressionLine?: boolean | PolynomialRegressionLine | PolynomialRegressionLine[];
|
|
237
|
+
/**
|
|
238
|
+
* 逻辑回归线
|
|
239
|
+
* @description 逻辑回归线配置, 包括逻辑回归线的样式等.
|
|
240
|
+
*/
|
|
241
|
+
logisticRegressionLine?: boolean | LogisticRegressionLine | LogisticRegressionLine[];
|
|
222
242
|
/**
|
|
223
243
|
* 语言
|
|
224
244
|
* @description 图表语言配置, 支持'zh-CN'与'en-US'两种语言, 另外可以调用 intl.setLocale('zh-CN') 方法设置语言
|
|
@@ -1649,6 +1649,100 @@ export declare const zScatter: z.ZodObject<{
|
|
|
1649
1649
|
areaLineDash: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
|
|
1650
1650
|
outerPadding: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodNumber>>>;
|
|
1651
1651
|
}, z.core.$strip>]>>>;
|
|
1652
|
+
linearRegressionLine: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodUnion<[z.ZodArray<z.ZodObject<{
|
|
1653
|
+
color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1654
|
+
lineWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1655
|
+
lineDash: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
|
|
1656
|
+
text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1657
|
+
textColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1658
|
+
textFontSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1659
|
+
textFontWeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1660
|
+
confidenceIntervalVisible: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
1661
|
+
confidenceIntervalColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1662
|
+
confidenceIntervalOpacity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1663
|
+
}, z.core.$strip>>, z.ZodObject<{
|
|
1664
|
+
color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1665
|
+
lineWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1666
|
+
lineDash: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
|
|
1667
|
+
text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1668
|
+
textColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1669
|
+
textFontSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1670
|
+
textFontWeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1671
|
+
confidenceIntervalVisible: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
1672
|
+
confidenceIntervalColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1673
|
+
confidenceIntervalOpacity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1674
|
+
}, z.core.$strip>]>, z.ZodBoolean]>>>;
|
|
1675
|
+
lowessRegressionLine: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodUnion<[z.ZodArray<z.ZodObject<{
|
|
1676
|
+
color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1677
|
+
lineWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1678
|
+
lineDash: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
|
|
1679
|
+
text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1680
|
+
textColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1681
|
+
textFontSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1682
|
+
textFontWeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1683
|
+
confidenceIntervalVisible: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
1684
|
+
confidenceIntervalColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1685
|
+
confidenceIntervalOpacity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1686
|
+
}, z.core.$strip>>, z.ZodObject<{
|
|
1687
|
+
color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1688
|
+
lineWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1689
|
+
lineDash: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
|
|
1690
|
+
text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1691
|
+
textColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1692
|
+
textFontSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1693
|
+
textFontWeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1694
|
+
confidenceIntervalVisible: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
1695
|
+
confidenceIntervalColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1696
|
+
confidenceIntervalOpacity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1697
|
+
}, z.core.$strip>]>, z.ZodBoolean]>>>;
|
|
1698
|
+
polynomialRegressionLine: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodUnion<[z.ZodArray<z.ZodObject<{
|
|
1699
|
+
color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1700
|
+
lineWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1701
|
+
lineDash: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
|
|
1702
|
+
text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1703
|
+
textColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1704
|
+
textFontSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1705
|
+
textFontWeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1706
|
+
confidenceIntervalVisible: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
1707
|
+
confidenceIntervalColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1708
|
+
confidenceIntervalOpacity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1709
|
+
degree: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1710
|
+
}, z.core.$strip>>, z.ZodObject<{
|
|
1711
|
+
color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1712
|
+
lineWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1713
|
+
lineDash: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
|
|
1714
|
+
text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1715
|
+
textColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1716
|
+
textFontSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1717
|
+
textFontWeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1718
|
+
confidenceIntervalVisible: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
1719
|
+
confidenceIntervalColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1720
|
+
confidenceIntervalOpacity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1721
|
+
degree: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1722
|
+
}, z.core.$strip>]>, z.ZodBoolean]>>>;
|
|
1723
|
+
logisticRegressionLine: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodUnion<[z.ZodArray<z.ZodObject<{
|
|
1724
|
+
color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1725
|
+
lineWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1726
|
+
lineDash: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
|
|
1727
|
+
text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1728
|
+
textColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1729
|
+
textFontSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1730
|
+
textFontWeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1731
|
+
confidenceIntervalVisible: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
1732
|
+
confidenceIntervalColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1733
|
+
confidenceIntervalOpacity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1734
|
+
}, z.core.$strip>>, z.ZodObject<{
|
|
1735
|
+
color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1736
|
+
lineWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1737
|
+
lineDash: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
|
|
1738
|
+
text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1739
|
+
textColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1740
|
+
textFontSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1741
|
+
textFontWeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1742
|
+
confidenceIntervalVisible: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
1743
|
+
confidenceIntervalColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1744
|
+
confidenceIntervalOpacity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1745
|
+
}, z.core.$strip>]>, z.ZodBoolean]>>>;
|
|
1652
1746
|
locale: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodEnum<{
|
|
1653
1747
|
"zh-CN": "zh-CN";
|
|
1654
1748
|
"en-US": "en-US";
|
|
@@ -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, zColor, zCrosshairLine, zDataset, zDimensions, zEncoding, zLabel, zLegend, zMeasureTree, zPointStyle, zScatterMeasures, zTheme, zTooltip, zXLinearAxis, zYLinearAxis } from "../../properties/index.js";
|
|
3
|
+
import { zAnnotationArea, zAnnotationHorizontalLine, zAnnotationPoint, zAnnotationVerticalLine, zBackgroundColor, zColor, zCrosshairLine, zDataset, zDimensions, zEncoding, zLabel, zLegend, zLinearRegressionLine, zLogisticRegressionLine, zLowessRegressionLine, zMeasureTree, zPointStyle, zPolynomialRegressionLine, zScatterMeasures, 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(),
|
|
@@ -24,6 +24,10 @@ const zScatter = z.object({
|
|
|
24
24
|
annotationVerticalLine: z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).nullish(),
|
|
25
25
|
annotationHorizontalLine: z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).nullish(),
|
|
26
26
|
annotationArea: z.array(zAnnotationArea).or(zAnnotationArea).nullish(),
|
|
27
|
+
linearRegressionLine: z.array(zLinearRegressionLine).or(zLinearRegressionLine).or(z.boolean()).nullish(),
|
|
28
|
+
lowessRegressionLine: z.array(zLowessRegressionLine).or(zLowessRegressionLine).or(z.boolean()).nullish(),
|
|
29
|
+
polynomialRegressionLine: z.array(zPolynomialRegressionLine).or(zPolynomialRegressionLine).or(z.boolean()).nullish(),
|
|
30
|
+
logisticRegressionLine: z.array(zLogisticRegressionLine).or(zLogisticRegressionLine).or(z.boolean()).nullish(),
|
|
27
31
|
locale: zLocale.nullish()
|
|
28
32
|
});
|
|
29
33
|
export { zScatter };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types/chartType/scatter/zScatter.js","sources":["webpack://@visactor/vseed/./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 zDimensions,\n zEncoding,\n zLabel,\n zLegend,\n zMeasureTree,\n zPointStyle,\n zScatterMeasures,\n zTheme,\n zTooltip,\n zXLinearAxis,\n zYLinearAxis,\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: zMeasureTree.nullish(),\n scatterMeasures: zScatterMeasures.nullish(),\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 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 locale: zLocale.nullish(),\n})\n"],"names":["zScatter","z","zDataset","zEncoding","zDimensions","zMeasureTree","zScatterMeasures","zBackgroundColor","zColor","zLabel","zLegend","zTooltip","zXLinearAxis","zYLinearAxis","zCrosshairLine","zTheme","zPointStyle","zAnnotationPoint","zAnnotationVerticalLine","zAnnotationHorizontalLine","zAnnotationArea","zLocale"],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"types/chartType/scatter/zScatter.js","sources":["webpack://@visactor/vseed/./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 zDimensions,\n zEncoding,\n zLabel,\n zLegend,\n zLinearRegressionLine,\n zLogisticRegressionLine,\n zLowessRegressionLine,\n zMeasureTree,\n zPointStyle,\n zPolynomialRegressionLine,\n zScatterMeasures,\n zTheme,\n zTooltip,\n zXLinearAxis,\n zYLinearAxis,\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: zMeasureTree.nullish(),\n scatterMeasures: zScatterMeasures.nullish(),\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 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).or(z.boolean()).nullish(),\n lowessRegressionLine: z.array(zLowessRegressionLine).or(zLowessRegressionLine).or(z.boolean()).nullish(),\n polynomialRegressionLine: z.array(zPolynomialRegressionLine).or(zPolynomialRegressionLine).or(z.boolean()).nullish(),\n logisticRegressionLine: z.array(zLogisticRegressionLine).or(zLogisticRegressionLine).or(z.boolean()).nullish(),\n locale: zLocale.nullish(),\n})\n"],"names":["zScatter","z","zDataset","zEncoding","zDimensions","zMeasureTree","zScatterMeasures","zBackgroundColor","zColor","zLabel","zLegend","zTooltip","zXLinearAxis","zYLinearAxis","zCrosshairLine","zTheme","zPointStyle","zAnnotationPoint","zAnnotationVerticalLine","zAnnotationHorizontalLine","zAnnotationArea","zLinearRegressionLine","zLowessRegressionLine","zPolynomialRegressionLine","zLogisticRegressionLine","zLocale"],"mappings":";;;AA4BO,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,aAAa,OAAO;IAC9B,iBAAiBC,iBAAiB,OAAO;IACzC,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,aAAa,OAAO;IAC3B,OAAOC,aAAa,OAAO;IAC3B,eAAeC,eAAe,OAAO;IACrC,OAAOC,OAAO,OAAO;IACrB,YAAYd,EAAE,KAAK,CAACe,aAAa,EAAE,CAACA,aAAa,OAAO;IACxD,iBAAiBf,EAAE,KAAK,CAACgB,kBAAkB,EAAE,CAACA,kBAAkB,OAAO;IACvE,wBAAwBhB,EAAE,KAAK,CAACiB,yBAAyB,EAAE,CAACA,yBAAyB,OAAO;IAC5F,0BAA0BjB,EAAE,KAAK,CAACkB,2BAA2B,EAAE,CAACA,2BAA2B,OAAO;IAClG,gBAAgBlB,EAAE,KAAK,CAACmB,iBAAiB,EAAE,CAACA,iBAAiB,OAAO;IACpE,sBAAsBnB,EAAE,KAAK,CAACoB,uBAAuB,EAAE,CAACA,uBAAuB,EAAE,CAACpB,EAAE,OAAO,IAAI,OAAO;IACtG,sBAAsBA,EAAE,KAAK,CAACqB,uBAAuB,EAAE,CAACA,uBAAuB,EAAE,CAACrB,EAAE,OAAO,IAAI,OAAO;IACtG,0BAA0BA,EAAE,KAAK,CAACsB,2BAA2B,EAAE,CAACA,2BAA2B,EAAE,CAACtB,EAAE,OAAO,IAAI,OAAO;IAClH,wBAAwBA,EAAE,KAAK,CAACuB,yBAAyB,EAAE,CAACA,yBAAyB,EAAE,CAACvB,EAAE,OAAO,IAAI,OAAO;IAC5G,QAAQwB,QAAQ,OAAO;AACzB"}
|
|
@@ -108,4 +108,17 @@ export type AnnotationHorizontalLine = {
|
|
|
108
108
|
* @example 'solid'
|
|
109
109
|
*/
|
|
110
110
|
lineStyle?: 'solid' | 'dashed' | 'dotted';
|
|
111
|
+
/**
|
|
112
|
+
* 是否开启将主线分隔成两段的功能
|
|
113
|
+
*/
|
|
114
|
+
splitLine?: boolean | {
|
|
115
|
+
/**
|
|
116
|
+
* 大于标注值的部分,对应的主色
|
|
117
|
+
*/
|
|
118
|
+
positiveColor?: string;
|
|
119
|
+
/**
|
|
120
|
+
* 小于标注值的部分,对应的主色
|
|
121
|
+
*/
|
|
122
|
+
negativeColor?: string;
|
|
123
|
+
};
|
|
111
124
|
};
|
|
@@ -238,6 +238,9 @@ export declare const zAreaConfig: z.ZodObject<{
|
|
|
238
238
|
frameCornerRadius: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
239
239
|
minChartWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
240
240
|
minChartHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
241
|
+
titleFontColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
242
|
+
titleFontSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
243
|
+
titleFontWeight: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
241
244
|
}, z.core.$strip>>>;
|
|
242
245
|
annotation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
243
246
|
annotationPoint: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
@@ -564,6 +567,9 @@ export declare const zAreaPercentConfig: z.ZodObject<{
|
|
|
564
567
|
frameCornerRadius: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
565
568
|
minChartWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
566
569
|
minChartHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
570
|
+
titleFontColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
571
|
+
titleFontSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
572
|
+
titleFontWeight: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
567
573
|
}, z.core.$strip>>>;
|
|
568
574
|
annotation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
569
575
|
annotationPoint: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
@@ -238,6 +238,9 @@ export declare const zBarConfig: z.ZodObject<{
|
|
|
238
238
|
frameCornerRadius: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
239
239
|
minChartWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
240
240
|
minChartHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
241
|
+
titleFontColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
242
|
+
titleFontSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
243
|
+
titleFontWeight: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
241
244
|
}, z.core.$strip>>>;
|
|
242
245
|
annotation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
243
246
|
annotationPoint: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
@@ -564,6 +567,9 @@ export declare const zBarParallelConfig: z.ZodObject<{
|
|
|
564
567
|
frameCornerRadius: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
565
568
|
minChartWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
566
569
|
minChartHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
570
|
+
titleFontColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
571
|
+
titleFontSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
572
|
+
titleFontWeight: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
567
573
|
}, z.core.$strip>>>;
|
|
568
574
|
annotation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
569
575
|
annotationPoint: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
@@ -890,6 +896,9 @@ export declare const zBarPercentConfig: z.ZodObject<{
|
|
|
890
896
|
frameCornerRadius: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
891
897
|
minChartWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
892
898
|
minChartHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
899
|
+
titleFontColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
900
|
+
titleFontSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
901
|
+
titleFontWeight: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
893
902
|
}, z.core.$strip>>>;
|
|
894
903
|
annotation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
895
904
|
annotationPoint: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
@@ -237,6 +237,9 @@ export declare const zBoxplotConfig: z.ZodObject<{
|
|
|
237
237
|
frameCornerRadius: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
238
238
|
minChartWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
239
239
|
minChartHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
240
|
+
titleFontColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
241
|
+
titleFontSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
242
|
+
titleFontWeight: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
240
243
|
}, z.core.$strip>>>;
|
|
241
244
|
annotation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
242
245
|
annotationPoint: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types/properties/config/color/color.js","sources":["webpack://@visactor/vseed/./src/types/properties/config/color/color.ts"],"sourcesContent":["import { z } from 'zod'\n\nexport const zColor = z.object({\n colorScheme: z.array(z.string()).nullish(),\n linearColorScheme: z.array(z.string()).nullish(),\n colorMapping: z.record(z.string(), z.string()).nullish(),\n})\n\nexport const zLinearColor = z.object({\n linearColorScheme: z.array(z.string()).nullish(),\n})\n\nexport type Color = {\n /**\n * @description 离散颜色配色方案, 颜色配色方案用于定义图表中不同元素的颜色\n * @example ['#FFCDD2,#F8BBD0,#E1BEE7,#D1C4E9,#C5CAE9,#BBDEFB,#B3E5FC,#B2EBF2,#B2DFDB,#C8E6C9,#DCEDC8,#F0F4C3,#FFF9C4,#FFECB3,#FFE0B2']\n */\n colorScheme?: string[]\n /**\n * @description 线性渐变颜色配色方案, 线性渐变颜色配色方案用于定义图表中不同元素的颜色\n * @example ['#FFCDD2, #F8BBD0]\n */\n linearColorScheme?: string[]\n /**\n * @description 颜色映射, 颜色映射用于将数据值映射到具体的颜色\n * @example\n * {\n * 'profit': 'red',\n * 'sales': 'blue',\n * }\n */\n colorMapping?: Record<string, string>\n}\n"],"names":["zColor","z","zLinearColor"],"mappings":";AAEO,MAAMA,SAASC,EAAE,MAAM,CAAC;IAC7B,aAAaA,EAAE,KAAK,CAACA,EAAE,MAAM,IAAI,OAAO;IACxC,mBAAmBA,EAAE,KAAK,CAACA,EAAE,MAAM,IAAI,OAAO;IAC9C,cAAcA,EAAE,MAAM,CAACA,EAAE,MAAM,IAAIA,EAAE,MAAM,IAAI,OAAO;AACxD;AAEO,MAAMC,eAAeD,EAAE,MAAM,CAAC;IACnC,mBAAmBA,EAAE,KAAK,CAACA,EAAE,MAAM,IAAI,OAAO;AAChD"}
|
|
1
|
+
{"version":3,"file":"types/properties/config/color/color.js","sources":["webpack://@visactor/vseed/./src/types/properties/config/color/color.ts"],"sourcesContent":["import { z } from 'zod'\n\nexport const zColor = z.object({\n colorScheme: z.array(z.string()).nullish(),\n linearColorScheme: z.array(z.string()).nullish(),\n colorMapping: z.record(z.string(), z.string()).nullish(),\n})\n\nexport const zLinearColor = z.object({\n linearColorScheme: z.array(z.string()).nullish(),\n})\n\nexport type Color = {\n /**\n * @description 离散颜色配色方案, 颜色配色方案用于定义图表中不同元素的颜色\n * @example ['#FFCDD2,#F8BBD0,#E1BEE7,#D1C4E9,#C5CAE9,#BBDEFB,#B3E5FC,#B2EBF2,#B2DFDB,#C8E6C9,#DCEDC8,#F0F4C3,#FFF9C4,#FFECB3,#FFE0B2']\n */\n colorScheme?: string[]\n /**\n * @description 线性渐变颜色配色方案, 线性渐变颜色配色方案用于定义图表中不同元素的颜色\n * @example ['#FFCDD2, #F8BBD0]\n */\n linearColorScheme?: string[]\n /**\n * @description 颜色映射, 颜色映射用于将数据值映射到具体的颜色\n * @example\n * {\n * 'profit': 'red',\n * 'sales': 'blue',\n * }\n */\n colorMapping?: Record<string, string>\n /**\n * @description 正负颜色配置, 用于定义图表中正值的颜色\n */\n positiveColor?: string\n /**\n * @description 正负颜色配置, 用于定义图表中负值的颜色\n */\n negativeColor?: string\n}\n"],"names":["zColor","z","zLinearColor"],"mappings":";AAEO,MAAMA,SAASC,EAAE,MAAM,CAAC;IAC7B,aAAaA,EAAE,KAAK,CAACA,EAAE,MAAM,IAAI,OAAO;IACxC,mBAAmBA,EAAE,KAAK,CAACA,EAAE,MAAM,IAAI,OAAO;IAC9C,cAAcA,EAAE,MAAM,CAACA,EAAE,MAAM,IAAIA,EAAE,MAAM,IAAI,OAAO;AACxD;AAEO,MAAMC,eAAeD,EAAE,MAAM,CAAC;IACnC,mBAAmBA,EAAE,KAAK,CAACA,EAAE,MAAM,IAAI,OAAO;AAChD"}
|