@visactor/vseed 0.1.37 → 0.1.39
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.cjs +2 -2
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/esm/builder/builder/buildAdvanced.js +1 -1
- package/dist/esm/builder/builder/buildAdvanced.js.map +1 -1
- package/dist/esm/builder/builder/builder.d.ts +4147 -965
- package/dist/esm/builder/register/all.js +3 -1
- package/dist/esm/builder/register/all.js.map +1 -1
- package/dist/esm/builder/register/chartType/boxplot.d.ts +1 -0
- package/dist/esm/builder/register/chartType/boxplot.js +9 -0
- package/dist/esm/builder/register/chartType/boxplot.js.map +1 -0
- package/dist/esm/builder/register/chartType/histogram.d.ts +1 -0
- package/dist/esm/builder/register/chartType/histogram.js +9 -0
- package/dist/esm/builder/register/chartType/histogram.js.map +1 -0
- package/dist/esm/builder/register/chartType/index.d.ts +2 -0
- package/dist/esm/builder/register/chartType/index.js +3 -1
- package/dist/esm/dataReshape/constant.d.ts +10 -0
- package/dist/esm/dataReshape/constant.js +11 -1
- package/dist/esm/dataReshape/constant.js.map +1 -1
- package/dist/esm/dataReshape/unfoldDimensions.js +2 -2
- package/dist/esm/dataReshape/unfoldDimensions.js.map +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +2 -2
- package/dist/esm/pipeline/advanced/chart/pipeline/boxplot.d.ts +2 -0
- package/dist/esm/pipeline/advanced/chart/pipeline/boxplot.js +33 -0
- package/dist/esm/pipeline/advanced/chart/pipeline/boxplot.js.map +1 -0
- package/dist/esm/pipeline/advanced/chart/pipeline/histogram.d.ts +2 -0
- package/dist/esm/pipeline/advanced/chart/pipeline/histogram.js +34 -0
- package/dist/esm/pipeline/advanced/chart/pipeline/histogram.js.map +1 -0
- package/dist/esm/pipeline/advanced/chart/pipeline/index.d.ts +2 -0
- package/dist/esm/pipeline/advanced/chart/pipeline/index.js +3 -1
- package/dist/esm/pipeline/advanced/chart/pipes/config/boxplot.d.ts +2 -0
- package/dist/esm/pipeline/advanced/chart/pipes/config/boxplot.js +31 -0
- package/dist/esm/pipeline/advanced/chart/pipes/config/boxplot.js.map +1 -0
- 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.d.ts +2 -0
- package/dist/esm/pipeline/advanced/chart/pipes/config/histogram.js +33 -0
- package/dist/esm/pipeline/advanced/chart/pipes/config/histogram.js.map +1 -0
- package/dist/esm/pipeline/advanced/chart/pipes/config/index.d.ts +3 -1
- package/dist/esm/pipeline/advanced/chart/pipes/config/index.js +3 -1
- package/dist/esm/pipeline/advanced/chart/pipes/config/index.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipes/encoding/boxplot.d.ts +3 -0
- package/dist/esm/pipeline/advanced/chart/pipes/encoding/boxplot.js +80 -0
- package/dist/esm/pipeline/advanced/chart/pipes/encoding/boxplot.js.map +1 -0
- package/dist/esm/pipeline/advanced/chart/pipes/encoding/histogram.d.ts +3 -0
- package/dist/esm/pipeline/advanced/chart/pipes/encoding/histogram.js +78 -0
- package/dist/esm/pipeline/advanced/chart/pipes/encoding/histogram.js.map +1 -0
- package/dist/esm/pipeline/advanced/chart/pipes/encoding/index.d.ts +2 -0
- package/dist/esm/pipeline/advanced/chart/pipes/encoding/index.js +3 -1
- package/dist/esm/pipeline/advanced/chart/pipes/index.d.ts +1 -0
- package/dist/esm/pipeline/advanced/chart/pipes/index.js +1 -0
- package/dist/esm/pipeline/advanced/chart/pipes/measures/buildMeasures.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipes/regressionLine/index.d.ts +1 -0
- package/dist/esm/pipeline/advanced/chart/pipes/regressionLine/index.js +2 -0
- package/dist/esm/pipeline/advanced/chart/pipes/regressionLine/regressionLine.d.ts +2 -0
- package/dist/esm/pipeline/advanced/chart/pipes/regressionLine/regressionLine.js +8 -0
- package/dist/esm/pipeline/advanced/chart/pipes/regressionLine/regressionLine.js.map +1 -0
- package/dist/esm/pipeline/advanced/chart/pipes/reshape/index.d.ts +4 -0
- package/dist/esm/pipeline/advanced/chart/pipes/reshape/index.js +5 -1
- package/dist/esm/pipeline/advanced/chart/pipes/reshape/pivotReshapeWithBoxplotEncoding.d.ts +2 -0
- package/dist/esm/pipeline/advanced/chart/pipes/reshape/pivotReshapeWithBoxplotEncoding.js +96 -0
- package/dist/esm/pipeline/advanced/chart/pipes/reshape/pivotReshapeWithBoxplotEncoding.js.map +1 -0
- package/dist/esm/pipeline/advanced/chart/pipes/reshape/pivotReshapeWithHistogramEncoding.d.ts +2 -0
- package/dist/esm/pipeline/advanced/chart/pipes/reshape/pivotReshapeWithHistogramEncoding.js +96 -0
- package/dist/esm/pipeline/advanced/chart/pipes/reshape/pivotReshapeWithHistogramEncoding.js.map +1 -0
- package/dist/esm/pipeline/advanced/chart/pipes/reshape/reshapeWithBoxplotEncoding.d.ts +2 -0
- package/dist/esm/pipeline/advanced/chart/pipes/reshape/reshapeWithBoxplotEncoding.js +84 -0
- package/dist/esm/pipeline/advanced/chart/pipes/reshape/reshapeWithBoxplotEncoding.js.map +1 -0
- package/dist/esm/pipeline/advanced/chart/pipes/reshape/reshapeWithHistogramEncoding.d.ts +2 -0
- package/dist/esm/pipeline/advanced/chart/pipes/reshape/reshapeWithHistogramEncoding.js +86 -0
- package/dist/esm/pipeline/advanced/chart/pipes/reshape/reshapeWithHistogramEncoding.js.map +1 -0
- package/dist/esm/pipeline/spec/chart/pipeline/bar.js +0 -1
- package/dist/esm/pipeline/spec/chart/pipeline/bar.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/boxplot.d.ts +2 -0
- package/dist/esm/pipeline/spec/chart/pipeline/boxplot.js +52 -0
- package/dist/esm/pipeline/spec/chart/pipeline/boxplot.js.map +1 -0
- package/dist/esm/pipeline/spec/chart/pipeline/dualAxis.js +5 -1
- package/dist/esm/pipeline/spec/chart/pipeline/dualAxis.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/histogram.d.ts +2 -0
- package/dist/esm/pipeline/spec/chart/pipeline/histogram.js +52 -0
- package/dist/esm/pipeline/spec/chart/pipeline/histogram.js.map +1 -0
- package/dist/esm/pipeline/spec/chart/pipeline/index.d.ts +2 -0
- package/dist/esm/pipeline/spec/chart/pipeline/index.js +3 -1
- package/dist/esm/pipeline/spec/chart/pipes/annotation/annotationAreaBand.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/annotation/annotationPoint.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/dataset/datasetBoxplot.d.ts +2 -0
- package/dist/esm/pipeline/spec/chart/pipes/dataset/datasetBoxplot.js +18 -0
- package/dist/esm/pipeline/spec/chart/pipes/dataset/datasetBoxplot.js.map +1 -0
- package/dist/esm/pipeline/spec/chart/pipes/dataset/datasetHistogram.d.ts +2 -0
- package/dist/esm/pipeline/spec/chart/pipes/dataset/datasetHistogram.js +18 -0
- package/dist/esm/pipeline/spec/chart/pipes/dataset/datasetHistogram.js.map +1 -0
- package/dist/esm/pipeline/spec/chart/pipes/dataset/index.d.ts +2 -0
- package/dist/esm/pipeline/spec/chart/pipes/dataset/index.js +3 -1
- package/dist/esm/pipeline/spec/chart/pipes/dataset/progressive.js +4 -8
- package/dist/esm/pipeline/spec/chart/pipes/dataset/progressive.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/index.d.ts +1 -0
- package/dist/esm/pipeline/spec/chart/pipes/index.js +1 -0
- package/dist/esm/pipeline/spec/chart/pipes/init/boxplot.d.ts +2 -0
- package/dist/esm/pipeline/spec/chart/pipes/init/boxplot.js +37 -0
- package/dist/esm/pipeline/spec/chart/pipes/init/boxplot.js.map +1 -0
- package/dist/esm/pipeline/spec/chart/pipes/init/histogram.d.ts +2 -0
- package/dist/esm/pipeline/spec/chart/pipes/init/histogram.js +21 -0
- package/dist/esm/pipeline/spec/chart/pipes/init/histogram.js.map +1 -0
- package/dist/esm/pipeline/spec/chart/pipes/init/index.d.ts +2 -0
- package/dist/esm/pipeline/spec/chart/pipes/init/index.js +3 -1
- package/dist/esm/pipeline/spec/chart/pipes/init/pivot.js +1 -0
- package/dist/esm/pipeline/spec/chart/pipes/init/pivot.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/label/label.d.ts +15 -4
- package/dist/esm/pipeline/spec/chart/pipes/label/label.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/label/labelDualAxis.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/label/labelPie.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/label/labelScatter.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/legend/pivotColorLegend.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/legend/pivotDiscreteLegend.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/markStyle/pointState.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/pivotChart/pivotColumnDimensions.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/pivotChart/pivotGridStyle.js +49 -14
- package/dist/esm/pipeline/spec/chart/pipes/pivotChart/pivotGridStyle.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/pivotChart/pivotIndicators.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/pivotChart/pivotRowDimensions.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/regressionLine/histogramRegressionLine.d.ts +2 -0
- package/dist/esm/pipeline/spec/chart/pipes/regressionLine/histogramRegressionLine.js +126 -0
- package/dist/esm/pipeline/spec/chart/pipes/regressionLine/histogramRegressionLine.js.map +1 -0
- package/dist/esm/pipeline/spec/chart/pipes/regressionLine/index.d.ts +1 -0
- package/dist/esm/pipeline/spec/chart/pipes/regressionLine/index.js +1 -0
- package/dist/esm/pipeline/spec/chart/pipes/stack/stackCornerRadius.js +1 -0
- package/dist/esm/pipeline/spec/chart/pipes/stack/stackCornerRadius.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/tooltip/index.d.ts +2 -0
- package/dist/esm/pipeline/spec/chart/pipes/tooltip/index.js +3 -1
- package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltipBoxplot.d.ts +2 -0
- package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltipBoxplot.js +98 -0
- package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltipBoxplot.js.map +1 -0
- package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltipHistogram.d.ts +2 -0
- package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltipHistogram.js +69 -0
- package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltipHistogram.js.map +1 -0
- package/dist/esm/pipeline/spec/table/pipes/columns/measuresToColumns.js.map +1 -1
- package/dist/esm/pipeline/spec/table/pipes/indicators/pivotDataConfig.js +1 -2
- package/dist/esm/pipeline/spec/table/pipes/indicators/pivotDataConfig.js.map +1 -1
- package/dist/esm/pipeline/spec/table/pipes/indicators/pivotIndicators.js.map +1 -1
- package/dist/esm/pipeline/spec/table/pipes/init/pivotTable.js +1 -0
- package/dist/esm/pipeline/spec/table/pipes/init/pivotTable.js.map +1 -1
- package/dist/esm/pipeline/spec/table/pipes/init/table.js +1 -0
- package/dist/esm/pipeline/spec/table/pipes/init/table.js.map +1 -1
- package/dist/esm/pipeline/spec/table/pipes/theme/bodyStyle.js +1 -0
- package/dist/esm/pipeline/spec/table/pipes/theme/bodyStyle.js.map +1 -1
- package/dist/esm/pipeline/spec/table/pipes/theme/cornerHeaderStyle.js.map +1 -1
- package/dist/esm/pipeline/spec/table/pipes/theme/frameStyle.js.map +1 -1
- package/dist/esm/pipeline/spec/table/pipes/theme/headerStyle.js.map +1 -1
- package/dist/esm/pipeline/spec/table/pipes/theme/rowHeaderStyle.js.map +1 -1
- package/dist/esm/pipeline/spec/table/pipes/theme/scrollStyle.js.map +1 -1
- package/dist/esm/pipeline/spec/table/pipes/theme/selectionStyle.js.map +1 -1
- package/dist/esm/pipeline/spec/table/pipes/theme/type.d.ts +13 -0
- package/dist/esm/pipeline/spec/table/pipes/theme/type.js +0 -0
- package/dist/esm/pipeline/utils/constant.d.ts +2 -0
- package/dist/esm/pipeline/utils/constant.js +3 -1
- package/dist/esm/pipeline/utils/constant.js.map +1 -1
- package/dist/esm/theme/common/regressionLine.d.ts +4 -0
- package/dist/esm/theme/common/regressionLine.js +16 -0
- package/dist/esm/theme/common/regressionLine.js.map +1 -0
- package/dist/esm/theme/common/table.d.ts +17 -8
- package/dist/esm/theme/common/table.js +11 -8
- package/dist/esm/theme/common/table.js.map +1 -1
- package/dist/esm/theme/dark/dark.js +18 -0
- package/dist/esm/theme/dark/dark.js.map +1 -1
- package/dist/esm/theme/light/light.js +18 -0
- package/dist/esm/theme/light/light.js.map +1 -1
- package/dist/esm/types/advancedVSeed.d.ts +1441 -17
- package/dist/esm/types/advancedVSeed.js +3 -2
- package/dist/esm/types/advancedVSeed.js.map +1 -1
- package/dist/esm/types/chartType/area/zArea.d.ts +9 -0
- package/dist/esm/types/chartType/areaPercent/zAreaPercent.d.ts +9 -0
- package/dist/esm/types/chartType/bar/zBar.d.ts +9 -0
- package/dist/esm/types/chartType/barParallel/zBarParallel.d.ts +9 -0
- package/dist/esm/types/chartType/barPercent/zBarPercent.d.ts +9 -0
- package/dist/esm/types/chartType/boxplot/boxplot.d.ts +144 -0
- package/dist/esm/types/chartType/boxplot/boxplot.js +0 -0
- package/dist/esm/types/chartType/boxplot/index.d.ts +2 -0
- package/dist/esm/types/chartType/boxplot/index.js +1 -0
- package/dist/esm/types/chartType/boxplot/zBoxplot.d.ts +1185 -0
- package/dist/esm/types/chartType/boxplot/zBoxplot.js +30 -0
- package/dist/esm/types/chartType/boxplot/zBoxplot.js.map +1 -0
- package/dist/esm/types/chartType/column/zColumn.d.ts +25 -0
- package/dist/esm/types/chartType/column/zColumn.js +3 -1
- package/dist/esm/types/chartType/column/zColumn.js.map +1 -1
- package/dist/esm/types/chartType/columnParallel/zColumnParallel.d.ts +9 -0
- package/dist/esm/types/chartType/columnPercent/zColumnPercent.d.ts +9 -0
- package/dist/esm/types/chartType/donut/zDonut.d.ts +9 -0
- package/dist/esm/types/chartType/funnel/zFunnel.d.ts +9 -0
- package/dist/esm/types/chartType/histogram/histogram.d.ts +127 -0
- package/dist/esm/types/chartType/histogram/histogram.js +0 -0
- package/dist/esm/types/chartType/histogram/index.d.ts +2 -0
- package/dist/esm/types/chartType/histogram/index.js +1 -0
- package/dist/esm/types/chartType/histogram/zHistogram.d.ts +1377 -0
- package/dist/esm/types/chartType/histogram/zHistogram.js +32 -0
- package/dist/esm/types/chartType/histogram/zHistogram.js.map +1 -0
- package/dist/esm/types/chartType/index.d.ts +3 -0
- package/dist/esm/types/chartType/index.js +2 -0
- package/dist/esm/types/chartType/line/zLine.d.ts +9 -0
- package/dist/esm/types/chartType/pie/zPie.d.ts +9 -0
- package/dist/esm/types/chartType/radar/zRadar.d.ts +9 -0
- package/dist/esm/types/chartType/rose/zRose.d.ts +9 -0
- package/dist/esm/types/chartType/roseParallel/zRoseParallel.d.ts +9 -0
- package/dist/esm/types/chartType/scatter/zScatter.d.ts +9 -0
- package/dist/esm/types/properties/chartType/chartType.d.ts +3 -1
- package/dist/esm/types/properties/chartType/chartType.js +3 -1
- package/dist/esm/types/properties/chartType/chartType.js.map +1 -1
- package/dist/esm/types/properties/config/area.d.ts +4 -0
- package/dist/esm/types/properties/config/bar.d.ts +6 -0
- package/dist/esm/types/properties/config/boxplot.d.ts +326 -0
- package/dist/esm/types/properties/config/boxplot.js +27 -0
- package/dist/esm/types/properties/config/boxplot.js.map +1 -0
- package/dist/esm/types/properties/config/column.d.ts +6 -0
- package/dist/esm/types/properties/config/config.d.ts +697 -0
- package/dist/esm/types/properties/config/config.js +5 -1
- package/dist/esm/types/properties/config/config.js.map +1 -1
- package/dist/esm/types/properties/config/dualAxis.d.ts +2 -0
- package/dist/esm/types/properties/config/funnel.d.ts +2 -0
- package/dist/esm/types/properties/config/heatmap.d.ts +2 -0
- package/dist/esm/types/properties/config/histogram.d.ts +339 -0
- package/dist/esm/types/properties/config/histogram.js +32 -0
- package/dist/esm/types/properties/config/histogram.js.map +1 -0
- package/dist/esm/types/properties/config/index.d.ts +1 -0
- package/dist/esm/types/properties/config/index.js +1 -0
- package/dist/esm/types/properties/config/line.d.ts +2 -0
- package/dist/esm/types/properties/config/pie.d.ts +6 -0
- package/dist/esm/types/properties/config/pivotGrid/pivotGrid.d.ts +2 -0
- package/dist/esm/types/properties/config/pivotGrid/pivotGrid.js +3 -1
- package/dist/esm/types/properties/config/pivotGrid/pivotGrid.js.map +1 -1
- package/dist/esm/types/properties/config/rose.d.ts +4 -0
- package/dist/esm/types/properties/config/scatter.d.ts +2 -0
- package/dist/esm/types/properties/config/whiskers/index.d.ts +3 -0
- package/dist/esm/types/properties/config/whiskers/index.js +5 -0
- package/dist/esm/types/properties/config/whiskers/index.js.map +1 -0
- package/dist/esm/types/properties/encoding/encoding.d.ts +36 -0
- package/dist/esm/types/properties/encoding/measureEncoding.d.ts +1 -1
- package/dist/esm/types/properties/encoding/zEncoding.d.ts +9 -0
- package/dist/esm/types/properties/encoding/zEncoding.js +10 -1
- package/dist/esm/types/properties/encoding/zEncoding.js.map +1 -1
- package/dist/esm/types/properties/index.d.ts +1 -0
- package/dist/esm/types/properties/index.js +1 -0
- package/dist/esm/types/properties/regressionLine/histogramRegressionLine.d.ts +45 -0
- package/dist/esm/types/properties/regressionLine/histogramRegressionLine.js +0 -0
- package/dist/esm/types/properties/regressionLine/index.d.ts +2 -0
- package/dist/esm/types/properties/regressionLine/index.js +1 -0
- package/dist/esm/types/properties/regressionLine/zHistogramRegressionLine.d.ts +11 -0
- package/dist/esm/types/properties/regressionLine/zHistogramRegressionLine.js +17 -0
- package/dist/esm/types/properties/regressionLine/zHistogramRegressionLine.js.map +1 -0
- package/dist/esm/types/properties/theme/customTheme.d.ts +1935 -541
- package/dist/esm/types/vseed.d.ts +2 -2
- package/dist/esm/types/zVseed.d.ts +2717 -0
- package/dist/esm/types/zVseed.js +4 -2
- package/dist/esm/types/zVseed.js.map +1 -1
- package/dist/umd/index.js +1748 -140
- package/dist/umd/index.js.map +1 -1
- package/package.json +6 -4
|
@@ -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, zMarkStyle } from "./properties/index.js";
|
|
10
|
+
import { zAnalysis, zAnnotation, zHistogramRegressionLine, zMarkStyle } from "./properties/index.js";
|
|
11
11
|
import { zLocale } from "./i18n/index.js";
|
|
12
12
|
const zAdvancedVSeed = z.object({
|
|
13
13
|
chartType: zChartType,
|
|
@@ -22,7 +22,8 @@ const zAdvancedVSeed = z.object({
|
|
|
22
22
|
markStyle: zMarkStyle,
|
|
23
23
|
customTheme: zCustomThemeConfig,
|
|
24
24
|
annotation: zAnnotation,
|
|
25
|
-
locale: zLocale
|
|
25
|
+
locale: zLocale,
|
|
26
|
+
histogramRegressionLine: zHistogramRegressionLine.or(z.array(zHistogramRegressionLine)).nullish()
|
|
26
27
|
});
|
|
27
28
|
export { zAdvancedVSeed };
|
|
28
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, 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})\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"],"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;
|
|
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, zHistogramRegressionLine, 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 histogramRegressionLine: zHistogramRegressionLine.or(z.array(zHistogramRegressionLine)).nullish(),\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","zHistogramRegressionLine"],"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,yBAAyBC,yBAAyB,EAAE,CAACd,EAAE,KAAK,CAACc,2BAA2B,OAAO;AACjG"}
|
|
@@ -15,6 +15,15 @@ export declare const zArea: z.ZodObject<{
|
|
|
15
15
|
row: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
16
16
|
column: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
17
17
|
group: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
18
|
+
value: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
19
|
+
q1: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
20
|
+
q3: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
21
|
+
median: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
22
|
+
min: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
23
|
+
max: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
24
|
+
outliers: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
25
|
+
x0: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
26
|
+
x1: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
18
27
|
}, z.core.$strip>>>;
|
|
19
28
|
dimensions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
20
29
|
id: z.ZodString;
|
|
@@ -15,6 +15,15 @@ export declare const zAreaPercent: z.ZodObject<{
|
|
|
15
15
|
row: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
16
16
|
column: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
17
17
|
group: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
18
|
+
value: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
19
|
+
q1: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
20
|
+
q3: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
21
|
+
median: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
22
|
+
min: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
23
|
+
max: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
24
|
+
outliers: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
25
|
+
x0: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
26
|
+
x1: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
18
27
|
}, z.core.$strip>>>;
|
|
19
28
|
dimensions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
20
29
|
id: z.ZodString;
|
|
@@ -15,6 +15,15 @@ export declare const zBar: z.ZodObject<{
|
|
|
15
15
|
row: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
16
16
|
column: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
17
17
|
group: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
18
|
+
value: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
19
|
+
q1: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
20
|
+
q3: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
21
|
+
median: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
22
|
+
min: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
23
|
+
max: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
24
|
+
outliers: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
25
|
+
x0: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
26
|
+
x1: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
18
27
|
}, z.core.$strip>>>;
|
|
19
28
|
dimensions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
20
29
|
id: z.ZodString;
|
|
@@ -15,6 +15,15 @@ export declare const zBarParallel: z.ZodObject<{
|
|
|
15
15
|
row: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
16
16
|
column: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
17
17
|
group: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
18
|
+
value: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
19
|
+
q1: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
20
|
+
q3: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
21
|
+
median: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
22
|
+
min: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
23
|
+
max: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
24
|
+
outliers: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
25
|
+
x0: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
26
|
+
x1: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
18
27
|
}, z.core.$strip>>>;
|
|
19
28
|
dimensions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
20
29
|
id: z.ZodString;
|
|
@@ -15,6 +15,15 @@ export declare const zBarPercent: z.ZodObject<{
|
|
|
15
15
|
row: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
16
16
|
column: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
17
17
|
group: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
18
|
+
value: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
19
|
+
q1: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
20
|
+
q3: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
21
|
+
median: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
22
|
+
min: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
23
|
+
max: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
24
|
+
outliers: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
25
|
+
x0: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
26
|
+
x1: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
18
27
|
}, z.core.$strip>>>;
|
|
19
28
|
dimensions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
20
29
|
id: z.ZodString;
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
import type { Locale } from '../../i18n';
|
|
2
|
+
import type { AnnotationArea, AnnotationHorizontalLine, AnnotationPoint, AnnotationVerticalLine, BackgroundColor, Color, CrosshairRect, Dataset, Dimensions, Label, Legend, Theme, Tooltip, XBandAxis, YLinearAxis, MeasureTree, Sort, SortLegend, WhiskersConfig } from '../../properties';
|
|
3
|
+
/**
|
|
4
|
+
* @description 箱线图,适用于展示数据分布情况,X轴为类目轴(分类数据),Y轴为数值轴(连续数据),箱体纵向排列
|
|
5
|
+
* 适用场景:
|
|
6
|
+
* - 数据项名称较短时
|
|
7
|
+
* - 需要直观比较不同类别的数值大小
|
|
8
|
+
* - 展示时间序列数据变化趋势
|
|
9
|
+
* @encoding
|
|
10
|
+
* 箱线图支持以下视觉通道:
|
|
11
|
+
* `xAxis` : x轴通道, 支持`多个维度`, 按维度值映射至x轴
|
|
12
|
+
* `yAxis` : y轴通道, 支持`多个指标`, 按指标值映射至y轴
|
|
13
|
+
* `color` : 颜色通道, 支持`多个维度`或 `一个指标`, 维度颜色用于区分不同的数据系列, 指标颜色用于线性映射指标值到图形颜色
|
|
14
|
+
* `tooltip`: 提示通道, 支持`多个维度`与 `多个指标`, 会在鼠标悬停在数据点上时展示
|
|
15
|
+
* `label` : 标签通道, 支持`多个维度`与 `多个指标`, 会在数据点上展示数据标签
|
|
16
|
+
* @warning
|
|
17
|
+
* 数据要求:
|
|
18
|
+
* - 至少1个数值字段(度量)
|
|
19
|
+
* - 第一个维度会放至X轴, 其余维度会与指标名称(存在多个指标时)合并, 作为图例项展示
|
|
20
|
+
* - 所有指标会自动合并为一个指标
|
|
21
|
+
* 默认开启的功能:
|
|
22
|
+
* - 默认开启图例、坐标轴、数据标签、提示信息
|
|
23
|
+
* @recommend
|
|
24
|
+
* - 推荐字段配置: `1`个指标, `1`个维度
|
|
25
|
+
* - 支持数据重塑: 至少`1`个指标, `0`个维度
|
|
26
|
+
*/
|
|
27
|
+
export interface Boxplot {
|
|
28
|
+
/**
|
|
29
|
+
* @description 箱型图,适用于展示数据分布情况,X轴为类目轴(分类数据),Y轴为数值轴(连续数据),箱体纵向排列
|
|
30
|
+
* @type {'boxPlot'}
|
|
31
|
+
* @example 'boxPlot'
|
|
32
|
+
*/
|
|
33
|
+
chartType: 'boxPlot';
|
|
34
|
+
/**
|
|
35
|
+
* @description 符合TidyData规范的且已经聚合的数据集,用于定义图表的数据来源和结构, 用户输入的数据集并不需要进行任何处理, VSeed带有强大的数据重塑功能, 会自行进行数据重塑, 柱状图的数据最终会被转换为2个维度, 1个指标.
|
|
36
|
+
* @type {Array<Record<string|number, any>>}
|
|
37
|
+
* @example [{category:'A', value:100}, {category:'B', value:200}]
|
|
38
|
+
*/
|
|
39
|
+
dataset: Dataset;
|
|
40
|
+
/**
|
|
41
|
+
* @description 箱线图的第一个维度被映射到X轴, 其余维度会与指标名称(存在多个指标时)合并, 作为图例项展示
|
|
42
|
+
* @type {Dimensions}
|
|
43
|
+
* @example [{id: "category", alias: "类别"}]
|
|
44
|
+
*/
|
|
45
|
+
dimensions?: Dimensions;
|
|
46
|
+
/**
|
|
47
|
+
* @description 箱线图的所有指标会自动合并为一个指标, 映射到Y轴, 存在多个指标时, 指标名称会与其余维度合并, 作为图例项展示.
|
|
48
|
+
* @type {MeasureTree}
|
|
49
|
+
* @example [{id: "value", alias: "数值"}]
|
|
50
|
+
*/
|
|
51
|
+
measures?: MeasureTree;
|
|
52
|
+
/**
|
|
53
|
+
* @description 图表的背景颜色, 背景颜色可以是颜色字符串, 默认为透明背景, 例如'red', 'blue', 也可以是hex, rgb或rgba'#ff0000', 'rgba(255,0,0,0.5)'
|
|
54
|
+
*/
|
|
55
|
+
backgroundColor?: BackgroundColor;
|
|
56
|
+
/**
|
|
57
|
+
* @description 颜色配置, 用于定义图表的颜色方案, 包括颜色列表, 颜色映射, 颜色渐变等.
|
|
58
|
+
*/
|
|
59
|
+
color?: Color;
|
|
60
|
+
/**
|
|
61
|
+
* @description 标签配置, 用于定义图表的数据标签, 包括数据标签的位置, 格式, 样式等.
|
|
62
|
+
*/
|
|
63
|
+
label?: Label;
|
|
64
|
+
/**
|
|
65
|
+
* @description 图例配置, 用于定义图表的图例, 包括图例的位置, 格式, 样式等.
|
|
66
|
+
*/
|
|
67
|
+
legend?: Legend;
|
|
68
|
+
/**
|
|
69
|
+
* @description 提示信息配置, 用于定义图表的提示信息, 包括提示信息的位置, 格式, 样式等.
|
|
70
|
+
*/
|
|
71
|
+
tooltip?: Tooltip;
|
|
72
|
+
/**
|
|
73
|
+
* @description x轴, 类目轴, x轴配置, 用于定义图表的x轴, 包括x轴的位置, 格式, 样式等.
|
|
74
|
+
*/
|
|
75
|
+
xAxis?: XBandAxis;
|
|
76
|
+
/**
|
|
77
|
+
* @description y轴, 数值轴, y轴配置, 用于定义图表的y轴, 包括y轴的位置, 格式, 样式等.
|
|
78
|
+
*/
|
|
79
|
+
yAxis?: YLinearAxis;
|
|
80
|
+
/**
|
|
81
|
+
* @description X轴排序配置, 支持根据维度或指标排序, 以及自定义排序顺序
|
|
82
|
+
* @example
|
|
83
|
+
* sort: {
|
|
84
|
+
* orderBy: 'profit',
|
|
85
|
+
* order: 'asc',
|
|
86
|
+
* }
|
|
87
|
+
* sort: {
|
|
88
|
+
* customOrder:['2019', '2020', '2021']
|
|
89
|
+
* }
|
|
90
|
+
*/
|
|
91
|
+
sort?: Sort;
|
|
92
|
+
/**
|
|
93
|
+
* @description 图例排序配置, 支持根据维度或指标排序, 以及自定义排序顺序
|
|
94
|
+
* @example
|
|
95
|
+
* sortLegend: {
|
|
96
|
+
* orderBy: 'profit',
|
|
97
|
+
* order: 'asc',
|
|
98
|
+
* }
|
|
99
|
+
* sortLegend: {
|
|
100
|
+
* customOrder:['2019', '2020', '2021']
|
|
101
|
+
* }
|
|
102
|
+
*/
|
|
103
|
+
sortLegend?: SortLegend;
|
|
104
|
+
/**
|
|
105
|
+
* @description 图表的主题, 主题是优先级较低的功能配置, 包含所有图表类型共用的通用配置, 与单类图表类型共用的图表配置, 内置light与dark两种主题, 用户可以通过Builder自定义主题
|
|
106
|
+
* @default light 默认为亮色主题
|
|
107
|
+
* @example 'dark'
|
|
108
|
+
* @example 'light'
|
|
109
|
+
* @example 'customThemeName'
|
|
110
|
+
*/
|
|
111
|
+
theme?: Theme;
|
|
112
|
+
/**
|
|
113
|
+
* @description 垂直提示框配置, 用于定义图表的垂直提示框, 包括垂直提示框的颜色、标签样式等.
|
|
114
|
+
*/
|
|
115
|
+
crosshairRect?: CrosshairRect;
|
|
116
|
+
/**
|
|
117
|
+
* @description 直方图的须长配置,支持标量值和长度为2 的数组
|
|
118
|
+
* 当值为标量的时候,使用 whiskers * IQR 来计算上界值和下界值
|
|
119
|
+
* 当值为2元数组的时候,whiskers[0] 需要在[0, 0.25)之间,表示下界值取对应的百分位数;
|
|
120
|
+
* whiskers[1] 需要在(0.75, 1]之间,表示上界值取对应的百分位数;
|
|
121
|
+
*/
|
|
122
|
+
whiskers?: WhiskersConfig;
|
|
123
|
+
/**
|
|
124
|
+
* @description 标注点配置, 根据选择的数据, 定义图表的标注点, 包括标注点的位置, 格式, 样式等.
|
|
125
|
+
*/
|
|
126
|
+
annotationPoint?: AnnotationPoint | AnnotationPoint[];
|
|
127
|
+
/**
|
|
128
|
+
* @description 标注垂直线配置, 根据选择的数据, 定义图表的标注垂直线, 包括标注垂直线的位置, 样式等.
|
|
129
|
+
*/
|
|
130
|
+
annotationVerticalLine?: AnnotationVerticalLine | AnnotationVerticalLine[];
|
|
131
|
+
/**
|
|
132
|
+
* @description 标注水平线配置, 根据选择的数据, 定义图表的标注水平线, 包括标注水平线的位置, 样式等.
|
|
133
|
+
*/
|
|
134
|
+
annotationHorizontalLine?: AnnotationHorizontalLine | AnnotationHorizontalLine[];
|
|
135
|
+
/**
|
|
136
|
+
* @description 标注区域配置, 根据选择的数据, 定义图表的标注区域, 包括标注区域的位置, 样式等.
|
|
137
|
+
*/
|
|
138
|
+
annotationArea?: AnnotationArea | AnnotationArea[];
|
|
139
|
+
/**
|
|
140
|
+
* @description 图表语言配置, 支持'zh-CN'与'en-US'两种语言, 另外可以调用 intl.setLocale('zh-CN') 方法设置语言
|
|
141
|
+
* @default 'zh-CN'
|
|
142
|
+
*/
|
|
143
|
+
locale?: Locale;
|
|
144
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./zBoxplot.js";
|