@visactor/vseed 0.1.40 → 0.1.41
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 +2788 -286
- 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/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/column.js +5 -3
- package/dist/esm/pipeline/spec/chart/pipeline/column.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/histogram.js +5 -3
- package/dist/esm/pipeline/spec/chart/pipeline/histogram.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/scatter.js +9 -3
- package/dist/esm/pipeline/spec/chart/pipeline/scatter.js.map +1 -1
- 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/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/dark/dark.js +6 -4
- package/dist/esm/theme/dark/dark.js.map +1 -1
- package/dist/esm/theme/light/light.js +6 -4
- package/dist/esm/theme/light/light.js.map +1 -1
- package/dist/esm/types/advancedVSeed.d.ts +908 -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/config/column.d.ts +132 -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 +389 -9
- package/dist/esm/types/properties/config/histogram.d.ts +129 -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/scatter.d.ts +130 -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/kdeRegressionLine.js +0 -0
- package/dist/esm/types/properties/regressionLine/linearRegressionLine.d.ts +53 -0
- package/dist/esm/types/properties/regressionLine/linearRegressionLine.js +0 -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 +778 -18
- package/dist/esm/types/zVseed.d.ts +138 -4
- package/dist/umd/index.js +1144 -131
- 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/types/properties/regressionLine/{histogramRegressionLine.js → ecdfRegressionLine.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"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const zColumnParallelConfig: z.ZodObject<{
|
|
3
3
|
backgroundColor: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodString>>>>>;
|
|
4
4
|
label: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
5
5
|
enable: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
@@ -327,7 +327,7 @@ export declare const zColumnConfig: z.ZodObject<{
|
|
|
327
327
|
}, z.core.$strip>>>;
|
|
328
328
|
}, z.core.$strip>>>;
|
|
329
329
|
}, z.core.$strip>;
|
|
330
|
-
export declare const
|
|
330
|
+
export declare const zColumnConfig: z.ZodObject<{
|
|
331
331
|
backgroundColor: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodString>>>>>;
|
|
332
332
|
label: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
333
333
|
enable: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
@@ -654,6 +654,136 @@ export declare const zColumnParallelConfig: z.ZodObject<{
|
|
|
654
654
|
outerPadding: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodNumber>>>>;
|
|
655
655
|
}, z.core.$strip>>>;
|
|
656
656
|
}, z.core.$strip>>>;
|
|
657
|
+
regressionLine: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
658
|
+
ecdfRegressionLine: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
|
|
659
|
+
color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
660
|
+
lineWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
661
|
+
lineDash: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
|
|
662
|
+
text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
663
|
+
textColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
664
|
+
textFontSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
665
|
+
textFontWeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
666
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
667
|
+
color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
668
|
+
lineWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
669
|
+
lineDash: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
|
|
670
|
+
text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
671
|
+
textColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
672
|
+
textFontSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
673
|
+
textFontWeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
674
|
+
}, z.core.$strip>>]>>>;
|
|
675
|
+
kdeRegressionLine: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
|
|
676
|
+
color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
677
|
+
lineWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
678
|
+
lineDash: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
|
|
679
|
+
text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
680
|
+
textColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
681
|
+
textFontSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
682
|
+
textFontWeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
683
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
684
|
+
color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
685
|
+
lineWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
686
|
+
lineDash: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
|
|
687
|
+
text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
688
|
+
textColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
689
|
+
textFontSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
690
|
+
textFontWeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
691
|
+
}, z.core.$strip>>]>>>;
|
|
692
|
+
linearRegressionLine: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
|
|
693
|
+
color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
694
|
+
lineWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
695
|
+
lineDash: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
|
|
696
|
+
text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
697
|
+
textColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
698
|
+
textFontSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
699
|
+
textFontWeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
700
|
+
confidenceIntervalVisible: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
701
|
+
confidenceIntervalColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
702
|
+
confidenceIntervalOpacity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
703
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
704
|
+
color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
705
|
+
lineWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
706
|
+
lineDash: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
|
|
707
|
+
text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
708
|
+
textColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
709
|
+
textFontSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
710
|
+
textFontWeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
711
|
+
confidenceIntervalVisible: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
712
|
+
confidenceIntervalColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
713
|
+
confidenceIntervalOpacity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
714
|
+
}, z.core.$strip>>]>>>;
|
|
715
|
+
lowessRegressionLine: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
|
|
716
|
+
color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
717
|
+
lineWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
718
|
+
lineDash: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
|
|
719
|
+
text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
720
|
+
textColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
721
|
+
textFontSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
722
|
+
textFontWeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
723
|
+
confidenceIntervalVisible: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
724
|
+
confidenceIntervalColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
725
|
+
confidenceIntervalOpacity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
726
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
727
|
+
color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
728
|
+
lineWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
729
|
+
lineDash: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
|
|
730
|
+
text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
731
|
+
textColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
732
|
+
textFontSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
733
|
+
textFontWeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
734
|
+
confidenceIntervalVisible: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
735
|
+
confidenceIntervalColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
736
|
+
confidenceIntervalOpacity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
737
|
+
}, z.core.$strip>>]>>>;
|
|
738
|
+
polynomialRegressionLine: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
|
|
739
|
+
color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
740
|
+
lineWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
741
|
+
lineDash: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
|
|
742
|
+
text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
743
|
+
textColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
744
|
+
textFontSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
745
|
+
textFontWeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
746
|
+
confidenceIntervalVisible: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
747
|
+
confidenceIntervalColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
748
|
+
confidenceIntervalOpacity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
749
|
+
degree: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
750
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
751
|
+
color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
752
|
+
lineWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
753
|
+
lineDash: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
|
|
754
|
+
text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
755
|
+
textColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
756
|
+
textFontSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
757
|
+
textFontWeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
758
|
+
confidenceIntervalVisible: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
759
|
+
confidenceIntervalColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
760
|
+
confidenceIntervalOpacity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
761
|
+
degree: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
762
|
+
}, z.core.$strip>>]>>>;
|
|
763
|
+
logisticRegressionLine: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
|
|
764
|
+
color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
765
|
+
lineWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
766
|
+
lineDash: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
|
|
767
|
+
text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
768
|
+
textColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
769
|
+
textFontSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
770
|
+
textFontWeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
771
|
+
confidenceIntervalVisible: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
772
|
+
confidenceIntervalColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
773
|
+
confidenceIntervalOpacity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
774
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
775
|
+
color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
776
|
+
lineWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
777
|
+
lineDash: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
|
|
778
|
+
text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
779
|
+
textColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
780
|
+
textFontSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
781
|
+
textFontWeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
782
|
+
confidenceIntervalVisible: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
783
|
+
confidenceIntervalColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
784
|
+
confidenceIntervalOpacity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
785
|
+
}, z.core.$strip>>]>>>;
|
|
786
|
+
}, z.core.$strip>>>;
|
|
657
787
|
}, z.core.$strip>;
|
|
658
788
|
export declare const zColumnPercentConfig: z.ZodObject<{
|
|
659
789
|
backgroundColor: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodString>>>>>;
|
|
@@ -10,7 +10,8 @@ import { zTooltip } from "./tooltip/tooltip.js";
|
|
|
10
10
|
import { zAnnotationConfig } from "./annotation/zAnnotaion.js";
|
|
11
11
|
import { zPivotChartGridConfig } from "./pivotGrid/index.js";
|
|
12
12
|
import { zBarGapInGroup, zBarMaxWidth } from "./barWidth/index.js";
|
|
13
|
-
|
|
13
|
+
import { zRegressionLine } from "../regressionLine/index.js";
|
|
14
|
+
const zColumnParallelConfig = z.object({
|
|
14
15
|
backgroundColor: zBackgroundColor.nullish(),
|
|
15
16
|
label: zLabel.nullish(),
|
|
16
17
|
color: zColor.nullish(),
|
|
@@ -25,8 +26,10 @@ const zColumnConfig = z.object({
|
|
|
25
26
|
pivotGrid: zPivotChartGridConfig.nullish(),
|
|
26
27
|
annotation: zAnnotationConfig.nullish()
|
|
27
28
|
});
|
|
28
|
-
const
|
|
29
|
-
|
|
29
|
+
const zColumnConfig = zColumnParallelConfig.extend({
|
|
30
|
+
regressionLine: zRegressionLine.nullish()
|
|
31
|
+
});
|
|
32
|
+
const zColumnPercentConfig = zColumnParallelConfig.extend({});
|
|
30
33
|
export { zColumnConfig, zColumnParallelConfig, zColumnPercentConfig };
|
|
31
34
|
|
|
32
35
|
//# sourceMappingURL=column.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types/properties/config/column.js","sources":["webpack://@visactor/vseed/./src/types/properties/config/column.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zXBandAxis, zYLinearAxis } from './axes'\nimport { zCrosshairRect } from './crosshair'\nimport { zStackCornerRadius } from './stackCornerRadius/stackCornerRadius'\nimport { zBackgroundColor } from './backgroundColor/backgroundColor'\nimport { zColor } from './color/color'\nimport { zLabel } from './label'\nimport { zLegend } from './legend/legend'\nimport { zTooltip } from './tooltip/tooltip'\nimport { zAnnotationConfig } from './annotation/zAnnotaion'\nimport { zPivotChartGridConfig } from './pivotGrid'\nimport { zBarGapInGroup, zBarMaxWidth } from './barWidth'\n\nexport const
|
|
1
|
+
{"version":3,"file":"types/properties/config/column.js","sources":["webpack://@visactor/vseed/./src/types/properties/config/column.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zXBandAxis, zYLinearAxis } from './axes'\nimport { zCrosshairRect } from './crosshair'\nimport { zStackCornerRadius } from './stackCornerRadius/stackCornerRadius'\nimport { zBackgroundColor } from './backgroundColor/backgroundColor'\nimport { zColor } from './color/color'\nimport { zLabel } from './label'\nimport { zLegend } from './legend/legend'\nimport { zTooltip } from './tooltip/tooltip'\nimport { zAnnotationConfig } from './annotation/zAnnotaion'\nimport { zPivotChartGridConfig } from './pivotGrid'\nimport { zBarGapInGroup, zBarMaxWidth } from './barWidth'\nimport { zRegressionLine } from '../regressionLine'\n\nexport const zColumnParallelConfig = z.object({\n backgroundColor: zBackgroundColor.nullish(),\n label: zLabel.nullish(),\n color: zColor.nullish(),\n tooltip: zTooltip.nullish(),\n legend: zLegend.nullish(),\n\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 pivotGrid: zPivotChartGridConfig.nullish(),\n annotation: zAnnotationConfig.nullish(),\n})\nexport const zColumnConfig = zColumnParallelConfig.extend({\n regressionLine: zRegressionLine.nullish(),\n})\nexport const zColumnPercentConfig = zColumnParallelConfig.extend({})\n\nexport type ColumnConfig = z.infer<typeof zColumnConfig>\nexport type ColumnParallelConfig = z.infer<typeof zColumnParallelConfig>\nexport type ColumnPercentConfig = z.infer<typeof zColumnPercentConfig>\n"],"names":["zColumnParallelConfig","z","zBackgroundColor","zLabel","zColor","zTooltip","zLegend","zXBandAxis","zYLinearAxis","zCrosshairRect","zStackCornerRadius","zBarMaxWidth","zBarGapInGroup","zPivotChartGridConfig","zAnnotationConfig","zColumnConfig","zRegressionLine","zColumnPercentConfig"],"mappings":";;;;;;;;;;;;;AAcO,MAAMA,wBAAwBC,EAAE,MAAM,CAAC;IAC5C,iBAAiBC,iBAAiB,OAAO;IACzC,OAAOC,OAAO,OAAO;IACrB,OAAOC,OAAO,OAAO;IACrB,SAASC,SAAS,OAAO;IACzB,QAAQC,QAAQ,OAAO;IAEvB,OAAOC,WAAW,OAAO;IACzB,OAAOC,aAAa,OAAO;IAC3B,eAAeC,eAAe,OAAO;IACrC,mBAAmBC,mBAAmB,OAAO;IAC7C,aAAaC,aAAa,OAAO;IACjC,eAAeC,eAAe,OAAO;IACrC,WAAWC,sBAAsB,OAAO;IACxC,YAAYC,kBAAkB,OAAO;AACvC;AACO,MAAMC,gBAAgBf,sBAAsB,MAAM,CAAC;IACxD,gBAAgBgB,gBAAgB,OAAO;AACzC;AACO,MAAMC,uBAAuBjB,sBAAsB,MAAM,CAAC,CAAC"}
|