@visactor/vseed 0.1.5 → 0.1.7
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/builder/builder/builder.d.ts +2 -4
- package/dist/index.cjs +574 -498
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +574 -498
- package/dist/index.js.map +1 -1
- package/dist/pipeline/advanced/chart/pipes/{init/autoDimensions.d.ts → default/defaultDimensions.d.ts} +1 -1
- package/dist/pipeline/advanced/{table/pipes/init/autoMeasures.d.ts → chart/pipes/default/defaultMeasureName.d.ts} +1 -1
- package/dist/pipeline/advanced/chart/pipes/default/defaultMeasures.d.ts +5 -0
- package/dist/pipeline/advanced/chart/pipes/default/index.d.ts +3 -0
- package/dist/pipeline/advanced/chart/pipes/encoding/bar.d.ts +19 -0
- package/dist/pipeline/advanced/chart/pipes/encoding/column.d.ts +19 -0
- package/dist/pipeline/advanced/chart/pipes/encoding/dualAxis.d.ts +19 -0
- package/dist/pipeline/advanced/chart/pipes/encoding/funnel.d.ts +17 -0
- package/dist/pipeline/advanced/chart/pipes/encoding/heatmap.d.ts +19 -0
- package/dist/pipeline/advanced/chart/pipes/encoding/line.d.ts +18 -0
- package/dist/pipeline/advanced/chart/pipes/encoding/pie.d.ts +18 -0
- package/dist/pipeline/advanced/chart/pipes/encoding/radar.d.ts +19 -0
- package/dist/pipeline/advanced/chart/pipes/encoding/rose.d.ts +19 -0
- package/dist/pipeline/advanced/chart/pipes/encoding/scatter.d.ts +18 -0
- package/dist/pipeline/advanced/chart/pipes/index.d.ts +1 -0
- package/dist/pipeline/advanced/chart/pipes/init/index.d.ts +0 -2
- package/dist/pipeline/advanced/chart/pipes/measures/utils.d.ts +3 -18
- package/dist/pipeline/advanced/table/pipes/{init/autoPivotMeasures.d.ts → default/defaultDimensions.d.ts} +1 -1
- package/dist/pipeline/advanced/table/pipes/default/defaultMeasureName.d.ts +2 -0
- package/dist/pipeline/advanced/table/pipes/default/defaultMeasures.d.ts +5 -0
- package/dist/pipeline/advanced/table/pipes/default/index.d.ts +3 -0
- package/dist/pipeline/advanced/table/pipes/encoding/index.d.ts +1 -0
- package/dist/pipeline/advanced/table/pipes/encoding/pivotTable.d.ts +2 -0
- package/dist/pipeline/advanced/table/pipes/index.d.ts +3 -0
- package/dist/pipeline/advanced/table/pipes/init/index.d.ts +0 -3
- package/dist/pipeline/advanced/table/pipes/reshape/index.d.ts +1 -0
- package/dist/pipeline/advanced/table/pipes/{init/autoDimensions.d.ts → reshape/reshapePivotTable.d.ts} +1 -1
- package/dist/types/advancedVSeed.d.ts +2 -5
- package/dist/types/chartType/area/area.d.ts +19 -3
- package/dist/types/chartType/area/zArea.d.ts +2 -5
- package/dist/types/chartType/areaPercent/areaPercent.d.ts +15 -1
- package/dist/types/chartType/areaPercent/zAreaPercent.d.ts +2 -5
- package/dist/types/chartType/bar/bar.d.ts +17 -1
- package/dist/types/chartType/bar/zBar.d.ts +2 -5
- package/dist/types/chartType/barParallel/barParallel.d.ts +17 -1
- package/dist/types/chartType/barParallel/zBarParallel.d.ts +2 -5
- package/dist/types/chartType/barPercent/barPercent.d.ts +17 -1
- package/dist/types/chartType/barPercent/zBarPercent.d.ts +2 -5
- package/dist/types/chartType/column/column.d.ts +17 -1
- package/dist/types/chartType/column/zColumn.d.ts +2 -5
- package/dist/types/chartType/columnParallel/columnParallel.d.ts +17 -1
- package/dist/types/chartType/columnParallel/zColumnParallel.d.ts +2 -5
- package/dist/types/chartType/columnPercent/columnPercent.d.ts +17 -1
- package/dist/types/chartType/columnPercent/zColumnPercent.d.ts +2 -5
- package/dist/types/chartType/donut/donut.d.ts +16 -1
- package/dist/types/chartType/donut/zDonut.d.ts +2 -5
- package/dist/types/chartType/dualAxis/dualAxis.d.ts +17 -1
- package/dist/types/chartType/dualAxis/zDualAxis.d.ts +10 -5
- package/dist/types/chartType/funnel/funnel.d.ts +15 -1
- package/dist/types/chartType/funnel/zFunnel.d.ts +2 -5
- package/dist/types/chartType/heatmap/heatmap.d.ts +17 -1
- package/dist/types/chartType/heatmap/zHeatmap.d.ts +2 -5
- package/dist/types/chartType/line/line.d.ts +16 -4
- package/dist/types/chartType/line/zLine.d.ts +2 -5
- package/dist/types/chartType/pie/pie.d.ts +16 -1
- package/dist/types/chartType/pie/zPie.d.ts +2 -5
- package/dist/types/chartType/pivotTable/pivotTable.d.ts +10 -3
- package/dist/types/chartType/pivotTable/zPivotTable.d.ts +2 -5
- package/dist/types/chartType/radar/radar.d.ts +17 -1
- package/dist/types/chartType/radar/zRadar.d.ts +2 -5
- package/dist/types/chartType/rose/rose.d.ts +17 -1
- package/dist/types/chartType/rose/zRose.d.ts +2 -5
- package/dist/types/chartType/roseParallel/roseParallel.d.ts +17 -1
- package/dist/types/chartType/roseParallel/zRoseParallel.d.ts +2 -5
- package/dist/types/chartType/scatter/scatter.d.ts +16 -1
- package/dist/types/chartType/scatter/zScatter.d.ts +10 -5
- package/dist/types/chartType/table/table.d.ts +2 -0
- package/dist/types/chartType/table/zTable.d.ts +2 -5
- package/dist/types/properties/dimensions/dimensions.d.ts +0 -4
- package/dist/types/properties/dimensions/zDimensions.d.ts +0 -15
- package/dist/types/properties/measures/measures.d.ts +3 -1
- package/dist/types/properties/measures/zDualMeasures.d.ts +16 -0
- package/dist/types/properties/measures/zMeasures.d.ts +6 -0
- package/dist/types/properties/measures/zScatterMeasures.d.ts +16 -0
- package/dist/types/zVseed.d.ts +56 -100
- package/dist/umd/index.js +606 -530
- package/dist/umd/index.js.map +1 -1
- package/package.json +2 -2
- package/dist/pipeline/advanced/chart/pipes/init/utils.d.ts +0 -2
@@ -2,12 +2,28 @@ import { type Locale } from '../../i18n';
|
|
2
2
|
import type { AreaStyle, Encoding, LineStyle, MeasureTree, PointStyle } from '../../properties';
|
3
3
|
import { type BackgroundColor, type Color, type Dataset, type Dimensions, type Label, type Legend, type Theme, type Tooltip } from '../../properties';
|
4
4
|
/**
|
5
|
-
* 雷达图类型定义
|
6
5
|
* @description 雷达图,适用于多维度数据的对比分析,通过多轴坐标系展示各维度的数值分布
|
7
6
|
* 适用场景:
|
8
7
|
* - 多维度数据的综合表现对比
|
9
8
|
* - 多个对象在多个指标上的性能评估
|
10
9
|
* - 分类数据的多维度特征展示
|
10
|
+
* @encoding
|
11
|
+
* 维度未包含任何`encoding`, 则使用默认映射规则:
|
12
|
+
* 1. angle: 第一个维度映射至angle轴
|
13
|
+
* 2. color: 非`Angle`轴所有维度与指标名称, 合并映射至颜色通道, 作为图例展示
|
14
|
+
* 3. detail: 非`Angle`轴所有维度与指标名称, 映射至Detail通道
|
15
|
+
* 指标未包含任何`encoding`, 则使用默认映射规则:
|
16
|
+
* 1. radius: 全部指标映射至radius轴
|
17
|
+
* 2. tooltip: 全部指标映射至Tooltip
|
18
|
+
*
|
19
|
+
* 维度映射规则:
|
20
|
+
* 1. 用户指定的`angle`维度映射至angle轴, 支持多个维度; 若未指定, 则默认将第一个维度映射至angle轴
|
21
|
+
* 2. 用户指定的`color`维度映射至颜色通道, 支持多个维度; 若未指定, 则默认将指标名称映射至颜色通道, 作为图例展示
|
22
|
+
* 3. 用户指定的`detail`维度映射至Detail通道, 支持多个维度; 若未指定, 则默认将指标名称映射至Detail通道
|
23
|
+
* 指标映射规则:
|
24
|
+
* 1. 指标未配置`encoding`, 则默认映射至radius轴;
|
25
|
+
* 2. 用户指定的`radius`指标映射至radius轴, 支持多个指标;
|
26
|
+
* 3. 所有指标均映射到Tooltip
|
11
27
|
* @warning
|
12
28
|
* 数据要求:
|
13
29
|
* - 至少1个数值字段(度量)
|
@@ -19,11 +19,6 @@ export declare const zRadar: z.ZodObject<{
|
|
19
19
|
dimensions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
20
20
|
id: z.ZodString;
|
21
21
|
alias: z.ZodOptional<z.ZodString>;
|
22
|
-
location: z.ZodDefault<z.ZodEnum<{
|
23
|
-
dimension: "dimension";
|
24
|
-
rowDimension: "rowDimension";
|
25
|
-
columnDimension: "columnDimension";
|
26
|
-
}>>;
|
27
22
|
encoding: z.ZodOptional<z.ZodEnum<{
|
28
23
|
column: "column";
|
29
24
|
xAxis: "xAxis";
|
@@ -71,10 +66,12 @@ export declare const zRadar: z.ZodObject<{
|
|
71
66
|
}>>>;
|
72
67
|
}, z.core.$strip>>>;
|
73
68
|
encoding: z.ZodOptional<z.ZodEnum<{
|
69
|
+
column: "column";
|
74
70
|
xAxis: "xAxis";
|
75
71
|
yAxis: "yAxis";
|
76
72
|
angle: "angle";
|
77
73
|
color: "color";
|
74
|
+
detail: "detail";
|
78
75
|
tooltip: "tooltip";
|
79
76
|
label: "label";
|
80
77
|
primaryYAxis: "primaryYAxis";
|
@@ -2,12 +2,28 @@ import { type Locale } from '../../i18n';
|
|
2
2
|
import type { Encoding, MeasureTree } from '../../properties';
|
3
3
|
import { type BackgroundColor, type Color, type Dataset, type Dimensions, type Label, type Legend, type Theme, type Tooltip } from '../../properties';
|
4
4
|
/**
|
5
|
-
* 堆叠玫瑰图类型定义
|
6
5
|
* @description 堆叠玫瑰图,适用于多维度数据对比场景,通过极坐标系下的扇形弧度和半径展示数据大小
|
7
6
|
* 适用场景:
|
8
7
|
* - 多维度数据的分布对比
|
9
8
|
* - 周期性数据的强弱比较
|
10
9
|
* - 分类数据的数值与占比同时展示
|
10
|
+
* @encoding
|
11
|
+
* 维度未包含任何`encoding`, 则使用默认映射规则:
|
12
|
+
* 1. angle: 第一个维度映射至angle轴
|
13
|
+
* 2. color: 非`angle`轴所有维度与指标名称, 合并映射至颜色通道, 作为图例展示
|
14
|
+
* 3. detail: 非`angle`轴所有维度与指标名称, 映射至Detail通道
|
15
|
+
* 指标未包含任何`encoding`, 则使用默认映射规则:
|
16
|
+
* 1. radius: 全部指标映射至radius轴
|
17
|
+
* 2. tooltip: 全部指标映射至Tooltip
|
18
|
+
*
|
19
|
+
* 维度映射规则:
|
20
|
+
* 1. 用户指定的`angle`维度映射至angle轴, 支持多个维度; 若未指定, 则默认将第一个维度映射至angle轴
|
21
|
+
* 2. 用户指定的`color`维度映射至颜色通道, 支持多个维度; 若未指定, 则默认将指标名称映射至颜色通道, 作为图例展示
|
22
|
+
* 3. 用户指定的`detail`维度映射至Detail通道, 支持多个维度; 若未指定, 则默认将指标名称映射至Detail通道
|
23
|
+
* 指标映射规则:
|
24
|
+
* 1. 指标未配置`encoding`, 则默认映射至Y轴;
|
25
|
+
* 2. 用户指定的`radius`指标映射至radius轴, 支持多个指标;
|
26
|
+
* 3. 所有指标均映射到Tooltip
|
11
27
|
* @warning
|
12
28
|
* 数据要求:
|
13
29
|
* - 至少1个数值字段(度量)
|
@@ -19,11 +19,6 @@ export declare const zRose: z.ZodObject<{
|
|
19
19
|
dimensions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
20
20
|
id: z.ZodString;
|
21
21
|
alias: z.ZodOptional<z.ZodString>;
|
22
|
-
location: z.ZodDefault<z.ZodEnum<{
|
23
|
-
dimension: "dimension";
|
24
|
-
rowDimension: "rowDimension";
|
25
|
-
columnDimension: "columnDimension";
|
26
|
-
}>>;
|
27
22
|
encoding: z.ZodOptional<z.ZodEnum<{
|
28
23
|
column: "column";
|
29
24
|
xAxis: "xAxis";
|
@@ -71,10 +66,12 @@ export declare const zRose: z.ZodObject<{
|
|
71
66
|
}>>>;
|
72
67
|
}, z.core.$strip>>>;
|
73
68
|
encoding: z.ZodOptional<z.ZodEnum<{
|
69
|
+
column: "column";
|
74
70
|
xAxis: "xAxis";
|
75
71
|
yAxis: "yAxis";
|
76
72
|
angle: "angle";
|
77
73
|
color: "color";
|
74
|
+
detail: "detail";
|
78
75
|
tooltip: "tooltip";
|
79
76
|
label: "label";
|
80
77
|
primaryYAxis: "primaryYAxis";
|
@@ -2,12 +2,28 @@ import { type Locale } from '../../i18n';
|
|
2
2
|
import type { Encoding, MeasureTree } from '../../properties';
|
3
3
|
import { type BackgroundColor, type Color, type Dataset, type Dimensions, type Label, type Legend, type Theme, type Tooltip } from '../../properties';
|
4
4
|
/**
|
5
|
-
* 分组玫瑰图类型定义
|
6
5
|
* @description 分组玫瑰图,适用于多维度数据对比场景,通过极坐标系下的扇形弧度和半径展示数据大小
|
7
6
|
* 适用场景:
|
8
7
|
* - 多维度数据的分布对比
|
9
8
|
* - 周期性数据的强弱比较
|
10
9
|
* - 分类数据的数值与占比同时展示
|
10
|
+
* @encoding
|
11
|
+
* 维度未包含任何`encoding`, 则使用默认映射规则:
|
12
|
+
* 1. angle: 第一个维度映射至angle轴
|
13
|
+
* 2. color: 非`angle`轴所有维度与指标名称, 合并映射至颜色通道, 作为图例展示
|
14
|
+
* 3. detail: 非`angle`轴所有维度与指标名称, 映射至Detail通道
|
15
|
+
* 指标未包含任何`encoding`, 则使用默认映射规则:
|
16
|
+
* 1. radius: 全部指标映射至radius轴
|
17
|
+
* 2. tooltip: 全部指标映射至Tooltip
|
18
|
+
*
|
19
|
+
* 维度映射规则:
|
20
|
+
* 1. 用户指定的`angle`维度映射至angle轴, 支持多个维度; 若未指定, 则默认将第一个维度映射至angle轴
|
21
|
+
* 2. 用户指定的`color`维度映射至颜色通道, 支持多个维度; 若未指定, 则默认将指标名称映射至颜色通道, 作为图例展示
|
22
|
+
* 3. 用户指定的`detail`维度映射至Detail通道, 支持多个维度; 若未指定, 则默认将指标名称映射至Detail通道
|
23
|
+
* 指标映射规则:
|
24
|
+
* 1. 指标未配置`encoding`, 则默认映射至Y轴;
|
25
|
+
* 2. 用户指定的`radius`指标映射至radius轴, 支持多个指标;
|
26
|
+
* 3. 所有指标均映射到Tooltip
|
11
27
|
* @warning
|
12
28
|
* 数据要求:
|
13
29
|
* - 至少1个数值字段(度量)
|
@@ -19,11 +19,6 @@ export declare const zRoseParallel: z.ZodObject<{
|
|
19
19
|
dimensions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
20
20
|
id: z.ZodString;
|
21
21
|
alias: z.ZodOptional<z.ZodString>;
|
22
|
-
location: z.ZodDefault<z.ZodEnum<{
|
23
|
-
dimension: "dimension";
|
24
|
-
rowDimension: "rowDimension";
|
25
|
-
columnDimension: "columnDimension";
|
26
|
-
}>>;
|
27
22
|
encoding: z.ZodOptional<z.ZodEnum<{
|
28
23
|
column: "column";
|
29
24
|
xAxis: "xAxis";
|
@@ -71,10 +66,12 @@ export declare const zRoseParallel: z.ZodObject<{
|
|
71
66
|
}>>>;
|
72
67
|
}, z.core.$strip>>>;
|
73
68
|
encoding: z.ZodOptional<z.ZodEnum<{
|
69
|
+
column: "column";
|
74
70
|
xAxis: "xAxis";
|
75
71
|
yAxis: "yAxis";
|
76
72
|
angle: "angle";
|
77
73
|
color: "color";
|
74
|
+
detail: "detail";
|
78
75
|
tooltip: "tooltip";
|
79
76
|
label: "label";
|
80
77
|
primaryYAxis: "primaryYAxis";
|
@@ -1,10 +1,25 @@
|
|
1
1
|
import type { Locale } from '../../i18n';
|
2
2
|
import type { AnnotationArea, AnnotationHorizontalLine, AnnotationPoint, AnnotationVerticalLine, BackgroundColor, Color, Dataset, Dimensions, Label, Legend, PointStyle, Theme, Tooltip, CrosshairLine, YLinearAxis, XLinearAxis, MeasureTree, Encoding, ScatterMeasures } from '../../properties';
|
3
3
|
/**
|
4
|
-
* 散点图类型定义
|
5
4
|
* @description 散点图,适用于展示数据的分布情况,通过点的位置表示数据的数值
|
6
5
|
* 适用场景:
|
7
6
|
* - 分析数据的分布特征, 如数据的中心趋势, 分布范围, 异常值等
|
7
|
+
* @encoding
|
8
|
+
* 维度未包含任何`encoding`, 则使用默认映射规则:
|
9
|
+
* 1. color: 所有维度与指标名称, 合并映射至颜色通道, 作为图例展示
|
10
|
+
* 2. detail: 所有维度与指标名称, 映射至Detail通道
|
11
|
+
* 指标未包含任何`encoding`, 则使用默认映射规则:
|
12
|
+
* 1. x: 第一个指标映射至X轴
|
13
|
+
* 2. y: 第二个及其之后的指标映射至Y轴
|
14
|
+
* 3. tooltip: 全部指标映射至Tooltip
|
15
|
+
*
|
16
|
+
* 维度映射规则:
|
17
|
+
* 2. 用户指定的`color`维度映射至颜色通道, 支持多个维度; 若未指定, 则默认将指标名称映射至颜色通道, 作为图例展示
|
18
|
+
* 3. 用户指定的`detail`维度映射至Detail通道, 支持多个维度; 若未指定, 则默认将指标名称映射至Detail通道
|
19
|
+
* 指标映射规则:
|
20
|
+
* 1. 指标未配置encoding, 则第一个指标默认映射至X轴, 第二个指标默认映射至Y轴
|
21
|
+
* 2. 用户指定的yAxis指标映射至Y轴X轴, 支持多个指标;
|
22
|
+
* 3. 所有指标均映射到Tooltip
|
8
23
|
* @warning
|
9
24
|
* 数据要求:
|
10
25
|
* - 至少2个数值字段(度量)
|
@@ -19,11 +19,6 @@ export declare const zScatter: z.ZodObject<{
|
|
19
19
|
dimensions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
20
20
|
id: z.ZodString;
|
21
21
|
alias: z.ZodOptional<z.ZodString>;
|
22
|
-
location: z.ZodDefault<z.ZodEnum<{
|
23
|
-
dimension: "dimension";
|
24
|
-
rowDimension: "rowDimension";
|
25
|
-
columnDimension: "columnDimension";
|
26
|
-
}>>;
|
27
22
|
encoding: z.ZodOptional<z.ZodEnum<{
|
28
23
|
column: "column";
|
29
24
|
xAxis: "xAxis";
|
@@ -71,10 +66,12 @@ export declare const zScatter: z.ZodObject<{
|
|
71
66
|
}>>>;
|
72
67
|
}, z.core.$strip>>>;
|
73
68
|
encoding: z.ZodOptional<z.ZodEnum<{
|
69
|
+
column: "column";
|
74
70
|
xAxis: "xAxis";
|
75
71
|
yAxis: "yAxis";
|
76
72
|
angle: "angle";
|
77
73
|
color: "color";
|
74
|
+
detail: "detail";
|
78
75
|
tooltip: "tooltip";
|
79
76
|
label: "label";
|
80
77
|
primaryYAxis: "primaryYAxis";
|
@@ -121,10 +118,12 @@ export declare const zScatter: z.ZodObject<{
|
|
121
118
|
}>>>;
|
122
119
|
}, z.core.$strip>>>;
|
123
120
|
encoding: z.ZodOptional<z.ZodEnum<{
|
121
|
+
column: "column";
|
124
122
|
xAxis: "xAxis";
|
125
123
|
yAxis: "yAxis";
|
126
124
|
angle: "angle";
|
127
125
|
color: "color";
|
126
|
+
detail: "detail";
|
128
127
|
tooltip: "tooltip";
|
129
128
|
label: "label";
|
130
129
|
primaryYAxis: "primaryYAxis";
|
@@ -168,10 +167,12 @@ export declare const zScatter: z.ZodObject<{
|
|
168
167
|
}>>>;
|
169
168
|
}, z.core.$strip>>>;
|
170
169
|
encoding: z.ZodOptional<z.ZodEnum<{
|
170
|
+
column: "column";
|
171
171
|
xAxis: "xAxis";
|
172
172
|
yAxis: "yAxis";
|
173
173
|
angle: "angle";
|
174
174
|
color: "color";
|
175
|
+
detail: "detail";
|
175
176
|
tooltip: "tooltip";
|
176
177
|
label: "label";
|
177
178
|
primaryYAxis: "primaryYAxis";
|
@@ -216,10 +217,12 @@ export declare const zScatter: z.ZodObject<{
|
|
216
217
|
}>>>;
|
217
218
|
}, z.core.$strip>>>;
|
218
219
|
encoding: z.ZodOptional<z.ZodEnum<{
|
220
|
+
column: "column";
|
219
221
|
xAxis: "xAxis";
|
220
222
|
yAxis: "yAxis";
|
221
223
|
angle: "angle";
|
222
224
|
color: "color";
|
225
|
+
detail: "detail";
|
223
226
|
tooltip: "tooltip";
|
224
227
|
label: "label";
|
225
228
|
primaryYAxis: "primaryYAxis";
|
@@ -263,10 +266,12 @@ export declare const zScatter: z.ZodObject<{
|
|
263
266
|
}>>>;
|
264
267
|
}, z.core.$strip>>>;
|
265
268
|
encoding: z.ZodOptional<z.ZodEnum<{
|
269
|
+
column: "column";
|
266
270
|
xAxis: "xAxis";
|
267
271
|
yAxis: "yAxis";
|
268
272
|
angle: "angle";
|
269
273
|
color: "color";
|
274
|
+
detail: "detail";
|
270
275
|
tooltip: "tooltip";
|
271
276
|
label: "label";
|
272
277
|
primaryYAxis: "primaryYAxis";
|
@@ -5,11 +5,6 @@ export declare const zTable: z.ZodObject<{
|
|
5
5
|
dimensions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
6
6
|
id: z.ZodString;
|
7
7
|
alias: z.ZodOptional<z.ZodString>;
|
8
|
-
location: z.ZodDefault<z.ZodEnum<{
|
9
|
-
dimension: "dimension";
|
10
|
-
rowDimension: "rowDimension";
|
11
|
-
columnDimension: "columnDimension";
|
12
|
-
}>>;
|
13
8
|
encoding: z.ZodOptional<z.ZodEnum<{
|
14
9
|
column: "column";
|
15
10
|
xAxis: "xAxis";
|
@@ -57,10 +52,12 @@ export declare const zTable: z.ZodObject<{
|
|
57
52
|
}>>>;
|
58
53
|
}, z.core.$strip>>>;
|
59
54
|
encoding: z.ZodOptional<z.ZodEnum<{
|
55
|
+
column: "column";
|
60
56
|
xAxis: "xAxis";
|
61
57
|
yAxis: "yAxis";
|
62
58
|
angle: "angle";
|
63
59
|
color: "color";
|
60
|
+
detail: "detail";
|
64
61
|
tooltip: "tooltip";
|
65
62
|
label: "label";
|
66
63
|
primaryYAxis: "primaryYAxis";
|
@@ -3,11 +3,6 @@ import type { DimensionGroup } from './dimensions';
|
|
3
3
|
export declare const zDimension: z.ZodObject<{
|
4
4
|
id: z.ZodString;
|
5
5
|
alias: z.ZodOptional<z.ZodString>;
|
6
|
-
location: z.ZodDefault<z.ZodEnum<{
|
7
|
-
dimension: "dimension";
|
8
|
-
rowDimension: "rowDimension";
|
9
|
-
columnDimension: "columnDimension";
|
10
|
-
}>>;
|
11
6
|
encoding: z.ZodOptional<z.ZodEnum<{
|
12
7
|
column: "column";
|
13
8
|
xAxis: "xAxis";
|
@@ -24,11 +19,6 @@ export declare const zDimensionGroup: z.ZodType<DimensionGroup>;
|
|
24
19
|
export declare const zDimensions: z.ZodArray<z.ZodObject<{
|
25
20
|
id: z.ZodString;
|
26
21
|
alias: z.ZodOptional<z.ZodString>;
|
27
|
-
location: z.ZodDefault<z.ZodEnum<{
|
28
|
-
dimension: "dimension";
|
29
|
-
rowDimension: "rowDimension";
|
30
|
-
columnDimension: "columnDimension";
|
31
|
-
}>>;
|
32
22
|
encoding: z.ZodOptional<z.ZodEnum<{
|
33
23
|
column: "column";
|
34
24
|
xAxis: "xAxis";
|
@@ -44,11 +34,6 @@ export declare const zDimensions: z.ZodArray<z.ZodObject<{
|
|
44
34
|
export declare const zDimensionTree: z.ZodArray<z.ZodUnion<[z.ZodType<DimensionGroup, unknown, z.core.$ZodTypeInternals<DimensionGroup, unknown>>, z.ZodObject<{
|
45
35
|
id: z.ZodString;
|
46
36
|
alias: z.ZodOptional<z.ZodString>;
|
47
|
-
location: z.ZodDefault<z.ZodEnum<{
|
48
|
-
dimension: "dimension";
|
49
|
-
rowDimension: "rowDimension";
|
50
|
-
columnDimension: "columnDimension";
|
51
|
-
}>>;
|
52
37
|
encoding: z.ZodOptional<z.ZodEnum<{
|
53
38
|
column: "column";
|
54
39
|
xAxis: "xAxis";
|
@@ -35,11 +35,13 @@ export type Measure = {
|
|
35
35
|
* - angle: 指标映射的角度, 适用于饼图、环形图、雷达图
|
36
36
|
* - radius: 指标映射的半径, 适用于玫瑰图
|
37
37
|
* - size: 指标映射的大小, 适用于漏斗图、散点图
|
38
|
+
* - detail: 指标映射的详情, 适用于透视表、热力图
|
39
|
+
* - column: 指标映射的列, 仅适用于表格
|
38
40
|
* - color: 指标映射的颜色, 适用于所有图表
|
39
41
|
* - label: 指标映射的标签, 适用于所有图表
|
40
42
|
* - tooltip: 指标映射的提示, 适用于所有图表
|
41
43
|
*/
|
42
|
-
encoding?: 'primaryYAxis' | 'secondaryYAxis' | 'xAxis' | 'yAxis' | 'angle' | 'radius' | 'size' | 'color' | 'label' | 'tooltip';
|
44
|
+
encoding?: 'primaryYAxis' | 'secondaryYAxis' | 'xAxis' | 'yAxis' | 'angle' | 'radius' | 'size' | 'color' | 'detail' | 'column' | 'label' | 'tooltip';
|
43
45
|
/**
|
44
46
|
* @description 以扁平的指标配置形式, 构建树形指标组, parentId指向父级指标组的id, 用于构建指标树
|
45
47
|
* @tip 指标树的配置存在两种形式, 方式一是直接配置带children的指标树, 方式二是配置parentId的扁平指标列表, 两种方式不能同时配置
|
@@ -36,10 +36,12 @@ export declare const zDualMeasure: z.ZodObject<{
|
|
36
36
|
}>>>;
|
37
37
|
}, z.core.$strip>>>;
|
38
38
|
encoding: z.ZodOptional<z.ZodEnum<{
|
39
|
+
column: "column";
|
39
40
|
xAxis: "xAxis";
|
40
41
|
yAxis: "yAxis";
|
41
42
|
angle: "angle";
|
42
43
|
color: "color";
|
44
|
+
detail: "detail";
|
43
45
|
tooltip: "tooltip";
|
44
46
|
label: "label";
|
45
47
|
primaryYAxis: "primaryYAxis";
|
@@ -83,10 +85,12 @@ export declare const zDualMeasure: z.ZodObject<{
|
|
83
85
|
}>>>;
|
84
86
|
}, z.core.$strip>>>;
|
85
87
|
encoding: z.ZodOptional<z.ZodEnum<{
|
88
|
+
column: "column";
|
86
89
|
xAxis: "xAxis";
|
87
90
|
yAxis: "yAxis";
|
88
91
|
angle: "angle";
|
89
92
|
color: "color";
|
93
|
+
detail: "detail";
|
90
94
|
tooltip: "tooltip";
|
91
95
|
label: "label";
|
92
96
|
primaryYAxis: "primaryYAxis";
|
@@ -131,10 +135,12 @@ export declare const zDualMeasure: z.ZodObject<{
|
|
131
135
|
}>>>;
|
132
136
|
}, z.core.$strip>>>;
|
133
137
|
encoding: z.ZodOptional<z.ZodEnum<{
|
138
|
+
column: "column";
|
134
139
|
xAxis: "xAxis";
|
135
140
|
yAxis: "yAxis";
|
136
141
|
angle: "angle";
|
137
142
|
color: "color";
|
143
|
+
detail: "detail";
|
138
144
|
tooltip: "tooltip";
|
139
145
|
label: "label";
|
140
146
|
primaryYAxis: "primaryYAxis";
|
@@ -178,10 +184,12 @@ export declare const zDualMeasure: z.ZodObject<{
|
|
178
184
|
}>>>;
|
179
185
|
}, z.core.$strip>>>;
|
180
186
|
encoding: z.ZodOptional<z.ZodEnum<{
|
187
|
+
column: "column";
|
181
188
|
xAxis: "xAxis";
|
182
189
|
yAxis: "yAxis";
|
183
190
|
angle: "angle";
|
184
191
|
color: "color";
|
192
|
+
detail: "detail";
|
185
193
|
tooltip: "tooltip";
|
186
194
|
label: "label";
|
187
195
|
primaryYAxis: "primaryYAxis";
|
@@ -229,10 +237,12 @@ export declare const zDualMeasures: z.ZodArray<z.ZodObject<{
|
|
229
237
|
}>>>;
|
230
238
|
}, z.core.$strip>>>;
|
231
239
|
encoding: z.ZodOptional<z.ZodEnum<{
|
240
|
+
column: "column";
|
232
241
|
xAxis: "xAxis";
|
233
242
|
yAxis: "yAxis";
|
234
243
|
angle: "angle";
|
235
244
|
color: "color";
|
245
|
+
detail: "detail";
|
236
246
|
tooltip: "tooltip";
|
237
247
|
label: "label";
|
238
248
|
primaryYAxis: "primaryYAxis";
|
@@ -276,10 +286,12 @@ export declare const zDualMeasures: z.ZodArray<z.ZodObject<{
|
|
276
286
|
}>>>;
|
277
287
|
}, z.core.$strip>>>;
|
278
288
|
encoding: z.ZodOptional<z.ZodEnum<{
|
289
|
+
column: "column";
|
279
290
|
xAxis: "xAxis";
|
280
291
|
yAxis: "yAxis";
|
281
292
|
angle: "angle";
|
282
293
|
color: "color";
|
294
|
+
detail: "detail";
|
283
295
|
tooltip: "tooltip";
|
284
296
|
label: "label";
|
285
297
|
primaryYAxis: "primaryYAxis";
|
@@ -324,10 +336,12 @@ export declare const zDualMeasures: z.ZodArray<z.ZodObject<{
|
|
324
336
|
}>>>;
|
325
337
|
}, z.core.$strip>>>;
|
326
338
|
encoding: z.ZodOptional<z.ZodEnum<{
|
339
|
+
column: "column";
|
327
340
|
xAxis: "xAxis";
|
328
341
|
yAxis: "yAxis";
|
329
342
|
angle: "angle";
|
330
343
|
color: "color";
|
344
|
+
detail: "detail";
|
331
345
|
tooltip: "tooltip";
|
332
346
|
label: "label";
|
333
347
|
primaryYAxis: "primaryYAxis";
|
@@ -371,10 +385,12 @@ export declare const zDualMeasures: z.ZodArray<z.ZodObject<{
|
|
371
385
|
}>>>;
|
372
386
|
}, z.core.$strip>>>;
|
373
387
|
encoding: z.ZodOptional<z.ZodEnum<{
|
388
|
+
column: "column";
|
374
389
|
xAxis: "xAxis";
|
375
390
|
yAxis: "yAxis";
|
376
391
|
angle: "angle";
|
377
392
|
color: "color";
|
393
|
+
detail: "detail";
|
378
394
|
tooltip: "tooltip";
|
379
395
|
label: "label";
|
380
396
|
primaryYAxis: "primaryYAxis";
|
@@ -35,10 +35,12 @@ export declare const zMeasure: z.ZodObject<{
|
|
35
35
|
}>>>;
|
36
36
|
}, z.core.$strip>>>;
|
37
37
|
encoding: z.ZodOptional<z.ZodEnum<{
|
38
|
+
column: "column";
|
38
39
|
xAxis: "xAxis";
|
39
40
|
yAxis: "yAxis";
|
40
41
|
angle: "angle";
|
41
42
|
color: "color";
|
43
|
+
detail: "detail";
|
42
44
|
tooltip: "tooltip";
|
43
45
|
label: "label";
|
44
46
|
primaryYAxis: "primaryYAxis";
|
@@ -84,10 +86,12 @@ export declare const zMeasures: z.ZodArray<z.ZodObject<{
|
|
84
86
|
}>>>;
|
85
87
|
}, z.core.$strip>>>;
|
86
88
|
encoding: z.ZodOptional<z.ZodEnum<{
|
89
|
+
column: "column";
|
87
90
|
xAxis: "xAxis";
|
88
91
|
yAxis: "yAxis";
|
89
92
|
angle: "angle";
|
90
93
|
color: "color";
|
94
|
+
detail: "detail";
|
91
95
|
tooltip: "tooltip";
|
92
96
|
label: "label";
|
93
97
|
primaryYAxis: "primaryYAxis";
|
@@ -132,10 +136,12 @@ export declare const zMeasureTree: z.ZodArray<z.ZodUnion<[z.ZodType<MeasureGroup
|
|
132
136
|
}>>>;
|
133
137
|
}, z.core.$strip>>>;
|
134
138
|
encoding: z.ZodOptional<z.ZodEnum<{
|
139
|
+
column: "column";
|
135
140
|
xAxis: "xAxis";
|
136
141
|
yAxis: "yAxis";
|
137
142
|
angle: "angle";
|
138
143
|
color: "color";
|
144
|
+
detail: "detail";
|
139
145
|
tooltip: "tooltip";
|
140
146
|
label: "label";
|
141
147
|
primaryYAxis: "primaryYAxis";
|
@@ -36,10 +36,12 @@ export declare const zScatterMeasure: z.ZodObject<{
|
|
36
36
|
}>>>;
|
37
37
|
}, z.core.$strip>>>;
|
38
38
|
encoding: z.ZodOptional<z.ZodEnum<{
|
39
|
+
column: "column";
|
39
40
|
xAxis: "xAxis";
|
40
41
|
yAxis: "yAxis";
|
41
42
|
angle: "angle";
|
42
43
|
color: "color";
|
44
|
+
detail: "detail";
|
43
45
|
tooltip: "tooltip";
|
44
46
|
label: "label";
|
45
47
|
primaryYAxis: "primaryYAxis";
|
@@ -83,10 +85,12 @@ export declare const zScatterMeasure: z.ZodObject<{
|
|
83
85
|
}>>>;
|
84
86
|
}, z.core.$strip>>>;
|
85
87
|
encoding: z.ZodOptional<z.ZodEnum<{
|
88
|
+
column: "column";
|
86
89
|
xAxis: "xAxis";
|
87
90
|
yAxis: "yAxis";
|
88
91
|
angle: "angle";
|
89
92
|
color: "color";
|
93
|
+
detail: "detail";
|
90
94
|
tooltip: "tooltip";
|
91
95
|
label: "label";
|
92
96
|
primaryYAxis: "primaryYAxis";
|
@@ -131,10 +135,12 @@ export declare const zScatterMeasure: z.ZodObject<{
|
|
131
135
|
}>>>;
|
132
136
|
}, z.core.$strip>>>;
|
133
137
|
encoding: z.ZodOptional<z.ZodEnum<{
|
138
|
+
column: "column";
|
134
139
|
xAxis: "xAxis";
|
135
140
|
yAxis: "yAxis";
|
136
141
|
angle: "angle";
|
137
142
|
color: "color";
|
143
|
+
detail: "detail";
|
138
144
|
tooltip: "tooltip";
|
139
145
|
label: "label";
|
140
146
|
primaryYAxis: "primaryYAxis";
|
@@ -178,10 +184,12 @@ export declare const zScatterMeasure: z.ZodObject<{
|
|
178
184
|
}>>>;
|
179
185
|
}, z.core.$strip>>>;
|
180
186
|
encoding: z.ZodOptional<z.ZodEnum<{
|
187
|
+
column: "column";
|
181
188
|
xAxis: "xAxis";
|
182
189
|
yAxis: "yAxis";
|
183
190
|
angle: "angle";
|
184
191
|
color: "color";
|
192
|
+
detail: "detail";
|
185
193
|
tooltip: "tooltip";
|
186
194
|
label: "label";
|
187
195
|
primaryYAxis: "primaryYAxis";
|
@@ -229,10 +237,12 @@ export declare const zScatterMeasures: z.ZodArray<z.ZodObject<{
|
|
229
237
|
}>>>;
|
230
238
|
}, z.core.$strip>>>;
|
231
239
|
encoding: z.ZodOptional<z.ZodEnum<{
|
240
|
+
column: "column";
|
232
241
|
xAxis: "xAxis";
|
233
242
|
yAxis: "yAxis";
|
234
243
|
angle: "angle";
|
235
244
|
color: "color";
|
245
|
+
detail: "detail";
|
236
246
|
tooltip: "tooltip";
|
237
247
|
label: "label";
|
238
248
|
primaryYAxis: "primaryYAxis";
|
@@ -276,10 +286,12 @@ export declare const zScatterMeasures: z.ZodArray<z.ZodObject<{
|
|
276
286
|
}>>>;
|
277
287
|
}, z.core.$strip>>>;
|
278
288
|
encoding: z.ZodOptional<z.ZodEnum<{
|
289
|
+
column: "column";
|
279
290
|
xAxis: "xAxis";
|
280
291
|
yAxis: "yAxis";
|
281
292
|
angle: "angle";
|
282
293
|
color: "color";
|
294
|
+
detail: "detail";
|
283
295
|
tooltip: "tooltip";
|
284
296
|
label: "label";
|
285
297
|
primaryYAxis: "primaryYAxis";
|
@@ -324,10 +336,12 @@ export declare const zScatterMeasures: z.ZodArray<z.ZodObject<{
|
|
324
336
|
}>>>;
|
325
337
|
}, z.core.$strip>>>;
|
326
338
|
encoding: z.ZodOptional<z.ZodEnum<{
|
339
|
+
column: "column";
|
327
340
|
xAxis: "xAxis";
|
328
341
|
yAxis: "yAxis";
|
329
342
|
angle: "angle";
|
330
343
|
color: "color";
|
344
|
+
detail: "detail";
|
331
345
|
tooltip: "tooltip";
|
332
346
|
label: "label";
|
333
347
|
primaryYAxis: "primaryYAxis";
|
@@ -371,10 +385,12 @@ export declare const zScatterMeasures: z.ZodArray<z.ZodObject<{
|
|
371
385
|
}>>>;
|
372
386
|
}, z.core.$strip>>>;
|
373
387
|
encoding: z.ZodOptional<z.ZodEnum<{
|
388
|
+
column: "column";
|
374
389
|
xAxis: "xAxis";
|
375
390
|
yAxis: "yAxis";
|
376
391
|
angle: "angle";
|
377
392
|
color: "color";
|
393
|
+
detail: "detail";
|
378
394
|
tooltip: "tooltip";
|
379
395
|
label: "label";
|
380
396
|
primaryYAxis: "primaryYAxis";
|