@visactor/vseed 0.0.11 → 0.0.13
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 +4339 -477
- package/dist/builder/register/theme.d.ts +4 -1
- package/dist/dataSelector/selector.d.ts +1 -1
- package/dist/i18n/i18n.d.ts +17 -0
- package/dist/i18n/index.d.ts +1 -0
- package/dist/index.cjs +1064 -190
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1015 -183
- package/dist/index.js.map +1 -1
- package/dist/pipeline/advanced/pipes/config/config.d.ts +3 -3
- package/dist/pipeline/advanced/pipes/i18n/index.d.ts +1 -0
- package/dist/pipeline/advanced/pipes/i18n/locale.d.ts +2 -0
- package/dist/pipeline/advanced/pipes/index.d.ts +1 -0
- package/dist/pipeline/constant.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 +3 -0
- package/dist/pipeline/utils/format/createNumFormatter.d.ts +3 -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 +2445 -320
- package/dist/types/chartType/area/area.d.ts +40 -1
- package/dist/types/chartType/areaPercent/areaPercent.d.ts +43 -4
- package/dist/types/chartType/bar/bar.d.ts +20 -2
- package/dist/types/chartType/barParallel/barParallel.d.ts +20 -2
- package/dist/types/chartType/barPercent/barPercent.d.ts +20 -2
- package/dist/types/chartType/column/column.d.ts +20 -2
- package/dist/types/chartType/columnParallel/columnParallel.d.ts +20 -2
- package/dist/types/chartType/columnPercent/columnPercent.d.ts +20 -2
- package/dist/types/chartType/donut/donut.d.ts +7 -0
- package/dist/types/chartType/dualAxis/dualAxis.d.ts +7 -0
- package/dist/types/chartType/line/line.d.ts +34 -4
- package/dist/types/chartType/pie/pie.d.ts +7 -0
- package/dist/types/chartType/pivotTable/pivotTable.d.ts +7 -0
- package/dist/types/chartType/rose/rose.d.ts +7 -0
- package/dist/types/chartType/table/table.d.ts +7 -0
- package/dist/types/i18n/i18n.d.ts +9 -0
- package/dist/types/i18n/index.d.ts +1 -0
- package/dist/types/index.d.ts +1 -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/index.d.ts +3 -0
- package/dist/types/properties/markStyle/lineStyle.d.ts +160 -0
- package/dist/types/properties/markStyle/markStyle.d.ts +543 -2
- 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 +29 -25
- package/package.json +1 -1
@@ -1,4 +1,5 @@
|
|
1
|
-
import type {
|
1
|
+
import type { Locale } from '../../i18n';
|
2
|
+
import type { AnnotationArea, AnnotationHorizontalLine, AnnotationPoint, AnnotationVerticalLine, AreaStyle, BackgroundColor, Color, Dataset, Dimensions, Label, Legend, LineStyle, Measures, PointStyle, Theme, Tooltip, XBandAxis, YLinearAxis, CrosshairLine } from '../../properties';
|
2
3
|
/**
|
3
4
|
* 面积图类型定义
|
4
5
|
* @description 面积图, 适用于展示数据随时间变化的趋势及累积关系, 通过填充区域增强数据对比. X轴为类目轴(分类数据), Y轴为数值轴(连续数据).
|
@@ -79,6 +80,11 @@ export interface Area {
|
|
79
80
|
* @description 数值轴, y轴配置, 用于定义图表的y轴, 包括y轴的位置, 格式, 样式等.
|
80
81
|
*/
|
81
82
|
yAxis?: YLinearAxis;
|
83
|
+
/**
|
84
|
+
* 垂直提示线
|
85
|
+
* @description 鼠标移动到图表上时, 显示的垂直提示线
|
86
|
+
*/
|
87
|
+
crosshairLine?: CrosshairLine;
|
82
88
|
/**
|
83
89
|
* 图表的主题, 主题是优先级较低的功能配置, 包含所有图表类型共用的通用配置, 与单类图表类型共用的图表配置
|
84
90
|
* @default light 默认为亮色主题
|
@@ -88,6 +94,33 @@ export interface Area {
|
|
88
94
|
* @example 'customThemeName'
|
89
95
|
*/
|
90
96
|
theme?: Theme;
|
97
|
+
/**
|
98
|
+
* 点图元样式
|
99
|
+
* @description 点图元样式配置, 用于定义图表的点图元样式, 包括点图元的颜色, 边框等.
|
100
|
+
* 支持全局样式或条件样式配置
|
101
|
+
* 数据筛选器
|
102
|
+
* 若配置selector, 提供数值 selector, 局部数据 selector, 条件维度 selector, 条件指标 selector 共四类数据匹配能力
|
103
|
+
* 若未配置selector, 则样式全局生效.
|
104
|
+
*/
|
105
|
+
pointStyle?: PointStyle | PointStyle[];
|
106
|
+
/**
|
107
|
+
* 线图元样式
|
108
|
+
* @description 线图元样式配置, 用于定义图表的线图元样式, 包括线图元的颜色, 透明度, 曲线等.
|
109
|
+
* 支持全局样式或条件样式配置
|
110
|
+
* 数据筛选器
|
111
|
+
* 若配置selector, 提供数值 selector, 局部数据 selector, 条件维度 selector, 条件指标 selector 共四类数据匹配能力
|
112
|
+
* 若未配置selector, 则样式全局生效.
|
113
|
+
*/
|
114
|
+
lineStyle?: LineStyle | LineStyle[];
|
115
|
+
/**
|
116
|
+
* 面积图元样式
|
117
|
+
* @description 面积图元样式配置, 用于定义图表的面积图元样式, 包括面积图元的颜色, 透明度, 边框等.
|
118
|
+
* 支持全局样式或条件样式配置
|
119
|
+
* 数据筛选器
|
120
|
+
* 若配置selector, 提供数值 selector, 局部数据 selector, 条件维度 selector, 条件指标 selector 共四类数据匹配能力
|
121
|
+
* 若未配置selector, 则样式全局生效.
|
122
|
+
*/
|
123
|
+
areaStyle?: AreaStyle | AreaStyle[];
|
91
124
|
/**
|
92
125
|
* 标注点
|
93
126
|
* @description 标注点配置, 根据选择的数据, 定义图表的标注点, 包括标注点的位置, 格式, 样式等.
|
@@ -108,4 +141,10 @@ export interface Area {
|
|
108
141
|
* @description 标注区域配置, 根据选择的数据, 定义图表的标注区域, 包括标注区域的位置, 样式等.
|
109
142
|
*/
|
110
143
|
annotationArea?: AnnotationArea | AnnotationArea[];
|
144
|
+
/**
|
145
|
+
* 语言
|
146
|
+
* @description 图表语言配置, 支持'zh-CN'与'en-US'两种语言, 另外可以调用 intl.setLocale('zh-CN') 方法设置语言
|
147
|
+
* @default 'zh-CN'
|
148
|
+
*/
|
149
|
+
locale?: Locale;
|
111
150
|
}
|
@@ -1,4 +1,5 @@
|
|
1
|
-
import type {
|
1
|
+
import type { Locale } from '../../i18n';
|
2
|
+
import type { AnnotationArea, AnnotationHorizontalLine, AnnotationPoint, AnnotationVerticalLine, AreaStyle, BackgroundColor, Color, Dataset, Dimensions, Label, Legend, LineStyle, Measures, PointStyle, Theme, Tooltip, XBandAxis, YLinearAxis, CrosshairLine } from '../../properties';
|
2
3
|
/**
|
3
4
|
* 百分比面积图类型定义
|
4
5
|
* @description 百分比面积图,适用于展示多类别占比随时间变化的趋势,Y轴以百分比形式展示占比关系
|
@@ -78,6 +79,11 @@ export interface AreaPercent {
|
|
78
79
|
* @description 数值轴, y轴配置, 用于定义图表的y轴, 包括y轴的位置, 格式, 样式等.
|
79
80
|
*/
|
80
81
|
yAxis?: YLinearAxis;
|
82
|
+
/**
|
83
|
+
* 垂直提示线
|
84
|
+
* @description 鼠标移动到图表上时, 显示的垂直提示线
|
85
|
+
*/
|
86
|
+
crosshairLine?: CrosshairLine;
|
81
87
|
/**
|
82
88
|
* 图表的主题, 主题是优先级较低的功能配置, 包含所有图表类型共用的通用配置, 与单类图表类型共用的图表配置
|
83
89
|
* @default light 默认为亮色主题
|
@@ -87,6 +93,33 @@ export interface AreaPercent {
|
|
87
93
|
* @example 'customThemeName'
|
88
94
|
*/
|
89
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[];
|
90
123
|
/**
|
91
124
|
* 标注点
|
92
125
|
* @description 标注点配置, 根据选择的数据, 定义图表的标注点, 包括标注点的位置, 格式, 样式等.
|
@@ -103,8 +136,14 @@ export interface AreaPercent {
|
|
103
136
|
*/
|
104
137
|
annotationHorizontalLine?: AnnotationHorizontalLine | AnnotationHorizontalLine[];
|
105
138
|
/**
|
106
|
-
|
107
|
-
|
108
|
-
|
139
|
+
* 标注区域
|
140
|
+
* @description 标注区域配置, 根据选择的数据, 定义图表的标注区域, 包括标注区域的位置, 样式等.
|
141
|
+
*/
|
109
142
|
annotationArea?: AnnotationArea | AnnotationArea[];
|
143
|
+
/**
|
144
|
+
* 语言
|
145
|
+
* @description 图表语言配置, 支持'zh-CN'与'en-US'两种语言, 另外可以调用 intl.setLocale('zh-CN') 方法设置语言
|
146
|
+
* @default 'zh-CN'
|
147
|
+
*/
|
148
|
+
locale?: Locale;
|
110
149
|
}
|
@@ -1,4 +1,5 @@
|
|
1
|
-
import type {
|
1
|
+
import type { Locale } from '../../i18n';
|
2
|
+
import type { AnnotationArea, AnnotationHorizontalLine, AnnotationPoint, AnnotationVerticalLine, BackgroundColor, BarStyle, Color, CrosshairRect, Dataset, Dimensions, Label, Legend, Measures, StackCornerRadius, Theme, Tooltip, XLinearAxis, YBandAxis } from '../../properties';
|
2
3
|
/**
|
3
4
|
* 条形图类型定义
|
4
5
|
* @description 条形图,适用于横向数据对比场景,Y轴为类目轴(分类数据),X轴为数值轴(连续数据),柱子横向排列
|
@@ -78,6 +79,17 @@ export interface Bar {
|
|
78
79
|
* @description 类目轴, y轴配置, 用于定义图表的y轴, 包括y轴的位置, 格式, 样式等.
|
79
80
|
*/
|
80
81
|
yAxis?: YBandAxis;
|
82
|
+
/**
|
83
|
+
* 水平提示框
|
84
|
+
* @description 水平提示框配置, 用于定义图表的水平提示框, 包括水平提示框的颜色、标签样式等.
|
85
|
+
*/
|
86
|
+
crosshairRect?: CrosshairRect;
|
87
|
+
/**
|
88
|
+
* 条形图 堆叠圆角
|
89
|
+
* @description 条形图 堆叠圆角
|
90
|
+
* @default 8
|
91
|
+
*/
|
92
|
+
stackCornerRadius?: StackCornerRadius;
|
81
93
|
/**
|
82
94
|
* 图表的主题, 主题是优先级较低的功能配置, 包含所有图表类型共用的通用配置, 与单类图表类型共用的图表配置
|
83
95
|
* @default light 默认为亮色主题
|
@@ -95,7 +107,7 @@ export interface Bar {
|
|
95
107
|
* 若配置selector, 提供数值 selector, 局部数据 selector, 条件维度 selector, 条件指标 selector 共四类数据匹配能力
|
96
108
|
* 若未配置selector, 则样式全局生效.
|
97
109
|
*/
|
98
|
-
barStyle?: BarStyle;
|
110
|
+
barStyle?: BarStyle | BarStyle[];
|
99
111
|
/**
|
100
112
|
* 标注点
|
101
113
|
* @description 标注点配置, 根据选择的数据, 定义图表的标注点, 包括标注点的位置, 格式, 样式等.
|
@@ -116,4 +128,10 @@ export interface Bar {
|
|
116
128
|
* @description 标注区域配置, 根据选择的数据, 定义图表的标注区域, 包括标注区域的位置, 样式等.
|
117
129
|
*/
|
118
130
|
annotationArea?: AnnotationArea | AnnotationArea[];
|
131
|
+
/**
|
132
|
+
* 语言
|
133
|
+
* @description 图表语言配置, 支持'zh-CN'与'en-US'两种语言, 另外可以调用 intl.setLocale('zh-CN') 方法设置语言
|
134
|
+
* @default 'zh-CN'
|
135
|
+
*/
|
136
|
+
locale?: Locale;
|
119
137
|
}
|
@@ -1,4 +1,5 @@
|
|
1
|
-
import type {
|
1
|
+
import type { Locale } from '../../i18n';
|
2
|
+
import type { AnnotationArea, AnnotationHorizontalLine, AnnotationPoint, AnnotationVerticalLine, BackgroundColor, BarStyle, Color, CrosshairRect, Dataset, Dimensions, Label, Legend, Measures, StackCornerRadius, Theme, Tooltip, XLinearAxis, YBandAxis } from '../../properties';
|
2
3
|
/**
|
3
4
|
* 并列条形图类型定义
|
4
5
|
* @description 并列条形图,适用于多指标横向并行对比场景,多个条形平行排列展示不同指标值
|
@@ -78,6 +79,17 @@ export interface BarParallel {
|
|
78
79
|
* @description 类目轴, y轴配置, 用于定义图表的y轴, 包括y轴的位置, 格式, 样式等.
|
79
80
|
*/
|
80
81
|
yAxis?: YBandAxis;
|
82
|
+
/**
|
83
|
+
* 水平提示框
|
84
|
+
* @description 水平提示框配置, 用于定义图表的水平提示框, 包括水平提示框的颜色、标签样式等.
|
85
|
+
*/
|
86
|
+
crosshairRect?: CrosshairRect;
|
87
|
+
/**
|
88
|
+
* 条形图 堆叠圆角
|
89
|
+
* @description 条形图 堆叠圆角
|
90
|
+
* @default 8
|
91
|
+
*/
|
92
|
+
stackCornerRadius?: StackCornerRadius;
|
81
93
|
/**
|
82
94
|
* 图表的主题, 主题是优先级较低的功能配置, 包含所有图表类型共用的通用配置, 与单类图表类型共用的图表配置
|
83
95
|
* @default light 默认为亮色主题
|
@@ -95,7 +107,7 @@ export interface BarParallel {
|
|
95
107
|
* 若配置selector, 提供数值 selector, 局部数据 selector, 条件维度 selector, 条件指标 selector 共四类数据匹配能力
|
96
108
|
* 若未配置selector, 则样式全局生效.
|
97
109
|
*/
|
98
|
-
barStyle?: BarStyle;
|
110
|
+
barStyle?: BarStyle | BarStyle[];
|
99
111
|
/**
|
100
112
|
* 标注点
|
101
113
|
* @description 标注点配置, 根据选择的数据, 定义图表的标注点, 包括标注点的位置, 格式, 样式等.
|
@@ -116,4 +128,10 @@ export interface BarParallel {
|
|
116
128
|
* @description 标注区域配置, 根据选择的数据, 定义图表的标注区域, 包括标注区域的位置, 样式等.
|
117
129
|
*/
|
118
130
|
annotationArea?: AnnotationArea | AnnotationArea[];
|
131
|
+
/**
|
132
|
+
* 语言
|
133
|
+
* @description 图表语言配置, 支持'zh-CN'与'en-US'两种语言, 另外可以调用 intl.setLocale('zh-CN') 方法设置语言
|
134
|
+
* @default 'zh-CN'
|
135
|
+
*/
|
136
|
+
locale?: Locale;
|
119
137
|
}
|
@@ -1,4 +1,5 @@
|
|
1
|
-
import type {
|
1
|
+
import type { Locale } from '../../i18n';
|
2
|
+
import type { AnnotationArea, AnnotationHorizontalLine, AnnotationPoint, AnnotationVerticalLine, BackgroundColor, BarStyle, Color, CrosshairRect, Dataset, Dimensions, Label, Legend, Measures, StackCornerRadius, Theme, Tooltip, XLinearAxis, YBandAxis } from '../../properties';
|
2
3
|
/**
|
3
4
|
* 百分比条形图类型定义
|
4
5
|
* @description 百分比条形图,适用于横向展示各类别占比关系的场景,X轴以百分比形式展示数据占比
|
@@ -78,6 +79,17 @@ export interface BarPercent {
|
|
78
79
|
* @description 类目轴, y轴配置, 用于定义图表的y轴, 包括y轴的位置, 格式, 样式等.
|
79
80
|
*/
|
80
81
|
yAxis?: YBandAxis;
|
82
|
+
/**
|
83
|
+
* 水平提示框
|
84
|
+
* @description 水平提示框配置, 用于定义图表的水平提示框, 包括水平提示框的颜色、标签样式等.
|
85
|
+
*/
|
86
|
+
crosshairRect?: CrosshairRect;
|
87
|
+
/**
|
88
|
+
* 条形图 堆叠圆角
|
89
|
+
* @description 条形图 堆叠圆角
|
90
|
+
* @default 8
|
91
|
+
*/
|
92
|
+
stackCornerRadius?: StackCornerRadius;
|
81
93
|
/**
|
82
94
|
* 图表的主题, 主题是优先级较低的功能配置, 包含所有图表类型共用的通用配置, 与单类图表类型共用的图表配置
|
83
95
|
* @default light 默认为亮色主题
|
@@ -95,7 +107,7 @@ export interface BarPercent {
|
|
95
107
|
* 若配置selector, 提供数值 selector, 局部数据 selector, 条件维度 selector, 条件指标 selector 共四类数据匹配能力
|
96
108
|
* 若未配置selector, 则样式全局生效.
|
97
109
|
*/
|
98
|
-
barStyle?: BarStyle;
|
110
|
+
barStyle?: BarStyle | BarStyle[];
|
99
111
|
/**
|
100
112
|
* 标注点
|
101
113
|
* @description 标注点配置, 根据选择的数据, 定义图表的标注点, 包括标注点的位置, 格式, 样式等.
|
@@ -116,4 +128,10 @@ export interface BarPercent {
|
|
116
128
|
* @description 标注区域配置, 根据选择的数据, 定义图表的标注区域, 包括标注区域的位置, 样式等.
|
117
129
|
*/
|
118
130
|
annotationArea?: AnnotationArea | AnnotationArea[];
|
131
|
+
/**
|
132
|
+
* 语言
|
133
|
+
* @description 图表语言配置, 支持'zh-CN'与'en-US'两种语言, 另外可以调用 intl.setLocale('zh-CN') 方法设置语言
|
134
|
+
* @default 'zh-CN'
|
135
|
+
*/
|
136
|
+
locale?: Locale;
|
119
137
|
}
|
@@ -1,4 +1,5 @@
|
|
1
|
-
import type {
|
1
|
+
import type { Locale } from '../../i18n';
|
2
|
+
import type { AnnotationArea, AnnotationHorizontalLine, AnnotationPoint, AnnotationVerticalLine, BackgroundColor, BarStyle, Color, CrosshairRect, Dataset, Dimensions, Label, Legend, Measures, StackCornerRadius, Theme, Tooltip, XBandAxis, YLinearAxis } from '../../properties';
|
2
3
|
/**
|
3
4
|
* 柱状图类型定义
|
4
5
|
* @description 柱状图,适用于纵向数据对比场景,X轴为类目轴(分类数据),Y轴为数值轴(连续数据),柱子纵向排列
|
@@ -87,6 +88,17 @@ export interface Column {
|
|
87
88
|
* @example 'customThemeName'
|
88
89
|
*/
|
89
90
|
theme?: Theme;
|
91
|
+
/**
|
92
|
+
* 垂直提示框
|
93
|
+
* @description 垂直提示框配置, 用于定义图表的垂直提示框, 包括垂直提示框的颜色、标签样式等.
|
94
|
+
*/
|
95
|
+
crosshairRect?: CrosshairRect;
|
96
|
+
/**
|
97
|
+
* 柱状图 堆叠圆角
|
98
|
+
* @description 条形图 堆叠圆角
|
99
|
+
* @default 8
|
100
|
+
*/
|
101
|
+
stackCornerRadius?: StackCornerRadius;
|
90
102
|
/**
|
91
103
|
* 矩形图元样式
|
92
104
|
* @description 条形图样式配置, 用于定义图表的条形图样式, 包括条形图的颜色, 边框, 圆角等.
|
@@ -95,7 +107,7 @@ export interface Column {
|
|
95
107
|
* 若配置selector, 提供数值 selector, 局部数据 selector, 条件维度 selector, 条件指标 selector 共四类数据匹配能力
|
96
108
|
* 若未配置selector, 则样式全局生效.
|
97
109
|
*/
|
98
|
-
barStyle?: BarStyle;
|
110
|
+
barStyle?: BarStyle | BarStyle[];
|
99
111
|
/**
|
100
112
|
* 标注点
|
101
113
|
* @description 标注点配置, 根据选择的数据, 定义图表的标注点, 包括标注点的位置, 格式, 样式等.
|
@@ -116,4 +128,10 @@ export interface Column {
|
|
116
128
|
* @description 标注区域配置, 根据选择的数据, 定义图表的标注区域, 包括标注区域的位置, 样式等.
|
117
129
|
*/
|
118
130
|
annotationArea?: AnnotationArea | AnnotationArea[];
|
131
|
+
/**
|
132
|
+
* 语言
|
133
|
+
* @description 图表语言配置, 支持'zh-CN'与'en-US'两种语言, 另外可以调用 intl.setLocale('zh-CN') 方法设置语言
|
134
|
+
* @default 'zh-CN'
|
135
|
+
*/
|
136
|
+
locale?: Locale;
|
119
137
|
}
|
@@ -1,4 +1,5 @@
|
|
1
|
-
import type {
|
1
|
+
import type { Locale } from '../../i18n';
|
2
|
+
import type { AnnotationArea, AnnotationHorizontalLine, AnnotationPoint, AnnotationVerticalLine, BackgroundColor, BarStyle, Color, CrosshairRect, Dataset, Dimensions, Label, Legend, Measures, StackCornerRadius, Theme, Tooltip, XBandAxis, YLinearAxis } from '../../properties';
|
2
3
|
/**
|
3
4
|
* 并列柱状图类型定义
|
4
5
|
* @description 并列柱状图,适用于多指标并行对比场景,多个柱子并列排列展示不同指标值
|
@@ -78,6 +79,17 @@ export interface ColumnParallel {
|
|
78
79
|
* @description 数值轴, y轴配置, 用于定义图表的y轴, 包括y轴的位置, 格式, 样式等.
|
79
80
|
*/
|
80
81
|
yAxis?: YLinearAxis;
|
82
|
+
/**
|
83
|
+
* 垂直提示框
|
84
|
+
* @description 垂直提示框配置, 用于定义图表的垂直提示框, 包括垂直提示框的颜色、标签样式等.
|
85
|
+
*/
|
86
|
+
crosshairRect?: CrosshairRect;
|
87
|
+
/**
|
88
|
+
* 柱状图 堆叠圆角
|
89
|
+
* @description 条形图 堆叠圆角
|
90
|
+
* @default 8
|
91
|
+
*/
|
92
|
+
stackCornerRadius?: StackCornerRadius;
|
81
93
|
/**
|
82
94
|
* 图表的主题, 主题是优先级较低的功能配置, 包含所有图表类型共用的通用配置, 与单类图表类型共用的图表配置
|
83
95
|
* @default light 默认为亮色主题
|
@@ -95,7 +107,7 @@ export interface ColumnParallel {
|
|
95
107
|
* 若配置selector, 提供数值 selector, 局部数据 selector, 条件维度 selector, 条件指标 selector 共四类数据匹配能力
|
96
108
|
* 若未配置selector, 则样式全局生效.
|
97
109
|
*/
|
98
|
-
barStyle?: BarStyle;
|
110
|
+
barStyle?: BarStyle | BarStyle[];
|
99
111
|
/**
|
100
112
|
* 标注点
|
101
113
|
* @description 标注点配置, 根据选择的数据, 定义图表的标注点, 包括标注点的位置, 格式, 样式等.
|
@@ -116,4 +128,10 @@ export interface ColumnParallel {
|
|
116
128
|
* @description 标注区域配置, 根据选择的数据, 定义图表的标注区域, 包括标注区域的位置, 样式等.
|
117
129
|
*/
|
118
130
|
annotationArea?: AnnotationArea | AnnotationArea[];
|
131
|
+
/**
|
132
|
+
* 语言
|
133
|
+
* @description 图表语言配置, 支持'zh-CN'与'en-US'两种语言, 另外可以调用 intl.setLocale('zh-CN') 方法设置语言
|
134
|
+
* @default 'zh-CN'
|
135
|
+
*/
|
136
|
+
locale?: Locale;
|
119
137
|
}
|
@@ -1,4 +1,5 @@
|
|
1
|
-
import type {
|
1
|
+
import type { Locale } from '../../i18n';
|
2
|
+
import type { AnnotationArea, AnnotationHorizontalLine, AnnotationPoint, AnnotationVerticalLine, BackgroundColor, BarStyle, Color, CrosshairRect, Dataset, Dimensions, Label, Legend, Measures, StackCornerRadius, Theme, Tooltip, XBandAxis, YLinearAxis } from '../../properties';
|
2
3
|
/**
|
3
4
|
* 百分比柱状图类型定义
|
4
5
|
* @description 百分比柱状图,适用于展示各类别占比关系的场景,Y轴以百分比形式展示数据占比
|
@@ -78,6 +79,17 @@ export interface ColumnPercent {
|
|
78
79
|
* @description 数值轴, y轴配置, 用于定义图表的y轴, 包括y轴的位置, 格式, 样式等.
|
79
80
|
*/
|
80
81
|
yAxis?: YLinearAxis;
|
82
|
+
/**
|
83
|
+
* 垂直提示框
|
84
|
+
* @description 垂直提示框配置, 用于定义图表的垂直提示框, 包括垂直提示框的颜色、标签样式等.
|
85
|
+
*/
|
86
|
+
crosshairRect?: CrosshairRect;
|
87
|
+
/**
|
88
|
+
* 柱状图 堆叠圆角
|
89
|
+
* @description 条形图 堆叠圆角
|
90
|
+
* @default 8
|
91
|
+
*/
|
92
|
+
stackCornerRadius?: StackCornerRadius;
|
81
93
|
/**
|
82
94
|
* 图表的主题, 主题是优先级较低的功能配置, 包含所有图表类型共用的通用配置, 与单类图表类型共用的图表配置
|
83
95
|
* @default light 默认为亮色主题
|
@@ -95,7 +107,7 @@ export interface ColumnPercent {
|
|
95
107
|
* 若配置selector, 提供数值 selector, 局部数据 selector, 条件维度 selector, 条件指标 selector 共四类数据匹配能力
|
96
108
|
* 若未配置selector, 则样式全局生效.
|
97
109
|
*/
|
98
|
-
barStyle?: BarStyle;
|
110
|
+
barStyle?: BarStyle | BarStyle[];
|
99
111
|
/**
|
100
112
|
* 标注点
|
101
113
|
* @description 标注点配置, 根据选择的数据, 定义图表的标注点, 包括标注点的位置, 格式, 样式等.
|
@@ -116,4 +128,10 @@ export interface ColumnPercent {
|
|
116
128
|
* @description 标注区域配置, 根据选择的数据, 定义图表的标注区域, 包括标注区域的位置, 样式等.
|
117
129
|
*/
|
118
130
|
annotationArea?: AnnotationArea | AnnotationArea[];
|
131
|
+
/**
|
132
|
+
* 语言
|
133
|
+
* @description 图表语言配置, 支持'zh-CN'与'en-US'两种语言, 另外可以调用 intl.setLocale('zh-CN') 方法设置语言
|
134
|
+
* @default 'zh-CN'
|
135
|
+
*/
|
136
|
+
locale?: Locale;
|
119
137
|
}
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import type { Locale } from '../../i18n';
|
1
2
|
import type { BackgroundColor, Color, Dataset, Dimensions, Label, Legend, Measures, Theme, Tooltip } from '../../properties';
|
2
3
|
/**
|
3
4
|
* 环形图类型定义
|
@@ -77,4 +78,10 @@ export interface Donut {
|
|
77
78
|
* @example 'customThemeName'
|
78
79
|
*/
|
79
80
|
theme?: Theme;
|
81
|
+
/**
|
82
|
+
* 语言
|
83
|
+
* @description 图表语言配置, 支持'zh-CN'与'en-US'两种语言, 另外可以调用 intl.setLocale('zh-CN') 方法设置语言
|
84
|
+
* @default 'zh-CN'
|
85
|
+
*/
|
86
|
+
locale?: Locale;
|
80
87
|
}
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import type { Locale } from '../../i18n';
|
1
2
|
import type { BackgroundColor, Color, Dataset, Dimensions, Label, Legend, Measures, Theme, Tooltip } from '../../properties';
|
2
3
|
/**
|
3
4
|
* 双轴图类型定义
|
@@ -79,4 +80,10 @@ export interface DualAxis {
|
|
79
80
|
* @example 'customThemeName'
|
80
81
|
*/
|
81
82
|
theme?: Theme;
|
83
|
+
/**
|
84
|
+
* 语言
|
85
|
+
* @description 图表语言配置, 支持'zh-CN'与'en-US'两种语言, 另外可以调用 intl.setLocale('zh-CN') 方法设置语言
|
86
|
+
* @default 'zh-CN'
|
87
|
+
*/
|
88
|
+
locale?: Locale;
|
82
89
|
}
|
@@ -1,4 +1,5 @@
|
|
1
|
-
import type {
|
1
|
+
import type { Locale } from '../../i18n';
|
2
|
+
import type { AnnotationArea, AnnotationHorizontalLine, AnnotationPoint, AnnotationVerticalLine, BackgroundColor, Color, Dataset, Dimensions, Label, Legend, LineStyle, Measures, PointStyle, Theme, Tooltip, CrosshairLine, XBandAxis, YLinearAxis } from '../../properties';
|
2
3
|
/**
|
3
4
|
* 折线图类型定义
|
4
5
|
* @description 折线图,适用于展示数据随时间或有序类别变化的趋势,通过线段连接数据点形成趋势线
|
@@ -78,6 +79,11 @@ export interface Line {
|
|
78
79
|
* @description 数值轴, y轴配置, 用于定义图表的y轴, 包括y轴的位置, 格式, 样式等.
|
79
80
|
*/
|
80
81
|
yAxis?: YLinearAxis;
|
82
|
+
/**
|
83
|
+
* 垂直提示线
|
84
|
+
* @description 鼠标移动到图表上时, 显示的垂直提示线
|
85
|
+
*/
|
86
|
+
crosshairLine?: CrosshairLine;
|
81
87
|
/**
|
82
88
|
* 图表的主题, 主题是优先级较低的功能配置, 包含所有图表类型共用的通用配置, 与单类图表类型共用的图表配置
|
83
89
|
* @default light 默认为亮色主题
|
@@ -87,6 +93,24 @@ export interface Line {
|
|
87
93
|
* @example 'customThemeName'
|
88
94
|
*/
|
89
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[];
|
90
114
|
/**
|
91
115
|
* 标注点
|
92
116
|
* @description 标注点配置, 根据选择的数据, 定义图表的标注点, 包括标注点的位置, 格式, 样式等.
|
@@ -103,8 +127,14 @@ export interface Line {
|
|
103
127
|
*/
|
104
128
|
annotationHorizontalLine?: AnnotationHorizontalLine | AnnotationHorizontalLine[];
|
105
129
|
/**
|
106
|
-
|
107
|
-
|
108
|
-
|
130
|
+
* 标注区域
|
131
|
+
* @description 标注区域配置, 根据选择的数据, 定义图表的标注区域, 包括标注区域的位置, 样式等.
|
132
|
+
*/
|
109
133
|
annotationArea?: AnnotationArea | AnnotationArea[];
|
134
|
+
/**
|
135
|
+
* 语言
|
136
|
+
* @description 图表语言配置, 支持'zh-CN'与'en-US'两种语言, 另外可以调用 intl.setLocale('zh-CN') 方法设置语言
|
137
|
+
* @default 'zh-CN'
|
138
|
+
*/
|
139
|
+
locale?: Locale;
|
110
140
|
}
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import type { Locale } from '../../i18n';
|
1
2
|
import type { BackgroundColor, Color, Dataset, Dimensions, Label, Legend, Measures, Theme, Tooltip } from '../../properties';
|
2
3
|
/**
|
3
4
|
* 饼图类型定义
|
@@ -77,4 +78,10 @@ export interface Pie {
|
|
77
78
|
* @example 'customThemeName'
|
78
79
|
*/
|
79
80
|
theme?: Theme;
|
81
|
+
/**
|
82
|
+
* 语言
|
83
|
+
* @description 图表语言配置, 支持'zh-CN'与'en-US'两种语言, 另外可以调用 intl.setLocale('zh-CN') 方法设置语言
|
84
|
+
* @default 'zh-CN'
|
85
|
+
*/
|
86
|
+
locale?: Locale;
|
80
87
|
}
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import type { Locale } from '../../i18n';
|
1
2
|
import type { BackgroundColor, Dataset, Dimensions, Measures, Theme } from '../../properties';
|
2
3
|
/**
|
3
4
|
* 透视表类型定义
|
@@ -57,4 +58,10 @@ export interface PivotTable {
|
|
57
58
|
* @example 'customThemeName'
|
58
59
|
*/
|
59
60
|
theme?: Theme;
|
61
|
+
/**
|
62
|
+
* 语言
|
63
|
+
* @description 图表语言配置, 支持'zh-CN'与'en-US'两种语言, 另外可以调用 intl.setLocale('zh-CN') 方法设置语言
|
64
|
+
* @default 'zh-CN'
|
65
|
+
*/
|
66
|
+
locale?: Locale;
|
60
67
|
}
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import type { Locale } from '../../i18n';
|
1
2
|
import type { BackgroundColor, Color, Dataset, Dimensions, Label, Legend, Measures, Theme, Tooltip } from '../../properties';
|
2
3
|
/**
|
3
4
|
* 玫瑰图类型定义
|
@@ -77,4 +78,10 @@ export interface Rose {
|
|
77
78
|
* @example 'customThemeName'
|
78
79
|
*/
|
79
80
|
theme?: Theme;
|
81
|
+
/**
|
82
|
+
* 语言
|
83
|
+
* @description 图表语言配置, 支持'zh-CN'与'en-US'两种语言, 另外可以调用 intl.setLocale('zh-CN') 方法设置语言
|
84
|
+
* @default 'zh-CN'
|
85
|
+
*/
|
86
|
+
locale?: Locale;
|
80
87
|
}
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import type { Locale } from '../../i18n';
|
1
2
|
import type { BackgroundColor, Dataset, Dimensions, Measures, Theme } from '../../properties';
|
2
3
|
/**
|
3
4
|
* 表格类型定义
|
@@ -57,4 +58,10 @@ export interface Table {
|
|
57
58
|
* @example 'customThemeName'
|
58
59
|
*/
|
59
60
|
theme?: Theme;
|
61
|
+
/**
|
62
|
+
* 语言
|
63
|
+
* @description 图表语言配置, 支持'zh-CN'与'en-US'两种语言, 另外可以调用 intl.setLocale('zh-CN') 方法设置语言
|
64
|
+
* @default 'zh-CN'
|
65
|
+
*/
|
66
|
+
locale?: Locale;
|
60
67
|
}
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './i18n';
|
package/dist/types/index.d.ts
CHANGED