import { AfterViewInit, ElementRef, EventEmitter, InjectionToken, NgZone, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core'; import type { EChartsCoreOption, ECharts, ECElementEvent } from 'echarts/core'; import * as i0 from "@angular/core"; export interface NgxEchartsConfig { echarts: any | (() => Promise); theme?: string | ThemeOption; } export type ThemeOption = Record; export declare const NGX_ECHARTS_CONFIG: InjectionToken; export declare class NgxEchartsDirective implements OnChanges, OnDestroy, OnInit, AfterViewInit { private el; private ngZone; options: EChartsCoreOption | null; theme: string | ThemeOption | null; initOpts: { devicePixelRatio?: number; renderer?: string; width?: number | string; height?: number | string; locale?: string; } | null; merge: EChartsCoreOption | null; autoResize: boolean; loading: boolean; loadingType: string; loadingOpts: object | null; chartInit: EventEmitter; optionsError: EventEmitter; chartClick: EventEmitter; chartDblClick: EventEmitter; chartMouseDown: EventEmitter; chartMouseMove: EventEmitter; chartMouseUp: EventEmitter; chartMouseOver: EventEmitter; chartMouseOut: EventEmitter; chartGlobalOut: EventEmitter; chartContextMenu: EventEmitter; chartHighlight: EventEmitter; chartDownplay: EventEmitter; chartSelectChanged: EventEmitter; chartLegendSelectChanged: EventEmitter; chartLegendSelected: EventEmitter; chartLegendUnselected: EventEmitter; chartLegendLegendSelectAll: EventEmitter; chartLegendLegendInverseSelect: EventEmitter; chartLegendScroll: EventEmitter; chartDataZoom: EventEmitter; chartDataRangeSelected: EventEmitter; chartGraphRoam: EventEmitter; chartGeoRoam: EventEmitter; chartTreeRoam: EventEmitter; chartTimelineChanged: EventEmitter; chartTimelinePlayChanged: EventEmitter; chartRestore: EventEmitter; chartDataViewChanged: EventEmitter; chartMagicTypeChanged: EventEmitter; chartGeoSelectChanged: EventEmitter; chartGeoSelected: EventEmitter; chartGeoUnselected: EventEmitter; chartAxisAreaSelected: EventEmitter; chartBrush: EventEmitter; chartBrushEnd: EventEmitter; chartBrushSelected: EventEmitter; chartGlobalCursorTaken: EventEmitter; chartRendered: EventEmitter; chartFinished: EventEmitter; animationFrameID: any; private chart; private chart$; private echarts; private resizeOb; private resize$; private resizeSub; private initChartTimer?; private changeFilter; private loadingSub; private resizeObFired; constructor(config: NgxEchartsConfig, el: ElementRef, ngZone: NgZone); ngOnChanges(changes: SimpleChanges): void; ngOnInit(): void; ngOnDestroy(): void; ngAfterViewInit(): void; private dispose; /** * resize chart */ resize(): void; private toggleLoading; private setOption; /** * dispose old chart and create a new one. */ refreshChart(): Promise; private createChart; private initChart; private onOptionsChange; private createLazyEvent; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; }