Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ngx-echarts

Package Overview
Dependencies
Maintainers
1
Versions
63
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ngx-echarts - npm Package Compare versions

Comparing version 4.0.1 to 4.1.0

401

bundles/ngx-echarts.umd.js
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('rxjs'), require('@angular/core'), require('rxjs/operators'), require('echarts')) :
typeof define === 'function' && define.amd ? define('ngx-echarts', ['exports', 'rxjs', '@angular/core', 'rxjs/operators', 'echarts'], factory) :
(factory((global['ngx-echarts'] = {}),global.rxjs,global.ng.core,global.rxjs.operators,global.echarts));
}(this, (function (exports,rxjs,core,operators,echarts) { 'use strict';
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('rxjs'), require('@angular/core'), require('echarts'), require('rxjs/operators')) :
typeof define === 'function' && define.amd ? define('ngx-echarts', ['exports', 'rxjs', '@angular/core', 'echarts', 'rxjs/operators'], factory) :
(factory((global['ngx-echarts'] = {}),global.rxjs,global.ng.core,global.echarts,global.rxjs.operators));
}(this, (function (exports,rxjs,core,echarts,operators) { 'use strict';

@@ -109,109 +109,51 @@ /**

*/
var EChartEvents = /** @class */ (function () {
function EChartEvents() {
}
EChartEvents.Click = 'click';
EChartEvents.DblClick = 'dblclick';
EChartEvents.MouseDown = 'mousedown';
EChartEvents.MouseUp = 'mouseup';
EChartEvents.MouseOver = 'mouseover';
EChartEvents.MouseOut = 'mouseout';
EChartEvents.GlobalOut = 'globalout';
EChartEvents.ContextMenu = 'contextmenu';
EChartEvents.DataZoom = 'datazoom';
EChartEvents.MapSelectChanged = 'mapselectchanged';
EChartEvents.MapSelected = 'mapselected';
EChartEvents.MapUnselected = 'mapunselected';
EChartEvents.All = [
EChartEvents.Click,
EChartEvents.DblClick,
EChartEvents.MouseDown,
EChartEvents.MouseUp,
EChartEvents.MouseOver,
EChartEvents.MouseOut,
EChartEvents.GlobalOut,
EChartEvents.ContextMenu,
EChartEvents.DataZoom,
EChartEvents.MapSelectChanged,
EChartEvents.MapSelected,
EChartEvents.MapUnselected,
];
return EChartEvents;
}());
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
*/
var NgxEchartsDirective = /** @class */ (function () {
function NgxEchartsDirective(el, _ngZone) {
function NgxEchartsDirective(el, ngZone) {
this.el = el;
this._ngZone = _ngZone;
this.ngZone = ngZone;
this.autoResize = true;
this.loadingType = 'default';
/**
* Whether to register event handlers on echartInstance. Default is true.
* Use it to avoid unwanted change detection, if you want to optimize the performance.
*/
this.detectEventChanges = true;
// chart events:
this.detectEventChanges = true; // deprecated, left for compatibility reasons to avoid triggering major version
// deprecated, left for compatibility reasons to avoid triggering major version
// ngx-echarts events
this.chartInit = new core.EventEmitter();
this.chartClick = new core.EventEmitter();
this.chartDblClick = new core.EventEmitter();
this.chartMouseDown = new core.EventEmitter();
this.chartMouseUp = new core.EventEmitter();
this.chartMouseOver = new core.EventEmitter();
this.chartMouseOut = new core.EventEmitter();
this.chartGlobalOut = new core.EventEmitter();
this.chartContextMenu = new core.EventEmitter();
this.chartDataZoom = new core.EventEmitter();
this.chartMapSelectChanged = new core.EventEmitter();
this.chartMapSelected = new core.EventEmitter();
this.chartMapUnselected = new core.EventEmitter();
// echarts mouse events
this.chartClick = this.createLazyEvent('click');
this.chartDblClick = this.createLazyEvent('dblclick');
this.chartMouseDown = this.createLazyEvent('mousedown');
this.chartMouseMove = this.createLazyEvent('mousemove');
this.chartMouseUp = this.createLazyEvent('mouseup');
this.chartMouseOver = this.createLazyEvent('mouseover');
this.chartMouseOut = this.createLazyEvent('mouseout');
this.chartGlobalOut = this.createLazyEvent('globalout');
this.chartContextMenu = this.createLazyEvent('contextmenu');
// echarts mouse events
this.chartLegendSelectChanged = this.createLazyEvent('legendselectchanged');
this.chartLegendSelected = this.createLazyEvent('legendselected');
this.chartLegendUnselected = this.createLazyEvent('legendunselected');
this.chartLegendScroll = this.createLazyEvent('legendscroll');
this.chartDataZoom = this.createLazyEvent('datazoom');
this.chartDataRangeSelected = this.createLazyEvent('datarangeselected');
this.chartTimelineChanged = this.createLazyEvent('timelinechanged');
this.chartTimelinePlayChanged = this.createLazyEvent('timelineplaychanged');
this.chartRestore = this.createLazyEvent('restore');
this.chartDataViewChanged = this.createLazyEvent('dataviewchanged');
this.chartMagicTypeChanged = this.createLazyEvent('magictypechanged');
this.chartPieSelectChanged = this.createLazyEvent('pieselectchanged');
this.chartPieSelected = this.createLazyEvent('pieselected');
this.chartPieUnselected = this.createLazyEvent('pieunselected');
this.chartMapSelectChanged = this.createLazyEvent('mapselectchanged');
this.chartMapSelected = this.createLazyEvent('mapselected');
this.chartMapUnselected = this.createLazyEvent('mapunselected');
this.chartAxisAreaSelected = this.createLazyEvent('axisareaselected');
this.chartFocusNodeAdjacency = this.createLazyEvent('focusnodeadjacency');
this.chartUnfocusNodeAdjacency = this.createLazyEvent('unfocusnodeadjacency');
this.chartBrush = this.createLazyEvent('brush');
this.chartBrushSelected = this.createLazyEvent('brushselected');
this.chartRendered = this.createLazyEvent('rendered');
this.chartFinished = this.createLazyEvent('finished');
this.currentOffsetWidth = 0;
this.currentOffsetHeight = 0;
this._resize$ = new rxjs.Subject();
}
/**
* @return {?}
*/
NgxEchartsDirective.prototype.createChart = /**
* @return {?}
*/
function () {
var _this = this;
this.currentWindowWidth = window.innerWidth;
this.currentOffsetWidth = this.el.nativeElement.offsetWidth;
this.currentOffsetHeight = this.el.nativeElement.offsetHeight;
/** @type {?} */
var dom = this.el.nativeElement;
if (window && window.getComputedStyle) {
/** @type {?} */
var prop = window.getComputedStyle(dom, null).getPropertyValue('height');
if ((!prop || prop === '0px') &&
(!dom.style.height || dom.style.height === '0px')) {
dom.style.height = '400px';
}
}
return this._ngZone.runOutsideAngular(function () { return echarts.init(dom, _this.theme || undefined, _this.initOpts || undefined); });
};
/**
* @param {?} event
* @return {?}
*/
NgxEchartsDirective.prototype.onWindowResize = /**
* @param {?} event
* @return {?}
*/
function (event) {
/** @type {?} */
var target = ( /** @type {?} */(event.target));
if (this.autoResize && target.innerWidth !== this.currentWindowWidth) {
this.currentWindowWidth = target.innerWidth;
this.currentOffsetWidth = this.el.nativeElement.offsetWidth;
this.currentOffsetHeight = this.el.nativeElement.offsetHeight;
this._resize$.next();
}
};
/**
* @param {?} changes

@@ -231,3 +173,2 @@ * @return {?}

filter.has('loading').subscribe(function (v) { return _this.toggleLoading(!!v); });
filter.notFirst('detectEventChanges').subscribe(function (v) { return _this.toggleEventDetectors(!!v); });
filter.notFirst('theme').subscribe(function () { return _this.refreshChart(); });

@@ -238,2 +179,19 @@ };

*/
NgxEchartsDirective.prototype.ngOnInit = /**
* @return {?}
*/
function () {
var _this = this;
this.resizeSub = rxjs.fromEvent(window, 'resize').pipe(operators.debounceTime(50)).subscribe(function () {
if (_this.autoResize && window.innerWidth !== _this.currentWindowWidth) {
_this.currentWindowWidth = window.innerWidth;
_this.currentOffsetWidth = _this.el.nativeElement.offsetWidth;
_this.currentOffsetHeight = _this.el.nativeElement.offsetHeight;
_this.resize();
}
});
};
/**
* @return {?}
*/
NgxEchartsDirective.prototype.ngOnDestroy = /**

@@ -243,10 +201,4 @@ * @return {?}

function () {
if (this._resizeSub) {
this._resizeSub.unsubscribe();
this._resizeSub = null;
}
if (this._chart) {
this._chart.dispose();
this._chart = null;
}
this.resizeSub.unsubscribe();
this.dispose();
};

@@ -261,3 +213,3 @@ /**

// No heavy work in DoCheck!
if (this._chart && this.autoResize) {
if (this.chart && this.autoResize) {
/** @type {?} */

@@ -270,3 +222,3 @@ var offsetWidth = this.el.nativeElement.offsetWidth;

this.currentOffsetHeight = offsetHeight;
this._resize$.next();
this.resize();
}

@@ -288,68 +240,48 @@ }

*/
NgxEchartsDirective.prototype.initChart = /**
NgxEchartsDirective.prototype.dispose = /**
* @return {?}
*/
function () {
this.onOptionsChange(this.options);
if (this.merge && this._chart) {
this.setOption(this.merge);
if (this.chart) {
this.chart.dispose();
this.chart = null;
}
};
/**
* @param {?} opt
* @return {?}
*/
NgxEchartsDirective.prototype.onOptionsChange = /**
* @param {?} opt
NgxEchartsDirective.prototype.resize = /**
* @return {?}
*/
function (opt) {
var _this = this;
if (opt) {
if (!this._chart) {
this._chart = this.createChart();
// subscribe to _resize$ and debounced
this._resizeSub = this._resize$.pipe(operators.debounceTime(50)).subscribe(function () {
if (_this._chart) {
_this._chart.resize();
}
});
// output echart instance:
this.chartInit.emit(this._chart);
// register events:
if (this.detectEventChanges) {
this.registerEvents();
}
}
this._chart.setOption(this.options, true);
function () {
if (this.chart) {
this.chart.resize();
}
};
/**
* @param {?} loading
* @return {?}
*/
NgxEchartsDirective.prototype.registerEvents = /**
NgxEchartsDirective.prototype.toggleLoading = /**
* @param {?} loading
* @return {?}
*/
function () {
if (this._chart) {
/** @type {?} */
var events = EChartEvents.All;
for (var i = 0, len = events.length; i < len; i++) {
this._chart.on(events[i], this.eventHandler, this);
}
function (loading) {
if (this.chart) {
loading ? this.chart.showLoading(this.loadingType, this.loadingOpts) : this.chart.hideLoading();
}
};
/**
* @param {?} option
* @param {?=} opts
* @return {?}
*/
NgxEchartsDirective.prototype.unregisterEvents = /**
NgxEchartsDirective.prototype.setOption = /**
* @param {?} option
* @param {?=} opts
* @return {?}
*/
function () {
if (this._chart) {
/** @type {?} */
var events = EChartEvents.All;
for (var i = 0, len = events.length; i < len; i++) {
this._chart.off(events[i], this.eventHandler);
}
function (option, opts) {
if (this.chart) {
this.chart.setOption(option, opts);
}

@@ -360,110 +292,87 @@ };

*/
NgxEchartsDirective.prototype.clear = /**
NgxEchartsDirective.prototype.refreshChart = /**
* @return {?}
*/
function () {
if (this._chart) {
this._chart.clear();
}
this.dispose();
this.initChart();
};
/**
* @param {?} loading
* @return {?}
*/
NgxEchartsDirective.prototype.toggleLoading = /**
* @param {?} loading
NgxEchartsDirective.prototype.createChart = /**
* @return {?}
*/
function (loading) {
if (this._chart) {
loading ? this._chart.showLoading(this.loadingType, this.loadingOpts) : this._chart.hideLoading();
function () {
var _this = this;
this.currentWindowWidth = window.innerWidth;
this.currentOffsetWidth = this.el.nativeElement.offsetWidth;
this.currentOffsetHeight = this.el.nativeElement.offsetHeight;
/** @type {?} */
var dom = this.el.nativeElement;
if (window && window.getComputedStyle) {
/** @type {?} */
var prop = window.getComputedStyle(dom, null).getPropertyValue('height');
if ((!prop || prop === '0px') &&
(!dom.style.height || dom.style.height === '0px')) {
dom.style.height = '400px';
}
}
return this.ngZone.runOutsideAngular(function () { return echarts.init(dom, _this.theme, _this.initOpts); });
};
/**
* @param {?} option
* @param {?=} opts
* @return {?}
*/
NgxEchartsDirective.prototype.setOption = /**
* @param {?} option
* @param {?=} opts
NgxEchartsDirective.prototype.initChart = /**
* @return {?}
*/
function (option, opts) {
if (this._chart) {
this._chart.setOption(option, opts);
function () {
this.onOptionsChange(this.options);
if (this.merge && this.chart) {
this.setOption(this.merge);
}
};
/**
* @param {?} event
* @param {?} opt
* @return {?}
*/
NgxEchartsDirective.prototype.eventHandler = /**
* @param {?} event
NgxEchartsDirective.prototype.onOptionsChange = /**
* @param {?} opt
* @return {?}
*/
function (event) {
var _this = this;
switch (event.type) {
case EChartEvents.Click:
this._ngZone.run(function () { return _this.chartClick.emit(event); });
break;
case EChartEvents.DblClick:
this._ngZone.run(function () { return _this.chartDblClick.emit(event); });
break;
case EChartEvents.MouseDown:
this._ngZone.run(function () { return _this.chartMouseDown.emit(event); });
break;
case EChartEvents.MouseUp:
this._ngZone.run(function () { return _this.chartMouseUp.emit(event); });
break;
case EChartEvents.MouseOver:
this._ngZone.run(function () { return _this.chartMouseOver.emit(event); });
break;
case EChartEvents.MouseOut:
this._ngZone.run(function () { return _this.chartMouseOut.emit(event); });
break;
case EChartEvents.GlobalOut:
this._ngZone.run(function () { return _this.chartGlobalOut.emit(event); });
break;
case EChartEvents.ContextMenu:
this._ngZone.run(function () { return _this.chartContextMenu.emit(event); });
break;
case EChartEvents.DataZoom:
this._ngZone.run(function () { return _this.chartDataZoom.emit(event); });
break;
case EChartEvents.MapSelectChanged:
this._ngZone.run(function () { return _this.chartMapSelectChanged.emit(event); });
break;
case EChartEvents.MapSelected:
this._ngZone.run(function () { return _this.chartMapSelected.emit(event); });
break;
case EChartEvents.MapUnselected:
this._ngZone.run(function () { return _this.chartMapUnselected.emit(event); });
break;
function (opt) {
if (opt) {
if (!this.chart) {
this.chart = this.createChart();
this.chartInit.emit(this.chart);
}
this.chart.setOption(this.options, true);
}
};
// allows to lazily bind to only those events that are requested through the `@Output` by parent components
// see https://stackoverflow.com/questions/51787972/optimal-reentering-the-ngzone-from-eventemitter-event for more info
// allows to lazily bind to only those events that are requested through the `@Output` by parent components
// see https://stackoverflow.com/questions/51787972/optimal-reentering-the-ngzone-from-eventemitter-event for more info
/**
* @param {?} detect
* @template T
* @param {?} eventName
* @return {?}
*/
NgxEchartsDirective.prototype.toggleEventDetectors = /**
* @param {?} detect
* @return {?}
*/
function (detect) {
if (this._chart) {
detect ? this.registerEvents() : this.unregisterEvents();
}
NgxEchartsDirective.prototype.createLazyEvent =
// allows to lazily bind to only those events that are requested through the `@Output` by parent components
// see https://stackoverflow.com/questions/51787972/optimal-reentering-the-ngzone-from-eventemitter-event for more info
/**
* @template T
* @param {?} eventName
* @return {?}
*/
function (eventName) {
var _this = this;
return ( /** @type {?} */(this.chartInit.pipe(operators.switchMap(function (chart) {
return new rxjs.Observable(function (observer) {
chart.on(eventName, function (data) { return _this.ngZone.run(function () { return observer.next(data); }); });
return null; // no need to react on unsubscribe as long as the `dispose()` is called in ngOnDestroy
});
}))));
};
/**
* @return {?}
*/
NgxEchartsDirective.prototype.refreshChart = /**
* @return {?}
*/
function () {
this.ngOnDestroy();
this.initChart();
};
NgxEchartsDirective.decorators = [

@@ -495,2 +404,3 @@ { type: core.Directive, args: [{

chartMouseDown: [{ type: core.Output }],
chartMouseMove: [{ type: core.Output }],
chartMouseUp: [{ type: core.Output }],

@@ -501,7 +411,26 @@ chartMouseOver: [{ type: core.Output }],

chartContextMenu: [{ type: core.Output }],
chartLegendSelectChanged: [{ type: core.Output }],
chartLegendSelected: [{ type: core.Output }],
chartLegendUnselected: [{ type: core.Output }],
chartLegendScroll: [{ type: core.Output }],
chartDataZoom: [{ type: core.Output }],
chartDataRangeSelected: [{ type: core.Output }],
chartTimelineChanged: [{ type: core.Output }],
chartTimelinePlayChanged: [{ type: core.Output }],
chartRestore: [{ type: core.Output }],
chartDataViewChanged: [{ type: core.Output }],
chartMagicTypeChanged: [{ type: core.Output }],
chartPieSelectChanged: [{ type: core.Output }],
chartPieSelected: [{ type: core.Output }],
chartPieUnselected: [{ type: core.Output }],
chartMapSelectChanged: [{ type: core.Output }],
chartMapSelected: [{ type: core.Output }],
chartMapUnselected: [{ type: core.Output }],
onWindowResize: [{ type: core.HostListener, args: ['window:resize', ['$event'],] }]
chartAxisAreaSelected: [{ type: core.Output }],
chartFocusNodeAdjacency: [{ type: core.Output }],
chartUnfocusNodeAdjacency: [{ type: core.Output }],
chartBrush: [{ type: core.Output }],
chartBrushSelected: [{ type: core.Output }],
chartRendered: [{ type: core.Output }],
chartFinished: [{ type: core.Output }]
};

@@ -549,2 +478,2 @@ return NgxEchartsDirective;

//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LWVjaGFydHMudW1kLmpzLm1hcCIsInNvdXJjZXMiOlsibmc6Ly9uZ3gtZWNoYXJ0cy9saWIvY2hhbmdlLWZpbHRlci50cyIsIm5nOi8vbmd4LWVjaGFydHMvbGliL2VjaGFydC1ldmVudHMudHMiLCJuZzovL25neC1lY2hhcnRzL2xpYi9uZ3gtZWNoYXJ0cy5kaXJlY3RpdmUudHMiLCJuZzovL25neC1lY2hhcnRzL2xpYi9uZ3gtZWNoYXJ0cy5tb2R1bGUudHMiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgU2ltcGxlQ2hhbmdlcyB9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Q0xBLFVBQUs7Z0NBR0xDLFdBQU07aUNBR05BLFdBQU07b0NBQ05BLFdBQU07cUNBQ05BLFdBQU07cUNBQ05BLFdBQU07bUNBQ05BLFdBQU07cUNBQ05BLFdBQU07b0NBQ05BLFdBQU07cUNBQ05BLFdBQU07dUNBQ05BLFdBQU07K0NBR05BLFdBQU07MENBQ05BLFdBQU07NENBQ05BLFdBQU07d0NBQ05BLFdBQU07b0NBQ05BLFdBQU07NkNBQ05BLFdBQU07MkNBQ05BLFdBQU07K0NBQ05BLFdBQU07bUNBQ05BLFdBQU07MkNBQ05BLFdBQU07NENBQ05BLFdBQU07NENBQ05BLFdBQU07dUNBQ05BLFdBQU07eUNBQ05BLFdBQU07NENBQ05BLFdBQU07dUNBQ05BLFdBQU07eUNBQ05BLFdBQU07NENBQ05BLFdBQU07OENBQ05BLFdBQU07Z0RBQ05BLFdBQU07aUNBQ05BLFdBQU07eUNBQ05BLFdBQU07b0NBQ05BLFdBQU07b0NBQ05BLFdBQU07O1FBaUlULDBCQUFDO0tBMUxEOzs7Ozs7QUNOQTtRQUdBO1NBU2lDOztvQkFUaENDLGFBQVEsU0FBQzt3QkFDUixPQUFPLEVBQUUsRUFBRTt3QkFDWCxZQUFZLEVBQUU7NEJBQ1osbUJBQW1CO3lCQUNwQjt3QkFDRCxPQUFPLEVBQUU7NEJBQ1AsbUJBQW1CO3lCQUNwQjtxQkFDRjs7UUFDK0IsdUJBQUM7S0FUakM7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OyJ9

@@ -1,2 +0,2 @@

!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("rxjs"),require("@angular/core"),require("rxjs/operators"),require("echarts")):"function"==typeof define&&define.amd?define("ngx-echarts",["exports","rxjs","@angular/core","rxjs/operators","echarts"],e):e(t["ngx-echarts"]={},t.rxjs,t.ng.core,t.rxjs.operators,t.echarts)}(this,function(t,n,r,i,s){"use strict";var o=function(){function e(t){this._changes=t}return e.of=function(t){return new e(t)},e.prototype.notEmpty=function(t){if(this._changes[t]){var e=this._changes[t].currentValue;if(e!==undefined&&null!==e)return n.of(e)}return n.empty()},e.prototype.has=function(t){if(this._changes[t]){var e=this._changes[t].currentValue;return n.of(e)}return n.empty()},e.prototype.notFirst=function(t){if(this._changes[t]&&!this._changes[t].isFirstChange()){var e=this._changes[t].currentValue;return n.of(e)}return n.empty()},e.prototype.notFirstAndEmpty=function(t){if(this._changes[t]&&!this._changes[t].isFirstChange()){var e=this._changes[t].currentValue;if(e!==undefined&&null!==e)return n.of(e)}return n.empty()},e}(),h=function(){function t(){}return t.All=[t.Click="click",t.DblClick="dblclick",t.MouseDown="mousedown",t.MouseUp="mouseup",t.MouseOver="mouseover",t.MouseOut="mouseout",t.GlobalOut="globalout",t.ContextMenu="contextmenu",t.DataZoom="datazoom",t.MapSelectChanged="mapselectchanged",t.MapSelected="mapselected",t.MapUnselected="mapunselected"],t}(),e=function(){function t(t,e){this.el=t,this._ngZone=e,this.autoResize=!0,this.loadingType="default",this.detectEventChanges=!0,this.chartInit=new r.EventEmitter,this.chartClick=new r.EventEmitter,this.chartDblClick=new r.EventEmitter,this.chartMouseDown=new r.EventEmitter,this.chartMouseUp=new r.EventEmitter,this.chartMouseOver=new r.EventEmitter,this.chartMouseOut=new r.EventEmitter,this.chartGlobalOut=new r.EventEmitter,this.chartContextMenu=new r.EventEmitter,this.chartDataZoom=new r.EventEmitter,this.chartMapSelectChanged=new r.EventEmitter,this.chartMapSelected=new r.EventEmitter,this.chartMapUnselected=new r.EventEmitter,this.currentOffsetWidth=0,this.currentOffsetHeight=0,this._resize$=new n.Subject}return t.prototype.createChart=function(){var t=this;this.currentWindowWidth=window.innerWidth,this.currentOffsetWidth=this.el.nativeElement.offsetWidth,this.currentOffsetHeight=this.el.nativeElement.offsetHeight;var e=this.el.nativeElement;if(window&&window.getComputedStyle){var n=window.getComputedStyle(e,null).getPropertyValue("height");n&&"0px"!==n||e.style.height&&"0px"!==e.style.height||(e.style.height="400px")}return this._ngZone.runOutsideAngular(function(){return s.init(e,t.theme||undefined,t.initOpts||undefined)})},t.prototype.onWindowResize=function(t){var e=t.target;this.autoResize&&e.innerWidth!==this.currentWindowWidth&&(this.currentWindowWidth=e.innerWidth,this.currentOffsetWidth=this.el.nativeElement.offsetWidth,this.currentOffsetHeight=this.el.nativeElement.offsetHeight,this._resize$.next())},t.prototype.ngOnChanges=function(t){var e=this,n=o.of(t);n.notFirstAndEmpty("options").subscribe(function(t){return e.onOptionsChange(t)}),n.notFirstAndEmpty("merge").subscribe(function(t){return e.setOption(t)}),n.has("loading").subscribe(function(t){return e.toggleLoading(!!t)}),n.notFirst("detectEventChanges").subscribe(function(t){return e.toggleEventDetectors(!!t)}),n.notFirst("theme").subscribe(function(){return e.refreshChart()})},t.prototype.ngOnDestroy=function(){this._resizeSub&&(this._resizeSub.unsubscribe(),this._resizeSub=null),this._chart&&(this._chart.dispose(),this._chart=null)},t.prototype.ngDoCheck=function(){if(this._chart&&this.autoResize){var t=this.el.nativeElement.offsetWidth,e=this.el.nativeElement.offsetHeight;this.currentOffsetWidth===t&&this.currentOffsetHeight===e||(this.currentOffsetWidth=t,this.currentOffsetHeight=e,this._resize$.next())}},t.prototype.ngAfterViewInit=function(){var t=this;setTimeout(function(){return t.initChart()})},t.prototype.initChart=function(){this.onOptionsChange(this.options),this.merge&&this._chart&&this.setOption(this.merge)},t.prototype.onOptionsChange=function(t){var e=this;t&&(this._chart||(this._chart=this.createChart(),this._resizeSub=this._resize$.pipe(i.debounceTime(50)).subscribe(function(){e._chart&&e._chart.resize()}),this.chartInit.emit(this._chart),this.detectEventChanges&&this.registerEvents()),this._chart.setOption(this.options,!0))},t.prototype.registerEvents=function(){if(this._chart)for(var t=h.All,e=0,n=t.length;e<n;e++)this._chart.on(t[e],this.eventHandler,this)},t.prototype.unregisterEvents=function(){if(this._chart)for(var t=h.All,e=0,n=t.length;e<n;e++)this._chart.off(t[e],this.eventHandler)},t.prototype.clear=function(){this._chart&&this._chart.clear()},t.prototype.toggleLoading=function(t){this._chart&&(t?this._chart.showLoading(this.loadingType,this.loadingOpts):this._chart.hideLoading())},t.prototype.setOption=function(t,e){this._chart&&this._chart.setOption(t,e)},t.prototype.eventHandler=function(t){var e=this;switch(t.type){case h.Click:this._ngZone.run(function(){return e.chartClick.emit(t)});break;case h.DblClick:this._ngZone.run(function(){return e.chartDblClick.emit(t)});break;case h.MouseDown:this._ngZone.run(function(){return e.chartMouseDown.emit(t)});break;case h.MouseUp:this._ngZone.run(function(){return e.chartMouseUp.emit(t)});break;case h.MouseOver:this._ngZone.run(function(){return e.chartMouseOver.emit(t)});break;case h.MouseOut:this._ngZone.run(function(){return e.chartMouseOut.emit(t)});break;case h.GlobalOut:this._ngZone.run(function(){return e.chartGlobalOut.emit(t)});break;case h.ContextMenu:this._ngZone.run(function(){return e.chartContextMenu.emit(t)});break;case h.DataZoom:this._ngZone.run(function(){return e.chartDataZoom.emit(t)});break;case h.MapSelectChanged:this._ngZone.run(function(){return e.chartMapSelectChanged.emit(t)});break;case h.MapSelected:this._ngZone.run(function(){return e.chartMapSelected.emit(t)});break;case h.MapUnselected:this._ngZone.run(function(){return e.chartMapUnselected.emit(t)})}},t.prototype.toggleEventDetectors=function(t){this._chart&&(t?this.registerEvents():this.unregisterEvents())},t.prototype.refreshChart=function(){this.ngOnDestroy(),this.initChart()},t.decorators=[{type:r.Directive,args:[{selector:"echarts, [echarts]"}]}],t.ctorParameters=function(){return[{type:r.ElementRef},{type:r.NgZone}]},t.propDecorators={options:[{type:r.Input}],theme:[{type:r.Input}],loading:[{type:r.Input}],initOpts:[{type:r.Input}],merge:[{type:r.Input}],autoResize:[{type:r.Input}],loadingType:[{type:r.Input}],loadingOpts:[{type:r.Input}],detectEventChanges:[{type:r.Input}],chartInit:[{type:r.Output}],chartClick:[{type:r.Output}],chartDblClick:[{type:r.Output}],chartMouseDown:[{type:r.Output}],chartMouseUp:[{type:r.Output}],chartMouseOver:[{type:r.Output}],chartMouseOut:[{type:r.Output}],chartGlobalOut:[{type:r.Output}],chartContextMenu:[{type:r.Output}],chartDataZoom:[{type:r.Output}],chartMapSelectChanged:[{type:r.Output}],chartMapSelected:[{type:r.Output}],chartMapUnselected:[{type:r.Output}],onWindowResize:[{type:r.HostListener,args:["window:resize",["$event"]]}]},t}(),u=function(){function t(){}return t.decorators=[{type:r.NgModule,args:[{imports:[],declarations:[e],exports:[e]}]}],t}();t.NgxEchartsModule=u,t.ɵa=e,Object.defineProperty(t,"__esModule",{value:!0})});
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("rxjs"),require("@angular/core"),require("echarts"),require("rxjs/operators")):"function"==typeof define&&define.amd?define("ngx-echarts",["exports","rxjs","@angular/core","echarts","rxjs/operators"],e):e(t["ngx-echarts"]={},t.rxjs,t.ng.core,t.echarts,t.rxjs.operators)}(this,function(t,r,n,i,e){"use strict";var h=function(){function e(t){this._changes=t}return e.of=function(t){return new e(t)},e.prototype.notEmpty=function(t){if(this._changes[t]){var e=this._changes[t].currentValue;if(e!==undefined&&null!==e)return r.of(e)}return r.empty()},e.prototype.has=function(t){if(this._changes[t]){var e=this._changes[t].currentValue;return r.of(e)}return r.empty()},e.prototype.notFirst=function(t){if(this._changes[t]&&!this._changes[t].isFirstChange()){var e=this._changes[t].currentValue;return r.of(e)}return r.empty()},e.prototype.notFirstAndEmpty=function(t){if(this._changes[t]&&!this._changes[t].isFirstChange()){var e=this._changes[t].currentValue;if(e!==undefined&&null!==e)return r.of(e)}return r.empty()},e}(),a=function(){function t(t,e){this.el=t,this.ngZone=e,this.autoResize=!0,this.loadingType="default",this.detectEventChanges=!0,this.chartInit=new n.EventEmitter,this.chartClick=this.createLazyEvent("click"),this.chartDblClick=this.createLazyEvent("dblclick"),this.chartMouseDown=this.createLazyEvent("mousedown"),this.chartMouseMove=this.createLazyEvent("mousemove"),this.chartMouseUp=this.createLazyEvent("mouseup"),this.chartMouseOver=this.createLazyEvent("mouseover"),this.chartMouseOut=this.createLazyEvent("mouseout"),this.chartGlobalOut=this.createLazyEvent("globalout"),this.chartContextMenu=this.createLazyEvent("contextmenu"),this.chartLegendSelectChanged=this.createLazyEvent("legendselectchanged"),this.chartLegendSelected=this.createLazyEvent("legendselected"),this.chartLegendUnselected=this.createLazyEvent("legendunselected"),this.chartLegendScroll=this.createLazyEvent("legendscroll"),this.chartDataZoom=this.createLazyEvent("datazoom"),this.chartDataRangeSelected=this.createLazyEvent("datarangeselected"),this.chartTimelineChanged=this.createLazyEvent("timelinechanged"),this.chartTimelinePlayChanged=this.createLazyEvent("timelineplaychanged"),this.chartRestore=this.createLazyEvent("restore"),this.chartDataViewChanged=this.createLazyEvent("dataviewchanged"),this.chartMagicTypeChanged=this.createLazyEvent("magictypechanged"),this.chartPieSelectChanged=this.createLazyEvent("pieselectchanged"),this.chartPieSelected=this.createLazyEvent("pieselected"),this.chartPieUnselected=this.createLazyEvent("pieunselected"),this.chartMapSelectChanged=this.createLazyEvent("mapselectchanged"),this.chartMapSelected=this.createLazyEvent("mapselected"),this.chartMapUnselected=this.createLazyEvent("mapunselected"),this.chartAxisAreaSelected=this.createLazyEvent("axisareaselected"),this.chartFocusNodeAdjacency=this.createLazyEvent("focusnodeadjacency"),this.chartUnfocusNodeAdjacency=this.createLazyEvent("unfocusnodeadjacency"),this.chartBrush=this.createLazyEvent("brush"),this.chartBrushSelected=this.createLazyEvent("brushselected"),this.chartRendered=this.createLazyEvent("rendered"),this.chartFinished=this.createLazyEvent("finished"),this.currentOffsetWidth=0,this.currentOffsetHeight=0}return t.prototype.ngOnChanges=function(t){var e=this,n=h.of(t);n.notFirstAndEmpty("options").subscribe(function(t){return e.onOptionsChange(t)}),n.notFirstAndEmpty("merge").subscribe(function(t){return e.setOption(t)}),n.has("loading").subscribe(function(t){return e.toggleLoading(!!t)}),n.notFirst("theme").subscribe(function(){return e.refreshChart()})},t.prototype.ngOnInit=function(){var t=this;this.resizeSub=r.fromEvent(window,"resize").pipe(e.debounceTime(50)).subscribe(function(){t.autoResize&&window.innerWidth!==t.currentWindowWidth&&(t.currentWindowWidth=window.innerWidth,t.currentOffsetWidth=t.el.nativeElement.offsetWidth,t.currentOffsetHeight=t.el.nativeElement.offsetHeight,t.resize())})},t.prototype.ngOnDestroy=function(){this.resizeSub.unsubscribe(),this.dispose()},t.prototype.ngDoCheck=function(){if(this.chart&&this.autoResize){var t=this.el.nativeElement.offsetWidth,e=this.el.nativeElement.offsetHeight;this.currentOffsetWidth===t&&this.currentOffsetHeight===e||(this.currentOffsetWidth=t,this.currentOffsetHeight=e,this.resize())}},t.prototype.ngAfterViewInit=function(){var t=this;setTimeout(function(){return t.initChart()})},t.prototype.dispose=function(){this.chart&&(this.chart.dispose(),this.chart=null)},t.prototype.resize=function(){this.chart&&this.chart.resize()},t.prototype.toggleLoading=function(t){this.chart&&(t?this.chart.showLoading(this.loadingType,this.loadingOpts):this.chart.hideLoading())},t.prototype.setOption=function(t,e){this.chart&&this.chart.setOption(t,e)},t.prototype.refreshChart=function(){this.dispose(),this.initChart()},t.prototype.createChart=function(){var t=this;this.currentWindowWidth=window.innerWidth,this.currentOffsetWidth=this.el.nativeElement.offsetWidth,this.currentOffsetHeight=this.el.nativeElement.offsetHeight;var e=this.el.nativeElement;if(window&&window.getComputedStyle){var n=window.getComputedStyle(e,null).getPropertyValue("height");n&&"0px"!==n||e.style.height&&"0px"!==e.style.height||(e.style.height="400px")}return this.ngZone.runOutsideAngular(function(){return i.init(e,t.theme,t.initOpts)})},t.prototype.initChart=function(){this.onOptionsChange(this.options),this.merge&&this.chart&&this.setOption(this.merge)},t.prototype.onOptionsChange=function(t){t&&(this.chart||(this.chart=this.createChart(),this.chartInit.emit(this.chart)),this.chart.setOption(this.options,!0))},t.prototype.createLazyEvent=function(n){var i=this;return this.chartInit.pipe(e.switchMap(function(t){return new r.Observable(function(e){return t.on(n,function(t){return i.ngZone.run(function(){return e.next(t)})}),null})}))},t.decorators=[{type:n.Directive,args:[{selector:"echarts, [echarts]"}]}],t.ctorParameters=function(){return[{type:n.ElementRef},{type:n.NgZone}]},t.propDecorators={options:[{type:n.Input}],theme:[{type:n.Input}],loading:[{type:n.Input}],initOpts:[{type:n.Input}],merge:[{type:n.Input}],autoResize:[{type:n.Input}],loadingType:[{type:n.Input}],loadingOpts:[{type:n.Input}],detectEventChanges:[{type:n.Input}],chartInit:[{type:n.Output}],chartClick:[{type:n.Output}],chartDblClick:[{type:n.Output}],chartMouseDown:[{type:n.Output}],chartMouseMove:[{type:n.Output}],chartMouseUp:[{type:n.Output}],chartMouseOver:[{type:n.Output}],chartMouseOut:[{type:n.Output}],chartGlobalOut:[{type:n.Output}],chartContextMenu:[{type:n.Output}],chartLegendSelectChanged:[{type:n.Output}],chartLegendSelected:[{type:n.Output}],chartLegendUnselected:[{type:n.Output}],chartLegendScroll:[{type:n.Output}],chartDataZoom:[{type:n.Output}],chartDataRangeSelected:[{type:n.Output}],chartTimelineChanged:[{type:n.Output}],chartTimelinePlayChanged:[{type:n.Output}],chartRestore:[{type:n.Output}],chartDataViewChanged:[{type:n.Output}],chartMagicTypeChanged:[{type:n.Output}],chartPieSelectChanged:[{type:n.Output}],chartPieSelected:[{type:n.Output}],chartPieUnselected:[{type:n.Output}],chartMapSelectChanged:[{type:n.Output}],chartMapSelected:[{type:n.Output}],chartMapUnselected:[{type:n.Output}],chartAxisAreaSelected:[{type:n.Output}],chartFocusNodeAdjacency:[{type:n.Output}],chartUnfocusNodeAdjacency:[{type:n.Output}],chartBrush:[{type:n.Output}],chartBrushSelected:[{type:n.Output}],chartRendered:[{type:n.Output}],chartFinished:[{type:n.Output}]},t}(),s=function(){function t(){}return t.decorators=[{type:n.NgModule,args:[{imports:[],declarations:[a],exports:[a]}]}],t}();t.NgxEchartsModule=s,t.ɵa=a,Object.defineProperty(t,"__esModule",{value:!0})});
//# sourceMappingURL=ngx-echarts.umd.min.js.map

@@ -5,75 +5,60 @@ /**

*/
import { Directive, ElementRef, Input, Output, HostListener, EventEmitter, NgZone } from '@angular/core';
import { Directive, ElementRef, EventEmitter, Input, NgZone, Output } from '@angular/core';
import { EChartOption, init } from 'echarts';
import { fromEvent, Observable } from 'rxjs';
import { debounceTime, switchMap } from 'rxjs/operators';
import { ChangeFilter } from './change-filter';
import { Subject } from 'rxjs';
import { debounceTime } from 'rxjs/operators';
import { init, EChartOption } from 'echarts';
import { EChartEvents } from './echart-events';
export class NgxEchartsDirective {
/**
* @param {?} el
* @param {?} _ngZone
* @param {?} ngZone
*/
constructor(el, _ngZone) {
constructor(el, ngZone) {
this.el = el;
this._ngZone = _ngZone;
this.ngZone = ngZone;
this.autoResize = true;
this.loadingType = 'default';
/**
* Whether to register event handlers on echartInstance. Default is true.
* Use it to avoid unwanted change detection, if you want to optimize the performance.
*/
this.detectEventChanges = true;
// chart events:
this.detectEventChanges = true; // deprecated, left for compatibility reasons to avoid triggering major version
// deprecated, left for compatibility reasons to avoid triggering major version
// ngx-echarts events
this.chartInit = new EventEmitter();
this.chartClick = new EventEmitter();
this.chartDblClick = new EventEmitter();
this.chartMouseDown = new EventEmitter();
this.chartMouseUp = new EventEmitter();
this.chartMouseOver = new EventEmitter();
this.chartMouseOut = new EventEmitter();
this.chartGlobalOut = new EventEmitter();
this.chartContextMenu = new EventEmitter();
this.chartDataZoom = new EventEmitter();
this.chartMapSelectChanged = new EventEmitter();
this.chartMapSelected = new EventEmitter();
this.chartMapUnselected = new EventEmitter();
// echarts mouse events
this.chartClick = this.createLazyEvent('click');
this.chartDblClick = this.createLazyEvent('dblclick');
this.chartMouseDown = this.createLazyEvent('mousedown');
this.chartMouseMove = this.createLazyEvent('mousemove');
this.chartMouseUp = this.createLazyEvent('mouseup');
this.chartMouseOver = this.createLazyEvent('mouseover');
this.chartMouseOut = this.createLazyEvent('mouseout');
this.chartGlobalOut = this.createLazyEvent('globalout');
this.chartContextMenu = this.createLazyEvent('contextmenu');
// echarts mouse events
this.chartLegendSelectChanged = this.createLazyEvent('legendselectchanged');
this.chartLegendSelected = this.createLazyEvent('legendselected');
this.chartLegendUnselected = this.createLazyEvent('legendunselected');
this.chartLegendScroll = this.createLazyEvent('legendscroll');
this.chartDataZoom = this.createLazyEvent('datazoom');
this.chartDataRangeSelected = this.createLazyEvent('datarangeselected');
this.chartTimelineChanged = this.createLazyEvent('timelinechanged');
this.chartTimelinePlayChanged = this.createLazyEvent('timelineplaychanged');
this.chartRestore = this.createLazyEvent('restore');
this.chartDataViewChanged = this.createLazyEvent('dataviewchanged');
this.chartMagicTypeChanged = this.createLazyEvent('magictypechanged');
this.chartPieSelectChanged = this.createLazyEvent('pieselectchanged');
this.chartPieSelected = this.createLazyEvent('pieselected');
this.chartPieUnselected = this.createLazyEvent('pieunselected');
this.chartMapSelectChanged = this.createLazyEvent('mapselectchanged');
this.chartMapSelected = this.createLazyEvent('mapselected');
this.chartMapUnselected = this.createLazyEvent('mapunselected');
this.chartAxisAreaSelected = this.createLazyEvent('axisareaselected');
this.chartFocusNodeAdjacency = this.createLazyEvent('focusnodeadjacency');
this.chartUnfocusNodeAdjacency = this.createLazyEvent('unfocusnodeadjacency');
this.chartBrush = this.createLazyEvent('brush');
this.chartBrushSelected = this.createLazyEvent('brushselected');
this.chartRendered = this.createLazyEvent('rendered');
this.chartFinished = this.createLazyEvent('finished');
this.currentOffsetWidth = 0;
this.currentOffsetHeight = 0;
this._resize$ = new Subject();
}
/**
* @return {?}
*/
createChart() {
this.currentWindowWidth = window.innerWidth;
this.currentOffsetWidth = this.el.nativeElement.offsetWidth;
this.currentOffsetHeight = this.el.nativeElement.offsetHeight;
/** @type {?} */
const dom = this.el.nativeElement;
if (window && window.getComputedStyle) {
/** @type {?} */
const prop = window.getComputedStyle(dom, null).getPropertyValue('height');
if ((!prop || prop === '0px') &&
(!dom.style.height || dom.style.height === '0px')) {
dom.style.height = '400px';
}
}
return this._ngZone.runOutsideAngular(() => init(dom, this.theme || undefined, this.initOpts || undefined));
}
/**
* @param {?} event
* @return {?}
*/
onWindowResize(event) {
/** @type {?} */
const target = (/** @type {?} */ (event.target));
if (this.autoResize && target.innerWidth !== this.currentWindowWidth) {
this.currentWindowWidth = target.innerWidth;
this.currentOffsetWidth = this.el.nativeElement.offsetWidth;
this.currentOffsetHeight = this.el.nativeElement.offsetHeight;
this._resize$.next();
}
}
/**
* @param {?} changes

@@ -88,3 +73,2 @@ * @return {?}

filter.has('loading').subscribe(v => this.toggleLoading(!!v));
filter.notFirst('detectEventChanges').subscribe(v => this.toggleEventDetectors(!!v));
filter.notFirst('theme').subscribe(() => this.refreshChart());

@@ -95,11 +79,18 @@ }

*/
ngOnInit() {
this.resizeSub = fromEvent(window, 'resize').pipe(debounceTime(50)).subscribe(() => {
if (this.autoResize && window.innerWidth !== this.currentWindowWidth) {
this.currentWindowWidth = window.innerWidth;
this.currentOffsetWidth = this.el.nativeElement.offsetWidth;
this.currentOffsetHeight = this.el.nativeElement.offsetHeight;
this.resize();
}
});
}
/**
* @return {?}
*/
ngOnDestroy() {
if (this._resizeSub) {
this._resizeSub.unsubscribe();
this._resizeSub = null;
}
if (this._chart) {
this._chart.dispose();
this._chart = null;
}
this.resizeSub.unsubscribe();
this.dispose();
}

@@ -111,3 +102,3 @@ /**

// No heavy work in DoCheck!
if (this._chart && this.autoResize) {
if (this.chart && this.autoResize) {
/** @type {?} */

@@ -120,3 +111,3 @@ const offsetWidth = this.el.nativeElement.offsetWidth;

this.currentOffsetHeight = offsetHeight;
this._resize$.next();
this.resize();
}

@@ -134,54 +125,33 @@ }

*/
initChart() {
this.onOptionsChange(this.options);
if (this.merge && this._chart) {
this.setOption(this.merge);
dispose() {
if (this.chart) {
this.chart.dispose();
this.chart = null;
}
}
/**
* @param {?} opt
* @return {?}
*/
onOptionsChange(opt) {
if (opt) {
if (!this._chart) {
this._chart = this.createChart();
// subscribe to _resize$ and debounced
this._resizeSub = this._resize$.pipe(debounceTime(50)).subscribe(() => {
if (this._chart) {
this._chart.resize();
}
});
// output echart instance:
this.chartInit.emit(this._chart);
// register events:
if (this.detectEventChanges) {
this.registerEvents();
}
}
this._chart.setOption(this.options, true);
resize() {
if (this.chart) {
this.chart.resize();
}
}
/**
* @param {?} loading
* @return {?}
*/
registerEvents() {
if (this._chart) {
/** @type {?} */
const events = EChartEvents.All;
for (let i = 0, len = events.length; i < len; i++) {
this._chart.on(events[i], this.eventHandler, this);
}
toggleLoading(loading) {
if (this.chart) {
loading ? this.chart.showLoading(this.loadingType, this.loadingOpts) : this.chart.hideLoading();
}
}
/**
* @param {?} option
* @param {?=} opts
* @return {?}
*/
unregisterEvents() {
if (this._chart) {
/** @type {?} */
const events = EChartEvents.All;
for (let i = 0, len = events.length; i < len; i++) {
this._chart.off(events[i], this.eventHandler);
}
setOption(option, opts) {
if (this.chart) {
this.chart.setOption(option, opts);
}

@@ -192,86 +162,60 @@ }

*/
clear() {
if (this._chart) {
this._chart.clear();
}
refreshChart() {
this.dispose();
this.initChart();
}
/**
* @param {?} loading
* @return {?}
*/
toggleLoading(loading) {
if (this._chart) {
loading ? this._chart.showLoading(this.loadingType, this.loadingOpts) : this._chart.hideLoading();
createChart() {
this.currentWindowWidth = window.innerWidth;
this.currentOffsetWidth = this.el.nativeElement.offsetWidth;
this.currentOffsetHeight = this.el.nativeElement.offsetHeight;
/** @type {?} */
const dom = this.el.nativeElement;
if (window && window.getComputedStyle) {
/** @type {?} */
const prop = window.getComputedStyle(dom, null).getPropertyValue('height');
if ((!prop || prop === '0px') &&
(!dom.style.height || dom.style.height === '0px')) {
dom.style.height = '400px';
}
}
return this.ngZone.runOutsideAngular(() => init(dom, this.theme, this.initOpts));
}
/**
* @param {?} option
* @param {?=} opts
* @return {?}
*/
setOption(option, opts) {
if (this._chart) {
this._chart.setOption(option, opts);
initChart() {
this.onOptionsChange(this.options);
if (this.merge && this.chart) {
this.setOption(this.merge);
}
}
/**
* @param {?} event
* @param {?} opt
* @return {?}
*/
eventHandler(event) {
switch (event.type) {
case EChartEvents.Click:
this._ngZone.run(() => this.chartClick.emit(event));
break;
case EChartEvents.DblClick:
this._ngZone.run(() => this.chartDblClick.emit(event));
break;
case EChartEvents.MouseDown:
this._ngZone.run(() => this.chartMouseDown.emit(event));
break;
case EChartEvents.MouseUp:
this._ngZone.run(() => this.chartMouseUp.emit(event));
break;
case EChartEvents.MouseOver:
this._ngZone.run(() => this.chartMouseOver.emit(event));
break;
case EChartEvents.MouseOut:
this._ngZone.run(() => this.chartMouseOut.emit(event));
break;
case EChartEvents.GlobalOut:
this._ngZone.run(() => this.chartGlobalOut.emit(event));
break;
case EChartEvents.ContextMenu:
this._ngZone.run(() => this.chartContextMenu.emit(event));
break;
case EChartEvents.DataZoom:
this._ngZone.run(() => this.chartDataZoom.emit(event));
break;
case EChartEvents.MapSelectChanged:
this._ngZone.run(() => this.chartMapSelectChanged.emit(event));
break;
case EChartEvents.MapSelected:
this._ngZone.run(() => this.chartMapSelected.emit(event));
break;
case EChartEvents.MapUnselected:
this._ngZone.run(() => this.chartMapUnselected.emit(event));
break;
onOptionsChange(opt) {
if (opt) {
if (!this.chart) {
this.chart = this.createChart();
this.chartInit.emit(this.chart);
}
this.chart.setOption(this.options, true);
}
}
// allows to lazily bind to only those events that are requested through the `@Output` by parent components
// see https://stackoverflow.com/questions/51787972/optimal-reentering-the-ngzone-from-eventemitter-event for more info
/**
* @param {?} detect
* @template T
* @param {?} eventName
* @return {?}
*/
toggleEventDetectors(detect) {
if (this._chart) {
detect ? this.registerEvents() : this.unregisterEvents();
}
createLazyEvent(eventName) {
return (/** @type {?} */ (this.chartInit.pipe(switchMap((chart) => new Observable(observer => {
chart.on(eventName, (data) => this.ngZone.run(() => observer.next(data)));
return null; // no need to react on unsubscribe as long as the `dispose()` is called in ngOnDestroy
})))));
}
/**
* @return {?}
*/
refreshChart() {
this.ngOnDestroy();
this.initChart();
}
}

@@ -302,2 +246,3 @@ NgxEchartsDirective.decorators = [

chartMouseDown: [{ type: Output }],
chartMouseMove: [{ type: Output }],
chartMouseUp: [{ type: Output }],

@@ -308,7 +253,26 @@ chartMouseOver: [{ type: Output }],

chartContextMenu: [{ type: Output }],
chartLegendSelectChanged: [{ type: Output }],
chartLegendSelected: [{ type: Output }],
chartLegendUnselected: [{ type: Output }],
chartLegendScroll: [{ type: Output }],
chartDataZoom: [{ type: Output }],
chartDataRangeSelected: [{ type: Output }],
chartTimelineChanged: [{ type: Output }],
chartTimelinePlayChanged: [{ type: Output }],
chartRestore: [{ type: Output }],
chartDataViewChanged: [{ type: Output }],
chartMagicTypeChanged: [{ type: Output }],
chartPieSelectChanged: [{ type: Output }],
chartPieSelected: [{ type: Output }],
chartPieUnselected: [{ type: Output }],
chartMapSelectChanged: [{ type: Output }],
chartMapSelected: [{ type: Output }],
chartMapUnselected: [{ type: Output }],
onWindowResize: [{ type: HostListener, args: ['window:resize', ['$event'],] }]
chartAxisAreaSelected: [{ type: Output }],
chartFocusNodeAdjacency: [{ type: Output }],
chartUnfocusNodeAdjacency: [{ type: Output }],
chartBrush: [{ type: Output }],
chartBrushSelected: [{ type: Output }],
chartRendered: [{ type: Output }],
chartFinished: [{ type: Output }]
};

@@ -332,7 +296,3 @@ if (false) {

NgxEchartsDirective.prototype.loadingOpts;
/**
* Whether to register event handlers on echartInstance. Default is true.
* Use it to avoid unwanted change detection, if you want to optimize the performance.
* @type {?}
*/
/** @type {?} */
NgxEchartsDirective.prototype.detectEventChanges;

@@ -348,2 +308,4 @@ /** @type {?} */

/** @type {?} */
NgxEchartsDirective.prototype.chartMouseMove;
/** @type {?} */
NgxEchartsDirective.prototype.chartMouseUp;

@@ -359,4 +321,30 @@ /** @type {?} */

/** @type {?} */
NgxEchartsDirective.prototype.chartLegendSelectChanged;
/** @type {?} */
NgxEchartsDirective.prototype.chartLegendSelected;
/** @type {?} */
NgxEchartsDirective.prototype.chartLegendUnselected;
/** @type {?} */
NgxEchartsDirective.prototype.chartLegendScroll;
/** @type {?} */
NgxEchartsDirective.prototype.chartDataZoom;
/** @type {?} */
NgxEchartsDirective.prototype.chartDataRangeSelected;
/** @type {?} */
NgxEchartsDirective.prototype.chartTimelineChanged;
/** @type {?} */
NgxEchartsDirective.prototype.chartTimelinePlayChanged;
/** @type {?} */
NgxEchartsDirective.prototype.chartRestore;
/** @type {?} */
NgxEchartsDirective.prototype.chartDataViewChanged;
/** @type {?} */
NgxEchartsDirective.prototype.chartMagicTypeChanged;
/** @type {?} */
NgxEchartsDirective.prototype.chartPieSelectChanged;
/** @type {?} */
NgxEchartsDirective.prototype.chartPieSelected;
/** @type {?} */
NgxEchartsDirective.prototype.chartPieUnselected;
/** @type {?} */
NgxEchartsDirective.prototype.chartMapSelectChanged;

@@ -368,4 +356,18 @@ /** @type {?} */

/** @type {?} */
NgxEchartsDirective.prototype._chart;
NgxEchartsDirective.prototype.chartAxisAreaSelected;
/** @type {?} */
NgxEchartsDirective.prototype.chartFocusNodeAdjacency;
/** @type {?} */
NgxEchartsDirective.prototype.chartUnfocusNodeAdjacency;
/** @type {?} */
NgxEchartsDirective.prototype.chartBrush;
/** @type {?} */
NgxEchartsDirective.prototype.chartBrushSelected;
/** @type {?} */
NgxEchartsDirective.prototype.chartRendered;
/** @type {?} */
NgxEchartsDirective.prototype.chartFinished;
/** @type {?} */
NgxEchartsDirective.prototype.chart;
/** @type {?} */
NgxEchartsDirective.prototype.currentOffsetWidth;

@@ -377,10 +379,8 @@ /** @type {?} */

/** @type {?} */
NgxEchartsDirective.prototype._resize$;
NgxEchartsDirective.prototype.resizeSub;
/** @type {?} */
NgxEchartsDirective.prototype._resizeSub;
/** @type {?} */
NgxEchartsDirective.prototype.el;
/** @type {?} */
NgxEchartsDirective.prototype._ngZone;
NgxEchartsDirective.prototype.ngZone;
}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LWVjaGFydHMuZGlyZWN0aXZlLmpzIiwic291cmNlUm9vdCI6Im5nOi8vbmd4LWVjaGFydHMvIiwic291cmNlcyI6WyJsaWIvbmd4LWVjaGFydHMuZGlyZWN0aXZlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiO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lcjxUPiB7XHJcbiAgICByZXR1cm4gdGhpcy5jaGFydEluaXQucGlwZShcclxuICAgICAgc3dpdGNoTWFwKChjaGFydDogRUNoYXJ0cykgPT4gbmV3IE9ic2VydmFibGUob2JzZXJ2ZXIgPT4ge1xyXG4gICAgICAgIGNoYXJ0Lm9uKGV2ZW50TmFtZSwgKGRhdGE6IFQpID0+IHRoaXMubmdab25lLnJ1bigoKSA9PiBvYnNlcnZlci5uZXh0KGRhdGEpKSk7XHJcbiAgICAgICAgcmV0dXJuIG51bGw7IC8vIG5vIG5lZWQgdG8gcmVhY3Qgb24gdW5zdWJzY3JpYmUgYXMgbG9uZyBhcyB0aGUgYGRpc3Bvc2UoKWAgaXMgY2FsbGVkIGluIG5nT25EZXN0cm95XHJcbiAgICAgIH0pKVxyXG4gICAgKSBhcyBFdmVudEVtaXR0ZXI8VD47XHJcbiAgfVxyXG5cclxufVxyXG4iXX0=

@@ -5,79 +5,56 @@ /**

*/
import { Directive, ElementRef, Input, Output, HostListener, EventEmitter, NgZone } from '@angular/core';
import { Directive, ElementRef, EventEmitter, Input, NgZone, Output } from '@angular/core';
import { EChartOption, init } from 'echarts';
import { fromEvent, Observable } from 'rxjs';
import { debounceTime, switchMap } from 'rxjs/operators';
import { ChangeFilter } from './change-filter';
import { Subject } from 'rxjs';
import { debounceTime } from 'rxjs/operators';
import { init, EChartOption } from 'echarts';
import { EChartEvents } from './echart-events';
var NgxEchartsDirective = /** @class */ (function () {
function NgxEchartsDirective(el, _ngZone) {
function NgxEchartsDirective(el, ngZone) {
this.el = el;
this._ngZone = _ngZone;
this.ngZone = ngZone;
this.autoResize = true;
this.loadingType = 'default';
/**
* Whether to register event handlers on echartInstance. Default is true.
* Use it to avoid unwanted change detection, if you want to optimize the performance.
*/
this.detectEventChanges = true;
// chart events:
this.detectEventChanges = true; // deprecated, left for compatibility reasons to avoid triggering major version
// deprecated, left for compatibility reasons to avoid triggering major version
// ngx-echarts events
this.chartInit = new EventEmitter();
this.chartClick = new EventEmitter();
this.chartDblClick = new EventEmitter();
this.chartMouseDown = new EventEmitter();
this.chartMouseUp = new EventEmitter();
this.chartMouseOver = new EventEmitter();
this.chartMouseOut = new EventEmitter();
this.chartGlobalOut = new EventEmitter();
this.chartContextMenu = new EventEmitter();
this.chartDataZoom = new EventEmitter();
this.chartMapSelectChanged = new EventEmitter();
this.chartMapSelected = new EventEmitter();
this.chartMapUnselected = new EventEmitter();
// echarts mouse events
this.chartClick = this.createLazyEvent('click');
this.chartDblClick = this.createLazyEvent('dblclick');
this.chartMouseDown = this.createLazyEvent('mousedown');
this.chartMouseMove = this.createLazyEvent('mousemove');
this.chartMouseUp = this.createLazyEvent('mouseup');
this.chartMouseOver = this.createLazyEvent('mouseover');
this.chartMouseOut = this.createLazyEvent('mouseout');
this.chartGlobalOut = this.createLazyEvent('globalout');
this.chartContextMenu = this.createLazyEvent('contextmenu');
// echarts mouse events
this.chartLegendSelectChanged = this.createLazyEvent('legendselectchanged');
this.chartLegendSelected = this.createLazyEvent('legendselected');
this.chartLegendUnselected = this.createLazyEvent('legendunselected');
this.chartLegendScroll = this.createLazyEvent('legendscroll');
this.chartDataZoom = this.createLazyEvent('datazoom');
this.chartDataRangeSelected = this.createLazyEvent('datarangeselected');
this.chartTimelineChanged = this.createLazyEvent('timelinechanged');
this.chartTimelinePlayChanged = this.createLazyEvent('timelineplaychanged');
this.chartRestore = this.createLazyEvent('restore');
this.chartDataViewChanged = this.createLazyEvent('dataviewchanged');
this.chartMagicTypeChanged = this.createLazyEvent('magictypechanged');
this.chartPieSelectChanged = this.createLazyEvent('pieselectchanged');
this.chartPieSelected = this.createLazyEvent('pieselected');
this.chartPieUnselected = this.createLazyEvent('pieunselected');
this.chartMapSelectChanged = this.createLazyEvent('mapselectchanged');
this.chartMapSelected = this.createLazyEvent('mapselected');
this.chartMapUnselected = this.createLazyEvent('mapunselected');
this.chartAxisAreaSelected = this.createLazyEvent('axisareaselected');
this.chartFocusNodeAdjacency = this.createLazyEvent('focusnodeadjacency');
this.chartUnfocusNodeAdjacency = this.createLazyEvent('unfocusnodeadjacency');
this.chartBrush = this.createLazyEvent('brush');
this.chartBrushSelected = this.createLazyEvent('brushselected');
this.chartRendered = this.createLazyEvent('rendered');
this.chartFinished = this.createLazyEvent('finished');
this.currentOffsetWidth = 0;
this.currentOffsetHeight = 0;
this._resize$ = new Subject();
}
/**
* @return {?}
*/
NgxEchartsDirective.prototype.createChart = /**
* @return {?}
*/
function () {
var _this = this;
this.currentWindowWidth = window.innerWidth;
this.currentOffsetWidth = this.el.nativeElement.offsetWidth;
this.currentOffsetHeight = this.el.nativeElement.offsetHeight;
/** @type {?} */
var dom = this.el.nativeElement;
if (window && window.getComputedStyle) {
/** @type {?} */
var prop = window.getComputedStyle(dom, null).getPropertyValue('height');
if ((!prop || prop === '0px') &&
(!dom.style.height || dom.style.height === '0px')) {
dom.style.height = '400px';
}
}
return this._ngZone.runOutsideAngular(function () { return init(dom, _this.theme || undefined, _this.initOpts || undefined); });
};
/**
* @param {?} event
* @return {?}
*/
NgxEchartsDirective.prototype.onWindowResize = /**
* @param {?} event
* @return {?}
*/
function (event) {
/** @type {?} */
var target = (/** @type {?} */ (event.target));
if (this.autoResize && target.innerWidth !== this.currentWindowWidth) {
this.currentWindowWidth = target.innerWidth;
this.currentOffsetWidth = this.el.nativeElement.offsetWidth;
this.currentOffsetHeight = this.el.nativeElement.offsetHeight;
this._resize$.next();
}
};
/**
* @param {?} changes

@@ -97,3 +74,2 @@ * @return {?}

filter.has('loading').subscribe(function (v) { return _this.toggleLoading(!!v); });
filter.notFirst('detectEventChanges').subscribe(function (v) { return _this.toggleEventDetectors(!!v); });
filter.notFirst('theme').subscribe(function () { return _this.refreshChart(); });

@@ -104,2 +80,19 @@ };

*/
NgxEchartsDirective.prototype.ngOnInit = /**
* @return {?}
*/
function () {
var _this = this;
this.resizeSub = fromEvent(window, 'resize').pipe(debounceTime(50)).subscribe(function () {
if (_this.autoResize && window.innerWidth !== _this.currentWindowWidth) {
_this.currentWindowWidth = window.innerWidth;
_this.currentOffsetWidth = _this.el.nativeElement.offsetWidth;
_this.currentOffsetHeight = _this.el.nativeElement.offsetHeight;
_this.resize();
}
});
};
/**
* @return {?}
*/
NgxEchartsDirective.prototype.ngOnDestroy = /**

@@ -109,10 +102,4 @@ * @return {?}

function () {
if (this._resizeSub) {
this._resizeSub.unsubscribe();
this._resizeSub = null;
}
if (this._chart) {
this._chart.dispose();
this._chart = null;
}
this.resizeSub.unsubscribe();
this.dispose();
};

@@ -127,3 +114,3 @@ /**

// No heavy work in DoCheck!
if (this._chart && this.autoResize) {
if (this.chart && this.autoResize) {
/** @type {?} */

@@ -136,3 +123,3 @@ var offsetWidth = this.el.nativeElement.offsetWidth;

this.currentOffsetHeight = offsetHeight;
this._resize$.next();
this.resize();
}

@@ -154,68 +141,48 @@ }

*/
NgxEchartsDirective.prototype.initChart = /**
NgxEchartsDirective.prototype.dispose = /**
* @return {?}
*/
function () {
this.onOptionsChange(this.options);
if (this.merge && this._chart) {
this.setOption(this.merge);
if (this.chart) {
this.chart.dispose();
this.chart = null;
}
};
/**
* @param {?} opt
* @return {?}
*/
NgxEchartsDirective.prototype.onOptionsChange = /**
* @param {?} opt
NgxEchartsDirective.prototype.resize = /**
* @return {?}
*/
function (opt) {
var _this = this;
if (opt) {
if (!this._chart) {
this._chart = this.createChart();
// subscribe to _resize$ and debounced
this._resizeSub = this._resize$.pipe(debounceTime(50)).subscribe(function () {
if (_this._chart) {
_this._chart.resize();
}
});
// output echart instance:
this.chartInit.emit(this._chart);
// register events:
if (this.detectEventChanges) {
this.registerEvents();
}
}
this._chart.setOption(this.options, true);
function () {
if (this.chart) {
this.chart.resize();
}
};
/**
* @param {?} loading
* @return {?}
*/
NgxEchartsDirective.prototype.registerEvents = /**
NgxEchartsDirective.prototype.toggleLoading = /**
* @param {?} loading
* @return {?}
*/
function () {
if (this._chart) {
/** @type {?} */
var events = EChartEvents.All;
for (var i = 0, len = events.length; i < len; i++) {
this._chart.on(events[i], this.eventHandler, this);
}
function (loading) {
if (this.chart) {
loading ? this.chart.showLoading(this.loadingType, this.loadingOpts) : this.chart.hideLoading();
}
};
/**
* @param {?} option
* @param {?=} opts
* @return {?}
*/
NgxEchartsDirective.prototype.unregisterEvents = /**
NgxEchartsDirective.prototype.setOption = /**
* @param {?} option
* @param {?=} opts
* @return {?}
*/
function () {
if (this._chart) {
/** @type {?} */
var events = EChartEvents.All;
for (var i = 0, len = events.length; i < len; i++) {
this._chart.off(events[i], this.eventHandler);
}
function (option, opts) {
if (this.chart) {
this.chart.setOption(option, opts);
}

@@ -226,109 +193,84 @@ };

*/
NgxEchartsDirective.prototype.clear = /**
NgxEchartsDirective.prototype.refreshChart = /**
* @return {?}
*/
function () {
if (this._chart) {
this._chart.clear();
}
this.dispose();
this.initChart();
};
/**
* @param {?} loading
* @return {?}
*/
NgxEchartsDirective.prototype.toggleLoading = /**
* @param {?} loading
NgxEchartsDirective.prototype.createChart = /**
* @return {?}
*/
function (loading) {
if (this._chart) {
loading ? this._chart.showLoading(this.loadingType, this.loadingOpts) : this._chart.hideLoading();
function () {
var _this = this;
this.currentWindowWidth = window.innerWidth;
this.currentOffsetWidth = this.el.nativeElement.offsetWidth;
this.currentOffsetHeight = this.el.nativeElement.offsetHeight;
/** @type {?} */
var dom = this.el.nativeElement;
if (window && window.getComputedStyle) {
/** @type {?} */
var prop = window.getComputedStyle(dom, null).getPropertyValue('height');
if ((!prop || prop === '0px') &&
(!dom.style.height || dom.style.height === '0px')) {
dom.style.height = '400px';
}
}
return this.ngZone.runOutsideAngular(function () { return init(dom, _this.theme, _this.initOpts); });
};
/**
* @param {?} option
* @param {?=} opts
* @return {?}
*/
NgxEchartsDirective.prototype.setOption = /**
* @param {?} option
* @param {?=} opts
NgxEchartsDirective.prototype.initChart = /**
* @return {?}
*/
function (option, opts) {
if (this._chart) {
this._chart.setOption(option, opts);
function () {
this.onOptionsChange(this.options);
if (this.merge && this.chart) {
this.setOption(this.merge);
}
};
/**
* @param {?} event
* @param {?} opt
* @return {?}
*/
NgxEchartsDirective.prototype.eventHandler = /**
* @param {?} event
NgxEchartsDirective.prototype.onOptionsChange = /**
* @param {?} opt
* @return {?}
*/
function (event) {
var _this = this;
switch (event.type) {
case EChartEvents.Click:
this._ngZone.run(function () { return _this.chartClick.emit(event); });
break;
case EChartEvents.DblClick:
this._ngZone.run(function () { return _this.chartDblClick.emit(event); });
break;
case EChartEvents.MouseDown:
this._ngZone.run(function () { return _this.chartMouseDown.emit(event); });
break;
case EChartEvents.MouseUp:
this._ngZone.run(function () { return _this.chartMouseUp.emit(event); });
break;
case EChartEvents.MouseOver:
this._ngZone.run(function () { return _this.chartMouseOver.emit(event); });
break;
case EChartEvents.MouseOut:
this._ngZone.run(function () { return _this.chartMouseOut.emit(event); });
break;
case EChartEvents.GlobalOut:
this._ngZone.run(function () { return _this.chartGlobalOut.emit(event); });
break;
case EChartEvents.ContextMenu:
this._ngZone.run(function () { return _this.chartContextMenu.emit(event); });
break;
case EChartEvents.DataZoom:
this._ngZone.run(function () { return _this.chartDataZoom.emit(event); });
break;
case EChartEvents.MapSelectChanged:
this._ngZone.run(function () { return _this.chartMapSelectChanged.emit(event); });
break;
case EChartEvents.MapSelected:
this._ngZone.run(function () { return _this.chartMapSelected.emit(event); });
break;
case EChartEvents.MapUnselected:
this._ngZone.run(function () { return _this.chartMapUnselected.emit(event); });
break;
function (opt) {
if (opt) {
if (!this.chart) {
this.chart = this.createChart();
this.chartInit.emit(this.chart);
}
this.chart.setOption(this.options, true);
}
};
// allows to lazily bind to only those events that are requested through the `@Output` by parent components
// see https://stackoverflow.com/questions/51787972/optimal-reentering-the-ngzone-from-eventemitter-event for more info
// allows to lazily bind to only those events that are requested through the `@Output` by parent components
// see https://stackoverflow.com/questions/51787972/optimal-reentering-the-ngzone-from-eventemitter-event for more info
/**
* @param {?} detect
* @template T
* @param {?} eventName
* @return {?}
*/
NgxEchartsDirective.prototype.toggleEventDetectors = /**
* @param {?} detect
* @return {?}
*/
function (detect) {
if (this._chart) {
detect ? this.registerEvents() : this.unregisterEvents();
}
};
NgxEchartsDirective.prototype.createLazyEvent =
// allows to lazily bind to only those events that are requested through the `@Output` by parent components
// see https://stackoverflow.com/questions/51787972/optimal-reentering-the-ngzone-from-eventemitter-event for more info
/**
* @template T
* @param {?} eventName
* @return {?}
*/
NgxEchartsDirective.prototype.refreshChart = /**
* @return {?}
*/
function () {
this.ngOnDestroy();
this.initChart();
function (eventName) {
var _this = this;
return (/** @type {?} */ (this.chartInit.pipe(switchMap(function (chart) { return new Observable(function (observer) {
chart.on(eventName, function (data) { return _this.ngZone.run(function () { return observer.next(data); }); });
return null; // no need to react on unsubscribe as long as the `dispose()` is called in ngOnDestroy
}); }))));
};

@@ -359,2 +301,3 @@ NgxEchartsDirective.decorators = [

chartMouseDown: [{ type: Output }],
chartMouseMove: [{ type: Output }],
chartMouseUp: [{ type: Output }],

@@ -365,7 +308,26 @@ chartMouseOver: [{ type: Output }],

chartContextMenu: [{ type: Output }],
chartLegendSelectChanged: [{ type: Output }],
chartLegendSelected: [{ type: Output }],
chartLegendUnselected: [{ type: Output }],
chartLegendScroll: [{ type: Output }],
chartDataZoom: [{ type: Output }],
chartDataRangeSelected: [{ type: Output }],
chartTimelineChanged: [{ type: Output }],
chartTimelinePlayChanged: [{ type: Output }],
chartRestore: [{ type: Output }],
chartDataViewChanged: [{ type: Output }],
chartMagicTypeChanged: [{ type: Output }],
chartPieSelectChanged: [{ type: Output }],
chartPieSelected: [{ type: Output }],
chartPieUnselected: [{ type: Output }],
chartMapSelectChanged: [{ type: Output }],
chartMapSelected: [{ type: Output }],
chartMapUnselected: [{ type: Output }],
onWindowResize: [{ type: HostListener, args: ['window:resize', ['$event'],] }]
chartAxisAreaSelected: [{ type: Output }],
chartFocusNodeAdjacency: [{ type: Output }],
chartUnfocusNodeAdjacency: [{ type: Output }],
chartBrush: [{ type: Output }],
chartBrushSelected: [{ type: Output }],
chartRendered: [{ type: Output }],
chartFinished: [{ type: Output }]
};

@@ -392,7 +354,3 @@ return NgxEchartsDirective;

NgxEchartsDirective.prototype.loadingOpts;
/**
* Whether to register event handlers on echartInstance. Default is true.
* Use it to avoid unwanted change detection, if you want to optimize the performance.
* @type {?}
*/
/** @type {?} */
NgxEchartsDirective.prototype.detectEventChanges;

@@ -408,2 +366,4 @@ /** @type {?} */

/** @type {?} */
NgxEchartsDirective.prototype.chartMouseMove;
/** @type {?} */
NgxEchartsDirective.prototype.chartMouseUp;

@@ -419,4 +379,30 @@ /** @type {?} */

/** @type {?} */
NgxEchartsDirective.prototype.chartLegendSelectChanged;
/** @type {?} */
NgxEchartsDirective.prototype.chartLegendSelected;
/** @type {?} */
NgxEchartsDirective.prototype.chartLegendUnselected;
/** @type {?} */
NgxEchartsDirective.prototype.chartLegendScroll;
/** @type {?} */
NgxEchartsDirective.prototype.chartDataZoom;
/** @type {?} */
NgxEchartsDirective.prototype.chartDataRangeSelected;
/** @type {?} */
NgxEchartsDirective.prototype.chartTimelineChanged;
/** @type {?} */
NgxEchartsDirective.prototype.chartTimelinePlayChanged;
/** @type {?} */
NgxEchartsDirective.prototype.chartRestore;
/** @type {?} */
NgxEchartsDirective.prototype.chartDataViewChanged;
/** @type {?} */
NgxEchartsDirective.prototype.chartMagicTypeChanged;
/** @type {?} */
NgxEchartsDirective.prototype.chartPieSelectChanged;
/** @type {?} */
NgxEchartsDirective.prototype.chartPieSelected;
/** @type {?} */
NgxEchartsDirective.prototype.chartPieUnselected;
/** @type {?} */
NgxEchartsDirective.prototype.chartMapSelectChanged;

@@ -428,4 +414,18 @@ /** @type {?} */

/** @type {?} */
NgxEchartsDirective.prototype._chart;
NgxEchartsDirective.prototype.chartAxisAreaSelected;
/** @type {?} */
NgxEchartsDirective.prototype.chartFocusNodeAdjacency;
/** @type {?} */
NgxEchartsDirective.prototype.chartUnfocusNodeAdjacency;
/** @type {?} */
NgxEchartsDirective.prototype.chartBrush;
/** @type {?} */
NgxEchartsDirective.prototype.chartBrushSelected;
/** @type {?} */
NgxEchartsDirective.prototype.chartRendered;
/** @type {?} */
NgxEchartsDirective.prototype.chartFinished;
/** @type {?} */
NgxEchartsDirective.prototype.chart;
/** @type {?} */
NgxEchartsDirective.prototype.currentOffsetWidth;

@@ -437,10 +437,8 @@ /** @type {?} */

/** @type {?} */
NgxEchartsDirective.prototype._resize$;
NgxEchartsDirective.prototype.resizeSub;
/** @type {?} */
NgxEchartsDirective.prototype._resizeSub;
/** @type {?} */
NgxEchartsDirective.prototype.el;
/** @type {?} */
NgxEchartsDirective.prototype._ngZone;
NgxEchartsDirective.prototype.ngZone;
}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LWVjaGFydHMuZGlyZWN0aXZlLmpzIiwic291cmNlUm9vdCI6Im5nOi8vbmd4LWVjaGFydHMvIiwic291cmNlcyI6WyJsaWIvbmd4LWVjaGFydHMuZGlyZWN0aXZlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQ0wsU0FBUyxFQUFFLFVBQVUsRUFBWSxLQUFLLEVBQUUsTUFBTSxFQUFFLFlBQVksRUFBRSxZQUFZLEVBQ3JDLE1BQU0sRUFDNUMsTUFBTSxlQUFlLENBQUM7QUFDdkIsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBQy9DLE9BQU8sRUFBRSxPQUFPLEVBQWdCLE1BQU0sTUFBTSxDQUFDO0FBQzdDLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQztBQUM5QyxPQUFPLEVBQUUsSUFBSSxFQUFXLFlBQVksRUFBRSxNQUFNLFNBQVMsQ0FBQztBQUN0RCxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFFL0M7SUE4Q0UsNkJBQW9CLEVBQWMsRUFBVSxPQUFlO1FBQXZDLE9BQUUsR0FBRixFQU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WdoIHRoZSBgQE91dHB1dGAgYnkgcGFyZW50IGNvbXBvbmVudHNcclxuICAvLyBzZWUgaHR0cHM6Ly9zdGFja292ZXJmbG93LmNvbS9xdWVzdGlvbnMvNTE3ODc5NzIvb3B0aW1hbC1yZWVudGVyaW5nLXRoZS1uZ3pvbmUtZnJvbS1ldmVudGVtaXR0ZXItZXZlbnQgZm9yIG1vcmUgaW5mb1xyXG4gIHByaXZhdGUgY3JlYXRlTGF6eUV2ZW50PFQ+KGV2ZW50TmFtZTogc3RyaW5nKTogRXZlbnRFbWl0dGVyPFQ+IHtcclxuICAgIHJldHVybiB0aGlzLmNoYXJ0SW5pdC5waXBlKFxyXG4gICAgICBzd2l0Y2hNYXAoKGNoYXJ0OiBFQ2hhcnRzKSA9PiBuZXcgT2JzZXJ2YWJsZShvYnNlcnZlciA9PiB7XHJcbiAgICAgICAgY2hhcnQub24oZXZlbnROYW1lLCAoZGF0YTogVCkgPT4gdGhpcy5uZ1pvbmUucnVuKCgpID0+IG9ic2VydmVyLm5leHQoZGF0YSkpKTtcclxuICAgICAgICByZXR1cm4gbnVsbDsgLy8gbm8gbmVlZCB0byByZWFjdCBvbiB1bnN1YnNjcmliZSBhcyBsb25nIGFzIHRoZSBgZGlzcG9zZSgpYCBpcyBjYWxsZWQgaW4gbmdPbkRlc3Ryb3lcclxuICAgICAgfSkpXHJcbiAgICApIGFzIEV2ZW50RW1pdHRlcjxUPjtcclxuICB9XHJcblxyXG59XHJcbiJdfQ==

@@ -1,5 +0,5 @@

import { of, empty, Subject } from 'rxjs';
import { Directive, ElementRef, Input, Output, HostListener, EventEmitter, NgZone, NgModule } from '@angular/core';
import { debounceTime } from 'rxjs/operators';
import { of, empty, fromEvent, Observable } from 'rxjs';
import { Directive, ElementRef, EventEmitter, Input, NgZone, Output, NgModule } from '@angular/core';
import { init } from 'echarts';
import { debounceTime, switchMap } from 'rxjs/operators';

@@ -86,102 +86,55 @@ /**

*/
class EChartEvents {
}
EChartEvents.Click = 'click';
EChartEvents.DblClick = 'dblclick';
EChartEvents.MouseDown = 'mousedown';
EChartEvents.MouseUp = 'mouseup';
EChartEvents.MouseOver = 'mouseover';
EChartEvents.MouseOut = 'mouseout';
EChartEvents.GlobalOut = 'globalout';
EChartEvents.ContextMenu = 'contextmenu';
EChartEvents.DataZoom = 'datazoom';
EChartEvents.MapSelectChanged = 'mapselectchanged';
EChartEvents.MapSelected = 'mapselected';
EChartEvents.MapUnselected = 'mapunselected';
EChartEvents.All = [
EChartEvents.Click,
EChartEvents.DblClick,
EChartEvents.MouseDown,
EChartEvents.MouseUp,
EChartEvents.MouseOver,
EChartEvents.MouseOut,
EChartEvents.GlobalOut,
EChartEvents.ContextMenu,
EChartEvents.DataZoom,
EChartEvents.MapSelectChanged,
EChartEvents.MapSelected,
EChartEvents.MapUnselected,
];
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
*/
class NgxEchartsDirective {
/**
* @param {?} el
* @param {?} _ngZone
* @param {?} ngZone
*/
constructor(el, _ngZone) {
constructor(el, ngZone) {
this.el = el;
this._ngZone = _ngZone;
this.ngZone = ngZone;
this.autoResize = true;
this.loadingType = 'default';
/**
* Whether to register event handlers on echartInstance. Default is true.
* Use it to avoid unwanted change detection, if you want to optimize the performance.
*/
this.detectEventChanges = true;
// chart events:
this.detectEventChanges = true; // deprecated, left for compatibility reasons to avoid triggering major version
// deprecated, left for compatibility reasons to avoid triggering major version
// ngx-echarts events
this.chartInit = new EventEmitter();
this.chartClick = new EventEmitter();
this.chartDblClick = new EventEmitter();
this.chartMouseDown = new EventEmitter();
this.chartMouseUp = new EventEmitter();
this.chartMouseOver = new EventEmitter();
this.chartMouseOut = new EventEmitter();
this.chartGlobalOut = new EventEmitter();
this.chartContextMenu = new EventEmitter();
this.chartDataZoom = new EventEmitter();
this.chartMapSelectChanged = new EventEmitter();
this.chartMapSelected = new EventEmitter();
this.chartMapUnselected = new EventEmitter();
// echarts mouse events
this.chartClick = this.createLazyEvent('click');
this.chartDblClick = this.createLazyEvent('dblclick');
this.chartMouseDown = this.createLazyEvent('mousedown');
this.chartMouseMove = this.createLazyEvent('mousemove');
this.chartMouseUp = this.createLazyEvent('mouseup');
this.chartMouseOver = this.createLazyEvent('mouseover');
this.chartMouseOut = this.createLazyEvent('mouseout');
this.chartGlobalOut = this.createLazyEvent('globalout');
this.chartContextMenu = this.createLazyEvent('contextmenu');
// echarts mouse events
this.chartLegendSelectChanged = this.createLazyEvent('legendselectchanged');
this.chartLegendSelected = this.createLazyEvent('legendselected');
this.chartLegendUnselected = this.createLazyEvent('legendunselected');
this.chartLegendScroll = this.createLazyEvent('legendscroll');
this.chartDataZoom = this.createLazyEvent('datazoom');
this.chartDataRangeSelected = this.createLazyEvent('datarangeselected');
this.chartTimelineChanged = this.createLazyEvent('timelinechanged');
this.chartTimelinePlayChanged = this.createLazyEvent('timelineplaychanged');
this.chartRestore = this.createLazyEvent('restore');
this.chartDataViewChanged = this.createLazyEvent('dataviewchanged');
this.chartMagicTypeChanged = this.createLazyEvent('magictypechanged');
this.chartPieSelectChanged = this.createLazyEvent('pieselectchanged');
this.chartPieSelected = this.createLazyEvent('pieselected');
this.chartPieUnselected = this.createLazyEvent('pieunselected');
this.chartMapSelectChanged = this.createLazyEvent('mapselectchanged');
this.chartMapSelected = this.createLazyEvent('mapselected');
this.chartMapUnselected = this.createLazyEvent('mapunselected');
this.chartAxisAreaSelected = this.createLazyEvent('axisareaselected');
this.chartFocusNodeAdjacency = this.createLazyEvent('focusnodeadjacency');
this.chartUnfocusNodeAdjacency = this.createLazyEvent('unfocusnodeadjacency');
this.chartBrush = this.createLazyEvent('brush');
this.chartBrushSelected = this.createLazyEvent('brushselected');
this.chartRendered = this.createLazyEvent('rendered');
this.chartFinished = this.createLazyEvent('finished');
this.currentOffsetWidth = 0;
this.currentOffsetHeight = 0;
this._resize$ = new Subject();
}
/**
* @return {?}
*/
createChart() {
this.currentWindowWidth = window.innerWidth;
this.currentOffsetWidth = this.el.nativeElement.offsetWidth;
this.currentOffsetHeight = this.el.nativeElement.offsetHeight;
/** @type {?} */
const dom = this.el.nativeElement;
if (window && window.getComputedStyle) {
/** @type {?} */
const prop = window.getComputedStyle(dom, null).getPropertyValue('height');
if ((!prop || prop === '0px') &&
(!dom.style.height || dom.style.height === '0px')) {
dom.style.height = '400px';
}
}
return this._ngZone.runOutsideAngular(() => init(dom, this.theme || undefined, this.initOpts || undefined));
}
/**
* @param {?} event
* @return {?}
*/
onWindowResize(event) {
/** @type {?} */
const target = (/** @type {?} */ (event.target));
if (this.autoResize && target.innerWidth !== this.currentWindowWidth) {
this.currentWindowWidth = target.innerWidth;
this.currentOffsetWidth = this.el.nativeElement.offsetWidth;
this.currentOffsetHeight = this.el.nativeElement.offsetHeight;
this._resize$.next();
}
}
/**
* @param {?} changes

@@ -196,3 +149,2 @@ * @return {?}

filter.has('loading').subscribe(v => this.toggleLoading(!!v));
filter.notFirst('detectEventChanges').subscribe(v => this.toggleEventDetectors(!!v));
filter.notFirst('theme').subscribe(() => this.refreshChart());

@@ -203,11 +155,18 @@ }

*/
ngOnInit() {
this.resizeSub = fromEvent(window, 'resize').pipe(debounceTime(50)).subscribe(() => {
if (this.autoResize && window.innerWidth !== this.currentWindowWidth) {
this.currentWindowWidth = window.innerWidth;
this.currentOffsetWidth = this.el.nativeElement.offsetWidth;
this.currentOffsetHeight = this.el.nativeElement.offsetHeight;
this.resize();
}
});
}
/**
* @return {?}
*/
ngOnDestroy() {
if (this._resizeSub) {
this._resizeSub.unsubscribe();
this._resizeSub = null;
}
if (this._chart) {
this._chart.dispose();
this._chart = null;
}
this.resizeSub.unsubscribe();
this.dispose();
}

@@ -219,3 +178,3 @@ /**

// No heavy work in DoCheck!
if (this._chart && this.autoResize) {
if (this.chart && this.autoResize) {
/** @type {?} */

@@ -228,3 +187,3 @@ const offsetWidth = this.el.nativeElement.offsetWidth;

this.currentOffsetHeight = offsetHeight;
this._resize$.next();
this.resize();
}

@@ -242,54 +201,33 @@ }

*/
initChart() {
this.onOptionsChange(this.options);
if (this.merge && this._chart) {
this.setOption(this.merge);
dispose() {
if (this.chart) {
this.chart.dispose();
this.chart = null;
}
}
/**
* @param {?} opt
* @return {?}
*/
onOptionsChange(opt) {
if (opt) {
if (!this._chart) {
this._chart = this.createChart();
// subscribe to _resize$ and debounced
this._resizeSub = this._resize$.pipe(debounceTime(50)).subscribe(() => {
if (this._chart) {
this._chart.resize();
}
});
// output echart instance:
this.chartInit.emit(this._chart);
// register events:
if (this.detectEventChanges) {
this.registerEvents();
}
}
this._chart.setOption(this.options, true);
resize() {
if (this.chart) {
this.chart.resize();
}
}
/**
* @param {?} loading
* @return {?}
*/
registerEvents() {
if (this._chart) {
/** @type {?} */
const events = EChartEvents.All;
for (let i = 0, len = events.length; i < len; i++) {
this._chart.on(events[i], this.eventHandler, this);
}
toggleLoading(loading) {
if (this.chart) {
loading ? this.chart.showLoading(this.loadingType, this.loadingOpts) : this.chart.hideLoading();
}
}
/**
* @param {?} option
* @param {?=} opts
* @return {?}
*/
unregisterEvents() {
if (this._chart) {
/** @type {?} */
const events = EChartEvents.All;
for (let i = 0, len = events.length; i < len; i++) {
this._chart.off(events[i], this.eventHandler);
}
setOption(option, opts) {
if (this.chart) {
this.chart.setOption(option, opts);
}

@@ -300,86 +238,60 @@ }

*/
clear() {
if (this._chart) {
this._chart.clear();
}
refreshChart() {
this.dispose();
this.initChart();
}
/**
* @param {?} loading
* @return {?}
*/
toggleLoading(loading) {
if (this._chart) {
loading ? this._chart.showLoading(this.loadingType, this.loadingOpts) : this._chart.hideLoading();
createChart() {
this.currentWindowWidth = window.innerWidth;
this.currentOffsetWidth = this.el.nativeElement.offsetWidth;
this.currentOffsetHeight = this.el.nativeElement.offsetHeight;
/** @type {?} */
const dom = this.el.nativeElement;
if (window && window.getComputedStyle) {
/** @type {?} */
const prop = window.getComputedStyle(dom, null).getPropertyValue('height');
if ((!prop || prop === '0px') &&
(!dom.style.height || dom.style.height === '0px')) {
dom.style.height = '400px';
}
}
return this.ngZone.runOutsideAngular(() => init(dom, this.theme, this.initOpts));
}
/**
* @param {?} option
* @param {?=} opts
* @return {?}
*/
setOption(option, opts) {
if (this._chart) {
this._chart.setOption(option, opts);
initChart() {
this.onOptionsChange(this.options);
if (this.merge && this.chart) {
this.setOption(this.merge);
}
}
/**
* @param {?} event
* @param {?} opt
* @return {?}
*/
eventHandler(event) {
switch (event.type) {
case EChartEvents.Click:
this._ngZone.run(() => this.chartClick.emit(event));
break;
case EChartEvents.DblClick:
this._ngZone.run(() => this.chartDblClick.emit(event));
break;
case EChartEvents.MouseDown:
this._ngZone.run(() => this.chartMouseDown.emit(event));
break;
case EChartEvents.MouseUp:
this._ngZone.run(() => this.chartMouseUp.emit(event));
break;
case EChartEvents.MouseOver:
this._ngZone.run(() => this.chartMouseOver.emit(event));
break;
case EChartEvents.MouseOut:
this._ngZone.run(() => this.chartMouseOut.emit(event));
break;
case EChartEvents.GlobalOut:
this._ngZone.run(() => this.chartGlobalOut.emit(event));
break;
case EChartEvents.ContextMenu:
this._ngZone.run(() => this.chartContextMenu.emit(event));
break;
case EChartEvents.DataZoom:
this._ngZone.run(() => this.chartDataZoom.emit(event));
break;
case EChartEvents.MapSelectChanged:
this._ngZone.run(() => this.chartMapSelectChanged.emit(event));
break;
case EChartEvents.MapSelected:
this._ngZone.run(() => this.chartMapSelected.emit(event));
break;
case EChartEvents.MapUnselected:
this._ngZone.run(() => this.chartMapUnselected.emit(event));
break;
onOptionsChange(opt) {
if (opt) {
if (!this.chart) {
this.chart = this.createChart();
this.chartInit.emit(this.chart);
}
this.chart.setOption(this.options, true);
}
}
// allows to lazily bind to only those events that are requested through the `@Output` by parent components
// see https://stackoverflow.com/questions/51787972/optimal-reentering-the-ngzone-from-eventemitter-event for more info
/**
* @param {?} detect
* @template T
* @param {?} eventName
* @return {?}
*/
toggleEventDetectors(detect) {
if (this._chart) {
detect ? this.registerEvents() : this.unregisterEvents();
}
createLazyEvent(eventName) {
return (/** @type {?} */ (this.chartInit.pipe(switchMap((chart) => new Observable(observer => {
chart.on(eventName, (data) => this.ngZone.run(() => observer.next(data)));
return null; // no need to react on unsubscribe as long as the `dispose()` is called in ngOnDestroy
})))));
}
/**
* @return {?}
*/
refreshChart() {
this.ngOnDestroy();
this.initChart();
}
}

@@ -410,2 +322,3 @@ NgxEchartsDirective.decorators = [

chartMouseDown: [{ type: Output }],
chartMouseMove: [{ type: Output }],
chartMouseUp: [{ type: Output }],

@@ -416,7 +329,26 @@ chartMouseOver: [{ type: Output }],

chartContextMenu: [{ type: Output }],
chartLegendSelectChanged: [{ type: Output }],
chartLegendSelected: [{ type: Output }],
chartLegendUnselected: [{ type: Output }],
chartLegendScroll: [{ type: Output }],
chartDataZoom: [{ type: Output }],
chartDataRangeSelected: [{ type: Output }],
chartTimelineChanged: [{ type: Output }],
chartTimelinePlayChanged: [{ type: Output }],
chartRestore: [{ type: Output }],
chartDataViewChanged: [{ type: Output }],
chartMagicTypeChanged: [{ type: Output }],
chartPieSelectChanged: [{ type: Output }],
chartPieSelected: [{ type: Output }],
chartPieUnselected: [{ type: Output }],
chartMapSelectChanged: [{ type: Output }],
chartMapSelected: [{ type: Output }],
chartMapUnselected: [{ type: Output }],
onWindowResize: [{ type: HostListener, args: ['window:resize', ['$event'],] }]
chartAxisAreaSelected: [{ type: Output }],
chartFocusNodeAdjacency: [{ type: Output }],
chartUnfocusNodeAdjacency: [{ type: Output }],
chartBrush: [{ type: Output }],
chartBrushSelected: [{ type: Output }],
chartRendered: [{ type: Output }],
chartFinished: [{ type: Output }]
};

@@ -454,2 +386,2 @@

//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LWVjaGFydHMuanMubWFwIiwic291cmNlcyI6WyJuZzovL25neC1lY2hhcnRzL2xpYi9jaGFuZ2UtZmlsdGVyLnRzIiwibmc6Ly9uZ3gtZWNoYXJ0cy9saWIvZWNoYXJ0LWV2ZW50cy50cyIsIm5n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cEI7YUFDRjs7Ozs7Ozs7Ozs7Ozs7OyJ9

@@ -1,5 +0,5 @@

import { of, empty, Subject } from 'rxjs';
import { Directive, ElementRef, Input, Output, HostListener, EventEmitter, NgZone, NgModule } from '@angular/core';
import { debounceTime } from 'rxjs/operators';
import { of, empty, fromEvent, Observable } from 'rxjs';
import { Directive, ElementRef, EventEmitter, Input, NgZone, Output, NgModule } from '@angular/core';
import { init } from 'echarts';
import { debounceTime, switchMap } from 'rxjs/operators';

@@ -108,109 +108,51 @@ /**

*/
var EChartEvents = /** @class */ (function () {
function EChartEvents() {
}
EChartEvents.Click = 'click';
EChartEvents.DblClick = 'dblclick';
EChartEvents.MouseDown = 'mousedown';
EChartEvents.MouseUp = 'mouseup';
EChartEvents.MouseOver = 'mouseover';
EChartEvents.MouseOut = 'mouseout';
EChartEvents.GlobalOut = 'globalout';
EChartEvents.ContextMenu = 'contextmenu';
EChartEvents.DataZoom = 'datazoom';
EChartEvents.MapSelectChanged = 'mapselectchanged';
EChartEvents.MapSelected = 'mapselected';
EChartEvents.MapUnselected = 'mapunselected';
EChartEvents.All = [
EChartEvents.Click,
EChartEvents.DblClick,
EChartEvents.MouseDown,
EChartEvents.MouseUp,
EChartEvents.MouseOver,
EChartEvents.MouseOut,
EChartEvents.GlobalOut,
EChartEvents.ContextMenu,
EChartEvents.DataZoom,
EChartEvents.MapSelectChanged,
EChartEvents.MapSelected,
EChartEvents.MapUnselected,
];
return EChartEvents;
}());
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
*/
var NgxEchartsDirective = /** @class */ (function () {
function NgxEchartsDirective(el, _ngZone) {
function NgxEchartsDirective(el, ngZone) {
this.el = el;
this._ngZone = _ngZone;
this.ngZone = ngZone;
this.autoResize = true;
this.loadingType = 'default';
/**
* Whether to register event handlers on echartInstance. Default is true.
* Use it to avoid unwanted change detection, if you want to optimize the performance.
*/
this.detectEventChanges = true;
// chart events:
this.detectEventChanges = true; // deprecated, left for compatibility reasons to avoid triggering major version
// deprecated, left for compatibility reasons to avoid triggering major version
// ngx-echarts events
this.chartInit = new EventEmitter();
this.chartClick = new EventEmitter();
this.chartDblClick = new EventEmitter();
this.chartMouseDown = new EventEmitter();
this.chartMouseUp = new EventEmitter();
this.chartMouseOver = new EventEmitter();
this.chartMouseOut = new EventEmitter();
this.chartGlobalOut = new EventEmitter();
this.chartContextMenu = new EventEmitter();
this.chartDataZoom = new EventEmitter();
this.chartMapSelectChanged = new EventEmitter();
this.chartMapSelected = new EventEmitter();
this.chartMapUnselected = new EventEmitter();
// echarts mouse events
this.chartClick = this.createLazyEvent('click');
this.chartDblClick = this.createLazyEvent('dblclick');
this.chartMouseDown = this.createLazyEvent('mousedown');
this.chartMouseMove = this.createLazyEvent('mousemove');
this.chartMouseUp = this.createLazyEvent('mouseup');
this.chartMouseOver = this.createLazyEvent('mouseover');
this.chartMouseOut = this.createLazyEvent('mouseout');
this.chartGlobalOut = this.createLazyEvent('globalout');
this.chartContextMenu = this.createLazyEvent('contextmenu');
// echarts mouse events
this.chartLegendSelectChanged = this.createLazyEvent('legendselectchanged');
this.chartLegendSelected = this.createLazyEvent('legendselected');
this.chartLegendUnselected = this.createLazyEvent('legendunselected');
this.chartLegendScroll = this.createLazyEvent('legendscroll');
this.chartDataZoom = this.createLazyEvent('datazoom');
this.chartDataRangeSelected = this.createLazyEvent('datarangeselected');
this.chartTimelineChanged = this.createLazyEvent('timelinechanged');
this.chartTimelinePlayChanged = this.createLazyEvent('timelineplaychanged');
this.chartRestore = this.createLazyEvent('restore');
this.chartDataViewChanged = this.createLazyEvent('dataviewchanged');
this.chartMagicTypeChanged = this.createLazyEvent('magictypechanged');
this.chartPieSelectChanged = this.createLazyEvent('pieselectchanged');
this.chartPieSelected = this.createLazyEvent('pieselected');
this.chartPieUnselected = this.createLazyEvent('pieunselected');
this.chartMapSelectChanged = this.createLazyEvent('mapselectchanged');
this.chartMapSelected = this.createLazyEvent('mapselected');
this.chartMapUnselected = this.createLazyEvent('mapunselected');
this.chartAxisAreaSelected = this.createLazyEvent('axisareaselected');
this.chartFocusNodeAdjacency = this.createLazyEvent('focusnodeadjacency');
this.chartUnfocusNodeAdjacency = this.createLazyEvent('unfocusnodeadjacency');
this.chartBrush = this.createLazyEvent('brush');
this.chartBrushSelected = this.createLazyEvent('brushselected');
this.chartRendered = this.createLazyEvent('rendered');
this.chartFinished = this.createLazyEvent('finished');
this.currentOffsetWidth = 0;
this.currentOffsetHeight = 0;
this._resize$ = new Subject();
}
/**
* @return {?}
*/
NgxEchartsDirective.prototype.createChart = /**
* @return {?}
*/
function () {
var _this = this;
this.currentWindowWidth = window.innerWidth;
this.currentOffsetWidth = this.el.nativeElement.offsetWidth;
this.currentOffsetHeight = this.el.nativeElement.offsetHeight;
/** @type {?} */
var dom = this.el.nativeElement;
if (window && window.getComputedStyle) {
/** @type {?} */
var prop = window.getComputedStyle(dom, null).getPropertyValue('height');
if ((!prop || prop === '0px') &&
(!dom.style.height || dom.style.height === '0px')) {
dom.style.height = '400px';
}
}
return this._ngZone.runOutsideAngular(function () { return init(dom, _this.theme || undefined, _this.initOpts || undefined); });
};
/**
* @param {?} event
* @return {?}
*/
NgxEchartsDirective.prototype.onWindowResize = /**
* @param {?} event
* @return {?}
*/
function (event) {
/** @type {?} */
var target = (/** @type {?} */ (event.target));
if (this.autoResize && target.innerWidth !== this.currentWindowWidth) {
this.currentWindowWidth = target.innerWidth;
this.currentOffsetWidth = this.el.nativeElement.offsetWidth;
this.currentOffsetHeight = this.el.nativeElement.offsetHeight;
this._resize$.next();
}
};
/**
* @param {?} changes

@@ -230,3 +172,2 @@ * @return {?}

filter.has('loading').subscribe(function (v) { return _this.toggleLoading(!!v); });
filter.notFirst('detectEventChanges').subscribe(function (v) { return _this.toggleEventDetectors(!!v); });
filter.notFirst('theme').subscribe(function () { return _this.refreshChart(); });

@@ -237,2 +178,19 @@ };

*/
NgxEchartsDirective.prototype.ngOnInit = /**
* @return {?}
*/
function () {
var _this = this;
this.resizeSub = fromEvent(window, 'resize').pipe(debounceTime(50)).subscribe(function () {
if (_this.autoResize && window.innerWidth !== _this.currentWindowWidth) {
_this.currentWindowWidth = window.innerWidth;
_this.currentOffsetWidth = _this.el.nativeElement.offsetWidth;
_this.currentOffsetHeight = _this.el.nativeElement.offsetHeight;
_this.resize();
}
});
};
/**
* @return {?}
*/
NgxEchartsDirective.prototype.ngOnDestroy = /**

@@ -242,10 +200,4 @@ * @return {?}

function () {
if (this._resizeSub) {
this._resizeSub.unsubscribe();
this._resizeSub = null;
}
if (this._chart) {
this._chart.dispose();
this._chart = null;
}
this.resizeSub.unsubscribe();
this.dispose();
};

@@ -260,3 +212,3 @@ /**

// No heavy work in DoCheck!
if (this._chart && this.autoResize) {
if (this.chart && this.autoResize) {
/** @type {?} */

@@ -269,3 +221,3 @@ var offsetWidth = this.el.nativeElement.offsetWidth;

this.currentOffsetHeight = offsetHeight;
this._resize$.next();
this.resize();
}

@@ -287,68 +239,48 @@ }

*/
NgxEchartsDirective.prototype.initChart = /**
NgxEchartsDirective.prototype.dispose = /**
* @return {?}
*/
function () {
this.onOptionsChange(this.options);
if (this.merge && this._chart) {
this.setOption(this.merge);
if (this.chart) {
this.chart.dispose();
this.chart = null;
}
};
/**
* @param {?} opt
* @return {?}
*/
NgxEchartsDirective.prototype.onOptionsChange = /**
* @param {?} opt
NgxEchartsDirective.prototype.resize = /**
* @return {?}
*/
function (opt) {
var _this = this;
if (opt) {
if (!this._chart) {
this._chart = this.createChart();
// subscribe to _resize$ and debounced
this._resizeSub = this._resize$.pipe(debounceTime(50)).subscribe(function () {
if (_this._chart) {
_this._chart.resize();
}
});
// output echart instance:
this.chartInit.emit(this._chart);
// register events:
if (this.detectEventChanges) {
this.registerEvents();
}
}
this._chart.setOption(this.options, true);
function () {
if (this.chart) {
this.chart.resize();
}
};
/**
* @param {?} loading
* @return {?}
*/
NgxEchartsDirective.prototype.registerEvents = /**
NgxEchartsDirective.prototype.toggleLoading = /**
* @param {?} loading
* @return {?}
*/
function () {
if (this._chart) {
/** @type {?} */
var events = EChartEvents.All;
for (var i = 0, len = events.length; i < len; i++) {
this._chart.on(events[i], this.eventHandler, this);
}
function (loading) {
if (this.chart) {
loading ? this.chart.showLoading(this.loadingType, this.loadingOpts) : this.chart.hideLoading();
}
};
/**
* @param {?} option
* @param {?=} opts
* @return {?}
*/
NgxEchartsDirective.prototype.unregisterEvents = /**
NgxEchartsDirective.prototype.setOption = /**
* @param {?} option
* @param {?=} opts
* @return {?}
*/
function () {
if (this._chart) {
/** @type {?} */
var events = EChartEvents.All;
for (var i = 0, len = events.length; i < len; i++) {
this._chart.off(events[i], this.eventHandler);
}
function (option, opts) {
if (this.chart) {
this.chart.setOption(option, opts);
}

@@ -359,109 +291,84 @@ };

*/
NgxEchartsDirective.prototype.clear = /**
NgxEchartsDirective.prototype.refreshChart = /**
* @return {?}
*/
function () {
if (this._chart) {
this._chart.clear();
}
this.dispose();
this.initChart();
};
/**
* @param {?} loading
* @return {?}
*/
NgxEchartsDirective.prototype.toggleLoading = /**
* @param {?} loading
NgxEchartsDirective.prototype.createChart = /**
* @return {?}
*/
function (loading) {
if (this._chart) {
loading ? this._chart.showLoading(this.loadingType, this.loadingOpts) : this._chart.hideLoading();
function () {
var _this = this;
this.currentWindowWidth = window.innerWidth;
this.currentOffsetWidth = this.el.nativeElement.offsetWidth;
this.currentOffsetHeight = this.el.nativeElement.offsetHeight;
/** @type {?} */
var dom = this.el.nativeElement;
if (window && window.getComputedStyle) {
/** @type {?} */
var prop = window.getComputedStyle(dom, null).getPropertyValue('height');
if ((!prop || prop === '0px') &&
(!dom.style.height || dom.style.height === '0px')) {
dom.style.height = '400px';
}
}
return this.ngZone.runOutsideAngular(function () { return init(dom, _this.theme, _this.initOpts); });
};
/**
* @param {?} option
* @param {?=} opts
* @return {?}
*/
NgxEchartsDirective.prototype.setOption = /**
* @param {?} option
* @param {?=} opts
NgxEchartsDirective.prototype.initChart = /**
* @return {?}
*/
function (option, opts) {
if (this._chart) {
this._chart.setOption(option, opts);
function () {
this.onOptionsChange(this.options);
if (this.merge && this.chart) {
this.setOption(this.merge);
}
};
/**
* @param {?} event
* @param {?} opt
* @return {?}
*/
NgxEchartsDirective.prototype.eventHandler = /**
* @param {?} event
NgxEchartsDirective.prototype.onOptionsChange = /**
* @param {?} opt
* @return {?}
*/
function (event) {
var _this = this;
switch (event.type) {
case EChartEvents.Click:
this._ngZone.run(function () { return _this.chartClick.emit(event); });
break;
case EChartEvents.DblClick:
this._ngZone.run(function () { return _this.chartDblClick.emit(event); });
break;
case EChartEvents.MouseDown:
this._ngZone.run(function () { return _this.chartMouseDown.emit(event); });
break;
case EChartEvents.MouseUp:
this._ngZone.run(function () { return _this.chartMouseUp.emit(event); });
break;
case EChartEvents.MouseOver:
this._ngZone.run(function () { return _this.chartMouseOver.emit(event); });
break;
case EChartEvents.MouseOut:
this._ngZone.run(function () { return _this.chartMouseOut.emit(event); });
break;
case EChartEvents.GlobalOut:
this._ngZone.run(function () { return _this.chartGlobalOut.emit(event); });
break;
case EChartEvents.ContextMenu:
this._ngZone.run(function () { return _this.chartContextMenu.emit(event); });
break;
case EChartEvents.DataZoom:
this._ngZone.run(function () { return _this.chartDataZoom.emit(event); });
break;
case EChartEvents.MapSelectChanged:
this._ngZone.run(function () { return _this.chartMapSelectChanged.emit(event); });
break;
case EChartEvents.MapSelected:
this._ngZone.run(function () { return _this.chartMapSelected.emit(event); });
break;
case EChartEvents.MapUnselected:
this._ngZone.run(function () { return _this.chartMapUnselected.emit(event); });
break;
function (opt) {
if (opt) {
if (!this.chart) {
this.chart = this.createChart();
this.chartInit.emit(this.chart);
}
this.chart.setOption(this.options, true);
}
};
// allows to lazily bind to only those events that are requested through the `@Output` by parent components
// see https://stackoverflow.com/questions/51787972/optimal-reentering-the-ngzone-from-eventemitter-event for more info
// allows to lazily bind to only those events that are requested through the `@Output` by parent components
// see https://stackoverflow.com/questions/51787972/optimal-reentering-the-ngzone-from-eventemitter-event for more info
/**
* @param {?} detect
* @template T
* @param {?} eventName
* @return {?}
*/
NgxEchartsDirective.prototype.toggleEventDetectors = /**
* @param {?} detect
* @return {?}
*/
function (detect) {
if (this._chart) {
detect ? this.registerEvents() : this.unregisterEvents();
}
};
NgxEchartsDirective.prototype.createLazyEvent =
// allows to lazily bind to only those events that are requested through the `@Output` by parent components
// see https://stackoverflow.com/questions/51787972/optimal-reentering-the-ngzone-from-eventemitter-event for more info
/**
* @template T
* @param {?} eventName
* @return {?}
*/
NgxEchartsDirective.prototype.refreshChart = /**
* @return {?}
*/
function () {
this.ngOnDestroy();
this.initChart();
function (eventName) {
var _this = this;
return (/** @type {?} */ (this.chartInit.pipe(switchMap(function (chart) { return new Observable(function (observer) {
chart.on(eventName, function (data) { return _this.ngZone.run(function () { return observer.next(data); }); });
return null; // no need to react on unsubscribe as long as the `dispose()` is called in ngOnDestroy
}); }))));
};

@@ -492,2 +399,3 @@ NgxEchartsDirective.decorators = [

chartMouseDown: [{ type: Output }],
chartMouseMove: [{ type: Output }],
chartMouseUp: [{ type: Output }],

@@ -498,7 +406,26 @@ chartMouseOver: [{ type: Output }],

chartContextMenu: [{ type: Output }],
chartLegendSelectChanged: [{ type: Output }],
chartLegendSelected: [{ type: Output }],
chartLegendUnselected: [{ type: Output }],
chartLegendScroll: [{ type: Output }],
chartDataZoom: [{ type: Output }],
chartDataRangeSelected: [{ type: Output }],
chartTimelineChanged: [{ type: Output }],
chartTimelinePlayChanged: [{ type: Output }],
chartRestore: [{ type: Output }],
chartDataViewChanged: [{ type: Output }],
chartMagicTypeChanged: [{ type: Output }],
chartPieSelectChanged: [{ type: Output }],
chartPieSelected: [{ type: Output }],
chartPieUnselected: [{ type: Output }],
chartMapSelectChanged: [{ type: Output }],
chartMapSelected: [{ type: Output }],
chartMapUnselected: [{ type: Output }],
onWindowResize: [{ type: HostListener, args: ['window:resize', ['$event'],] }]
chartAxisAreaSelected: [{ type: Output }],
chartFocusNodeAdjacency: [{ type: Output }],
chartUnfocusNodeAdjacency: [{ type: Output }],
chartBrush: [{ type: Output }],
chartBrushSelected: [{ type: Output }],
chartRendered: [{ type: Output }],
chartFinished: [{ type: Output }]
};

@@ -541,2 +468,2 @@ return NgxEchartsDirective;

//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LWVjaGFydHMuanMubWFwIiwic291cmNlcyI6WyJuZzovL25neC1lY2hhcnRzL2xpYi9jaGFuZ2UtZmlsdGVyLnRzIiwibmc6Ly9uZ3gtZWNoYXJ0cy9saWIvZWNoYXJ0LWV2ZW50cy50cyIsIm5nOi8vbmd4LWVjaGFydHMvbGliL25neC1lY2hhcnRzLmRpcmVjdGl2ZS50cyIsIm5nOi8vbmd4LWVjaGFydHMvbGliL25neC1lY2hhcnRzLm1vZHVsZS50cyJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBTaW1wbGVDaGFuZ2VzIH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XHJcbmltcG9ydCB7IE9ic2VydmFibGUsIG9mLCBlbXB0eSB9IGZyb20gJ3J4anMnO1xyXG5cclxuZXhwb3J0IGNsYXNzIENoYW5nZUZpbHRlciB7XHJcbiAgY29uc3RydWN0b3IocHJpdmF0ZSBfY2hhbmdlczogU2ltcGxlQ2hhbmdlcykgeyB9XHJcblxyXG4gIHN0YXRpYyBvZihjaGFuZ2VzOiBTaW1wbGVDaGFuZ2VzKSB7XHJcbiAgICByZXR1cm4gbmV3IENoYW5nZUZpbHRlcihjaGFuZ2VzKTtcclxuICB9XHJcblxyXG4gIG5vdEVtcHR5PFQ+KGtleTogc3RyaW5nKTogT2JzZXJ2YWJsZTxUPiB7XHJcbiAgICBpZiAodGhpcy5fY2hhbmdlc1trZXldKSB7XHJcbiAgICAgIGNvbnN0IHZhbHVlOiBUID0gdGhpcy5fY2hhbmdlc1trZXldLmN1cnJlbnRWYWx1ZTtcclxuXHJcbiAgICAgIGlmICh2YWx1ZSAhPT0gdW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rQkFDTixNQUFNO3VDQUNOLE1BQU07d0NBQ04sTUFBTTt3Q0FDTixNQUFNO21DQUNOLE1BQU07cUNBQ04sTUFBTTt3Q0FDTixNQUFNO21DQUNOLE1BQU07cUNBQ04sTUFBTTt3Q0FDTixNQUFNOzBDQUNOLE1BQU07NENBQ04sTUFBTTs2QkFDTixNQUFNO3FDQUNOLE1BQU07Z0NBQ04sTUFBTTtnQ0FDTixNQUFNOztJQWlJVCwwQkFBQztDQTFMRDs7Ozs7O0FDTkE7SUFHQTtLQVNpQzs7Z0JBVGhDLFFBQVEsU0FBQztvQkFDUixPQUFPLEVBQUUsRUFBRTtvQkFDWCxZQUFZLEVBQUU7d0JBQ1osbUJBQW1CO3FCQUNwQjtvQkFDRCxPQUFPLEVBQUU7d0JBQ1AsbUJBQW1CO3FCQUNwQjtpQkFDRjs7SUFDK0IsdUJBQUM7Q0FUakM7Ozs7Ozs7Ozs7Ozs7OyJ9

@@ -1,6 +0,6 @@

import { ElementRef, EventEmitter, OnChanges, OnDestroy, SimpleChanges, NgZone, DoCheck, AfterViewInit } from '@angular/core';
import { AfterViewInit, DoCheck, ElementRef, EventEmitter, NgZone, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
import { EChartOption } from 'echarts';
export declare class NgxEchartsDirective implements OnChanges, OnDestroy, DoCheck, AfterViewInit {
export declare class NgxEchartsDirective implements OnChanges, OnDestroy, OnInit, DoCheck, AfterViewInit {
private el;
private _ngZone;
private ngZone;
options: EChartOption;

@@ -19,43 +19,57 @@ theme: string;

loadingOpts: object;
/**
* Whether to register event handlers on echartInstance. Default is true.
* Use it to avoid unwanted change detection, if you want to optimize the performance.
*/
detectEventChanges: boolean;
chartInit: EventEmitter<any>;
chartClick: EventEmitter<any>;
chartDblClick: EventEmitter<any>;
chartMouseDown: EventEmitter<any>;
chartMouseUp: EventEmitter<any>;
chartMouseOver: EventEmitter<any>;
chartMouseOut: EventEmitter<any>;
chartGlobalOut: EventEmitter<any>;
chartContextMenu: EventEmitter<any>;
chartDataZoom: EventEmitter<any>;
chartMapSelectChanged: EventEmitter<any>;
chartMapSelected: EventEmitter<any>;
chartMapUnselected: EventEmitter<any>;
private _chart;
chartClick: EventEmitter<{}>;
chartDblClick: EventEmitter<{}>;
chartMouseDown: EventEmitter<{}>;
chartMouseMove: EventEmitter<{}>;
chartMouseUp: EventEmitter<{}>;
chartMouseOver: EventEmitter<{}>;
chartMouseOut: EventEmitter<{}>;
chartGlobalOut: EventEmitter<{}>;
chartContextMenu: EventEmitter<{}>;
chartLegendSelectChanged: EventEmitter<{}>;
chartLegendSelected: EventEmitter<{}>;
chartLegendUnselected: EventEmitter<{}>;
chartLegendScroll: EventEmitter<{}>;
chartDataZoom: EventEmitter<{}>;
chartDataRangeSelected: EventEmitter<{}>;
chartTimelineChanged: EventEmitter<{}>;
chartTimelinePlayChanged: EventEmitter<{}>;
chartRestore: EventEmitter<{}>;
chartDataViewChanged: EventEmitter<{}>;
chartMagicTypeChanged: EventEmitter<{}>;
chartPieSelectChanged: EventEmitter<{}>;
chartPieSelected: EventEmitter<{}>;
chartPieUnselected: EventEmitter<{}>;
chartMapSelectChanged: EventEmitter<{}>;
chartMapSelected: EventEmitter<{}>;
chartMapUnselected: EventEmitter<{}>;
chartAxisAreaSelected: EventEmitter<{}>;
chartFocusNodeAdjacency: EventEmitter<{}>;
chartUnfocusNodeAdjacency: EventEmitter<{}>;
chartBrush: EventEmitter<{}>;
chartBrushSelected: EventEmitter<{}>;
chartRendered: EventEmitter<{}>;
chartFinished: EventEmitter<{}>;
private chart;
private currentOffsetWidth;
private currentOffsetHeight;
private currentWindowWidth;
private _resize$;
private _resizeSub;
constructor(el: ElementRef, _ngZone: NgZone);
private createChart;
onWindowResize(event: Event): void;
private resizeSub;
constructor(el: ElementRef, ngZone: NgZone);
ngOnChanges(changes: SimpleChanges): void;
ngOnInit(): void;
ngOnDestroy(): void;
ngDoCheck(): void;
ngAfterViewInit(): void;
private dispose;
private resize;
private toggleLoading;
private setOption;
private refreshChart;
private createChart;
private initChart;
private onOptionsChange;
private registerEvents;
private unregisterEvents;
clear(): void;
toggleLoading(loading: boolean): void;
setOption(option: any, opts?: any): void;
private eventHandler;
private toggleEventDetectors;
private refreshChart;
private createLazyEvent;
}

@@ -1,1 +0,1 @@

{"__symbolic":"module","version":4,"metadata":{"NgxEchartsModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":3,"character":1},"arguments":[{"imports":[],"declarations":[{"__symbolic":"reference","name":"ɵa"}],"exports":[{"__symbolic":"reference","name":"ɵa"}]}]}],"members":{}},"ɵa":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":10,"character":1},"arguments":[{"selector":"echarts, [echarts]"}]}],"members":{"options":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":14,"character":3}}]}],"theme":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":15,"character":3}}]}],"loading":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":16,"character":3}}]}],"initOpts":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":17,"character":3}}]}],"merge":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":23,"character":3}}]}],"autoResize":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":24,"character":3}}]}],"loadingType":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":25,"character":3}}]}],"loadingOpts":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":26,"character":3}}]}],"detectEventChanges":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":32,"character":3}}]}],"chartInit":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":35,"character":3}}]}],"chartClick":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":36,"character":3}}]}],"chartDblClick":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":37,"character":3}}]}],"chartMouseDown":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":38,"character":3}}]}],"chartMouseUp":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":39,"character":3}}]}],"chartMouseOver":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":40,"character":3}}]}],"chartMouseOut":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":41,"character":3}}]}],"chartGlobalOut":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":42,"character":3}}]}],"chartContextMenu":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":43,"character":3}}]}],"chartDataZoom":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":44,"character":3}}]}],"chartMapSelectChanged":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":45,"character":3}}]}],"chartMapSelected":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":46,"character":3}}]}],"chartMapUnselected":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":47,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":56,"character":26},{"__symbolic":"reference","module":"@angular/core","name":"NgZone","line":56,"character":55}]}],"createChart":[{"__symbolic":"method"}],"onWindowResize":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostListener","line":75,"character":3},"arguments":["window:resize",["$event"]]}]}],"ngOnChanges":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"ngDoCheck":[{"__symbolic":"method"}],"ngAfterViewInit":[{"__symbolic":"method"}],"initChart":[{"__symbolic":"method"}],"onOptionsChange":[{"__symbolic":"method"}],"registerEvents":[{"__symbolic":"method"}],"unregisterEvents":[{"__symbolic":"method"}],"clear":[{"__symbolic":"method"}],"toggleLoading":[{"__symbolic":"method"}],"setOption":[{"__symbolic":"method"}],"eventHandler":[{"__symbolic":"method"}],"toggleEventDetectors":[{"__symbolic":"method"}],"refreshChart":[{"__symbolic":"method"}]}}},"origins":{"NgxEchartsModule":"./lib/ngx-echarts.module","ɵa":"./lib/ngx-echarts.directive"},"importAs":"ngx-echarts"}
{"__symbolic":"module","version":4,"metadata":{"NgxEchartsModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":3,"character":1},"arguments":[{"imports":[],"declarations":[{"__symbolic":"reference","name":"ɵa"}],"exports":[{"__symbolic":"reference","name":"ɵa"}]}]}],"members":{}},"ɵa":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":6,"character":1},"arguments":[{"selector":"echarts, [echarts]"}]}],"members":{"options":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":10,"character":3}}]}],"theme":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":11,"character":3}}]}],"loading":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":12,"character":3}}]}],"initOpts":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":13,"character":3}}]}],"merge":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":19,"character":3}}]}],"autoResize":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":20,"character":3}}]}],"loadingType":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":21,"character":3}}]}],"loadingOpts":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":22,"character":3}}]}],"detectEventChanges":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":23,"character":3}}]}],"chartInit":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":26,"character":3}}]}],"chartClick":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":29,"character":3}}]}],"chartDblClick":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":30,"character":3}}]}],"chartMouseDown":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":31,"character":3}}]}],"chartMouseMove":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":32,"character":3}}]}],"chartMouseUp":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":33,"character":3}}]}],"chartMouseOver":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":34,"character":3}}]}],"chartMouseOut":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":35,"character":3}}]}],"chartGlobalOut":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":36,"character":3}}]}],"chartContextMenu":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":37,"character":3}}]}],"chartLegendSelectChanged":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":40,"character":3}}]}],"chartLegendSelected":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":41,"character":3}}]}],"chartLegendUnselected":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":42,"character":3}}]}],"chartLegendScroll":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":43,"character":3}}]}],"chartDataZoom":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":44,"character":3}}]}],"chartDataRangeSelected":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":45,"character":3}}]}],"chartTimelineChanged":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":46,"character":3}}]}],"chartTimelinePlayChanged":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":47,"character":3}}]}],"chartRestore":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":48,"character":3}}]}],"chartDataViewChanged":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":49,"character":3}}]}],"chartMagicTypeChanged":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":50,"character":3}}]}],"chartPieSelectChanged":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":51,"character":3}}]}],"chartPieSelected":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":52,"character":3}}]}],"chartPieUnselected":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":53,"character":3}}]}],"chartMapSelectChanged":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":54,"character":3}}]}],"chartMapSelected":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":55,"character":3}}]}],"chartMapUnselected":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":56,"character":3}}]}],"chartAxisAreaSelected":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":57,"character":3}}]}],"chartFocusNodeAdjacency":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":58,"character":3}}]}],"chartUnfocusNodeAdjacency":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":59,"character":3}}]}],"chartBrush":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":60,"character":3}}]}],"chartBrushSelected":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":61,"character":3}}]}],"chartRendered":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":62,"character":3}}]}],"chartFinished":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":63,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":71,"character":26},{"__symbolic":"reference","module":"@angular/core","name":"NgZone","line":71,"character":54}]}],"ngOnChanges":[{"__symbolic":"method"}],"ngOnInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"ngDoCheck":[{"__symbolic":"method"}],"ngAfterViewInit":[{"__symbolic":"method"}],"dispose":[{"__symbolic":"method"}],"resize":[{"__symbolic":"method"}],"toggleLoading":[{"__symbolic":"method"}],"setOption":[{"__symbolic":"method"}],"refreshChart":[{"__symbolic":"method"}],"createChart":[{"__symbolic":"method"}],"initChart":[{"__symbolic":"method"}],"onOptionsChange":[{"__symbolic":"method"}],"createLazyEvent":[{"__symbolic":"method"}]}}},"origins":{"NgxEchartsModule":"./lib/ngx-echarts.module","ɵa":"./lib/ngx-echarts.directive"},"importAs":"ngx-echarts"}
{
"name": "ngx-echarts",
"version": "4.0.1",
"version": "4.1.0",
"author": "Xie, Ziyu",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -26,3 +26,3 @@ # ngx-echarts

Latest version @npm:
+ `v4.0.1` for Angular >= 6
+ `v4.1.0` for Angular >= 6
+ `v2.3.1` for Angular < 6 (Please refer to https://github.com/xieziyu/ngx-echarts/blob/v2.x/README.md)

@@ -33,2 +33,7 @@

# Latest Update
+ 2018.12.16: v4.1.0
+ Perfomance update: echarts events are now lazily bounded, so it won't trigger change dectection unexpectedly. Please refer to [PR #154](https://github.com/xieziyu/ngx-echarts/pull/154) for more details. Thanks to [smnbbrv](https://github.com/smnbbrv)!
+ `[detectEventChanges]` is now deprecated.
+ Plenty of echarts event are now [supported](#events).
+ 2018.11.11: v4.0.1

@@ -51,3 +56,2 @@ + Add map events support: (chartMapSelectChanged), (chartMapSelected), (chartMapUnselected). (by [amirch1](https://github.com/amirch1) - [PR #147](https://github.com/xieziyu/ngx-echarts/pull/147))

```
+ No need to configure `angular.json` any more. But we still need to configure `tsconfig.json` currently.
+ Import echarts theme files or other extension files in `main.ts`. Refer to [ECharts Extensions](#echarts-extensions)

@@ -103,30 +107,2 @@

+ tsconfig.json:
You need to map the echarts path to minified version of echarts in the **compilerOptions** of **"tsconfig.json"** in your project's root (this is important for AoT build):
```diff
{
...,
"compilerOptions": {
...,
+ "paths": {
+ "echarts": ["node_modules/echarts/dist/echarts.min.js"]
+ }
}
}
```
+ If you also installed ECharts GL:
```diff
{
...,
"compilerOptions": {
...,
"paths": {
"echarts": ["node_modules/echarts/dist/echarts.min.js"],
+ "echarts-gl": ["node_modules/echarts-gl/dist/echarts-gl.min.js"]
}
}
}
```
+ Import other extentions such as themes or `echarts-gl` in your `main.ts`: [ECharts Extensions](#echarts-extensions)

@@ -136,5 +112,5 @@

## Upgrade from v3.x
1. Remove ECharts related files from `scripts` in `angular.json`, including lib, theme and extension files.
2. Modify `tsconfig.json` according to the installation guidance above.
3. Import necessary theme or extension files in `main.ts`. Refer to [ECharts Extensions](#echarts-extensions).
1. Install `@types/echarts`
2. Import necessary theme or extension files in `main.ts`. Refer to [ECharts Extensions](#echarts-extensions).
3. Remove `echarts` related scripts in `angular.json`.

@@ -297,15 +273,41 @@ # Usage

It supports following event outputs:
+ `chartClick`: It emits the same `params` of `'click'` event
+ `chartDblClick`: It emits the same `params` of `'dblclick'` event
+ `chartMouseDown`: It emits the same `params` of `'mousedown'` event
+ `chartMouseUp`: It emits the same `params` of `'mouseup'` event
+ `chartMouseOver`: It emits the same `params` of `'mouseover'` event
+ `chartMouseOut`: It emits the same `params` of `'mouseout'` event
+ `chartGlobalOut`: It emits the same `params` of `'globalout'` event
+ `chartContextMenu`: It emits the same `params` of `'contextmenu'` event (since v1.2.1)
+ `chartDataZoom`: It emits the same `params` of `'dataZoom'` event (thanks to averhaegen)
+ `chartMapSelectChanged`: It emits the same `params` of `'mapselectchanged'` event (thanks to amirch1)
+ `chartMapSelected`: It emits the same `params` of `'mapselected'` event (thanks to amirch1)
+ `chartMapUnselected`: It emits the same `params` of `'mapunselected'` event (thanks to amirch1)
| @Output | Event |
| ------- | ----- |
| chartInit | Emitted when chart is intialized |
| chartClick | echarts event: `'click'` |
| chartDblClick | echarts event: `'dblclick'` |
| chartMouseDown | echarts event: `'mousedown'` |
| chartMouseMove | echarts event: `'mousemove'` |
| chartMouseUp | echarts event: `'mouseup'` |
| chartMouseOver | echarts event: `'mouseover'` |
| chartMouseOut | echarts event: `'mouseout'` |
| chartGlobalOut | echarts event: `'globalout'` |
| chartContextMenu | echarts event: `'contextmenu'` |
| chartLegendSelectChanged | echarts event: `'legendselectchanged'` |
| chartLegendSelected | echarts event: `'legendselected'` |
| chartLegendUnselected | echarts event: `'legendunselected'` |
| chartLegendScroll | echarts event: `'legendscroll'` |
| chartDataZoom | echarts event: `'datazoom'` |
| chartDataRangeSelected | echarts event: `'datarangeselected'` |
| chartTimelineChanged | echarts event: `'timelinechanged'` |
| chartTimelinePlayChanged | echarts event: `'timelineplaychanged'` |
| chartRestore | echarts event: `'restore'` |
| chartDataViewChanged | echarts event: `'dataviewchanged'` |
| chartMagicTypeChanged | echarts event: `'magictypechanged'` |
| chartPieSelectChanged | echarts event: `'pieselectchanged'` |
| chartPieSelected | echarts event: `'pieselected'` |
| chartPieUnselected | echarts event: `'pieunselected'` |
| chartMapSelectChanged | echarts event: `'mapselectchanged'` |
| chartMapSelected | echarts event: `'mapselected'` |
| chartMapUnselected | echarts event: `'mapunselected'` |
| chartAxisAreaSelected | echarts event: `'axisareaselected'` |
| chartFocusNodeAdjacency | echarts event: `'focusnodeadjacency'` |
| chartUnfocusNodeAdjacency | echarts event: `'unfocusnodeadjacency'` |
| chartBrush | echarts event: `'brush'` |
| chartBrushSelected | echarts event: `'brushselected'` |
| chartRendered | echarts event: `'rendered'` |
| chartFinished | echarts event: `'finished'` |
You can refer to the echarts tutorial: [Events and Actions in ECharts](https://ecomfe.github.io/echarts-doc/public/en/tutorial.html#Events%20and%20Actions%20in%20ECharts) for more details of the event params. You can also refer to the [demo](https://xieziyu.github.io/#/ngx-echarts/demo) page for the detailed example.

@@ -327,2 +329,2 @@

[npm-badge-url]: https://www.npmjs.com/package/ngx-echarts
[ci-url]: https://travis-ci.org/xieziyu/ngx-echarts
[ci-url]: https://travis-ci.org/xieziyu/ngx-echarts

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc