@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
@@ -0,0 +1,80 @@
|
|
1
|
+
import { z } from 'zod';
|
2
|
+
import { type Axis } from './axis';
|
3
|
+
export type XLinearAxis = Omit<Axis, 'labelAutoHide' | 'labelAutoHideGap' | 'labelAutoRotate' | 'labelAutoRotateAngleRange' | 'labelAutoLimit' | 'labelAutoLimitLength'>;
|
4
|
+
export type YLinearAxis = Omit<Axis, 'labelAutoHide' | 'labelAutoHideGap' | 'labelAutoRotate' | 'labelAutoRotateAngleRange' | 'labelAutoLimit' | 'labelAutoLimitLength'>;
|
5
|
+
export declare const zXLinearAxis: z.ZodObject<{
|
6
|
+
visible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
7
|
+
min: z.ZodOptional<z.ZodNumber>;
|
8
|
+
max: z.ZodOptional<z.ZodNumber>;
|
9
|
+
nice: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
10
|
+
zero: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
11
|
+
inverse: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
12
|
+
label: z.ZodOptional<z.ZodObject<{
|
13
|
+
visible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
14
|
+
labelColor: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
15
|
+
labelFontSize: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
16
|
+
labelFontWeight: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
17
|
+
labelAngle: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
18
|
+
}, z.core.$strip>>;
|
19
|
+
line: z.ZodOptional<z.ZodObject<{
|
20
|
+
visible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
21
|
+
lineColor: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
22
|
+
lineWidth: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
23
|
+
}, z.core.$strip>>;
|
24
|
+
tick: z.ZodOptional<z.ZodObject<{
|
25
|
+
visible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
26
|
+
tickInside: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
27
|
+
tickColor: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
28
|
+
tickSize: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
29
|
+
}, z.core.$strip>>;
|
30
|
+
title: z.ZodOptional<z.ZodObject<{
|
31
|
+
visible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
32
|
+
titleText: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
33
|
+
titleColor: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
34
|
+
titleFontSize: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
35
|
+
titleFontWeight: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
36
|
+
}, z.core.$strip>>;
|
37
|
+
grid: z.ZodOptional<z.ZodObject<{
|
38
|
+
visible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
39
|
+
gridColor: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
40
|
+
gridWidth: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
41
|
+
}, z.core.$strip>>;
|
42
|
+
}, z.core.$strip>;
|
43
|
+
export declare const zYLinearAxis: z.ZodObject<{
|
44
|
+
visible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
45
|
+
min: z.ZodOptional<z.ZodNumber>;
|
46
|
+
max: z.ZodOptional<z.ZodNumber>;
|
47
|
+
nice: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
48
|
+
zero: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
49
|
+
inverse: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
50
|
+
label: z.ZodOptional<z.ZodObject<{
|
51
|
+
visible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
52
|
+
labelColor: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
53
|
+
labelFontSize: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
54
|
+
labelFontWeight: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
55
|
+
labelAngle: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
56
|
+
}, z.core.$strip>>;
|
57
|
+
line: z.ZodOptional<z.ZodObject<{
|
58
|
+
visible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
59
|
+
lineColor: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
60
|
+
lineWidth: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
61
|
+
}, z.core.$strip>>;
|
62
|
+
tick: z.ZodOptional<z.ZodObject<{
|
63
|
+
visible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
64
|
+
tickInside: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
65
|
+
tickColor: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
66
|
+
tickSize: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
67
|
+
}, z.core.$strip>>;
|
68
|
+
title: z.ZodOptional<z.ZodObject<{
|
69
|
+
visible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
70
|
+
titleText: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
71
|
+
titleColor: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
72
|
+
titleFontSize: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
73
|
+
titleFontWeight: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
74
|
+
}, z.core.$strip>>;
|
75
|
+
grid: z.ZodOptional<z.ZodObject<{
|
76
|
+
visible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
77
|
+
gridColor: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
78
|
+
gridWidth: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
79
|
+
}, z.core.$strip>>;
|
80
|
+
}, z.core.$strip>;
|
@@ -0,0 +1,114 @@
|
|
1
|
+
import { type Selector, type Selectors } from '../../dataSelector';
|
2
|
+
import { z } from 'zod';
|
3
|
+
export type BarStyle = {
|
4
|
+
/**
|
5
|
+
* 数据选择器
|
6
|
+
* @description
|
7
|
+
* 若配置selector, 提供数值 selector, 局部数据 selector, 条件维度 selector, 条件指标 selector 共四类数据匹配能力
|
8
|
+
* 若未配置selector, 则样式全局生效.
|
9
|
+
* @type {Selector | Selectors}
|
10
|
+
* @example 数值选择器
|
11
|
+
* selector = "tool"
|
12
|
+
* selector = ["tool", "book"]
|
13
|
+
* selector = 100
|
14
|
+
* selector = [100, 200]
|
15
|
+
* @example 局部数据选择器
|
16
|
+
* selector = { profit: 100 }
|
17
|
+
* selector = [{ profit: 100 }, { profit: 200 }]
|
18
|
+
* @example 条件维度选择器
|
19
|
+
* selector = {
|
20
|
+
* field: 'category',
|
21
|
+
* operator: 'in',
|
22
|
+
* value: 'tool'
|
23
|
+
* }
|
24
|
+
* selector = {
|
25
|
+
* field: 'category',
|
26
|
+
* operator: 'not in',
|
27
|
+
* value: 'book'
|
28
|
+
* }
|
29
|
+
* @example 条件指标选择器
|
30
|
+
* selector = {
|
31
|
+
* field: 'profit',
|
32
|
+
* operator: '>=',
|
33
|
+
* value: 100
|
34
|
+
* }
|
35
|
+
* selector = {
|
36
|
+
* field: 'profit',
|
37
|
+
* operator: 'between'
|
38
|
+
* value: [100, 300]
|
39
|
+
* }
|
40
|
+
*/
|
41
|
+
selector?: Selector | Selectors;
|
42
|
+
/**
|
43
|
+
* 柱状图颜色
|
44
|
+
* @description 柱状图颜色
|
45
|
+
* @type {string}
|
46
|
+
* @default #000000
|
47
|
+
*/
|
48
|
+
barColor?: string;
|
49
|
+
/**
|
50
|
+
* 柱状图颜色透明度
|
51
|
+
* @description 柱状图颜色透明度
|
52
|
+
* @type {number}
|
53
|
+
* @default 1
|
54
|
+
*/
|
55
|
+
barColorOpacity?: number;
|
56
|
+
/**
|
57
|
+
* 柱状图边框颜色
|
58
|
+
* @description 柱状图边框颜色
|
59
|
+
* @type {string}
|
60
|
+
* @default #000000
|
61
|
+
*/
|
62
|
+
barBorderColor?: string;
|
63
|
+
/**
|
64
|
+
* 柱状图边框宽度
|
65
|
+
* @description 柱状图边框宽度
|
66
|
+
* @type {number}
|
67
|
+
* @default 0
|
68
|
+
*/
|
69
|
+
barBorderWidth?: number;
|
70
|
+
/**
|
71
|
+
* 柱状图边框样式
|
72
|
+
* @description 柱状图边框样式
|
73
|
+
* @type {number}
|
74
|
+
* @default solid
|
75
|
+
* @example solid
|
76
|
+
* @example dashed
|
77
|
+
* @example dotted
|
78
|
+
*/
|
79
|
+
barBorderStyle?: 'solid' | 'dashed' | 'dotted';
|
80
|
+
/**
|
81
|
+
* 柱状图圆角
|
82
|
+
* @description 柱状图圆角
|
83
|
+
* @type {number | number[]}
|
84
|
+
* @default 0
|
85
|
+
* @example 4
|
86
|
+
* @example [0, 0, 10, 10]
|
87
|
+
*/
|
88
|
+
barRadius?: number | number[];
|
89
|
+
};
|
90
|
+
export declare const zBarStyle: z.ZodObject<{
|
91
|
+
selector: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject<{
|
92
|
+
field: z.ZodString;
|
93
|
+
operator: z.ZodString;
|
94
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
95
|
+
}, z.core.$strip>, z.ZodObject<{
|
96
|
+
field: z.ZodString;
|
97
|
+
operator: z.ZodString;
|
98
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
99
|
+
}, z.core.$strip>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject<{
|
100
|
+
field: z.ZodString;
|
101
|
+
operator: z.ZodString;
|
102
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
103
|
+
}, z.core.$strip>, z.ZodObject<{
|
104
|
+
field: z.ZodString;
|
105
|
+
operator: z.ZodString;
|
106
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
107
|
+
}, z.core.$strip>]>>]>;
|
108
|
+
barColor: z.ZodString;
|
109
|
+
barColorOpacity: z.ZodNumber;
|
110
|
+
barBorderColor: z.ZodString;
|
111
|
+
barBorderWidth: z.ZodNumber;
|
112
|
+
barBorderStyle: z.ZodUnion<readonly [z.ZodLiteral<"solid">, z.ZodLiteral<"dashed">, z.ZodLiteral<"dotted">]>;
|
113
|
+
barRadius: z.ZodUnion<readonly [z.ZodNumber, z.ZodArray<z.ZodNumber>]>;
|
114
|
+
}, z.core.$strip>;
|
@@ -0,0 +1,29 @@
|
|
1
|
+
import { z } from 'zod';
|
2
|
+
export declare const zMarkStyle: z.ZodObject<{
|
3
|
+
barStyle: z.ZodOptional<z.ZodObject<{
|
4
|
+
selector: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject<{
|
5
|
+
field: z.ZodString;
|
6
|
+
operator: z.ZodString;
|
7
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
8
|
+
}, z.core.$strip>, z.ZodObject<{
|
9
|
+
field: z.ZodString;
|
10
|
+
operator: z.ZodString;
|
11
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
12
|
+
}, z.core.$strip>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject<{
|
13
|
+
field: z.ZodString;
|
14
|
+
operator: z.ZodString;
|
15
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
16
|
+
}, z.core.$strip>, z.ZodObject<{
|
17
|
+
field: z.ZodString;
|
18
|
+
operator: z.ZodString;
|
19
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
20
|
+
}, z.core.$strip>]>>]>;
|
21
|
+
barColor: z.ZodString;
|
22
|
+
barColorOpacity: z.ZodNumber;
|
23
|
+
barBorderColor: z.ZodString;
|
24
|
+
barBorderWidth: z.ZodNumber;
|
25
|
+
barBorderStyle: z.ZodUnion<readonly [z.ZodLiteral<"solid">, z.ZodLiteral<"dashed">, z.ZodLiteral<"dotted">]>;
|
26
|
+
barRadius: z.ZodUnion<readonly [z.ZodNumber, z.ZodArray<z.ZodNumber>]>;
|
27
|
+
}, z.core.$strip>>;
|
28
|
+
}, z.core.$strip>;
|
29
|
+
export type MarkStyle = z.infer<typeof zMarkStyle>;
|