@visactor/vseed 0.0.10 → 0.0.12
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 +5168 -511
- package/dist/builder/register/theme.d.ts +4 -1
- package/dist/dataSelector/selector.d.ts +1 -1
- package/dist/index.cjs +1690 -247
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1658 -254
- package/dist/index.js.map +1 -1
- package/dist/pipeline/advanced/pipes/config/config.d.ts +3 -3
- package/dist/pipeline/constant.d.ts +2 -0
- package/dist/pipeline/spec/pipes/annotation/annotationArea.d.ts +2 -0
- package/dist/pipeline/spec/pipes/annotation/annotationAreaBand.d.ts +2 -0
- package/dist/pipeline/spec/pipes/annotation/annotationHorizontalLine.d.ts +2 -0
- package/dist/pipeline/spec/pipes/annotation/annotationVerticalLine.d.ts +2 -0
- package/dist/pipeline/spec/pipes/annotation/index.d.ts +4 -0
- package/dist/pipeline/spec/pipes/annotation/utils.d.ts +2 -0
- package/dist/pipeline/spec/pipes/crosshair/horizontalCrosshairRect.d.ts +2 -0
- package/dist/pipeline/spec/pipes/crosshair/index.d.ts +3 -0
- package/dist/pipeline/spec/pipes/crosshair/verticalCrosshairLine.d.ts +2 -0
- package/dist/pipeline/spec/pipes/crosshair/verticalCrosshairRect.d.ts +2 -0
- package/dist/pipeline/spec/pipes/index.d.ts +1 -0
- package/dist/pipeline/spec/pipes/markStyle/areaStyle.d.ts +2 -0
- package/dist/pipeline/spec/pipes/markStyle/index.d.ts +3 -0
- package/dist/pipeline/spec/pipes/markStyle/lineStyle.d.ts +2 -0
- package/dist/pipeline/spec/pipes/markStyle/pointStyle.d.ts +2 -0
- package/dist/pipeline/spec/pipes/stack/index.d.ts +1 -0
- package/dist/pipeline/spec/pipes/stack/stackCornerRadius.d.ts +2 -0
- package/dist/pipeline/utils/chatType.d.ts +16 -16
- package/dist/pipeline/utils/format/createFormatter.d.ts +2 -0
- package/dist/pipeline/utils/format/createNumFormatter.d.ts +2 -0
- package/dist/pipeline/utils/format/index.d.ts +2 -0
- package/dist/pipeline/utils/index.d.ts +4 -2
- package/dist/pipeline/utils/measures/findMeasureById.d.ts +2 -0
- package/dist/pipeline/utils/measures/index.d.ts +1 -0
- package/dist/types/advancedVSeed.d.ts +3018 -106
- package/dist/types/builder/builder.d.ts +3 -0
- package/dist/types/chartType/area/area.d.ts +48 -1
- package/dist/types/chartType/areaPercent/areaPercent.d.ts +48 -1
- package/dist/types/chartType/bar/bar.d.ts +28 -2
- package/dist/types/chartType/barParallel/barParallel.d.ts +28 -2
- package/dist/types/chartType/barPercent/barPercent.d.ts +28 -2
- package/dist/types/chartType/column/column.d.ts +28 -2
- package/dist/types/chartType/columnParallel/columnParallel.d.ts +28 -2
- package/dist/types/chartType/columnPercent/columnPercent.d.ts +28 -2
- package/dist/types/chartType/line/line.d.ts +39 -1
- package/dist/types/dataSelector/selector.d.ts +60 -6
- package/dist/types/properties/annotation/annotation.d.ts +747 -8
- package/dist/types/properties/annotation/annotationArea.d.ts +248 -0
- package/dist/types/properties/annotation/annotationHorizontalLine.d.ts +253 -0
- package/dist/types/properties/annotation/annotationPoint.d.ts +56 -4
- package/dist/types/properties/annotation/annotationVerticalLine.d.ts +253 -0
- package/dist/types/properties/annotation/index.d.ts +3 -0
- package/dist/types/properties/config/config.d.ts +105 -36
- package/dist/types/properties/config/crosshair.d.ts +17 -0
- package/dist/types/properties/config/index.d.ts +2 -0
- package/dist/types/properties/config/stackCornerRadius.d.ts +3 -0
- package/dist/types/properties/markStyle/areaStyle.d.ts +129 -0
- package/dist/types/properties/markStyle/barStyle.d.ts +56 -4
- package/dist/types/properties/markStyle/index.d.ts +3 -0
- package/dist/types/properties/markStyle/lineStyle.d.ts +160 -0
- package/dist/types/properties/markStyle/markStyle.d.ts +599 -6
- package/dist/types/properties/markStyle/pointStyle.d.ts +168 -0
- package/dist/types/properties/measures/format/formatter.d.ts +1 -0
- package/dist/types/properties/measures/format/index.d.ts +2 -0
- package/dist/types/properties/measures/format/numFormat.d.ts +20 -0
- package/dist/types/properties/measures/index.d.ts +2 -2
- package/dist/types/properties/measures/measures.d.ts +40 -40
- package/dist/types/properties/theme/customTheme.d.ts +3094 -72
- package/dist/types/vseed.d.ts +20 -20
- package/package.json +1 -1
@@ -10,6 +10,9 @@ export interface VSeedBuilder {
|
|
10
10
|
getAdvancedPipeline: (chartType: ChartType) => AdvancedPipeline;
|
11
11
|
getSpecPipeline: (chartType: ChartType) => SpecPipeline;
|
12
12
|
getTheme: (themeKey: string) => CustomThemeConfig;
|
13
|
+
getThemeMap: () => Record<string, CustomThemeConfig>;
|
14
|
+
get spec(): Spec | null;
|
15
|
+
set spec(value: Spec | null);
|
13
16
|
get vseed(): VSeed;
|
14
17
|
set vseed(value: VSeed);
|
15
18
|
get advancedVSeed(): AdvancedVSeed | null;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { AnnotationPoint, BackgroundColor, Color, Dataset, Dimensions, Label, Legend, Measures, Theme, Tooltip, XBandAxis, YLinearAxis } from '../../properties';
|
1
|
+
import type { AnnotationArea, AnnotationHorizontalLine, AnnotationPoint, AnnotationVerticalLine, AreaStyle, BackgroundColor, Color, Dataset, Dimensions, Label, Legend, LineStyle, Measures, PointStyle, Theme, Tooltip, XBandAxis, YLinearAxis, CrosshairLine } from '../../properties';
|
2
2
|
/**
|
3
3
|
* 面积图类型定义
|
4
4
|
* @description 面积图, 适用于展示数据随时间变化的趋势及累积关系, 通过填充区域增强数据对比. X轴为类目轴(分类数据), Y轴为数值轴(连续数据).
|
@@ -79,6 +79,11 @@ export interface Area {
|
|
79
79
|
* @description 数值轴, y轴配置, 用于定义图表的y轴, 包括y轴的位置, 格式, 样式等.
|
80
80
|
*/
|
81
81
|
yAxis?: YLinearAxis;
|
82
|
+
/**
|
83
|
+
* 垂直提示线
|
84
|
+
* @description 鼠标移动到图表上时, 显示的垂直提示线
|
85
|
+
*/
|
86
|
+
crosshairLine?: CrosshairLine;
|
82
87
|
/**
|
83
88
|
* 图表的主题, 主题是优先级较低的功能配置, 包含所有图表类型共用的通用配置, 与单类图表类型共用的图表配置
|
84
89
|
* @default light 默认为亮色主题
|
@@ -88,9 +93,51 @@ export interface Area {
|
|
88
93
|
* @example 'customThemeName'
|
89
94
|
*/
|
90
95
|
theme?: Theme;
|
96
|
+
/**
|
97
|
+
* 点图元样式
|
98
|
+
* @description 点图元样式配置, 用于定义图表的点图元样式, 包括点图元的颜色, 边框等.
|
99
|
+
* 支持全局样式或条件样式配置
|
100
|
+
* 数据筛选器
|
101
|
+
* 若配置selector, 提供数值 selector, 局部数据 selector, 条件维度 selector, 条件指标 selector 共四类数据匹配能力
|
102
|
+
* 若未配置selector, 则样式全局生效.
|
103
|
+
*/
|
104
|
+
pointStyle?: PointStyle | PointStyle[];
|
105
|
+
/**
|
106
|
+
* 线图元样式
|
107
|
+
* @description 线图元样式配置, 用于定义图表的线图元样式, 包括线图元的颜色, 透明度, 曲线等.
|
108
|
+
* 支持全局样式或条件样式配置
|
109
|
+
* 数据筛选器
|
110
|
+
* 若配置selector, 提供数值 selector, 局部数据 selector, 条件维度 selector, 条件指标 selector 共四类数据匹配能力
|
111
|
+
* 若未配置selector, 则样式全局生效.
|
112
|
+
*/
|
113
|
+
lineStyle?: LineStyle | LineStyle[];
|
114
|
+
/**
|
115
|
+
* 面积图元样式
|
116
|
+
* @description 面积图元样式配置, 用于定义图表的面积图元样式, 包括面积图元的颜色, 透明度, 边框等.
|
117
|
+
* 支持全局样式或条件样式配置
|
118
|
+
* 数据筛选器
|
119
|
+
* 若配置selector, 提供数值 selector, 局部数据 selector, 条件维度 selector, 条件指标 selector 共四类数据匹配能力
|
120
|
+
* 若未配置selector, 则样式全局生效.
|
121
|
+
*/
|
122
|
+
areaStyle?: AreaStyle | AreaStyle[];
|
91
123
|
/**
|
92
124
|
* 标注点
|
93
125
|
* @description 标注点配置, 根据选择的数据, 定义图表的标注点, 包括标注点的位置, 格式, 样式等.
|
94
126
|
*/
|
95
127
|
annotationPoint?: AnnotationPoint | AnnotationPoint[];
|
128
|
+
/**
|
129
|
+
* 标注垂直线
|
130
|
+
* @description 标注垂直线配置, 根据选择的数据, 定义图表的标注垂直线, 包括标注垂直线的位置, 样式等.
|
131
|
+
*/
|
132
|
+
annotationVerticalLine?: AnnotationVerticalLine | AnnotationVerticalLine[];
|
133
|
+
/**
|
134
|
+
* 标注水平线
|
135
|
+
* @description 标注水平线配置, 根据选择的数据, 定义图表的标注水平线, 包括标注水平线的位置, 样式等.
|
136
|
+
*/
|
137
|
+
annotationHorizontalLine?: AnnotationHorizontalLine | AnnotationHorizontalLine[];
|
138
|
+
/**
|
139
|
+
* 标注区域
|
140
|
+
* @description 标注区域配置, 根据选择的数据, 定义图表的标注区域, 包括标注区域的位置, 样式等.
|
141
|
+
*/
|
142
|
+
annotationArea?: AnnotationArea | AnnotationArea[];
|
96
143
|
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { AnnotationPoint, BackgroundColor, Color, Dataset, Dimensions, Label, Legend, Measures, Theme, Tooltip, XBandAxis, YLinearAxis } from '../../properties';
|
1
|
+
import type { AnnotationArea, AnnotationHorizontalLine, AnnotationPoint, AnnotationVerticalLine, AreaStyle, BackgroundColor, Color, Dataset, Dimensions, Label, Legend, LineStyle, Measures, PointStyle, Theme, Tooltip, XBandAxis, YLinearAxis, CrosshairLine } from '../../properties';
|
2
2
|
/**
|
3
3
|
* 百分比面积图类型定义
|
4
4
|
* @description 百分比面积图,适用于展示多类别占比随时间变化的趋势,Y轴以百分比形式展示占比关系
|
@@ -78,6 +78,11 @@ export interface AreaPercent {
|
|
78
78
|
* @description 数值轴, y轴配置, 用于定义图表的y轴, 包括y轴的位置, 格式, 样式等.
|
79
79
|
*/
|
80
80
|
yAxis?: YLinearAxis;
|
81
|
+
/**
|
82
|
+
* 垂直提示线
|
83
|
+
* @description 鼠标移动到图表上时, 显示的垂直提示线
|
84
|
+
*/
|
85
|
+
crosshairLine?: CrosshairLine;
|
81
86
|
/**
|
82
87
|
* 图表的主题, 主题是优先级较低的功能配置, 包含所有图表类型共用的通用配置, 与单类图表类型共用的图表配置
|
83
88
|
* @default light 默认为亮色主题
|
@@ -87,9 +92,51 @@ export interface AreaPercent {
|
|
87
92
|
* @example 'customThemeName'
|
88
93
|
*/
|
89
94
|
theme?: Theme;
|
95
|
+
/**
|
96
|
+
* 点图元样式
|
97
|
+
* @description 点图元样式配置, 用于定义图表的点图元样式, 包括点图元的颜色, 边框等.
|
98
|
+
* 支持全局样式或条件样式配置
|
99
|
+
* 数据筛选器
|
100
|
+
* 若配置selector, 提供数值 selector, 局部数据 selector, 条件维度 selector, 条件指标 selector 共四类数据匹配能力
|
101
|
+
* 若未配置selector, 则样式全局生效.
|
102
|
+
*/
|
103
|
+
pointStyle?: PointStyle | PointStyle[];
|
104
|
+
/**
|
105
|
+
* 线图元样式
|
106
|
+
* @description 线图元样式配置, 用于定义图表的线图元样式, 包括线图元的颜色, 透明度, 曲线等.
|
107
|
+
* 支持全局样式或条件样式配置
|
108
|
+
* 数据筛选器
|
109
|
+
* 若配置selector, 提供数值 selector, 局部数据 selector, 条件维度 selector, 条件指标 selector 共四类数据匹配能力
|
110
|
+
* 若未配置selector, 则样式全局生效.
|
111
|
+
*/
|
112
|
+
lineStyle?: LineStyle | LineStyle[];
|
113
|
+
/**
|
114
|
+
* 面积图元样式
|
115
|
+
* @description 面积图元样式配置, 用于定义图表的面积图元样式, 包括面积图元的颜色, 透明度, 边框等.
|
116
|
+
* 支持全局样式或条件样式配置
|
117
|
+
* 数据筛选器
|
118
|
+
* 若配置selector, 提供数值 selector, 局部数据 selector, 条件维度 selector, 条件指标 selector 共四类数据匹配能力
|
119
|
+
* 若未配置selector, 则样式全局生效.
|
120
|
+
*/
|
121
|
+
areaStyle?: AreaStyle | AreaStyle[];
|
90
122
|
/**
|
91
123
|
* 标注点
|
92
124
|
* @description 标注点配置, 根据选择的数据, 定义图表的标注点, 包括标注点的位置, 格式, 样式等.
|
93
125
|
*/
|
94
126
|
annotationPoint?: AnnotationPoint | AnnotationPoint[];
|
127
|
+
/**
|
128
|
+
* 标注垂直线
|
129
|
+
* @description 标注垂直线配置, 根据选择的数据, 定义图表的标注垂直线, 包括标注垂直线的位置, 样式等.
|
130
|
+
*/
|
131
|
+
annotationVerticalLine?: AnnotationVerticalLine | AnnotationVerticalLine[];
|
132
|
+
/**
|
133
|
+
* 标注水平线
|
134
|
+
* @description 标注水平线配置, 根据选择的数据, 定义图表的标注水平线, 包括标注水平线的位置, 样式等.
|
135
|
+
*/
|
136
|
+
annotationHorizontalLine?: AnnotationHorizontalLine | AnnotationHorizontalLine[];
|
137
|
+
/**
|
138
|
+
* 标注区域
|
139
|
+
* @description 标注区域配置, 根据选择的数据, 定义图表的标注区域, 包括标注区域的位置, 样式等.
|
140
|
+
*/
|
141
|
+
annotationArea?: AnnotationArea | AnnotationArea[];
|
95
142
|
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { AnnotationPoint, BackgroundColor, BarStyle, Color, Dataset, Dimensions, Label, Legend, Measures, Theme, Tooltip, XLinearAxis, YBandAxis } from '../../properties';
|
1
|
+
import type { AnnotationArea, AnnotationHorizontalLine, AnnotationPoint, AnnotationVerticalLine, BackgroundColor, BarStyle, Color, CrosshairRect, Dataset, Dimensions, Label, Legend, Measures, StackCornerRadius, Theme, Tooltip, XLinearAxis, YBandAxis } from '../../properties';
|
2
2
|
/**
|
3
3
|
* 条形图类型定义
|
4
4
|
* @description 条形图,适用于横向数据对比场景,Y轴为类目轴(分类数据),X轴为数值轴(连续数据),柱子横向排列
|
@@ -78,6 +78,17 @@ export interface Bar {
|
|
78
78
|
* @description 类目轴, y轴配置, 用于定义图表的y轴, 包括y轴的位置, 格式, 样式等.
|
79
79
|
*/
|
80
80
|
yAxis?: YBandAxis;
|
81
|
+
/**
|
82
|
+
* 水平提示框
|
83
|
+
* @description 水平提示框配置, 用于定义图表的水平提示框, 包括水平提示框的颜色、标签样式等.
|
84
|
+
*/
|
85
|
+
crosshairRect?: CrosshairRect;
|
86
|
+
/**
|
87
|
+
* 条形图 堆叠圆角
|
88
|
+
* @description 条形图 堆叠圆角
|
89
|
+
* @default 8
|
90
|
+
*/
|
91
|
+
stackCornerRadius?: StackCornerRadius;
|
81
92
|
/**
|
82
93
|
* 图表的主题, 主题是优先级较低的功能配置, 包含所有图表类型共用的通用配置, 与单类图表类型共用的图表配置
|
83
94
|
* @default light 默认为亮色主题
|
@@ -95,10 +106,25 @@ export interface Bar {
|
|
95
106
|
* 若配置selector, 提供数值 selector, 局部数据 selector, 条件维度 selector, 条件指标 selector 共四类数据匹配能力
|
96
107
|
* 若未配置selector, 则样式全局生效.
|
97
108
|
*/
|
98
|
-
barStyle?: BarStyle;
|
109
|
+
barStyle?: BarStyle | BarStyle[];
|
99
110
|
/**
|
100
111
|
* 标注点
|
101
112
|
* @description 标注点配置, 根据选择的数据, 定义图表的标注点, 包括标注点的位置, 格式, 样式等.
|
102
113
|
*/
|
103
114
|
annotationPoint?: AnnotationPoint | AnnotationPoint[];
|
115
|
+
/**
|
116
|
+
* 标注垂直线
|
117
|
+
* @description 标注垂直线配置, 根据选择的数据, 定义图表的标注垂直线, 包括标注垂直线的位置, 样式等.
|
118
|
+
*/
|
119
|
+
annotationVerticalLine?: AnnotationVerticalLine | AnnotationVerticalLine[];
|
120
|
+
/**
|
121
|
+
* 标注水平线
|
122
|
+
* @description 标注水平线配置, 根据选择的数据, 定义图表的标注水平线, 包括标注水平线的位置, 样式等.
|
123
|
+
*/
|
124
|
+
annotationHorizontalLine?: AnnotationHorizontalLine | AnnotationHorizontalLine[];
|
125
|
+
/**
|
126
|
+
* 标注区域
|
127
|
+
* @description 标注区域配置, 根据选择的数据, 定义图表的标注区域, 包括标注区域的位置, 样式等.
|
128
|
+
*/
|
129
|
+
annotationArea?: AnnotationArea | AnnotationArea[];
|
104
130
|
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { AnnotationPoint, BackgroundColor, BarStyle, Color, Dataset, Dimensions, Label, Legend, Measures, Theme, Tooltip, XLinearAxis, YBandAxis } from '../../properties';
|
1
|
+
import type { AnnotationArea, AnnotationHorizontalLine, AnnotationPoint, AnnotationVerticalLine, BackgroundColor, BarStyle, Color, CrosshairRect, Dataset, Dimensions, Label, Legend, Measures, StackCornerRadius, Theme, Tooltip, XLinearAxis, YBandAxis } from '../../properties';
|
2
2
|
/**
|
3
3
|
* 并列条形图类型定义
|
4
4
|
* @description 并列条形图,适用于多指标横向并行对比场景,多个条形平行排列展示不同指标值
|
@@ -78,6 +78,17 @@ export interface BarParallel {
|
|
78
78
|
* @description 类目轴, y轴配置, 用于定义图表的y轴, 包括y轴的位置, 格式, 样式等.
|
79
79
|
*/
|
80
80
|
yAxis?: YBandAxis;
|
81
|
+
/**
|
82
|
+
* 水平提示框
|
83
|
+
* @description 水平提示框配置, 用于定义图表的水平提示框, 包括水平提示框的颜色、标签样式等.
|
84
|
+
*/
|
85
|
+
crosshairRect?: CrosshairRect;
|
86
|
+
/**
|
87
|
+
* 条形图 堆叠圆角
|
88
|
+
* @description 条形图 堆叠圆角
|
89
|
+
* @default 8
|
90
|
+
*/
|
91
|
+
stackCornerRadius?: StackCornerRadius;
|
81
92
|
/**
|
82
93
|
* 图表的主题, 主题是优先级较低的功能配置, 包含所有图表类型共用的通用配置, 与单类图表类型共用的图表配置
|
83
94
|
* @default light 默认为亮色主题
|
@@ -95,10 +106,25 @@ export interface BarParallel {
|
|
95
106
|
* 若配置selector, 提供数值 selector, 局部数据 selector, 条件维度 selector, 条件指标 selector 共四类数据匹配能力
|
96
107
|
* 若未配置selector, 则样式全局生效.
|
97
108
|
*/
|
98
|
-
barStyle?: BarStyle;
|
109
|
+
barStyle?: BarStyle | BarStyle[];
|
99
110
|
/**
|
100
111
|
* 标注点
|
101
112
|
* @description 标注点配置, 根据选择的数据, 定义图表的标注点, 包括标注点的位置, 格式, 样式等.
|
102
113
|
*/
|
103
114
|
annotationPoint?: AnnotationPoint | AnnotationPoint[];
|
115
|
+
/**
|
116
|
+
* 标注垂直线
|
117
|
+
* @description 标注垂直线配置, 根据选择的数据, 定义图表的标注垂直线, 包括标注垂直线的位置, 样式等.
|
118
|
+
*/
|
119
|
+
annotationVerticalLine?: AnnotationVerticalLine | AnnotationVerticalLine[];
|
120
|
+
/**
|
121
|
+
* 标注水平线
|
122
|
+
* @description 标注水平线配置, 根据选择的数据, 定义图表的标注水平线, 包括标注水平线的位置, 样式等.
|
123
|
+
*/
|
124
|
+
annotationHorizontalLine?: AnnotationHorizontalLine | AnnotationHorizontalLine[];
|
125
|
+
/**
|
126
|
+
* 标注区域
|
127
|
+
* @description 标注区域配置, 根据选择的数据, 定义图表的标注区域, 包括标注区域的位置, 样式等.
|
128
|
+
*/
|
129
|
+
annotationArea?: AnnotationArea | AnnotationArea[];
|
104
130
|
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { AnnotationPoint, BackgroundColor, BarStyle, Color, Dataset, Dimensions, Label, Legend, Measures, Theme, Tooltip, XLinearAxis, YBandAxis } from '../../properties';
|
1
|
+
import type { AnnotationArea, AnnotationHorizontalLine, AnnotationPoint, AnnotationVerticalLine, BackgroundColor, BarStyle, Color, CrosshairRect, Dataset, Dimensions, Label, Legend, Measures, StackCornerRadius, Theme, Tooltip, XLinearAxis, YBandAxis } from '../../properties';
|
2
2
|
/**
|
3
3
|
* 百分比条形图类型定义
|
4
4
|
* @description 百分比条形图,适用于横向展示各类别占比关系的场景,X轴以百分比形式展示数据占比
|
@@ -78,6 +78,17 @@ export interface BarPercent {
|
|
78
78
|
* @description 类目轴, y轴配置, 用于定义图表的y轴, 包括y轴的位置, 格式, 样式等.
|
79
79
|
*/
|
80
80
|
yAxis?: YBandAxis;
|
81
|
+
/**
|
82
|
+
* 水平提示框
|
83
|
+
* @description 水平提示框配置, 用于定义图表的水平提示框, 包括水平提示框的颜色、标签样式等.
|
84
|
+
*/
|
85
|
+
crosshairRect?: CrosshairRect;
|
86
|
+
/**
|
87
|
+
* 条形图 堆叠圆角
|
88
|
+
* @description 条形图 堆叠圆角
|
89
|
+
* @default 8
|
90
|
+
*/
|
91
|
+
stackCornerRadius?: StackCornerRadius;
|
81
92
|
/**
|
82
93
|
* 图表的主题, 主题是优先级较低的功能配置, 包含所有图表类型共用的通用配置, 与单类图表类型共用的图表配置
|
83
94
|
* @default light 默认为亮色主题
|
@@ -95,10 +106,25 @@ export interface BarPercent {
|
|
95
106
|
* 若配置selector, 提供数值 selector, 局部数据 selector, 条件维度 selector, 条件指标 selector 共四类数据匹配能力
|
96
107
|
* 若未配置selector, 则样式全局生效.
|
97
108
|
*/
|
98
|
-
barStyle?: BarStyle;
|
109
|
+
barStyle?: BarStyle | BarStyle[];
|
99
110
|
/**
|
100
111
|
* 标注点
|
101
112
|
* @description 标注点配置, 根据选择的数据, 定义图表的标注点, 包括标注点的位置, 格式, 样式等.
|
102
113
|
*/
|
103
114
|
annotationPoint?: AnnotationPoint | AnnotationPoint[];
|
115
|
+
/**
|
116
|
+
* 标注垂直线
|
117
|
+
* @description 标注垂直线配置, 根据选择的数据, 定义图表的标注垂直线, 包括标注垂直线的位置, 样式等.
|
118
|
+
*/
|
119
|
+
annotationVerticalLine?: AnnotationVerticalLine | AnnotationVerticalLine[];
|
120
|
+
/**
|
121
|
+
* 标注水平线
|
122
|
+
* @description 标注水平线配置, 根据选择的数据, 定义图表的标注水平线, 包括标注水平线的位置, 样式等.
|
123
|
+
*/
|
124
|
+
annotationHorizontalLine?: AnnotationHorizontalLine | AnnotationHorizontalLine[];
|
125
|
+
/**
|
126
|
+
* 标注区域
|
127
|
+
* @description 标注区域配置, 根据选择的数据, 定义图表的标注区域, 包括标注区域的位置, 样式等.
|
128
|
+
*/
|
129
|
+
annotationArea?: AnnotationArea | AnnotationArea[];
|
104
130
|
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { AnnotationPoint, BackgroundColor, BarStyle, Color, Dataset, Dimensions, Label, Legend, Measures, Theme, Tooltip, XBandAxis, YLinearAxis } from '../../properties';
|
1
|
+
import type { AnnotationArea, AnnotationHorizontalLine, AnnotationPoint, AnnotationVerticalLine, BackgroundColor, BarStyle, Color, CrosshairRect, Dataset, Dimensions, Label, Legend, Measures, StackCornerRadius, Theme, Tooltip, XBandAxis, YLinearAxis } from '../../properties';
|
2
2
|
/**
|
3
3
|
* 柱状图类型定义
|
4
4
|
* @description 柱状图,适用于纵向数据对比场景,X轴为类目轴(分类数据),Y轴为数值轴(连续数据),柱子纵向排列
|
@@ -87,6 +87,17 @@ export interface Column {
|
|
87
87
|
* @example 'customThemeName'
|
88
88
|
*/
|
89
89
|
theme?: Theme;
|
90
|
+
/**
|
91
|
+
* 垂直提示框
|
92
|
+
* @description 垂直提示框配置, 用于定义图表的垂直提示框, 包括垂直提示框的颜色、标签样式等.
|
93
|
+
*/
|
94
|
+
crosshairRect?: CrosshairRect;
|
95
|
+
/**
|
96
|
+
* 柱状图 堆叠圆角
|
97
|
+
* @description 条形图 堆叠圆角
|
98
|
+
* @default 8
|
99
|
+
*/
|
100
|
+
stackCornerRadius?: StackCornerRadius;
|
90
101
|
/**
|
91
102
|
* 矩形图元样式
|
92
103
|
* @description 条形图样式配置, 用于定义图表的条形图样式, 包括条形图的颜色, 边框, 圆角等.
|
@@ -95,10 +106,25 @@ export interface Column {
|
|
95
106
|
* 若配置selector, 提供数值 selector, 局部数据 selector, 条件维度 selector, 条件指标 selector 共四类数据匹配能力
|
96
107
|
* 若未配置selector, 则样式全局生效.
|
97
108
|
*/
|
98
|
-
barStyle?: BarStyle;
|
109
|
+
barStyle?: BarStyle | BarStyle[];
|
99
110
|
/**
|
100
111
|
* 标注点
|
101
112
|
* @description 标注点配置, 根据选择的数据, 定义图表的标注点, 包括标注点的位置, 格式, 样式等.
|
102
113
|
*/
|
103
114
|
annotationPoint?: AnnotationPoint | AnnotationPoint[];
|
115
|
+
/**
|
116
|
+
* 标注垂直线
|
117
|
+
* @description 标注垂直线配置, 根据选择的数据, 定义图表的标注垂直线, 包括标注垂直线的位置, 样式等.
|
118
|
+
*/
|
119
|
+
annotationVerticalLine?: AnnotationVerticalLine | AnnotationVerticalLine[];
|
120
|
+
/**
|
121
|
+
* 标注水平线
|
122
|
+
* @description 标注水平线配置, 根据选择的数据, 定义图表的标注水平线, 包括标注水平线的位置, 样式等.
|
123
|
+
*/
|
124
|
+
annotationHorizontalLine?: AnnotationHorizontalLine | AnnotationHorizontalLine[];
|
125
|
+
/**
|
126
|
+
* 标注区域
|
127
|
+
* @description 标注区域配置, 根据选择的数据, 定义图表的标注区域, 包括标注区域的位置, 样式等.
|
128
|
+
*/
|
129
|
+
annotationArea?: AnnotationArea | AnnotationArea[];
|
104
130
|
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { AnnotationPoint, BackgroundColor, BarStyle, Color, Dataset, Dimensions, Label, Legend, Measures, Theme, Tooltip, XBandAxis, YLinearAxis } from '../../properties';
|
1
|
+
import type { AnnotationArea, AnnotationHorizontalLine, AnnotationPoint, AnnotationVerticalLine, BackgroundColor, BarStyle, Color, CrosshairRect, Dataset, Dimensions, Label, Legend, Measures, StackCornerRadius, Theme, Tooltip, XBandAxis, YLinearAxis } from '../../properties';
|
2
2
|
/**
|
3
3
|
* 并列柱状图类型定义
|
4
4
|
* @description 并列柱状图,适用于多指标并行对比场景,多个柱子并列排列展示不同指标值
|
@@ -78,6 +78,17 @@ export interface ColumnParallel {
|
|
78
78
|
* @description 数值轴, y轴配置, 用于定义图表的y轴, 包括y轴的位置, 格式, 样式等.
|
79
79
|
*/
|
80
80
|
yAxis?: YLinearAxis;
|
81
|
+
/**
|
82
|
+
* 垂直提示框
|
83
|
+
* @description 垂直提示框配置, 用于定义图表的垂直提示框, 包括垂直提示框的颜色、标签样式等.
|
84
|
+
*/
|
85
|
+
crosshairRect?: CrosshairRect;
|
86
|
+
/**
|
87
|
+
* 柱状图 堆叠圆角
|
88
|
+
* @description 条形图 堆叠圆角
|
89
|
+
* @default 8
|
90
|
+
*/
|
91
|
+
stackCornerRadius?: StackCornerRadius;
|
81
92
|
/**
|
82
93
|
* 图表的主题, 主题是优先级较低的功能配置, 包含所有图表类型共用的通用配置, 与单类图表类型共用的图表配置
|
83
94
|
* @default light 默认为亮色主题
|
@@ -95,10 +106,25 @@ export interface ColumnParallel {
|
|
95
106
|
* 若配置selector, 提供数值 selector, 局部数据 selector, 条件维度 selector, 条件指标 selector 共四类数据匹配能力
|
96
107
|
* 若未配置selector, 则样式全局生效.
|
97
108
|
*/
|
98
|
-
barStyle?: BarStyle;
|
109
|
+
barStyle?: BarStyle | BarStyle[];
|
99
110
|
/**
|
100
111
|
* 标注点
|
101
112
|
* @description 标注点配置, 根据选择的数据, 定义图表的标注点, 包括标注点的位置, 格式, 样式等.
|
102
113
|
*/
|
103
114
|
annotationPoint?: AnnotationPoint | AnnotationPoint[];
|
115
|
+
/**
|
116
|
+
* 标注垂直线
|
117
|
+
* @description 标注垂直线配置, 根据选择的数据, 定义图表的标注垂直线, 包括标注垂直线的位置, 样式等.
|
118
|
+
*/
|
119
|
+
annotationVerticalLine?: AnnotationVerticalLine | AnnotationVerticalLine[];
|
120
|
+
/**
|
121
|
+
* 标注水平线
|
122
|
+
* @description 标注水平线配置, 根据选择的数据, 定义图表的标注水平线, 包括标注水平线的位置, 样式等.
|
123
|
+
*/
|
124
|
+
annotationHorizontalLine?: AnnotationHorizontalLine | AnnotationHorizontalLine[];
|
125
|
+
/**
|
126
|
+
* 标注区域
|
127
|
+
* @description 标注区域配置, 根据选择的数据, 定义图表的标注区域, 包括标注区域的位置, 样式等.
|
128
|
+
*/
|
129
|
+
annotationArea?: AnnotationArea | AnnotationArea[];
|
104
130
|
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { AnnotationPoint, BackgroundColor, BarStyle, Color, Dataset, Dimensions, Label, Legend, Measures, Theme, Tooltip, XBandAxis, YLinearAxis } from '../../properties';
|
1
|
+
import type { AnnotationArea, AnnotationHorizontalLine, AnnotationPoint, AnnotationVerticalLine, BackgroundColor, BarStyle, Color, CrosshairRect, Dataset, Dimensions, Label, Legend, Measures, StackCornerRadius, Theme, Tooltip, XBandAxis, YLinearAxis } from '../../properties';
|
2
2
|
/**
|
3
3
|
* 百分比柱状图类型定义
|
4
4
|
* @description 百分比柱状图,适用于展示各类别占比关系的场景,Y轴以百分比形式展示数据占比
|
@@ -78,6 +78,17 @@ export interface ColumnPercent {
|
|
78
78
|
* @description 数值轴, y轴配置, 用于定义图表的y轴, 包括y轴的位置, 格式, 样式等.
|
79
79
|
*/
|
80
80
|
yAxis?: YLinearAxis;
|
81
|
+
/**
|
82
|
+
* 垂直提示框
|
83
|
+
* @description 垂直提示框配置, 用于定义图表的垂直提示框, 包括垂直提示框的颜色、标签样式等.
|
84
|
+
*/
|
85
|
+
crosshairRect?: CrosshairRect;
|
86
|
+
/**
|
87
|
+
* 柱状图 堆叠圆角
|
88
|
+
* @description 条形图 堆叠圆角
|
89
|
+
* @default 8
|
90
|
+
*/
|
91
|
+
stackCornerRadius?: StackCornerRadius;
|
81
92
|
/**
|
82
93
|
* 图表的主题, 主题是优先级较低的功能配置, 包含所有图表类型共用的通用配置, 与单类图表类型共用的图表配置
|
83
94
|
* @default light 默认为亮色主题
|
@@ -95,10 +106,25 @@ export interface ColumnPercent {
|
|
95
106
|
* 若配置selector, 提供数值 selector, 局部数据 selector, 条件维度 selector, 条件指标 selector 共四类数据匹配能力
|
96
107
|
* 若未配置selector, 则样式全局生效.
|
97
108
|
*/
|
98
|
-
barStyle?: BarStyle;
|
109
|
+
barStyle?: BarStyle | BarStyle[];
|
99
110
|
/**
|
100
111
|
* 标注点
|
101
112
|
* @description 标注点配置, 根据选择的数据, 定义图表的标注点, 包括标注点的位置, 格式, 样式等.
|
102
113
|
*/
|
103
114
|
annotationPoint?: AnnotationPoint | AnnotationPoint[];
|
115
|
+
/**
|
116
|
+
* 标注垂直线
|
117
|
+
* @description 标注垂直线配置, 根据选择的数据, 定义图表的标注垂直线, 包括标注垂直线的位置, 样式等.
|
118
|
+
*/
|
119
|
+
annotationVerticalLine?: AnnotationVerticalLine | AnnotationVerticalLine[];
|
120
|
+
/**
|
121
|
+
* 标注水平线
|
122
|
+
* @description 标注水平线配置, 根据选择的数据, 定义图表的标注水平线, 包括标注水平线的位置, 样式等.
|
123
|
+
*/
|
124
|
+
annotationHorizontalLine?: AnnotationHorizontalLine | AnnotationHorizontalLine[];
|
125
|
+
/**
|
126
|
+
* 标注区域
|
127
|
+
* @description 标注区域配置, 根据选择的数据, 定义图表的标注区域, 包括标注区域的位置, 样式等.
|
128
|
+
*/
|
129
|
+
annotationArea?: AnnotationArea | AnnotationArea[];
|
104
130
|
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { AnnotationPoint, BackgroundColor, Color, Dataset, Dimensions, Label, Legend, Measures, Theme, Tooltip, XBandAxis, YLinearAxis } from '../../properties';
|
1
|
+
import type { AnnotationArea, AnnotationHorizontalLine, AnnotationPoint, AnnotationVerticalLine, BackgroundColor, Color, Dataset, Dimensions, Label, Legend, LineStyle, Measures, PointStyle, Theme, Tooltip, CrosshairLine, XBandAxis, YLinearAxis } from '../../properties';
|
2
2
|
/**
|
3
3
|
* 折线图类型定义
|
4
4
|
* @description 折线图,适用于展示数据随时间或有序类别变化的趋势,通过线段连接数据点形成趋势线
|
@@ -78,6 +78,11 @@ export interface Line {
|
|
78
78
|
* @description 数值轴, y轴配置, 用于定义图表的y轴, 包括y轴的位置, 格式, 样式等.
|
79
79
|
*/
|
80
80
|
yAxis?: YLinearAxis;
|
81
|
+
/**
|
82
|
+
* 垂直提示线
|
83
|
+
* @description 鼠标移动到图表上时, 显示的垂直提示线
|
84
|
+
*/
|
85
|
+
crosshairLine?: CrosshairLine;
|
81
86
|
/**
|
82
87
|
* 图表的主题, 主题是优先级较低的功能配置, 包含所有图表类型共用的通用配置, 与单类图表类型共用的图表配置
|
83
88
|
* @default light 默认为亮色主题
|
@@ -87,9 +92,42 @@ export interface Line {
|
|
87
92
|
* @example 'customThemeName'
|
88
93
|
*/
|
89
94
|
theme?: Theme;
|
95
|
+
/**
|
96
|
+
* 点图元样式
|
97
|
+
* @description 点图元样式配置, 用于定义图表的点图元样式, 包括点图元的颜色, 边框等.
|
98
|
+
* 支持全局样式或条件样式配置
|
99
|
+
* 数据筛选器
|
100
|
+
* 若配置selector, 提供数值 selector, 局部数据 selector, 条件维度 selector, 条件指标 selector 共四类数据匹配能力
|
101
|
+
* 若未配置selector, 则样式全局生效.
|
102
|
+
*/
|
103
|
+
pointStyle?: PointStyle | PointStyle[];
|
104
|
+
/**
|
105
|
+
* 线图元样式
|
106
|
+
* @description 线图元样式配置, 用于定义图表的线图元样式, 包括线图元的颜色, 透明度, 曲线等.
|
107
|
+
* 支持全局样式或条件样式配置
|
108
|
+
* 数据筛选器
|
109
|
+
* 若配置selector, 提供数值 selector, 局部数据 selector, 条件维度 selector, 条件指标 selector 共四类数据匹配能力
|
110
|
+
* 若未配置selector, 则样式全局生效.
|
111
|
+
*/
|
112
|
+
lineStyle?: LineStyle | LineStyle[];
|
90
113
|
/**
|
91
114
|
* 标注点
|
92
115
|
* @description 标注点配置, 根据选择的数据, 定义图表的标注点, 包括标注点的位置, 格式, 样式等.
|
93
116
|
*/
|
94
117
|
annotationPoint?: AnnotationPoint | AnnotationPoint[];
|
118
|
+
/**
|
119
|
+
* 标注垂直线
|
120
|
+
* @description 标注垂直线配置, 根据选择的数据, 定义图表的标注垂直线, 包括标注垂直线的位置, 样式等.
|
121
|
+
*/
|
122
|
+
annotationVerticalLine?: AnnotationVerticalLine | AnnotationVerticalLine[];
|
123
|
+
/**
|
124
|
+
* 标注水平线
|
125
|
+
* @description 标注水平线配置, 根据选择的数据, 定义图表的标注水平线, 包括标注水平线的位置, 样式等.
|
126
|
+
*/
|
127
|
+
annotationHorizontalLine?: AnnotationHorizontalLine | AnnotationHorizontalLine[];
|
128
|
+
/**
|
129
|
+
* 标注区域
|
130
|
+
* @description 标注区域配置, 根据选择的数据, 定义图表的标注区域, 包括标注区域的位置, 样式等.
|
131
|
+
*/
|
132
|
+
annotationArea?: AnnotationArea | AnnotationArea[];
|
95
133
|
}
|
@@ -4,31 +4,85 @@ export type ValueSelector = string | number;
|
|
4
4
|
export type PartialDatumSelector = Datum;
|
5
5
|
export type MeasureSelector = {
|
6
6
|
field: string;
|
7
|
-
operator
|
7
|
+
operator?: '=' | '==' | '!=' | '>' | '<' | '>=' | '<=' | 'between';
|
8
|
+
op?: '=' | '==' | '!=' | '>' | '<' | '>=' | '<=' | 'between';
|
8
9
|
value: string | number | Array<string | number>;
|
9
10
|
};
|
10
11
|
export type DimensionSelector = {
|
11
12
|
field: string;
|
12
|
-
operator
|
13
|
+
operator?: 'in' | 'not in';
|
14
|
+
op?: 'in' | 'not in';
|
13
15
|
value: string | number | Array<string | number>;
|
14
16
|
};
|
15
17
|
export type Selector = ValueSelector | PartialDatumSelector | MeasureSelector | DimensionSelector;
|
16
18
|
export type Selectors = Array<Selector>;
|
17
19
|
export declare const zSelector: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject<{
|
18
20
|
field: z.ZodString;
|
19
|
-
operator: z.
|
21
|
+
operator: z.ZodOptional<z.ZodEnum<{
|
22
|
+
"=": "=";
|
23
|
+
"==": "==";
|
24
|
+
"!=": "!=";
|
25
|
+
">": ">";
|
26
|
+
"<": "<";
|
27
|
+
">=": ">=";
|
28
|
+
"<=": "<=";
|
29
|
+
between: "between";
|
30
|
+
}>>;
|
31
|
+
op: z.ZodOptional<z.ZodEnum<{
|
32
|
+
"=": "=";
|
33
|
+
"==": "==";
|
34
|
+
"!=": "!=";
|
35
|
+
">": ">";
|
36
|
+
"<": "<";
|
37
|
+
">=": ">=";
|
38
|
+
"<=": "<=";
|
39
|
+
between: "between";
|
40
|
+
}>>;
|
20
41
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
21
42
|
}, z.core.$strip>, z.ZodObject<{
|
22
43
|
field: z.ZodString;
|
23
|
-
operator: z.
|
44
|
+
operator: z.ZodOptional<z.ZodEnum<{
|
45
|
+
in: "in";
|
46
|
+
"not in": "not in";
|
47
|
+
}>>;
|
48
|
+
op: z.ZodOptional<z.ZodEnum<{
|
49
|
+
in: "in";
|
50
|
+
"not in": "not in";
|
51
|
+
}>>;
|
24
52
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
25
53
|
}, z.core.$strip>]>;
|
26
54
|
export declare const zSelectors: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject<{
|
27
55
|
field: z.ZodString;
|
28
|
-
operator: z.
|
56
|
+
operator: z.ZodOptional<z.ZodEnum<{
|
57
|
+
"=": "=";
|
58
|
+
"==": "==";
|
59
|
+
"!=": "!=";
|
60
|
+
">": ">";
|
61
|
+
"<": "<";
|
62
|
+
">=": ">=";
|
63
|
+
"<=": "<=";
|
64
|
+
between: "between";
|
65
|
+
}>>;
|
66
|
+
op: z.ZodOptional<z.ZodEnum<{
|
67
|
+
"=": "=";
|
68
|
+
"==": "==";
|
69
|
+
"!=": "!=";
|
70
|
+
">": ">";
|
71
|
+
"<": "<";
|
72
|
+
">=": ">=";
|
73
|
+
"<=": "<=";
|
74
|
+
between: "between";
|
75
|
+
}>>;
|
29
76
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
30
77
|
}, z.core.$strip>, z.ZodObject<{
|
31
78
|
field: z.ZodString;
|
32
|
-
operator: z.
|
79
|
+
operator: z.ZodOptional<z.ZodEnum<{
|
80
|
+
in: "in";
|
81
|
+
"not in": "not in";
|
82
|
+
}>>;
|
83
|
+
op: z.ZodOptional<z.ZodEnum<{
|
84
|
+
in: "in";
|
85
|
+
"not in": "not in";
|
86
|
+
}>>;
|
33
87
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
34
88
|
}, z.core.$strip>]>>;
|