UNPKG

@covalent/echarts

Version:
2 lines 33.5 kB
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("rxjs/operators"),require("echarts/lib/echarts"),require("rxjs"),require("zrender/lib/svg/svg"),require("echarts/lib/chart/bar"),require("echarts/lib/chart/line"),require("echarts/lib/chart/scatter"),require("echarts/lib/chart/tree"),require("echarts/lib/component/tooltip"),require("@angular/common"),require("echarts/lib/component/toolbox"),require("@angular/core"),require("@covalent/echarts/base")):"function"==typeof define&&define.amd?define("@covalent/echarts",["exports","rxjs/operators","echarts/lib/echarts","rxjs","zrender/lib/svg/svg","echarts/lib/chart/bar","echarts/lib/chart/line","echarts/lib/chart/scatter","echarts/lib/chart/tree","echarts/lib/component/tooltip","@angular/common","echarts/lib/component/toolbox","@angular/core","@covalent/echarts/base"],e):e((t.covalent=t.covalent||{},t.covalent.echarts={}),t.rxjs.operators,t.echarts,t.rxjs,null,null,null,null,null,null,t.ng.common,null,t.ng.core,t.covalent.echarts.base)}(this,function(t,n,i,o,e,r,s,a,p,h,l,u,c,y){"use strict";var g=function(){function t(){this._options={},this._optionsSubject=new o.BehaviorSubject(this._options)}return t.prototype.setOption=function(t,e){var n={};n[t]=e,Object.assign(this._options,n),this._optionsSubject.next(this._options)},t.prototype.setArrayOption=function(t,e){var n=this.getOption(t);if(n){var i=n.indexOf(e);-1<i?n[i]=e:n.push(e)}else n=[e];this.setOption(t,n)},t.prototype.removeArrayOption=function(t,e){var n=this.getOption(t);if(n){var i=n.indexOf(e);-1<i?n[i]=null:n=[]}this.setOption(t,n)},t.prototype.getOption=function(t){return this._options[t]},t.prototype.clearOption=function(t){this.setOption(t,null)},t.prototype.listen=function(){return this._optionsSubject.asObservable()},t.decorators=[{type:c.Injectable}],t}();function m(t){return t||new g}var d={provide:g,deps:[[new c.Optional,new c.SkipSelf,g]],useFactory:m},f=function(t,e){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function I(t,e){function n(){this.constructor=t}f(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var b=function(){return(b=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};function C(t){var e="function"==typeof Symbol&&t[Symbol.iterator],n=0;return e?e.call(t):{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}}function x(t){for(var e,n,i,o,r,s,a=[],p=1;p<arguments.length;p++)a[p-1]=arguments[p];var h=new Set;try{for(var l=C(a),u=l.next();!u.done;u=l.next()){var c=u.value;try{for(var y=C(Object.keys(c)),g=y.next();!g.done;g=y.next()){var m=g.value;h.add(m);var d=c[m];d!==undefined&&null!==d?t[m]=d:null===d&&delete t[m]}}catch(b){i={error:b}}finally{try{g&&!g.done&&(o=y["return"])&&o.call(y)}finally{if(i)throw i.error}}}}catch(x){e={error:x}}finally{try{u&&!u.done&&(n=l["return"])&&n.call(l)}finally{if(e)throw e.error}}try{for(var f=C(Object.keys(t)),I=f.next();!I.done;I=f.next()){m=I.value;h.has(m)||delete t[m]}}catch(v){r={error:v}}finally{try{I&&!I.done&&(s=f["return"])&&s.call(f)}finally{if(r)throw r.error}}return t}var v=function(){function t(t,e,n){this._changeDetectorRef=t,this._elementRef=e,this._optionsService=n,this._destroy=new o.Subject,this._widthSubject=new o.Subject,this._heightSubject=new o.Subject,this._state={},this._options={},this.config={},this.renderer="canvas",this.chartClick=new c.EventEmitter,this.chartDblclick=new c.EventEmitter,this.chartContextmenu=new c.EventEmitter,this.magicTypeChanged=new c.EventEmitter,this.dataViewChanged=new c.EventEmitter,this.datazoom=new c.EventEmitter,this.restore=new c.EventEmitter}return Object.defineProperty(t.prototype,"instance",{get:function(){return this._instance},enumerable:!0,configurable:!0}),t.prototype.ngAfterViewInit=function(){this._initializeChart()},t.prototype.ngOnChanges=function(t){this._instance&&(t.renderer||t.themeName||t.group?(this._disposeChart(),this._initializeChart()):this.render())},t.prototype.ngOnDestroy=function(){this._disposeChart(),this._destroy.unsubscribe()},t.prototype.render=function(){this._instance&&(this._instance.setOption(x(this._state,{grid:{show:!0,left:"20",right:"20",bottom:this.config.toolbox&&"number"==typeof this.config.toolbox.bottom||this._options.toolbox&&"number"==typeof this._options.toolbox.bottom?"40":"10",top:this.config.toolbox&&"number"==typeof this.config.toolbox.top||this._options.toolbox&&"number"==typeof this._options.toolbox.top?"40":"10",containLabel:!0,borderColor:"#FCFCFC"}},this._options,this.config?this.config:{}),!0),this._changeDetectorRef.markForCheck())},t.prototype._initializeChart=function(){var e=this;this._instance=i.init(this._elementRef.nativeElement,this.themeName,{renderer:this.renderer}),o.fromEvent(this._instance,"click").pipe(n.takeUntil(this._destroy)).subscribe(function(t){e.chartClick.next(t)}),o.fromEvent(this._instance,"dblclick").pipe(n.takeUntil(this._destroy)).subscribe(function(t){e.chartDblclick.next(t)}),o.fromEvent(this._instance,"contextmenu").pipe(n.takeUntil(this._destroy)).subscribe(function(t){e.chartContextmenu.next(t)}),o.fromEvent(this._instance,"magictypechanged").pipe(n.takeUntil(this._destroy)).subscribe(function(t){e.magicTypeChanged.next(t)}),o.fromEvent(this._instance,"dataviewchanged").pipe(n.takeUntil(this._destroy)).subscribe(function(t){e.dataViewChanged.next(t)}),o.fromEvent(this._instance,"datazoom").pipe(n.takeUntil(this._destroy)).subscribe(function(t){e.datazoom.next(t)}),o.fromEvent(this._instance,"restore").pipe(n.takeUntil(this._destroy)).subscribe(function(t){e.restore.next(t)}),this.group&&(this._instance.group=this.group,i.connect(this.group),this._changeDetectorRef.markForCheck()),o.merge(o.fromEvent(window,"resize").pipe(n.debounceTime(100)),this._widthSubject.asObservable().pipe(n.distinctUntilChanged()),this._heightSubject.asObservable().pipe(n.distinctUntilChanged())).pipe(n.takeUntil(this._destroy),n.debounceTime(100)).subscribe(function(){e._instance&&(e._instance.resize(),e._changeDetectorRef.markForCheck())}),this._optionsService.listen().pipe(n.tap(function(t){x(e._options,t)}),n.debounceTime(0),n.takeUntil(this._destroy)).subscribe(function(){e.render()}),o.timer(500,250).pipe(n.takeUntil(this._destroy)).subscribe(function(){e._elementRef&&e._elementRef.nativeElement&&(e._widthSubject.next(e._elementRef.nativeElement.getBoundingClientRect().width),e._heightSubject.next(e._elementRef.nativeElement.getBoundingClientRect().height))})},t.prototype._disposeChart=function(){this._instance&&(this._instance.clear(),i.dispose(this._instance)),this._destroy.next(!0)},t.decorators=[{type:c.Component,args:[{selector:"td-chart",template:"",changeDetection:c.ChangeDetectionStrategy.OnPush,providers:[d],styles:[":host{display:block;width:100%}"]}]}],t.ctorParameters=function(){return[{type:c.ChangeDetectorRef},{type:c.ElementRef},{type:g}]},t.propDecorators={config:[{type:c.Input,args:["config"]}],group:[{type:c.Input,args:["group"]}],themeName:[{type:c.Input,args:["themeName"]}],renderer:[{type:c.Input,args:["renderer"]}],chartClick:[{type:c.Output,args:["chartClick"]}],chartDblclick:[{type:c.Output,args:["chartDblclick"]}],chartContextmenu:[{type:c.Output,args:["chartContextmenu"]}],magicTypeChanged:[{type:c.Output,args:["magicTypeChanged"]}],dataViewChanged:[{type:c.Output,args:["dataViewChanged"]}],datazoom:[{type:c.Output,args:["datazoom"]}],restore:[{type:c.Output,args:["restore"]}]},t}(),_=function(){function t(t,e){this._axisOption=t,this._optionsService=e,this._state={axisLine:{lineStyle:{color:"#ABABAB"}},splitLine:{lineStyle:{color:"#ABABAB"}}},this.config={},this.show=!0}return t.prototype.ngOnInit=function(){this._setOptions()},t.prototype.ngOnChanges=function(){this._setOptions()},t.prototype.ngOnDestroy=function(){this._removeOption()},t.prototype._setOptions=function(){var t=x(this._state,{id:this.id,show:this.show,gridIndex:this.gridIndex,position:this.position,offset:this.offset,type:this.type,name:this.name,nameLocation:this.nameLocation,nameTextStyle:this.nameTextStyle,nameGap:this.nameGap,nameRotate:this.nameRotate,inverse:this.inverse,boundaryGap:this.boundaryGap,min:this.min,max:this.max,scale:this.scale,minInterval:this.minInterval,interval:this.interval,logBase:this.logBase,silent:this.silent,triggerEvent:this.triggerEvent,axisLine:this.axisLine,axisTick:this.axisTick,axisLabel:this.axisLabel,splitLine:this.splitLine,splitArea:this.splitArea,data:this.data,axisPointer:this.axisPointer,zlevel:this.zlevel,z:this.z},this.config?this.config:{});this._optionsService.setArrayOption(this._axisOption,t)},t.prototype._removeOption=function(){this._optionsService.clearOption(this._axisOption)},t.propDecorators={config:[{type:c.Input,args:["config"]}],id:[{type:c.Input,args:["id"]}],show:[{type:c.Input,args:["show"]}],gridIndex:[{type:c.Input,args:["gridIndex"]}],offset:[{type:c.Input,args:["offset"]}],type:[{type:c.Input,args:["type"]}],name:[{type:c.Input,args:["name"]}],nameLocation:[{type:c.Input,args:["nameLocation"]}],nameTextStyle:[{type:c.Input,args:["nameTextStyle"]}],nameGap:[{type:c.Input,args:["nameGap"]}],nameRotate:[{type:c.Input,args:["nameRotate"]}],inverse:[{type:c.Input,args:["inverse"]}],boundaryGap:[{type:c.Input,args:["boundaryGap"]}],min:[{type:c.Input,args:["min"]}],max:[{type:c.Input,args:["max"]}],scale:[{type:c.Input,args:["scale"]}],minInterval:[{type:c.Input,args:["minInterval"]}],interval:[{type:c.Input,args:["interval"]}],logBase:[{type:c.Input,args:["logBase"]}],silent:[{type:c.Input,args:["silent"]}],triggerEvent:[{type:c.Input,args:["triggerEvent"]}],axisLine:[{type:c.Input,args:["axisLine"]}],axisTick:[{type:c.Input,args:["axisTick"]}],axisLabel:[{type:c.Input,args:["axisLabel"]}],splitLine:[{type:c.Input,args:["splitLine"]}],splitArea:[{type:c.Input,args:["splitArea"]}],data:[{type:c.Input,args:["data"]}],axisPointer:[{type:c.Input,args:["axisPointer"]}],zlevel:[{type:c.Input,args:["zlevel"]}],z:[{type:c.Input,args:["z"]}]},t}(),S=function(e){function t(t){return e.call(this,"xAxis",t)||this}return I(t,e),t.decorators=[{type:c.Component,args:[{selector:"td-chart-x-axis",template:"",changeDetection:c.ChangeDetectionStrategy.OnPush}]}],t.ctorParameters=function(){return[{type:g}]},t.propDecorators={position:[{type:c.Input,args:["position"]}]},t}(_),O=function(e){function t(t){return e.call(this,"yAxis",t)||this}return I(t,e),t.decorators=[{type:c.Component,args:[{selector:"td-chart-y-axis",template:"",changeDetection:c.ChangeDetectionStrategy.OnPush}]}],t.ctorParameters=function(){return[{type:g}]},t.propDecorators={position:[{type:c.Input,args:["position"]}]},t}(_),T=[v,S,O],k=function(){function t(){}return t.decorators=[{type:c.NgModule,args:[{imports:[l.CommonModule],declarations:[T],exports:[T]}]}],t}(),D=function(){function t(t,e){this.optionsService=e,this._state={},this._options={},this.config={},this._type=t}return Object.defineProperty(t.prototype,"type",{get:function(){return this._type},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){this._setOptions()},t.prototype.ngOnChanges=function(){this._setOptions()},t.prototype.ngOnDestroy=function(){this._removeOption()},t.prototype.setStateOption=function(t,e){this._options[t]=e,this._setOptions()},t.prototype.removeStateOption=function(t){this._options[t]=null,this._setOptions()},t.prototype._setOptions=function(){var t=x(this._state,{id:this.id,type:this.type,name:this.name,color:this.color,data:this.data,animation:this.animation,animationThreshold:this.animationThreshold,animationDuration:this.animationDuration,animationEasing:this.animationEasing,animationDelay:this.animationDelay,animationDurationUpdate:this.animationDurationUpdate,animationEasingUpdate:this.animationEasingUpdate,animationDelayUpdate:this.animationDelayUpdate,tooltip:this.tooltip},this.getConfig(),this._options,this.config?this.config:{});this.optionsService.setArrayOption("series",t)},t.prototype._removeOption=function(){this.optionsService.removeArrayOption("series",this._state)},t.propDecorators={config:[{type:c.Input,args:["config"]}],id:[{type:c.Input,args:["id"]}],name:[{type:c.Input,args:["name"]}],color:[{type:c.Input,args:["color"]}],data:[{type:c.Input,args:["data"]}],animation:[{type:c.Input,args:["animation"]}],animationThreshold:[{type:c.Input,args:["animationThreshold"]}],animationDuration:[{type:c.Input,args:["animationDuration"]}],animationEasing:[{type:c.Input,args:["animationEasing"]}],animationDelay:[{type:c.Input,args:["animationDelay"]}],animationDurationUpdate:[{type:c.Input,args:["animationDurationUpdate"]}],animationEasingUpdate:[{type:c.Input,args:["animationEasingUpdate"]}],animationDelayUpdate:[{type:c.Input,args:["animationDelayUpdate"]}],tooltip:[{type:c.Input,args:["tooltip"]}]},t}(),w=function(e){function t(t){return e.call(this,"bar",t)||this}return I(t,e),t.prototype.getConfig=function(){return{coordinateSystem:this.coordinateSystem,xAxisIndex:this.xAxisIndex,yAxisIndex:this.yAxisIndex,legendHoverLink:this.legendHoverLink,stack:this.stack,cursor:this.cursor,label:this.label,itemStyle:this.itemStyle,emphasis:this.emphasis,barWidth:this.barWidth,barMaxWidth:this.barMaxWidth,barMinHeight:this.barMinHeight,barGap:this.barGap,barCategoryGap:this.barCategoryGap,large:this.large,largeThreshold:this.largeThreshold,progressive:this.progressive,progressiveThreshold:this.progressiveThreshold,progressiveChunkMode:this.progressiveChunkMode,dimensions:this.dimensions,encode:this.encode,seriesLayoutBy:this.seriesLayoutBy,datasetIndex:this.datasetIndex,markPoint:this.markPoint,markLine:this.markLine,markArea:this.markArea,zlevel:this.zlevel,z:this.z}},t.decorators=[{type:c.Component,args:[{selector:"td-chart-series[td-bar]",template:"",changeDetection:c.ChangeDetectionStrategy.OnPush,providers:[{provide:y.TdSeriesComponent,useExisting:c.forwardRef(function(){return t})}]}]}],t.ctorParameters=function(){return[{type:y.TdChartOptionsService}]},t.propDecorators={coordinateSystem:[{type:c.Input,args:["coordinateSystem"]}],xAxisIndex:[{type:c.Input,args:["xAxisIndex"]}],yAxisIndex:[{type:c.Input,args:["yAxisIndex"]}],legendHoverLink:[{type:c.Input,args:["legendHoverLink"]}],stack:[{type:c.Input,args:["stack"]}],cursor:[{type:c.Input,args:["cursor"]}],label:[{type:c.Input,args:["label"]}],itemStyle:[{type:c.Input,args:["itemStyle"]}],emphasis:[{type:c.Input,args:["emphasis"]}],barWidth:[{type:c.Input,args:["barWidth"]}],barMaxWidth:[{type:c.Input,args:["barMaxWidth"]}],barMinHeight:[{type:c.Input,args:["barMinHeight"]}],barGap:[{type:c.Input,args:["barGap"]}],barCategoryGap:[{type:c.Input,args:["barCategoryGap"]}],large:[{type:c.Input,args:["large"]}],largeThreshold:[{type:c.Input,args:["largeThreshold"]}],progressive:[{type:c.Input,args:["progressive"]}],progressiveThreshold:[{type:c.Input,args:["progressiveThreshold"]}],progressiveChunkMode:[{type:c.Input,args:["progressiveChunkMode"]}],dimensions:[{type:c.Input,args:["dimensions"]}],encode:[{type:c.Input,args:["encode"]}],seriesLayoutBy:[{type:c.Input,args:["seriesLayoutBy"]}],datasetIndex:[{type:c.Input,args:["datasetIndex"]}],markPoint:[{type:c.Input,args:["markPoint"]}],markLine:[{type:c.Input,args:["markLine"]}],markArea:[{type:c.Input,args:["markArea"]}],zlevel:[{type:c.Input,args:["zlevel"]}],z:[{type:c.Input,args:["z"]}]},t}(y.TdSeriesComponent),A=[w],E=function(){function t(){}return t.decorators=[{type:c.NgModule,args:[{imports:[l.CommonModule],declarations:[A],exports:[A]}]}],t}(),z=function(e){function t(t){return e.call(this,"line",t)||this}return I(t,e),t.prototype.getConfig=function(){return{coordinateSystem:this.coordinateSystem,xAxisIndex:this.xAxisIndex,yAxisIndex:this.yAxisIndex,polarIndex:this.polarIndex,symbol:this.symbol,symbolSize:this.symbolSize,symbolRotate:this.symbolRotate,symbolKeepAspect:this.symbolKeepAspect,symbolOffset:this.symbolOffset,showSymbol:this.showSymbol,showAllSymbol:this.showAllSymbol,hoverAnimation:this.hoverAnimation,legendHoverLink:this.legendHoverLink,stack:this.stack,cursor:this.cursor,connectNulls:this.connectNulls,clipOverflow:this.clipOverflow,step:this.step,label:this.label,itemStyle:this.itemStyle,lineStyle:this.lineStyle,areaStyle:this.areaStyle,emphasis:this.emphasis,smooth:this.smooth,smoothMonotone:this.smoothMonotone,sampling:this.sampling,dimensions:this.dimensions,encode:this.encode,seriesLayoutBy:this.seriesLayoutBy,datasetIndex:this.datasetIndex,markPoint:this.markPoint,markLine:this.markLine,markArea:this.markArea,zlevel:this.zlevel,z:this.z,silent:this.silent}},t.decorators=[{type:c.Component,args:[{selector:"td-chart-series[td-line]",template:"",changeDetection:c.ChangeDetectionStrategy.OnPush,providers:[{provide:y.TdSeriesComponent,useExisting:c.forwardRef(function(){return t})}]}]}],t.ctorParameters=function(){return[{type:y.TdChartOptionsService}]},t.propDecorators={coordinateSystem:[{type:c.Input,args:["coordinateSystem"]}],xAxisIndex:[{type:c.Input,args:["xAxisIndex"]}],yAxisIndex:[{type:c.Input,args:["yAxisIndex"]}],polarIndex:[{type:c.Input,args:["polarIndex"]}],symbol:[{type:c.Input,args:["symbol"]}],symbolSize:[{type:c.Input,args:["symbolSize"]}],symbolRotate:[{type:c.Input,args:["symbolRotate"]}],symbolKeepAspect:[{type:c.Input,args:["symbolKeepAspect"]}],symbolOffset:[{type:c.Input,args:["symbolOffset"]}],showSymbol:[{type:c.Input,args:["showSymbol"]}],showAllSymbol:[{type:c.Input,args:["showAllSymbol"]}],hoverAnimation:[{type:c.Input,args:["hoverAnimation"]}],legendHoverLink:[{type:c.Input,args:["legendHoverLink"]}],stack:[{type:c.Input,args:["stack"]}],cursor:[{type:c.Input,args:["cursor"]}],connectNulls:[{type:c.Input,args:["connectNulls"]}],clipOverflow:[{type:c.Input,args:["clipOverflow"]}],step:[{type:c.Input,args:["step"]}],label:[{type:c.Input,args:["label"]}],itemStyle:[{type:c.Input,args:["itemStyle"]}],lineStyle:[{type:c.Input,args:["lineStyle"]}],areaStyle:[{type:c.Input,args:["areaStyle"]}],emphasis:[{type:c.Input,args:["emphasis"]}],smooth:[{type:c.Input,args:["smooth"]}],smoothMonotone:[{type:c.Input,args:["smoothMonotone"]}],sampling:[{type:c.Input,args:["sampling"]}],dimensions:[{type:c.Input,args:["dimensions"]}],encode:[{type:c.Input,args:["encode"]}],seriesLayoutBy:[{type:c.Input,args:["seriesLayoutBy"]}],datasetIndex:[{type:c.Input,args:["datasetIndex"]}],markPoint:[{type:c.Input,args:["markPoint"]}],markLine:[{type:c.Input,args:["markLine"]}],markArea:[{type:c.Input,args:["markArea"]}],zlevel:[{type:c.Input,args:["zlevel"]}],z:[{type:c.Input,args:["z"]}],silent:[{type:c.Input,args:["silent"]}]},t}(y.TdSeriesComponent),L=[z],R=function(){function t(){}return t.decorators=[{type:c.NgModule,args:[{imports:[l.CommonModule],declarations:[L],exports:[L]}]}],t}(),M=function(e){function t(t){return e.call(this,"scatter",t)||this}return I(t,e),t.prototype.getConfig=function(){return{coordinateSystem:this.coordinateSystem,xAxisIndex:this.xAxisIndex,yAxisIndex:this.yAxisIndex,polarIndex:this.polarIndex,geoIndex:this.geoIndex,calendarIndex:this.calendarIndex,hoverAnimation:this.hoverAnimation,legendHoverLink:this.legendHoverLink,symbol:this.symbol,symbolSize:this.symbolSize,symbolRotate:this.symbolRotate,symbolKeepAspect:this.symbolKeepAspect,symbolOffset:this.symbolOffset,large:this.large,largeThreshold:this.largeThreshold,cursor:this.cursor,label:this.label,itemStyle:this.itemStyle,emphasis:this.emphasis,progressive:this.progressive,progressiveThreshold:this.progressiveThreshold,dimensions:this.dimensions,encode:this.encode,seriesLayoutBy:this.seriesLayoutBy,datasetIndex:this.datasetIndex,markPoint:this.markPoint,markLine:this.markLine,markArea:this.markArea,zlevel:this.zlevel,z:this.z,silent:this.silent}},t.decorators=[{type:c.Component,args:[{selector:"td-chart-series[td-scatter]",template:"",changeDetection:c.ChangeDetectionStrategy.OnPush,providers:[{provide:y.TdSeriesComponent,useExisting:c.forwardRef(function(){return t})}]}]}],t.ctorParameters=function(){return[{type:y.TdChartOptionsService}]},t.propDecorators={coordinateSystem:[{type:c.Input,args:["coordinateSystem"]}],xAxisIndex:[{type:c.Input,args:["xAxisIndex"]}],yAxisIndex:[{type:c.Input,args:["yAxisIndex"]}],polarIndex:[{type:c.Input,args:["polarIndex"]}],geoIndex:[{type:c.Input,args:["geoIndex"]}],calendarIndex:[{type:c.Input,args:["calendarIndex"]}],hoverAnimation:[{type:c.Input,args:["hoverAnimation"]}],legendHoverLink:[{type:c.Input,args:["legendHoverLink"]}],symbol:[{type:c.Input,args:["symbol"]}],symbolSize:[{type:c.Input,args:["symbolSize"]}],symbolRotate:[{type:c.Input,args:["symbolRotate"]}],symbolKeepAspect:[{type:c.Input,args:["symbolKeepAspect"]}],symbolOffset:[{type:c.Input,args:["symbolOffset"]}],large:[{type:c.Input,args:["large"]}],largeThreshold:[{type:c.Input,args:["largeThreshold"]}],cursor:[{type:c.Input,args:["cursor"]}],label:[{type:c.Input,args:["label"]}],itemStyle:[{type:c.Input,args:["itemStyle"]}],emphasis:[{type:c.Input,args:["emphasis"]}],progressive:[{type:c.Input,args:["progressive"]}],progressiveThreshold:[{type:c.Input,args:["progressiveThreshold"]}],dimensions:[{type:c.Input,args:["dimensions"]}],encode:[{type:c.Input,args:["encode"]}],seriesLayoutBy:[{type:c.Input,args:["seriesLayoutBy"]}],datasetIndex:[{type:c.Input,args:["datasetIndex"]}],markPoint:[{type:c.Input,args:["markPoint"]}],markLine:[{type:c.Input,args:["markLine"]}],markArea:[{type:c.Input,args:["markArea"]}],zlevel:[{type:c.Input,args:["zlevel"]}],z:[{type:c.Input,args:["z"]}],silent:[{type:c.Input,args:["silent"]}]},t}(y.TdSeriesComponent),P=[M],j=function(){function t(){}return t.decorators=[{type:c.NgModule,args:[{imports:[l.CommonModule],declarations:[P],exports:[P]}]}],t}(),B=function(e){function t(t){return e.call(this,"tree",t)||this}return I(t,e),t.prototype.getConfig=function(){return{zlevel:this.zlevel,z:this.z,left:this.left,top:this.top,right:this.right,bottom:this.bottom,width:this.width,height:this.height,layout:this.layout,orient:this.orient,symbol:this.symbol,symbolSize:this.symbolSize,symbolRotate:this.symbolRotate,symbolKeepAspect:this.symbolKeepAspect,roam:this.roam,expandAndCollapse:this.expandAndCollapse,initialTreeDepth:this.initialTreeDepth,itemStyle:this.itemStyle,label:this.label,lineStyle:this.lineStyle,leaves:this.leaves,emphasis:this.emphasis}},t.decorators=[{type:c.Component,args:[{selector:"td-chart-series[td-tree]",template:"",changeDetection:c.ChangeDetectionStrategy.OnPush,providers:[{provide:y.TdSeriesComponent,useExisting:c.forwardRef(function(){return t})}]}]}],t.ctorParameters=function(){return[{type:y.TdChartOptionsService}]},t.propDecorators={zlevel:[{type:c.Input,args:["zlevel"]}],z:[{type:c.Input,args:["z"]}],left:[{type:c.Input,args:["left"]}],top:[{type:c.Input,args:["top"]}],right:[{type:c.Input,args:["right"]}],bottom:[{type:c.Input,args:["bottom"]}],width:[{type:c.Input,args:["width"]}],height:[{type:c.Input,args:["height"]}],layout:[{type:c.Input,args:["layout"]}],orient:[{type:c.Input,args:["orient"]}],symbol:[{type:c.Input,args:["symbol"]}],symbolSize:[{type:c.Input,args:["symbolSize"]}],symbolRotate:[{type:c.Input,args:["symbolRotate"]}],symbolKeepAspect:[{type:c.Input,args:["symbolKeepAspect"]}],roam:[{type:c.Input,args:["roam"]}],expandAndCollapse:[{type:c.Input,args:["expandAndCollapse"]}],initialTreeDepth:[{type:c.Input,args:["initialTreeDepth"]}],itemStyle:[{type:c.Input,args:["itemStyle"]}],label:[{type:c.Input,args:["label"]}],lineStyle:[{type:c.Input,args:["lineStyle"]}],leaves:[{type:c.Input,args:["leaves"]}],emphasis:[{type:c.Input,args:["emphasis"]}]},t}(y.TdSeriesComponent),U=[B],N=function(){function t(){}return t.decorators=[{type:c.NgModule,args:[{imports:[l.CommonModule],declarations:[U],exports:[U]}]}],t}(),F=function J(){},H=function(){function t(){}return t.decorators=[{type:c.Directive,args:[{selector:"ng-template[tdTooltipFormatter]"}]}],t}(),G=function(){function t(t,e,n){this._changeDetectorRef=t,this._elementRef=e,this._optionsService=n,this._state={},this._context=new F,this.config={},this.show=!0,this.trigger="axis",this.showContent=!0,this.alwaysShowContent=!1,this.triggerOn="mousemove|click",this.showDelay=0,this.hideDelay=0,this.enterable=!1,this.confine=!1,this.transitionDuration=.5,this.backgroundColor="rgba(50,50,50,0.7)",this.borderColor="#333",this.borderWidth=0,this.padding=5,this.textStyle={color:"#FFF"}}return t.prototype.ngOnChanges=function(){this._setOptions()},t.prototype.ngOnDestroy=function(){this._removeOption()},t.prototype._setOptions=function(){var t=y.assignDefined(this._state,{show:this.show,trigger:this.trigger,axisPointer:this.axisPointer,showContent:this.showContent,alwaysShowContent:this.alwaysShowContent,triggerOn:this.triggerOn,showDelay:this.showDelay,hideDelay:this.hideDelay,enterable:this.enterable,confine:this.confine,transitionDuration:this.transitionDuration,position:this.position,formatter:this.formatter?this.formatter:this.formatterTemplate?this._formatter():undefined,backgroundColor:this.backgroundColor,borderColor:this.borderColor,borderWidth:this.borderWidth,padding:this.padding,textStyle:this.textStyle,extraCssText:this.extraCssText},this.config?this.config:{});this._optionsService.setOption("tooltip",t)},t.prototype._removeOption=function(){this._optionsService.clearOption("tooltip")},t.prototype._formatter=function(){var i=this;return function(t,e,n){return i._context={$implicit:t,ticket:e},setTimeout(function(){n(e,i._elementRef.nativeElement.innerHTML)}),i._changeDetectorRef.markForCheck(),i._elementRef.nativeElement.innerHTML}},t.decorators=[{type:c.Component,args:[{selector:"td-chart-tooltip",template:'<ng-template #tooltipContent\n [ngTemplateOutlet]="formatterTemplate"\n [ngTemplateOutletContext]="_context">\n</ng-template>',changeDetection:c.ChangeDetectionStrategy.OnPush}]}],t.ctorParameters=function(){return[{type:c.ChangeDetectorRef},{type:c.ElementRef},{type:y.TdChartOptionsService}]},t.propDecorators={config:[{type:c.Input,args:["config"]}],show:[{type:c.Input,args:["show"]}],trigger:[{type:c.Input,args:["trigger"]}],axisPointer:[{type:c.Input,args:["axisPointer"]}],showContent:[{type:c.Input,args:["showContent"]}],alwaysShowContent:[{type:c.Input,args:["alwaysShowContent"]}],triggerOn:[{type:c.Input,args:["triggerOn"]}],showDelay:[{type:c.Input,args:["showDelay"]}],hideDelay:[{type:c.Input,args:["hideDelay"]}],enterable:[{type:c.Input,args:["enterable"]}],renderMode:[{type:c.Input,args:["renderMode"]}],confine:[{type:c.Input,args:["confine"]}],transitionDuration:[{type:c.Input,args:["transitionDuration"]}],position:[{type:c.Input,args:["position"]}],formatter:[{type:c.Input,args:["formatter"]}],backgroundColor:[{type:c.Input,args:["backgroundColor"]}],borderColor:[{type:c.Input,args:["borderColor"]}],borderWidth:[{type:c.Input,args:["borderWidth"]}],padding:[{type:c.Input,args:["padding"]}],textStyle:[{type:c.Input,args:["textStyle"]}],extraCssText:[{type:c.Input,args:["extraCssText"]}],formatterTemplate:[{type:c.ContentChild,args:[H,{read:c.TemplateRef}]}],fullTemplate:[{type:c.ViewChild,args:["tooltipContent"]}]},t}(),W=function(){function t(t,e,n){this._changeDetectorRef=t,this._elementRef=e,this._seriesComponent=n,this._state={},this._context=new F,this.backgroundColor="rgba(50,50,50,0.7)",this.borderColor="#333",this.borderWidth=0,this.padding=5,this.textStyle={color:"#FFF"}}return t.prototype.ngOnChanges=function(){this._setOptions()},t.prototype.ngOnDestroy=function(){this._removeOption()},t.prototype._setOptions=function(){var t=y.assignDefined(this._state,{position:this.position,backgroundColor:this.backgroundColor,borderColor:this.borderColor,borderWidth:this.borderWidth,padding:this.padding,textStyle:this.textStyle,extraCssText:this.extraCssText,formatter:this.formatter?this.formatter:this.formatterTemplate?this._formatter():undefined},this.config?this.config:{});this._seriesComponent.setStateOption("tooltip",t)},t.prototype._formatter=function(){var i=this;return function(t,e,n){return i._context={$implicit:t,ticket:e},setTimeout(function(){n(e,i._elementRef.nativeElement.innerHTML)}),i._changeDetectorRef.markForCheck(),i._elementRef.nativeElement.innerHTML}},t.prototype._removeOption=function(){this._seriesComponent.removeStateOption("tooltip")},t.decorators=[{type:c.Component,args:[{selector:"td-chart-series-tooltip",template:'<ng-template #tooltipContent\n [ngTemplateOutlet]="formatterTemplate"\n [ngTemplateOutletContext]="_context">\n</ng-template>',changeDetection:c.ChangeDetectionStrategy.OnPush}]}],t.ctorParameters=function(){return[{type:c.ChangeDetectorRef},{type:c.ElementRef},{type:y.TdSeriesComponent}]},t.propDecorators={config:[{type:c.Input,args:["config"]}],formatter:[{type:c.Input,args:["formatter"]}],position:[{type:c.Input,args:["position"]}],backgroundColor:[{type:c.Input,args:["backgroundColor"]}],borderColor:[{type:c.Input,args:["borderColor"]}],borderWidth:[{type:c.Input,args:["borderWidth"]}],padding:[{type:c.Input,args:["padding"]}],textStyle:[{type:c.Input,args:["textStyle"]}],extraCssText:[{type:c.Input,args:["extraCssText"]}],formatterTemplate:[{type:c.ContentChild,args:[H,{read:c.TemplateRef}]}],fullTemplate:[{type:c.ViewChild,args:["tooltipContent"]}]},t}(),q=[G,H,W],V=function(){function t(){}return t.decorators=[{type:c.NgModule,args:[{imports:[l.CommonModule],declarations:[q],exports:[q]}]}],t}(),K=function(){function t(){}return t.decorators=[{type:c.Directive,args:[{selector:"ng-template[tdViewDataFormatter]"}]}],t}(),X=function(){function t(t,e,n){this._changeDetectorRef=t,this._elementRef=e,this._optionsService=n,this._state={},this.config={},this.show=!0,this.showTitle=!0,this.transitionDuration=.5,this.left="auto",this.top="auto",this.right="auto",this.bottom="auto",this.width="auto",this.height="auto"}return t.prototype.ngOnChanges=function(){this._setOptions()},t.prototype.ngOnDestroy=function(){this._removeOption()},t.prototype._setOptions=function(){this._checkFormatterTemplate();var t=y.assignDefined(this._state,{show:this.show,name:this.trigger,orient:this.orient,itemSize:this.itemSize,itemGap:this.itemGap,showTitle:this.showTitle,label:this.label,feature:this.feature,iconStyle:this.iconStyle,zlevel:this.zlevel,z:this.z,transitionDuration:this.transitionDuration,left:this.left,top:this.top,right:this.right,bottom:this.bottom,width:this.width,height:this.height},this.config?this.config:{});this._optionsService.setOption("toolbox",t)},t.prototype._removeOption=function(){this._optionsService.clearOption("toolbox")},t.prototype._checkFormatterTemplate=function(){this.formatterTemplate&&(this.feature=b({},this.feature,{dataView:b({},this.feature.dataView,{optionToContent:this._optionToContentFormatter()})}))},t.prototype._optionToContentFormatter=function(){var t=this;return function(){return t._changeDetectorRef.markForCheck(),t._elementRef.nativeElement.innerHTML}},t.decorators=[{type:c.Component,args:[{selector:"td-chart-toolbox",template:'<ng-template #toolboxContent\n [ngTemplateOutlet]="formatterTemplate">\n</ng-template>',changeDetection:c.ChangeDetectionStrategy.OnPush}]}],t.ctorParameters=function(){return[{type:c.ChangeDetectorRef},{type:c.ElementRef},{type:y.TdChartOptionsService}]},t.propDecorators={config:[{type:c.Input,args:["config"]}],show:[{type:c.Input,args:["show"]}],trigger:[{type:c.Input,args:["name"]}],orient:[{type:c.Input,args:["orient"]}],itemSize:[{type:c.Input,args:["itemSize"]}],itemGap:[{type:c.Input,args:["itemGap"]}],showTitle:[{type:c.Input,args:["showTitle"]}],label:[{type:c.Input,args:["label"]}],feature:[{type:c.Input,args:["feature"]}],iconStyle:[{type:c.Input,args:["iconStyle"]}],zlevel:[{type:c.Input,args:["zlevel"]}],z:[{type:c.Input,args:["z"]}],transitionDuration:[{type:c.Input,args:["transitionDuration"]}],left:[{type:c.Input,args:["left"]}],top:[{type:c.Input,args:["top"]}],right:[{type:c.Input,args:["right"]}],bottom:[{type:c.Input,args:["bottom"]}],width:[{type:c.Input,args:["width"]}],height:[{type:c.Input,args:["height"]}],formatterTemplate:[{type:c.ContentChild,args:[K,{read:c.TemplateRef}]}],fullTemplate:[{type:c.ViewChild,args:["toolboxContent"]}]},t}(),$=[X,K],Y=function(){function t(){}return t.decorators=[{type:c.NgModule,args:[{imports:[l.CommonModule],declarations:[$],exports:[$]}]}],t}();t.TdChartComponent=v,t.TdChartAxisComponent=_,t.TdChartYAxisComponent=O,t.TdChartXAxisComponent=S,t.TdChartOptionsService=g,t.CHART_PROVIDER=d,t.BASE_MODULE_COMPONENTS=T,t.CovalentBaseEchartsModule=k,t.assignDefined=x,t.TdSeriesComponent=D,t.BAR_MODULE_COMPONENTS=A,t.CovalentBarEchartsModule=E,t.TdChartSeriesBarComponent=w,t.LINE_MODULE_COMPONENTS=L,t.CovalentLineEchartsModule=R,t.TdChartSeriesLineComponent=z,t.SCATTER_MODULE_COMPONENTS=P,t.CovalentScatterEchartsModule=j,t.TdChartSeriesScatterComponent=M,t.TREE_MODULE_COMPONENTS=U,t.CovalentTreeEchartsModule=N,t.TdChartSeriesTreeComponent=B,t.TOOLTIP_MODULE_COMPONENTS=q,t.CovalentTooltipEchartsModule=V,t.TdTooltipContext=F,t.TdChartTooltipFormatterDirective=H,t.TdChartTooltipComponent=G,t.TdSeriesTooltipComponent=W,t.TOOLBOX_MODULE_COMPONENTS=$,t.CovalentToolboxEchartsModule=Y,t.TdChartViewDataFormatterDirective=K,t.TdChartToolboxComponent=X,t.ɵa=m,Object.defineProperty(t,"__esModule",{value:!0})}); //# sourceMappingURL=covalent-echarts.umd.min.js.map