@visactor/vseed 0.1.49 → 0.1.51
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/buildAdvanced.js +1 -1
- package/dist/esm/builder/builder/buildAdvanced.js.map +1 -1
- package/dist/esm/builder/builder/buildSpec.js +1 -1
- package/dist/esm/builder/builder/buildSpec.js.map +1 -1
- package/dist/esm/builder/builder/builder.d.ts +483 -1
- package/dist/esm/builder/builder/builder.js +5 -1
- package/dist/esm/builder/builder/builder.js.map +1 -1
- package/dist/esm/dataSelector/selector.d.ts +5 -0
- package/dist/esm/dataSelector/selector.js +92 -50
- package/dist/esm/dataSelector/selector.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipes/config/boxplot.js +2 -1
- package/dist/esm/pipeline/advanced/chart/pipes/config/boxplot.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipes/config/column.js +2 -1
- package/dist/esm/pipeline/advanced/chart/pipes/config/column.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipes/config/dualAxis.js +2 -1
- package/dist/esm/pipeline/advanced/chart/pipes/config/dualAxis.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipes/config/histogram.js +2 -1
- package/dist/esm/pipeline/advanced/chart/pipes/config/histogram.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipes/config/line.js +2 -1
- package/dist/esm/pipeline/advanced/chart/pipes/config/line.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipes/config/scatter.js +2 -1
- package/dist/esm/pipeline/advanced/chart/pipes/config/scatter.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipes/reshape/reshapeWithEncoding.js +1 -1
- package/dist/esm/pipeline/advanced/chart/pipes/reshape/reshapeWithEncoding.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/area.js +3 -2
- 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 +3 -2
- package/dist/esm/pipeline/spec/chart/pipeline/bar.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/barParallel.js +3 -2
- package/dist/esm/pipeline/spec/chart/pipeline/barParallel.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/barPercent.js +3 -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 +3 -2
- package/dist/esm/pipeline/spec/chart/pipeline/column.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/columnParallel.js +3 -2
- package/dist/esm/pipeline/spec/chart/pipeline/columnParallel.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/columnPercent.js +3 -2
- package/dist/esm/pipeline/spec/chart/pipeline/columnPercent.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/dualAxis.js +5 -4
- package/dist/esm/pipeline/spec/chart/pipeline/dualAxis.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/histogram.js +3 -2
- package/dist/esm/pipeline/spec/chart/pipeline/histogram.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/line.js +3 -2
- package/dist/esm/pipeline/spec/chart/pipeline/line.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/scatter.js +3 -2
- package/dist/esm/pipeline/spec/chart/pipeline/scatter.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/annotation/annotationPointOfDualAxis.d.ts +2 -0
- package/dist/esm/pipeline/spec/chart/pipes/annotation/annotationPointOfDualAxis.js +94 -0
- package/dist/esm/pipeline/spec/chart/pipes/annotation/annotationPointOfDualAxis.js.map +1 -0
- 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/utils.d.ts +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/annotation/utils.js +2 -1
- package/dist/esm/pipeline/spec/chart/pipes/annotation/utils.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/axes/xBand.js +12 -1
- package/dist/esm/pipeline/spec/chart/pipes/axes/xBand.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/axes/yBand.js +12 -1
- package/dist/esm/pipeline/spec/chart/pipes/axes/yBand.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/crosshair/horizontalCrosshairLine.js +3 -0
- package/dist/esm/pipeline/spec/chart/pipes/crosshair/horizontalCrosshairLine.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/crosshair/horizontalCrosshairRect.js +3 -0
- package/dist/esm/pipeline/spec/chart/pipes/crosshair/horizontalCrosshairRect.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/crosshair/verticalCrosshairLine.js +3 -0
- package/dist/esm/pipeline/spec/chart/pipes/crosshair/verticalCrosshairLine.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/crosshair/verticalCrosshairRect.js +3 -0
- package/dist/esm/pipeline/spec/chart/pipes/crosshair/verticalCrosshairRect.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/pivotChart/dimensionLinkage.d.ts +2 -0
- package/dist/esm/pipeline/spec/chart/pipes/pivotChart/dimensionLinkage.js +49 -0
- package/dist/esm/pipeline/spec/chart/pipes/pivotChart/dimensionLinkage.js.map +1 -0
- package/dist/esm/pipeline/spec/chart/pipes/pivotChart/index.d.ts +1 -0
- package/dist/esm/pipeline/spec/chart/pipes/pivotChart/index.js +2 -1
- package/dist/esm/pipeline/spec/chart/pipes/pivotChart/pivotGridStyle.js +15 -0
- package/dist/esm/pipeline/spec/chart/pipes/pivotChart/pivotGridStyle.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/pivotChart/pivotIndicators.js +1 -0
- package/dist/esm/pipeline/spec/chart/pipes/pivotChart/pivotIndicators.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/regressionLine/columnRegressionLine.js +13 -9
- package/dist/esm/pipeline/spec/chart/pipes/regressionLine/columnRegressionLine.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/regressionLine/ecdfRegressionLine.js +8 -5
- package/dist/esm/pipeline/spec/chart/pipes/regressionLine/ecdfRegressionLine.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/regressionLine/kdeRegressionLine.js +8 -5
- package/dist/esm/pipeline/spec/chart/pipes/regressionLine/kdeRegressionLine.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/regressionLine/linearRegressionLine.js +61 -29
- package/dist/esm/pipeline/spec/chart/pipes/regressionLine/linearRegressionLine.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltipBoxplot.js +8 -8
- package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltipBoxplot.js.map +1 -1
- package/dist/esm/types/advancedVSeed.d.ts +175 -0
- package/dist/esm/types/advancedVSeed.js +1 -0
- package/dist/esm/types/advancedVSeed.js.map +1 -1
- package/dist/esm/types/chartType/area/area.d.ts +6 -1
- package/dist/esm/types/chartType/area/zArea.d.ts +5 -0
- package/dist/esm/types/chartType/area/zArea.js +2 -1
- package/dist/esm/types/chartType/area/zArea.js.map +1 -1
- package/dist/esm/types/chartType/areaPercent/areaPercent.d.ts +6 -1
- package/dist/esm/types/chartType/areaPercent/zAreaPercent.d.ts +5 -0
- package/dist/esm/types/chartType/areaPercent/zAreaPercent.js +2 -1
- package/dist/esm/types/chartType/areaPercent/zAreaPercent.js.map +1 -1
- package/dist/esm/types/chartType/bar/bar.d.ts +6 -1
- package/dist/esm/types/chartType/bar/zBar.d.ts +5 -0
- package/dist/esm/types/chartType/bar/zBar.js +2 -1
- package/dist/esm/types/chartType/bar/zBar.js.map +1 -1
- package/dist/esm/types/chartType/barParallel/barParallel.d.ts +6 -1
- package/dist/esm/types/chartType/barParallel/zBarParallel.d.ts +5 -0
- package/dist/esm/types/chartType/barParallel/zBarParallel.js +2 -1
- package/dist/esm/types/chartType/barParallel/zBarParallel.js.map +1 -1
- package/dist/esm/types/chartType/barPercent/barPercent.d.ts +6 -1
- package/dist/esm/types/chartType/barPercent/zBarPercent.d.ts +5 -0
- package/dist/esm/types/chartType/barPercent/zBarPercent.js +2 -1
- package/dist/esm/types/chartType/barPercent/zBarPercent.js.map +1 -1
- package/dist/esm/types/chartType/boxplot/boxplot.d.ts +6 -1
- package/dist/esm/types/chartType/boxplot/zBoxplot.d.ts +5 -0
- package/dist/esm/types/chartType/boxplot/zBoxplot.js +2 -1
- package/dist/esm/types/chartType/boxplot/zBoxplot.js.map +1 -1
- package/dist/esm/types/chartType/column/column.d.ts +6 -1
- package/dist/esm/types/chartType/column/zColumn.d.ts +5 -0
- package/dist/esm/types/chartType/column/zColumn.js +2 -1
- package/dist/esm/types/chartType/column/zColumn.js.map +1 -1
- package/dist/esm/types/chartType/columnParallel/columnParallel.d.ts +6 -1
- package/dist/esm/types/chartType/columnParallel/zColumnParallel.d.ts +5 -0
- package/dist/esm/types/chartType/columnParallel/zColumnParallel.js +2 -1
- package/dist/esm/types/chartType/columnParallel/zColumnParallel.js.map +1 -1
- package/dist/esm/types/chartType/columnPercent/columnPercent.d.ts +6 -1
- package/dist/esm/types/chartType/columnPercent/zColumnPercent.d.ts +5 -0
- package/dist/esm/types/chartType/columnPercent/zColumnPercent.js +2 -1
- package/dist/esm/types/chartType/columnPercent/zColumnPercent.js.map +1 -1
- package/dist/esm/types/chartType/dualAxis/dualAxis.d.ts +6 -1
- package/dist/esm/types/chartType/dualAxis/zDualAxis.d.ts +5 -0
- package/dist/esm/types/chartType/dualAxis/zDualAxis.js +2 -1
- package/dist/esm/types/chartType/dualAxis/zDualAxis.js.map +1 -1
- package/dist/esm/types/chartType/histogram/histogram.d.ts +6 -1
- package/dist/esm/types/chartType/histogram/zHistogram.d.ts +5 -0
- package/dist/esm/types/chartType/histogram/zHistogram.js +2 -1
- package/dist/esm/types/chartType/histogram/zHistogram.js.map +1 -1
- package/dist/esm/types/chartType/line/line.d.ts +6 -1
- package/dist/esm/types/chartType/line/zLine.d.ts +5 -0
- package/dist/esm/types/chartType/line/zLine.js +2 -1
- package/dist/esm/types/chartType/line/zLine.js.map +1 -1
- package/dist/esm/types/chartType/scatter/scatter.d.ts +6 -1
- package/dist/esm/types/chartType/scatter/zScatter.d.ts +5 -0
- package/dist/esm/types/chartType/scatter/zScatter.js +2 -1
- package/dist/esm/types/chartType/scatter/zScatter.js.map +1 -1
- package/dist/esm/types/index.d.ts +1 -0
- package/dist/esm/types/index.js +1 -0
- package/dist/esm/types/properties/config/area.d.ts +10 -0
- package/dist/esm/types/properties/config/area.js +3 -1
- package/dist/esm/types/properties/config/area.js.map +1 -1
- package/dist/esm/types/properties/config/bar.d.ts +15 -0
- package/dist/esm/types/properties/config/bar.js +3 -1
- package/dist/esm/types/properties/config/bar.js.map +1 -1
- package/dist/esm/types/properties/config/boxplot.d.ts +5 -0
- package/dist/esm/types/properties/config/boxplot.js +3 -1
- package/dist/esm/types/properties/config/boxplot.js.map +1 -1
- package/dist/esm/types/properties/config/column.d.ts +15 -0
- package/dist/esm/types/properties/config/column.js +3 -1
- package/dist/esm/types/properties/config/column.js.map +1 -1
- package/dist/esm/types/properties/config/config.d.ts +65 -0
- package/dist/esm/types/properties/config/dimensionLinkage/dimensionLinkage.d.ts +23 -0
- package/dist/esm/types/properties/config/dimensionLinkage/dimensionLinkage.js +9 -0
- package/dist/esm/types/properties/config/dimensionLinkage/dimensionLinkage.js.map +1 -0
- package/dist/esm/types/properties/config/dimensionLinkage/index.d.ts +1 -0
- package/dist/esm/types/properties/config/dimensionLinkage/index.js +1 -0
- package/dist/esm/types/properties/config/dualAxis.d.ts +5 -0
- package/dist/esm/types/properties/config/dualAxis.js +3 -1
- package/dist/esm/types/properties/config/dualAxis.js.map +1 -1
- package/dist/esm/types/properties/config/histogram.d.ts +5 -0
- package/dist/esm/types/properties/config/histogram.js +3 -1
- package/dist/esm/types/properties/config/histogram.js.map +1 -1
- package/dist/esm/types/properties/config/index.d.ts +1 -0
- package/dist/esm/types/properties/config/index.js +1 -0
- package/dist/esm/types/properties/config/label/pieLabel.d.ts +2 -2
- package/dist/esm/types/properties/config/line.d.ts +5 -0
- package/dist/esm/types/properties/config/line.js +3 -1
- package/dist/esm/types/properties/config/line.js.map +1 -1
- package/dist/esm/types/properties/config/scatter.d.ts +5 -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/ecdfRegressionLine.d.ts +2 -2
- package/dist/esm/types/properties/regressionLine/kdeRegressionLine.d.ts +2 -2
- package/dist/esm/types/properties/regressionLine/linearRegressionLine.d.ts +2 -2
- package/dist/esm/types/properties/regressionLine/logisticRegressionLine.d.ts +2 -2
- package/dist/esm/types/properties/regressionLine/lowessRegressionLine.d.ts +2 -2
- package/dist/esm/types/properties/regressionLine/polynomialRegressionLine.d.ts +2 -2
- package/dist/esm/types/properties/theme/customTheme.d.ts +130 -0
- package/dist/esm/types/zVseed.d.ts +65 -0
- package/dist/umd/index.js +540 -205
- package/dist/umd/index.js.map +1 -1
- package/package.json +5 -5
|
@@ -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, LinearRegressionLine, LowessRegressionLine, PolynomialRegressionLine, LogisticRegressionLine } 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, DimensionLinkage } from '../../properties';
|
|
3
3
|
/**
|
|
4
4
|
* @description 散点图,适用于展示数据的分布情况,通过点的位置表示数据的数值
|
|
5
5
|
* 适用场景:
|
|
@@ -239,6 +239,11 @@ export interface Scatter {
|
|
|
239
239
|
* @description 逻辑回归线配置, 包括逻辑回归线的样式等.
|
|
240
240
|
*/
|
|
241
241
|
logisticRegressionLine?: boolean | LogisticRegressionLine | LogisticRegressionLine[];
|
|
242
|
+
/**
|
|
243
|
+
* 当图表开启透视功能或者指标组合的是否,是否开启维度联动功能
|
|
244
|
+
* 当hover 到某个维度值时,联动高亮其他图表中相同维度值的数据
|
|
245
|
+
*/
|
|
246
|
+
dimensionLinkage?: DimensionLinkage;
|
|
242
247
|
/**
|
|
243
248
|
* 语言
|
|
244
249
|
* @description 图表语言配置, 支持'zh-CN'与'en-US'两种语言, 另外可以调用 intl.setLocale('zh-CN') 方法设置语言
|
|
@@ -1860,6 +1860,11 @@ export declare const zScatter: z.ZodObject<{
|
|
|
1860
1860
|
confidenceIntervalColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1861
1861
|
confidenceIntervalOpacity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1862
1862
|
}, z.core.$strip>]>, z.ZodBoolean]>>>;
|
|
1863
|
+
dimensionLinkage: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1864
|
+
enable: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
1865
|
+
showTooltip: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
1866
|
+
showLabel: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
1867
|
+
}, z.core.$strip>>>;
|
|
1863
1868
|
locale: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodEnum<{
|
|
1864
1869
|
"zh-CN": "zh-CN";
|
|
1865
1870
|
"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, zLinearRegressionLine, zLogisticRegressionLine, zLowessRegressionLine, zMeasureTree, zPointStyle, zPolynomialRegressionLine, zScatterMeasures, zTheme, zTooltip, zXLinearAxis, zYLinearAxis } from "../../properties/index.js";
|
|
3
|
+
import { zAnnotationArea, zAnnotationHorizontalLine, zAnnotationPoint, zAnnotationVerticalLine, zBackgroundColor, zColor, zCrosshairLine, zDataset, zDimensionLinkage, 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(),
|
|
@@ -28,6 +28,7 @@ const zScatter = z.object({
|
|
|
28
28
|
lowessRegressionLine: z.array(zLowessRegressionLine).or(zLowessRegressionLine).or(z.boolean()).nullish(),
|
|
29
29
|
polynomialRegressionLine: z.array(zPolynomialRegressionLine).or(zPolynomialRegressionLine).or(z.boolean()).nullish(),
|
|
30
30
|
logisticRegressionLine: z.array(zLogisticRegressionLine).or(zLogisticRegressionLine).or(z.boolean()).nullish(),
|
|
31
|
+
dimensionLinkage: zDimensionLinkage.nullish(),
|
|
31
32
|
locale: zLocale.nullish()
|
|
32
33
|
});
|
|
33
34
|
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 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":";;;
|
|
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 zDimensionLinkage,\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 dimensionLinkage: zDimensionLinkage.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","zDimensionLinkage","zLocale"],"mappings":";;;AA6BO,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,kBAAkBwB,kBAAkB,OAAO;IAC3C,QAAQC,QAAQ,OAAO;AACzB"}
|
package/dist/esm/types/index.js
CHANGED
|
@@ -411,6 +411,11 @@ export declare const zAreaConfig: z.ZodObject<{
|
|
|
411
411
|
outerPadding: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodNumber>>>>;
|
|
412
412
|
}, z.core.$strip>>>;
|
|
413
413
|
}, z.core.$strip>>>;
|
|
414
|
+
dimensionLinkage: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
415
|
+
enable: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
416
|
+
showTooltip: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
417
|
+
showLabel: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
418
|
+
}, z.core.$strip>>>;
|
|
414
419
|
}, z.core.$strip>;
|
|
415
420
|
export declare const zAreaPercentConfig: z.ZodObject<{
|
|
416
421
|
backgroundColor: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodString>>>>>;
|
|
@@ -824,6 +829,11 @@ export declare const zAreaPercentConfig: z.ZodObject<{
|
|
|
824
829
|
outerPadding: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodNumber>>>>;
|
|
825
830
|
}, z.core.$strip>>>;
|
|
826
831
|
}, z.core.$strip>>>;
|
|
832
|
+
dimensionLinkage: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
833
|
+
enable: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
834
|
+
showTooltip: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
835
|
+
showLabel: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
836
|
+
}, z.core.$strip>>>;
|
|
827
837
|
}, z.core.$strip>;
|
|
828
838
|
export type AreaConfig = z.infer<typeof zAreaConfig>;
|
|
829
839
|
export type AreaPercentConfig = z.infer<typeof zAreaPercentConfig>;
|
|
@@ -8,6 +8,7 @@ import { zLegend } from "./legend/legend.js";
|
|
|
8
8
|
import { zTooltip } from "./tooltip/tooltip.js";
|
|
9
9
|
import { zAnnotationConfig } from "./annotation/zAnnotaion.js";
|
|
10
10
|
import { zPivotChartGridConfig } from "./pivotGrid/index.js";
|
|
11
|
+
import { zDimensionLinkage } from "./dimensionLinkage/dimensionLinkage.js";
|
|
11
12
|
const zAreaConfig = z.object({
|
|
12
13
|
backgroundColor: zBackgroundColor.nullish(),
|
|
13
14
|
label: zLabel.nullish(),
|
|
@@ -18,7 +19,8 @@ const zAreaConfig = z.object({
|
|
|
18
19
|
yAxis: zYLinearAxis.nullish(),
|
|
19
20
|
crosshairLine: zCrosshairLine.nullish(),
|
|
20
21
|
pivotGrid: zPivotChartGridConfig.nullish(),
|
|
21
|
-
annotation: zAnnotationConfig.nullish()
|
|
22
|
+
annotation: zAnnotationConfig.nullish(),
|
|
23
|
+
dimensionLinkage: zDimensionLinkage.nullish()
|
|
22
24
|
});
|
|
23
25
|
const zAreaPercentConfig = zAreaConfig;
|
|
24
26
|
export { zAreaConfig, zAreaPercentConfig };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types/properties/config/area.js","sources":["webpack://@visactor/vseed/./src/types/properties/config/area.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zXBandAxis, zYLinearAxis } from './axes'\nimport { zCrosshairLine } from './crosshair'\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'\n\nexport const zAreaConfig = 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 crosshairLine: zCrosshairLine.nullish(),\n pivotGrid: zPivotChartGridConfig.nullish(),\n annotation: zAnnotationConfig.nullish(),\n})\nexport const zAreaPercentConfig = zAreaConfig\n\nexport type AreaConfig = z.infer<typeof zAreaConfig>\nexport type AreaPercentConfig = z.infer<typeof zAreaPercentConfig>\n"],"names":["zAreaConfig","z","zBackgroundColor","zLabel","zColor","zTooltip","zLegend","zXBandAxis","zYLinearAxis","zCrosshairLine","zPivotChartGridConfig","zAnnotationConfig","zAreaPercentConfig"],"mappings":"
|
|
1
|
+
{"version":3,"file":"types/properties/config/area.js","sources":["webpack://@visactor/vseed/./src/types/properties/config/area.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zXBandAxis, zYLinearAxis } from './axes'\nimport { zCrosshairLine } from './crosshair'\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 { zDimensionLinkage } from './dimensionLinkage/dimensionLinkage'\n\nexport const zAreaConfig = 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 crosshairLine: zCrosshairLine.nullish(),\n pivotGrid: zPivotChartGridConfig.nullish(),\n annotation: zAnnotationConfig.nullish(),\n\n dimensionLinkage: zDimensionLinkage.nullish(),\n})\nexport const zAreaPercentConfig = zAreaConfig\n\nexport type AreaConfig = z.infer<typeof zAreaConfig>\nexport type AreaPercentConfig = z.infer<typeof zAreaPercentConfig>\n"],"names":["zAreaConfig","z","zBackgroundColor","zLabel","zColor","zTooltip","zLegend","zXBandAxis","zYLinearAxis","zCrosshairLine","zPivotChartGridConfig","zAnnotationConfig","zDimensionLinkage","zAreaPercentConfig"],"mappings":";;;;;;;;;;;AAYO,MAAMA,cAAcC,EAAE,MAAM,CAAC;IAClC,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,WAAWC,sBAAsB,OAAO;IACxC,YAAYC,kBAAkB,OAAO;IAErC,kBAAkBC,kBAAkB,OAAO;AAC7C;AACO,MAAMC,qBAAqBb"}
|
|
@@ -411,6 +411,11 @@ export declare const zBarConfig: z.ZodObject<{
|
|
|
411
411
|
outerPadding: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodNumber>>>>;
|
|
412
412
|
}, z.core.$strip>>>;
|
|
413
413
|
}, z.core.$strip>>>;
|
|
414
|
+
dimensionLinkage: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
415
|
+
enable: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
416
|
+
showTooltip: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
417
|
+
showLabel: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
418
|
+
}, z.core.$strip>>>;
|
|
414
419
|
}, z.core.$strip>;
|
|
415
420
|
export declare const zBarParallelConfig: z.ZodObject<{
|
|
416
421
|
backgroundColor: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodString>>>>>;
|
|
@@ -824,6 +829,11 @@ export declare const zBarParallelConfig: z.ZodObject<{
|
|
|
824
829
|
outerPadding: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodNumber>>>>;
|
|
825
830
|
}, z.core.$strip>>>;
|
|
826
831
|
}, z.core.$strip>>>;
|
|
832
|
+
dimensionLinkage: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
833
|
+
enable: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
834
|
+
showTooltip: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
835
|
+
showLabel: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
836
|
+
}, z.core.$strip>>>;
|
|
827
837
|
}, z.core.$strip>;
|
|
828
838
|
export declare const zBarPercentConfig: z.ZodObject<{
|
|
829
839
|
backgroundColor: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodString>>>>>;
|
|
@@ -1237,6 +1247,11 @@ export declare const zBarPercentConfig: z.ZodObject<{
|
|
|
1237
1247
|
outerPadding: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodNumber>>>>;
|
|
1238
1248
|
}, z.core.$strip>>>;
|
|
1239
1249
|
}, z.core.$strip>>>;
|
|
1250
|
+
dimensionLinkage: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1251
|
+
enable: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
1252
|
+
showTooltip: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
1253
|
+
showLabel: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
1254
|
+
}, z.core.$strip>>>;
|
|
1240
1255
|
}, z.core.$strip>;
|
|
1241
1256
|
export type BarConfig = z.infer<typeof zBarConfig>;
|
|
1242
1257
|
export type BarParallelConfig = z.infer<typeof zBarParallelConfig>;
|
|
@@ -9,6 +9,7 @@ import { zLegend } from "./legend/legend.js";
|
|
|
9
9
|
import { zTooltip } from "./tooltip/tooltip.js";
|
|
10
10
|
import { zAnnotationConfig } from "./annotation/zAnnotaion.js";
|
|
11
11
|
import { zPivotChartGridConfig } from "./pivotGrid/index.js";
|
|
12
|
+
import { zDimensionLinkage } from "./dimensionLinkage/dimensionLinkage.js";
|
|
12
13
|
const zBarConfig = z.object({
|
|
13
14
|
backgroundColor: zBackgroundColor.nullish(),
|
|
14
15
|
label: zLabel.nullish(),
|
|
@@ -20,7 +21,8 @@ const zBarConfig = z.object({
|
|
|
20
21
|
crosshairRect: zCrosshairRect.nullish(),
|
|
21
22
|
stackCornerRadius: zStackCornerRadius.nullish(),
|
|
22
23
|
pivotGrid: zPivotChartGridConfig.nullish(),
|
|
23
|
-
annotation: zAnnotationConfig.nullish()
|
|
24
|
+
annotation: zAnnotationConfig.nullish(),
|
|
25
|
+
dimensionLinkage: zDimensionLinkage.nullish()
|
|
24
26
|
});
|
|
25
27
|
const zBarParallelConfig = zBarConfig;
|
|
26
28
|
const zBarPercentConfig = zBarConfig;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types/properties/config/bar.js","sources":["webpack://@visactor/vseed/./src/types/properties/config/bar.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zYBandAxis, zXLinearAxis } 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'\n\nexport const zBarConfig = 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: zXLinearAxis.nullish(),\n yAxis: zYBandAxis.nullish(),\n crosshairRect: zCrosshairRect.nullish(),\n stackCornerRadius: zStackCornerRadius.nullish(),\n pivotGrid: zPivotChartGridConfig.nullish(),\n annotation: zAnnotationConfig.nullish(),\n})\nexport const zBarParallelConfig = zBarConfig\nexport const zBarPercentConfig = zBarConfig\n\nexport type BarConfig = z.infer<typeof zBarConfig>\nexport type BarParallelConfig = z.infer<typeof zBarParallelConfig>\nexport type BarPercentConfig = z.infer<typeof zBarPercentConfig>\n"],"names":["zBarConfig","z","zBackgroundColor","zLabel","zColor","zTooltip","zLegend","zXLinearAxis","zYBandAxis","zCrosshairRect","zStackCornerRadius","zPivotChartGridConfig","zAnnotationConfig","zBarParallelConfig","zBarPercentConfig"],"mappings":"
|
|
1
|
+
{"version":3,"file":"types/properties/config/bar.js","sources":["webpack://@visactor/vseed/./src/types/properties/config/bar.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zYBandAxis, zXLinearAxis } 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 { zDimensionLinkage } from './dimensionLinkage/dimensionLinkage'\n\nexport const zBarConfig = 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: zXLinearAxis.nullish(),\n yAxis: zYBandAxis.nullish(),\n crosshairRect: zCrosshairRect.nullish(),\n stackCornerRadius: zStackCornerRadius.nullish(),\n pivotGrid: zPivotChartGridConfig.nullish(),\n annotation: zAnnotationConfig.nullish(),\n\n dimensionLinkage: zDimensionLinkage.nullish(),\n})\nexport const zBarParallelConfig = zBarConfig\nexport const zBarPercentConfig = zBarConfig\n\nexport type BarConfig = z.infer<typeof zBarConfig>\nexport type BarParallelConfig = z.infer<typeof zBarParallelConfig>\nexport type BarPercentConfig = z.infer<typeof zBarPercentConfig>\n"],"names":["zBarConfig","z","zBackgroundColor","zLabel","zColor","zTooltip","zLegend","zXLinearAxis","zYBandAxis","zCrosshairRect","zStackCornerRadius","zPivotChartGridConfig","zAnnotationConfig","zDimensionLinkage","zBarParallelConfig","zBarPercentConfig"],"mappings":";;;;;;;;;;;;AAaO,MAAMA,aAAaC,EAAE,MAAM,CAAC;IACjC,iBAAiBC,iBAAiB,OAAO;IACzC,OAAOC,OAAO,OAAO;IACrB,OAAOC,OAAO,OAAO;IACrB,SAASC,SAAS,OAAO;IACzB,QAAQC,QAAQ,OAAO;IAEvB,OAAOC,aAAa,OAAO;IAC3B,OAAOC,WAAW,OAAO;IACzB,eAAeC,eAAe,OAAO;IACrC,mBAAmBC,mBAAmB,OAAO;IAC7C,WAAWC,sBAAsB,OAAO;IACxC,YAAYC,kBAAkB,OAAO;IAErC,kBAAkBC,kBAAkB,OAAO;AAC7C;AACO,MAAMC,qBAAqBd;AAC3B,MAAMe,oBAAoBf"}
|
|
@@ -411,5 +411,10 @@ export declare const zBoxplotConfig: z.ZodObject<{
|
|
|
411
411
|
}, z.core.$strip>>>;
|
|
412
412
|
}, z.core.$strip>>>;
|
|
413
413
|
whiskers: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodUnion<[z.ZodNumber, z.ZodArray<z.ZodNumber>]>>>>;
|
|
414
|
+
dimensionLinkage: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
415
|
+
enable: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
416
|
+
showTooltip: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
417
|
+
showLabel: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
418
|
+
}, z.core.$strip>>>;
|
|
414
419
|
}, z.core.$strip>;
|
|
415
420
|
export type BoxplotConfig = z.infer<typeof zBoxplotConfig>;
|
|
@@ -9,6 +9,7 @@ import { zTooltip } from "./tooltip/tooltip.js";
|
|
|
9
9
|
import { zAnnotationConfig } from "./annotation/zAnnotaion.js";
|
|
10
10
|
import { zPivotChartGridConfig } from "./pivotGrid/index.js";
|
|
11
11
|
import { zWhiskersConfig } from "./whiskers/index.js";
|
|
12
|
+
import { zDimensionLinkage } from "./dimensionLinkage/dimensionLinkage.js";
|
|
12
13
|
const zBoxplotConfig = z.object({
|
|
13
14
|
backgroundColor: zBackgroundColor.nullish(),
|
|
14
15
|
label: zLabel.nullish(),
|
|
@@ -20,7 +21,8 @@ const zBoxplotConfig = z.object({
|
|
|
20
21
|
crosshairRect: zCrosshairRect.nullish(),
|
|
21
22
|
pivotGrid: zPivotChartGridConfig.nullish(),
|
|
22
23
|
annotation: zAnnotationConfig.nullish(),
|
|
23
|
-
whiskers: zWhiskersConfig.nullish()
|
|
24
|
+
whiskers: zWhiskersConfig.nullish(),
|
|
25
|
+
dimensionLinkage: zDimensionLinkage.nullish()
|
|
24
26
|
});
|
|
25
27
|
export { zBoxplotConfig };
|
|
26
28
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types/properties/config/boxplot.js","sources":["webpack://@visactor/vseed/./src/types/properties/config/boxplot.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zXBandAxis, zYLinearAxis } from './axes'\nimport { zCrosshairRect } from './crosshair'\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 { zWhiskersConfig } from './whiskers'\n\nexport const zBoxplotConfig = 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 pivotGrid: zPivotChartGridConfig.nullish(),\n annotation: zAnnotationConfig.nullish(),\n\n whiskers: zWhiskersConfig.nullish(),\n})\n\nexport type BoxplotConfig = z.infer<typeof zBoxplotConfig>\n"],"names":["zBoxplotConfig","z","zBackgroundColor","zLabel","zColor","zTooltip","zLegend","zXBandAxis","zYLinearAxis","zCrosshairRect","zPivotChartGridConfig","zAnnotationConfig","zWhiskersConfig"],"mappings":"
|
|
1
|
+
{"version":3,"file":"types/properties/config/boxplot.js","sources":["webpack://@visactor/vseed/./src/types/properties/config/boxplot.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zXBandAxis, zYLinearAxis } from './axes'\nimport { zCrosshairRect } from './crosshair'\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 { zWhiskersConfig } from './whiskers'\nimport { zDimensionLinkage } from './dimensionLinkage/dimensionLinkage'\n\nexport const zBoxplotConfig = 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 pivotGrid: zPivotChartGridConfig.nullish(),\n annotation: zAnnotationConfig.nullish(),\n\n whiskers: zWhiskersConfig.nullish(),\n\n dimensionLinkage: zDimensionLinkage.nullish(),\n})\n\nexport type BoxplotConfig = z.infer<typeof zBoxplotConfig>\n"],"names":["zBoxplotConfig","z","zBackgroundColor","zLabel","zColor","zTooltip","zLegend","zXBandAxis","zYLinearAxis","zCrosshairRect","zPivotChartGridConfig","zAnnotationConfig","zWhiskersConfig","zDimensionLinkage"],"mappings":";;;;;;;;;;;;AAaO,MAAMA,iBAAiBC,EAAE,MAAM,CAAC;IACrC,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,WAAWC,sBAAsB,OAAO;IACxC,YAAYC,kBAAkB,OAAO;IAErC,UAAUC,gBAAgB,OAAO;IAEjC,kBAAkBC,kBAAkB,OAAO;AAC7C"}
|
|
@@ -413,6 +413,11 @@ export declare const zColumnParallelConfig: z.ZodObject<{
|
|
|
413
413
|
outerPadding: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodNumber>>>>;
|
|
414
414
|
}, z.core.$strip>>>;
|
|
415
415
|
}, z.core.$strip>>>;
|
|
416
|
+
dimensionLinkage: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
417
|
+
enable: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
418
|
+
showTooltip: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
419
|
+
showLabel: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
420
|
+
}, z.core.$strip>>>;
|
|
416
421
|
}, z.core.$strip>;
|
|
417
422
|
export declare const zColumnConfig: z.ZodObject<{
|
|
418
423
|
backgroundColor: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodString>>>>>;
|
|
@@ -828,6 +833,11 @@ export declare const zColumnConfig: z.ZodObject<{
|
|
|
828
833
|
outerPadding: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodNumber>>>>;
|
|
829
834
|
}, z.core.$strip>>>;
|
|
830
835
|
}, z.core.$strip>>>;
|
|
836
|
+
dimensionLinkage: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
837
|
+
enable: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
838
|
+
showTooltip: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
839
|
+
showLabel: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
840
|
+
}, z.core.$strip>>>;
|
|
831
841
|
regressionLine: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
832
842
|
ecdfRegressionLine: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
|
|
833
843
|
enable: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
@@ -1385,6 +1395,11 @@ export declare const zColumnPercentConfig: z.ZodObject<{
|
|
|
1385
1395
|
outerPadding: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodNumber>>>>;
|
|
1386
1396
|
}, z.core.$strip>>>;
|
|
1387
1397
|
}, z.core.$strip>>>;
|
|
1398
|
+
dimensionLinkage: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1399
|
+
enable: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
1400
|
+
showTooltip: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
1401
|
+
showLabel: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
1402
|
+
}, z.core.$strip>>>;
|
|
1388
1403
|
}, z.core.$strip>;
|
|
1389
1404
|
export type ColumnConfig = z.infer<typeof zColumnConfig>;
|
|
1390
1405
|
export type ColumnParallelConfig = z.infer<typeof zColumnParallelConfig>;
|
|
@@ -11,6 +11,7 @@ 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
|
+
import { zDimensionLinkage } from "./dimensionLinkage/dimensionLinkage.js";
|
|
14
15
|
const zColumnParallelConfig = z.object({
|
|
15
16
|
backgroundColor: zBackgroundColor.nullish(),
|
|
16
17
|
label: zLabel.nullish(),
|
|
@@ -24,7 +25,8 @@ const zColumnParallelConfig = z.object({
|
|
|
24
25
|
barMaxWidth: zBarMaxWidth.nullish(),
|
|
25
26
|
barGapInGroup: zBarGapInGroup.nullish(),
|
|
26
27
|
pivotGrid: zPivotChartGridConfig.nullish(),
|
|
27
|
-
annotation: zAnnotationConfig.nullish()
|
|
28
|
+
annotation: zAnnotationConfig.nullish(),
|
|
29
|
+
dimensionLinkage: zDimensionLinkage.nullish()
|
|
28
30
|
});
|
|
29
31
|
const zColumnConfig = zColumnParallelConfig.extend({
|
|
30
32
|
regressionLine: zRegressionLine.nullish()
|
|
@@ -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'\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":"
|
|
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'\nimport { zDimensionLinkage } from './dimensionLinkage/dimensionLinkage'\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\n dimensionLinkage: zDimensionLinkage.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","zDimensionLinkage","zColumnConfig","zRegressionLine","zColumnPercentConfig"],"mappings":";;;;;;;;;;;;;;AAeO,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;IAErC,kBAAkBC,kBAAkB,OAAO;AAC7C;AACO,MAAMC,gBAAgBhB,sBAAsB,MAAM,CAAC;IACxD,gBAAgBiB,gBAAgB,OAAO;AACzC;AACO,MAAMC,uBAAuBlB,sBAAsB,MAAM,CAAC,CAAC"}
|
|
@@ -445,6 +445,11 @@ export declare const zConfig: z.ZodObject<{
|
|
|
445
445
|
outerPadding: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodNumber>>>>;
|
|
446
446
|
}, z.core.$strip>>>;
|
|
447
447
|
}, z.core.$strip>>>;
|
|
448
|
+
dimensionLinkage: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
449
|
+
enable: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
450
|
+
showTooltip: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
451
|
+
showLabel: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
452
|
+
}, z.core.$strip>>>;
|
|
448
453
|
}, z.core.$strip>>>;
|
|
449
454
|
column: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
450
455
|
backgroundColor: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodString>>>>>;
|
|
@@ -860,6 +865,11 @@ export declare const zConfig: z.ZodObject<{
|
|
|
860
865
|
outerPadding: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodNumber>>>>;
|
|
861
866
|
}, z.core.$strip>>>;
|
|
862
867
|
}, z.core.$strip>>>;
|
|
868
|
+
dimensionLinkage: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
869
|
+
enable: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
870
|
+
showTooltip: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
871
|
+
showLabel: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
872
|
+
}, z.core.$strip>>>;
|
|
863
873
|
regressionLine: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
864
874
|
ecdfRegressionLine: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
|
|
865
875
|
enable: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
@@ -1417,6 +1427,11 @@ export declare const zConfig: z.ZodObject<{
|
|
|
1417
1427
|
outerPadding: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodNumber>>>>;
|
|
1418
1428
|
}, z.core.$strip>>>;
|
|
1419
1429
|
}, z.core.$strip>>>;
|
|
1430
|
+
dimensionLinkage: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1431
|
+
enable: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
1432
|
+
showTooltip: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
1433
|
+
showLabel: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
1434
|
+
}, z.core.$strip>>>;
|
|
1420
1435
|
}, z.core.$strip>>>;
|
|
1421
1436
|
columnPercent: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1422
1437
|
backgroundColor: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodString>>>>>;
|
|
@@ -1832,6 +1847,11 @@ export declare const zConfig: z.ZodObject<{
|
|
|
1832
1847
|
outerPadding: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodNumber>>>>;
|
|
1833
1848
|
}, z.core.$strip>>>;
|
|
1834
1849
|
}, z.core.$strip>>>;
|
|
1850
|
+
dimensionLinkage: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1851
|
+
enable: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
1852
|
+
showTooltip: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
1853
|
+
showLabel: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
1854
|
+
}, z.core.$strip>>>;
|
|
1835
1855
|
}, z.core.$strip>>>;
|
|
1836
1856
|
bar: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1837
1857
|
backgroundColor: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodString>>>>>;
|
|
@@ -2245,6 +2265,11 @@ export declare const zConfig: z.ZodObject<{
|
|
|
2245
2265
|
outerPadding: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodNumber>>>>;
|
|
2246
2266
|
}, z.core.$strip>>>;
|
|
2247
2267
|
}, z.core.$strip>>>;
|
|
2268
|
+
dimensionLinkage: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2269
|
+
enable: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
2270
|
+
showTooltip: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
2271
|
+
showLabel: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
2272
|
+
}, z.core.$strip>>>;
|
|
2248
2273
|
}, z.core.$strip>>>;
|
|
2249
2274
|
barParallel: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2250
2275
|
backgroundColor: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodString>>>>>;
|
|
@@ -2658,6 +2683,11 @@ export declare const zConfig: z.ZodObject<{
|
|
|
2658
2683
|
outerPadding: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodNumber>>>>;
|
|
2659
2684
|
}, z.core.$strip>>>;
|
|
2660
2685
|
}, z.core.$strip>>>;
|
|
2686
|
+
dimensionLinkage: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2687
|
+
enable: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
2688
|
+
showTooltip: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
2689
|
+
showLabel: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
2690
|
+
}, z.core.$strip>>>;
|
|
2661
2691
|
}, z.core.$strip>>>;
|
|
2662
2692
|
barPercent: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2663
2693
|
backgroundColor: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodString>>>>>;
|
|
@@ -3071,6 +3101,11 @@ export declare const zConfig: z.ZodObject<{
|
|
|
3071
3101
|
outerPadding: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodNumber>>>>;
|
|
3072
3102
|
}, z.core.$strip>>>;
|
|
3073
3103
|
}, z.core.$strip>>>;
|
|
3104
|
+
dimensionLinkage: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
3105
|
+
enable: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
3106
|
+
showTooltip: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
3107
|
+
showLabel: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
3108
|
+
}, z.core.$strip>>>;
|
|
3074
3109
|
}, z.core.$strip>>>;
|
|
3075
3110
|
area: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
3076
3111
|
backgroundColor: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodString>>>>>;
|
|
@@ -3484,6 +3519,11 @@ export declare const zConfig: z.ZodObject<{
|
|
|
3484
3519
|
outerPadding: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodNumber>>>>;
|
|
3485
3520
|
}, z.core.$strip>>>;
|
|
3486
3521
|
}, z.core.$strip>>>;
|
|
3522
|
+
dimensionLinkage: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
3523
|
+
enable: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
3524
|
+
showTooltip: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
3525
|
+
showLabel: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
3526
|
+
}, z.core.$strip>>>;
|
|
3487
3527
|
}, z.core.$strip>>>;
|
|
3488
3528
|
areaPercent: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
3489
3529
|
backgroundColor: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodString>>>>>;
|
|
@@ -3897,6 +3937,11 @@ export declare const zConfig: z.ZodObject<{
|
|
|
3897
3937
|
outerPadding: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodNumber>>>>;
|
|
3898
3938
|
}, z.core.$strip>>>;
|
|
3899
3939
|
}, z.core.$strip>>>;
|
|
3940
|
+
dimensionLinkage: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
3941
|
+
enable: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
3942
|
+
showTooltip: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
3943
|
+
showLabel: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
3944
|
+
}, z.core.$strip>>>;
|
|
3900
3945
|
}, z.core.$strip>>>;
|
|
3901
3946
|
scatter: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
3902
3947
|
backgroundColor: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodString>>>>>;
|
|
@@ -4485,6 +4530,11 @@ export declare const zConfig: z.ZodObject<{
|
|
|
4485
4530
|
confidenceIntervalOpacity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
4486
4531
|
}, z.core.$strip>>]>>>;
|
|
4487
4532
|
}, z.core.$strip>>>;
|
|
4533
|
+
dimensionLinkage: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
4534
|
+
enable: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
4535
|
+
showTooltip: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
4536
|
+
showLabel: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
4537
|
+
}, z.core.$strip>>>;
|
|
4488
4538
|
}, z.core.$strip>>>;
|
|
4489
4539
|
dualAxis: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
4490
4540
|
backgroundColor: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodString>>>>>;
|
|
@@ -5140,6 +5190,11 @@ export declare const zConfig: z.ZodObject<{
|
|
|
5140
5190
|
outerPadding: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodNumber>>>>;
|
|
5141
5191
|
}, z.core.$strip>>>;
|
|
5142
5192
|
}, z.core.$strip>>>;
|
|
5193
|
+
dimensionLinkage: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
5194
|
+
enable: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
5195
|
+
showTooltip: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
5196
|
+
showLabel: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
5197
|
+
}, z.core.$strip>>>;
|
|
5143
5198
|
}, z.core.$strip>>>;
|
|
5144
5199
|
rose: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
5145
5200
|
backgroundColor: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodString>>>>>;
|
|
@@ -7033,6 +7088,11 @@ export declare const zConfig: z.ZodObject<{
|
|
|
7033
7088
|
}, z.core.$strip>>>;
|
|
7034
7089
|
}, z.core.$strip>>>;
|
|
7035
7090
|
whiskers: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodUnion<[z.ZodNumber, z.ZodArray<z.ZodNumber>]>>>>;
|
|
7091
|
+
dimensionLinkage: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
7092
|
+
enable: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
7093
|
+
showTooltip: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
7094
|
+
showLabel: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
7095
|
+
}, z.core.$strip>>>;
|
|
7036
7096
|
}, z.core.$strip>>>;
|
|
7037
7097
|
histogram: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
7038
7098
|
backgroundColor: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodString>>>>>;
|
|
@@ -7591,5 +7651,10 @@ export declare const zConfig: z.ZodObject<{
|
|
|
7591
7651
|
confidenceIntervalOpacity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
7592
7652
|
}, z.core.$strip>>]>>>;
|
|
7593
7653
|
}, z.core.$strip>>>;
|
|
7654
|
+
dimensionLinkage: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
7655
|
+
enable: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
7656
|
+
showTooltip: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
7657
|
+
showLabel: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
7658
|
+
}, z.core.$strip>>>;
|
|
7594
7659
|
}, z.core.$strip>>>;
|
|
7595
7660
|
}, z.core.$strip>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const zDimensionLinkage: z.ZodObject<{
|
|
3
|
+
enable: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
4
|
+
showTooltip: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
5
|
+
showLabel: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
/**
|
|
8
|
+
* 透视图表维度联动配置
|
|
9
|
+
*/
|
|
10
|
+
export type DimensionLinkage = {
|
|
11
|
+
/**
|
|
12
|
+
* 是否开启透视图表维度联动
|
|
13
|
+
*/
|
|
14
|
+
enable: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* 是否显示所有维度对应子图表的Tooltip提示信息
|
|
17
|
+
*/
|
|
18
|
+
showTooltip?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* 是否显示crosshair 对应的标签
|
|
21
|
+
*/
|
|
22
|
+
showLabel?: boolean;
|
|
23
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types/properties/config/dimensionLinkage/dimensionLinkage.js","sources":["webpack://@visactor/vseed/./src/types/properties/config/dimensionLinkage/dimensionLinkage.ts"],"sourcesContent":["import { z } from 'zod'\n\nexport const zDimensionLinkage = z.object({\n enable: z.boolean().nullish(),\n showTooltip: z.boolean().nullish(),\n showLabel: z.boolean().nullish(),\n})\n\n/**\n * 透视图表维度联动配置\n */\nexport type DimensionLinkage = {\n /**\n * 是否开启透视图表维度联动\n */\n enable: boolean\n /**\n * 是否显示所有维度对应子图表的Tooltip提示信息\n */\n showTooltip?: boolean\n /**\n * 是否显示crosshair 对应的标签\n */\n showLabel?: boolean\n}\n"],"names":["zDimensionLinkage","z"],"mappings":";AAEO,MAAMA,oBAAoBC,EAAE,MAAM,CAAC;IACxC,QAAQA,EAAE,OAAO,GAAG,OAAO;IAC3B,aAAaA,EAAE,OAAO,GAAG,OAAO;IAChC,WAAWA,EAAE,OAAO,GAAG,OAAO;AAChC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './dimensionLinkage';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./dimensionLinkage.js";
|
|
@@ -653,5 +653,10 @@ export declare const zDualAxisConfig: z.ZodObject<{
|
|
|
653
653
|
outerPadding: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodNumber>>>>;
|
|
654
654
|
}, z.core.$strip>>>;
|
|
655
655
|
}, z.core.$strip>>>;
|
|
656
|
+
dimensionLinkage: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
657
|
+
enable: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
658
|
+
showTooltip: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
659
|
+
showLabel: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
660
|
+
}, z.core.$strip>>>;
|
|
656
661
|
}, z.core.$strip>;
|
|
657
662
|
export type DualAxisConfig = z.infer<typeof zDualAxisConfig>;
|
|
@@ -9,6 +9,7 @@ import { zTooltip } from "./tooltip/tooltip.js";
|
|
|
9
9
|
import { zDualChartType } from "../chartType/index.js";
|
|
10
10
|
import { zAnnotationConfig } from "./annotation/zAnnotaion.js";
|
|
11
11
|
import { zPivotChartGridConfig } from "./pivotGrid/index.js";
|
|
12
|
+
import { zDimensionLinkage } from "./dimensionLinkage/dimensionLinkage.js";
|
|
12
13
|
const zDualAxisConfig = z.object({
|
|
13
14
|
backgroundColor: zBackgroundColor.nullish(),
|
|
14
15
|
label: zLabel.nullish(),
|
|
@@ -22,7 +23,8 @@ const zDualAxisConfig = z.object({
|
|
|
22
23
|
xAxis: zXBandAxis.nullish(),
|
|
23
24
|
crosshairRect: zCrosshairRect.nullish(),
|
|
24
25
|
pivotGrid: zPivotChartGridConfig.nullish(),
|
|
25
|
-
annotation: zAnnotationConfig.nullish()
|
|
26
|
+
annotation: zAnnotationConfig.nullish(),
|
|
27
|
+
dimensionLinkage: zDimensionLinkage.nullish()
|
|
26
28
|
});
|
|
27
29
|
export { zDualAxisConfig };
|
|
28
30
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types/properties/config/dualAxis.js","sources":["webpack://@visactor/vseed/./src/types/properties/config/dualAxis.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zXBandAxis, zYLinearAxis } from './axes'\nimport { zCrosshairRect } from './crosshair'\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 { zDualChartType } from '../chartType'\nimport { zAnnotationConfig } from './annotation/zAnnotaion'\nimport { zPivotChartGridConfig } from './pivotGrid'\n\nexport const zDualAxisConfig = z.object({\n backgroundColor: zBackgroundColor.nullish(),\n label: zLabel.nullish(),\n color: zColor.nullish(),\n tooltip: zTooltip.nullish(),\n legend: zLegend.nullish(),\n\n dualChartType: z.array(zDualChartType).or(zDualChartType).nullish(),\n alignTicks: z.array(z.boolean()).or(z.boolean()).nullish(),\n primaryYAxis: z.array(zYLinearAxis).or(zYLinearAxis).nullish(),\n secondaryYAxis: z.array(zYLinearAxis).or(zYLinearAxis).nullish(),\n\n xAxis: zXBandAxis.nullish(),\n crosshairRect: zCrosshairRect.nullish(),\n pivotGrid: zPivotChartGridConfig.nullish(),\n annotation: zAnnotationConfig.nullish(),\n})\n\nexport type DualAxisConfig = z.infer<typeof zDualAxisConfig>\n"],"names":["zDualAxisConfig","z","zBackgroundColor","zLabel","zColor","zTooltip","zLegend","zDualChartType","zYLinearAxis","zXBandAxis","zCrosshairRect","zPivotChartGridConfig","zAnnotationConfig"],"mappings":"
|
|
1
|
+
{"version":3,"file":"types/properties/config/dualAxis.js","sources":["webpack://@visactor/vseed/./src/types/properties/config/dualAxis.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zXBandAxis, zYLinearAxis } from './axes'\nimport { zCrosshairRect } from './crosshair'\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 { zDualChartType } from '../chartType'\nimport { zAnnotationConfig } from './annotation/zAnnotaion'\nimport { zPivotChartGridConfig } from './pivotGrid'\nimport { zDimensionLinkage } from './dimensionLinkage/dimensionLinkage'\n\nexport const zDualAxisConfig = z.object({\n backgroundColor: zBackgroundColor.nullish(),\n label: zLabel.nullish(),\n color: zColor.nullish(),\n tooltip: zTooltip.nullish(),\n legend: zLegend.nullish(),\n\n dualChartType: z.array(zDualChartType).or(zDualChartType).nullish(),\n alignTicks: z.array(z.boolean()).or(z.boolean()).nullish(),\n primaryYAxis: z.array(zYLinearAxis).or(zYLinearAxis).nullish(),\n secondaryYAxis: z.array(zYLinearAxis).or(zYLinearAxis).nullish(),\n\n xAxis: zXBandAxis.nullish(),\n crosshairRect: zCrosshairRect.nullish(),\n pivotGrid: zPivotChartGridConfig.nullish(),\n annotation: zAnnotationConfig.nullish(),\n\n dimensionLinkage: zDimensionLinkage.nullish(),\n})\n\nexport type DualAxisConfig = z.infer<typeof zDualAxisConfig>\n"],"names":["zDualAxisConfig","z","zBackgroundColor","zLabel","zColor","zTooltip","zLegend","zDualChartType","zYLinearAxis","zXBandAxis","zCrosshairRect","zPivotChartGridConfig","zAnnotationConfig","zDimensionLinkage"],"mappings":";;;;;;;;;;;;AAaO,MAAMA,kBAAkBC,EAAE,MAAM,CAAC;IACtC,iBAAiBC,iBAAiB,OAAO;IACzC,OAAOC,OAAO,OAAO;IACrB,OAAOC,OAAO,OAAO;IACrB,SAASC,SAAS,OAAO;IACzB,QAAQC,QAAQ,OAAO;IAEvB,eAAeL,EAAE,KAAK,CAACM,gBAAgB,EAAE,CAACA,gBAAgB,OAAO;IACjE,YAAYN,EAAE,KAAK,CAACA,EAAE,OAAO,IAAI,EAAE,CAACA,EAAE,OAAO,IAAI,OAAO;IACxD,cAAcA,EAAE,KAAK,CAACO,cAAc,EAAE,CAACA,cAAc,OAAO;IAC5D,gBAAgBP,EAAE,KAAK,CAACO,cAAc,EAAE,CAACA,cAAc,OAAO;IAE9D,OAAOC,WAAW,OAAO;IACzB,eAAeC,eAAe,OAAO;IACrC,WAAWC,sBAAsB,OAAO;IACxC,YAAYC,kBAAkB,OAAO;IAErC,kBAAkBC,kBAAkB,OAAO;AAC7C"}
|
|
@@ -556,5 +556,10 @@ export declare const zHistogramConfig: z.ZodObject<{
|
|
|
556
556
|
confidenceIntervalOpacity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
557
557
|
}, z.core.$strip>>]>>>;
|
|
558
558
|
}, z.core.$strip>>>;
|
|
559
|
+
dimensionLinkage: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
560
|
+
enable: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
561
|
+
showTooltip: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
562
|
+
showLabel: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
563
|
+
}, z.core.$strip>>>;
|
|
559
564
|
}, z.core.$strip>;
|
|
560
565
|
export type HistogramConfig = z.infer<typeof zHistogramConfig>;
|
|
@@ -10,6 +10,7 @@ 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 { zRegressionLine } from "../regressionLine/index.js";
|
|
13
|
+
import { zDimensionLinkage } from "./dimensionLinkage/dimensionLinkage.js";
|
|
13
14
|
const zHistogramConfig = z.object({
|
|
14
15
|
backgroundColor: zBackgroundColor.nullish(),
|
|
15
16
|
label: zLabel.nullish(),
|
|
@@ -25,7 +26,8 @@ const zHistogramConfig = z.object({
|
|
|
25
26
|
binCount: z.number().positive().nullish(),
|
|
26
27
|
binStep: z.number().positive().nullish(),
|
|
27
28
|
binValueType: z.literal('count').or(z.literal('percentage')).nullish(),
|
|
28
|
-
regressionLine: zRegressionLine.nullish()
|
|
29
|
+
regressionLine: zRegressionLine.nullish(),
|
|
30
|
+
dimensionLinkage: zDimensionLinkage.nullish()
|
|
29
31
|
});
|
|
30
32
|
export { zHistogramConfig };
|
|
31
33
|
|