vue-echarts 6.4.0 → 6.4.1
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/README.md +2 -2
- package/README.zh-Hans.md +2 -2
- package/dist/index.d.ts +76 -16
- package/dist/index.vue2.d.ts +24 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -227,7 +227,7 @@ Drop `<script>` inside your HTML file and access the component via `window.VueEC
|
|
|
227
227
|
```html
|
|
228
228
|
<script src="https://cdn.jsdelivr.net/npm/vue@3.2.37"></script>
|
|
229
229
|
<script src="https://cdn.jsdelivr.net/npm/echarts@5.3.3"></script>
|
|
230
|
-
<script src="https://cdn.jsdelivr.net/npm/vue-echarts@6.4.
|
|
230
|
+
<script src="https://cdn.jsdelivr.net/npm/vue-echarts@6.4.1"></script>
|
|
231
231
|
```
|
|
232
232
|
<!-- vue3Scripts:end -->
|
|
233
233
|
|
|
@@ -247,7 +247,7 @@ app.component('v-chart', VueECharts)
|
|
|
247
247
|
```html
|
|
248
248
|
<script src="https://cdn.jsdelivr.net/npm/vue@2.7.5"></script>
|
|
249
249
|
<script src="https://cdn.jsdelivr.net/npm/echarts@5.3.3"></script>
|
|
250
|
-
<script src="https://cdn.jsdelivr.net/npm/vue-echarts@6.4.
|
|
250
|
+
<script src="https://cdn.jsdelivr.net/npm/vue-echarts@6.4.1"></script>
|
|
251
251
|
```
|
|
252
252
|
<!-- vue2Scripts:end -->
|
|
253
253
|
|
package/README.zh-Hans.md
CHANGED
|
@@ -225,7 +225,7 @@ import "echarts";
|
|
|
225
225
|
```html
|
|
226
226
|
<script src="https://cdn.jsdelivr.net/npm/vue@3.2.37"></script>
|
|
227
227
|
<script src="https://cdn.jsdelivr.net/npm/echarts@5.3.3"></script>
|
|
228
|
-
<script src="https://cdn.jsdelivr.net/npm/vue-echarts@6.4.
|
|
228
|
+
<script src="https://cdn.jsdelivr.net/npm/vue-echarts@6.4.1"></script>
|
|
229
229
|
```
|
|
230
230
|
<!-- vue3Scripts:end -->
|
|
231
231
|
|
|
@@ -245,7 +245,7 @@ app.component('v-chart', VueECharts)
|
|
|
245
245
|
```html
|
|
246
246
|
<script src="https://cdn.jsdelivr.net/npm/vue@2.7.5"></script>
|
|
247
247
|
<script src="https://cdn.jsdelivr.net/npm/echarts@5.3.3"></script>
|
|
248
|
-
<script src="https://cdn.jsdelivr.net/npm/vue-echarts@6.4.
|
|
248
|
+
<script src="https://cdn.jsdelivr.net/npm/vue-echarts@6.4.1"></script>
|
|
249
249
|
```
|
|
250
250
|
<!-- vue2Scripts:end -->
|
|
251
251
|
|
package/dist/index.d.ts
CHANGED
|
@@ -16,12 +16,15 @@ type UpdateOptionsInjection = Injection<UpdateOptions>;
|
|
|
16
16
|
type EChartsType = ReturnType<InitType>;
|
|
17
17
|
type SetOptionType = EChartsType["setOption"];
|
|
18
18
|
type Option = Parameters<SetOptionType>[0];
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
19
|
+
interface MouseEventParams {
|
|
20
|
+
componentType: string;
|
|
21
|
+
seriesType: string;
|
|
22
|
+
seriesIndex: number;
|
|
23
|
+
seriesName: string;
|
|
24
|
+
name: string;
|
|
25
|
+
dataIndex: number;
|
|
26
|
+
color: string;
|
|
27
|
+
}
|
|
25
28
|
interface EChartsElement extends HTMLElement {
|
|
26
29
|
__dispose: (() => void) | null;
|
|
27
30
|
}
|
|
@@ -308,7 +311,64 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
308
311
|
nonEventAttrs: import("vue-demi").ComputedRef<{
|
|
309
312
|
[key: string]: any;
|
|
310
313
|
}>;
|
|
311
|
-
}, unknown, {}, {}, import("vue-demi").ComponentOptionsMixin, import("vue-demi").ComponentOptionsMixin,
|
|
314
|
+
}, unknown, {}, {}, import("vue-demi").ComponentOptionsMixin, import("vue-demi").ComponentOptionsMixin, {
|
|
315
|
+
click: (params: MouseEventParams) => boolean;
|
|
316
|
+
dblclick: (params: MouseEventParams) => boolean;
|
|
317
|
+
mouseout: (params: MouseEventParams) => boolean;
|
|
318
|
+
mouseover: (params: MouseEventParams) => boolean;
|
|
319
|
+
mouseup: (params: MouseEventParams) => boolean;
|
|
320
|
+
mousedown: (params: MouseEventParams) => boolean;
|
|
321
|
+
mousemove: (params: MouseEventParams) => boolean;
|
|
322
|
+
contextmenu: (params: MouseEventParams) => boolean;
|
|
323
|
+
globalout: (params: MouseEventParams) => boolean;
|
|
324
|
+
} & {
|
|
325
|
+
highlight: null;
|
|
326
|
+
downplay: null;
|
|
327
|
+
selectchanged: null;
|
|
328
|
+
legendselectchanged: null;
|
|
329
|
+
legendselected: null;
|
|
330
|
+
legendunselected: null;
|
|
331
|
+
legendselectall: null;
|
|
332
|
+
legendinverseselect: null;
|
|
333
|
+
legendscroll: null;
|
|
334
|
+
datazoom: null;
|
|
335
|
+
datarangeselected: null;
|
|
336
|
+
graphroam: null;
|
|
337
|
+
georoam: null;
|
|
338
|
+
treeroam: null;
|
|
339
|
+
timelinechanged: null;
|
|
340
|
+
timelineplaychanged: null;
|
|
341
|
+
restore: null;
|
|
342
|
+
dataviewchanged: null;
|
|
343
|
+
magictypechanged: null;
|
|
344
|
+
geoselectchanged: null;
|
|
345
|
+
geoselected: null;
|
|
346
|
+
geounselected: null;
|
|
347
|
+
axisareaselected: null;
|
|
348
|
+
brush: null;
|
|
349
|
+
brushEnd: null;
|
|
350
|
+
brushselected: null;
|
|
351
|
+
globalcursortaken: null;
|
|
352
|
+
rendered: null;
|
|
353
|
+
finished: null;
|
|
354
|
+
"zr:click": null;
|
|
355
|
+
"zr:dblclick": null;
|
|
356
|
+
"zr:mousewheel": null;
|
|
357
|
+
"zr:mouseout": null;
|
|
358
|
+
"zr:mouseover": null;
|
|
359
|
+
"zr:mouseup": null;
|
|
360
|
+
"zr:mousedown": null;
|
|
361
|
+
"zr:mousemove": null;
|
|
362
|
+
"zr:contextmenu": null;
|
|
363
|
+
"zr:drag": null;
|
|
364
|
+
"zr:dragstart": null;
|
|
365
|
+
"zr:dragend": null;
|
|
366
|
+
"zr:dragenter": null;
|
|
367
|
+
"zr:dragleave": null;
|
|
368
|
+
"zr:dragover": null;
|
|
369
|
+
"zr:drop": null;
|
|
370
|
+
"zr:globalout": null;
|
|
371
|
+
}, string, import("vue-demi").VNodeProps & import("vue-demi").AllowedComponentProps & import("vue-demi").ComponentCustomProps, Readonly<import("vue-demi").ExtractPropTypes<{
|
|
312
372
|
loading: BooleanConstructor;
|
|
313
373
|
loadingOptions: ObjectConstructor;
|
|
314
374
|
autoresize: BooleanConstructor;
|
|
@@ -437,15 +497,15 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
437
497
|
group: StringConstructor;
|
|
438
498
|
manualUpdate: BooleanConstructor;
|
|
439
499
|
}>> & {
|
|
440
|
-
onClick?: ((
|
|
441
|
-
onDblclick?: ((
|
|
442
|
-
onMouseout?: ((
|
|
443
|
-
onMouseover?: ((
|
|
444
|
-
onMouseup?: ((
|
|
445
|
-
onMousedown?: ((
|
|
446
|
-
onMousemove?: ((
|
|
447
|
-
onContextmenu?: ((
|
|
448
|
-
onGlobalout?: ((
|
|
500
|
+
onClick?: ((params: MouseEventParams) => any) | undefined;
|
|
501
|
+
onDblclick?: ((params: MouseEventParams) => any) | undefined;
|
|
502
|
+
onMouseout?: ((params: MouseEventParams) => any) | undefined;
|
|
503
|
+
onMouseover?: ((params: MouseEventParams) => any) | undefined;
|
|
504
|
+
onMouseup?: ((params: MouseEventParams) => any) | undefined;
|
|
505
|
+
onMousedown?: ((params: MouseEventParams) => any) | undefined;
|
|
506
|
+
onMousemove?: ((params: MouseEventParams) => any) | undefined;
|
|
507
|
+
onContextmenu?: ((params: MouseEventParams) => any) | undefined;
|
|
508
|
+
onGlobalout?: ((params: MouseEventParams) => any) | undefined;
|
|
449
509
|
onHighlight?: ((...args: any[]) => any) | undefined;
|
|
450
510
|
onDownplay?: ((...args: any[]) => any) | undefined;
|
|
451
511
|
onSelectchanged?: ((...args: any[]) => any) | undefined;
|
package/dist/index.vue2.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ type EChartsType = ReturnType<InitType>;
|
|
|
11
11
|
type SetOptionType = EChartsType["setOption"];
|
|
12
12
|
type Option = Parameters<SetOptionType>[0];
|
|
13
13
|
|
|
14
|
-
type
|
|
14
|
+
type EChartsMouseEventName =
|
|
15
15
|
| "click"
|
|
16
16
|
| "dblclick"
|
|
17
17
|
| "mousedown"
|
|
@@ -20,7 +20,8 @@ type EChartsEventName =
|
|
|
20
20
|
| "mouseover"
|
|
21
21
|
| "mouseout"
|
|
22
22
|
| "globalout"
|
|
23
|
-
| "contextmenu"
|
|
23
|
+
| "contextmenu";
|
|
24
|
+
type EChartsOtherEventName =
|
|
24
25
|
| "highlight"
|
|
25
26
|
| "downplay"
|
|
26
27
|
| "selectchanged"
|
|
@@ -68,11 +69,29 @@ type ZRenderEventName =
|
|
|
68
69
|
| "dragover"
|
|
69
70
|
| "drop"
|
|
70
71
|
| "globalout";
|
|
71
|
-
type
|
|
72
|
-
|
|
73
|
-
|
|
72
|
+
type OtherEventName = EChartsOtherEventName | `zr:${ZRenderEventName}`;
|
|
73
|
+
|
|
74
|
+
// See https://echarts.apache.org/en/api.html#events.Mouse%20events
|
|
75
|
+
interface MouseEventParams {
|
|
76
|
+
componentType: string;
|
|
77
|
+
seriesType: string;
|
|
78
|
+
seriesIndex: number;
|
|
79
|
+
seriesName: string;
|
|
80
|
+
name: string;
|
|
81
|
+
dataIndex: number;
|
|
82
|
+
color: string;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
type MouseEmits = {
|
|
86
|
+
[k in EChartsMouseEventName]: (params: MouseEventParams) => boolean;
|
|
74
87
|
};
|
|
75
88
|
|
|
89
|
+
type OtherEmits = {
|
|
90
|
+
[key in OtherEventName]: null;
|
|
91
|
+
};
|
|
92
|
+
|
|
93
|
+
type Emits = MouseEmits & OtherEmits;
|
|
94
|
+
|
|
76
95
|
/* eslint-disable @typescript-eslint/ban-types */
|
|
77
96
|
|
|
78
97
|
|