@visactor/vseed 0.0.7 → 0.0.9
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 +5998 -109
- package/dist/dataReshape/constant.d.ts +1 -0
- package/dist/dataReshape/index.d.ts +1 -0
- package/dist/dataSelector/index.d.ts +1 -0
- package/dist/dataSelector/selector.d.ts +7 -0
- package/dist/index.cjs +1468 -241
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1427 -242
- package/dist/index.js.map +1 -1
- package/dist/pipeline/advanced/pipes/config/config.d.ts +11 -0
- package/dist/pipeline/advanced/pipes/config/index.d.ts +1 -0
- package/dist/pipeline/advanced/pipes/index.d.ts +3 -1
- package/dist/pipeline/advanced/pipes/markStyle/index.d.ts +1 -0
- package/dist/pipeline/advanced/pipes/{encoding/encodingXY copy.d.ts → markStyle/markStyle.d.ts} +1 -1
- package/dist/pipeline/spec/pipes/index.d.ts +1 -0
- package/dist/pipeline/spec/pipes/legend/{pivotLegend.d.ts → discreteLegend.d.ts} +1 -1
- package/dist/pipeline/spec/pipes/legend/index.d.ts +2 -2
- package/dist/pipeline/spec/pipes/legend/pivotDiscreteLegend.d.ts +2 -0
- package/dist/pipeline/spec/pipes/{init/line copy.d.ts → markStyle/barStyle.d.ts} +1 -1
- package/dist/pipeline/spec/pipes/markStyle/index.d.ts +1 -0
- package/dist/pipeline/spec/pipes/stack/index.d.ts +1 -1
- package/dist/pipeline/spec/pipes/stack/stack.d.ts +2 -2
- package/dist/types/advancedVSeed.d.ts +1567 -0
- package/dist/types/chartType/area/area.d.ts +11 -1
- package/dist/types/chartType/areaPercent/areaPercent.d.ts +11 -1
- package/dist/types/chartType/bar/bar.d.ts +20 -1
- package/dist/types/chartType/barParallel/barParallel.d.ts +20 -1
- package/dist/types/chartType/barPercent/barPercent.d.ts +20 -1
- package/dist/types/chartType/column/column.d.ts +20 -1
- package/dist/types/chartType/columnParallel/columnParallel.d.ts +20 -1
- package/dist/types/chartType/columnPercent/columnPercent.d.ts +20 -1
- package/dist/types/chartType/donut/donut.d.ts +1 -1
- package/dist/types/chartType/dualAxis/dualAxis.d.ts +1 -1
- package/dist/types/chartType/line/line.d.ts +11 -1
- package/dist/types/chartType/pie/pie.d.ts +4 -4
- package/dist/types/chartType/pivotTable/pivotTable.d.ts +1 -1
- package/dist/types/chartType/rose/rose.d.ts +4 -4
- package/dist/types/chartType/table/table.d.ts +1 -1
- package/dist/types/dataSelector/index.d.ts +1 -0
- package/dist/types/dataSelector/selector.d.ts +34 -0
- package/dist/types/properties/baseConfig/baseConfig.d.ts +102 -0
- package/dist/types/properties/baseConfig/legend.d.ts +101 -4
- package/dist/types/properties/chartType/index.d.ts +2 -2
- package/dist/types/properties/config/axis.d.ts +257 -0
- package/dist/types/properties/config/bandAxis.d.ts +82 -0
- package/dist/types/properties/config/config.d.ts +721 -0
- package/dist/types/properties/config/index.d.ts +4 -0
- package/dist/types/properties/config/linearAxis.d.ts +80 -0
- package/dist/types/properties/index.d.ts +2 -0
- package/dist/types/properties/markStyle/barStyle.d.ts +114 -0
- package/dist/types/properties/markStyle/index.d.ts +2 -0
- package/dist/types/properties/markStyle/markStyle.d.ts +29 -0
- package/dist/types/properties/theme/customTheme.d.ts +1540 -0
- package/package.json +1 -1
- package/dist/pipeline/advanced/pipeline/line copy.d.ts +0 -2
- package/dist/pipeline/spec/pipes/legend/legend.d.ts +0 -2
- package/dist/pipeline/spec/pipes/pivotChart/pivotGridStyle copy.d.ts +0 -2
- package/dist/pipeline/spec/pipes/pivotChart/pivotRowDimensions copy.d.ts +0 -2
- /package/dist/types/properties/chartType/{zChartType.d.ts → chartType.d.ts} +0 -0
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { BackgroundColor, Color, Dataset, Dimensions, Label, Legend, Measures, Theme, Tooltip } from '
|
1
|
+
import type { BackgroundColor, Color, Dataset, Dimensions, Label, Legend, Measures, Theme, Tooltip, XBandAxis, YLinearAxis } from '../../properties';
|
2
2
|
/**
|
3
3
|
* 面积图类型定义
|
4
4
|
* @description 面积图, 适用于展示数据随时间变化的趋势及累积关系, 通过填充区域增强数据对比. X轴为类目轴(分类数据), Y轴为数值轴(连续数据).
|
@@ -69,6 +69,16 @@ export interface Area {
|
|
69
69
|
* @description 提示信息配置, 用于定义图表的提示信息, 包括提示信息的位置, 格式, 样式等.
|
70
70
|
*/
|
71
71
|
tooltip?: Tooltip;
|
72
|
+
/**
|
73
|
+
* x轴
|
74
|
+
* @description 类目轴, x轴配置, 用于定义图表的x轴, 包括x轴的位置, 格式, 样式等.
|
75
|
+
*/
|
76
|
+
xAxis?: XBandAxis;
|
77
|
+
/**
|
78
|
+
* y轴
|
79
|
+
* @description 数值轴, y轴配置, 用于定义图表的y轴, 包括y轴的位置, 格式, 样式等.
|
80
|
+
*/
|
81
|
+
yAxis?: YLinearAxis;
|
72
82
|
/**
|
73
83
|
* 图表的主题, 主题是优先级较低的功能配置, 包含所有图表类型共用的通用配置, 与单类图表类型共用的图表配置
|
74
84
|
* @default light 默认为亮色主题
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { BackgroundColor, Color, Dataset, Dimensions, Label, Legend, Measures, Theme, Tooltip } from '
|
1
|
+
import type { BackgroundColor, Color, Dataset, Dimensions, Label, Legend, Measures, Theme, Tooltip, XBandAxis, YLinearAxis } from '../../properties';
|
2
2
|
/**
|
3
3
|
* 百分比面积图类型定义
|
4
4
|
* @description 百分比面积图,适用于展示多类别占比随时间变化的趋势,Y轴以百分比形式展示占比关系
|
@@ -68,6 +68,16 @@ export interface AreaPercent {
|
|
68
68
|
* @description 提示信息配置, 用于定义图表的提示信息, 包括提示信息的位置, 格式, 样式等.
|
69
69
|
*/
|
70
70
|
tooltip?: Tooltip;
|
71
|
+
/**
|
72
|
+
* x轴
|
73
|
+
* @description 类目轴, x轴配置, 用于定义图表的x轴, 包括x轴的位置, 格式, 样式等.
|
74
|
+
*/
|
75
|
+
xAxis?: XBandAxis;
|
76
|
+
/**
|
77
|
+
* y轴
|
78
|
+
* @description 数值轴, y轴配置, 用于定义图表的y轴, 包括y轴的位置, 格式, 样式等.
|
79
|
+
*/
|
80
|
+
yAxis?: YLinearAxis;
|
71
81
|
/**
|
72
82
|
* 图表的主题, 主题是优先级较低的功能配置, 包含所有图表类型共用的通用配置, 与单类图表类型共用的图表配置
|
73
83
|
* @default light 默认为亮色主题
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { BackgroundColor, Color, Dataset, Dimensions, Label, Legend, Measures, Theme, Tooltip } from '
|
1
|
+
import type { BackgroundColor, BarStyle, Color, Dataset, Dimensions, Label, Legend, Measures, Theme, Tooltip, XLinearAxis, YBandAxis } from '../../properties';
|
2
2
|
/**
|
3
3
|
* 条形图类型定义
|
4
4
|
* @description 条形图,适用于横向数据对比场景,Y轴为类目轴(分类数据),X轴为数值轴(连续数据),柱子横向排列
|
@@ -68,6 +68,16 @@ export interface Bar {
|
|
68
68
|
* @description 提示信息配置, 用于定义图表的提示信息, 包括提示信息的位置, 格式, 样式等.
|
69
69
|
*/
|
70
70
|
tooltip?: Tooltip;
|
71
|
+
/**
|
72
|
+
* x轴
|
73
|
+
* @description 数值轴, x轴配置, 用于定义图表的x轴, 包括x轴的位置, 格式, 样式等.
|
74
|
+
*/
|
75
|
+
xAxis?: XLinearAxis;
|
76
|
+
/**
|
77
|
+
* y轴
|
78
|
+
* @description 类目轴, y轴配置, 用于定义图表的y轴, 包括y轴的位置, 格式, 样式等.
|
79
|
+
*/
|
80
|
+
yAxis?: YBandAxis;
|
71
81
|
/**
|
72
82
|
* 图表的主题, 主题是优先级较低的功能配置, 包含所有图表类型共用的通用配置, 与单类图表类型共用的图表配置
|
73
83
|
* @default light 默认为亮色主题
|
@@ -77,4 +87,13 @@ export interface Bar {
|
|
77
87
|
* @example 'customThemeName'
|
78
88
|
*/
|
79
89
|
theme?: Theme;
|
90
|
+
/**
|
91
|
+
* 矩形图元样式
|
92
|
+
* @description 条形图样式配置, 用于定义图表的条形图样式, 包括条形图的颜色, 边框, 圆角等.
|
93
|
+
* 支持全局样式或条件样式配置
|
94
|
+
* 数据筛选器
|
95
|
+
* 若配置selector, 提供数值 selector, 局部数据 selector, 条件维度 selector, 条件指标 selector 共四类数据匹配能力
|
96
|
+
* 若未配置selector, 则样式全局生效.
|
97
|
+
*/
|
98
|
+
barStyle?: BarStyle;
|
80
99
|
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { BackgroundColor, Color, Dataset, Dimensions, Label, Legend, Measures, Theme, Tooltip } from '
|
1
|
+
import type { BackgroundColor, BarStyle, Color, Dataset, Dimensions, Label, Legend, Measures, Theme, Tooltip, XLinearAxis, YBandAxis } from '../../properties';
|
2
2
|
/**
|
3
3
|
* 并列条形图类型定义
|
4
4
|
* @description 并列条形图,适用于多指标横向并行对比场景,多个条形平行排列展示不同指标值
|
@@ -68,6 +68,16 @@ export interface BarParallel {
|
|
68
68
|
* @description 提示信息配置, 用于定义图表的提示信息, 包括提示信息的位置, 格式, 样式等.
|
69
69
|
*/
|
70
70
|
tooltip?: Tooltip;
|
71
|
+
/**
|
72
|
+
* x轴
|
73
|
+
* @description 数值轴, x轴配置, 用于定义图表的x轴, 包括x轴的位置, 格式, 样式等.
|
74
|
+
*/
|
75
|
+
xAxis?: XLinearAxis;
|
76
|
+
/**
|
77
|
+
* y轴
|
78
|
+
* @description 类目轴, y轴配置, 用于定义图表的y轴, 包括y轴的位置, 格式, 样式等.
|
79
|
+
*/
|
80
|
+
yAxis?: YBandAxis;
|
71
81
|
/**
|
72
82
|
* 图表的主题, 主题是优先级较低的功能配置, 包含所有图表类型共用的通用配置, 与单类图表类型共用的图表配置
|
73
83
|
* @default light 默认为亮色主题
|
@@ -77,4 +87,13 @@ export interface BarParallel {
|
|
77
87
|
* @example 'customThemeName'
|
78
88
|
*/
|
79
89
|
theme?: Theme;
|
90
|
+
/**
|
91
|
+
* 矩形图元样式
|
92
|
+
* @description 条形图样式配置, 用于定义图表的条形图样式, 包括条形图的颜色, 边框, 圆角等.
|
93
|
+
* 支持全局样式或条件样式配置
|
94
|
+
* 数据筛选器
|
95
|
+
* 若配置selector, 提供数值 selector, 局部数据 selector, 条件维度 selector, 条件指标 selector 共四类数据匹配能力
|
96
|
+
* 若未配置selector, 则样式全局生效.
|
97
|
+
*/
|
98
|
+
barStyle?: BarStyle;
|
80
99
|
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { BackgroundColor, Color, Dataset, Dimensions, Label, Legend, Measures, Theme, Tooltip } from '
|
1
|
+
import type { BackgroundColor, BarStyle, Color, Dataset, Dimensions, Label, Legend, Measures, Theme, Tooltip, XLinearAxis, YBandAxis } from '../../properties';
|
2
2
|
/**
|
3
3
|
* 百分比条形图类型定义
|
4
4
|
* @description 百分比条形图,适用于横向展示各类别占比关系的场景,X轴以百分比形式展示数据占比
|
@@ -68,6 +68,16 @@ export interface BarPercent {
|
|
68
68
|
* @description 提示信息配置, 用于定义图表的提示信息, 包括提示信息的位置, 格式, 样式等.
|
69
69
|
*/
|
70
70
|
tooltip?: Tooltip;
|
71
|
+
/**
|
72
|
+
* x轴
|
73
|
+
* @description 数值轴, x轴配置, 用于定义图表的x轴, 包括x轴的位置, 格式, 样式等.
|
74
|
+
*/
|
75
|
+
xAxis?: XLinearAxis;
|
76
|
+
/**
|
77
|
+
* y轴
|
78
|
+
* @description 类目轴, y轴配置, 用于定义图表的y轴, 包括y轴的位置, 格式, 样式等.
|
79
|
+
*/
|
80
|
+
yAxis?: YBandAxis;
|
71
81
|
/**
|
72
82
|
* 图表的主题, 主题是优先级较低的功能配置, 包含所有图表类型共用的通用配置, 与单类图表类型共用的图表配置
|
73
83
|
* @default light 默认为亮色主题
|
@@ -77,4 +87,13 @@ export interface BarPercent {
|
|
77
87
|
* @example 'customThemeName'
|
78
88
|
*/
|
79
89
|
theme?: Theme;
|
90
|
+
/**
|
91
|
+
* 矩形图元样式
|
92
|
+
* @description 条形图样式配置, 用于定义图表的条形图样式, 包括条形图的颜色, 边框, 圆角等.
|
93
|
+
* 支持全局样式或条件样式配置
|
94
|
+
* 数据筛选器
|
95
|
+
* 若配置selector, 提供数值 selector, 局部数据 selector, 条件维度 selector, 条件指标 selector 共四类数据匹配能力
|
96
|
+
* 若未配置selector, 则样式全局生效.
|
97
|
+
*/
|
98
|
+
barStyle?: BarStyle;
|
80
99
|
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { BackgroundColor, Color, Dataset, Dimensions, Label, Legend, Measures, Theme, Tooltip } from '
|
1
|
+
import type { BackgroundColor, BarStyle, Color, Dataset, Dimensions, Label, Legend, Measures, Theme, Tooltip, XBandAxis, YLinearAxis } from '../../properties';
|
2
2
|
/**
|
3
3
|
* 柱状图类型定义
|
4
4
|
* @description 柱状图,适用于纵向数据对比场景,X轴为类目轴(分类数据),Y轴为数值轴(连续数据),柱子纵向排列
|
@@ -68,6 +68,16 @@ export interface Column {
|
|
68
68
|
* @description 提示信息配置, 用于定义图表的提示信息, 包括提示信息的位置, 格式, 样式等.
|
69
69
|
*/
|
70
70
|
tooltip?: Tooltip;
|
71
|
+
/**
|
72
|
+
* x轴
|
73
|
+
* @description 类目轴, x轴配置, 用于定义图表的x轴, 包括x轴的位置, 格式, 样式等.
|
74
|
+
*/
|
75
|
+
xAxis?: XBandAxis;
|
76
|
+
/**
|
77
|
+
* y轴
|
78
|
+
* @description 数值轴, y轴配置, 用于定义图表的y轴, 包括y轴的位置, 格式, 样式等.
|
79
|
+
*/
|
80
|
+
yAxis?: YLinearAxis;
|
71
81
|
/**
|
72
82
|
* 图表的主题, 主题是优先级较低的功能配置, 包含所有图表类型共用的通用配置, 与单类图表类型共用的图表配置
|
73
83
|
* @default light 默认为亮色主题
|
@@ -77,4 +87,13 @@ export interface Column {
|
|
77
87
|
* @example 'customThemeName'
|
78
88
|
*/
|
79
89
|
theme?: Theme;
|
90
|
+
/**
|
91
|
+
* 矩形图元样式
|
92
|
+
* @description 条形图样式配置, 用于定义图表的条形图样式, 包括条形图的颜色, 边框, 圆角等.
|
93
|
+
* 支持全局样式或条件样式配置
|
94
|
+
* 数据筛选器
|
95
|
+
* 若配置selector, 提供数值 selector, 局部数据 selector, 条件维度 selector, 条件指标 selector 共四类数据匹配能力
|
96
|
+
* 若未配置selector, 则样式全局生效.
|
97
|
+
*/
|
98
|
+
barStyle?: BarStyle;
|
80
99
|
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { BackgroundColor, Color, Dataset, Dimensions, Label, Legend, Measures, Theme, Tooltip } from '
|
1
|
+
import type { BackgroundColor, BarStyle, Color, Dataset, Dimensions, Label, Legend, Measures, Theme, Tooltip, XBandAxis, YLinearAxis } from '../../properties';
|
2
2
|
/**
|
3
3
|
* 并列柱状图类型定义
|
4
4
|
* @description 并列柱状图,适用于多指标并行对比场景,多个柱子并列排列展示不同指标值
|
@@ -68,6 +68,16 @@ export interface ColumnParallel {
|
|
68
68
|
* @description 提示信息配置, 用于定义图表的提示信息, 包括提示信息的位置, 格式, 样式等.
|
69
69
|
*/
|
70
70
|
tooltip?: Tooltip;
|
71
|
+
/**
|
72
|
+
* x轴
|
73
|
+
* @description 类目轴, x轴配置, 用于定义图表的x轴, 包括x轴的位置, 格式, 样式等.
|
74
|
+
*/
|
75
|
+
xAxis?: XBandAxis;
|
76
|
+
/**
|
77
|
+
* y轴
|
78
|
+
* @description 数值轴, y轴配置, 用于定义图表的y轴, 包括y轴的位置, 格式, 样式等.
|
79
|
+
*/
|
80
|
+
yAxis?: YLinearAxis;
|
71
81
|
/**
|
72
82
|
* 图表的主题, 主题是优先级较低的功能配置, 包含所有图表类型共用的通用配置, 与单类图表类型共用的图表配置
|
73
83
|
* @default light 默认为亮色主题
|
@@ -77,4 +87,13 @@ export interface ColumnParallel {
|
|
77
87
|
* @example 'customThemeName'
|
78
88
|
*/
|
79
89
|
theme?: Theme;
|
90
|
+
/**
|
91
|
+
* 矩形图元样式
|
92
|
+
* @description 条形图样式配置, 用于定义图表的条形图样式, 包括条形图的颜色, 边框, 圆角等.
|
93
|
+
* 支持全局样式或条件样式配置
|
94
|
+
* 数据筛选器
|
95
|
+
* 若配置selector, 提供数值 selector, 局部数据 selector, 条件维度 selector, 条件指标 selector 共四类数据匹配能力
|
96
|
+
* 若未配置selector, 则样式全局生效.
|
97
|
+
*/
|
98
|
+
barStyle?: BarStyle;
|
80
99
|
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { BackgroundColor, Color, Dataset, Dimensions, Label, Legend, Measures, Theme, Tooltip } from '
|
1
|
+
import type { BackgroundColor, BarStyle, Color, Dataset, Dimensions, Label, Legend, Measures, Theme, Tooltip, XBandAxis, YLinearAxis } from '../../properties';
|
2
2
|
/**
|
3
3
|
* 百分比柱状图类型定义
|
4
4
|
* @description 百分比柱状图,适用于展示各类别占比关系的场景,Y轴以百分比形式展示数据占比
|
@@ -68,6 +68,16 @@ export interface ColumnPercent {
|
|
68
68
|
* @description 提示信息配置, 用于定义图表的提示信息, 包括提示信息的位置, 格式, 样式等.
|
69
69
|
*/
|
70
70
|
tooltip?: Tooltip;
|
71
|
+
/**
|
72
|
+
* x轴
|
73
|
+
* @description 类目轴, x轴配置, 用于定义图表的x轴, 包括x轴的位置, 格式, 样式等.
|
74
|
+
*/
|
75
|
+
xAxis?: XBandAxis;
|
76
|
+
/**
|
77
|
+
* y轴
|
78
|
+
* @description 数值轴, y轴配置, 用于定义图表的y轴, 包括y轴的位置, 格式, 样式等.
|
79
|
+
*/
|
80
|
+
yAxis?: YLinearAxis;
|
71
81
|
/**
|
72
82
|
* 图表的主题, 主题是优先级较低的功能配置, 包含所有图表类型共用的通用配置, 与单类图表类型共用的图表配置
|
73
83
|
* @default light 默认为亮色主题
|
@@ -77,4 +87,13 @@ export interface ColumnPercent {
|
|
77
87
|
* @example 'customThemeName'
|
78
88
|
*/
|
79
89
|
theme?: Theme;
|
90
|
+
/**
|
91
|
+
* 矩形图元样式
|
92
|
+
* @description 条形图样式配置, 用于定义图表的条形图样式, 包括条形图的颜色, 边框, 圆角等.
|
93
|
+
* 支持全局样式或条件样式配置
|
94
|
+
* 数据筛选器
|
95
|
+
* 若配置selector, 提供数值 selector, 局部数据 selector, 条件维度 selector, 条件指标 selector 共四类数据匹配能力
|
96
|
+
* 若未配置selector, 则样式全局生效.
|
97
|
+
*/
|
98
|
+
barStyle?: BarStyle;
|
80
99
|
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { BackgroundColor, Color, Dataset, Dimensions, Label, Legend, Measures, Theme, Tooltip } from '
|
1
|
+
import type { BackgroundColor, Color, Dataset, Dimensions, Label, Legend, Measures, Theme, Tooltip } from '../../properties';
|
2
2
|
/**
|
3
3
|
* 环形图类型定义
|
4
4
|
* @description 环形图,适用于展示单一维度数据的占比关系,中心留有空白区域可展示汇总信息
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { BackgroundColor, Color, Dataset, Dimensions, Label, Legend, Measures, Theme, Tooltip } from '
|
1
|
+
import type { BackgroundColor, Color, Dataset, Dimensions, Label, Legend, Measures, Theme, Tooltip } from '../../properties';
|
2
2
|
/**
|
3
3
|
* 双轴图类型定义
|
4
4
|
* @description 双轴图,适用于展示两个不同量级或不同单位指标的对比关系,包含主坐标轴和次坐标轴
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { BackgroundColor, Color, Dataset, Dimensions, Label, Legend, Measures, Theme, Tooltip } from '
|
1
|
+
import type { BackgroundColor, Color, Dataset, Dimensions, Label, Legend, Measures, Theme, Tooltip, XBandAxis, YLinearAxis } from '../../properties';
|
2
2
|
/**
|
3
3
|
* 折线图类型定义
|
4
4
|
* @description 折线图,适用于展示数据随时间或有序类别变化的趋势,通过线段连接数据点形成趋势线
|
@@ -68,6 +68,16 @@ export interface Line {
|
|
68
68
|
* @description 提示信息配置, 用于定义图表的提示信息, 包括提示信息的位置, 格式, 样式等.
|
69
69
|
*/
|
70
70
|
tooltip?: Tooltip;
|
71
|
+
/**
|
72
|
+
* x轴
|
73
|
+
* @description 类目轴, x轴配置, 用于定义图表的x轴, 包括x轴的位置, 格式, 样式等.
|
74
|
+
*/
|
75
|
+
xAxis?: XBandAxis;
|
76
|
+
/**
|
77
|
+
* y轴
|
78
|
+
* @description 数值轴, y轴配置, 用于定义图表的y轴, 包括y轴的位置, 格式, 样式等.
|
79
|
+
*/
|
80
|
+
yAxis?: YLinearAxis;
|
71
81
|
/**
|
72
82
|
* 图表的主题, 主题是优先级较低的功能配置, 包含所有图表类型共用的通用配置, 与单类图表类型共用的图表配置
|
73
83
|
* @default light 默认为亮色主题
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { BackgroundColor, Color, Dataset, Dimensions, Label, Legend, Measures, Theme, Tooltip } from '
|
1
|
+
import type { BackgroundColor, Color, Dataset, Dimensions, Label, Legend, Measures, Theme, Tooltip } from '../../properties';
|
2
2
|
/**
|
3
3
|
* 饼图类型定义
|
4
4
|
* @description 饼图,适用于展示单一维度数据的占比关系,通过扇形面积大小表示各类别占比
|
@@ -49,9 +49,9 @@ export interface Pie {
|
|
49
49
|
*/
|
50
50
|
backgroundColor?: BackgroundColor;
|
51
51
|
/**
|
52
|
-
|
53
|
-
|
54
|
-
|
52
|
+
* 颜色
|
53
|
+
* @description 颜色配置, 用于定义图表的颜色方案, 包括颜色列表, 颜色映射, 颜色渐变等.
|
54
|
+
*/
|
55
55
|
color?: Color;
|
56
56
|
/**
|
57
57
|
* 标签
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { BackgroundColor, Color, Dataset, Dimensions, Label, Legend, Measures, Theme, Tooltip } from '
|
1
|
+
import type { BackgroundColor, Color, Dataset, Dimensions, Label, Legend, Measures, Theme, Tooltip } from '../../properties';
|
2
2
|
/**
|
3
3
|
* 玫瑰图类型定义
|
4
4
|
* @description 玫瑰图,适用于多维度数据对比场景,通过极坐标系下的扇形弧度和半径展示数据大小
|
@@ -49,9 +49,9 @@ export interface Rose {
|
|
49
49
|
*/
|
50
50
|
backgroundColor?: BackgroundColor;
|
51
51
|
/**
|
52
|
-
|
53
|
-
|
54
|
-
|
52
|
+
* 颜色
|
53
|
+
* @description 颜色配置, 用于定义图表的颜色方案, 包括颜色列表, 颜色映射, 颜色渐变等.
|
54
|
+
*/
|
55
55
|
color?: Color;
|
56
56
|
/**
|
57
57
|
* 标签
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './selector';
|
@@ -0,0 +1,34 @@
|
|
1
|
+
import { z } from 'zod';
|
2
|
+
import type { Datum } from '../properties';
|
3
|
+
export type ValueSelector = string | number;
|
4
|
+
export type PartialDatumSelector = Datum;
|
5
|
+
export type MeasureSelector = {
|
6
|
+
field: string;
|
7
|
+
operator: '=' | '!=' | '>' | '<' | '>=' | '<=' | 'between';
|
8
|
+
value: string | number | Array<string | number>;
|
9
|
+
};
|
10
|
+
export type DimensionSelector = {
|
11
|
+
field: string;
|
12
|
+
operator: 'in' | 'not in';
|
13
|
+
value: string | number | Array<string | number>;
|
14
|
+
};
|
15
|
+
export type Selector = ValueSelector | PartialDatumSelector | MeasureSelector | DimensionSelector;
|
16
|
+
export type Selectors = Array<Selector>;
|
17
|
+
export declare const zSelector: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject<{
|
18
|
+
field: z.ZodString;
|
19
|
+
operator: z.ZodString;
|
20
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
21
|
+
}, z.core.$strip>, z.ZodObject<{
|
22
|
+
field: z.ZodString;
|
23
|
+
operator: z.ZodString;
|
24
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
25
|
+
}, z.core.$strip>]>;
|
26
|
+
export declare const zSelectors: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject<{
|
27
|
+
field: z.ZodString;
|
28
|
+
operator: z.ZodString;
|
29
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
30
|
+
}, z.core.$strip>, z.ZodObject<{
|
31
|
+
field: z.ZodString;
|
32
|
+
operator: z.ZodString;
|
33
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
34
|
+
}, z.core.$strip>]>>;
|
@@ -13,6 +13,57 @@ declare const zVChartBaseConfig: z.ZodObject<{
|
|
13
13
|
}, z.core.$strip>>;
|
14
14
|
legend: z.ZodOptional<z.ZodObject<{
|
15
15
|
enable: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
16
|
+
border: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
17
|
+
maxSize: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
18
|
+
shapeType: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
19
|
+
circle: "circle";
|
20
|
+
cross: "cross";
|
21
|
+
diamond: "diamond";
|
22
|
+
square: "square";
|
23
|
+
arrow: "arrow";
|
24
|
+
arrow2Left: "arrow2Left";
|
25
|
+
arrow2Right: "arrow2Right";
|
26
|
+
wedge: "wedge";
|
27
|
+
thinTriangle: "thinTriangle";
|
28
|
+
triangle: "triangle";
|
29
|
+
triangleUp: "triangleUp";
|
30
|
+
triangleDown: "triangleDown";
|
31
|
+
triangleRight: "triangleRight";
|
32
|
+
triangleLeft: "triangleLeft";
|
33
|
+
stroke: "stroke";
|
34
|
+
star: "star";
|
35
|
+
wye: "wye";
|
36
|
+
rect: "rect";
|
37
|
+
arrowLeft: "arrowLeft";
|
38
|
+
arrowRight: "arrowRight";
|
39
|
+
rectRound: "rectRound";
|
40
|
+
roundLine: "roundLine";
|
41
|
+
}>>>;
|
42
|
+
position: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
43
|
+
left: "left";
|
44
|
+
leftTop: "leftTop";
|
45
|
+
leftBottom: "leftBottom";
|
46
|
+
lt: "lt";
|
47
|
+
lb: "lb";
|
48
|
+
top: "top";
|
49
|
+
topLeft: "topLeft";
|
50
|
+
topRight: "topRight";
|
51
|
+
tl: "tl";
|
52
|
+
tr: "tr";
|
53
|
+
right: "right";
|
54
|
+
rightTop: "rightTop";
|
55
|
+
rightBottom: "rightBottom";
|
56
|
+
rt: "rt";
|
57
|
+
rb: "rb";
|
58
|
+
bottom: "bottom";
|
59
|
+
bottomLeft: "bottomLeft";
|
60
|
+
bottomRight: "bottomRight";
|
61
|
+
bl: "bl";
|
62
|
+
br: "br";
|
63
|
+
}>>>;
|
64
|
+
labelFontSize: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
65
|
+
labelFontColor: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
66
|
+
labelFontWeight: z.ZodOptional<z.ZodDefault<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
|
16
67
|
}, z.core.$strip>>;
|
17
68
|
}, z.core.$strip>;
|
18
69
|
declare const zVTableBaseConfig: z.ZodObject<{
|
@@ -33,6 +84,57 @@ export declare const zBaseConfig: z.ZodObject<{
|
|
33
84
|
}, z.core.$strip>>;
|
34
85
|
legend: z.ZodOptional<z.ZodObject<{
|
35
86
|
enable: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
87
|
+
border: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
88
|
+
maxSize: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
89
|
+
shapeType: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
90
|
+
circle: "circle";
|
91
|
+
cross: "cross";
|
92
|
+
diamond: "diamond";
|
93
|
+
square: "square";
|
94
|
+
arrow: "arrow";
|
95
|
+
arrow2Left: "arrow2Left";
|
96
|
+
arrow2Right: "arrow2Right";
|
97
|
+
wedge: "wedge";
|
98
|
+
thinTriangle: "thinTriangle";
|
99
|
+
triangle: "triangle";
|
100
|
+
triangleUp: "triangleUp";
|
101
|
+
triangleDown: "triangleDown";
|
102
|
+
triangleRight: "triangleRight";
|
103
|
+
triangleLeft: "triangleLeft";
|
104
|
+
stroke: "stroke";
|
105
|
+
star: "star";
|
106
|
+
wye: "wye";
|
107
|
+
rect: "rect";
|
108
|
+
arrowLeft: "arrowLeft";
|
109
|
+
arrowRight: "arrowRight";
|
110
|
+
rectRound: "rectRound";
|
111
|
+
roundLine: "roundLine";
|
112
|
+
}>>>;
|
113
|
+
position: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
114
|
+
left: "left";
|
115
|
+
leftTop: "leftTop";
|
116
|
+
leftBottom: "leftBottom";
|
117
|
+
lt: "lt";
|
118
|
+
lb: "lb";
|
119
|
+
top: "top";
|
120
|
+
topLeft: "topLeft";
|
121
|
+
topRight: "topRight";
|
122
|
+
tl: "tl";
|
123
|
+
tr: "tr";
|
124
|
+
right: "right";
|
125
|
+
rightTop: "rightTop";
|
126
|
+
rightBottom: "rightBottom";
|
127
|
+
rt: "rt";
|
128
|
+
rb: "rb";
|
129
|
+
bottom: "bottom";
|
130
|
+
bottomLeft: "bottomLeft";
|
131
|
+
bottomRight: "bottomRight";
|
132
|
+
bl: "bl";
|
133
|
+
br: "br";
|
134
|
+
}>>>;
|
135
|
+
labelFontSize: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
136
|
+
labelFontColor: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
137
|
+
labelFontWeight: z.ZodOptional<z.ZodDefault<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
|
36
138
|
}, z.core.$strip>>;
|
37
139
|
}, z.core.$strip>>;
|
38
140
|
vtable: z.ZodOptional<z.ZodObject<{
|
@@ -1,11 +1,108 @@
|
|
1
1
|
import { z } from 'zod';
|
2
|
-
export declare const zLegend: z.ZodObject<{
|
3
|
-
enable: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
4
|
-
}, z.core.$strip>;
|
5
2
|
export type Legend = {
|
6
3
|
/**
|
7
4
|
* 图例功能是否开启
|
8
5
|
* @default true
|
6
|
+
* @example enable: true
|
7
|
+
*/
|
8
|
+
enable?: boolean;
|
9
|
+
/**
|
10
|
+
* 图例边框是否开启
|
11
|
+
* @default true
|
12
|
+
* @example border: true
|
9
13
|
*/
|
10
|
-
|
14
|
+
border?: boolean;
|
15
|
+
/**
|
16
|
+
* 图例最大列数 或 图例最大行数
|
17
|
+
* @default 1
|
18
|
+
* @description
|
19
|
+
* 如果图例在水平方向上, maxSize控制显示的列数
|
20
|
+
* 如果图例在垂直方向上, maxSize控制显示的行数
|
21
|
+
* @example maxSize: 2
|
22
|
+
*/
|
23
|
+
maxSize?: number;
|
24
|
+
/**
|
25
|
+
* 图例字体大小
|
26
|
+
* @default 12
|
27
|
+
* @example labelFontSize: 10
|
28
|
+
*/
|
29
|
+
labelFontSize?: number;
|
30
|
+
/**
|
31
|
+
* 图例字体颜色
|
32
|
+
* @default '#fff'
|
33
|
+
* @example labelFontColor: '#212121'
|
34
|
+
*/
|
35
|
+
labelFontColor?: string;
|
36
|
+
/**
|
37
|
+
* 图例字体粗细
|
38
|
+
* @default 400
|
39
|
+
* @example labelFontWeight: 400
|
40
|
+
*/
|
41
|
+
labelFontWeight?: number | string;
|
42
|
+
/**
|
43
|
+
* 图例形状
|
44
|
+
* @default 'rectRound'
|
45
|
+
* @example shapeType: 'circle'
|
46
|
+
*/
|
47
|
+
shapeType?: 'circle' | 'cross' | 'diamond' | 'square' | 'arrow' | 'arrow2Left' | 'arrow2Right' | 'wedge' | 'thinTriangle' | 'triangle' | 'triangleUp' | 'triangleDown' | 'triangleRight' | 'triangleLeft' | 'stroke' | 'star' | 'wye' | 'rect' | 'arrowLeft' | 'arrowRight' | 'rectRound' | 'roundLine';
|
48
|
+
/**
|
49
|
+
* 图例位置
|
50
|
+
* @default 'top'
|
51
|
+
* @example position: 'rightTop'
|
52
|
+
*/
|
53
|
+
position?: 'left' | 'leftTop' | 'leftBottom' | 'lt' | 'lb' | 'top' | 'topLeft' | 'topRight' | 'tl' | 'tr' | 'right' | 'rightTop' | 'rightBottom' | 'rt' | 'rb' | 'bottom' | 'bottomLeft' | 'bottomRight' | 'bl' | 'br';
|
11
54
|
};
|
55
|
+
export declare const zLegend: z.ZodObject<{
|
56
|
+
enable: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
57
|
+
border: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
58
|
+
maxSize: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
59
|
+
shapeType: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
60
|
+
circle: "circle";
|
61
|
+
cross: "cross";
|
62
|
+
diamond: "diamond";
|
63
|
+
square: "square";
|
64
|
+
arrow: "arrow";
|
65
|
+
arrow2Left: "arrow2Left";
|
66
|
+
arrow2Right: "arrow2Right";
|
67
|
+
wedge: "wedge";
|
68
|
+
thinTriangle: "thinTriangle";
|
69
|
+
triangle: "triangle";
|
70
|
+
triangleUp: "triangleUp";
|
71
|
+
triangleDown: "triangleDown";
|
72
|
+
triangleRight: "triangleRight";
|
73
|
+
triangleLeft: "triangleLeft";
|
74
|
+
stroke: "stroke";
|
75
|
+
star: "star";
|
76
|
+
wye: "wye";
|
77
|
+
rect: "rect";
|
78
|
+
arrowLeft: "arrowLeft";
|
79
|
+
arrowRight: "arrowRight";
|
80
|
+
rectRound: "rectRound";
|
81
|
+
roundLine: "roundLine";
|
82
|
+
}>>>;
|
83
|
+
position: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
84
|
+
left: "left";
|
85
|
+
leftTop: "leftTop";
|
86
|
+
leftBottom: "leftBottom";
|
87
|
+
lt: "lt";
|
88
|
+
lb: "lb";
|
89
|
+
top: "top";
|
90
|
+
topLeft: "topLeft";
|
91
|
+
topRight: "topRight";
|
92
|
+
tl: "tl";
|
93
|
+
tr: "tr";
|
94
|
+
right: "right";
|
95
|
+
rightTop: "rightTop";
|
96
|
+
rightBottom: "rightBottom";
|
97
|
+
rt: "rt";
|
98
|
+
rb: "rb";
|
99
|
+
bottom: "bottom";
|
100
|
+
bottomLeft: "bottomLeft";
|
101
|
+
bottomRight: "bottomRight";
|
102
|
+
bl: "bl";
|
103
|
+
br: "br";
|
104
|
+
}>>>;
|
105
|
+
labelFontSize: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
106
|
+
labelFontColor: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
107
|
+
labelFontWeight: z.ZodOptional<z.ZodDefault<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
|
108
|
+
}, z.core.$strip>;
|
@@ -1,2 +1,2 @@
|
|
1
|
-
export type { ChartType } from './
|
2
|
-
export { zChartType } from './
|
1
|
+
export type { ChartType } from './chartType';
|
2
|
+
export { zChartType } from './chartType';
|