@covalent/echarts 3.2.1 → 3.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/covalent-echarts-toolbox.umd.js +4 -4
- package/bundles/covalent-echarts-toolbox.umd.js.map +1 -1
- package/bundles/covalent-echarts-toolbox.umd.min.js +1 -1
- package/bundles/covalent-echarts-toolbox.umd.min.js.map +1 -1
- package/bundles/covalent-echarts-tooltip.umd.js +4 -4
- package/bundles/covalent-echarts-tooltip.umd.js.map +1 -1
- package/bundles/covalent-echarts-tooltip.umd.min.js +1 -1
- package/bundles/covalent-echarts-tooltip.umd.min.js.map +1 -1
- package/bundles/covalent-echarts-wordcloud.umd.js +4 -4
- package/bundles/covalent-echarts-wordcloud.umd.js.map +1 -1
- package/bundles/covalent-echarts-wordcloud.umd.min.js +2 -2
- package/bundles/covalent-echarts-wordcloud.umd.min.js.map +1 -1
- package/esm2015/toolbox/toolbox.module.js +1 -2
- package/esm2015/tooltip/tooltip.module.js +1 -2
- package/esm2015/wordcloud/wordcloud.module.js +1 -2
- package/fesm2015/covalent-echarts-toolbox.js +0 -1
- package/fesm2015/covalent-echarts-toolbox.js.map +1 -1
- package/fesm2015/covalent-echarts-tooltip.js +0 -1
- package/fesm2015/covalent-echarts-tooltip.js.map +1 -1
- package/fesm2015/covalent-echarts-wordcloud.js +0 -1
- package/fesm2015/covalent-echarts-wordcloud.js.map +1 -1
- package/package.json +1 -1
- package/toolbox/covalent-echarts-toolbox.metadata.json +1 -1
- package/toolbox/toolbox.module.d.ts +0 -1
- package/tooltip/covalent-echarts-tooltip.metadata.json +1 -1
- package/tooltip/tooltip.module.d.ts +0 -1
- package/wordcloud/covalent-echarts-wordcloud.metadata.json +1 -1
- package/wordcloud/wordcloud.module.d.ts +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@covalent/echarts/toolbox', ['exports', '@angular/core', '@angular/common', '
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.covalent = global.covalent || {}, global.covalent.echarts = global.covalent.echarts || {}, global.covalent.echarts.toolbox = {}), global.ng.core, global.ng.common,
|
|
5
|
-
}(this, (function (exports, core, common,
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@covalent/echarts/base')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@covalent/echarts/toolbox', ['exports', '@angular/core', '@angular/common', '@covalent/echarts/base'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.covalent = global.covalent || {}, global.covalent.echarts = global.covalent.echarts || {}, global.covalent.echarts.toolbox = {}), global.ng.core, global.ng.common, global.covalent.echarts.base));
|
|
5
|
+
}(this, (function (exports, core, common, base) { 'use strict';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* @fileoverview added by tsickle
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"covalent-echarts-toolbox.umd.js","sources":["../../../../src/platform/echarts/toolbox/toolbox.component.ts","../../../../src/platform/echarts/toolbox/toolbox.module.ts"],"sourcesContent":["import {\n Component,\n Input,\n Directive,\n TemplateRef,\n ChangeDetectionStrategy,\n ElementRef,\n ChangeDetectorRef,\n OnChanges,\n ContentChild,\n ViewChild,\n OnDestroy,\n} from '@angular/core';\n\nimport {\n TdChartOptionsService,\n assignDefined,\n ITdLabel,\n ITdShadow,\n ITdItemStyle,\n TdTextPosition,\n TdTextAlign,\n} from '@covalent/echarts/base';\n\nexport type TdToolboxOrient = 'horizontal' | 'vertical';\nexport type TdImageType = 'png' | 'jpeg';\n\nexport interface ITdAcceptedBrushTypes {\n rect?: string;\n polygon?: string;\n lineX?: string;\n lineY?: string;\n keep?: string;\n clear?: string;\n}\n\nexport interface ITdAcceptedMagicTypes {\n line?: string;\n bar?: string;\n stack?: string;\n tiled?: string;\n}\n\nexport interface ITdToolboxIconEmphasis extends ITdItemStyle, ITdShadow {}\n\nexport interface ITdFeatureIconStyle extends ITdItemStyle, ITdShadow {\n textPosition?: TdTextPosition;\n textAlign?: TdTextAlign;\n emphasis?: ITdToolboxIconEmphasis;\n}\n\nexport interface ITdZoomTitles {\n zoom?: string;\n back?: string;\n}\n\nexport interface ITdSaveAsImage {\n type?: TdImageType;\n name?: string;\n backgroundColor?: any;\n excludeComponents?: string[]; // defaults to ['toolbox']\n show?: boolean;\n title?: string;\n icon?: string;\n iconStyle?: ITdFeatureIconStyle;\n pixelRatio?: number;\n}\n\nexport interface ITdRestore {\n show?: boolean;\n title?: string;\n icon?: string;\n iconStyle?: ITdFeatureIconStyle;\n}\n\nexport interface ITdDataView {\n show?: boolean;\n title?: string;\n icon?: string;\n iconStyle?: ITdFeatureIconStyle;\n readOnly?: boolean;\n optionToContent?: Function;\n contentToOption?: Function;\n lang?: string[]; // Defaults to Chinese, there are 3 names in data view, which are ['data view', 'turn off' and 'refresh'].\n textareaColor?: string;\n textareaBorderColor?: string;\n textColor?: string;\n buttonColor?: string;\n buttonTextColor?: string;\n}\n\nexport interface ITdDataZoom {\n show?: boolean;\n title?: ITdZoomTitles;\n icon?: ITdZoomTitles;\n iconStyle?: ITdFeatureIconStyle;\n xAxisIndex?: number | number[] | boolean;\n yAxisIndex?: number | number[] | boolean;\n}\n\nexport interface ITdMagicType {\n show?: boolean;\n type?: string[]; // only expects 'line' | 'bar' | 'stack' | 'tiled';\n title?: ITdAcceptedMagicTypes;\n icon?: ITdAcceptedMagicTypes;\n iconStyle?: ITdFeatureIconStyle;\n option?: {\n line?: object;\n bar?: object;\n stack?: object;\n tiled?: object;\n };\n seriesIndex?: {\n line?: any[];\n bar?: any[];\n stack?: any[];\n tiled?: any[];\n };\n}\n\nexport interface ITdBrush {\n type?: any[];\n icon?: ITdAcceptedBrushTypes;\n title?: ITdAcceptedBrushTypes;\n}\n\nexport interface ITdToolboxFeature {\n saveAsImage?: ITdSaveAsImage;\n restore?: ITdRestore;\n dataView?: ITdDataView;\n dataZoom?: ITdDataZoom;\n magicType?: ITdMagicType;\n brush?: ITdBrush;\n}\n\n@Directive({\n selector: 'ng-template[tdViewDataFormatter]',\n})\nexport class TdChartViewDataFormatterDirective {}\n\n@Component({\n selector: 'td-chart-toolbox',\n templateUrl: './toolbox.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TdChartToolboxComponent implements OnChanges, OnDestroy {\n private _state: any = {};\n\n @Input() config: any = {};\n\n @Input() show: boolean = true;\n @Input() trigger: string;\n @Input() orient: TdToolboxOrient;\n @Input() itemSize: number;\n @Input() itemGap: number;\n @Input() showTitle: boolean = true;\n @Input() label: ITdLabel;\n @Input() feature: ITdToolboxFeature;\n @Input() iconStyle: ITdFeatureIconStyle;\n @Input() zlevel: number;\n @Input() z: number;\n @Input() transitionDuration: number = 0.5;\n @Input() left: string | number = 'auto';\n @Input() top: string | number = 'auto';\n @Input() right: string | number = 'auto';\n @Input() bottom: string | number = 'auto';\n @Input() width: string | number = 'auto';\n @Input() height: string | number = 'auto';\n\n @ContentChild(TdChartViewDataFormatterDirective, { read: TemplateRef })\n formatterTemplate: TemplateRef<any>;\n @ViewChild('toolboxContent', { static: true }) fullTemplate: TemplateRef<any>;\n\n constructor(\n private _changeDetectorRef: ChangeDetectorRef,\n private _elementRef: ElementRef,\n private _optionsService: TdChartOptionsService,\n ) {}\n\n ngOnChanges(): void {\n this._setOptions();\n }\n\n ngOnDestroy(): void {\n this._removeOption();\n }\n\n private _setOptions(): void {\n this._checkFormatterTemplate();\n\n const config: any = assignDefined(\n this._state,\n {\n show: this.show,\n name: this.trigger,\n orient: this.orient,\n itemSize: this.itemSize,\n itemGap: this.itemGap,\n showTitle: this.showTitle,\n label: this.label,\n feature: this.feature,\n iconStyle: this.iconStyle,\n zlevel: this.zlevel,\n z: this.z,\n transitionDuration: this.transitionDuration,\n left: this.left,\n top: this.top,\n right: this.right,\n bottom: this.bottom,\n width: this.width,\n height: this.height,\n },\n this.config ? this.config : {},\n );\n // set toolbox configuration in parent chart and render new configurations\n this._optionsService.setOption('toolbox', config);\n }\n\n private _removeOption(): void {\n this._optionsService.clearOption('toolbox');\n }\n\n private _checkFormatterTemplate(): void {\n if (this.formatterTemplate) {\n this.feature = {\n ...this.feature,\n dataView: {\n ...this.feature.dataView,\n optionToContent: this._optionToContentFormatter(),\n },\n };\n }\n }\n\n private _optionToContentFormatter(): () => string {\n return () => {\n this._changeDetectorRef.markForCheck();\n return (<HTMLElement>this._elementRef.nativeElement).innerHTML;\n };\n }\n}\n","import { NgModule, Type } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nimport 'echarts/lib/component/toolbox';\n\nimport { TdChartToolboxComponent, TdChartViewDataFormatterDirective } from './toolbox.component';\n\nexport const TOOLBOX_MODULE_COMPONENTS: Type<any>[] = [TdChartToolboxComponent, TdChartViewDataFormatterDirective];\n\n@NgModule({\n imports: [CommonModule],\n declarations: [TOOLBOX_MODULE_COMPONENTS],\n exports: [TOOLBOX_MODULE_COMPONENTS],\n})\nexport class CovalentToolboxEchartsModule {}\n"],"names":["Directive","assignDefined","Component","ChangeDetectionStrategy","ChangeDetectorRef","ElementRef","TdChartOptionsService","Input","ContentChild","TemplateRef","ViewChild","NgModule","CommonModule"],"mappings":";;;;;;;;;;;;;;wCAkCC;;;QANC,qCAAc;;QACd,wCAAiB;;QACjB,sCAAe;;QACf,sCAAe;;QACf,qCAAc;;QACd,sCAAe;;;;;wCAQhB;;;QAJC,qCAAc;;QACd,oCAAa;;QACb,sCAAe;;QACf,sCAAe;;;;;yCAGyD;;;;sCAMzE;;;QAHC,2CAA8B;;QAC9B,wCAAwB;;QACxB,uCAAkC;;;;;gCAMnC;;;QAFC,6BAAc;;QACd,6BAAc;;;;;iCAaf;;;QATC,8BAAmB;;QACnB,8BAAc;;QACd,y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C,yCAAwB;;QACxB,oCAAmB;;QACnB,qDAA0C;;QAC1C,uCAAwC;;QACxC,sCAAuC;;QACvC,wCAAyC;;QACzC,yCAA0C;;QAC1C,wCAAyC;;QACzC,yCAA0C;;QAE1C,oDACoC;;QACpC,+CAA8E;;;;;QAG5E,qDAA6C;;;;;QAC7C,8CAA+B;;;;;QAC/B,kDAA8C;;;;;;;;;QCzKrC,yBAAyB,GAAgB,CAAC,uBAAuB,EAAE,iCAAiC;;QAOjH;;;;;gBALCC,aAAQ,SAAC;oBACR,OAAO,EAAE,CAACC,mBAAY,CAAC;oBACvB,YAAY,EAAE,CAAC,yBAAyB,CAAC;oBACzC,OAAO,EAAE,CAAC,yBAAyB,CAAC;iBACrC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"covalent-echarts-toolbox.umd.js","sources":["../../../../src/platform/echarts/toolbox/toolbox.component.ts","../../../../src/platform/echarts/toolbox/toolbox.module.ts"],"sourcesContent":["import {\n Component,\n Input,\n Directive,\n TemplateRef,\n ChangeDetectionStrategy,\n ElementRef,\n ChangeDetectorRef,\n OnChanges,\n ContentChild,\n ViewChild,\n OnDestroy,\n} from '@angular/core';\n\nimport {\n TdChartOptionsService,\n assignDefined,\n ITdLabel,\n ITdShadow,\n ITdItemStyle,\n TdTextPosition,\n TdTextAlign,\n} from '@covalent/echarts/base';\n\nexport type TdToolboxOrient = 'horizontal' | 'vertical';\nexport type TdImageType = 'png' | 'jpeg';\n\nexport interface ITdAcceptedBrushTypes {\n rect?: string;\n polygon?: string;\n lineX?: string;\n lineY?: string;\n keep?: string;\n clear?: string;\n}\n\nexport interface ITdAcceptedMagicTypes {\n line?: string;\n bar?: string;\n stack?: string;\n tiled?: string;\n}\n\nexport interface ITdToolboxIconEmphasis extends ITdItemStyle, ITdShadow {}\n\nexport interface ITdFeatureIconStyle extends ITdItemStyle, ITdShadow {\n textPosition?: TdTextPosition;\n textAlign?: TdTextAlign;\n emphasis?: ITdToolboxIconEmphasis;\n}\n\nexport interface ITdZoomTitles {\n zoom?: string;\n back?: string;\n}\n\nexport interface ITdSaveAsImage {\n type?: TdImageType;\n name?: string;\n backgroundColor?: any;\n excludeComponents?: string[]; // defaults to ['toolbox']\n show?: boolean;\n title?: string;\n icon?: string;\n iconStyle?: ITdFeatureIconStyle;\n pixelRatio?: number;\n}\n\nexport interface ITdRestore {\n show?: boolean;\n title?: string;\n icon?: string;\n iconStyle?: ITdFeatureIconStyle;\n}\n\nexport interface ITdDataView {\n show?: boolean;\n title?: string;\n icon?: string;\n iconStyle?: ITdFeatureIconStyle;\n readOnly?: boolean;\n optionToContent?: Function;\n contentToOption?: Function;\n lang?: string[]; // Defaults to Chinese, there are 3 names in data view, which are ['data view', 'turn off' and 'refresh'].\n textareaColor?: string;\n textareaBorderColor?: string;\n textColor?: string;\n buttonColor?: string;\n buttonTextColor?: string;\n}\n\nexport interface ITdDataZoom {\n show?: boolean;\n title?: ITdZoomTitles;\n icon?: ITdZoomTitles;\n iconStyle?: ITdFeatureIconStyle;\n xAxisIndex?: number | number[] | boolean;\n yAxisIndex?: number | number[] | boolean;\n}\n\nexport interface ITdMagicType {\n show?: boolean;\n type?: string[]; // only expects 'line' | 'bar' | 'stack' | 'tiled';\n title?: ITdAcceptedMagicTypes;\n icon?: ITdAcceptedMagicTypes;\n iconStyle?: ITdFeatureIconStyle;\n option?: {\n line?: object;\n bar?: object;\n stack?: object;\n tiled?: object;\n };\n seriesIndex?: {\n line?: any[];\n bar?: any[];\n stack?: any[];\n tiled?: any[];\n };\n}\n\nexport interface ITdBrush {\n type?: any[];\n icon?: ITdAcceptedBrushTypes;\n title?: ITdAcceptedBrushTypes;\n}\n\nexport interface ITdToolboxFeature {\n saveAsImage?: ITdSaveAsImage;\n restore?: ITdRestore;\n dataView?: ITdDataView;\n dataZoom?: ITdDataZoom;\n magicType?: ITdMagicType;\n brush?: ITdBrush;\n}\n\n@Directive({\n selector: 'ng-template[tdViewDataFormatter]',\n})\nexport class TdChartViewDataFormatterDirective {}\n\n@Component({\n selector: 'td-chart-toolbox',\n templateUrl: './toolbox.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TdChartToolboxComponent implements OnChanges, OnDestroy {\n private _state: any = {};\n\n @Input() config: any = {};\n\n @Input() show: boolean = true;\n @Input() trigger: string;\n @Input() orient: TdToolboxOrient;\n @Input() itemSize: number;\n @Input() itemGap: number;\n @Input() showTitle: boolean = true;\n @Input() label: ITdLabel;\n @Input() feature: ITdToolboxFeature;\n @Input() iconStyle: ITdFeatureIconStyle;\n @Input() zlevel: number;\n @Input() z: number;\n @Input() transitionDuration: number = 0.5;\n @Input() left: string | number = 'auto';\n @Input() top: string | number = 'auto';\n @Input() right: string | number = 'auto';\n @Input() bottom: string | number = 'auto';\n @Input() width: string | number = 'auto';\n @Input() height: string | number = 'auto';\n\n @ContentChild(TdChartViewDataFormatterDirective, { read: TemplateRef })\n formatterTemplate: TemplateRef<any>;\n @ViewChild('toolboxContent', { static: true }) fullTemplate: TemplateRef<any>;\n\n constructor(\n private _changeDetectorRef: ChangeDetectorRef,\n private _elementRef: ElementRef,\n private _optionsService: TdChartOptionsService,\n ) {}\n\n ngOnChanges(): void {\n this._setOptions();\n }\n\n ngOnDestroy(): void {\n this._removeOption();\n }\n\n private _setOptions(): void {\n this._checkFormatterTemplate();\n\n const config: any = assignDefined(\n this._state,\n {\n show: this.show,\n name: this.trigger,\n orient: this.orient,\n itemSize: this.itemSize,\n itemGap: this.itemGap,\n showTitle: this.showTitle,\n label: this.label,\n feature: this.feature,\n iconStyle: this.iconStyle,\n zlevel: this.zlevel,\n z: this.z,\n transitionDuration: this.transitionDuration,\n left: this.left,\n top: this.top,\n right: this.right,\n bottom: this.bottom,\n width: this.width,\n height: this.height,\n },\n this.config ? this.config : {},\n );\n // set toolbox configuration in parent chart and render new configurations\n this._optionsService.setOption('toolbox', config);\n }\n\n private _removeOption(): void {\n this._optionsService.clearOption('toolbox');\n }\n\n private _checkFormatterTemplate(): void {\n if (this.formatterTemplate) {\n this.feature = {\n ...this.feature,\n dataView: {\n ...this.feature.dataView,\n optionToContent: this._optionToContentFormatter(),\n },\n };\n }\n }\n\n private _optionToContentFormatter(): () => string {\n return () => {\n this._changeDetectorRef.markForCheck();\n return (<HTMLElement>this._elementRef.nativeElement).innerHTML;\n };\n }\n}\n","import { NgModule, Type } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { TdChartToolboxComponent, TdChartViewDataFormatterDirective } from './toolbox.component';\n\nexport const TOOLBOX_MODULE_COMPONENTS: Type<any>[] = [TdChartToolboxComponent, TdChartViewDataFormatterDirective];\n\n@NgModule({\n imports: [CommonModule],\n declarations: [TOOLBOX_MODULE_COMPONENTS],\n exports: [TOOLBOX_MODULE_COMPONENTS],\n})\nexport class CovalentToolboxEchartsModule {}\n"],"names":["Directive","assignDefined","Component","ChangeDetectionStrategy","ChangeDetectorRef","ElementRef","TdChartOptionsService","Input","ContentChild","TemplateRef","ViewChild","NgModule","CommonModule"],"mappings":";;;;;;;;;;;;;;wCAkCC;;;QANC,qCAAc;;QACd,wCAAiB;;QACjB,sCAAe;;QACf,sCAAe;;QACf,qCAAc;;QACd,sCAAe;;;;;wCAQhB;;;QAJC,qCAAc;;QACd,oCAAa;;QACb,sCAAe;;QACf,sCAAe;;;;;yCAGyD;;;;sCAMzE;;;QAHC,2CAA8B;;QAC9B,wCAAwB;;QACxB,uCAAkC;;;;;gCAMnC;;;QAFC,6BAAc;;QACd,6BAAc;;;;;iCAaf;;;QATC,8BAAmB;;QACnB,8BAAc;;QACd,yCAAsB;;QACtB,2CAA6B;;QAC7B,8BAAe;;QACf,+BAAe;;QACf,8BAAc;;QACd,mCAAgC;;QAChC,oCAAoB;;;;;6BAQrB;;;QAJC,0BAAe;;QACf,2BAAe;;QACf,0BAAc;;QACd,+BAAgC;;;;;8BAiBjC;;;QAbC,2BAAe;;QACf,4BAAe;;QACf,2BAAc;;QACd,gCAAgC;;QAChC,+B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rC,yBAAyB,GAAgB,CAAC,uBAAuB,EAAE,iCAAiC;;QAOjH;;;;;gBALCC,aAAQ,SAAC;oBACR,OAAO,EAAE,CAACC,mBAAY,CAAC;oBACvB,YAAY,EAAE,CAAC,yBAAyB,CAAC;oBACzC,OAAO,EAAE,CAAC,yBAAyB,CAAC;iBACrC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("@angular/common"),require("
|
|
1
|
+
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("@angular/common"),require("@covalent/echarts/base")):"function"==typeof define&&define.amd?define("@covalent/echarts/toolbox",["exports","@angular/core","@angular/common","@covalent/echarts/base"],e):e(((t="undefined"!=typeof globalThis?globalThis:t||self).covalent=t.covalent||{},t.covalent.echarts=t.covalent.echarts||{},t.covalent.echarts.toolbox={}),t.ng.core,t.ng.common,t.covalent.echarts.base)}(this,(function(t,e,o,n){"use strict";var i=function(){};i.decorators=[{type:e.Directive,args:[{selector:"ng-template[tdViewDataFormatter]"}]}];var r=function(){function t(t,e,o){this._changeDetectorRef=t,this._elementRef=e,this._optionsService=o,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=n.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=Object.assign(Object.assign({},this.feature),{dataView:Object.assign(Object.assign({},this.feature.dataView),{optionToContent:this._optionToContentFormatter()})}))},t.prototype._optionToContentFormatter=function(){var t=this;return function(){return t._changeDetectorRef.markForCheck(),t._elementRef.nativeElement.innerHTML}},t}();r.decorators=[{type:e.Component,args:[{selector:"td-chart-toolbox",template:'<ng-template #toolboxContent [ngTemplateOutlet]="formatterTemplate"></ng-template>\n',changeDetection:e.ChangeDetectionStrategy.OnPush}]}],r.ctorParameters=function(){return[{type:e.ChangeDetectorRef},{type:e.ElementRef},{type:n.TdChartOptionsService}]},r.propDecorators={config:[{type:e.Input}],show:[{type:e.Input}],trigger:[{type:e.Input}],orient:[{type:e.Input}],itemSize:[{type:e.Input}],itemGap:[{type:e.Input}],showTitle:[{type:e.Input}],label:[{type:e.Input}],feature:[{type:e.Input}],iconStyle:[{type:e.Input}],zlevel:[{type:e.Input}],z:[{type:e.Input}],transitionDuration:[{type:e.Input}],left:[{type:e.Input}],top:[{type:e.Input}],right:[{type:e.Input}],bottom:[{type:e.Input}],width:[{type:e.Input}],height:[{type:e.Input}],formatterTemplate:[{type:e.ContentChild,args:[i,{read:e.TemplateRef}]}],fullTemplate:[{type:e.ViewChild,args:["toolboxContent",{static:!0}]}]};var a=[r,i],s=function(){};s.decorators=[{type:e.NgModule,args:[{imports:[o.CommonModule],declarations:[a],exports:[a]}]}],t.CovalentToolboxEchartsModule=s,t.TOOLBOX_MODULE_COMPONENTS=a,t.TdChartToolboxComponent=r,t.TdChartViewDataFormatterDirective=i,Object.defineProperty(t,"__esModule",{value:!0})}));
|
|
2
2
|
//# sourceMappingURL=covalent-echarts-toolbox.umd.min.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/platform/echarts/toolbox/toolbox.component.ts","../../../../src/platform/echarts/toolbox/toolbox.module.ts"],"names":["Directive","args","selector","TdChartToolboxComponent","_changeDetectorRef","_elementRef","_optionsService","this","_state","config","show","showTitle","transitionDuration","left","top","right","bottom","width","height","prototype","ngOnChanges","_setOptions","ngOnDestroy","_removeOption","_checkFormatterTemplate","assignDefined","name","trigger","orient","itemSize","itemGap","label","feature","iconStyle","zlevel","z","setOption","clearOption","formatterTemplate","Object","assign","dataView","optionToContent","_optionToContentFormatter","_this","markForCheck","innerHTML","Component","template","changeDetection","ChangeDetectionStrategy","OnPush","ChangeDetectorRef","ElementRef","TdChartOptionsService","Input","ContentChild","TdChartViewDataFormatterDirective","read","TemplateRef","ViewChild","static","TOOLBOX_MODULE_COMPONENTS","NgModule","imports","CommonModule","declarations","exports"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../../../src/platform/echarts/toolbox/toolbox.component.ts","../../../../src/platform/echarts/toolbox/toolbox.module.ts"],"names":["Directive","args","selector","TdChartToolboxComponent","_changeDetectorRef","_elementRef","_optionsService","this","_state","config","show","showTitle","transitionDuration","left","top","right","bottom","width","height","prototype","ngOnChanges","_setOptions","ngOnDestroy","_removeOption","_checkFormatterTemplate","assignDefined","name","trigger","orient","itemSize","itemGap","label","feature","iconStyle","zlevel","z","setOption","clearOption","formatterTemplate","Object","assign","dataView","optionToContent","_optionToContentFormatter","_this","markForCheck","innerHTML","Component","template","changeDetection","ChangeDetectionStrategy","OnPush","ChangeDetectorRef","ElementRef","TdChartOptionsService","Input","ContentChild","TdChartViewDataFormatterDirective","read","TemplateRef","ViewChild","static","TOOLBOX_MODULE_COMPONENTS","NgModule","imports","CommonModule","declarations","exports"],"mappings":"6iBA0IA,iCAHCA,EAAAA,UAASC,KAAA,CAAC,CACTC,SAAU,wDAqCV,SAAAC,EACUC,EACAC,EACAC,GAFAC,KAAAH,mBAAAA,EACAG,KAAAF,YAAAA,EACAE,KAAAD,gBAAAA,EA9BFC,KAAAC,OAAc,GAEbD,KAAAE,OAAc,GAEdF,KAAAG,MAAgB,EAKhBH,KAAAI,WA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1DC,EAAAA,UAAS9C,KAAA,CAAC,CACTC,SAAU,mBACV8C,SAAA,uFACAC,gBAAiBC,EAAAA,wBAAwBC,oDAxIzCC,EAAAA,yBADAC,EAAAA,kBASAC,EAAAA,yDAqICC,EAAAA,oBAEAA,EAAAA,uBACAA,EAAAA,sBACAA,EAAAA,wBACAA,EAAAA,uBACAA,EAAAA,yBACAA,EAAAA,qBACAA,EAAAA,uBACAA,EAAAA,yBACAA,EAAAA,sBACAA,EAAAA,iBACAA,EAAAA,kCACAA,EAAAA,oBACAA,EAAAA,mBACAA,EAAAA,qBACAA,EAAAA,sBACAA,EAAAA,qBACAA,EAAAA,sBACAA,EAAAA,iCAEAC,EAAAA,aAAYvD,KAAA,CAACwD,EAAmC,CAAEC,KAAMC,EAAAA,oCAExDC,EAAAA,UAAS3D,KAAA,CAAC,iBAAkB,CAAE4D,QAAQ,WCvK5BC,EAAyC,CAAC3D,EAAyBsD,KAOhF,iCALCM,EAAAA,SAAQ9D,KAAA,CAAC,CACR+D,QAAS,CAACC,EAAAA,cACVC,aAAc,CAACJ,GACfK,QAAS,CAACL","sourcesContent":["import {\n Component,\n Input,\n Directive,\n TemplateRef,\n ChangeDetectionStrategy,\n ElementRef,\n ChangeDetectorRef,\n OnChanges,\n ContentChild,\n ViewChild,\n OnDestroy,\n} from '@angular/core';\n\nimport {\n TdChartOptionsService,\n assignDefined,\n ITdLabel,\n ITdShadow,\n ITdItemStyle,\n TdTextPosition,\n TdTextAlign,\n} from '@covalent/echarts/base';\n\nexport type TdToolboxOrient = 'horizontal' | 'vertical';\nexport type TdImageType = 'png' | 'jpeg';\n\nexport interface ITdAcceptedBrushTypes {\n rect?: string;\n polygon?: string;\n lineX?: string;\n lineY?: string;\n keep?: string;\n clear?: string;\n}\n\nexport interface ITdAcceptedMagicTypes {\n line?: string;\n bar?: string;\n stack?: string;\n tiled?: string;\n}\n\nexport interface ITdToolboxIconEmphasis extends ITdItemStyle, ITdShadow {}\n\nexport interface ITdFeatureIconStyle extends ITdItemStyle, ITdShadow {\n textPosition?: TdTextPosition;\n textAlign?: TdTextAlign;\n emphasis?: ITdToolboxIconEmphasis;\n}\n\nexport interface ITdZoomTitles {\n zoom?: string;\n back?: string;\n}\n\nexport interface ITdSaveAsImage {\n type?: TdImageType;\n name?: string;\n backgroundColor?: any;\n excludeComponents?: string[]; // defaults to ['toolbox']\n show?: boolean;\n title?: string;\n icon?: string;\n iconStyle?: ITdFeatureIconStyle;\n pixelRatio?: number;\n}\n\nexport interface ITdRestore {\n show?: boolean;\n title?: string;\n icon?: string;\n iconStyle?: ITdFeatureIconStyle;\n}\n\nexport interface ITdDataView {\n show?: boolean;\n title?: string;\n icon?: string;\n iconStyle?: ITdFeatureIconStyle;\n readOnly?: boolean;\n optionToContent?: Function;\n contentToOption?: Function;\n lang?: string[]; // Defaults to Chinese, there are 3 names in data view, which are ['data view', 'turn off' and 'refresh'].\n textareaColor?: string;\n textareaBorderColor?: string;\n textColor?: string;\n buttonColor?: string;\n buttonTextColor?: string;\n}\n\nexport interface ITdDataZoom {\n show?: boolean;\n title?: ITdZoomTitles;\n icon?: ITdZoomTitles;\n iconStyle?: ITdFeatureIconStyle;\n xAxisIndex?: number | number[] | boolean;\n yAxisIndex?: number | number[] | boolean;\n}\n\nexport interface ITdMagicType {\n show?: boolean;\n type?: string[]; // only expects 'line' | 'bar' | 'stack' | 'tiled';\n title?: ITdAcceptedMagicTypes;\n icon?: ITdAcceptedMagicTypes;\n iconStyle?: ITdFeatureIconStyle;\n option?: {\n line?: object;\n bar?: object;\n stack?: object;\n tiled?: object;\n };\n seriesIndex?: {\n line?: any[];\n bar?: any[];\n stack?: any[];\n tiled?: any[];\n };\n}\n\nexport interface ITdBrush {\n type?: any[];\n icon?: ITdAcceptedBrushTypes;\n title?: ITdAcceptedBrushTypes;\n}\n\nexport interface ITdToolboxFeature {\n saveAsImage?: ITdSaveAsImage;\n restore?: ITdRestore;\n dataView?: ITdDataView;\n dataZoom?: ITdDataZoom;\n magicType?: ITdMagicType;\n brush?: ITdBrush;\n}\n\n@Directive({\n selector: 'ng-template[tdViewDataFormatter]',\n})\nexport class TdChartViewDataFormatterDirective {}\n\n@Component({\n selector: 'td-chart-toolbox',\n templateUrl: './toolbox.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TdChartToolboxComponent implements OnChanges, OnDestroy {\n private _state: any = {};\n\n @Input() config: any = {};\n\n @Input() show: boolean = true;\n @Input() trigger: string;\n @Input() orient: TdToolboxOrient;\n @Input() itemSize: number;\n @Input() itemGap: number;\n @Input() showTitle: boolean = true;\n @Input() label: ITdLabel;\n @Input() feature: ITdToolboxFeature;\n @Input() iconStyle: ITdFeatureIconStyle;\n @Input() zlevel: number;\n @Input() z: number;\n @Input() transitionDuration: number = 0.5;\n @Input() left: string | number = 'auto';\n @Input() top: string | number = 'auto';\n @Input() right: string | number = 'auto';\n @Input() bottom: string | number = 'auto';\n @Input() width: string | number = 'auto';\n @Input() height: string | number = 'auto';\n\n @ContentChild(TdChartViewDataFormatterDirective, { read: TemplateRef })\n formatterTemplate: TemplateRef<any>;\n @ViewChild('toolboxContent', { static: true }) fullTemplate: TemplateRef<any>;\n\n constructor(\n private _changeDetectorRef: ChangeDetectorRef,\n private _elementRef: ElementRef,\n private _optionsService: TdChartOptionsService,\n ) {}\n\n ngOnChanges(): void {\n this._setOptions();\n }\n\n ngOnDestroy(): void {\n this._removeOption();\n }\n\n private _setOptions(): void {\n this._checkFormatterTemplate();\n\n const config: any = assignDefined(\n this._state,\n {\n show: this.show,\n name: this.trigger,\n orient: this.orient,\n itemSize: this.itemSize,\n itemGap: this.itemGap,\n showTitle: this.showTitle,\n label: this.label,\n feature: this.feature,\n iconStyle: this.iconStyle,\n zlevel: this.zlevel,\n z: this.z,\n transitionDuration: this.transitionDuration,\n left: this.left,\n top: this.top,\n right: this.right,\n bottom: this.bottom,\n width: this.width,\n height: this.height,\n },\n this.config ? this.config : {},\n );\n // set toolbox configuration in parent chart and render new configurations\n this._optionsService.setOption('toolbox', config);\n }\n\n private _removeOption(): void {\n this._optionsService.clearOption('toolbox');\n }\n\n private _checkFormatterTemplate(): void {\n if (this.formatterTemplate) {\n this.feature = {\n ...this.feature,\n dataView: {\n ...this.feature.dataView,\n optionToContent: this._optionToContentFormatter(),\n },\n };\n }\n }\n\n private _optionToContentFormatter(): () => string {\n return () => {\n this._changeDetectorRef.markForCheck();\n return (<HTMLElement>this._elementRef.nativeElement).innerHTML;\n };\n }\n}\n","import { NgModule, Type } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { TdChartToolboxComponent, TdChartViewDataFormatterDirective } from './toolbox.component';\n\nexport const TOOLBOX_MODULE_COMPONENTS: Type<any>[] = [TdChartToolboxComponent, TdChartViewDataFormatterDirective];\n\n@NgModule({\n imports: [CommonModule],\n declarations: [TOOLBOX_MODULE_COMPONENTS],\n exports: [TOOLBOX_MODULE_COMPONENTS],\n})\nexport class CovalentToolboxEchartsModule {}\n"]}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@covalent/echarts/tooltip', ['exports', '@angular/core', '@angular/common', '
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.covalent = global.covalent || {}, global.covalent.echarts = global.covalent.echarts || {}, global.covalent.echarts.tooltip = {}), global.ng.core, global.ng.common,
|
|
5
|
-
}(this, (function (exports, core, common,
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@covalent/echarts/base')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@covalent/echarts/tooltip', ['exports', '@angular/core', '@angular/common', '@covalent/echarts/base'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.covalent = global.covalent || {}, global.covalent.echarts = global.covalent.echarts || {}, global.covalent.echarts.tooltip = {}), global.ng.core, global.ng.common, global.covalent.echarts.base));
|
|
5
|
+
}(this, (function (exports, core, common, base) { 'use strict';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* @fileoverview added by tsickle
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"covalent-echarts-tooltip.umd.js","sources":["../../../../src/platform/echarts/tooltip/tooltip.component.ts","../../../../src/platform/echarts/tooltip/series-tooltip.component.ts","../../../../src/platform/echarts/tooltip/tooltip.module.ts"],"sourcesContent":["import {\n Component,\n Input,\n Directive,\n TemplateRef,\n ChangeDetectionStrategy,\n ElementRef,\n ChangeDetectorRef,\n OnChanges,\n ContentChild,\n ViewChild,\n OnDestroy,\n} from '@angular/core';\n\nimport {\n TdChartOptionsService,\n assignDefined,\n TdTooltipTrigger,\n TdTooltipTriggerOn,\n TdTooltipPosition,\n} from '@covalent/echarts/base';\n\nexport class TdTooltipContext {\n $implicit: any;\n ticket: string;\n}\n\n@Directive({\n selector: 'ng-template[tdTooltipFormatter]',\n})\nexport class TdChartTooltipFormatterDirective {}\n\n@Component({\n selector: 'td-chart-tooltip',\n templateUrl: './tooltip.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TdChartTooltipComponent implements OnChanges, OnDestroy {\n private _state: any = {};\n\n _context: TdTooltipContext = new TdTooltipContext();\n\n @Input() config: any = {};\n\n @Input() show: boolean = true;\n @Input() trigger: TdTooltipTrigger = 'axis';\n @Input() axisPointer: any;\n @Input() showContent: boolean = true;\n @Input() alwaysShowContent: boolean = false;\n @Input() triggerOn: TdTooltipTriggerOn = 'mousemove|click';\n @Input() showDelay: number = 0;\n @Input() hideDelay: number = 0;\n @Input() enterable: boolean = false;\n @Input() renderMode: 'html' | 'richText';\n @Input() confine: boolean = false;\n @Input() transitionDuration: number = 0.5;\n @Input() position: TdTooltipPosition; // series\n @Input() formatter: string | Function; // series\n @Input() backgroundColor: string = 'rgba(50,50,50,0.7)'; // series\n @Input() borderColor: string = '#333'; // series\n @Input() borderWidth: number = 0; // series\n @Input() padding: number = 5; // series\n @Input() textStyle: any = {\n // series\n color: '#FFF',\n };\n @Input() extraCssText: string; // series\n\n @ContentChild(TdChartTooltipFormatterDirective, { read: TemplateRef, static: true })\n formatterTemplate: TemplateRef<any>;\n @ViewChild('tooltipContent', { static: true }) fullTemplate: TemplateRef<any>;\n\n constructor(\n private _changeDetectorRef: ChangeDetectorRef,\n private _elementRef: ElementRef,\n private _optionsService: TdChartOptionsService,\n ) {}\n\n ngOnChanges(): void {\n this._setOptions();\n }\n\n ngOnDestroy(): void {\n this._removeOption();\n }\n\n private _setOptions(): void {\n const config: any = assignDefined(\n this._state,\n {\n show: this.show,\n trigger: this.trigger,\n axisPointer: this.axisPointer,\n showContent: this.showContent,\n alwaysShowContent: this.alwaysShowContent,\n triggerOn: this.triggerOn,\n showDelay: this.showDelay,\n hideDelay: this.hideDelay,\n enterable: this.enterable,\n confine: this.confine,\n transitionDuration: this.transitionDuration,\n position: this.position,\n formatter: this.formatter ? this.formatter : this.formatterTemplate ? this._formatter() : undefined,\n backgroundColor: this.backgroundColor,\n borderColor: this.borderColor,\n borderWidth: this.borderWidth,\n padding: this.padding,\n textStyle: this.textStyle,\n extraCssText: this.extraCssText,\n },\n this.config ? this.config : {},\n );\n // set tooltip configuration in parent chart and render new configurations\n this._optionsService.setOption('tooltip', config);\n }\n\n private _removeOption(): void {\n this._optionsService.clearOption('tooltip');\n }\n\n private _formatter(): (params: any, ticket: any, callback: (ticket: string, html: string) => void) => string {\n return (params: any, ticket: any, callback: (ticket: string, html: string) => void) => {\n this._context = {\n $implicit: params,\n ticket,\n };\n // timeout set since we need to set the HTML at the end of the angular lifecycle when\n // the tooltip delay is more than 0\n setTimeout(() => {\n callback(ticket, (<HTMLElement>this._elementRef.nativeElement).innerHTML);\n });\n this._changeDetectorRef.markForCheck();\n return (<HTMLElement>this._elementRef.nativeElement).innerHTML;\n };\n }\n}\n","import {\n Component,\n Input,\n ContentChild,\n ViewChild,\n TemplateRef,\n ChangeDetectorRef,\n ElementRef,\n ChangeDetectionStrategy,\n OnChanges,\n OnDestroy,\n} from '@angular/core';\n\nimport { assignDefined, TdSeriesDirective } from '@covalent/echarts/base';\n\nimport { TdChartTooltipFormatterDirective, TdTooltipContext } from './tooltip.component';\n\n@Component({\n selector: 'td-chart-series-tooltip',\n templateUrl: './tooltip.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TdSeriesTooltipComponent implements OnChanges, OnDestroy {\n private _state: any = {};\n\n _context: TdTooltipContext = new TdTooltipContext();\n\n @Input() config: any;\n\n @Input() formatter: any;\n // Parent tooltip trigger must be set to 'item' to render these properties\n @Input() position: string | string[] | number[];\n @Input() backgroundColor: string = 'rgba(50,50,50,0.7)';\n @Input() borderColor: string = '#333';\n @Input() borderWidth: number = 0;\n @Input() padding: number = 5;\n @Input() textStyle: any = {\n color: '#FFF',\n };\n @Input() extraCssText: string;\n\n @ContentChild(TdChartTooltipFormatterDirective, { read: TemplateRef, static: true })\n formatterTemplate: TemplateRef<any>;\n @ViewChild('tooltipContent', { static: true }) fullTemplate: TemplateRef<any>;\n\n constructor(\n private _changeDetectorRef: ChangeDetectorRef,\n private _elementRef: ElementRef,\n private _seriesComponent: TdSeriesDirective,\n ) {}\n\n ngOnChanges(): void {\n this._setOptions();\n }\n\n ngOnDestroy(): void {\n this._removeOption();\n }\n\n private _setOptions(): void {\n const config: any = assignDefined(\n this._state,\n {\n position: this.position,\n backgroundColor: this.backgroundColor,\n borderColor: this.borderColor,\n borderWidth: this.borderWidth,\n padding: this.padding,\n textStyle: this.textStyle,\n extraCssText: this.extraCssText,\n formatter: this.formatter ? this.formatter : this.formatterTemplate ? this._formatter() : undefined,\n },\n this.config ? this.config : {},\n );\n // set series tooltip configuration in parent chart and render new configurations\n this._seriesComponent.setStateOption('tooltip', config);\n }\n\n /**\n * Formatter for tooltip\n *\n */\n private _formatter(): (params: any, ticket: any, callback: (ticket: string, html: string) => void) => string {\n return (params: any, ticket: any, callback: (ticket: string, html: string) => void) => {\n this._context = {\n $implicit: params,\n ticket,\n };\n // timeout set since we need to set the HTML at the end of the angular lifecycle when\n // the tooltip delay is more than 0\n setTimeout(() => {\n callback(ticket, (<HTMLElement>this._elementRef.nativeElement).innerHTML);\n });\n this._changeDetectorRef.markForCheck();\n return (<HTMLElement>this._elementRef.nativeElement).innerHTML;\n };\n }\n\n private _removeOption(): void {\n this._seriesComponent.removeStateOption('tooltip');\n }\n}\n","import { NgModule, Type } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nimport 'echarts/lib/component/tooltip';\n\nimport { TdChartTooltipComponent, TdChartTooltipFormatterDirective } from './tooltip.component';\nimport { TdSeriesTooltipComponent } from './series-tooltip.component';\n\nexport const TOOLTIP_MODULE_COMPONENTS: Type<any>[] = [\n TdChartTooltipComponent,\n TdChartTooltipFormatterDirective,\n TdSeriesTooltipComponent,\n];\n\n@NgModule({\n imports: [CommonModule],\n declarations: [TOOLTIP_MODULE_COMPONENTS],\n exports: [TOOLTIP_MODULE_COMPONENTS],\n})\nexport class CovalentTooltipEchartsModule {}\n"],"names":["Directive","assignDefined","Component","ChangeDetectionStrategy","ChangeDetectorRef","ElementRef","TdChartOptionsService","Input","ContentChild","TemplateRef","ViewChild","TdSeriesDirective","NgModule","CommonModule"],"mappings":";;;;;;;;;;;;QAsBA;SAGC;+BAAA;KAAA,IAAA;;;QAFC,qCAAe;;QACf,kCAAe;;;QAMjB;;;;;gBAHCA,cAAS,SAAC;oBACT,QAAQ,EAAE,iCAAiC;iBAC5C;;;;;;;;QA2CC,iCACU,kBAAqC,EACrC,WAAuB,EACvB,eAAsC;YAFtC,uBAAkB,GAAlB,kBAAkB,CAAmB;YACrC,gBAAW,GAAX,WAAW,CAAY;YACvB,oBAAe,GAAf,eAAe,CAAuB;YArCxC,WAAM,GAAQ,EAAE,CAAC;YAEzB,aAAQ,GAAqB,IAAI,gBAAg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.js","sources":["../../../../src/platform/echarts/tooltip/tooltip.component.ts","../../../../src/platform/echarts/tooltip/series-tooltip.component.ts","../../../../src/platform/echarts/tooltip/tooltip.module.ts"],"sourcesContent":["import {\n Component,\n Input,\n Directive,\n TemplateRef,\n ChangeDetectionStrategy,\n ElementRef,\n ChangeDetectorRef,\n OnChanges,\n ContentChild,\n ViewChild,\n OnDestroy,\n} from '@angular/core';\n\nimport {\n TdChartOptionsService,\n assignDefined,\n TdTooltipTrigger,\n TdTooltipTriggerOn,\n TdTooltipPosition,\n} from '@covalent/echarts/base';\n\nexport class TdTooltipContext {\n $implicit: any;\n ticket: string;\n}\n\n@Directive({\n selector: 'ng-template[tdTooltipFormatter]',\n})\nexport class TdChartTooltipFormatterDirective {}\n\n@Component({\n selector: 'td-chart-tooltip',\n templateUrl: './tooltip.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TdChartTooltipComponent implements OnChanges, OnDestroy {\n private _state: any = {};\n\n _context: TdTooltipContext = new TdTooltipContext();\n\n @Input() config: any = {};\n\n @Input() show: boolean = true;\n @Input() trigger: TdTooltipTrigger = 'axis';\n @Input() axisPointer: any;\n @Input() showContent: boolean = true;\n @Input() alwaysShowContent: boolean = false;\n @Input() triggerOn: TdTooltipTriggerOn = 'mousemove|click';\n @Input() showDelay: number = 0;\n @Input() hideDelay: number = 0;\n @Input() enterable: boolean = false;\n @Input() renderMode: 'html' | 'richText';\n @Input() confine: boolean = false;\n @Input() transitionDuration: number = 0.5;\n @Input() position: TdTooltipPosition; // series\n @Input() formatter: string | Function; // series\n @Input() backgroundColor: string = 'rgba(50,50,50,0.7)'; // series\n @Input() borderColor: string = '#333'; // series\n @Input() borderWidth: number = 0; // series\n @Input() padding: number = 5; // series\n @Input() textStyle: any = {\n // series\n color: '#FFF',\n };\n @Input() extraCssText: string; // series\n\n @ContentChild(TdChartTooltipFormatterDirective, { read: TemplateRef, static: true })\n formatterTemplate: TemplateRef<any>;\n @ViewChild('tooltipContent', { static: true }) fullTemplate: TemplateRef<any>;\n\n constructor(\n private _changeDetectorRef: ChangeDetectorRef,\n private _elementRef: ElementRef,\n private _optionsService: TdChartOptionsService,\n ) {}\n\n ngOnChanges(): void {\n this._setOptions();\n }\n\n ngOnDestroy(): void {\n this._removeOption();\n }\n\n private _setOptions(): void {\n const config: any = assignDefined(\n this._state,\n {\n show: this.show,\n trigger: this.trigger,\n axisPointer: this.axisPointer,\n showContent: this.showContent,\n alwaysShowContent: this.alwaysShowContent,\n triggerOn: this.triggerOn,\n showDelay: this.showDelay,\n hideDelay: this.hideDelay,\n enterable: this.enterable,\n confine: this.confine,\n transitionDuration: this.transitionDuration,\n position: this.position,\n formatter: this.formatter ? this.formatter : this.formatterTemplate ? this._formatter() : undefined,\n backgroundColor: this.backgroundColor,\n borderColor: this.borderColor,\n borderWidth: this.borderWidth,\n padding: this.padding,\n textStyle: this.textStyle,\n extraCssText: this.extraCssText,\n },\n this.config ? this.config : {},\n );\n // set tooltip configuration in parent chart and render new configurations\n this._optionsService.setOption('tooltip', config);\n }\n\n private _removeOption(): void {\n this._optionsService.clearOption('tooltip');\n }\n\n private _formatter(): (params: any, ticket: any, callback: (ticket: string, html: string) => void) => string {\n return (params: any, ticket: any, callback: (ticket: string, html: string) => void) => {\n this._context = {\n $implicit: params,\n ticket,\n };\n // timeout set since we need to set the HTML at the end of the angular lifecycle when\n // the tooltip delay is more than 0\n setTimeout(() => {\n callback(ticket, (<HTMLElement>this._elementRef.nativeElement).innerHTML);\n });\n this._changeDetectorRef.markForCheck();\n return (<HTMLElement>this._elementRef.nativeElement).innerHTML;\n };\n }\n}\n","import {\n Component,\n Input,\n ContentChild,\n ViewChild,\n TemplateRef,\n ChangeDetectorRef,\n ElementRef,\n ChangeDetectionStrategy,\n OnChanges,\n OnDestroy,\n} from '@angular/core';\n\nimport { assignDefined, TdSeriesDirective } from '@covalent/echarts/base';\n\nimport { TdChartTooltipFormatterDirective, TdTooltipContext } from './tooltip.component';\n\n@Component({\n selector: 'td-chart-series-tooltip',\n templateUrl: './tooltip.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TdSeriesTooltipComponent implements OnChanges, OnDestroy {\n private _state: any = {};\n\n _context: TdTooltipContext = new TdTooltipContext();\n\n @Input() config: any;\n\n @Input() formatter: any;\n // Parent tooltip trigger must be set to 'item' to render these properties\n @Input() position: string | string[] | number[];\n @Input() backgroundColor: string = 'rgba(50,50,50,0.7)';\n @Input() borderColor: string = '#333';\n @Input() borderWidth: number = 0;\n @Input() padding: number = 5;\n @Input() textStyle: any = {\n color: '#FFF',\n };\n @Input() extraCssText: string;\n\n @ContentChild(TdChartTooltipFormatterDirective, { read: TemplateRef, static: true })\n formatterTemplate: TemplateRef<any>;\n @ViewChild('tooltipContent', { static: true }) fullTemplate: TemplateRef<any>;\n\n constructor(\n private _changeDetectorRef: ChangeDetectorRef,\n private _elementRef: ElementRef,\n private _seriesComponent: TdSeriesDirective,\n ) {}\n\n ngOnChanges(): void {\n this._setOptions();\n }\n\n ngOnDestroy(): void {\n this._removeOption();\n }\n\n private _setOptions(): void {\n const config: any = assignDefined(\n this._state,\n {\n position: this.position,\n backgroundColor: this.backgroundColor,\n borderColor: this.borderColor,\n borderWidth: this.borderWidth,\n padding: this.padding,\n textStyle: this.textStyle,\n extraCssText: this.extraCssText,\n formatter: this.formatter ? this.formatter : this.formatterTemplate ? this._formatter() : undefined,\n },\n this.config ? this.config : {},\n );\n // set series tooltip configuration in parent chart and render new configurations\n this._seriesComponent.setStateOption('tooltip', config);\n }\n\n /**\n * Formatter for tooltip\n *\n */\n private _formatter(): (params: any, ticket: any, callback: (ticket: string, html: string) => void) => string {\n return (params: any, ticket: any, callback: (ticket: string, html: string) => void) => {\n this._context = {\n $implicit: params,\n ticket,\n };\n // timeout set since we need to set the HTML at the end of the angular lifecycle when\n // the tooltip delay is more than 0\n setTimeout(() => {\n callback(ticket, (<HTMLElement>this._elementRef.nativeElement).innerHTML);\n });\n this._changeDetectorRef.markForCheck();\n return (<HTMLElement>this._elementRef.nativeElement).innerHTML;\n };\n }\n\n private _removeOption(): void {\n this._seriesComponent.removeStateOption('tooltip');\n }\n}\n","import { NgModule, Type } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { TdChartTooltipComponent, TdChartTooltipFormatterDirective } from './tooltip.component';\nimport { TdSeriesTooltipComponent } from './series-tooltip.component';\n\nexport const TOOLTIP_MODULE_COMPONENTS: Type<any>[] = [\n TdChartTooltipComponent,\n TdChartTooltipFormatterDirective,\n TdSeriesTooltipComponent,\n];\n\n@NgModule({\n imports: [CommonModule],\n declarations: [TOOLTIP_MODULE_COMPONENTS],\n exports: [TOOLTIP_MODULE_COMPONENTS],\n})\nexport class CovalentTooltipEchartsModule {}\n"],"names":["Directive","assignDefined","Component","ChangeDetectionStrategy","ChangeDetectorRef","ElementRef","TdChartOptionsService","Input","ContentChild","TemplateRef","ViewChild","TdSeriesDirective","NgModule","CommonModule"],"mappings":";;;;;;;;;;;;QAsBA;SAGC;+BAAA;KAAA,IAAA;;;QAFC,qCAAe;;QACf,kCAAe;;;QAMjB;;;;;gBAHCA,cAAS,SAAC;oBACT,QAAQ,EAAE,iCAAiC;iBAC5C;;;;;;;;QA2CC,iCACU,kBAAqC,EACrC,WAAuB,EACvB,eAAsC;YAFtC,uBAAkB,GAAlB,kBAAkB,CAAmB;YACrC,gBAAW,GAAX,WAAW,CAAY;YACvB,oBAAe,GAAf,eAAe,CAAuB;YArCxC,WAAM,GAAQ,EAAE,CAAC;YAEzB,aAAQ,GAAqB,IAAI,gBAAgB,EAAE,CAAC;YAE3C,WAAM,GAAQ,EAAE,CAAC;YAEjB,SAAI,GAAY,IAAI,CAAC;YACrB,YAAO,GAAqB,MAAM,CAAC;YAEnC,gBAAW,GAAY,IAAI,CAAC;YAC5B,sBAAiB,GAAY,KAAK,CAAC;YACnC,cAAS,GAAuB,iBAAiB,CAAC;YAClD,cAAS,GAAW,CAAC,CAAC;YACtB,cAAS,GAAW,CAAC,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,eAAe,EAAEC,4BAAuB,CAAC,MAAM;iBAChD;;;;gBAfCC,sBAAiB;gBACjBC,eAAU;gBAMYM,sBAAiB;;;yBActCJ,UAAK;4BAELA,UAAK;2BAELA,UAAK;kCACLA,UAAK;8BACLA,UAAK;8BACLA,UAAK;0BACLA,UAAK;4BACLA,UAAK;+BAGLA,UAAK;oCAELC,iBAAY,SAAC,gCAAgC,EAAE,EAAE,IAAI,EAAEC,gBAAW,EAAE,MAAM,EAAE,IAAI,EAAE;+BAElFC,cAAS,SAAC,gBAAgB,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE;;;;;;;QApB7C,0CAAyB;;QAEzB,4CAAoD;;QAEpD,0CAAqB;;QAErB,6CAAwB;;QAExB,4CAAgD;;QAChD,mDAAwD;;QACxD,+CAAsC;;QACtC,+CAAiC;;QACjC,2CAA6B;;QAC7B,6CAEE;;QACF,gDAA8B;;QAE9B,qDACoC;;QACpC,gDAA8E;;;;;QAG5E,sDAA6C;;;;;QAC7C,+CAA+B;;;;;QAC/B,oDAA2C;;;;;;;;;QC3ClC,yBAAyB,GAAgB;QACpD,uBAAuB;QACvB,gCAAgC;QAChC,wBAAwB;;;QAQ1B;;;;;gBALCE,aAAQ,SAAC;oBACR,OAAO,EAAE,CAACC,mBAAY,CAAC;oBACvB,YAAY,EAAE,CAAC,yBAAyB,CAAC;oBACzC,OAAO,EAAE,CAAC,yBAAyB,CAAC;iBACrC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("@angular/common"),require("
|
|
1
|
+
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("@angular/common"),require("@covalent/echarts/base")):"function"==typeof define&&define.amd?define("@covalent/echarts/tooltip",["exports","@angular/core","@angular/common","@covalent/echarts/base"],e):e(((t="undefined"!=typeof globalThis?globalThis:t||self).covalent=t.covalent||{},t.covalent.echarts=t.covalent.echarts||{},t.covalent.echarts.tooltip={}),t.ng.core,t.ng.common,t.covalent.echarts.base)}(this,(function(t,e,o,n){"use strict";var i=function(){};var r=function(){};r.decorators=[{type:e.Directive,args:[{selector:"ng-template[tdTooltipFormatter]"}]}];var s=function(){function t(t,e,o){this._changeDetectorRef=t,this._elementRef=e,this._optionsService=o,this._state={},this._context=new i,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=n.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():void 0,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 t=this;return function(e,o,n){return t._context={$implicit:e,ticket:o},setTimeout((function(){n(o,t._elementRef.nativeElement.innerHTML)})),t._changeDetectorRef.markForCheck(),t._elementRef.nativeElement.innerHTML}},t}();s.decorators=[{type:e.Component,args:[{selector:"td-chart-tooltip",template:'<ng-template #tooltipContent [ngTemplateOutlet]="formatterTemplate" [ngTemplateOutletContext]="_context"></ng-template>\n',changeDetection:e.ChangeDetectionStrategy.OnPush}]}],s.ctorParameters=function(){return[{type:e.ChangeDetectorRef},{type:e.ElementRef},{type:n.TdChartOptionsService}]},s.propDecorators={config:[{type:e.Input}],show:[{type:e.Input}],trigger:[{type:e.Input}],axisPointer:[{type:e.Input}],showContent:[{type:e.Input}],alwaysShowContent:[{type:e.Input}],triggerOn:[{type:e.Input}],showDelay:[{type:e.Input}],hideDelay:[{type:e.Input}],enterable:[{type:e.Input}],renderMode:[{type:e.Input}],confine:[{type:e.Input}],transitionDuration:[{type:e.Input}],position:[{type:e.Input}],formatter:[{type:e.Input}],backgroundColor:[{type:e.Input}],borderColor:[{type:e.Input}],borderWidth:[{type:e.Input}],padding:[{type:e.Input}],textStyle:[{type:e.Input}],extraCssText:[{type:e.Input}],formatterTemplate:[{type:e.ContentChild,args:[r,{read:e.TemplateRef,static:!0}]}],fullTemplate:[{type:e.ViewChild,args:["tooltipContent",{static:!0}]}]};var a=function(){function t(t,e,o){this._changeDetectorRef=t,this._elementRef=e,this._seriesComponent=o,this._state={},this._context=new i,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=n.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():void 0},this.config?this.config:{});this._seriesComponent.setStateOption("tooltip",t)},t.prototype._formatter=function(){var t=this;return function(e,o,n){return t._context={$implicit:e,ticket:o},setTimeout((function(){n(o,t._elementRef.nativeElement.innerHTML)})),t._changeDetectorRef.markForCheck(),t._elementRef.nativeElement.innerHTML}},t.prototype._removeOption=function(){this._seriesComponent.removeStateOption("tooltip")},t}();a.decorators=[{type:e.Component,args:[{selector:"td-chart-series-tooltip",template:'<ng-template #tooltipContent [ngTemplateOutlet]="formatterTemplate" [ngTemplateOutletContext]="_context"></ng-template>\n',changeDetection:e.ChangeDetectionStrategy.OnPush}]}],a.ctorParameters=function(){return[{type:e.ChangeDetectorRef},{type:e.ElementRef},{type:n.TdSeriesDirective}]},a.propDecorators={config:[{type:e.Input}],formatter:[{type:e.Input}],position:[{type:e.Input}],backgroundColor:[{type:e.Input}],borderColor:[{type:e.Input}],borderWidth:[{type:e.Input}],padding:[{type:e.Input}],textStyle:[{type:e.Input}],extraCssText:[{type:e.Input}],formatterTemplate:[{type:e.ContentChild,args:[r,{read:e.TemplateRef,static:!0}]}],fullTemplate:[{type:e.ViewChild,args:["tooltipContent",{static:!0}]}]};var p=[s,r,a],h=function(){};h.decorators=[{type:e.NgModule,args:[{imports:[o.CommonModule],declarations:[p],exports:[p]}]}],t.CovalentTooltipEchartsModule=h,t.TOOLTIP_MODULE_COMPONENTS=p,t.TdChartTooltipComponent=s,t.TdChartTooltipFormatterDirective=r,t.TdSeriesTooltipComponent=a,t.TdTooltipContext=i,Object.defineProperty(t,"__esModule",{value:!0})}));
|
|
2
2
|
//# sourceMappingURL=covalent-echarts-tooltip.umd.min.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/platform/echarts/tooltip/tooltip.component.ts","../../../../src/platform/echarts/tooltip/series-tooltip.component.ts","../../../../src/platform/echarts/tooltip/tooltip.module.ts"],"names":["Directive","args","selector","TdChartTooltipComponent","_changeDetectorRef","_elementRef","_optionsService","this","_state","_context","TdTooltipContext","config","show","trigger","showContent","alwaysShowContent","triggerOn","showDelay","hideDelay","enterable","confine","transitionDuration","backgroundColor","borderColor","borderWidth","padding","textStyle","color","prototype","ngOnChanges","_setOptions","ngOnDestroy","_removeOption","assignDefined","axisPointer","position","formatter","formatterTemplate","_formatter","undefined","extraCssText","setOption","clearOption","_this","params","ticket","callback","$implicit","setTimeout","innerHTML","markForCheck","Component","template","changeDetection","ChangeDetectionStrategy","OnPush","ChangeDetectorRef","ElementRef","TdChartOptionsService","Input","ContentChild","TdChartTooltipFormatterDirective","read","TemplateRef","static","ViewChild","TdSeriesTooltipComponent","_seriesComponent","setStateOption","removeStateOption","TdSeriesDirective","TOOLTIP_MODULE_COMPONENTS","NgModule","imports","CommonModule","declarations","exports"],"mappings":"6nBAsBA,mBAQA,iCAHCA,EAAAA,UAASC,KAAA,CAAC,CACTC,SAAU,uDA4CV,SAAAC,EACUC,EACAC,EACAC,GAFAC,KAAAH,mBAAAA,EACAG,KAAAF,YAAAA,EACAE,KAAAD,gBAAAA,EArCFC,KAAAC,OAAc,GAEtBD,KAAAE,SAA6B,IAAIC,EAExBH,KAAAI,OAAc,GAEdJ,KAAAK,MAAgB,EAChBL,KAAAM,QAA4B,OAE5BN,KAAAO,aAAuB,EACvBP,KAAAQ,mBAA6B,EAC7BR,KAAAS,UAAgC,kBAChCT,KAAAU,UAAoB,EACpBV,KAAAW,UAAoB,EACpBX,KAAAY,WAAqB,EAErBZ,KAAAa,SAAmB,EACnBb,KAAAc,mBAA6B,GAG7Bd,KAAAe,gBAA0B,qBAC1Bf,KAAAgB,YAAsB,OACtBhB,KAAAiB,YAAsB,EACtBjB,KAAAkB,QAAkB,EAClBlB,KAAAmB,UAAiB,CAExBC,MAAO,eAcTxB,EAAAyB,UAAAC,YAAA,WACEtB,KAAKuB,eAGP3B,EAAAyB,UAAAG,YAAA,WACExB,KAAKyB,iBAGC7B,EAAAyB,UAAAE,YAAA,eACAnB,EAAcsB,EAAAA,cAClB1B,KAAKC,OACL,CACEI,KAAML,KAAKK,KACXC,QAASN,KAAKM,QACdqB,YAAa3B,KAAK2B,YAClBpB,YAAaP,KAAKO,YAClBC,kBAAmBR,KAAKQ,kBACxBC,UAAWT,KAAKS,UAChBC,UAAWV,KAAKU,UAChBC,UAAWX,KAAKW,UAChBC,UAAWZ,KAAKY,UAChBC,QAASb,KAAKa,QACdC,mBAAoBd,KAAKc,mBACzBc,SAAU5B,KAAK4B,SAC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,EAAAA,qDAcrBX,EAAAA,yBAEAA,EAAAA,wBAEAA,EAAAA,+BACAA,EAAAA,2BACAA,EAAAA,2BACAA,EAAAA,uBACAA,EAAAA,yBACAA,EAAAA,4BAGAA,EAAAA,iCAEAC,EAAAA,aAAY3D,KAAA,CAAC4D,EAAkC,CAAEC,KAAMC,EAAAA,YAAaC,QAAQ,0BAE5EC,EAAAA,UAAShE,KAAA,CAAC,iBAAkB,CAAE+D,QAAQ,WCnC5BO,EAAyC,CACpDpE,EACA0D,EACAK,KAQF,iCALCM,EAAAA,SAAQvE,KAAA,CAAC,CACRwE,QAAS,CAACC,EAAAA,cACVC,aAAc,CAACJ,GACfK,QAAS,CAACL","sourcesContent":["import {\n Component,\n Input,\n Directive,\n TemplateRef,\n ChangeDetectionStrategy,\n ElementRef,\n ChangeDetectorRef,\n OnChanges,\n ContentChild,\n ViewChild,\n OnDestroy,\n} from '@angular/core';\n\nimport {\n TdChartOptionsService,\n assignDefined,\n TdTooltipTrigger,\n TdTooltipTriggerOn,\n TdTooltipPosition,\n} from '@covalent/echarts/base';\n\nexport class TdTooltipContext {\n $implicit: any;\n ticket: string;\n}\n\n@Directive({\n selector: 'ng-template[tdTooltipFormatter]',\n})\nexport class TdChartTooltipFormatterDirective {}\n\n@Component({\n selector: 'td-chart-tooltip',\n templateUrl: './tooltip.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TdChartTooltipComponent implements OnChanges, OnDestroy {\n private _state: any = {};\n\n _context: TdTooltipContext = new TdTooltipContext();\n\n @Input() config: any = {};\n\n @Input() show: boolean = true;\n @Input() trigger: TdTooltipTrigger = 'axis';\n @Input() axisPointer: any;\n @Input() showContent: boolean = true;\n @Input() alwaysShowContent: boolean = false;\n @Input() triggerOn: TdTooltipTriggerOn = 'mousemove|click';\n @Input() showDelay: number = 0;\n @Input() hideDelay: number = 0;\n @Input() enterable: boolean = false;\n @Input() renderMode: 'html' | 'richText';\n @Input() confine: boolean = false;\n @Input() transitionDuration: number = 0.5;\n @Input() position: TdTooltipPosition; // series\n @Input() formatter: string | Function; // series\n @Input() backgroundColor: string = 'rgba(50,50,50,0.7)'; // series\n @Input() borderColor: string = '#333'; // series\n @Input() borderWidth: number = 0; // series\n @Input() padding: number = 5; // series\n @Input() textStyle: any = {\n // series\n color: '#FFF',\n };\n @Input() extraCssText: string; // series\n\n @ContentChild(TdChartTooltipFormatterDirective, { read: TemplateRef, static: true })\n formatterTemplate: TemplateRef<any>;\n @ViewChild('tooltipContent', { static: true }) fullTemplate: TemplateRef<any>;\n\n constructor(\n private _changeDetectorRef: ChangeDetectorRef,\n private _elementRef: ElementRef,\n private _optionsService: TdChartOptionsService,\n ) {}\n\n ngOnChanges(): void {\n this._setOptions();\n }\n\n ngOnDestroy(): void {\n this._removeOption();\n }\n\n private _setOptions(): void {\n const config: any = assignDefined(\n this._state,\n {\n show: this.show,\n trigger: this.trigger,\n axisPointer: this.axisPointer,\n showContent: this.showContent,\n alwaysShowContent: this.alwaysShowContent,\n triggerOn: this.triggerOn,\n showDelay: this.showDelay,\n hideDelay: this.hideDelay,\n enterable: this.enterable,\n confine: this.confine,\n transitionDuration: this.transitionDuration,\n position: this.position,\n formatter: this.formatter ? this.formatter : this.formatterTemplate ? this._formatter() : undefined,\n backgroundColor: this.backgroundColor,\n borderColor: this.borderColor,\n borderWidth: this.borderWidth,\n padding: this.padding,\n textStyle: this.textStyle,\n extraCssText: this.extraCssText,\n },\n this.config ? this.config : {},\n );\n // set tooltip configuration in parent chart and render new configurations\n this._optionsService.setOption('tooltip', config);\n }\n\n private _removeOption(): void {\n this._optionsService.clearOption('tooltip');\n }\n\n private _formatter(): (params: any, ticket: any, callback: (ticket: string, html: string) => void) => string {\n return (params: any, ticket: any, callback: (ticket: string, html: string) => void) => {\n this._context = {\n $implicit: params,\n ticket,\n };\n // timeout set since we need to set the HTML at the end of the angular lifecycle when\n // the tooltip delay is more than 0\n setTimeout(() => {\n callback(ticket, (<HTMLElement>this._elementRef.nativeElement).innerHTML);\n });\n this._changeDetectorRef.markForCheck();\n return (<HTMLElement>this._elementRef.nativeElement).innerHTML;\n };\n }\n}\n","import {\n Component,\n Input,\n ContentChild,\n ViewChild,\n TemplateRef,\n ChangeDetectorRef,\n ElementRef,\n ChangeDetectionStrategy,\n OnChanges,\n OnDestroy,\n} from '@angular/core';\n\nimport { assignDefined, TdSeriesDirective } from '@covalent/echarts/base';\n\nimport { TdChartTooltipFormatterDirective, TdTooltipContext } from './tooltip.component';\n\n@Component({\n selector: 'td-chart-series-tooltip',\n templateUrl: './tooltip.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TdSeriesTooltipComponent implements OnChanges, OnDestroy {\n private _state: any = {};\n\n _context: TdTooltipContext = new TdTooltipContext();\n\n @Input() config: any;\n\n @Input() formatter: any;\n // Parent tooltip trigger must be set to 'item' to render these properties\n @Input() position: string | string[] | number[];\n @Input() backgroundColor: string = 'rgba(50,50,50,0.7)';\n @Input() borderColor: string = '#333';\n @Input() borderWidth: number = 0;\n @Input() padding: number = 5;\n @Input() textStyle: any = {\n color: '#FFF',\n };\n @Input() extraCssText: string;\n\n @ContentChild(TdChartTooltipFormatterDirective, { read: TemplateRef, static: true })\n formatterTemplate: TemplateRef<any>;\n @ViewChild('tooltipContent', { static: true }) fullTemplate: TemplateRef<any>;\n\n constructor(\n private _changeDetectorRef: ChangeDetectorRef,\n private _elementRef: ElementRef,\n private _seriesComponent: TdSeriesDirective,\n ) {}\n\n ngOnChanges(): void {\n this._setOptions();\n }\n\n ngOnDestroy(): void {\n this._removeOption();\n }\n\n private _setOptions(): void {\n const config: any = assignDefined(\n this._state,\n {\n position: this.position,\n backgroundColor: this.backgroundColor,\n borderColor: this.borderColor,\n borderWidth: this.borderWidth,\n padding: this.padding,\n textStyle: this.textStyle,\n extraCssText: this.extraCssText,\n formatter: this.formatter ? this.formatter : this.formatterTemplate ? this._formatter() : undefined,\n },\n this.config ? this.config : {},\n );\n // set series tooltip configuration in parent chart and render new configurations\n this._seriesComponent.setStateOption('tooltip', config);\n }\n\n /**\n * Formatter for tooltip\n *\n */\n private _formatter(): (params: any, ticket: any, callback: (ticket: string, html: string) => void) => string {\n return (params: any, ticket: any, callback: (ticket: string, html: string) => void) => {\n this._context = {\n $implicit: params,\n ticket,\n };\n // timeout set since we need to set the HTML at the end of the angular lifecycle when\n // the tooltip delay is more than 0\n setTimeout(() => {\n callback(ticket, (<HTMLElement>this._elementRef.nativeElement).innerHTML);\n });\n this._changeDetectorRef.markForCheck();\n return (<HTMLElement>this._elementRef.nativeElement).innerHTML;\n };\n }\n\n private _removeOption(): void {\n this._seriesComponent.removeStateOption('tooltip');\n }\n}\n","import { NgModule, Type } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nimport 'echarts/lib/component/tooltip';\n\nimport { TdChartTooltipComponent, TdChartTooltipFormatterDirective } from './tooltip.component';\nimport { TdSeriesTooltipComponent } from './series-tooltip.component';\n\nexport const TOOLTIP_MODULE_COMPONENTS: Type<any>[] = [\n TdChartTooltipComponent,\n TdChartTooltipFormatterDirective,\n TdSeriesTooltipComponent,\n];\n\n@NgModule({\n imports: [CommonModule],\n declarations: [TOOLTIP_MODULE_COMPONENTS],\n exports: [TOOLTIP_MODULE_COMPONENTS],\n})\nexport class CovalentTooltipEchartsModule {}\n"]}
|
|
1
|
+
{"version":3,"sources":["../../../../src/platform/echarts/tooltip/tooltip.component.ts","../../../../src/platform/echarts/tooltip/series-tooltip.component.ts","../../../../src/platform/echarts/tooltip/tooltip.module.ts"],"names":["Directive","args","selector","TdChartTooltipComponent","_changeDetectorRef","_elementRef","_optionsService","this","_state","_context","TdTooltipContext","config","show","trigger","showContent","alwaysShowContent","triggerOn","showDelay","hideDelay","enterable","confine","transitionDuration","backgroundColor","borderColor","borderWidth","padding","textStyle","color","prototype","ngOnChanges","_setOptions","ngOnDestroy","_removeOption","assignDefined","axisPointer","position","formatter","formatterTemplate","_formatter","undefined","extraCssText","setOption","clearOption","_this","params","ticket","callback","$implicit","setTimeout","innerHTML","markForCheck","Component","template","changeDetection","ChangeDetectionStrategy","OnPush","ChangeDetectorRef","ElementRef","TdChartOptionsService","Input","ContentChild","TdChartTooltipFormatterDirective","read","TemplateRef","static","ViewChild","TdSeriesTooltipComponent","_seriesComponent","setStateOption","removeStateOption","TdSeriesDirective","TOOLTIP_MODULE_COMPONENTS","NgModule","imports","CommonModule","declarations","exports"],"mappings":"6iBAsBA,mBAQA,iCAHCA,EAAAA,UAASC,KAAA,CAAC,CACTC,SAAU,uDA4CV,SAAAC,EACUC,EACAC,EACAC,GAFAC,KAAAH,mBAAAA,EACAG,KAAAF,YAAAA,EACAE,KAAAD,gBAAAA,EArCFC,KAAAC,OAAc,GAEtBD,KAAAE,SAA6B,IAAIC,EAExBH,KAAAI,OAAc,GAEdJ,KAAAK,MAAgB,EAChBL,KAAAM,QAA4B,OAE5BN,KAAAO,aAAuB,EACvBP,KAAAQ,mBAA6B,EAC7BR,KAAAS,UAAgC,kBAChCT,KAAAU,UAAoB,EACpBV,KAAAW,UAAoB,EACpBX,KAAAY,WAAqB,EAErBZ,KAAAa,SAAmB,EACnBb,KAAAc,mBAA6B,GAG7Bd,KAAAe,gBAA0B,qBAC1Bf,KAAAgB,YAAsB,OACtBhB,KAAAiB,YAAsB,EACtBjB,KAAAkB,QAAkB,EAClBlB,KAAAmB,UAAiB,CAExBC,MAAO,eAcTxB,EAAAyB,UAAAC,YAAA,WACEtB,KAAKuB,eAGP3B,EAAAyB,UAAAG,YAAA,WACExB,KAAKyB,iBAGC7B,EAAAyB,UAAAE,YAAA,eACAnB,EAAcsB,EAAAA,cAClB1B,KAAKC,OACL,CACEI,KAAML,KAAKK,KACXC,QAASN,KAAKM,QACdqB,YAAa3B,KAAK2B,YAClBpB,YAAaP,KAAKO,YAClBC,kBAAmBR,KAAKQ,kBACxBC,UAAWT,KAAKS,UAChBC,UAAWV,KAAKU,UAChBC,UAAWX,KAAKW,UAChBC,UAAWZ,KAAKY,UAChBC,QAASb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C,EAAAA,wBAAwBC,oDAdzCC,EAAAA,yBACAC,EAAAA,kBAMsBa,EAAAA,qDAcrBX,EAAAA,yBAEAA,EAAAA,wBAEAA,EAAAA,+BACAA,EAAAA,2BACAA,EAAAA,2BACAA,EAAAA,uBACAA,EAAAA,yBACAA,EAAAA,4BAGAA,EAAAA,iCAEAC,EAAAA,aAAY3D,KAAA,CAAC4D,EAAkC,CAAEC,KAAMC,EAAAA,YAAaC,QAAQ,0BAE5EC,EAAAA,UAAShE,KAAA,CAAC,iBAAkB,CAAE+D,QAAQ,WCtC5BO,EAAyC,CACpDpE,EACA0D,EACAK,KAQF,iCALCM,EAAAA,SAAQvE,KAAA,CAAC,CACRwE,QAAS,CAACC,EAAAA,cACVC,aAAc,CAACJ,GACfK,QAAS,CAACL","sourcesContent":["import {\n Component,\n Input,\n Directive,\n TemplateRef,\n ChangeDetectionStrategy,\n ElementRef,\n ChangeDetectorRef,\n OnChanges,\n ContentChild,\n ViewChild,\n OnDestroy,\n} from '@angular/core';\n\nimport {\n TdChartOptionsService,\n assignDefined,\n TdTooltipTrigger,\n TdTooltipTriggerOn,\n TdTooltipPosition,\n} from '@covalent/echarts/base';\n\nexport class TdTooltipContext {\n $implicit: any;\n ticket: string;\n}\n\n@Directive({\n selector: 'ng-template[tdTooltipFormatter]',\n})\nexport class TdChartTooltipFormatterDirective {}\n\n@Component({\n selector: 'td-chart-tooltip',\n templateUrl: './tooltip.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TdChartTooltipComponent implements OnChanges, OnDestroy {\n private _state: any = {};\n\n _context: TdTooltipContext = new TdTooltipContext();\n\n @Input() config: any = {};\n\n @Input() show: boolean = true;\n @Input() trigger: TdTooltipTrigger = 'axis';\n @Input() axisPointer: any;\n @Input() showContent: boolean = true;\n @Input() alwaysShowContent: boolean = false;\n @Input() triggerOn: TdTooltipTriggerOn = 'mousemove|click';\n @Input() showDelay: number = 0;\n @Input() hideDelay: number = 0;\n @Input() enterable: boolean = false;\n @Input() renderMode: 'html' | 'richText';\n @Input() confine: boolean = false;\n @Input() transitionDuration: number = 0.5;\n @Input() position: TdTooltipPosition; // series\n @Input() formatter: string | Function; // series\n @Input() backgroundColor: string = 'rgba(50,50,50,0.7)'; // series\n @Input() borderColor: string = '#333'; // series\n @Input() borderWidth: number = 0; // series\n @Input() padding: number = 5; // series\n @Input() textStyle: any = {\n // series\n color: '#FFF',\n };\n @Input() extraCssText: string; // series\n\n @ContentChild(TdChartTooltipFormatterDirective, { read: TemplateRef, static: true })\n formatterTemplate: TemplateRef<any>;\n @ViewChild('tooltipContent', { static: true }) fullTemplate: TemplateRef<any>;\n\n constructor(\n private _changeDetectorRef: ChangeDetectorRef,\n private _elementRef: ElementRef,\n private _optionsService: TdChartOptionsService,\n ) {}\n\n ngOnChanges(): void {\n this._setOptions();\n }\n\n ngOnDestroy(): void {\n this._removeOption();\n }\n\n private _setOptions(): void {\n const config: any = assignDefined(\n this._state,\n {\n show: this.show,\n trigger: this.trigger,\n axisPointer: this.axisPointer,\n showContent: this.showContent,\n alwaysShowContent: this.alwaysShowContent,\n triggerOn: this.triggerOn,\n showDelay: this.showDelay,\n hideDelay: this.hideDelay,\n enterable: this.enterable,\n confine: this.confine,\n transitionDuration: this.transitionDuration,\n position: this.position,\n formatter: this.formatter ? this.formatter : this.formatterTemplate ? this._formatter() : undefined,\n backgroundColor: this.backgroundColor,\n borderColor: this.borderColor,\n borderWidth: this.borderWidth,\n padding: this.padding,\n textStyle: this.textStyle,\n extraCssText: this.extraCssText,\n },\n this.config ? this.config : {},\n );\n // set tooltip configuration in parent chart and render new configurations\n this._optionsService.setOption('tooltip', config);\n }\n\n private _removeOption(): void {\n this._optionsService.clearOption('tooltip');\n }\n\n private _formatter(): (params: any, ticket: any, callback: (ticket: string, html: string) => void) => string {\n return (params: any, ticket: any, callback: (ticket: string, html: string) => void) => {\n this._context = {\n $implicit: params,\n ticket,\n };\n // timeout set since we need to set the HTML at the end of the angular lifecycle when\n // the tooltip delay is more than 0\n setTimeout(() => {\n callback(ticket, (<HTMLElement>this._elementRef.nativeElement).innerHTML);\n });\n this._changeDetectorRef.markForCheck();\n return (<HTMLElement>this._elementRef.nativeElement).innerHTML;\n };\n }\n}\n","import {\n Component,\n Input,\n ContentChild,\n ViewChild,\n TemplateRef,\n ChangeDetectorRef,\n ElementRef,\n ChangeDetectionStrategy,\n OnChanges,\n OnDestroy,\n} from '@angular/core';\n\nimport { assignDefined, TdSeriesDirective } from '@covalent/echarts/base';\n\nimport { TdChartTooltipFormatterDirective, TdTooltipContext } from './tooltip.component';\n\n@Component({\n selector: 'td-chart-series-tooltip',\n templateUrl: './tooltip.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TdSeriesTooltipComponent implements OnChanges, OnDestroy {\n private _state: any = {};\n\n _context: TdTooltipContext = new TdTooltipContext();\n\n @Input() config: any;\n\n @Input() formatter: any;\n // Parent tooltip trigger must be set to 'item' to render these properties\n @Input() position: string | string[] | number[];\n @Input() backgroundColor: string = 'rgba(50,50,50,0.7)';\n @Input() borderColor: string = '#333';\n @Input() borderWidth: number = 0;\n @Input() padding: number = 5;\n @Input() textStyle: any = {\n color: '#FFF',\n };\n @Input() extraCssText: string;\n\n @ContentChild(TdChartTooltipFormatterDirective, { read: TemplateRef, static: true })\n formatterTemplate: TemplateRef<any>;\n @ViewChild('tooltipContent', { static: true }) fullTemplate: TemplateRef<any>;\n\n constructor(\n private _changeDetectorRef: ChangeDetectorRef,\n private _elementRef: ElementRef,\n private _seriesComponent: TdSeriesDirective,\n ) {}\n\n ngOnChanges(): void {\n this._setOptions();\n }\n\n ngOnDestroy(): void {\n this._removeOption();\n }\n\n private _setOptions(): void {\n const config: any = assignDefined(\n this._state,\n {\n position: this.position,\n backgroundColor: this.backgroundColor,\n borderColor: this.borderColor,\n borderWidth: this.borderWidth,\n padding: this.padding,\n textStyle: this.textStyle,\n extraCssText: this.extraCssText,\n formatter: this.formatter ? this.formatter : this.formatterTemplate ? this._formatter() : undefined,\n },\n this.config ? this.config : {},\n );\n // set series tooltip configuration in parent chart and render new configurations\n this._seriesComponent.setStateOption('tooltip', config);\n }\n\n /**\n * Formatter for tooltip\n *\n */\n private _formatter(): (params: any, ticket: any, callback: (ticket: string, html: string) => void) => string {\n return (params: any, ticket: any, callback: (ticket: string, html: string) => void) => {\n this._context = {\n $implicit: params,\n ticket,\n };\n // timeout set since we need to set the HTML at the end of the angular lifecycle when\n // the tooltip delay is more than 0\n setTimeout(() => {\n callback(ticket, (<HTMLElement>this._elementRef.nativeElement).innerHTML);\n });\n this._changeDetectorRef.markForCheck();\n return (<HTMLElement>this._elementRef.nativeElement).innerHTML;\n };\n }\n\n private _removeOption(): void {\n this._seriesComponent.removeStateOption('tooltip');\n }\n}\n","import { NgModule, Type } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { TdChartTooltipComponent, TdChartTooltipFormatterDirective } from './tooltip.component';\nimport { TdSeriesTooltipComponent } from './series-tooltip.component';\n\nexport const TOOLTIP_MODULE_COMPONENTS: Type<any>[] = [\n TdChartTooltipComponent,\n TdChartTooltipFormatterDirective,\n TdSeriesTooltipComponent,\n];\n\n@NgModule({\n imports: [CommonModule],\n declarations: [TOOLTIP_MODULE_COMPONENTS],\n exports: [TOOLTIP_MODULE_COMPONENTS],\n})\nexport class CovalentTooltipEchartsModule {}\n"]}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@covalent/echarts/wordcloud', ['exports', '@angular/core', '@angular/common', '
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.covalent = global.covalent || {}, global.covalent.echarts = global.covalent.echarts || {}, global.covalent.echarts.wordcloud = {}), global.ng.core, global.ng.common,
|
|
5
|
-
}(this, (function (exports, core, common,
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@covalent/echarts/base')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@covalent/echarts/wordcloud', ['exports', '@angular/core', '@angular/common', '@covalent/echarts/base'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.covalent = global.covalent || {}, global.covalent.echarts = global.covalent.echarts || {}, global.covalent.echarts.wordcloud = {}), global.ng.core, global.ng.common, global.covalent.echarts.base));
|
|
5
|
+
}(this, (function (exports, core, common, base) { 'use strict';
|
|
6
6
|
|
|
7
7
|
/*! *****************************************************************************
|
|
8
8
|
Copyright (c) Microsoft Corporation.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"covalent-echarts-wordcloud.umd.js","sources":["../../../../node_modules/tslib/tslib.es6.js","../../../../src/platform/echarts/wordcloud/wordcloud.component.ts","../../../../src/platform/echarts/wordcloud/wordcloud.module.ts"],"sourcesContent":["/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n};\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, privateMap) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to get private field on non-instance\");\r\n }\r\n return privateMap.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, privateMap, value) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to set private field on non-instance\");\r\n }\r\n privateMap.set(receiver, value);\r\n return value;\r\n}\r\n","import { Component, Input, ChangeDetectionStrategy, forwardRef } from '@angular/core';\n\nimport { TdChartOptionsService, ITdSeries, TdSeriesDirective } from '@covalent/echarts/base';\n\nexport type TdWordcloudShape =\n | 'circle'\n | 'cardioid'\n | 'diamond'\n | 'triangle-forward'\n | 'triangle'\n | 'pentagon'\n | 'star';\n\nexport interface ITdWordcloudTextStyle {\n normal?: {\n fontFamily?: string;\n fontWeight?: string;\n color?: string | ((x: any) => string);\n };\n emphasis?: {\n shadowBlur?: number;\n shadowColor?: string;\n };\n}\n\nexport interface ITdWordCloudData {\n name: string;\n value: number;\n textStyle?: ITdWordcloudTextStyle;\n}\n\nexport interface ITdWordcloudSeries extends ITdSeries {\n data?: ITdWordCloudData[];\n shape?: TdWordcloudShape;\n left?: string | number;\n top?: string | number;\n width?: string | number;\n height?: string | number;\n right?: string | number;\n bottom?: string | number;\n sizeRange?: number[];\n rotationRange?: number[];\n rotationStep?: number;\n gridSize?: number;\n drawOutOfBound?: boolean;\n textStyle?: ITdWordcloudTextStyle;\n}\n\n@Component({\n selector: 'td-chart-series[td-wordCloud]',\n template: '',\n changeDetection: ChangeDetectionStrategy.OnPush,\n inputs: [\n 'config',\n 'id',\n 'name',\n 'color',\n 'data',\n\n 'animation',\n 'animationThreshold',\n 'animationDuration',\n 'animationEasing',\n 'animationDelay',\n 'animationDurationUpdate',\n 'animationEasingUpdate',\n 'animationDelayUpdate',\n 'tooltip',\n ],\n providers: [\n {\n provide: TdSeriesDirective,\n useExisting: forwardRef(() => TdChartSeriesWordcloudComponent),\n },\n ],\n})\nexport class TdChartSeriesWordcloudComponent extends TdSeriesDirective implements ITdWordcloudSeries {\n @Input() data: ITdWordCloudData[];\n @Input() shape: TdWordcloudShape;\n @Input() left: string | number;\n @Input() top: string | number;\n @Input() width: string | number;\n @Input() height: string | number;\n @Input() right: string | number;\n @Input() bottom: string | number;\n @Input() sizeRange: number[];\n @Input() rotationRange: number[];\n @Input() rotationStep: number;\n @Input() gridSize: number;\n @Input() drawOutOfBound: boolean;\n @Input() textStyle: ITdWordcloudTextStyle;\n\n constructor(_optionsService: TdChartOptionsService) {\n super('wordCloud', _optionsService);\n }\n\n getConfig(): any {\n return {\n shape: this.shape,\n left: this.left,\n top: this.top,\n width: this.width,\n height: this.height,\n right: this.right,\n bottom: this.bottom,\n sizeRange: this.sizeRange,\n rotationRange: this.rotationRange,\n rotationStep: this.rotationStep,\n gridSize: this.gridSize,\n drawOutOfBound: this.drawOutOfBound,\n textStyle: this.textStyle,\n };\n }\n}\n","import { NgModule, Type } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nimport 'echarts-wordcloud';\n\nimport { TdChartSeriesWordcloudComponent } from './wordcloud.component';\n\nexport const WORDCLOUD_MODULE_COMPONENTS: Type<any>[] = [TdChartSeriesWordcloudComponent];\n\n@NgModule({\n imports: [CommonModule],\n declarations: [WORDCLOUD_MODULE_COMPONENTS],\n exports: [WORDCLOUD_MODULE_COMPONENTS],\n})\nexport class CovalentWordcloudEchartsModule {}\n"],"names":["TdSeriesDirective","Component","ChangeDetectionStrategy","forwardRef","TdChartOptionsService","Input","NgModule","CommonModule"],"mappings":";;;;;;IAAA;;;;;;;;;;;;;;IAcA;IAEA,IAAI,aAAa,GAAG,UAAS,CAAC,EAAE,CAAC;QAC7B,aAAa,GAAG,MAAM,CAAC,cAAc;aAChC,EAAE,SAAS,EAAE,EAAE,EAAE,YAAY,KAAK,IAAI,UAAU,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,SAAS,GAAG,CAAC,CAAC,EAAE,CAAC;YAC5E,UAAU,CAAC,EAAE,CAAC,IAAI,KAAK,IAAI,CAAC,IAAI,CAAC;gBAAE,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC;oBAAE,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;QACtG,OAAO,aAAa,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IAC/B,CAAC,CAAC;aAEc,SAAS,CAAC,CAAC,EAAE,CAAC;QAC1B,aAAa,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;QACpB,SAAS,EAAE,KAAK,IAAI,CAAC,WAAW,GAAG,CAAC,CAAC,EAAE;QACvC,CAAC,CAAC,SAAS,GAAG,CAAC,KAAK,IAAI,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,SAAS,GAAG,CAAC,CAAC,SAAS,EAAE,IAAI,EAAE,EAAE,CAAC,CAAC;IACzF,CAAC;IAEM,IAAI,QAAQ,GAAG;QAClB,QAAQ,GAAG,MAAM,CAAC,MAAM,IAAI,SAAS,QAAQ,CAAC,CAAC;YAC3C,KAAK,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
|
|
1
|
+
{"version":3,"file":"covalent-echarts-wordcloud.umd.js","sources":["../../../../node_modules/tslib/tslib.es6.js","../../../../src/platform/echarts/wordcloud/wordcloud.component.ts","../../../../src/platform/echarts/wordcloud/wordcloud.module.ts"],"sourcesContent":["/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n};\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, privateMap) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to get private field on non-instance\");\r\n }\r\n return privateMap.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, privateMap, value) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to set private field on non-instance\");\r\n }\r\n privateMap.set(receiver, value);\r\n return value;\r\n}\r\n","import { Component, Input, ChangeDetectionStrategy, forwardRef } from '@angular/core';\n\nimport { TdChartOptionsService, ITdSeries, TdSeriesDirective } from '@covalent/echarts/base';\n\nexport type TdWordcloudShape =\n | 'circle'\n | 'cardioid'\n | 'diamond'\n | 'triangle-forward'\n | 'triangle'\n | 'pentagon'\n | 'star';\n\nexport interface ITdWordcloudTextStyle {\n normal?: {\n fontFamily?: string;\n fontWeight?: string;\n color?: string | ((x: any) => string);\n };\n emphasis?: {\n shadowBlur?: number;\n shadowColor?: string;\n };\n}\n\nexport interface ITdWordCloudData {\n name: string;\n value: number;\n textStyle?: ITdWordcloudTextStyle;\n}\n\nexport interface ITdWordcloudSeries extends ITdSeries {\n data?: ITdWordCloudData[];\n shape?: TdWordcloudShape;\n left?: string | number;\n top?: string | number;\n width?: string | number;\n height?: string | number;\n right?: string | number;\n bottom?: string | number;\n sizeRange?: number[];\n rotationRange?: number[];\n rotationStep?: number;\n gridSize?: number;\n drawOutOfBound?: boolean;\n textStyle?: ITdWordcloudTextStyle;\n}\n\n@Component({\n selector: 'td-chart-series[td-wordCloud]',\n template: '',\n changeDetection: ChangeDetectionStrategy.OnPush,\n inputs: [\n 'config',\n 'id',\n 'name',\n 'color',\n 'data',\n\n 'animation',\n 'animationThreshold',\n 'animationDuration',\n 'animationEasing',\n 'animationDelay',\n 'animationDurationUpdate',\n 'animationEasingUpdate',\n 'animationDelayUpdate',\n 'tooltip',\n ],\n providers: [\n {\n provide: TdSeriesDirective,\n useExisting: forwardRef(() => TdChartSeriesWordcloudComponent),\n },\n ],\n})\nexport class TdChartSeriesWordcloudComponent extends TdSeriesDirective implements ITdWordcloudSeries {\n @Input() data: ITdWordCloudData[];\n @Input() shape: TdWordcloudShape;\n @Input() left: string | number;\n @Input() top: string | number;\n @Input() width: string | number;\n @Input() height: string | number;\n @Input() right: string | number;\n @Input() bottom: string | number;\n @Input() sizeRange: number[];\n @Input() rotationRange: number[];\n @Input() rotationStep: number;\n @Input() gridSize: number;\n @Input() drawOutOfBound: boolean;\n @Input() textStyle: ITdWordcloudTextStyle;\n\n constructor(_optionsService: TdChartOptionsService) {\n super('wordCloud', _optionsService);\n }\n\n getConfig(): any {\n return {\n shape: this.shape,\n left: this.left,\n top: this.top,\n width: this.width,\n height: this.height,\n right: this.right,\n bottom: this.bottom,\n sizeRange: this.sizeRange,\n rotationRange: this.rotationRange,\n rotationStep: this.rotationStep,\n gridSize: this.gridSize,\n drawOutOfBound: this.drawOutOfBound,\n textStyle: this.textStyle,\n };\n }\n}\n","import { NgModule, Type } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { TdChartSeriesWordcloudComponent } from './wordcloud.component';\n\nexport const WORDCLOUD_MODULE_COMPONENTS: Type<any>[] = [TdChartSeriesWordcloudComponent];\n\n@NgModule({\n imports: [CommonModule],\n declarations: [WORDCLOUD_MODULE_COMPONENTS],\n exports: [WORDCLOUD_MODULE_COMPONENTS],\n})\nexport class CovalentWordcloudEchartsModule {}\n"],"names":["TdSeriesDirective","Component","ChangeDetectionStrategy","forwardRef","TdChartOptionsService","Input","NgModule","CommonModule"],"mappings":";;;;;;IAAA;;;;;;;;;;;;;;IAcA;IAEA,IAAI,aAAa,GAAG,UAAS,CAAC,EAAE,CAAC;QAC7B,aAAa,GAAG,MAAM,CAAC,cAAc;aAChC,EAAE,SAAS,EAAE,EAAE,EAAE,YAAY,KAAK,IAAI,UAAU,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,SAAS,GAAG,CAAC,CAAC,EAAE,CAA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eAAU;;+BAAC,cAAM,OAAA,+BAA+B,GAAA,EAAC;yBAC/D;qBACF;iBACF;;;;gBAzEQC,0BAAqB;;;uBA2E3BC,UAAK;wBACLA,UAAK;uBACLA,UAAK;sBACLA,UAAK;wBACLA,UAAK;yBACLA,UAAK;wBACLA,UAAK;yBACLA,UAAK;4BACLA,UAAK;gCACLA,UAAK;+BACLA,UAAK;2BACLA,UAAK;iCACLA,UAAK;4BACLA,UAAK;;;;QAbN,+CAAkC;;QAClC,gDAAiC;;QACjC,+CAA+B;;QAC/B,8CAA8B;;QAC9B,gDAAgC;;QAChC,iDAAiC;;QACjC,gDAAgC;;QAChC,iDAAiC;;QACjC,oDAA6B;;QAC7B,wDAAiC;;QACjC,uDAA8B;;QAC9B,mDAA0B;;QAC1B,yDAAiC;;QACjC,oDAA0C;;;;;;;;;QCtF/B,2BAA2B,GAAgB,CAAC,+BAA+B;;QAOxF;;;;;gBALCC,aAAQ,SAAC;oBACR,OAAO,EAAE,CAACC,mBAAY,CAAC;oBACvB,YAAY,EAAE,CAAC,2BAA2B,CAAC;oBAC3C,OAAO,EAAE,CAAC,2BAA2B,CAAC;iBACvC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("@angular/common"),require("
|
|
1
|
+
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("@angular/common"),require("@covalent/echarts/base")):"function"==typeof define&&define.amd?define("@covalent/echarts/wordcloud",["exports","@angular/core","@angular/common","@covalent/echarts/base"],e):e(((t="undefined"!=typeof globalThis?globalThis:t||self).covalent=t.covalent||{},t.covalent.echarts=t.covalent.echarts||{},t.covalent.echarts.wordcloud={}),t.ng.core,t.ng.common,t.covalent.echarts.base)}(this,(function(t,e,o,n){"use strict";
|
|
2
2
|
/*! *****************************************************************************
|
|
3
3
|
Copyright (c) Microsoft Corporation.
|
|
4
4
|
|
|
@@ -12,5 +12,5 @@
|
|
|
12
12
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
13
13
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
14
14
|
PERFORMANCE OF THIS SOFTWARE.
|
|
15
|
-
***************************************************************************** */var
|
|
15
|
+
***************************************************************************** */var r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)};Object.create;Object.create;var i=function(t){function e(e){return t.call(this,"wordCloud",e)||this}return function(t,e){function o(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}(e,t),e.prototype.getConfig=function(){return{shape:this.shape,left:this.left,top:this.top,width:this.width,height:this.height,right:this.right,bottom:this.bottom,sizeRange:this.sizeRange,rotationRange:this.rotationRange,rotationStep:this.rotationStep,gridSize:this.gridSize,drawOutOfBound:this.drawOutOfBound,textStyle:this.textStyle}},e}(n.TdSeriesDirective);i.decorators=[{type:e.Component,args:[{selector:"td-chart-series[td-wordCloud]",template:"",changeDetection:e.ChangeDetectionStrategy.OnPush,inputs:["config","id","name","color","data","animation","animationThreshold","animationDuration","animationEasing","animationDelay","animationDurationUpdate","animationEasingUpdate","animationDelayUpdate","tooltip"],providers:[{provide:n.TdSeriesDirective,useExisting:e.forwardRef((function(){return i}))}]}]}],i.ctorParameters=function(){return[{type:n.TdChartOptionsService}]},i.propDecorators={data:[{type:e.Input}],shape:[{type:e.Input}],left:[{type:e.Input}],top:[{type:e.Input}],width:[{type:e.Input}],height:[{type:e.Input}],right:[{type:e.Input}],bottom:[{type:e.Input}],sizeRange:[{type:e.Input}],rotationRange:[{type:e.Input}],rotationStep:[{type:e.Input}],gridSize:[{type:e.Input}],drawOutOfBound:[{type:e.Input}],textStyle:[{type:e.Input}]};var a=[i],p=function(){};p.decorators=[{type:e.NgModule,args:[{imports:[o.CommonModule],declarations:[a],exports:[a]}]}],t.CovalentWordcloudEchartsModule=p,t.TdChartSeriesWordcloudComponent=i,t.WORDCLOUD_MODULE_COMPONENTS=a,Object.defineProperty(t,"__esModule",{value:!0})}));
|
|
16
16
|
//# sourceMappingURL=covalent-echarts-wordcloud.umd.min.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../node_modules/tslib/tslib.es6.js","../../../../src/platform/echarts/wordcloud/wordcloud.component.ts","../../../../src/platform/echarts/wordcloud/wordcloud.module.ts"],"names":["extendStatics","d","b","Object","setPrototypeOf","__proto__","Array","p","prototype","hasOwnProperty","call","create","TdChartSeriesWordcloudComponent","_optionsService","_super","this","__","constructor","__extends","getConfig","shape","left","top","width","height","right","bottom","sizeRange","rotationRange","rotationStep","gridSize","drawOutOfBound","textStyle","TdSeriesDirective","Component","args","selector","template","changeDetection","ChangeDetectionStrategy","OnPush","inputs","providers","provide","useExisting","forwardRef","TdChartOptionsService","Input","WORDCLOUD_MODULE_COMPONENTS","NgModule","imports","CommonModule","declarations","exports"],"mappings":";;;;;;;;;;;;;;oFAgBA,IAAIA,EAAgB,SAASC,EAAGC,GAI5B,OAHAF,EAAgBG,OAAOC,gBAClB,CAAEC,UAAW,cAAgBC,OAAS,SAAUL,EAAGC,GAAKD,EAAEI,UAAYH,IACvE,SAAUD,EAAGC,GAAK,IAAK,IAAIK,KAAKL,EAAOC,OAAOK,UAAUC,eAAeC,KAAKR,EAAGK,KAAIN,EAAEM,GAAKL,EAAEK,MAC3EN,EAAGC,IAqFCC,OAAOQ,OA0FXR,OAAOQ,yBCvG9B,SAAAC,EAAYC,UACVC,EAAAJ,KAAAK,KAAM,YAAaF,IAAgBE,qBDtEbd,EAAGC,GAEzB,SAASc,IAAOD,KAAKE,YAAchB,EADnCD,EAAcC,EAAGC,GAEjBD,EAAEO,UAAkB,OAANN,EAAaC,OAAOQ,OAAOT,IAAMc,EAAGR,UAAYN,EAAEM,UAAW,IAAIQ,GCkD9BE,CAAAN,EAAAE,GAoBnDF,EAAAJ,UAAAW,UAAA,WACE,MAAO,CACLC,MAAOL,KAAKK,MACZC,KAAMN,KAAKM,KACXC,IAAKP,KAAKO,IACVC,MAAOR,KAAKQ,MACZC,OAAQT,KAAKS,OACbC,MAAOV,KAAKU,MACZC,OAAQX,KAAKW,OACbC,UAAWZ,KAAKY,UAChBC,cAAeb,KAAKa,cACpBC,aAAcd,KAAKc,aACnBC,SAAUf,KAAKe,SACfC,eAAgBhB,KAAKgB,eACrBC,UAAWjB,KAAKiB,eAlC+BC,EAAAA,uCA5BpDC,EAAAA,UAASC,KAAA,CAAC,CACTC,SAAU,gCACVC,SAAU,GACVC,gBAAiBC,EAAAA,wBAAwBC,OACzCC,OAAQ,CACN,SACA,KACA,OACA,QACA,OAEA,YACA,qBACA,oBACA,kBACA,iBACA,0BACA,wBACA,uBACA,WAEFC,UAAW,CACT,CACEC,QAASV,EAAAA,kBACTW,YAAaC,EAAAA,YAAU,WAAO,OAAAjC,oDAtE3BkC,EAAAA,uDA2ENC,EAAAA,qBACAA,EAAAA,oBACAA,EAAAA,mBACAA,EAAAA,qBACAA,EAAAA,sBACAA,EAAAA,qBACAA,EAAAA,sBACAA,EAAAA,yBACAA,EAAAA,6BACAA,EAAAA,4BACAA,EAAAA,wBACAA,EAAAA,8BACAA,EAAAA,yBACAA,EAAAA,aCnFUC,EAA2C,CAACpC,KAOzD,iCALCqC,EAAAA,SAAQd,KAAA,CAAC,CACRe,QAAS,CAACC,EAAAA,cACVC,aAAc,CAACJ,GACfK,QAAS,CAACL","sourcesContent":["/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n};\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, privateMap) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to get private field on non-instance\");\r\n }\r\n return privateMap.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, privateMap, value) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to set private field on non-instance\");\r\n }\r\n privateMap.set(receiver, value);\r\n return value;\r\n}\r\n","import { Component, Input, ChangeDetectionStrategy, forwardRef } from '@angular/core';\n\nimport { TdChartOptionsService, ITdSeries, TdSeriesDirective } from '@covalent/echarts/base';\n\nexport type TdWordcloudShape =\n | 'circle'\n | 'cardioid'\n | 'diamond'\n | 'triangle-forward'\n | 'triangle'\n | 'pentagon'\n | 'star';\n\nexport interface ITdWordcloudTextStyle {\n normal?: {\n fontFamily?: string;\n fontWeight?: string;\n color?: string | ((x: any) => string);\n };\n emphasis?: {\n shadowBlur?: number;\n shadowColor?: string;\n };\n}\n\nexport interface ITdWordCloudData {\n name: string;\n value: number;\n textStyle?: ITdWordcloudTextStyle;\n}\n\nexport interface ITdWordcloudSeries extends ITdSeries {\n data?: ITdWordCloudData[];\n shape?: TdWordcloudShape;\n left?: string | number;\n top?: string | number;\n width?: string | number;\n height?: string | number;\n right?: string | number;\n bottom?: string | number;\n sizeRange?: number[];\n rotationRange?: number[];\n rotationStep?: number;\n gridSize?: number;\n drawOutOfBound?: boolean;\n textStyle?: ITdWordcloudTextStyle;\n}\n\n@Component({\n selector: 'td-chart-series[td-wordCloud]',\n template: '',\n changeDetection: ChangeDetectionStrategy.OnPush,\n inputs: [\n 'config',\n 'id',\n 'name',\n 'color',\n 'data',\n\n 'animation',\n 'animationThreshold',\n 'animationDuration',\n 'animationEasing',\n 'animationDelay',\n 'animationDurationUpdate',\n 'animationEasingUpdate',\n 'animationDelayUpdate',\n 'tooltip',\n ],\n providers: [\n {\n provide: TdSeriesDirective,\n useExisting: forwardRef(() => TdChartSeriesWordcloudComponent),\n },\n ],\n})\nexport class TdChartSeriesWordcloudComponent extends TdSeriesDirective implements ITdWordcloudSeries {\n @Input() data: ITdWordCloudData[];\n @Input() shape: TdWordcloudShape;\n @Input() left: string | number;\n @Input() top: string | number;\n @Input() width: string | number;\n @Input() height: string | number;\n @Input() right: string | number;\n @Input() bottom: string | number;\n @Input() sizeRange: number[];\n @Input() rotationRange: number[];\n @Input() rotationStep: number;\n @Input() gridSize: number;\n @Input() drawOutOfBound: boolean;\n @Input() textStyle: ITdWordcloudTextStyle;\n\n constructor(_optionsService: TdChartOptionsService) {\n super('wordCloud', _optionsService);\n }\n\n getConfig(): any {\n return {\n shape: this.shape,\n left: this.left,\n top: this.top,\n width: this.width,\n height: this.height,\n right: this.right,\n bottom: this.bottom,\n sizeRange: this.sizeRange,\n rotationRange: this.rotationRange,\n rotationStep: this.rotationStep,\n gridSize: this.gridSize,\n drawOutOfBound: this.drawOutOfBound,\n textStyle: this.textStyle,\n };\n }\n}\n","import { NgModule, Type } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nimport 'echarts-wordcloud';\n\nimport { TdChartSeriesWordcloudComponent } from './wordcloud.component';\n\nexport const WORDCLOUD_MODULE_COMPONENTS: Type<any>[] = [TdChartSeriesWordcloudComponent];\n\n@NgModule({\n imports: [CommonModule],\n declarations: [WORDCLOUD_MODULE_COMPONENTS],\n exports: [WORDCLOUD_MODULE_COMPONENTS],\n})\nexport class CovalentWordcloudEchartsModule {}\n"]}
|
|
1
|
+
{"version":3,"sources":["../../../../node_modules/tslib/tslib.es6.js","../../../../src/platform/echarts/wordcloud/wordcloud.component.ts","../../../../src/platform/echarts/wordcloud/wordcloud.module.ts"],"names":["extendStatics","d","b","Object","setPrototypeOf","__proto__","Array","p","prototype","hasOwnProperty","call","create","TdChartSeriesWordcloudComponent","_optionsService","_super","this","__","constructor","__extends","getConfig","shape","left","top","width","height","right","bottom","sizeRange","rotationRange","rotationStep","gridSize","drawOutOfBound","textStyle","TdSeriesDirective","Component","args","selector","template","changeDetection","ChangeDetectionStrategy","OnPush","inputs","providers","provide","useExisting","forwardRef","TdChartOptionsService","Input","WORDCLOUD_MODULE_COMPONENTS","NgModule","imports","CommonModule","declarations","exports"],"mappings":";;;;;;;;;;;;;;oFAgBA,IAAIA,EAAgB,SAASC,EAAGC,GAI5B,OAHAF,EAAgBG,OAAOC,gBAClB,CAAEC,UAAW,cAAgBC,OAAS,SAAUL,EAAGC,GAAKD,EAAEI,UAAYH,IACvE,SAAUD,EAAGC,GAAK,IAA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,EAA2C,CAACpC,KAOzD,iCALCqC,EAAAA,SAAQd,KAAA,CAAC,CACRe,QAAS,CAACC,EAAAA,cACVC,aAAc,CAACJ,GACfK,QAAS,CAACL","sourcesContent":["/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n};\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, privateMap) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to get private field on non-instance\");\r\n }\r\n return privateMap.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, privateMap, value) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to set private field on non-instance\");\r\n }\r\n privateMap.set(receiver, value);\r\n return value;\r\n}\r\n","import { Component, Input, ChangeDetectionStrategy, forwardRef } from '@angular/core';\n\nimport { TdChartOptionsService, ITdSeries, TdSeriesDirective } from '@covalent/echarts/base';\n\nexport type TdWordcloudShape =\n | 'circle'\n | 'cardioid'\n | 'diamond'\n | 'triangle-forward'\n | 'triangle'\n | 'pentagon'\n | 'star';\n\nexport interface ITdWordcloudTextStyle {\n normal?: {\n fontFamily?: string;\n fontWeight?: string;\n color?: string | ((x: any) => string);\n };\n emphasis?: {\n shadowBlur?: number;\n shadowColor?: string;\n };\n}\n\nexport interface ITdWordCloudData {\n name: string;\n value: number;\n textStyle?: ITdWordcloudTextStyle;\n}\n\nexport interface ITdWordcloudSeries extends ITdSeries {\n data?: ITdWordCloudData[];\n shape?: TdWordcloudShape;\n left?: string | number;\n top?: string | number;\n width?: string | number;\n height?: string | number;\n right?: string | number;\n bottom?: string | number;\n sizeRange?: number[];\n rotationRange?: number[];\n rotationStep?: number;\n gridSize?: number;\n drawOutOfBound?: boolean;\n textStyle?: ITdWordcloudTextStyle;\n}\n\n@Component({\n selector: 'td-chart-series[td-wordCloud]',\n template: '',\n changeDetection: ChangeDetectionStrategy.OnPush,\n inputs: [\n 'config',\n 'id',\n 'name',\n 'color',\n 'data',\n\n 'animation',\n 'animationThreshold',\n 'animationDuration',\n 'animationEasing',\n 'animationDelay',\n 'animationDurationUpdate',\n 'animationEasingUpdate',\n 'animationDelayUpdate',\n 'tooltip',\n ],\n providers: [\n {\n provide: TdSeriesDirective,\n useExisting: forwardRef(() => TdChartSeriesWordcloudComponent),\n },\n ],\n})\nexport class TdChartSeriesWordcloudComponent extends TdSeriesDirective implements ITdWordcloudSeries {\n @Input() data: ITdWordCloudData[];\n @Input() shape: TdWordcloudShape;\n @Input() left: string | number;\n @Input() top: string | number;\n @Input() width: string | number;\n @Input() height: string | number;\n @Input() right: string | number;\n @Input() bottom: string | number;\n @Input() sizeRange: number[];\n @Input() rotationRange: number[];\n @Input() rotationStep: number;\n @Input() gridSize: number;\n @Input() drawOutOfBound: boolean;\n @Input() textStyle: ITdWordcloudTextStyle;\n\n constructor(_optionsService: TdChartOptionsService) {\n super('wordCloud', _optionsService);\n }\n\n getConfig(): any {\n return {\n shape: this.shape,\n left: this.left,\n top: this.top,\n width: this.width,\n height: this.height,\n right: this.right,\n bottom: this.bottom,\n sizeRange: this.sizeRange,\n rotationRange: this.rotationRange,\n rotationStep: this.rotationStep,\n gridSize: this.gridSize,\n drawOutOfBound: this.drawOutOfBound,\n textStyle: this.textStyle,\n };\n }\n}\n","import { NgModule, Type } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { TdChartSeriesWordcloudComponent } from './wordcloud.component';\n\nexport const WORDCLOUD_MODULE_COMPONENTS: Type<any>[] = [TdChartSeriesWordcloudComponent];\n\n@NgModule({\n imports: [CommonModule],\n declarations: [WORDCLOUD_MODULE_COMPONENTS],\n exports: [WORDCLOUD_MODULE_COMPONENTS],\n})\nexport class CovalentWordcloudEchartsModule {}\n"]}
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import { NgModule } from '@angular/core';
|
|
7
7
|
import { CommonModule } from '@angular/common';
|
|
8
|
-
import 'echarts/lib/component/toolbox';
|
|
9
8
|
import { TdChartToolboxComponent, TdChartViewDataFormatterDirective } from './toolbox.component';
|
|
10
9
|
/** @type {?} */
|
|
11
10
|
export const TOOLBOX_MODULE_COMPONENTS = [TdChartToolboxComponent, TdChartViewDataFormatterDirective];
|
|
@@ -18,4 +17,4 @@ CovalentToolboxEchartsModule.decorators = [
|
|
|
18
17
|
exports: [TOOLBOX_MODULE_COMPONENTS],
|
|
19
18
|
},] }
|
|
20
19
|
];
|
|
21
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
20
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidG9vbGJveC5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiLi4vLi4vLi4vLi4vLi4vc3JjL3BsYXRmb3JtL2VjaGFydHMvdG9vbGJveC8iLCJzb3VyY2VzIjpbInRvb2xib3gubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7O0FBQUEsT0FBTyxFQUFFLFFBQVEsRUFBUSxNQUFNLGVBQWUsQ0FBQztBQUMvQyxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFDL0MsT0FBTyxFQUFFLHVCQUF1QixFQUFFLGlDQUFpQyxFQUFFLE1BQU0scUJBQXFCLENBQUM7O0FBRWpHLE1BQU0sT0FBTyx5QkFBeUIsR0FBZ0IsQ0FBQyx1QkFBdUIsRUFBRSxpQ0FBaUMsQ0FBQztBQU9sSCxNQUFNLE9BQU8sNEJBQTRCOzs7WUFMeEMsUUFBUSxTQUFDO2dCQUNSLE9BQU8sRUFBRSxDQUFDLFlBQVksQ0FBQztnQkFDdkIsWUFBWSxFQUFFLENBQUMseUJBQXlCLENBQUM7Z0JBQ3pDLE9BQU8sRUFBRSxDQUFDLHlCQUF5QixDQUFDO2FBQ3JDIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgTmdNb2R1bGUsIFR5cGUgfSBmcm9tICdAYW5ndWxhci9jb3JlJztcbmltcG9ydCB7IENvbW1vbk1vZHVsZSB9IGZyb20gJ0Bhbmd1bGFyL2NvbW1vbic7XG5pbXBvcnQgeyBUZENoYXJ0VG9vbGJveENvbXBvbmVudCwgVGRDaGFydFZpZXdEYXRhRm9ybWF0dGVyRGlyZWN0aXZlIH0gZnJvbSAnLi90b29sYm94LmNvbXBvbmVudCc7XG5cbmV4cG9ydCBjb25zdCBUT09MQk9YX01PRFVMRV9DT01QT05FTlRTOiBUeXBlPGFueT5bXSA9IFtUZENoYXJ0VG9vbGJveENvbXBvbmVudCwgVGRDaGFydFZpZXdEYXRhRm9ybWF0dGVyRGlyZWN0aXZlXTtcblxuQE5nTW9kdWxlKHtcbiAgaW1wb3J0czogW0NvbW1vbk1vZHVsZV0sXG4gIGRlY2xhcmF0aW9uczogW1RPT0xCT1hfTU9EVUxFX0NPTVBPTkVOVFNdLFxuICBleHBvcnRzOiBbVE9PTEJPWF9NT0RVTEVfQ09NUE9ORU5UU10sXG59KVxuZXhwb3J0IGNsYXNzIENvdmFsZW50VG9vbGJveEVjaGFydHNNb2R1bGUge31cbiJdfQ==
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import { NgModule } from '@angular/core';
|
|
7
7
|
import { CommonModule } from '@angular/common';
|
|
8
|
-
import 'echarts/lib/component/tooltip';
|
|
9
8
|
import { TdChartTooltipComponent, TdChartTooltipFormatterDirective } from './tooltip.component';
|
|
10
9
|
import { TdSeriesTooltipComponent } from './series-tooltip.component';
|
|
11
10
|
/** @type {?} */
|
|
@@ -23,4 +22,4 @@ CovalentTooltipEchartsModule.decorators = [
|
|
|
23
22
|
exports: [TOOLTIP_MODULE_COMPONENTS],
|
|
24
23
|
},] }
|
|
25
24
|
];
|
|
26
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
25
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidG9vbHRpcC5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiLi4vLi4vLi4vLi4vLi4vc3JjL3BsYXRmb3JtL2VjaGFydHMvdG9vbHRpcC8iLCJzb3VyY2VzIjpbInRvb2x0aXAubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7O0FBQUEsT0FBTyxFQUFFLFFB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RpdmUsXG4gIFRkU2VyaWVzVG9vbHRpcENvbXBvbmVudCxcbl07XG5cbkBOZ01vZHVsZSh7XG4gIGltcG9ydHM6IFtDb21tb25Nb2R1bGVdLFxuICBkZWNsYXJhdGlvbnM6IFtUT09MVElQX01PRFVMRV9DT01QT05FTlRTXSxcbiAgZXhwb3J0czogW1RPT0xUSVBfTU9EVUxFX0NPTVBPTkVOVFNdLFxufSlcbmV4cG9ydCBjbGFzcyBDb3ZhbGVudFRvb2x0aXBFY2hhcnRzTW9kdWxlIHt9XG4iXX0=
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import { NgModule } from '@angular/core';
|
|
7
7
|
import { CommonModule } from '@angular/common';
|
|
8
|
-
import 'echarts-wordcloud';
|
|
9
8
|
import { TdChartSeriesWordcloudComponent } from './wordcloud.component';
|
|
10
9
|
/** @type {?} */
|
|
11
10
|
export const WORDCLOUD_MODULE_COMPONENTS = [TdChartSeriesWordcloudComponent];
|
|
@@ -18,4 +17,4 @@ CovalentWordcloudEchartsModule.decorators = [
|
|
|
18
17
|
exports: [WORDCLOUD_MODULE_COMPONENTS],
|
|
19
18
|
},] }
|
|
20
19
|
];
|
|
21
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
20
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid29yZGNsb3VkLm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiIuLi8uLi8uLi8uLi8uLi9zcmMvcGxhdGZvcm0vZWNoYXJ0cy93b3JkY2xvdWQvIiwic291cmNlcyI6WyJ3b3JkY2xvdWQubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7O0FBQUEsT0FBTyxFQUFFLFFBQVEsRUFBUSxNQUFNLGVBQWUsQ0FBQztBQUMvQyxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFDL0MsT0FBTyxFQUFFLCtCQUErQixFQUFFLE1BQU0sdUJBQXVCLENBQUM7O0FBRXhFLE1BQU0sT0FBTywyQkFBMkIsR0FBZ0IsQ0FBQywrQkFBK0IsQ0FBQztBQU96RixNQUFNLE9BQU8sOEJBQThCOzs7WUFMMUMsUUFBUSxTQUFDO2dCQUNSLE9BQU8sRUFBRSxDQUFDLFlBQVksQ0FBQztnQkFDdkIsWUFBWSxFQUFFLENBQUMsMkJBQTJCLENBQUM7Z0JBQzNDLE9BQU8sRUFBRSxDQUFDLDJCQUEyQixDQUFDO2FBQ3ZDIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgTmdNb2R1bGUsIFR5cGUgfSBmcm9tICdAYW5ndWxhci9jb3JlJztcbmltcG9ydCB7IENvbW1vbk1vZHVsZSB9IGZyb20gJ0Bhbmd1bGFyL2NvbW1vbic7XG5pbXBvcnQgeyBUZENoYXJ0U2VyaWVzV29yZGNsb3VkQ29tcG9uZW50IH0gZnJvbSAnLi93b3JkY2xvdWQuY29tcG9uZW50JztcblxuZXhwb3J0IGNvbnN0IFdPUkRDTE9VRF9NT0RVTEVfQ09NUE9ORU5UUzogVHlwZTxhbnk+W10gPSBbVGRDaGFydFNlcmllc1dvcmRjbG91ZENvbXBvbmVudF07XG5cbkBOZ01vZHVsZSh7XG4gIGltcG9ydHM6IFtDb21tb25Nb2R1bGVdLFxuICBkZWNsYXJhdGlvbnM6IFtXT1JEQ0xPVURfTU9EVUxFX0NPTVBPTkVOVFNdLFxuICBleHBvcnRzOiBbV09SRENMT1VEX01PRFVMRV9DT01QT05FTlRTXSxcbn0pXG5leHBvcnQgY2xhc3MgQ292YWxlbnRXb3JkY2xvdWRFY2hhcnRzTW9kdWxlIHt9XG4iXX0=
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Directive, Component, ChangeDetectionStrategy, ChangeDetectorRef, ElementRef, Input, ContentChild, TemplateRef, ViewChild, NgModule } from '@angular/core';
|
|
2
2
|
import { CommonModule } from '@angular/common';
|
|
3
|
-
import 'echarts/lib/component/toolbox';
|
|
4
3
|
import { assignDefined, TdChartOptionsService } from '@covalent/echarts/base';
|
|
5
4
|
|
|
6
5
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"covalent-echarts-toolbox.js","sources":["../../../../src/platform/echarts/toolbox/toolbox.component.ts","../../../../src/platform/echarts/toolbox/toolbox.module.ts"],"sourcesContent":["import {\n Component,\n Input,\n Directive,\n TemplateRef,\n ChangeDetectionStrategy,\n ElementRef,\n ChangeDetectorRef,\n OnChanges,\n ContentChild,\n ViewChild,\n OnDestroy,\n} from '@angular/core';\n\nimport {\n TdChartOptionsService,\n assignDefined,\n ITdLabel,\n ITdShadow,\n ITdItemStyle,\n TdTextPosition,\n TdTextAlign,\n} from '@covalent/echarts/base';\n\nexport type TdToolboxOrient = 'horizontal' | 'vertical';\nexport type TdImageType = 'png' | 'jpeg';\n\nexport interface ITdAcceptedBrushTypes {\n rect?: string;\n polygon?: string;\n lineX?: string;\n lineY?: string;\n keep?: string;\n clear?: string;\n}\n\nexport interface ITdAcceptedMagicTypes {\n line?: string;\n bar?: string;\n stack?: string;\n tiled?: string;\n}\n\nexport interface ITdToolboxIconEmphasis extends ITdItemStyle, ITdShadow {}\n\nexport interface ITdFeatureIconStyle extends ITdItemStyle, ITdShadow {\n textPosition?: TdTextPosition;\n textAlign?: TdTextAlign;\n emphasis?: ITdToolboxIconEmphasis;\n}\n\nexport interface ITdZoomTitles {\n zoom?: string;\n back?: string;\n}\n\nexport interface ITdSaveAsImage {\n type?: TdImageType;\n name?: string;\n backgroundColor?: any;\n excludeComponents?: string[]; // defaults to ['toolbox']\n show?: boolean;\n title?: string;\n icon?: string;\n iconStyle?: ITdFeatureIconStyle;\n pixelRatio?: number;\n}\n\nexport interface ITdRestore {\n show?: boolean;\n title?: string;\n icon?: string;\n iconStyle?: ITdFeatureIconStyle;\n}\n\nexport interface ITdDataView {\n show?: boolean;\n title?: string;\n icon?: string;\n iconStyle?: ITdFeatureIconStyle;\n readOnly?: boolean;\n optionToContent?: Function;\n contentToOption?: Function;\n lang?: string[]; // Defaults to Chinese, there are 3 names in data view, which are ['data view', 'turn off' and 'refresh'].\n textareaColor?: string;\n textareaBorderColor?: string;\n textColor?: string;\n buttonColor?: string;\n buttonTextColor?: string;\n}\n\nexport interface ITdDataZoom {\n show?: boolean;\n title?: ITdZoomTitles;\n icon?: ITdZoomTitles;\n iconStyle?: ITdFeatureIconStyle;\n xAxisIndex?: number | number[] | boolean;\n yAxisIndex?: number | number[] | boolean;\n}\n\nexport interface ITdMagicType {\n show?: boolean;\n type?: string[]; // only expects 'line' | 'bar' | 'stack' | 'tiled';\n title?: ITdAcceptedMagicTypes;\n icon?: ITdAcceptedMagicTypes;\n iconStyle?: ITdFeatureIconStyle;\n option?: {\n line?: object;\n bar?: object;\n stack?: object;\n tiled?: object;\n };\n seriesIndex?: {\n line?: any[];\n bar?: any[];\n stack?: any[];\n tiled?: any[];\n };\n}\n\nexport interface ITdBrush {\n type?: any[];\n icon?: ITdAcceptedBrushTypes;\n title?: ITdAcceptedBrushTypes;\n}\n\nexport interface ITdToolboxFeature {\n saveAsImage?: ITdSaveAsImage;\n restore?: ITdRestore;\n dataView?: ITdDataView;\n dataZoom?: ITdDataZoom;\n magicType?: ITdMagicType;\n brush?: ITdBrush;\n}\n\n@Directive({\n selector: 'ng-template[tdViewDataFormatter]',\n})\nexport class TdChartViewDataFormatterDirective {}\n\n@Component({\n selector: 'td-chart-toolbox',\n templateUrl: './toolbox.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TdChartToolboxComponent implements OnChanges, OnDestroy {\n private _state: any = {};\n\n @Input() config: any = {};\n\n @Input() show: boolean = true;\n @Input() trigger: string;\n @Input() orient: TdToolboxOrient;\n @Input() itemSize: number;\n @Input() itemGap: number;\n @Input() showTitle: boolean = true;\n @Input() label: ITdLabel;\n @Input() feature: ITdToolboxFeature;\n @Input() iconStyle: ITdFeatureIconStyle;\n @Input() zlevel: number;\n @Input() z: number;\n @Input() transitionDuration: number = 0.5;\n @Input() left: string | number = 'auto';\n @Input() top: string | number = 'auto';\n @Input() right: string | number = 'auto';\n @Input() bottom: string | number = 'auto';\n @Input() width: string | number = 'auto';\n @Input() height: string | number = 'auto';\n\n @ContentChild(TdChartViewDataFormatterDirective, { read: TemplateRef })\n formatterTemplate: TemplateRef<any>;\n @ViewChild('toolboxContent', { static: true }) fullTemplate: TemplateRef<any>;\n\n constructor(\n private _changeDetectorRef: ChangeDetectorRef,\n private _elementRef: ElementRef,\n private _optionsService: TdChartOptionsService,\n ) {}\n\n ngOnChanges(): void {\n this._setOptions();\n }\n\n ngOnDestroy(): void {\n this._removeOption();\n }\n\n private _setOptions(): void {\n this._checkFormatterTemplate();\n\n const config: any = assignDefined(\n this._state,\n {\n show: this.show,\n name: this.trigger,\n orient: this.orient,\n itemSize: this.itemSize,\n itemGap: this.itemGap,\n showTitle: this.showTitle,\n label: this.label,\n feature: this.feature,\n iconStyle: this.iconStyle,\n zlevel: this.zlevel,\n z: this.z,\n transitionDuration: this.transitionDuration,\n left: this.left,\n top: this.top,\n right: this.right,\n bottom: this.bottom,\n width: this.width,\n height: this.height,\n },\n this.config ? this.config : {},\n );\n // set toolbox configuration in parent chart and render new configurations\n this._optionsService.setOption('toolbox', config);\n }\n\n private _removeOption(): void {\n this._optionsService.clearOption('toolbox');\n }\n\n private _checkFormatterTemplate(): void {\n if (this.formatterTemplate) {\n this.feature = {\n ...this.feature,\n dataView: {\n ...this.feature.dataView,\n optionToContent: this._optionToContentFormatter(),\n },\n };\n }\n }\n\n private _optionToContentFormatter(): () => string {\n return () => {\n this._changeDetectorRef.markForCheck();\n return (<HTMLElement>this._elementRef.nativeElement).innerHTML;\n };\n }\n}\n","import { NgModule, Type } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nimport 'echarts/lib/component/toolbox';\n\nimport { TdChartToolboxComponent, TdChartViewDataFormatterDirective } from './toolbox.component';\n\nexport const TOOLBOX_MODULE_COMPONENTS: Type<any>[] = [TdChartToolboxComponent, TdChartViewDataFormatterDirective];\n\n@NgModule({\n imports: [CommonModule],\n declarations: [TOOLBOX_MODULE_COMPONENTS],\n exports: [TOOLBOX_MODULE_COMPONENTS],\n})\nexport class CovalentToolboxEchartsModule {}\n"],"names":[],"mappings":";;;;;;;;;;;;;oCAkCC;;;IANC,qCAAc;;IACd,wCAAiB;;IACjB,sCAAe;;IACf,sCAAe;;IACf,qCAAc;;IACd,sCAAe;;;;;oCAQhB;;;IAJC,qCAAc;;IACd,oCAAa;;IACb,sCAAe;;IACf,sCAAe;;;;;qCAGyD;;;;kCAMzE;;;IAHC,2CAA8B;;IAC9B,wCAAwB;;IACxB,uCAAkC;;;;;4BAMnC;;;IAFC,6BAAc;;IACd,6BAAc;;;;;6BAaf;;;IATC,8BAAmB;;IACnB,8BAAc;;IACd,yCAAsB;;IACtB,2CAA6B;;IAC7B,8BAAe;;IACf,+BAAe;;IACf,8BAAc;;IACd,mCAAgC;;IAChC,oCAAoB;;;;;yBAQrB;;;IAJC,0BAAe;;IACf,2BAAe;;IACf,0BAAc;;IACd,+BAAgC;;;;;0BAiBjC;;;IAbC,2BAAe;;IACf,4BAAe;;IACf,2BAAc;;IACd,gCAAgC;;IAChC,+BAAmB;;IACnB,sCAA2B;;IAC3B,sCAA2B;;IAC3B,2BAAgB;;IAChB,oCAAuB;;IACvB,0CAA6B;;IAC7B,gCAAmB;;IACnB,kCAAqB;;IACrB,sCAAyB;;;;;0BAU1B;;;IANC,2BAAe;;IACf,4BAAsB;;IACtB,2BAAqB;;IACrB,gCAAgC;;IAChC,iCAAyC;;IACzC,iCAAyC;;;;;2BAqB1C;;;IAjBC,4BAAe;;IACf,4BAAgB;;IAChB,6BAA8B;;IAC9B,4BAA6B;;IAC7B,iCAAgC;;IAChC,8BAKE;;IACF,mCAKE;;;;;uBAOH;;;IAHC,wBAAa;;IACb,wBAA6B;;IAC7B,yBAA8B;;;;;gCAU/B;;;I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ACL,KAAK;wBACL,KAAK;qBACL,KAAK;gBACL,KAAK;iCACL,KAAK;mBACL,KAAK;kBACL,KAAK;oBACL,KAAK;qBACL,KAAK;oBACL,KAAK;qBACL,KAAK;gCAEL,YAAY,SAAC,iCAAiC,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE;2BAErE,SAAS,SAAC,gBAAgB,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE;;;;;;;IAzB7C,yCAAyB;;IAEzB,yCAA0B;;IAE1B,uCAA8B;;IAC9B,0CAAyB;;IACzB,yCAAiC;;IACjC,2CAA0B;;IAC1B,0CAAyB;;IACzB,4CAAmC;;IACnC,wCAAyB;;IACzB,0CAAoC;;IACpC,4CAAwC;;IACxC,yCAAwB;;IACxB,oCAAmB;;IACnB,qDAA0C;;IAC1C,uCAAwC;;IACxC,sCAAuC;;IACvC,wCAAyC;;IACzC,yCAA0C;;IAC1C,wCAAyC;;IACzC,yCAA0C;;IAE1C,oDACoC;;IACpC,+CAA8E;;;;;IAG5E,qDAA6C;;;;;IAC7C,8CAA+B;;;;;IAC/B,kDAA8C;;;;;;;;;MCzKrC,yBAAyB,GAAgB,CAAC,uBAAuB,EAAE,iCAAiC;MAOpG,4BAA4B;;;YALxC,QAAQ,SAAC;gBACR,OAAO,EAAE,CAAC,YAAY,CAAC;gBACvB,YAAY,EAAE,CAAC,yBAAyB,CAAC;gBACzC,OAAO,EAAE,CAAC,yBAAyB,CAAC;aACrC;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"covalent-echarts-toolbox.js","sources":["../../../../src/platform/echarts/toolbox/toolbox.component.ts","../../../../src/platform/echarts/toolbox/toolbox.module.ts"],"sourcesContent":["import {\n Component,\n Input,\n Directive,\n TemplateRef,\n ChangeDetectionStrategy,\n ElementRef,\n ChangeDetectorRef,\n OnChanges,\n ContentChild,\n ViewChild,\n OnDestroy,\n} from '@angular/core';\n\nimport {\n TdChartOptionsService,\n assignDefined,\n ITdLabel,\n ITdShadow,\n ITdItemStyle,\n TdTextPosition,\n TdTextAlign,\n} from '@covalent/echarts/base';\n\nexport type TdToolboxOrient = 'horizontal' | 'vertical';\nexport type TdImageType = 'png' | 'jpeg';\n\nexport interface ITdAcceptedBrushTypes {\n rect?: string;\n polygon?: string;\n lineX?: string;\n lineY?: string;\n keep?: string;\n clear?: string;\n}\n\nexport interface ITdAcceptedMagicTypes {\n line?: string;\n bar?: string;\n stack?: string;\n tiled?: string;\n}\n\nexport interface ITdToolboxIconEmphasis extends ITdItemStyle, ITdShadow {}\n\nexport interface ITdFeatureIconStyle extends ITdItemStyle, ITdShadow {\n textPosition?: TdTextPosition;\n textAlign?: TdTextAlign;\n emphasis?: ITdToolboxIconEmphasis;\n}\n\nexport interface ITdZoomTitles {\n zoom?: string;\n back?: string;\n}\n\nexport interface ITdSaveAsImage {\n type?: TdImageType;\n name?: string;\n backgroundColor?: any;\n excludeComponents?: string[]; // defaults to ['toolbox']\n show?: boolean;\n title?: string;\n icon?: string;\n iconStyle?: ITdFeatureIconStyle;\n pixelRatio?: number;\n}\n\nexport interface ITdRestore {\n show?: boolean;\n title?: string;\n icon?: string;\n iconStyle?: ITdFeatureIconStyle;\n}\n\nexport interface ITdDataView {\n show?: boolean;\n title?: string;\n icon?: string;\n iconStyle?: ITdFeatureIconStyle;\n readOnly?: boolean;\n optionToContent?: Function;\n contentToOption?: Function;\n lang?: string[]; // Defaults to Chinese, there are 3 names in data view, which are ['data view', 'turn off' and 'refresh'].\n textareaColor?: string;\n textareaBorderColor?: string;\n textColor?: string;\n buttonColor?: string;\n buttonTextColor?: string;\n}\n\nexport interface ITdDataZoom {\n show?: boolean;\n title?: ITdZoomTitles;\n icon?: ITdZoomTitles;\n iconStyle?: ITdFeatureIconStyle;\n xAxisIndex?: number | number[] | boolean;\n yAxisIndex?: number | number[] | boolean;\n}\n\nexport interface ITdMagicType {\n show?: boolean;\n type?: string[]; // only expects 'line' | 'bar' | 'stack' | 'tiled';\n title?: ITdAcceptedMagicTypes;\n icon?: ITdAcceptedMagicTypes;\n iconStyle?: ITdFeatureIconStyle;\n option?: {\n line?: object;\n bar?: object;\n stack?: object;\n tiled?: object;\n };\n seriesIndex?: {\n line?: any[];\n bar?: any[];\n stack?: any[];\n tiled?: any[];\n };\n}\n\nexport interface ITdBrush {\n type?: any[];\n icon?: ITdAcceptedBrushTypes;\n title?: ITdAcceptedBrushTypes;\n}\n\nexport interface ITdToolboxFeature {\n saveAsImage?: ITdSaveAsImage;\n restore?: ITdRestore;\n dataView?: ITdDataView;\n dataZoom?: ITdDataZoom;\n magicType?: ITdMagicType;\n brush?: ITdBrush;\n}\n\n@Directive({\n selector: 'ng-template[tdViewDataFormatter]',\n})\nexport class TdChartViewDataFormatterDirective {}\n\n@Component({\n selector: 'td-chart-toolbox',\n templateUrl: './toolbox.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TdChartToolboxComponent implements OnChanges, OnDestroy {\n private _state: any = {};\n\n @Input() config: any = {};\n\n @Input() show: boolean = true;\n @Input() trigger: string;\n @Input() orient: TdToolboxOrient;\n @Input() itemSize: number;\n @Input() itemGap: number;\n @Input() showTitle: boolean = true;\n @Input() label: ITdLabel;\n @Input() feature: ITdToolboxFeature;\n @Input() iconStyle: ITdFeatureIconStyle;\n @Input() zlevel: number;\n @Input() z: number;\n @Input() transitionDuration: number = 0.5;\n @Input() left: string | number = 'auto';\n @Input() top: string | number = 'auto';\n @Input() right: string | number = 'auto';\n @Input() bottom: string | number = 'auto';\n @Input() width: string | number = 'auto';\n @Input() height: string | number = 'auto';\n\n @ContentChild(TdChartViewDataFormatterDirective, { read: TemplateRef })\n formatterTemplate: TemplateRef<any>;\n @ViewChild('toolboxContent', { static: true }) fullTemplate: TemplateRef<any>;\n\n constructor(\n private _changeDetectorRef: ChangeDetectorRef,\n private _elementRef: ElementRef,\n private _optionsService: TdChartOptionsService,\n ) {}\n\n ngOnChanges(): void {\n this._setOptions();\n }\n\n ngOnDestroy(): void {\n this._removeOption();\n }\n\n private _setOptions(): void {\n this._checkFormatterTemplate();\n\n const config: any = assignDefined(\n this._state,\n {\n show: this.show,\n name: this.trigger,\n orient: this.orient,\n itemSize: this.itemSize,\n itemGap: this.itemGap,\n showTitle: this.showTitle,\n label: this.label,\n feature: this.feature,\n iconStyle: this.iconStyle,\n zlevel: this.zlevel,\n z: this.z,\n transitionDuration: this.transitionDuration,\n left: this.left,\n top: this.top,\n right: this.right,\n bottom: this.bottom,\n width: this.width,\n height: this.height,\n },\n this.config ? this.config : {},\n );\n // set toolbox configuration in parent chart and render new configurations\n this._optionsService.setOption('toolbox', config);\n }\n\n private _removeOption(): void {\n this._optionsService.clearOption('toolbox');\n }\n\n private _checkFormatterTemplate(): void {\n if (this.formatterTemplate) {\n this.feature = {\n ...this.feature,\n dataView: {\n ...this.feature.dataView,\n optionToContent: this._optionToContentFormatter(),\n },\n };\n }\n }\n\n private _optionToContentFormatter(): () => string {\n return () => {\n this._changeDetectorRef.markForCheck();\n return (<HTMLElement>this._elementRef.nativeElement).innerHTML;\n };\n }\n}\n","import { NgModule, Type } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { TdChartToolboxComponent, TdChartViewDataFormatterDirective } from './toolbox.component';\n\nexport const TOOLBOX_MODULE_COMPONENTS: Type<any>[] = [TdChartToolboxComponent, TdChartViewDataFormatterDirective];\n\n@NgModule({\n imports: [CommonModule],\n declarations: [TOOLBOX_MODULE_COMPONENTS],\n exports: [TOOLBOX_MODULE_COMPONENTS],\n})\nexport class CovalentToolboxEchartsModule {}\n"],"names":[],"mappings":";;;;;;;;;;;;oCAkCC;;;IANC,qCAAc;;IACd,wCAAiB;;IACjB,sCAAe;;IACf,sCAAe;;IACf,qCAAc;;IACd,sCAAe;;;;;oCAQhB;;;IAJC,qCAAc;;IACd,oCAAa;;IACb,sCAAe;;IACf,sCAAe;;;;;qCAGyD;;;;kCAMzE;;;IAHC,2CAA8B;;IAC9B,wCAAwB;;IACxB,uCAAkC;;;;;4BA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oCAAmB;;IACnB,qDAA0C;;IAC1C,uCAAwC;;IACxC,sCAAuC;;IACvC,wCAAyC;;IACzC,yCAA0C;;IAC1C,wCAAyC;;IACzC,yCAA0C;;IAE1C,oDACoC;;IACpC,+CAA8E;;;;;IAG5E,qDAA6C;;;;;IAC7C,8CAA+B;;;;;IAC/B,kDAA8C;;;;;;;;;MC5KrC,yBAAyB,GAAgB,CAAC,uBAAuB,EAAE,iCAAiC;MAOpG,4BAA4B;;;YALxC,QAAQ,SAAC;gBACR,OAAO,EAAE,CAAC,YAAY,CAAC;gBACvB,YAAY,EAAE,CAAC,yBAAyB,CAAC;gBACzC,OAAO,EAAE,CAAC,yBAAyB,CAAC;aACrC;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Directive, Component, ChangeDetectionStrategy, ChangeDetectorRef, ElementRef, Input, ContentChild, TemplateRef, ViewChild, NgModule } from '@angular/core';
|
|
2
2
|
import { CommonModule } from '@angular/common';
|
|
3
|
-
import 'echarts/lib/component/tooltip';
|
|
4
3
|
import { assignDefined, TdChartOptionsService, TdSeriesDirective } from '@covalent/echarts/base';
|
|
5
4
|
|
|
6
5
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"covalent-echarts-tooltip.js","sources":["../../../../src/platform/echarts/tooltip/tooltip.component.ts","../../../../src/platform/echarts/tooltip/series-tooltip.component.ts","../../../../src/platform/echarts/tooltip/tooltip.module.ts"],"sourcesContent":["import {\n Component,\n Input,\n Directive,\n TemplateRef,\n ChangeDetectionStrategy,\n ElementRef,\n ChangeDetectorRef,\n OnChanges,\n ContentChild,\n ViewChild,\n OnDestroy,\n} from '@angular/core';\n\nimport {\n TdChartOptionsService,\n assignDefined,\n TdTooltipTrigger,\n TdTooltipTriggerOn,\n TdTooltipPosition,\n} from '@covalent/echarts/base';\n\nexport class TdTooltipContext {\n $implicit: any;\n ticket: string;\n}\n\n@Directive({\n selector: 'ng-template[tdTooltipFormatter]',\n})\nexport class TdChartTooltipFormatterDirective {}\n\n@Component({\n selector: 'td-chart-tooltip',\n templateUrl: './tooltip.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TdChartTooltipComponent implements OnChanges, OnDestroy {\n private _state: any = {};\n\n _context: TdTooltipContext = new TdTooltipContext();\n\n @Input() config: any = {};\n\n @Input() show: boolean = true;\n @Input() trigger: TdTooltipTrigger = 'axis';\n @Input() axisPointer: any;\n @Input() showContent: boolean = true;\n @Input() alwaysShowContent: boolean = false;\n @Input() triggerOn: TdTooltipTriggerOn = 'mousemove|click';\n @Input() showDelay: number = 0;\n @Input() hideDelay: number = 0;\n @Input() enterable: boolean = false;\n @Input() renderMode: 'html' | 'richText';\n @Input() confine: boolean = false;\n @Input() transitionDuration: number = 0.5;\n @Input() position: TdTooltipPosition; // series\n @Input() formatter: string | Function; // series\n @Input() backgroundColor: string = 'rgba(50,50,50,0.7)'; // series\n @Input() borderColor: string = '#333'; // series\n @Input() borderWidth: number = 0; // series\n @Input() padding: number = 5; // series\n @Input() textStyle: any = {\n // series\n color: '#FFF',\n };\n @Input() extraCssText: string; // series\n\n @ContentChild(TdChartTooltipFormatterDirective, { read: TemplateRef, static: true })\n formatterTemplate: TemplateRef<any>;\n @ViewChild('tooltipContent', { static: true }) fullTemplate: TemplateRef<any>;\n\n constructor(\n private _changeDetectorRef: ChangeDetectorRef,\n private _elementRef: ElementRef,\n private _optionsService: TdChartOptionsService,\n ) {}\n\n ngOnChanges(): void {\n this._setOptions();\n }\n\n ngOnDestroy(): void {\n this._removeOption();\n }\n\n private _setOptions(): void {\n const config: any = assignDefined(\n this._state,\n {\n show: this.show,\n trigger: this.trigger,\n axisPointer: this.axisPointer,\n showContent: this.showContent,\n alwaysShowContent: this.alwaysShowContent,\n triggerOn: this.triggerOn,\n showDelay: this.showDelay,\n hideDelay: this.hideDelay,\n enterable: this.enterable,\n confine: this.confine,\n transitionDuration: this.transitionDuration,\n position: this.position,\n formatter: this.formatter ? this.formatter : this.formatterTemplate ? this._formatter() : undefined,\n backgroundColor: this.backgroundColor,\n borderColor: this.borderColor,\n borderWidth: this.borderWidth,\n padding: this.padding,\n textStyle: this.textStyle,\n extraCssText: this.extraCssText,\n },\n this.config ? this.config : {},\n );\n // set tooltip configuration in parent chart and render new configurations\n this._optionsService.setOption('tooltip', config);\n }\n\n private _removeOption(): void {\n this._optionsService.clearOption('tooltip');\n }\n\n private _formatter(): (params: any, ticket: any, callback: (ticket: string, html: string) => void) => string {\n return (params: any, ticket: any, callback: (ticket: string, html: string) => void) => {\n this._context = {\n $implicit: params,\n ticket,\n };\n // timeout set since we need to set the HTML at the end of the angular lifecycle when\n // the tooltip delay is more than 0\n setTimeout(() => {\n callback(ticket, (<HTMLElement>this._elementRef.nativeElement).innerHTML);\n });\n this._changeDetectorRef.markForCheck();\n return (<HTMLElement>this._elementRef.nativeElement).innerHTML;\n };\n }\n}\n","import {\n Component,\n Input,\n ContentChild,\n ViewChild,\n TemplateRef,\n ChangeDetectorRef,\n ElementRef,\n ChangeDetectionStrategy,\n OnChanges,\n OnDestroy,\n} from '@angular/core';\n\nimport { assignDefined, TdSeriesDirective } from '@covalent/echarts/base';\n\nimport { TdChartTooltipFormatterDirective, TdTooltipContext } from './tooltip.component';\n\n@Component({\n selector: 'td-chart-series-tooltip',\n templateUrl: './tooltip.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TdSeriesTooltipComponent implements OnChanges, OnDestroy {\n private _state: any = {};\n\n _context: TdTooltipContext = new TdTooltipContext();\n\n @Input() config: any;\n\n @Input() formatter: any;\n // Parent tooltip trigger must be set to 'item' to render these properties\n @Input() position: string | string[] | number[];\n @Input() backgroundColor: string = 'rgba(50,50,50,0.7)';\n @Input() borderColor: string = '#333';\n @Input() borderWidth: number = 0;\n @Input() padding: number = 5;\n @Input() textStyle: any = {\n color: '#FFF',\n };\n @Input() extraCssText: string;\n\n @ContentChild(TdChartTooltipFormatterDirective, { read: TemplateRef, static: true })\n formatterTemplate: TemplateRef<any>;\n @ViewChild('tooltipContent', { static: true }) fullTemplate: TemplateRef<any>;\n\n constructor(\n private _changeDetectorRef: ChangeDetectorRef,\n private _elementRef: ElementRef,\n private _seriesComponent: TdSeriesDirective,\n ) {}\n\n ngOnChanges(): void {\n this._setOptions();\n }\n\n ngOnDestroy(): void {\n this._removeOption();\n }\n\n private _setOptions(): void {\n const config: any = assignDefined(\n this._state,\n {\n position: this.position,\n backgroundColor: this.backgroundColor,\n borderColor: this.borderColor,\n borderWidth: this.borderWidth,\n padding: this.padding,\n textStyle: this.textStyle,\n extraCssText: this.extraCssText,\n formatter: this.formatter ? this.formatter : this.formatterTemplate ? this._formatter() : undefined,\n },\n this.config ? this.config : {},\n );\n // set series tooltip configuration in parent chart and render new configurations\n this._seriesComponent.setStateOption('tooltip', config);\n }\n\n /**\n * Formatter for tooltip\n *\n */\n private _formatter(): (params: any, ticket: any, callback: (ticket: string, html: string) => void) => string {\n return (params: any, ticket: any, callback: (ticket: string, html: string) => void) => {\n this._context = {\n $implicit: params,\n ticket,\n };\n // timeout set since we need to set the HTML at the end of the angular lifecycle when\n // the tooltip delay is more than 0\n setTimeout(() => {\n callback(ticket, (<HTMLElement>this._elementRef.nativeElement).innerHTML);\n });\n this._changeDetectorRef.markForCheck();\n return (<HTMLElement>this._elementRef.nativeElement).innerHTML;\n };\n }\n\n private _removeOption(): void {\n this._seriesComponent.removeStateOption('tooltip');\n }\n}\n","import { NgModule, Type } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nimport 'echarts/lib/component/tooltip';\n\nimport { TdChartTooltipComponent, TdChartTooltipFormatterDirective } from './tooltip.component';\nimport { TdSeriesTooltipComponent } from './series-tooltip.component';\n\nexport const TOOLTIP_MODULE_COMPONENTS: Type<any>[] = [\n TdChartTooltipComponent,\n TdChartTooltipFormatterDirective,\n TdSeriesTooltipComponent,\n];\n\n@NgModule({\n imports: [CommonModule],\n declarations: [TOOLTIP_MODULE_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B;;MAQb,4BAA4B;;;YALxC,QAAQ,SAAC;gBACR,OAAO,EAAE,CAAC,YAAY,CAAC;gBACvB,YAAY,EAAE,CAAC,yBAAyB,CAAC;gBACzC,OAAO,EAAE,CAAC,yBAAyB,CAAC;aACrC;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"covalent-echarts-tooltip.js","sources":["../../../../src/platform/echarts/tooltip/tooltip.component.ts","../../../../src/platform/echarts/tooltip/series-tooltip.component.ts","../../../../src/platform/echarts/tooltip/tooltip.module.ts"],"sourcesContent":["import {\n Component,\n Input,\n Directive,\n TemplateRef,\n ChangeDetectionStrategy,\n ElementRef,\n ChangeDetectorRef,\n OnChanges,\n ContentChild,\n ViewChild,\n OnDestroy,\n} from '@angular/core';\n\nimport {\n TdChartOptionsService,\n assignDefined,\n TdTooltipTrigger,\n TdTooltipTriggerOn,\n TdTooltipPosition,\n} from '@covalent/echarts/base';\n\nexport class TdTooltipContext {\n $implicit: any;\n ticket: string;\n}\n\n@Directive({\n selector: 'ng-template[tdTooltipFormatter]',\n})\nexport class TdChartTooltipFormatterDirective {}\n\n@Component({\n selector: 'td-chart-tooltip',\n templateUrl: './tooltip.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TdChartTooltipComponent implements OnChanges, OnDestroy {\n private _state: any = {};\n\n _context: TdTooltipContext = new TdTooltipContext();\n\n @Input() config: any = {};\n\n @Input() show: boolean = true;\n @Input() trigger: TdTooltipTrigger = 'axis';\n @Input() axisPointer: any;\n @Input() showContent: boolean = true;\n @Input() alwaysShowContent: boolean = false;\n @Input() triggerOn: TdTooltipTriggerOn = 'mousemove|click';\n @Input() showDelay: number = 0;\n @Input() hideDelay: number = 0;\n @Input() enterable: boolean = false;\n @Input() renderMode: 'html' | 'richText';\n @Input() confine: boolean = false;\n @Input() transitionDuration: number = 0.5;\n @Input() position: TdTooltipPosition; // series\n @Input() formatter: string | Function; // series\n @Input() backgroundColor: string = 'rgba(50,50,50,0.7)'; // series\n @Input() borderColor: string = '#333'; // series\n @Input() borderWidth: number = 0; // series\n @Input() padding: number = 5; // series\n @Input() textStyle: any = {\n // series\n color: '#FFF',\n };\n @Input() extraCssText: string; // series\n\n @ContentChild(TdChartTooltipFormatterDirective, { read: TemplateRef, static: true })\n formatterTemplate: TemplateRef<any>;\n @ViewChild('tooltipContent', { static: true }) fullTemplate: TemplateRef<any>;\n\n constructor(\n private _changeDetectorRef: ChangeDetectorRef,\n private _elementRef: ElementRef,\n private _optionsService: TdChartOptionsService,\n ) {}\n\n ngOnChanges(): void {\n this._setOptions();\n }\n\n ngOnDestroy(): void {\n this._removeOption();\n }\n\n private _setOptions(): void {\n const config: any = assignDefined(\n this._state,\n {\n show: this.show,\n trigger: this.trigger,\n axisPointer: this.axisPointer,\n showContent: this.showContent,\n alwaysShowContent: this.alwaysShowContent,\n triggerOn: this.triggerOn,\n showDelay: this.showDelay,\n hideDelay: this.hideDelay,\n enterable: this.enterable,\n confine: this.confine,\n transitionDuration: this.transitionDuration,\n position: this.position,\n formatter: this.formatter ? this.formatter : this.formatterTemplate ? this._formatter() : undefined,\n backgroundColor: this.backgroundColor,\n borderColor: this.borderColor,\n borderWidth: this.borderWidth,\n padding: this.padding,\n textStyle: this.textStyle,\n extraCssText: this.extraCssText,\n },\n this.config ? this.config : {},\n );\n // set tooltip configuration in parent chart and render new configurations\n this._optionsService.setOption('tooltip', config);\n }\n\n private _removeOption(): void {\n this._optionsService.clearOption('tooltip');\n }\n\n private _formatter(): (params: any, ticket: any, callback: (ticket: string, html: string) => void) => string {\n return (params: any, ticket: any, callback: (ticket: string, html: string) => void) => {\n this._context = {\n $implicit: params,\n ticket,\n };\n // timeout set since we need to set the HTML at the end of the angular lifecycle when\n // the tooltip delay is more than 0\n setTimeout(() => {\n callback(ticket, (<HTMLElement>this._elementRef.nativeElement).innerHTML);\n });\n this._changeDetectorRef.markForCheck();\n return (<HTMLElement>this._elementRef.nativeElement).innerHTML;\n };\n }\n}\n","import {\n Component,\n Input,\n ContentChild,\n ViewChild,\n TemplateRef,\n ChangeDetectorRef,\n ElementRef,\n ChangeDetectionStrategy,\n OnChanges,\n OnDestroy,\n} from '@angular/core';\n\nimport { assignDefined, TdSeriesDirective } from '@covalent/echarts/base';\n\nimport { TdChartTooltipFormatterDirective, TdTooltipContext } from './tooltip.component';\n\n@Component({\n selector: 'td-chart-series-tooltip',\n templateUrl: './tooltip.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TdSeriesTooltipComponent implements OnChanges, OnDestroy {\n private _state: any = {};\n\n _context: TdTooltipContext = new TdTooltipContext();\n\n @Input() config: any;\n\n @Input() formatter: any;\n // Parent tooltip trigger must be set to 'item' to render these properties\n @Input() position: string | string[] | number[];\n @Input() backgroundColor: string = 'rgba(50,50,50,0.7)';\n @Input() borderColor: string = '#333';\n @Input() borderWidth: number = 0;\n @Input() padding: number = 5;\n @Input() textStyle: any = {\n color: '#FFF',\n };\n @Input() extraCssText: string;\n\n @ContentChild(TdChartTooltipFormatterDirective, { read: TemplateRef, static: true })\n formatterTemplate: TemplateRef<any>;\n @ViewChild('tooltipContent', { static: true }) fullTemplate: TemplateRef<any>;\n\n constructor(\n private _changeDetectorRef: ChangeDetectorRef,\n private _elementRef: ElementRef,\n private _seriesComponent: TdSeriesDirective,\n ) {}\n\n ngOnChanges(): void {\n this._setOptions();\n }\n\n ngOnDestroy(): void {\n this._removeOption();\n }\n\n private _setOptions(): void {\n const config: any = assignDefined(\n this._state,\n {\n position: this.position,\n backgroundColor: this.backgroundColor,\n borderColor: this.borderColor,\n borderWidth: this.borderWidth,\n padding: this.padding,\n textStyle: this.textStyle,\n extraCssText: this.extraCssText,\n formatter: this.formatter ? this.formatter : this.formatterTemplate ? this._formatter() : undefined,\n },\n this.config ? this.config : {},\n );\n // set series tooltip configuration in parent chart and render new configurations\n this._seriesComponent.setStateOption('tooltip', config);\n }\n\n /**\n * Formatter for tooltip\n *\n */\n private _formatter(): (params: any, ticket: any, callback: (ticket: string, html: string) => void) => string {\n return (params: any, ticket: any, callback: (ticket: string, html: string) => void) => {\n this._context = {\n $implicit: params,\n ticket,\n };\n // timeout set since we need to set the HTML at the end of the angular lifecycle when\n // the tooltip delay is more than 0\n setTimeout(() => {\n callback(ticket, (<HTMLElement>this._elementRef.nativeElement).innerHTML);\n });\n this._changeDetectorRef.markForCheck();\n return (<HTMLElement>this._elementRef.nativeElement).innerHTML;\n };\n }\n\n private _removeOption(): void {\n this._seriesComponent.removeStateOption('tooltip');\n }\n}\n","import { NgModule, Type } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { TdChartTooltipComponent, TdChartTooltipFormatterDirective } from './tooltip.component';\nimport { TdSeriesTooltipComponent } from './series-tooltip.component';\n\nexport const TOOLTIP_MODULE_COMPONENTS: Type<any>[] = [\n TdChartTooltipComponent,\n TdChartTooltipFormatterDirective,\n TdSeriesTooltipComponent,\n];\n\n@NgModule({\n imports: [CommonModule],\n declarations: [TOOLTIP_MODULE_COMPONENTS],\n exports: [TOOLTIP_MODULE_COMPONENTS],\n})\nexport class CovalentTooltipEchartsModule {}\n"],"names":[],"mappings":";;;;;;;;;MAsBa,gBAAgB;CAG5B;;;IAFC,qCAAe;;IACf,kCAAe;;MAMJ,gCAAgC;;;YAH5C,SAAS,SAAC;gBACT,QAAQ,EAAE,iCAAiC;aAC5C;;MAQY,uBAAuB;;;;;;IAmClC,YACU,kBAAqC,EACrC,WAAuB,EACvB,eAAsC;QAFtC,uBAAkB,GAAlB,kBAAkB,CAAmB;QACrC,gBAAW,GAAX,WAAW,CAAY;QACvB,oBAAe,GAAf,eAAe,CAAuB;QArCxC,WAAM,GAAQ,EAAE,CAAC;QAEzB,aAAQ,GAAqB,IAAI,gBAAgB,EAAE,CAAC;QAE3C,WAAM,GAAQ,EAAE,CAAC;QAEjB,SAAI,GAAY,IAAI,CAAC;QACrB,YAAO,GAAqB,MAAM,CAAC;QAEnC,gBAAW,GAAY,IAAI,CAAC;QAC5B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,iBAAiB;;;qBActC,KAAK;wBAEL,KAAK;uBAEL,KAAK;8BACL,KAAK;0BACL,KAAK;0BACL,KAAK;sBACL,KAAK;wBACL,KAAK;2BAGL,KAAK;gCAEL,YAAY,SAAC,gCAAgC,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,EAAE,IAAI,EAAE;2BAElF,SAAS,SAAC,gBAAgB,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE;;;;;;;IApB7C,0CAAyB;;IAEzB,4CAAoD;;IAEpD,0CAAqB;;IAErB,6CAAwB;;IAExB,4CAAgD;;IAChD,mDAAwD;;IACxD,+CAAsC;;IACtC,+CAAiC;;IACjC,2CAA6B;;IAC7B,6CAEE;;IACF,gDAA8B;;IAE9B,qDACoC;;IACpC,gDAA8E;;;;;IAG5E,sDAA6C;;;;;IAC7C,+CAA+B;;;;;IAC/B,oDAA2C;;;;;;;;;MC3ClC,yBAAyB,GAAgB;IACpD,uBAAuB;IACvB,gCAAgC;IAChC,wBAAwB;;MAQb,4BAA4B;;;YALxC,QAAQ,SAAC;gBACR,OAAO,EAAE,CAAC,YAAY,CAAC;gBACvB,YAAY,EAAE,CAAC,yBAAyB,CAAC;gBACzC,OAAO,EAAE,CAAC,yBAAyB,CAAC;aACrC;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"covalent-echarts-wordcloud.js","sources":["../../../../src/platform/echarts/wordcloud/wordcloud.component.ts","../../../../src/platform/echarts/wordcloud/wordcloud.module.ts"],"sourcesContent":["import { Component, Input, ChangeDetectionStrategy, forwardRef } from '@angular/core';\n\nimport { TdChartOptionsService, ITdSeries, TdSeriesDirective } from '@covalent/echarts/base';\n\nexport type TdWordcloudShape =\n | 'circle'\n | 'cardioid'\n | 'diamond'\n | 'triangle-forward'\n | 'triangle'\n | 'pentagon'\n | 'star';\n\nexport interface ITdWordcloudTextStyle {\n normal?: {\n fontFamily?: string;\n fontWeight?: string;\n color?: string | ((x: any) => string);\n };\n emphasis?: {\n shadowBlur?: number;\n shadowColor?: string;\n };\n}\n\nexport interface ITdWordCloudData {\n name: string;\n value: number;\n textStyle?: ITdWordcloudTextStyle;\n}\n\nexport interface ITdWordcloudSeries extends ITdSeries {\n data?: ITdWordCloudData[];\n shape?: TdWordcloudShape;\n left?: string | number;\n top?: string | number;\n width?: string | number;\n height?: string | number;\n right?: string | number;\n bottom?: string | number;\n sizeRange?: number[];\n rotationRange?: number[];\n rotationStep?: number;\n gridSize?: number;\n drawOutOfBound?: boolean;\n textStyle?: ITdWordcloudTextStyle;\n}\n\n@Component({\n selector: 'td-chart-series[td-wordCloud]',\n template: '',\n changeDetection: ChangeDetectionStrategy.OnPush,\n inputs: [\n 'config',\n 'id',\n 'name',\n 'color',\n 'data',\n\n 'animation',\n 'animationThreshold',\n 'animationDuration',\n 'animationEasing',\n 'animationDelay',\n 'animationDurationUpdate',\n 'animationEasingUpdate',\n 'animationDelayUpdate',\n 'tooltip',\n ],\n providers: [\n {\n provide: TdSeriesDirective,\n useExisting: forwardRef(() => TdChartSeriesWordcloudComponent),\n },\n ],\n})\nexport class TdChartSeriesWordcloudComponent extends TdSeriesDirective implements ITdWordcloudSeries {\n @Input() data: ITdWordCloudData[];\n @Input() shape: TdWordcloudShape;\n @Input() left: string | number;\n @Input() top: string | number;\n @Input() width: string | number;\n @Input() height: string | number;\n @Input() right: string | number;\n @Input() bottom: string | number;\n @Input() sizeRange: number[];\n @Input() rotationRange: number[];\n @Input() rotationStep: number;\n @Input() gridSize: number;\n @Input() drawOutOfBound: boolean;\n @Input() textStyle: ITdWordcloudTextStyle;\n\n constructor(_optionsService: TdChartOptionsService) {\n super('wordCloud', _optionsService);\n }\n\n getConfig(): any {\n return {\n shape: this.shape,\n left: this.left,\n top: this.top,\n width: this.width,\n height: this.height,\n right: this.right,\n bottom: this.bottom,\n sizeRange: this.sizeRange,\n rotationRange: this.rotationRange,\n rotationStep: this.rotationStep,\n gridSize: this.gridSize,\n drawOutOfBound: this.drawOutOfBound,\n textStyle: this.textStyle,\n };\n }\n}\n","import { NgModule, Type } from '@angular/core';\nimport { CommonModule } from '@angular/common';\
|
|
1
|
+
{"version":3,"file":"covalent-echarts-wordcloud.js","sources":["../../../../src/platform/echarts/wordcloud/wordcloud.component.ts","../../../../src/platform/echarts/wordcloud/wordcloud.module.ts"],"sourcesContent":["import { Component, Input, ChangeDetectionStrategy, forwardRef } from '@angular/core';\n\nimport { TdChartOptionsService, ITdSeries, TdSeriesDirective } from '@covalent/echarts/base';\n\nexport type TdWordcloudShape =\n | 'circle'\n | 'cardioid'\n | 'diamond'\n | 'triangle-forward'\n | 'triangle'\n | 'pentagon'\n | 'star';\n\nexport interface ITdWordcloudTextStyle {\n normal?: {\n fontFamily?: string;\n fontWeight?: string;\n color?: string | ((x: any) => string);\n };\n emphasis?: {\n shadowBlur?: number;\n shadowColor?: string;\n };\n}\n\nexport interface ITdWordCloudData {\n name: string;\n value: number;\n textStyle?: ITdWordcloudTextStyle;\n}\n\nexport interface ITdWordcloudSeries extends ITdSeries {\n data?: ITdWordCloudData[];\n shape?: TdWordcloudShape;\n left?: string | number;\n top?: string | number;\n width?: string | number;\n height?: string | number;\n right?: string | number;\n bottom?: string | number;\n sizeRange?: number[];\n rotationRange?: number[];\n rotationStep?: number;\n gridSize?: number;\n drawOutOfBound?: boolean;\n textStyle?: ITdWordcloudTextStyle;\n}\n\n@Component({\n selector: 'td-chart-series[td-wordCloud]',\n template: '',\n changeDetection: ChangeDetectionStrategy.OnPush,\n inputs: [\n 'config',\n 'id',\n 'name',\n 'color',\n 'data',\n\n 'animation',\n 'animationThreshold',\n 'animationDuration',\n 'animationEasing',\n 'animationDelay',\n 'animationDurationUpdate',\n 'animationEasingUpdate',\n 'animationDelayUpdate',\n 'tooltip',\n ],\n providers: [\n {\n provide: TdSeriesDirective,\n useExisting: forwardRef(() => TdChartSeriesWordcloudComponent),\n },\n ],\n})\nexport class TdChartSeriesWordcloudComponent extends TdSeriesDirective implements ITdWordcloudSeries {\n @Input() data: ITdWordCloudData[];\n @Input() shape: TdWordcloudShape;\n @Input() left: string | number;\n @Input() top: string | number;\n @Input() width: string | number;\n @Input() height: string | number;\n @Input() right: string | number;\n @Input() bottom: string | number;\n @Input() sizeRange: number[];\n @Input() rotationRange: number[];\n @Input() rotationStep: number;\n @Input() gridSize: number;\n @Input() drawOutOfBound: boolean;\n @Input() textStyle: ITdWordcloudTextStyle;\n\n constructor(_optionsService: TdChartOptionsService) {\n super('wordCloud', _optionsService);\n }\n\n getConfig(): any {\n return {\n shape: this.shape,\n left: this.left,\n top: this.top,\n width: this.width,\n height: this.height,\n right: this.right,\n bottom: this.bottom,\n sizeRange: this.sizeRange,\n rotationRange: this.rotationRange,\n rotationStep: this.rotationStep,\n gridSize: this.gridSize,\n drawOutOfBound: this.drawOutOfBound,\n textStyle: this.textStyle,\n };\n }\n}\n","import { NgModule, Type } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { TdChartSeriesWordcloudComponent } from './wordcloud.component';\n\nexport const WORDCLOUD_MODULE_COMPONENTS: Type<any>[] = [TdChartSeriesWordcloudComponent];\n\n@NgModule({\n imports: [CommonModule],\n declarations: [WORDCLOUD_MODULE_COMPONENTS],\n exports: [WORDCLOUD_MODULE_COMPONENTS],\n})\nexport class CovalentWordcloudEchartsModule {}\n"],"names":[],"mappings":";;;;;;;;;;;;oCAuBC;;;IATC,uCAIE;;IACF,yCAGE;;;;;+BAOH;;;IAHC,gCAAa;;IACb,iCAAc;;IACd,qCAAkC;;;;;iCAkBnC;;;IAdC,kCAA0B;;IAC1B,mCAAyB;;IACzB,kCAAuB;;IACvB,iCAAsB;;IACtB,mCAAwB;;IACxB,oCAAyB;;IACzB,mCAAwB;;IACxB,oCAAyB;;IACzB,uCAAqB;;IACrB,2CAAyB;;IACzB,0CAAsB;;IACtB,sCAAkB;;IAClB,4CAAyB;;IACzB,uCAAkC;;MA+BvB,+BAAgC,SAAQ,iBAAiB;;;;IAg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;wBACL,KAAK;;;;IAbN,+CAAkC;;IAClC,gDAAiC;;IACjC,+CAA+B;;IAC/B,8CAA8B;;IAC9B,gDAAgC;;IAChC,iDAAiC;;IACjC,gDAAgC;;IAChC,iDAAiC;;IACjC,oDAA6B;;IAC7B,wDAAiC;;IACjC,uDAA8B;;IAC9B,mDAA0B;;IAC1B,yDAAiC;;IACjC,oDAA0C;;;;;;;;;MCtF/B,2BAA2B,GAAgB,CAAC,+BAA+B;MAO3E,8BAA8B;;;YAL1C,QAAQ,SAAC;gBACR,OAAO,EAAE,CAAC,YAAY,CAAC;gBACvB,YAAY,EAAE,CAAC,2BAA2B,CAAC;gBAC3C,OAAO,EAAE,CAAC,2BAA2B,CAAC;aACvC;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"__symbolic":"module","version":4,"metadata":{"TOOLBOX_MODULE_COMPONENTS":[{"__symbolic":"reference","name":"TdChartToolboxComponent"},{"__symbolic":"reference","name":"TdChartViewDataFormatterDirective"}],"CovalentToolboxEchartsModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":
|
|
1
|
+
{"__symbolic":"module","version":4,"metadata":{"TOOLBOX_MODULE_COMPONENTS":[{"__symbolic":"reference","name":"TdChartToolboxComponent"},{"__symbolic":"reference","name":"TdChartViewDataFormatterDirective"}],"CovalentToolboxEchartsModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":6,"character":1},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":7,"character":12}],"declarations":[{"__symbolic":"reference","name":"TOOLBOX_MODULE_COMPONENTS"}],"exports":[{"__symbolic":"reference","name":"TOOLBOX_MODULE_COMPONENTS"}]}]}],"members":{}},"TdToolboxOrient":{"__symbolic":"interface"},"TdImageType":{"__symbolic":"interface"},"ITdAcceptedBrushTypes":{"__symbolic":"interface"},"ITdAcceptedMagicTypes":{"__symbolic":"interface"},"ITdToolboxIconEmphasis":{"__symbolic":"interface"},"ITdFeatureIconStyle":{"__symbolic":"interface"},"ITdZoomTitles":{"__symbolic":"interface"},"ITdSaveAsImage":{"__symbolic":"interface"},"ITdRestore":{"__symbolic":"interface"},"ITdDataView":{"__symbolic":"interface"},"ITdDataZoom":{"__symbolic":"interface"},"ITdMagicType":{"__symbolic":"interface"},"ITdBrush":{"__symbolic":"interface"},"ITdToolboxFeature":{"__symbolic":"interface"},"TdChartViewDataFormatterDirective":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":135,"character":1},"arguments":[{"selector":"ng-template[tdViewDataFormatter]"}]}],"members":{}},"TdChartToolboxComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":140,"character":1},"arguments":[{"selector":"td-chart-toolbox","changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":143,"character":19},"member":"OnPush"},"template":"<ng-template #toolboxContent [ngTemplateOutlet]=\"formatterTemplate\"></ng-template>\n"}]}],"members":{"config":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":148,"character":3}}]}],"show":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":150,"character":3}}]}],"trigger":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":151,"character":3}}]}],"orient":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":152,"character":3}}]}],"itemSize":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":153,"character":3}}]}],"itemGap":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":154,"character":3}}]}],"showTitle":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":155,"character":3}}]}],"label":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":156,"character":3}}]}],"feature":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":157,"character":3}}]}],"iconStyle":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":158,"character":3}}]}],"zlevel":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":159,"character":3}}]}],"z":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":160,"character":3}}]}],"transitionDuration":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":161,"character":3}}]}],"left":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":162,"character":3}}]}],"top":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":163,"character":3}}]}],"right":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":164,"character":3}}]}],"bottom":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":165,"character":3}}]}],"width":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":166,"character":3}}]}],"height":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":167,"character":3}}]}],"formatterTemplate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChild","line":169,"character":3},"arguments":[{"__symbolic":"reference","name":"TdChartViewDataFormatterDirective"},{"read":{"__symbolic":"reference","module":"@angular/core","name":"TemplateRef","line":169,"character":59}}]}]}],"fullTemplate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":171,"character":3},"arguments":["toolboxContent",{"static":true}]}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectorRef","line":174,"character":32},{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":175,"character":25},{"__symbolic":"reference","module":"@covalent/echarts/base","name":"TdChartOptionsService","line":176,"character":29}]}],"ngOnChanges":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"_setOptions":[{"__symbolic":"method"}],"_removeOption":[{"__symbolic":"method"}],"_checkFormatterTemplate":[{"__symbolic":"method"}],"_optionToContentFormatter":[{"__symbolic":"method"}]}}},"origins":{"TOOLBOX_MODULE_COMPONENTS":"./toolbox.module","CovalentToolboxEchartsModule":"./toolbox.module","TdToolboxOrient":"./toolbox.component","TdImageType":"./toolbox.component","ITdAcceptedBrushTypes":"./toolbox.component","ITdAcceptedMagicTypes":"./toolbox.component","ITdToolboxIconEmphasis":"./toolbox.component","ITdFeatureIconStyle":"./toolbox.component","ITdZoomTitles":"./toolbox.component","ITdSaveAsImage":"./toolbox.component","ITdRestore":"./toolbox.component","ITdDataView":"./toolbox.component","ITdDataZoom":"./toolbox.component","ITdMagicType":"./toolbox.component","ITdBrush":"./toolbox.component","ITdToolboxFeature":"./toolbox.component","TdChartViewDataFormatterDirective":"./toolbox.component","TdChartToolboxComponent":"./toolbox.component"},"importAs":"@covalent/echarts/toolbox"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"__symbolic":"module","version":4,"metadata":{"TOOLTIP_MODULE_COMPONENTS":[{"__symbolic":"reference","name":"TdChartTooltipComponent"},{"__symbolic":"reference","name":"TdChartTooltipFormatterDirective"},{"__symbolic":"reference","name":"TdSeriesTooltipComponent"}],"CovalentTooltipEchartsModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":14,"character":1},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":15,"character":12}],"declarations":[{"__symbolic":"reference","name":"TOOLTIP_MODULE_COMPONENTS"}],"exports":[{"__symbolic":"reference","name":"TOOLTIP_MODULE_COMPONENTS"}]}]}],"members":{}},"TdTooltipContext":{"__symbolic":"class","members":{}},"TdChartTooltipFormatterDirective":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":27,"character":1},"arguments":[{"selector":"ng-template[tdTooltipFormatter]"}]}],"members":{}},"TdChartTooltipComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":32,"character":1},"arguments":[{"selector":"td-chart-tooltip","changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":35,"character":19},"member":"OnPush"},"template":"<ng-template #tooltipContent [ngTemplateOutlet]=\"formatterTemplate\" [ngTemplateOutletContext]=\"_context\"></ng-template>\n"}]}],"members":{"config":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":42,"character":3}}]}],"show":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":44,"character":3}}]}],"trigger":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":45,"character":3}}]}],"axisPointer":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":46,"character":3}}]}],"showContent":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":47,"character":3}}]}],"alwaysShowContent":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":48,"character":3}}]}],"triggerOn":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":49,"character":3}}]}],"showDelay":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":50,"character":3}}]}],"hideDelay":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":51,"character":3}}]}],"enterable":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":52,"character":3}}]}],"renderMode":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":53,"character":3}}]}],"confine":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":54,"character":3}}]}],"transitionDuration":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":55,"character":3}}]}],"position":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":56,"character":3}}]}],"formatter":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":57,"character":3}}]}],"backgroundColor":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":58,"character":3}}]}],"borderColor":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":59,"character":3}}]}],"borderWidth":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":60,"character":3}}]}],"padding":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":61,"character":3}}]}],"textStyle":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":62,"character":3}}]}],"extraCssText":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":66,"character":3}}]}],"formatterTemplate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChild","line":68,"character":3},"arguments":[{"__symbolic":"reference","name":"TdChartTooltipFormatterDirective"},{"read":{"__symbolic":"reference","module":"@angular/core","name":"TemplateRef","line":68,"character":58},"static":true}]}]}],"fullTemplate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":70,"character":3},"arguments":["tooltipContent",{"static":true}]}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectorRef","line":73,"character":32},{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":74,"character":25},{"__symbolic":"reference","module":"@covalent/echarts/base","name":"TdChartOptionsService","line":75,"character":29}]}],"ngOnChanges":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"_setOptions":[{"__symbolic":"method"}],"_removeOption":[{"__symbolic":"method"}],"_formatter":[{"__symbolic":"method"}]}},"TdSeriesTooltipComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":17,"character":1},"arguments":[{"selector":"td-chart-series-tooltip","changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":20,"character":19},"member":"OnPush"},"template":"<ng-template #tooltipContent [ngTemplateOutlet]=\"formatterTemplate\" [ngTemplateOutletContext]=\"_context\"></ng-template>\n"}]}],"members":{"config":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":27,"character":3}}]}],"formatter":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":29,"character":3}}]}],"position":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":31,"character":3}}]}],"backgroundColor":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":32,"character":3}}]}],"borderColor":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":33,"character":3}}]}],"borderWidth":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":34,"character":3}}]}],"padding":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":35,"character":3}}]}],"textStyle":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":36,"character":3}}]}],"extraCssText":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":39,"character":3}}]}],"formatterTemplate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChild","line":41,"character":3},"arguments":[{"__symbolic":"reference","name":"TdChartTooltipFormatterDirective"},{"read":{"__symbolic":"reference","module":"@angular/core","name":"TemplateRef","line":41,"character":58},"static":true}]}]}],"fullTemplate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":43,"character":3},"arguments":["tooltipContent",{"static":true}]}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectorRef","line":46,"character":32},{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":47,"character":25},{"__symbolic":"reference","module":"@covalent/echarts/base","name":"TdSeriesDirective","line":48,"character":30}]}],"ngOnChanges":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"_setOptions":[{"__symbolic":"method"}],"_formatter":[{"__symbolic":"method"}],"_removeOption":[{"__symbolic":"method"}]}}},"origins":{"TOOLTIP_MODULE_COMPONENTS":"./tooltip.module","CovalentTooltipEchartsModule":"./tooltip.module","TdTooltipContext":"./tooltip.component","TdChartTooltipFormatterDirective":"./tooltip.component","TdChartTooltipComponent":"./tooltip.component","TdSeriesTooltipComponent":"./series-tooltip.component"},"importAs":"@covalent/echarts/tooltip"}
|
|
1
|
+
{"__symbolic":"module","version":4,"metadata":{"TOOLTIP_MODULE_COMPONENTS":[{"__symbolic":"reference","name":"TdChartTooltipComponent"},{"__symbolic":"reference","name":"TdChartTooltipFormatterDirective"},{"__symbolic":"reference","name":"TdSeriesTooltipComponent"}],"CovalentTooltipEchartsModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":11,"character":1},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":12,"character":12}],"declarations":[{"__symbolic":"reference","name":"TOOLTIP_MODULE_COMPONENTS"}],"exports":[{"__symbolic":"reference","name":"TOOLTIP_MODULE_COMPONENTS"}]}]}],"members":{}},"TdTooltipContext":{"__symbolic":"class","members":{}},"TdChartTooltipFormatterDirective":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":27,"character":1},"arguments":[{"selector":"ng-template[tdTooltipFormatter]"}]}],"members":{}},"TdChartTooltipComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":32,"character":1},"arguments":[{"selector":"td-chart-tooltip","changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":35,"character":19},"member":"OnPush"},"template":"<ng-template #tooltipContent [ngTemplateOutlet]=\"formatterTemplate\" [ngTemplateOutletContext]=\"_context\"></ng-template>\n"}]}],"members":{"config":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":42,"character":3}}]}],"show":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":44,"character":3}}]}],"trigger":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":45,"character":3}}]}],"axisPointer":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":46,"character":3}}]}],"showContent":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":47,"character":3}}]}],"alwaysShowContent":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":48,"character":3}}]}],"triggerOn":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":49,"character":3}}]}],"showDelay":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":50,"character":3}}]}],"hideDelay":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":51,"character":3}}]}],"enterable":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":52,"character":3}}]}],"renderMode":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":53,"character":3}}]}],"confine":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":54,"character":3}}]}],"transitionDuration":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":55,"character":3}}]}],"position":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":56,"character":3}}]}],"formatter":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":57,"character":3}}]}],"backgroundColor":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":58,"character":3}}]}],"borderColor":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":59,"character":3}}]}],"borderWidth":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":60,"character":3}}]}],"padding":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":61,"character":3}}]}],"textStyle":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":62,"character":3}}]}],"extraCssText":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":66,"character":3}}]}],"formatterTemplate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChild","line":68,"character":3},"arguments":[{"__symbolic":"reference","name":"TdChartTooltipFormatterDirective"},{"read":{"__symbolic":"reference","module":"@angular/core","name":"TemplateRef","line":68,"character":58},"static":true}]}]}],"fullTemplate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":70,"character":3},"arguments":["tooltipContent",{"static":true}]}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectorRef","line":73,"character":32},{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":74,"character":25},{"__symbolic":"reference","module":"@covalent/echarts/base","name":"TdChartOptionsService","line":75,"character":29}]}],"ngOnChanges":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"_setOptions":[{"__symbolic":"method"}],"_removeOption":[{"__symbolic":"method"}],"_formatter":[{"__symbolic":"method"}]}},"TdSeriesTooltipComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":17,"character":1},"arguments":[{"selector":"td-chart-series-tooltip","changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":20,"character":19},"member":"OnPush"},"template":"<ng-template #tooltipContent [ngTemplateOutlet]=\"formatterTemplate\" [ngTemplateOutletContext]=\"_context\"></ng-template>\n"}]}],"members":{"config":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":27,"character":3}}]}],"formatter":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":29,"character":3}}]}],"position":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":31,"character":3}}]}],"backgroundColor":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":32,"character":3}}]}],"borderColor":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":33,"character":3}}]}],"borderWidth":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":34,"character":3}}]}],"padding":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":35,"character":3}}]}],"textStyle":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":36,"character":3}}]}],"extraCssText":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":39,"character":3}}]}],"formatterTemplate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChild","line":41,"character":3},"arguments":[{"__symbolic":"reference","name":"TdChartTooltipFormatterDirective"},{"read":{"__symbolic":"reference","module":"@angular/core","name":"TemplateRef","line":41,"character":58},"static":true}]}]}],"fullTemplate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":43,"character":3},"arguments":["tooltipContent",{"static":true}]}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectorRef","line":46,"character":32},{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":47,"character":25},{"__symbolic":"reference","module":"@covalent/echarts/base","name":"TdSeriesDirective","line":48,"character":30}]}],"ngOnChanges":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"_setOptions":[{"__symbolic":"method"}],"_formatter":[{"__symbolic":"method"}],"_removeOption":[{"__symbolic":"method"}]}}},"origins":{"TOOLTIP_MODULE_COMPONENTS":"./tooltip.module","CovalentTooltipEchartsModule":"./tooltip.module","TdTooltipContext":"./tooltip.component","TdChartTooltipFormatterDirective":"./tooltip.component","TdChartTooltipComponent":"./tooltip.component","TdSeriesTooltipComponent":"./series-tooltip.component"},"importAs":"@covalent/echarts/tooltip"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"__symbolic":"module","version":4,"metadata":{"WORDCLOUD_MODULE_COMPONENTS":[{"__symbolic":"reference","name":"TdChartSeriesWordcloudComponent"}],"CovalentWordcloudEchartsModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":
|
|
1
|
+
{"__symbolic":"module","version":4,"metadata":{"WORDCLOUD_MODULE_COMPONENTS":[{"__symbolic":"reference","name":"TdChartSeriesWordcloudComponent"}],"CovalentWordcloudEchartsModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":6,"character":1},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":7,"character":12}],"declarations":[{"__symbolic":"reference","name":"WORDCLOUD_MODULE_COMPONENTS"}],"exports":[{"__symbolic":"reference","name":"WORDCLOUD_MODULE_COMPONENTS"}]}]}],"members":{}},"TdWordcloudShape":{"__symbolic":"interface"},"ITdWordcloudTextStyle":{"__symbolic":"interface"},"ITdWordCloudData":{"__symbolic":"interface"},"ITdWordcloudSeries":{"__symbolic":"interface"},"TdChartSeriesWordcloudComponent":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@covalent/echarts/base","name":"TdSeriesDirective","line":76,"character":53},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":48,"character":1},"arguments":[{"selector":"td-chart-series[td-wordCloud]","template":"","changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":51,"character":19},"member":"OnPush"},"inputs":["config","id","name","color","data","animation","animationThreshold","animationDuration","animationEasing","animationDelay","animationDurationUpdate","animationEasingUpdate","animationDelayUpdate","tooltip"],"providers":[{"provide":{"__symbolic":"reference","module":"@covalent/echarts/base","name":"TdSeriesDirective","line":71,"character":15},"useExisting":{"__symbolic":"reference","name":"TdChartSeriesWordcloudComponent"}}]}]}],"members":{"data":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":77,"character":3}}]}],"shape":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":78,"character":3}}]}],"left":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":79,"character":3}}]}],"top":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":80,"character":3}}]}],"width":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":81,"character":3}}]}],"height":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":82,"character":3}}]}],"right":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":83,"character":3}}]}],"bottom":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":84,"character":3}}]}],"sizeRange":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":85,"character":3}}]}],"rotationRange":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":86,"character":3}}]}],"rotationStep":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":87,"character":3}}]}],"gridSize":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":88,"character":3}}]}],"drawOutOfBound":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":89,"character":3}}]}],"textStyle":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":90,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@covalent/echarts/base","name":"TdChartOptionsService","line":92,"character":31}]}],"getConfig":[{"__symbolic":"method"}]}}},"origins":{"WORDCLOUD_MODULE_COMPONENTS":"./wordcloud.module","CovalentWordcloudEchartsModule":"./wordcloud.module","TdWordcloudShape":"./wordcloud.component","ITdWordcloudTextStyle":"./wordcloud.component","ITdWordCloudData":"./wordcloud.component","ITdWordcloudSeries":"./wordcloud.component","TdChartSeriesWordcloudComponent":"./wordcloud.component"},"importAs":"@covalent/echarts/wordcloud"}
|