@@ -17,7 +17,6 @@ import { Observable, ReplaySubject, Subject, Subscription, asyncScheduler } from
17
17
import { switchMap , throttleTime } from 'rxjs/operators' ;
18
18
import { ChangeFilterV2 } from './change-filter-v2' ;
19
19
import type { EChartsOption , ECharts , ECElementEvent } from 'echarts' ;
20
- import type { ECActionEvent } from 'echarts/types/src/util/types' ;
21
20
22
21
export interface NgxEchartsConfig {
23
22
echarts : any | ( ( ) => Promise < any > ) ;
@@ -63,35 +62,34 @@ export class NgxEchartsDirective implements OnChanges, OnDestroy, OnInit, AfterV
63
62
@Output ( ) chartContextMenu = this . createLazyEvent < ECElementEvent > ( 'contextmenu' ) ;
64
63
65
64
// echarts events
66
- @Output ( ) chartHighlight = this . createLazyEvent < ECActionEvent > ( 'highlight' ) ;
67
- @Output ( ) chartDownplay = this . createLazyEvent < ECActionEvent > ( 'downplay' ) ;
68
- @Output ( ) chartSelectChanged = this . createLazyEvent < ECActionEvent > ( 'selectchanged' ) ;
69
- @Output ( ) chartLegendSelected = this . createLazyEvent < ECActionEvent > ( 'legendselected' ) ;
70
- @Output ( ) chartLegendUnselected = this . createLazyEvent < ECActionEvent > ( 'legendunselected' ) ;
71
- @Output ( ) chartLegendLegendSelectAll = this . createLazyEvent < ECActionEvent > ( 'legendselectall' ) ;
72
- @Output ( ) chartLegendLegendInverseSelect =
73
- this . createLazyEvent < ECActionEvent > ( 'legendinverseselect' ) ;
74
- @Output ( ) chartLegendScroll = this . createLazyEvent < ECActionEvent > ( 'legendscroll' ) ;
75
- @Output ( ) chartDataZoom = this . createLazyEvent < ECActionEvent > ( 'datazoom' ) ;
76
- @Output ( ) chartDataRangeSelected = this . createLazyEvent < ECActionEvent > ( 'datarangeselected' ) ;
77
- @Output ( ) chartGraphRoam = this . createLazyEvent < ECActionEvent > ( 'graphroam' ) ;
78
- @Output ( ) chartGeoRoam = this . createLazyEvent < ECActionEvent > ( 'georoam' ) ;
79
- @Output ( ) chartTreeRoam = this . createLazyEvent < ECActionEvent > ( 'treeroam' ) ;
80
- @Output ( ) chartTimelineChanged = this . createLazyEvent < ECActionEvent > ( 'timelinechanged' ) ;
81
- @Output ( ) chartTimelinePlayChanged = this . createLazyEvent < ECActionEvent > ( 'timelineplaychanged' ) ;
82
- @Output ( ) chartRestore = this . createLazyEvent < ECActionEvent > ( 'restore' ) ;
83
- @Output ( ) chartDataViewChanged = this . createLazyEvent < ECActionEvent > ( 'dataviewchanged' ) ;
84
- @Output ( ) chartMagicTypeChanged = this . createLazyEvent < ECActionEvent > ( 'magictypechanged' ) ;
85
- @Output ( ) chartGeoSelectChanged = this . createLazyEvent < ECActionEvent > ( 'geoselectchanged' ) ;
86
- @Output ( ) chartGeoSelected = this . createLazyEvent < ECActionEvent > ( 'geoselected' ) ;
87
- @Output ( ) chartGeoUnselected = this . createLazyEvent < ECActionEvent > ( 'geounselected' ) ;
88
- @Output ( ) chartAxisAreaSelected = this . createLazyEvent < ECActionEvent > ( 'axisareaselected' ) ;
89
- @Output ( ) chartBrush = this . createLazyEvent < ECActionEvent > ( 'brush' ) ;
90
- @Output ( ) chartBrushEnd = this . createLazyEvent < ECActionEvent > ( 'brushend' ) ;
91
- @Output ( ) chartBrushSelected = this . createLazyEvent < ECActionEvent > ( 'brushselected' ) ;
92
- @Output ( ) chartGlobalCursorTaken = this . createLazyEvent < ECActionEvent > ( 'globalcursortaken' ) ;
93
- @Output ( ) chartRendered = this . createLazyEvent < ECActionEvent > ( 'rendered' ) ;
94
- @Output ( ) chartFinished = this . createLazyEvent < ECActionEvent > ( 'finished' ) ;
65
+ @Output ( ) chartHighlight = this . createLazyEvent < any > ( 'highlight' ) ;
66
+ @Output ( ) chartDownplay = this . createLazyEvent < any > ( 'downplay' ) ;
67
+ @Output ( ) chartSelectChanged = this . createLazyEvent < any > ( 'selectchanged' ) ;
68
+ @Output ( ) chartLegendSelected = this . createLazyEvent < any > ( 'legendselected' ) ;
69
+ @Output ( ) chartLegendUnselected = this . createLazyEvent < any > ( 'legendunselected' ) ;
70
+ @Output ( ) chartLegendLegendSelectAll = this . createLazyEvent < any > ( 'legendselectall' ) ;
71
+ @Output ( ) chartLegendLegendInverseSelect = this . createLazyEvent < any > ( 'legendinverseselect' ) ;
72
+ @Output ( ) chartLegendScroll = this . createLazyEvent < any > ( 'legendscroll' ) ;
73
+ @Output ( ) chartDataZoom = this . createLazyEvent < any > ( 'datazoom' ) ;
74
+ @Output ( ) chartDataRangeSelected = this . createLazyEvent < any > ( 'datarangeselected' ) ;
75
+ @Output ( ) chartGraphRoam = this . createLazyEvent < any > ( 'graphroam' ) ;
76
+ @Output ( ) chartGeoRoam = this . createLazyEvent < any > ( 'georoam' ) ;
77
+ @Output ( ) chartTreeRoam = this . createLazyEvent < any > ( 'treeroam' ) ;
78
+ @Output ( ) chartTimelineChanged = this . createLazyEvent < any > ( 'timelinechanged' ) ;
79
+ @Output ( ) chartTimelinePlayChanged = this . createLazyEvent < any > ( 'timelineplaychanged' ) ;
80
+ @Output ( ) chartRestore = this . createLazyEvent < any > ( 'restore' ) ;
81
+ @Output ( ) chartDataViewChanged = this . createLazyEvent < any > ( 'dataviewchanged' ) ;
82
+ @Output ( ) chartMagicTypeChanged = this . createLazyEvent < any > ( 'magictypechanged' ) ;
83
+ @Output ( ) chartGeoSelectChanged = this . createLazyEvent < any > ( 'geoselectchanged' ) ;
84
+ @Output ( ) chartGeoSelected = this . createLazyEvent < any > ( 'geoselected' ) ;
85
+ @Output ( ) chartGeoUnselected = this . createLazyEvent < any > ( 'geounselected' ) ;
86
+ @Output ( ) chartAxisAreaSelected = this . createLazyEvent < any > ( 'axisareaselected' ) ;
87
+ @Output ( ) chartBrush = this . createLazyEvent < any > ( 'brush' ) ;
88
+ @Output ( ) chartBrushEnd = this . createLazyEvent < any > ( 'brushend' ) ;
89
+ @Output ( ) chartBrushSelected = this . createLazyEvent < any > ( 'brushselected' ) ;
90
+ @Output ( ) chartGlobalCursorTaken = this . createLazyEvent < any > ( 'globalcursortaken' ) ;
91
+ @Output ( ) chartRendered = this . createLazyEvent < any > ( 'rendered' ) ;
92
+ @Output ( ) chartFinished = this . createLazyEvent < any > ( 'finished' ) ;
95
93
96
94
public animationFrameID = null ;
97
95
private chart : ECharts ;
0 commit comments