@opentinyvue/vue-huicharts-core 2.21.0
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/LICENSE +22 -0
- package/common/constants.d.ts +68 -0
- package/common/defendXSS.d.ts +4 -0
- package/common/extend.d.ts +5 -0
- package/common/numerify.d.ts +13 -0
- package/common/object.d.ts +87 -0
- package/common/type.d.ts +96 -0
- package/common/util.d.ts +25 -0
- package/index.d.ts +9 -0
- package/lib/index.js +1429 -0
- package/package.json +20 -0
- package/src/chart-core.d.ts +214 -0
- package/utils/deep-clone.d.ts +1 -0
- package/utils/options.d.ts +6 -0
- package/utils/throttle.d.ts +8 -0
- package/utils/type.d.ts +8 -0
package/package.json
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@opentinyvue/vue-huicharts-core",
|
|
3
|
+
"version": "2.21.0",
|
|
4
|
+
"description": "",
|
|
5
|
+
"main": "./lib/index.js",
|
|
6
|
+
"module": "./lib/index.js",
|
|
7
|
+
"sideEffects": false,
|
|
8
|
+
"type": "module",
|
|
9
|
+
"dependencies": {
|
|
10
|
+
"echarts": "5.4.1",
|
|
11
|
+
"@opentiny/huicharts": "1.0.1",
|
|
12
|
+
"@opentinyvue/vue-theme": "~3.21.0"
|
|
13
|
+
},
|
|
14
|
+
"license": "MIT",
|
|
15
|
+
"types": "index.d.ts",
|
|
16
|
+
"scripts": {
|
|
17
|
+
"build": "pnpm -w build:ui $npm_package_name",
|
|
18
|
+
"//postversion": "pnpm build"
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
name: string;
|
|
3
|
+
emits: string[];
|
|
4
|
+
props: {
|
|
5
|
+
data: {
|
|
6
|
+
type: ObjectConstructor;
|
|
7
|
+
default(): {};
|
|
8
|
+
};
|
|
9
|
+
settings: {
|
|
10
|
+
type: ObjectConstructor;
|
|
11
|
+
default(): {};
|
|
12
|
+
};
|
|
13
|
+
width: {
|
|
14
|
+
type: StringConstructor;
|
|
15
|
+
default: string;
|
|
16
|
+
};
|
|
17
|
+
height: {
|
|
18
|
+
type: StringConstructor;
|
|
19
|
+
default: string;
|
|
20
|
+
};
|
|
21
|
+
events: {
|
|
22
|
+
type: ObjectConstructor;
|
|
23
|
+
default(): void;
|
|
24
|
+
};
|
|
25
|
+
initOptions: {
|
|
26
|
+
type: ObjectConstructor;
|
|
27
|
+
default(): {};
|
|
28
|
+
};
|
|
29
|
+
tooltipVisible: {
|
|
30
|
+
type: BooleanConstructor;
|
|
31
|
+
default: boolean;
|
|
32
|
+
};
|
|
33
|
+
legendVisible: {
|
|
34
|
+
type: BooleanConstructor;
|
|
35
|
+
default: boolean;
|
|
36
|
+
};
|
|
37
|
+
legendPosition: {
|
|
38
|
+
type: StringConstructor;
|
|
39
|
+
};
|
|
40
|
+
theme: ObjectConstructor;
|
|
41
|
+
themeName: (StringConstructor | ObjectConstructor)[];
|
|
42
|
+
judgeWidth: {
|
|
43
|
+
type: BooleanConstructor;
|
|
44
|
+
default: boolean;
|
|
45
|
+
};
|
|
46
|
+
widthChangeDelay: {
|
|
47
|
+
type: NumberConstructor;
|
|
48
|
+
default: number;
|
|
49
|
+
};
|
|
50
|
+
resizeable: {
|
|
51
|
+
type: BooleanConstructor;
|
|
52
|
+
default: boolean;
|
|
53
|
+
};
|
|
54
|
+
changeDelay: {
|
|
55
|
+
type: NumberConstructor;
|
|
56
|
+
default: number;
|
|
57
|
+
};
|
|
58
|
+
dataEmpty: BooleanConstructor;
|
|
59
|
+
beforeConfig: {
|
|
60
|
+
type: FunctionConstructor;
|
|
61
|
+
};
|
|
62
|
+
afterConfig: {
|
|
63
|
+
type: FunctionConstructor;
|
|
64
|
+
};
|
|
65
|
+
afterSetOption: {
|
|
66
|
+
type: FunctionConstructor;
|
|
67
|
+
};
|
|
68
|
+
afterSetOptionOnce: {
|
|
69
|
+
type: FunctionConstructor;
|
|
70
|
+
};
|
|
71
|
+
loading: {
|
|
72
|
+
type: BooleanConstructor;
|
|
73
|
+
default: boolean;
|
|
74
|
+
};
|
|
75
|
+
extend: {
|
|
76
|
+
type: ObjectConstructor;
|
|
77
|
+
default(): void;
|
|
78
|
+
};
|
|
79
|
+
tooltipFormatter: {
|
|
80
|
+
type: FunctionConstructor;
|
|
81
|
+
};
|
|
82
|
+
markArea: {
|
|
83
|
+
type: ObjectConstructor;
|
|
84
|
+
};
|
|
85
|
+
markLine: {
|
|
86
|
+
type: ObjectConstructor;
|
|
87
|
+
};
|
|
88
|
+
markPoint: {
|
|
89
|
+
type: ObjectConstructor;
|
|
90
|
+
};
|
|
91
|
+
grid: {
|
|
92
|
+
type: (ArrayConstructor | ObjectConstructor)[];
|
|
93
|
+
};
|
|
94
|
+
colors: {
|
|
95
|
+
type: ArrayConstructor;
|
|
96
|
+
};
|
|
97
|
+
visualMap: (ArrayConstructor | ObjectConstructor)[];
|
|
98
|
+
dataZoom: (ArrayConstructor | ObjectConstructor)[];
|
|
99
|
+
toolbox: (ArrayConstructor | ObjectConstructor)[];
|
|
100
|
+
title: ObjectConstructor;
|
|
101
|
+
legend: (ArrayConstructor | ObjectConstructor)[];
|
|
102
|
+
xAxis: (ArrayConstructor | ObjectConstructor)[];
|
|
103
|
+
yAxis: (ArrayConstructor | ObjectConstructor)[];
|
|
104
|
+
radar: ObjectConstructor;
|
|
105
|
+
tooltip: ObjectConstructor;
|
|
106
|
+
axisPointer: ObjectConstructor;
|
|
107
|
+
brush: (ArrayConstructor | ObjectConstructor)[];
|
|
108
|
+
geo: ObjectConstructor;
|
|
109
|
+
timeline: (ArrayConstructor | ObjectConstructor)[];
|
|
110
|
+
graphic: (ArrayConstructor | ObjectConstructor)[];
|
|
111
|
+
series: (ArrayConstructor | ObjectConstructor)[];
|
|
112
|
+
backgroundColor: (StringConstructor | ObjectConstructor)[];
|
|
113
|
+
textStyle: ObjectConstructor;
|
|
114
|
+
animation: ObjectConstructor;
|
|
115
|
+
options: {
|
|
116
|
+
type: ObjectConstructor;
|
|
117
|
+
default: () => {};
|
|
118
|
+
};
|
|
119
|
+
cancelResizeCheck: {
|
|
120
|
+
type: BooleanConstructor;
|
|
121
|
+
default: boolean;
|
|
122
|
+
};
|
|
123
|
+
setOptionOpts: {
|
|
124
|
+
type: ObjectConstructor;
|
|
125
|
+
default(): void;
|
|
126
|
+
};
|
|
127
|
+
colorMode: {
|
|
128
|
+
type: StringConstructor;
|
|
129
|
+
default: string;
|
|
130
|
+
};
|
|
131
|
+
};
|
|
132
|
+
data(): {
|
|
133
|
+
huiChartOption: {};
|
|
134
|
+
eChartOption: {};
|
|
135
|
+
renderOption: {};
|
|
136
|
+
initOpts: {};
|
|
137
|
+
watchToPropsEchartOptions: never[];
|
|
138
|
+
selfChart: string[];
|
|
139
|
+
isSelfChart: boolean;
|
|
140
|
+
chartList: never[];
|
|
141
|
+
once: {};
|
|
142
|
+
store: {};
|
|
143
|
+
};
|
|
144
|
+
computed: {
|
|
145
|
+
delay(): any;
|
|
146
|
+
size(): any;
|
|
147
|
+
setting(): any;
|
|
148
|
+
};
|
|
149
|
+
watch: {
|
|
150
|
+
options: {
|
|
151
|
+
handler(): void;
|
|
152
|
+
deep: boolean;
|
|
153
|
+
};
|
|
154
|
+
setting: {
|
|
155
|
+
handler(): void;
|
|
156
|
+
deep: boolean;
|
|
157
|
+
};
|
|
158
|
+
events: {
|
|
159
|
+
handler(val: any, oldVal: any): void;
|
|
160
|
+
deep: boolean;
|
|
161
|
+
};
|
|
162
|
+
initOptions: {
|
|
163
|
+
handler(val: any): void;
|
|
164
|
+
deep: boolean;
|
|
165
|
+
};
|
|
166
|
+
judgeWidth: {
|
|
167
|
+
handler(val: any): void;
|
|
168
|
+
};
|
|
169
|
+
delay: {
|
|
170
|
+
handler(val: any): void;
|
|
171
|
+
deep: boolean;
|
|
172
|
+
};
|
|
173
|
+
resizeable: {
|
|
174
|
+
handler(val: any): void;
|
|
175
|
+
};
|
|
176
|
+
setOptionOpts: {
|
|
177
|
+
handler(val: any): void;
|
|
178
|
+
deep: boolean;
|
|
179
|
+
};
|
|
180
|
+
loading(val: any): void;
|
|
181
|
+
dataEmpty(val: any): void;
|
|
182
|
+
size: {
|
|
183
|
+
handler(): void;
|
|
184
|
+
};
|
|
185
|
+
colors: {
|
|
186
|
+
handler(): void;
|
|
187
|
+
deep: boolean;
|
|
188
|
+
};
|
|
189
|
+
};
|
|
190
|
+
methods: {
|
|
191
|
+
selfSetting(options: any): void;
|
|
192
|
+
setAnimation(options: any): void;
|
|
193
|
+
applyMarks(options: any): void;
|
|
194
|
+
applyExtend(huiChartOption: any): any;
|
|
195
|
+
refreshChart(): void;
|
|
196
|
+
renderChart(huiChartOption: any): void;
|
|
197
|
+
addEvents(val: any): void;
|
|
198
|
+
removeEvents(oldVal: any): void;
|
|
199
|
+
resize(): void;
|
|
200
|
+
afterConfigFn(huiChartOption: any): any;
|
|
201
|
+
beforeConfigFn(data: any): any;
|
|
202
|
+
isStack(): boolean;
|
|
203
|
+
calcColors({ len, type, isStack }: {
|
|
204
|
+
len: any;
|
|
205
|
+
type: any;
|
|
206
|
+
isStack: any;
|
|
207
|
+
}): string[];
|
|
208
|
+
computedChartColor(): any;
|
|
209
|
+
};
|
|
210
|
+
created(): void;
|
|
211
|
+
mounted(): void;
|
|
212
|
+
beforeUnmount(): void;
|
|
213
|
+
};
|
|
214
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function deepCopy(val: any): any;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare function throttle(delay: any, callback: any, options: any): {
|
|
2
|
+
(...arguments_: any[]): void;
|
|
3
|
+
cancel: (options: any) => void;
|
|
4
|
+
};
|
|
5
|
+
export declare function debounce(delay: any, callback: any, options: any): {
|
|
6
|
+
(...arguments_: any[]): void;
|
|
7
|
+
cancel: (options: any) => void;
|
|
8
|
+
};
|
package/utils/type.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare function oneOf(value: any, validList: any): boolean;
|
|
2
|
+
export declare function typeOf(obj: any): any;
|
|
3
|
+
/**
|
|
4
|
+
* 判断任意类型的值是否为undefined或者null
|
|
5
|
+
*/
|
|
6
|
+
export declare function isNotUndefined(value: any): boolean;
|
|
7
|
+
export declare function isUndefined(value: any): boolean;
|
|
8
|
+
export declare const isDefined: (val: any) => boolean;
|