@covalent/echarts 6.4.0 → 6.4.1
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/bar/bar.component.d.ts +1 -1
- package/base/axis/axis.component.d.ts +1 -1
- package/base/axis/x-axis.component.d.ts +1 -1
- package/base/axis/y-axis.component.d.ts +1 -1
- package/base/chart.component.d.ts +1 -1
- package/base/dataset/dataset.component.d.ts +1 -1
- package/base/series/series.component.d.ts +1 -1
- package/base/src/axis/README.md +58 -0
- package/base/src/dataset/README.md +80 -0
- package/clustering/clustering.component.d.ts +1 -1
- package/esm2020/bar/bar.component.mjs +135 -0
- package/{esm2022 → esm2020}/bar/bar.module.mjs +5 -5
- package/esm2020/base/axis/axis.component.mjs +127 -0
- package/esm2020/base/axis/x-axis.component.mjs +55 -0
- package/esm2020/base/axis/y-axis.component.mjs +55 -0
- package/{esm2022 → esm2020}/base/base.module.mjs +11 -11
- package/esm2020/base/chart-options.service.mjs +65 -0
- package/esm2020/base/chart.component.mjs +195 -0
- package/esm2020/base/dataset/dataset.component.mjs +52 -0
- package/esm2020/base/series/series.component.mjs +91 -0
- package/esm2020/clustering/clustering.component.mjs +233 -0
- package/{esm2022 → esm2020}/clustering/clustering.module.mjs +5 -5
- package/esm2020/graph/graph.component.mjs +185 -0
- package/{esm2022 → esm2020}/graph/graph.module.mjs +5 -5
- package/esm2020/histogram/histogram.component.mjs +125 -0
- package/{esm2022 → esm2020}/histogram/histogram.module.mjs +5 -5
- package/esm2020/line/line.component.mjs +159 -0
- package/{esm2022 → esm2020}/line/line.module.mjs +5 -5
- package/esm2020/map/map.component.mjs +132 -0
- package/{esm2022 → esm2020}/map/map.module.mjs +5 -5
- package/esm2020/pie/pie.component.mjs +127 -0
- package/{esm2022 → esm2020}/pie/pie.module.mjs +5 -5
- package/esm2020/regression/regression.component.mjs +137 -0
- package/{esm2022 → esm2020}/regression/regression.module.mjs +5 -5
- package/esm2020/sankey/sankey.component.mjs +117 -0
- package/{esm2022 → esm2020}/sankey/sankey.module.mjs +5 -5
- package/esm2020/scatter/scatter.component.mjs +144 -0
- package/{esm2022 → esm2020}/scatter/scatter.module.mjs +5 -5
- package/esm2020/toolbox/toolbox.component.mjs +135 -0
- package/{esm2022 → esm2020}/toolbox/toolbox.module.mjs +7 -7
- package/esm2020/tooltip/series-tooltip.component.mjs +102 -0
- package/esm2020/tooltip/tooltip.component.mjs +156 -0
- package/{esm2022 → esm2020}/tooltip/tooltip.module.mjs +9 -9
- package/esm2020/tree/tree.component.mjs +117 -0
- package/{esm2022 → esm2020}/tree/tree.module.mjs +5 -5
- package/esm2020/treemap/treemap.component.mjs +149 -0
- package/{esm2022 → esm2020}/treemap/treemap.module.mjs +5 -5
- package/esm2020/wordcloud/wordcloud.component.mjs +92 -0
- package/{esm2022 → esm2020}/wordcloud/wordcloud.module.mjs +5 -5
- package/{fesm2022 → fesm2015}/covalent-echarts-bar.mjs +12 -40
- package/fesm2015/covalent-echarts-bar.mjs.map +1 -0
- package/fesm2015/covalent-echarts-base.mjs +4931 -0
- package/{fesm2022 → fesm2015}/covalent-echarts-base.mjs.map +1 -1
- package/{fesm2022 → fesm2015}/covalent-echarts-clustering.mjs +12 -54
- package/fesm2015/covalent-echarts-clustering.mjs.map +1 -0
- package/{fesm2022 → fesm2015}/covalent-echarts-graph.mjs +12 -57
- package/{fesm2022 → fesm2015}/covalent-echarts-graph.mjs.map +1 -1
- package/fesm2015/covalent-echarts-histogram.mjs +151 -0
- package/fesm2015/covalent-echarts-histogram.mjs.map +1 -0
- package/{fesm2022 → fesm2015}/covalent-echarts-line.mjs +12 -48
- package/fesm2015/covalent-echarts-line.mjs.map +1 -0
- package/{fesm2022 → fesm2015}/covalent-echarts-map.mjs +12 -39
- package/fesm2015/covalent-echarts-map.mjs.map +1 -0
- package/{fesm2022 → fesm2015}/covalent-echarts-pie.mjs +12 -38
- package/fesm2015/covalent-echarts-pie.mjs.map +1 -0
- package/fesm2015/covalent-echarts-regression.mjs +163 -0
- package/fesm2015/covalent-echarts-regression.mjs.map +1 -0
- package/{fesm2022 → fesm2015}/covalent-echarts-sankey.mjs +12 -34
- package/fesm2015/covalent-echarts-sankey.mjs.map +1 -0
- package/{fesm2022 → fesm2015}/covalent-echarts-scatter.mjs +12 -43
- package/fesm2015/covalent-echarts-scatter.mjs.map +1 -0
- package/fesm2015/covalent-echarts-toolbox.mjs +158 -0
- package/fesm2015/covalent-echarts-toolbox.mjs.map +1 -0
- package/{fesm2022 → fesm2015}/covalent-echarts-tooltip.mjs +47 -69
- package/{fesm2022 → fesm2015}/covalent-echarts-tooltip.mjs.map +1 -1
- package/{fesm2022 → fesm2015}/covalent-echarts-tree.mjs +12 -34
- package/{fesm2022 → fesm2015}/covalent-echarts-tree.mjs.map +1 -1
- package/{fesm2022 → fesm2015}/covalent-echarts-treemap.mjs +13 -46
- package/fesm2015/covalent-echarts-treemap.mjs.map +1 -0
- package/{fesm2022 → fesm2015}/covalent-echarts-wordcloud.mjs +12 -26
- package/fesm2015/covalent-echarts-wordcloud.mjs.map +1 -0
- package/fesm2020/covalent-echarts-bar.mjs +158 -0
- package/fesm2020/covalent-echarts-bar.mjs.map +1 -0
- package/{fesm2022 → fesm2020}/covalent-echarts-base.mjs +69 -135
- package/fesm2020/covalent-echarts-base.mjs.map +1 -0
- package/fesm2020/covalent-echarts-clustering.mjs +258 -0
- package/{fesm2022 → fesm2020}/covalent-echarts-clustering.mjs.map +1 -1
- package/fesm2020/covalent-echarts-graph.mjs +210 -0
- package/fesm2020/covalent-echarts-graph.mjs.map +1 -0
- package/{fesm2022 → fesm2020}/covalent-echarts-histogram.mjs +12 -14
- package/{fesm2022 → fesm2020}/covalent-echarts-histogram.mjs.map +1 -1
- package/fesm2020/covalent-echarts-line.mjs +182 -0
- package/fesm2020/covalent-echarts-line.mjs.map +1 -0
- package/fesm2020/covalent-echarts-map.mjs +155 -0
- package/{fesm2022 → fesm2020}/covalent-echarts-map.mjs.map +1 -1
- package/fesm2020/covalent-echarts-pie.mjs +150 -0
- package/fesm2020/covalent-echarts-pie.mjs.map +1 -0
- package/{fesm2022 → fesm2020}/covalent-echarts-regression.mjs +12 -15
- package/fesm2020/covalent-echarts-regression.mjs.map +1 -0
- package/fesm2020/covalent-echarts-sankey.mjs +142 -0
- package/fesm2020/covalent-echarts-sankey.mjs.map +1 -0
- package/fesm2020/covalent-echarts-scatter.mjs +169 -0
- package/fesm2020/covalent-echarts-scatter.mjs.map +1 -0
- package/{fesm2022 → fesm2020}/covalent-echarts-toolbox.mjs +23 -37
- package/{fesm2022 → fesm2020}/covalent-echarts-toolbox.mjs.map +1 -1
- package/fesm2020/covalent-echarts-tooltip.mjs +283 -0
- package/fesm2020/covalent-echarts-tooltip.mjs.map +1 -0
- package/fesm2020/covalent-echarts-tree.mjs +140 -0
- package/fesm2020/covalent-echarts-tree.mjs.map +1 -0
- package/fesm2020/covalent-echarts-treemap.mjs +174 -0
- package/fesm2020/covalent-echarts-treemap.mjs.map +1 -0
- package/fesm2020/covalent-echarts-wordcloud.mjs +117 -0
- package/fesm2020/covalent-echarts-wordcloud.mjs.map +1 -0
- package/fesm2020/covalent-echarts.mjs +4 -0
- package/fesm2020/covalent-echarts.mjs.map +1 -0
- package/graph/graph.component.d.ts +1 -1
- package/histogram/histogram.component.d.ts +1 -1
- package/line/line.component.d.ts +1 -1
- package/map/map.component.d.ts +1 -1
- package/package.json +99 -57
- package/pie/pie.component.d.ts +1 -1
- package/regression/regression.component.d.ts +1 -1
- package/sankey/sankey.component.d.ts +1 -1
- package/scatter/scatter.component.d.ts +1 -1
- package/toolbox/toolbox.component.d.ts +1 -1
- package/tooltip/series-tooltip.component.d.ts +1 -1
- package/tooltip/tooltip.component.d.ts +1 -1
- package/tree/tree.component.d.ts +1 -1
- package/treemap/treemap.component.d.ts +2 -2
- package/wordcloud/wordcloud.component.d.ts +1 -1
- package/esm2022/bar/bar.component.mjs +0 -163
- package/esm2022/base/axis/axis.component.mjs +0 -157
- package/esm2022/base/axis/x-axis.component.mjs +0 -56
- package/esm2022/base/axis/y-axis.component.mjs +0 -56
- package/esm2022/base/chart-options.service.mjs +0 -63
- package/esm2022/base/chart.component.mjs +0 -211
- package/esm2022/base/dataset/dataset.component.mjs +0 -57
- package/esm2022/base/series/series.component.mjs +0 -106
- package/esm2022/clustering/clustering.component.mjs +0 -275
- package/esm2022/graph/graph.component.mjs +0 -230
- package/esm2022/histogram/histogram.component.mjs +0 -127
- package/esm2022/line/line.component.mjs +0 -195
- package/esm2022/map/map.component.mjs +0 -159
- package/esm2022/pie/pie.component.mjs +0 -153
- package/esm2022/regression/regression.component.mjs +0 -140
- package/esm2022/sankey/sankey.component.mjs +0 -139
- package/esm2022/scatter/scatter.component.mjs +0 -175
- package/esm2022/toolbox/toolbox.component.mjs +0 -149
- package/esm2022/tooltip/series-tooltip.component.mjs +0 -112
- package/esm2022/tooltip/tooltip.component.mjs +0 -168
- package/esm2022/tree/tree.component.mjs +0 -139
- package/esm2022/treemap/treemap.component.mjs +0 -182
- package/esm2022/wordcloud/wordcloud.component.mjs +0 -106
- package/fesm2022/covalent-echarts-bar.mjs.map +0 -1
- package/fesm2022/covalent-echarts-line.mjs.map +0 -1
- package/fesm2022/covalent-echarts-pie.mjs.map +0 -1
- package/fesm2022/covalent-echarts-regression.mjs.map +0 -1
- package/fesm2022/covalent-echarts-sankey.mjs.map +0 -1
- package/fesm2022/covalent-echarts-scatter.mjs.map +0 -1
- package/fesm2022/covalent-echarts-treemap.mjs.map +0 -1
- package/fesm2022/covalent-echarts-wordcloud.mjs.map +0 -1
- /package/{esm2022 → esm2020}/bar/covalent-echarts-bar.mjs +0 -0
- /package/{esm2022 → esm2020}/bar/public_api.mjs +0 -0
- /package/{esm2022 → esm2020}/base/axis/axis.interface.mjs +0 -0
- /package/{esm2022 → esm2020}/base/base.types.mjs +0 -0
- /package/{esm2022 → esm2020}/base/covalent-echarts-base.mjs +0 -0
- /package/{esm2022 → esm2020}/base/public_api.mjs +0 -0
- /package/{esm2022 → esm2020}/base/series/series.interface.mjs +0 -0
- /package/{esm2022 → esm2020}/base/themes/aqua-splash.mjs +0 -0
- /package/{esm2022 → esm2020}/base/themes/california-coast.mjs +0 -0
- /package/{esm2022 → esm2020}/base/themes/hawaiian-sunrise.mjs +0 -0
- /package/{esm2022 → esm2020}/base/themes/passion-flower.mjs +0 -0
- /package/{esm2022 → esm2020}/base/themes/razzleberry-pie.mjs +0 -0
- /package/{esm2022 → esm2020}/base/themes/teradata-classic.mjs +0 -0
- /package/{esm2022 → esm2020}/base/themes/teradata-default.mjs +0 -0
- /package/{esm2022 → esm2020}/base/themes/urban-sunrise.mjs +0 -0
- /package/{esm2022 → esm2020}/base/themes/volcanic-eruption.mjs +0 -0
- /package/{esm2022 → esm2020}/base/utils/assign-defined.mjs +0 -0
- /package/{esm2022 → esm2020}/base/utils/echarts.mjs +0 -0
- /package/{esm2022 → esm2020}/base/utils/index.mjs +0 -0
- /package/{esm2022 → esm2020}/clustering/covalent-echarts-clustering.mjs +0 -0
- /package/{esm2022 → esm2020}/clustering/public_api.mjs +0 -0
- /package/{esm2022 → esm2020}/covalent-echarts.mjs +0 -0
- /package/{esm2022 → esm2020}/graph/covalent-echarts-graph.mjs +0 -0
- /package/{esm2022 → esm2020}/graph/public_api.mjs +0 -0
- /package/{esm2022 → esm2020}/histogram/covalent-echarts-histogram.mjs +0 -0
- /package/{esm2022 → esm2020}/histogram/public_api.mjs +0 -0
- /package/{esm2022 → esm2020}/line/covalent-echarts-line.mjs +0 -0
- /package/{esm2022 → esm2020}/line/public_api.mjs +0 -0
- /package/{esm2022 → esm2020}/map/covalent-echarts-map.mjs +0 -0
- /package/{esm2022 → esm2020}/map/public_api.mjs +0 -0
- /package/{esm2022 → esm2020}/pie/covalent-echarts-pie.mjs +0 -0
- /package/{esm2022 → esm2020}/pie/public_api.mjs +0 -0
- /package/{esm2022 → esm2020}/public_api.mjs +0 -0
- /package/{esm2022 → esm2020}/regression/covalent-echarts-regression.mjs +0 -0
- /package/{esm2022 → esm2020}/regression/public_api.mjs +0 -0
- /package/{esm2022 → esm2020}/sankey/covalent-echarts-sankey.mjs +0 -0
- /package/{esm2022 → esm2020}/sankey/public_api.mjs +0 -0
- /package/{esm2022 → esm2020}/scatter/covalent-echarts-scatter.mjs +0 -0
- /package/{esm2022 → esm2020}/scatter/public_api.mjs +0 -0
- /package/{esm2022 → esm2020}/toolbox/covalent-echarts-toolbox.mjs +0 -0
- /package/{esm2022 → esm2020}/toolbox/public_api.mjs +0 -0
- /package/{esm2022 → esm2020}/tooltip/covalent-echarts-tooltip.mjs +0 -0
- /package/{esm2022 → esm2020}/tooltip/public_api.mjs +0 -0
- /package/{esm2022 → esm2020}/tree/covalent-echarts-tree.mjs +0 -0
- /package/{esm2022 → esm2020}/tree/public_api.mjs +0 -0
- /package/{esm2022 → esm2020}/treemap/covalent-echarts-treemap.mjs +0 -0
- /package/{esm2022 → esm2020}/treemap/public_api.mjs +0 -0
- /package/{esm2022 → esm2020}/wordcloud/covalent-echarts-wordcloud.mjs +0 -0
- /package/{esm2022 → esm2020}/wordcloud/public_api.mjs +0 -0
- /package/{fesm2022 → fesm2015}/covalent-echarts.mjs +0 -0
- /package/{fesm2022 → fesm2015}/covalent-echarts.mjs.map +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"covalent-echarts-histogram.mjs","sources":["../../../../libs/angular-echarts/histogram/src/histogram.component.ts","../../../../libs/angular-echarts/histogram/src/histogram.module.ts","../../../../libs/angular-echarts/histogram/src/covalent-echarts-histogram.ts"],"sourcesContent":["import {\n Component,\n Input,\n ChangeDetectionStrategy,\n forwardRef,\n OnChanges,\n} from '@angular/core';\n\nimport {\n assignDefined,\n TdChartOptionsService,\n TdSeriesDirective,\n} from '@covalent/echarts/base';\nimport { ITdBarSeries, TdChartSeriesBarComponent } from '@covalent/echarts/bar';\nimport * as ecStat from 'echarts-stat';\n\nexport type TdHistogramBinningMethod =\n | 'squareRoot'\n | 'scott'\n | 'freedmanDiaconis'\n | 'sturges';\n\nexport interface ITdHistogramSeries extends ITdBarSeries {\n data?: number[] | number[][];\n method?: TdHistogramBinningMethod;\n}\n\n@Component({\n selector: 'td-chart-series[td-histogram]',\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(() => TdChartSeriesHistogramComponent),\n },\n ],\n})\nexport class TdChartSeriesHistogramComponent\n extends TdChartSeriesBarComponent\n implements ITdHistogramSeries, OnChanges\n{\n @Input() source?: number[] | number[][];\n @Input() method?: TdHistogramBinningMethod;\n\n constructor(_optionsService: TdChartOptionsService) {\n super(_optionsService);\n }\n\n override ngOnChanges(): void {\n let output: any = [];\n if (!this.source) {\n const dataset: any = this.optionsService.getOption('dataset');\n this.source = dataset?.source ?? [];\n }\n\n if (this.source?.some((item) => Array.isArray(item))) {\n const config = this.getConfig();\n const index = config.datasetIndex ?? 1;\n const source: any[] = this.source;\n const indexedOutput = source[0].map((_: any, colIndex: string | number) =>\n source.map((row) => row[colIndex])\n );\n output = indexedOutput[index - 1] ?? [];\n } else {\n output = this.source;\n }\n\n const bins = ecStat.histogram(output, this.method ?? 'squareRoot');\n this.data = bins.data;\n this.setOptions();\n }\n\n override getConfig(): any {\n return {\n method: this.method,\n coordinateSystem: this.coordinateSystem,\n xAxisIndex: this.xAxisIndex,\n yAxisIndex: this.yAxisIndex,\n legendHoverLink: this.legendHoverLink,\n stack: this.stack,\n cursor: this.cursor,\n label: this.label,\n itemStyle: this.itemStyle,\n emphasis: this.emphasis,\n barWidth: this.barWidth,\n barMaxWidth: this.barMaxWidth,\n barMinHeight: this.barMinHeight,\n barGap: this.barGap,\n barCategoryGap: this.barCategoryGap,\n large: this.large,\n largeThreshold: this.largeThreshold,\n progressive: this.progressive,\n progressiveThreshold: this.progressiveThreshold,\n progressiveChunkMode: this.progressiveChunkMode,\n dimensions: this.dimensions,\n encode: this.encode,\n seriesLayoutBy: this.seriesLayoutBy,\n datasetIndex: this.datasetIndex,\n markPoint: this.markPoint,\n markLine: this.markLine,\n markArea: this.markArea,\n zlevel: this.zlevel,\n z: this.z,\n };\n }\n\n private setOptions(): void {\n const config: any = assignDefined(\n this._state,\n {\n id: this.id,\n type: this.type,\n name: this.name,\n color: this.color,\n data: this.data,\n animation: this.animation,\n animationThreshold: this.animationThreshold,\n animationDuration: this.animationDuration,\n animationEasing: this.animationEasing,\n animationDelay: this.animationDelay,\n animationDurationUpdate: this.animationDurationUpdate,\n animationEasingUpdate: this.animationEasingUpdate,\n animationDelayUpdate: this.animationDelayUpdate,\n tooltip: this.tooltip,\n },\n this.getConfig(),\n this._options,\n this.config ? this.config : {}\n );\n this.optionsService.setArrayOption('series', config);\n }\n}\n","import { NgModule, Type } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nimport { TdChartSeriesHistogramComponent } from './histogram.component';\n\nexport const HISTOGRAM_MODULE_COMPONENTS: Type<any>[] = [\n TdChartSeriesHistogramComponent,\n];\n\n@NgModule({\n imports: [CommonModule],\n declarations: [HISTOGRAM_MODULE_COMPONENTS],\n exports: [HISTOGRAM_MODULE_COMPONENTS],\n})\nexport class CovalentHistogramEchartsModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;;AAuDM,MAAO,+BACX,SAAQ,yBAAyB,CAAA;AAGxB,IAAA,MAAM,CAAyB;AAC/B,IAAA,MAAM,CAA4B;AAE3C,IAAA,WAAA,CAAY,eAAsC,EAAA;QAChD,KAAK,CAAC,eAAe,CAAC,CAAC;KACxB;IAEQ,WAAW,GAAA;QAClB,IAAI,MAAM,GAAQ,EAAE,CAAC;AACrB,QAAA,IAAI,CAAC,IAAI,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AA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,8BAA8B,EARzC,YAAA,EAAA,CAAA,+BAA+B,CAIrB,EAAA,OAAA,EAAA,CAAA,YAAY,aAJtB,+BAA+B,CAAA,EAAA,CAAA,CAAA;AAQpB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,8BAA8B,YAJ/B,YAAY,CAAA,EAAA,CAAA,CAAA;;2FAIX,8BAA8B,EAAA,UAAA,EAAA,CAAA;kBAL1C,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,OAAO,EAAE,CAAC,YAAY,CAAC;oBACvB,YAAY,EAAE,CAAC,2BAA2B,CAAC;oBAC3C,OAAO,EAAE,CAAC,2BAA2B,CAAC;AACvC,iBAAA,CAAA;;;ACbD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"covalent-echarts-histogram.mjs","sources":["../../../../libs/angular-echarts/histogram/src/histogram.component.ts","../../../../libs/angular-echarts/histogram/src/histogram.module.ts","../../../../libs/angular-echarts/histogram/src/covalent-echarts-histogram.ts"],"sourcesContent":["import {\n Component,\n Input,\n ChangeDetectionStrategy,\n forwardRef,\n OnChanges,\n} from '@angular/core';\n\nimport {\n assignDefined,\n TdChartOptionsService,\n TdSeriesDirective,\n} from '@covalent/echarts/base';\nimport { ITdBarSeries, TdChartSeriesBarComponent } from '@covalent/echarts/bar';\nimport * as ecStat from 'echarts-stat';\n\nexport type TdHistogramBinningMethod =\n | 'squareRoot'\n | 'scott'\n | 'freedmanDiaconis'\n | 'sturges';\n\nexport interface ITdHistogramSeries extends ITdBarSeries {\n data?: number[] | number[][];\n method?: TdHistogramBinningMethod;\n}\n\n@Component({\n selector: 'td-chart-series[td-histogram]',\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(() => TdChartSeriesHistogramComponent),\n },\n ],\n})\nexport class TdChartSeriesHistogramComponent\n extends TdChartSeriesBarComponent\n implements ITdHistogramSeries, OnChanges\n{\n @Input() source?: number[] | number[][];\n @Input() method?: TdHistogramBinningMethod;\n\n constructor(_optionsService: TdChartOptionsService) {\n super(_optionsService);\n }\n\n override ngOnChanges(): void {\n let output: any = [];\n if (!this.source) {\n const dataset: any = this.optionsService.getOption('dataset');\n this.source = dataset?.source ?? [];\n }\n\n if (this.source?.some((item) => Array.isArray(item))) {\n const config = this.getConfig();\n const index = config.datasetIndex ?? 1;\n const source: any[] = this.source;\n const indexedOutput = source[0].map((_: any, colIndex: string | number) =>\n source.map((row) => row[colIndex])\n );\n output = indexedOutput[index - 1] ?? [];\n } else {\n output = this.source;\n }\n\n const bins = ecStat.histogram(output, this.method ?? 'squareRoot');\n this.data = bins.data;\n this.setOptions();\n }\n\n override getConfig(): any {\n return {\n method: this.method,\n coordinateSystem: this.coordinateSystem,\n xAxisIndex: this.xAxisIndex,\n yAxisIndex: this.yAxisIndex,\n legendHoverLink: this.legendHoverLink,\n stack: this.stack,\n cursor: this.cursor,\n label: this.label,\n itemStyle: this.itemStyle,\n emphasis: this.emphasis,\n barWidth: this.barWidth,\n barMaxWidth: this.barMaxWidth,\n barMinHeight: this.barMinHeight,\n barGap: this.barGap,\n barCategoryGap: this.barCategoryGap,\n large: this.large,\n largeThreshold: this.largeThreshold,\n progressive: this.progressive,\n progressiveThreshold: this.progressiveThreshold,\n progressiveChunkMode: this.progressiveChunkMode,\n dimensions: this.dimensions,\n encode: this.encode,\n seriesLayoutBy: this.seriesLayoutBy,\n datasetIndex: this.datasetIndex,\n markPoint: this.markPoint,\n markLine: this.markLine,\n markArea: this.markArea,\n zlevel: this.zlevel,\n z: this.z,\n };\n }\n\n private setOptions(): void {\n const config: any = assignDefined(\n this._state,\n {\n id: this.id,\n type: this.type,\n name: this.name,\n color: this.color,\n data: this.data,\n animation: this.animation,\n animationThreshold: this.animationThreshold,\n animationDuration: this.animationDuration,\n animationEasing: this.animationEasing,\n animationDelay: this.animationDelay,\n animationDurationUpdate: this.animationDurationUpdate,\n animationEasingUpdate: this.animationEasingUpdate,\n animationDelayUpdate: this.animationDelayUpdate,\n tooltip: this.tooltip,\n },\n this.getConfig(),\n this._options,\n this.config ? this.config : {}\n );\n this.optionsService.setArrayOption('series', config);\n }\n}\n","import { NgModule, Type } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nimport { TdChartSeriesHistogramComponent } from './histogram.component';\n\nexport const HISTOGRAM_MODULE_COMPONENTS: Type<any>[] = [\n TdChartSeriesHistogramComponent,\n];\n\n@NgModule({\n imports: [CommonModule],\n declarations: [HISTOGRAM_MODULE_COMPONENTS],\n exports: [HISTOGRAM_MODULE_COMPONENTS],\n})\nexport class CovalentHistogramEchartsModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;;AAuDM,MAAO,+BACX,SAAQ,yBAAyB,CAAA;AAMjC,IAAA,WAAA,CAAY,eAAsC,EAAA;QAChD,KAAK,CAAC,eAAe,CAAC,CAAC;KACxB;IAEQ,WAAW,GAAA;QAClB,IAAI,MAAM,GAAQ,EAAE,CAAC;AACrB,QAAA,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE;YAChB,MAAM,OAAO,GAAQ,IAAI,CAAC,cAAc,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC;YAC9D,IAAI,CAAC,MAAM,GAAG,OAAO,EAAE,MAAM,IAAI,EAAE,CAAC;AACrC,S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A,OAAA,EAAA,CAAA,YAAY,aAJtB,+BAA+B,CAAA,EAAA,CAAA,CAAA;AAQpB,8BAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,8BAA8B,YAJ/B,YAAY,CAAA,EAAA,CAAA,CAAA;4FAIX,8BAA8B,EAAA,UAAA,EAAA,CAAA;kBAL1C,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,OAAO,EAAE,CAAC,YAAY,CAAC;oBACvB,YAAY,EAAE,CAAC,2BAA2B,CAAC;oBAC3C,OAAO,EAAE,CAAC,2BAA2B,CAAC;AACvC,iBAAA,CAAA;;;ACbD;;AAEG;;;;"}
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { forwardRef, Component, ChangeDetectionStrategy, Input, NgModule } from '@angular/core';
|
|
3
|
+
import { CommonModule } from '@angular/common';
|
|
4
|
+
import * as i1 from '@covalent/echarts/base';
|
|
5
|
+
import { TdSeriesDirective } from '@covalent/echarts/base';
|
|
6
|
+
|
|
7
|
+
class TdChartSeriesLineComponent extends TdSeriesDirective {
|
|
8
|
+
constructor(_optionsService) {
|
|
9
|
+
super('line', _optionsService);
|
|
10
|
+
}
|
|
11
|
+
getConfig() {
|
|
12
|
+
return {
|
|
13
|
+
coordinateSystem: this.coordinateSystem,
|
|
14
|
+
xAxisIndex: this.xAxisIndex,
|
|
15
|
+
yAxisIndex: this.yAxisIndex,
|
|
16
|
+
polarIndex: this.polarIndex,
|
|
17
|
+
symbol: this.symbol,
|
|
18
|
+
symbolSize: this.symbolSize,
|
|
19
|
+
symbolRotate: this.symbolRotate,
|
|
20
|
+
symbolKeepAspect: this.symbolKeepAspect,
|
|
21
|
+
symbolOffset: this.symbolOffset,
|
|
22
|
+
showSymbol: this.showSymbol,
|
|
23
|
+
showAllSymbol: this.showAllSymbol,
|
|
24
|
+
hoverAnimation: this.hoverAnimation,
|
|
25
|
+
legendHoverLink: this.legendHoverLink,
|
|
26
|
+
stack: this.stack,
|
|
27
|
+
cursor: this.cursor,
|
|
28
|
+
connectNulls: this.connectNulls,
|
|
29
|
+
clipOverflow: this.clipOverflow,
|
|
30
|
+
step: this.step,
|
|
31
|
+
label: this.label,
|
|
32
|
+
itemStyle: this.itemStyle,
|
|
33
|
+
lineStyle: this.lineStyle,
|
|
34
|
+
areaStyle: this.areaStyle,
|
|
35
|
+
emphasis: this.emphasis,
|
|
36
|
+
smooth: this.smooth,
|
|
37
|
+
smoothMonotone: this.smoothMonotone,
|
|
38
|
+
sampling: this.sampling,
|
|
39
|
+
dimensions: this.dimensions,
|
|
40
|
+
encode: this.encode,
|
|
41
|
+
seriesLayoutBy: this.seriesLayoutBy,
|
|
42
|
+
datasetIndex: this.datasetIndex,
|
|
43
|
+
markPoint: this.markPoint,
|
|
44
|
+
markLine: this.markLine,
|
|
45
|
+
markArea: this.markArea,
|
|
46
|
+
zlevel: this.zlevel,
|
|
47
|
+
z: this.z,
|
|
48
|
+
silent: this.silent,
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
TdChartSeriesLineComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TdChartSeriesLineComponent, deps: [{ token: i1.TdChartOptionsService }], target: i0.ɵɵFactoryTarget.Component });
|
|
53
|
+
TdChartSeriesLineComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: TdChartSeriesLineComponent, selector: "td-chart-series[td-line]", inputs: { config: "config", id: "id", name: "name", color: "color", data: "data", animation: "animation", animationThreshold: "animationThreshold", animationDuration: "animationDuration", animationEasing: "animationEasing", animationDelay: "animationDelay", animationDurationUpdate: "animationDurationUpdate", animationEasingUpdate: "animationEasingUpdate", animationDelayUpdate: "animationDelayUpdate", tooltip: "tooltip", coordinateSystem: "coordinateSystem", xAxisIndex: "xAxisIndex", yAxisIndex: "yAxisIndex", polarIndex: "polarIndex", symbol: "symbol", symbolSize: "symbolSize", symbolRotate: "symbolRotate", symbolKeepAspect: "symbolKeepAspect", symbolOffset: "symbolOffset", showSymbol: "showSymbol", showAllSymbol: "showAllSymbol", hoverAnimation: "hoverAnimation", legendHoverLink: "legendHoverLink", stack: "stack", cursor: "cursor", connectNulls: "connectNulls", clipOverflow: "clipOverflow", step: "step", label: "label", itemStyle: "itemStyle", lineStyle: "lineStyle", areaStyle: "areaStyle", emphasis: "emphasis", smooth: "smooth", smoothMonotone: "smoothMonotone", sampling: "sampling", dimensions: "dimensions", encode: "encode", seriesLayoutBy: "seriesLayoutBy", datasetIndex: "datasetIndex", markPoint: "markPoint", markLine: "markLine", markArea: "markArea", zlevel: "zlevel", z: "z", silent: "silent" }, providers: [
|
|
54
|
+
{
|
|
55
|
+
provide: TdSeriesDirective,
|
|
56
|
+
useExisting: forwardRef(() => TdChartSeriesLineComponent),
|
|
57
|
+
},
|
|
58
|
+
], usesInheritance: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
59
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TdChartSeriesLineComponent, decorators: [{
|
|
60
|
+
type: Component,
|
|
61
|
+
args: [{
|
|
62
|
+
selector: 'td-chart-series[td-line]',
|
|
63
|
+
template: '',
|
|
64
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
65
|
+
inputs: [
|
|
66
|
+
'config',
|
|
67
|
+
'id',
|
|
68
|
+
'name',
|
|
69
|
+
'color',
|
|
70
|
+
'data',
|
|
71
|
+
'animation',
|
|
72
|
+
'animationThreshold',
|
|
73
|
+
'animationDuration',
|
|
74
|
+
'animationEasing',
|
|
75
|
+
'animationDelay',
|
|
76
|
+
'animationDurationUpdate',
|
|
77
|
+
'animationEasingUpdate',
|
|
78
|
+
'animationDelayUpdate',
|
|
79
|
+
'tooltip',
|
|
80
|
+
],
|
|
81
|
+
providers: [
|
|
82
|
+
{
|
|
83
|
+
provide: TdSeriesDirective,
|
|
84
|
+
useExisting: forwardRef(() => TdChartSeriesLineComponent),
|
|
85
|
+
},
|
|
86
|
+
],
|
|
87
|
+
}]
|
|
88
|
+
}], ctorParameters: function () { return [{ type: i1.TdChartOptionsService }]; }, propDecorators: { coordinateSystem: [{
|
|
89
|
+
type: Input
|
|
90
|
+
}], xAxisIndex: [{
|
|
91
|
+
type: Input
|
|
92
|
+
}], yAxisIndex: [{
|
|
93
|
+
type: Input
|
|
94
|
+
}], polarIndex: [{
|
|
95
|
+
type: Input
|
|
96
|
+
}], symbol: [{
|
|
97
|
+
type: Input
|
|
98
|
+
}], symbolSize: [{
|
|
99
|
+
type: Input
|
|
100
|
+
}], symbolRotate: [{
|
|
101
|
+
type: Input
|
|
102
|
+
}], symbolKeepAspect: [{
|
|
103
|
+
type: Input
|
|
104
|
+
}], symbolOffset: [{
|
|
105
|
+
type: Input
|
|
106
|
+
}], showSymbol: [{
|
|
107
|
+
type: Input
|
|
108
|
+
}], showAllSymbol: [{
|
|
109
|
+
type: Input
|
|
110
|
+
}], hoverAnimation: [{
|
|
111
|
+
type: Input
|
|
112
|
+
}], legendHoverLink: [{
|
|
113
|
+
type: Input
|
|
114
|
+
}], stack: [{
|
|
115
|
+
type: Input
|
|
116
|
+
}], cursor: [{
|
|
117
|
+
type: Input
|
|
118
|
+
}], connectNulls: [{
|
|
119
|
+
type: Input
|
|
120
|
+
}], clipOverflow: [{
|
|
121
|
+
type: Input
|
|
122
|
+
}], step: [{
|
|
123
|
+
type: Input
|
|
124
|
+
}], label: [{
|
|
125
|
+
type: Input
|
|
126
|
+
}], itemStyle: [{
|
|
127
|
+
type: Input
|
|
128
|
+
}], lineStyle: [{
|
|
129
|
+
type: Input
|
|
130
|
+
}], areaStyle: [{
|
|
131
|
+
type: Input
|
|
132
|
+
}], emphasis: [{
|
|
133
|
+
type: Input
|
|
134
|
+
}], smooth: [{
|
|
135
|
+
type: Input
|
|
136
|
+
}], smoothMonotone: [{
|
|
137
|
+
type: Input
|
|
138
|
+
}], sampling: [{
|
|
139
|
+
type: Input
|
|
140
|
+
}], dimensions: [{
|
|
141
|
+
type: Input
|
|
142
|
+
}], encode: [{
|
|
143
|
+
type: Input
|
|
144
|
+
}], seriesLayoutBy: [{
|
|
145
|
+
type: Input
|
|
146
|
+
}], datasetIndex: [{
|
|
147
|
+
type: Input
|
|
148
|
+
}], markPoint: [{
|
|
149
|
+
type: Input
|
|
150
|
+
}], markLine: [{
|
|
151
|
+
type: Input
|
|
152
|
+
}], markArea: [{
|
|
153
|
+
type: Input
|
|
154
|
+
}], zlevel: [{
|
|
155
|
+
type: Input
|
|
156
|
+
}], z: [{
|
|
157
|
+
type: Input
|
|
158
|
+
}], silent: [{
|
|
159
|
+
type: Input
|
|
160
|
+
}] } });
|
|
161
|
+
|
|
162
|
+
const LINE_MODULE_COMPONENTS = [TdChartSeriesLineComponent];
|
|
163
|
+
class CovalentLineEchartsModule {
|
|
164
|
+
}
|
|
165
|
+
CovalentLineEchartsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CovalentLineEchartsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
166
|
+
CovalentLineEchartsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: CovalentLineEchartsModule, declarations: [TdChartSeriesLineComponent], imports: [CommonModule], exports: [TdChartSeriesLineComponent] });
|
|
167
|
+
CovalentLineEchartsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CovalentLineEchartsModule, imports: [CommonModule] });
|
|
168
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CovalentLineEchartsModule, decorators: [{
|
|
169
|
+
type: NgModule,
|
|
170
|
+
args: [{
|
|
171
|
+
imports: [CommonModule],
|
|
172
|
+
declarations: [LINE_MODULE_COMPONENTS],
|
|
173
|
+
exports: [LINE_MODULE_COMPONENTS],
|
|
174
|
+
}]
|
|
175
|
+
}] });
|
|
176
|
+
|
|
177
|
+
/**
|
|
178
|
+
* Generated bundle index. Do not edit.
|
|
179
|
+
*/
|
|
180
|
+
|
|
181
|
+
export { CovalentLineEchartsModule, LINE_MODULE_COMPONENTS, TdChartSeriesLineComponent };
|
|
182
|
+
//# sourceMappingURL=covalent-echarts-line.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"covalent-echarts-line.mjs","sources":["../../../../libs/angular-echarts/line/src/line.component.ts","../../../../libs/angular-echarts/line/src/line.module.ts","../../../../libs/angular-echarts/line/src/covalent-echarts-line.ts"],"sourcesContent":["import {\n Component,\n Input,\n ChangeDetectionStrategy,\n forwardRef,\n} from '@angular/core';\n\nimport {\n TdChartOptionsService,\n TdCoordinateSystem,\n TdMarkPointSymbol,\n ITdLabel,\n ITdItemStyle,\n ITdLineStyle,\n ITdAreaStyle,\n TdSeriesLayoutBy,\n ITdMarkPoint,\n ITdMarkLine,\n ITdMarkArea,\n ITdEmphasis,\n ITdSeries,\n ITdShadow,\n TdSeriesDirective,\n} from '@covalent/echarts/base';\n\nexport type TdSampling = 'average' | 'max' | 'min' | 'sum';\n\nexport interface ITdLineSeries extends ITdSeries, ITdShadow {\n coordinateSystem?: TdCoordinateSystem;\n xAxisIndex?: number;\n yAxisIndex?: number;\n polarIndex?: number;\n symbol?: TdMarkPointSymbol | string;\n symbolSize?: number | any[] | Function;\n symbolRotate?: number;\n symbolKeepAspect?: boolean;\n symbolOffset?: any[];\n showSymbol?: boolean;\n showAllSymbol?: boolean | 'auto';\n hoverAnimation?: boolean;\n legendHoverLink?: boolean;\n stack?: string;\n cursor?: string;\n connectNulls?: boolean;\n clipOverflow?: boolean;\n step?: string | boolean;\n label?: ITdLabel;\n itemStyle?: ITdItemStyle;\n lineStyle?: ITdLineStyle;\n width?: number;\n opacity?: number;\n areaStyle?: ITdAreaStyle;\n emphasis?: ITdEmphasis;\n smooth?: boolean | number;\n smoothMonotone?: string;\n sampling?: TdSampling;\n dimensions?: any[];\n encode?: any;\n seriesLayoutBy?: TdSeriesLayoutBy;\n datasetIndex?: number;\n data?: any[];\n markPoint?: ITdMarkPoint;\n markLine?: ITdMarkLine;\n markArea?: ITdMarkArea;\n zlevel?: number;\n z?: number;\n silent?: boolean;\n}\n\n@Component({\n selector: 'td-chart-series[td-line]',\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(() => TdChartSeriesLineComponent),\n },\n ],\n})\nexport class TdChartSeriesLineComponent\n extends TdSeriesDirective\n implements ITdLineSeries\n{\n @Input() coordinateSystem?: TdCoordinateSystem;\n @Input() xAxisIndex?: number;\n @Input() yAxisIndex?: number;\n @Input() polarIndex?: number;\n @Input() symbol?: TdMarkPointSymbol | string;\n @Input() symbolSize?: number | any[] | Function;\n @Input() symbolRotate?: number;\n @Input() symbolKeepAspect?: boolean;\n @Input() symbolOffset?: any[];\n @Input() showSymbol?: boolean;\n @Input() showAllSymbol?: boolean;\n @Input() hoverAnimation?: boolean;\n @Input() legendHoverLink?: boolean;\n @Input() stack?: string;\n @Input() cursor?: string;\n @Input() connectNulls?: boolean;\n @Input() clipOverflow?: boolean;\n @Input() step?: string | boolean;\n @Input() label?: ITdLabel;\n @Input() itemStyle?: ITdItemStyle;\n @Input() lineStyle?: ITdLineStyle;\n @Input() areaStyle?: ITdAreaStyle;\n @Input() emphasis?: ITdEmphasis;\n @Input() smooth?: boolean | number;\n @Input() smoothMonotone?: string;\n @Input() sampling?: TdSampling;\n @Input() dimensions?: any[];\n @Input() encode: any;\n @Input() seriesLayoutBy?: TdSeriesLayoutBy;\n @Input() datasetIndex?: number;\n @Input() markPoint?: ITdMarkPoint;\n @Input() markLine?: ITdMarkLine;\n @Input() markArea?: ITdMarkArea;\n @Input() zlevel?: number;\n @Input() z?: number;\n @Input() silent?: boolean;\n\n constructor(_optionsService: TdChartOptionsService) {\n super('line', _optionsService);\n }\n\n getConfig(): any {\n return {\n coordinateSystem: this.coordinateSystem,\n xAxisIndex: this.xAxisIndex,\n yAxisIndex: this.yAxisIndex,\n polarIndex: this.polarIndex,\n symbol: this.symbol,\n symbolSize: this.symbolSize,\n symbolRotate: this.symbolRotate,\n symbolKeepAspect: this.symbolKeepAspect,\n symbolOffset: this.symbolOffset,\n showSymbol: this.showSymbol,\n showAllSymbol: this.showAllSymbol,\n hoverAnimation: this.hoverAnimation,\n legendHoverLink: this.legendHoverLink,\n stack: this.stack,\n cursor: this.cursor,\n connectNulls: this.connectNulls,\n clipOverflow: this.clipOverflow,\n step: this.step,\n label: this.label,\n itemStyle: this.itemStyle,\n lineStyle: this.lineStyle,\n areaStyle: this.areaStyle,\n emphasis: this.emphasis,\n smooth: this.smooth,\n smoothMonotone: this.smoothMonotone,\n sampling: this.sampling,\n dimensions: this.dimensions,\n encode: this.encode,\n seriesLayoutBy: this.seriesLayoutBy,\n datasetIndex: this.datasetIndex,\n markPoint: this.markPoint,\n markLine: this.markLine,\n markArea: this.markArea,\n zlevel: this.zlevel,\n z: this.z,\n silent: this.silent,\n };\n }\n}\n","import { NgModule, Type } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nimport { TdChartSeriesLineComponent } from './line.component';\n\nexport const LINE_MODULE_COMPONENTS: Type<any>[] = [TdChartSeriesLineComponent];\n\n@NgModule({\n imports: [CommonModule],\n declarations: [LINE_MODULE_COMPONENTS],\n exports: [LINE_MODULE_COMPONENTS],\n})\nexport class CovalentLineEchartsModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;AAiGM,MAAO,0BACX,SAAQ,iBAAiB,CAAA;AAwCzB,IAAA,WAAA,CAAY,eAAsC,EAAA;AAChD,QAAA,KAAK,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;KAChC;IAED,SAAS,GAAA;QACP,OAAO;YACL,gBAAgB,EAAE,IAAI,CAAC,gBAAgB;YACvC,UAAU,EAAE,IAAI,CAAC,UAAU;YAC3B,UAAU,EAAE,IAAI,CAAC,UAAU;YAC3B,UAAU,EAAE,IAAI,CAAC,UAAU;YAC3B,MAAM,EAAE,IAAI,CAAC,MAAM;YACnB,UAAU,EAAE,IAAI,CAAC,UAAU;YAC3B,YAAY,EAAE,IAAI,CAAC,YAAY;YAC/B,gBAAgB,EAAE,IAAI,CAAC,gBAAgB;YACvC,YAAY,EAAE,IAAI,CAAC,YAAY;YAC/B,UAAU,EAAE,IAAI,CAAC,UAAU;YAC3B,aAAa,EAAE,IAAI,CAAC,aAAa;YACjC,cAAc,EAAE,IAAI,CAAC,cAAc;YACnC,eAAe,EAAE,IAAI,CAAC,eAAe;YACrC,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,MAAM,EAAE,IAAI,CAAC,MAAM;YACnB,YAAY,EAAE,IAAI,CAAC,YAAY;YAC/B,YAAY,EAAE,IAAI,CAAC,YAAY;YAC/B,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,SAAS,EAAE,IAAI,CAAC,SAAS;YACzB,SAAS,EAAE,IAAI,CAAC,SAAS;YACzB,SAAS,EAAE,IAAI,CAAC,SAAS;YACzB,QAAQ,EAAE,IAAI,CAAC,QAAQ;YACvB,MAAM,EAAE,IAAI,CAAC,MAAM;YACnB,cAAc,EAAE,IAAI,CAAC,cAAc;YACnC,QAAQ,EAAE,IAAI,CAAC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QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,OAAO,EAAE,CAAC,YAAY,CAAC;oBACvB,YAAY,EAAE,CAAC,sBAAsB,CAAC;oBACtC,OAAO,EAAE,CAAC,sBAAsB,CAAC;AAClC,iBAAA,CAAA;;;ACXD;;AAEG;;;;"}
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { forwardRef, Component, ChangeDetectionStrategy, Input, NgModule } from '@angular/core';
|
|
3
|
+
import { CommonModule } from '@angular/common';
|
|
4
|
+
import * as i1 from '@covalent/echarts/base';
|
|
5
|
+
import { TdSeriesDirective } from '@covalent/echarts/base';
|
|
6
|
+
|
|
7
|
+
class TdChartSeriesMapComponent extends TdSeriesDirective {
|
|
8
|
+
constructor(_optionsService) {
|
|
9
|
+
super('map', _optionsService);
|
|
10
|
+
}
|
|
11
|
+
getConfig() {
|
|
12
|
+
return {
|
|
13
|
+
map: this.map,
|
|
14
|
+
roam: this.roam,
|
|
15
|
+
center: this.center,
|
|
16
|
+
aspectScale: this.aspectScale,
|
|
17
|
+
boudingCoords: this.boudingCoords,
|
|
18
|
+
zoom: this.zoom,
|
|
19
|
+
scaleLimit: this.scaleLimit,
|
|
20
|
+
nameMap: this.nameMap,
|
|
21
|
+
selectedMode: this.selectedMode,
|
|
22
|
+
label: this.label,
|
|
23
|
+
itemStyle: this.itemStyle,
|
|
24
|
+
zLevel: this.zLevel,
|
|
25
|
+
z: this.z,
|
|
26
|
+
left: this.left,
|
|
27
|
+
top: this.top,
|
|
28
|
+
right: this.right,
|
|
29
|
+
bottom: this.bottom,
|
|
30
|
+
layoutCenter: this.layoutCenter,
|
|
31
|
+
layoutSize: this.layoutSize,
|
|
32
|
+
geoIndex: this.geoIndex,
|
|
33
|
+
mapValueCalculation: this.mapValueCalculation,
|
|
34
|
+
showLegendSymbol: this.showLegendSymbol,
|
|
35
|
+
seriesLayoutBy: this.seriesLayoutBy,
|
|
36
|
+
markPoint: this.markPoint,
|
|
37
|
+
markLine: this.markLine,
|
|
38
|
+
markArea: this.markArea,
|
|
39
|
+
silent: this.silent,
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
TdChartSeriesMapComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TdChartSeriesMapComponent, deps: [{ token: i1.TdChartOptionsService }], target: i0.ɵɵFactoryTarget.Component });
|
|
44
|
+
TdChartSeriesMapComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: TdChartSeriesMapComponent, selector: "td-chart-series[td-map]", inputs: { config: "config", id: "id", name: "name", color: "color", data: "data", animation: "animation", animationThreshold: "animationThreshold", animationDuration: "animationDuration", animationEasing: "animationEasing", animationDelay: "animationDelay", animationDurationUpdate: "animationDurationUpdate", animationEasingUpdate: "animationEasingUpdate", animationDelayUpdate: "animationDelayUpdate", tooltip: "tooltip", map: "map", roam: "roam", center: "center", aspectScale: "aspectScale", boudingCoords: "boudingCoords", zoom: "zoom", scaleLimit: "scaleLimit", nameMap: "nameMap", selectedMode: "selectedMode", label: "label", itemStyle: "itemStyle", zLevel: "zLevel", z: "z", left: "left", top: "top", right: "right", bottom: "bottom", layoutCenter: "layoutCenter", layoutSize: "layoutSize", geoIndex: "geoIndex", mapValueCalculation: "mapValueCalculation", showLegendSymbol: "showLegendSymbol", seriesLayoutBy: "seriesLayoutBy", markPoint: "markPoint", markLine: "markLine", markArea: "markArea", silent: "silent" }, providers: [
|
|
45
|
+
{
|
|
46
|
+
provide: TdSeriesDirective,
|
|
47
|
+
useExisting: forwardRef(() => TdChartSeriesMapComponent),
|
|
48
|
+
},
|
|
49
|
+
], usesInheritance: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
50
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TdChartSeriesMapComponent, decorators: [{
|
|
51
|
+
type: Component,
|
|
52
|
+
args: [{
|
|
53
|
+
selector: 'td-chart-series[td-map]',
|
|
54
|
+
template: '',
|
|
55
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
56
|
+
inputs: [
|
|
57
|
+
'config',
|
|
58
|
+
'id',
|
|
59
|
+
'name',
|
|
60
|
+
'color',
|
|
61
|
+
'data',
|
|
62
|
+
'animation',
|
|
63
|
+
'animationThreshold',
|
|
64
|
+
'animationDuration',
|
|
65
|
+
'animationEasing',
|
|
66
|
+
'animationDelay',
|
|
67
|
+
'animationDurationUpdate',
|
|
68
|
+
'animationEasingUpdate',
|
|
69
|
+
'animationDelayUpdate',
|
|
70
|
+
'tooltip',
|
|
71
|
+
],
|
|
72
|
+
providers: [
|
|
73
|
+
{
|
|
74
|
+
provide: TdSeriesDirective,
|
|
75
|
+
useExisting: forwardRef(() => TdChartSeriesMapComponent),
|
|
76
|
+
},
|
|
77
|
+
],
|
|
78
|
+
}]
|
|
79
|
+
}], ctorParameters: function () { return [{ type: i1.TdChartOptionsService }]; }, propDecorators: { map: [{
|
|
80
|
+
type: Input
|
|
81
|
+
}], roam: [{
|
|
82
|
+
type: Input
|
|
83
|
+
}], center: [{
|
|
84
|
+
type: Input
|
|
85
|
+
}], aspectScale: [{
|
|
86
|
+
type: Input
|
|
87
|
+
}], boudingCoords: [{
|
|
88
|
+
type: Input
|
|
89
|
+
}], zoom: [{
|
|
90
|
+
type: Input
|
|
91
|
+
}], scaleLimit: [{
|
|
92
|
+
type: Input
|
|
93
|
+
}], nameMap: [{
|
|
94
|
+
type: Input
|
|
95
|
+
}], selectedMode: [{
|
|
96
|
+
type: Input
|
|
97
|
+
}], label: [{
|
|
98
|
+
type: Input
|
|
99
|
+
}], itemStyle: [{
|
|
100
|
+
type: Input
|
|
101
|
+
}], zLevel: [{
|
|
102
|
+
type: Input
|
|
103
|
+
}], z: [{
|
|
104
|
+
type: Input
|
|
105
|
+
}], left: [{
|
|
106
|
+
type: Input
|
|
107
|
+
}], top: [{
|
|
108
|
+
type: Input
|
|
109
|
+
}], right: [{
|
|
110
|
+
type: Input
|
|
111
|
+
}], bottom: [{
|
|
112
|
+
type: Input
|
|
113
|
+
}], layoutCenter: [{
|
|
114
|
+
type: Input
|
|
115
|
+
}], layoutSize: [{
|
|
116
|
+
type: Input
|
|
117
|
+
}], geoIndex: [{
|
|
118
|
+
type: Input
|
|
119
|
+
}], mapValueCalculation: [{
|
|
120
|
+
type: Input
|
|
121
|
+
}], showLegendSymbol: [{
|
|
122
|
+
type: Input
|
|
123
|
+
}], seriesLayoutBy: [{
|
|
124
|
+
type: Input
|
|
125
|
+
}], markPoint: [{
|
|
126
|
+
type: Input
|
|
127
|
+
}], markLine: [{
|
|
128
|
+
type: Input
|
|
129
|
+
}], markArea: [{
|
|
130
|
+
type: Input
|
|
131
|
+
}], silent: [{
|
|
132
|
+
type: Input
|
|
133
|
+
}] } });
|
|
134
|
+
|
|
135
|
+
const MAP_MODULE_COMPONENTS = [TdChartSeriesMapComponent];
|
|
136
|
+
class CovalentMapEchartsModule {
|
|
137
|
+
}
|
|
138
|
+
CovalentMapEchartsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CovalentMapEchartsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
139
|
+
CovalentMapEchartsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: CovalentMapEchartsModule, declarations: [TdChartSeriesMapComponent], imports: [CommonModule], exports: [TdChartSeriesMapComponent] });
|
|
140
|
+
CovalentMapEchartsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CovalentMapEchartsModule, imports: [CommonModule] });
|
|
141
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CovalentMapEchartsModule, decorators: [{
|
|
142
|
+
type: NgModule,
|
|
143
|
+
args: [{
|
|
144
|
+
imports: [CommonModule],
|
|
145
|
+
declarations: [MAP_MODULE_COMPONENTS],
|
|
146
|
+
exports: [MAP_MODULE_COMPONENTS],
|
|
147
|
+
}]
|
|
148
|
+
}] });
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* Generated bundle index. Do not edit.
|
|
152
|
+
*/
|
|
153
|
+
|
|
154
|
+
export { CovalentMapEchartsModule, MAP_MODULE_COMPONENTS, TdChartSeriesMapComponent };
|
|
155
|
+
//# sourceMappingURL=covalent-echarts-map.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"covalent-echarts-map.mjs","sources":["../../../../libs/angular-echarts/map/src/map.component.ts","../../../../libs/angular-echarts/map/src/map.module.ts","../../../../libs/angular-echarts/map/src/covalent-echarts-map.ts"],"sourcesContent":["import {\n Component,\n Input,\n ChangeDetectionStrategy,\n forwardRef,\n} from '@angular/core';\n\nimport {\n TdChartOptionsService,\n ITdItemStyle,\n ITdMarkPoint,\n ITdMarkLine,\n ITdMarkArea,\n ITdSeries,\n ITdLabel,\n TdSeriesDirective,\n} from '@covalent/echarts/base';\n\nexport type TdMapValueCalculation = 'sum' | 'average' | 'max' | 'min';\nexport type TdMapSeriesLayoutBy = 'column' | 'row';\n\nexport interface ITdMapScaleLimit {\n min?: number;\n max?: number;\n}\n\nexport interface ITdMapItemStyle {\n areaColor?: ITdItemStyle;\n emphasis?: ITdItemStyle;\n}\n\nexport interface ITdMapSeries extends ITdSeries {\n map?: string;\n roam?: boolean;\n center?: number[];\n aspectScale?: number;\n boudingCoords?: any[];\n zoom?: number;\n scaleLimit?: ITdMapScaleLimit;\n nameMap?: object;\n selectedMode?: boolean | string;\n label?: ITdLabel;\n itemStyle?: ITdMapItemStyle;\n zLevel?: number;\n z?: number;\n left?: string | number;\n top?: string | number;\n right?: string | number;\n bottom?: string | number;\n layoutCenter?: any[];\n layoutSize?: any[];\n geoIndex?: number;\n mapValueCalculation?: TdMapValueCalculation;\n showLegendSymbol?: boolean;\n seriesLayoutBy?: string;\n data?: any[];\n markPoint?: ITdMarkPoint;\n markLine?: ITdMarkLine;\n markArea?: ITdMarkArea;\n silent?: boolean;\n}\n\n@Component({\n selector: 'td-chart-series[td-map]',\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(() => TdChartSeriesMapComponent),\n },\n ],\n})\nexport class TdChartSeriesMapComponent\n extends TdSeriesDirective\n implements ITdMapSeries\n{\n @Input() map?: string;\n @Input() roam?: boolean;\n @Input() center?: number[];\n @Input() aspectScale?: number;\n @Input() boudingCoords?: any[];\n @Input() zoom?: number;\n @Input() scaleLimit?: ITdMapScaleLimit;\n @Input() nameMap?: object;\n @Input() selectedMode?: boolean | string;\n @Input() label?: ITdLabel;\n @Input() itemStyle?: ITdMapItemStyle;\n @Input() zLevel?: number;\n @Input() z?: number;\n @Input() left?: string | number;\n @Input() top?: string | number;\n @Input() right?: string | number;\n @Input() bottom?: string | number;\n @Input() layoutCenter?: any[];\n @Input() layoutSize?: any[];\n @Input() geoIndex?: number;\n @Input() mapValueCalculation?: TdMapValueCalculation;\n @Input() showLegendSymbol?: boolean;\n @Input() seriesLayoutBy?: string;\n @Input() markPoint?: ITdMarkPoint;\n @Input() markLine?: ITdMarkLine;\n @Input() markArea?: ITdMarkArea;\n @Input() silent?: boolean;\n\n constructor(_optionsService: TdChartOptionsService) {\n super('map', _optionsService);\n }\n\n getConfig(): any {\n return {\n map: this.map,\n roam: this.roam,\n center: this.center,\n aspectScale: this.aspectScale,\n boudingCoords: this.boudingCoords,\n zoom: this.zoom,\n scaleLimit: this.scaleLimit,\n nameMap: this.nameMap,\n selectedMode: this.selectedMode,\n label: this.label,\n itemStyle: this.itemStyle,\n zLevel: this.zLevel,\n z: this.z,\n left: this.left,\n top: this.top,\n right: this.right,\n bottom: this.bottom,\n layoutCenter: this.layoutCenter,\n layoutSize: this.layoutSize,\n geoIndex: this.geoIndex,\n mapValueCalculation: this.mapValueCalculation,\n showLegendSymbol: this.showLegendSymbol,\n seriesLayoutBy: this.seriesLayoutBy,\n markPoint: this.markPoint,\n markLine: this.markLine,\n markArea: this.markArea,\n silent: this.silent,\n };\n }\n}\n","import { NgModule, Type } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nimport { TdChartSeriesMapComponent } from './map.component';\n\nexport const MAP_MODULE_COMPONENTS: Type<any>[] = [TdChartSeriesMapComponent];\n\n@NgModule({\n imports: [CommonModule],\n declarations: [MAP_MODULE_COMPONENTS],\n exports: [MAP_MODULE_COMPONENTS],\n})\nexport class CovalentMapEchartsModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;AA0FM,MAAO,yBACX,SAAQ,iBAAiB,CAAA;
|
|
1
|
+
{"version":3,"file":"covalent-echarts-map.mjs","sources":["../../../../libs/angular-echarts/map/src/map.component.ts","../../../../libs/angular-echarts/map/src/map.module.ts","../../../../libs/angular-echarts/map/src/covalent-echarts-map.ts"],"sourcesContent":["import {\n Component,\n Input,\n ChangeDetectionStrategy,\n forwardRef,\n} from '@angular/core';\n\nimport {\n TdChartOptionsService,\n ITdItemStyle,\n ITdMarkPoint,\n ITdMarkLine,\n ITdMarkArea,\n ITdSeries,\n ITdLabel,\n TdSeriesDirective,\n} from '@covalent/echarts/base';\n\nexport type TdMapValueCalculation = 'sum' | 'average' | 'max' | 'min';\nexport type TdMapSeriesLayoutBy = 'column' | 'row';\n\nexport interface ITdMapScaleLimit {\n min?: number;\n max?: number;\n}\n\nexport interface ITdMapItemStyle {\n areaColor?: ITdItemStyle;\n emphasis?: ITdItemStyle;\n}\n\nexport interface ITdMapSeries extends ITdSeries {\n map?: string;\n roam?: boolean;\n center?: number[];\n aspectScale?: number;\n boudingCoords?: any[];\n zoom?: number;\n scaleLimit?: ITdMapScaleLimit;\n nameMap?: object;\n selectedMode?: boolean | string;\n label?: ITdLabel;\n itemStyle?: ITdMapItemStyle;\n zLevel?: number;\n z?: number;\n left?: string | number;\n top?: string | number;\n right?: string | number;\n bottom?: string | number;\n layoutCenter?: any[];\n layoutSize?: any[];\n geoIndex?: number;\n mapValueCalculation?: TdMapValueCalculation;\n showLegendSymbol?: boolean;\n seriesLayoutBy?: string;\n data?: any[];\n markPoint?: ITdMarkPoint;\n markLine?: ITdMarkLine;\n markArea?: ITdMarkArea;\n silent?: boolean;\n}\n\n@Component({\n selector: 'td-chart-series[td-map]',\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(() => TdChartSeriesMapComponent),\n },\n ],\n})\nexport class TdChartSeriesMapComponent\n extends TdSeriesDirective\n implements ITdMapSeries\n{\n @Input() map?: string;\n @Input() roam?: boolean;\n @Input() center?: number[];\n @Input() aspectScale?: number;\n @Input() boudingCoords?: any[];\n @Input() zoom?: number;\n @Input() scaleLimit?: ITdMapScaleLimit;\n @Input() nameMap?: object;\n @Input() selectedMode?: boolean | string;\n @Input() label?: ITdLabel;\n @Input() itemStyle?: ITdMapItemStyle;\n @Input() zLevel?: number;\n @Input() z?: number;\n @Input() left?: string | number;\n @Input() top?: string | number;\n @Input() right?: string | number;\n @Input() bottom?: string | number;\n @Input() layoutCenter?: any[];\n @Input() layoutSize?: any[];\n @Input() geoIndex?: number;\n @Input() mapValueCalculation?: TdMapValueCalculation;\n @Input() showLegendSymbol?: boolean;\n @Input() seriesLayoutBy?: string;\n @Input() markPoint?: ITdMarkPoint;\n @Input() markLine?: ITdMarkLine;\n @Input() markArea?: ITdMarkArea;\n @Input() silent?: boolean;\n\n constructor(_optionsService: TdChartOptionsService) {\n super('map', _optionsService);\n }\n\n getConfig(): any {\n return {\n map: this.map,\n roam: this.roam,\n center: this.center,\n aspectScale: this.aspectScale,\n boudingCoords: this.boudingCoords,\n zoom: this.zoom,\n scaleLimit: this.scaleLimit,\n nameMap: this.nameMap,\n selectedMode: this.selectedMode,\n label: this.label,\n itemStyle: this.itemStyle,\n zLevel: this.zLevel,\n z: this.z,\n left: this.left,\n top: this.top,\n right: this.right,\n bottom: this.bottom,\n layoutCenter: this.layoutCenter,\n layoutSize: this.layoutSize,\n geoIndex: this.geoIndex,\n mapValueCalculation: this.mapValueCalculation,\n showLegendSymbol: this.showLegendSymbol,\n seriesLayoutBy: this.seriesLayoutBy,\n markPoint: this.markPoint,\n markLine: this.markLine,\n markArea: this.markArea,\n silent: this.silent,\n };\n }\n}\n","import { NgModule, Type } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nimport { TdChartSeriesMapComponent } from './map.component';\n\nexport const MAP_MODULE_COMPONENTS: Type<any>[] = [TdChartSeriesMapComponent];\n\n@NgModule({\n imports: [CommonModule],\n declarations: [MAP_MODULE_COMPONENTS],\n exports: [MAP_MODULE_COMPONENTS],\n})\nexport class CovalentMapEchartsModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;AA0FM,MAAO,yBACX,SAAQ,iBAAiB,CAAA;AA+BzB,IAAA,WAAA,CAAY,eAAsC,EAAA;AAChD,QAAA,KAAK,CAAC,KAAK,EAAE,eAAe,CAAC,CAAC;KAC/B;IAED,SAAS,GAAA;QACP,OAAO;YACL,GAAG,EAAE,IAAI,CAAC,GAAG;YACb,IAAI,EAAE,IAAI,CAA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AAA,IAAA,EAAA,CAAA;oBACR,OAAO,EAAE,CAAC,YAAY,CAAC;oBACvB,YAAY,EAAE,CAAC,qBAAqB,CAAC;oBACrC,OAAO,EAAE,CAAC,qBAAqB,CAAC;AACjC,iBAAA,CAAA;;;ACXD;;AAEG;;;;"}
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { forwardRef, Component, ChangeDetectionStrategy, Input, NgModule } from '@angular/core';
|
|
3
|
+
import { CommonModule } from '@angular/common';
|
|
4
|
+
import * as i1 from '@covalent/echarts/base';
|
|
5
|
+
import { TdSeriesDirective } from '@covalent/echarts/base';
|
|
6
|
+
|
|
7
|
+
class TdChartSeriesPieComponent extends TdSeriesDirective {
|
|
8
|
+
constructor(_optionsService) {
|
|
9
|
+
super('pie', _optionsService);
|
|
10
|
+
}
|
|
11
|
+
getConfig() {
|
|
12
|
+
return {
|
|
13
|
+
legendHoverLink: this.legendHoverLink,
|
|
14
|
+
label: this.label,
|
|
15
|
+
itemStyle: this.itemStyle,
|
|
16
|
+
emphasis: this.emphasis,
|
|
17
|
+
selectedMode: this.selectedMode,
|
|
18
|
+
selectedOffset: this.selectedOffset,
|
|
19
|
+
clockwise: this.clockwise,
|
|
20
|
+
startAngle: this.startAngle,
|
|
21
|
+
minAngle: this.minAngle,
|
|
22
|
+
minShowLabelAngle: this.minShowLabelAngle,
|
|
23
|
+
roseType: this.roseType,
|
|
24
|
+
avoidLabelOverlap: this.avoidLabelOverlap,
|
|
25
|
+
stillShowZeroSum: this.stillShowZeroSum,
|
|
26
|
+
cursor: this.cursor,
|
|
27
|
+
labelLine: this.labelLine,
|
|
28
|
+
seriesLayoutBy: this.seriesLayoutBy,
|
|
29
|
+
datasetIndex: this.datasetIndex,
|
|
30
|
+
markPoint: this.markPoint,
|
|
31
|
+
markLine: this.markLine,
|
|
32
|
+
markArea: this.markArea,
|
|
33
|
+
zlevel: this.zlevel,
|
|
34
|
+
z: this.z,
|
|
35
|
+
center: this.center,
|
|
36
|
+
radius: this.radius,
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
TdChartSeriesPieComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TdChartSeriesPieComponent, deps: [{ token: i1.TdChartOptionsService }], target: i0.ɵɵFactoryTarget.Component });
|
|
41
|
+
TdChartSeriesPieComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: TdChartSeriesPieComponent, selector: "td-chart-series[td-pie]", inputs: { config: "config", id: "id", name: "name", color: "color", data: "data", animation: "animation", animationThreshold: "animationThreshold", animationDuration: "animationDuration", animationEasing: "animationEasing", animationDelay: "animationDelay", animationDurationUpdate: "animationDurationUpdate", animationEasingUpdate: "animationEasingUpdate", animationDelayUpdate: "animationDelayUpdate", tooltip: "tooltip", legendHoverLink: "legendHoverLink", hoverAnimation: "hoverAnimation", hoverOffset: "hoverOffset", selectedMode: "selectedMode", selectedOffset: "selectedOffset", clockwise: "clockwise", startAngle: "startAngle", minAngle: "minAngle", minShowLabelAngle: "minShowLabelAngle", roseType: "roseType", avoidLabelOverlap: "avoidLabelOverlap", stillShowZeroSum: "stillShowZeroSum", cursor: "cursor", labelLine: "labelLine", label: "label", itemStyle: "itemStyle", emphasis: "emphasis", seriesLayoutBy: "seriesLayoutBy", datasetIndex: "datasetIndex", markPoint: "markPoint", markLine: "markLine", markArea: "markArea", zlevel: "zlevel", z: "z", center: "center", radius: "radius" }, providers: [
|
|
42
|
+
{
|
|
43
|
+
provide: TdSeriesDirective,
|
|
44
|
+
useExisting: forwardRef(() => TdChartSeriesPieComponent),
|
|
45
|
+
},
|
|
46
|
+
], usesInheritance: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
47
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TdChartSeriesPieComponent, decorators: [{
|
|
48
|
+
type: Component,
|
|
49
|
+
args: [{
|
|
50
|
+
selector: 'td-chart-series[td-pie]',
|
|
51
|
+
template: '',
|
|
52
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
53
|
+
inputs: [
|
|
54
|
+
'config',
|
|
55
|
+
'id',
|
|
56
|
+
'name',
|
|
57
|
+
'color',
|
|
58
|
+
'data',
|
|
59
|
+
'animation',
|
|
60
|
+
'animationThreshold',
|
|
61
|
+
'animationDuration',
|
|
62
|
+
'animationEasing',
|
|
63
|
+
'animationDelay',
|
|
64
|
+
'animationDurationUpdate',
|
|
65
|
+
'animationEasingUpdate',
|
|
66
|
+
'animationDelayUpdate',
|
|
67
|
+
'tooltip',
|
|
68
|
+
],
|
|
69
|
+
providers: [
|
|
70
|
+
{
|
|
71
|
+
provide: TdSeriesDirective,
|
|
72
|
+
useExisting: forwardRef(() => TdChartSeriesPieComponent),
|
|
73
|
+
},
|
|
74
|
+
],
|
|
75
|
+
}]
|
|
76
|
+
}], ctorParameters: function () { return [{ type: i1.TdChartOptionsService }]; }, propDecorators: { legendHoverLink: [{
|
|
77
|
+
type: Input
|
|
78
|
+
}], hoverAnimation: [{
|
|
79
|
+
type: Input
|
|
80
|
+
}], hoverOffset: [{
|
|
81
|
+
type: Input
|
|
82
|
+
}], selectedMode: [{
|
|
83
|
+
type: Input
|
|
84
|
+
}], selectedOffset: [{
|
|
85
|
+
type: Input
|
|
86
|
+
}], clockwise: [{
|
|
87
|
+
type: Input
|
|
88
|
+
}], startAngle: [{
|
|
89
|
+
type: Input
|
|
90
|
+
}], minAngle: [{
|
|
91
|
+
type: Input
|
|
92
|
+
}], minShowLabelAngle: [{
|
|
93
|
+
type: Input
|
|
94
|
+
}], roseType: [{
|
|
95
|
+
type: Input
|
|
96
|
+
}], avoidLabelOverlap: [{
|
|
97
|
+
type: Input
|
|
98
|
+
}], stillShowZeroSum: [{
|
|
99
|
+
type: Input
|
|
100
|
+
}], cursor: [{
|
|
101
|
+
type: Input
|
|
102
|
+
}], labelLine: [{
|
|
103
|
+
type: Input
|
|
104
|
+
}], label: [{
|
|
105
|
+
type: Input
|
|
106
|
+
}], itemStyle: [{
|
|
107
|
+
type: Input
|
|
108
|
+
}], emphasis: [{
|
|
109
|
+
type: Input
|
|
110
|
+
}], seriesLayoutBy: [{
|
|
111
|
+
type: Input
|
|
112
|
+
}], datasetIndex: [{
|
|
113
|
+
type: Input
|
|
114
|
+
}], markPoint: [{
|
|
115
|
+
type: Input
|
|
116
|
+
}], markLine: [{
|
|
117
|
+
type: Input
|
|
118
|
+
}], markArea: [{
|
|
119
|
+
type: Input
|
|
120
|
+
}], zlevel: [{
|
|
121
|
+
type: Input
|
|
122
|
+
}], z: [{
|
|
123
|
+
type: Input
|
|
124
|
+
}], center: [{
|
|
125
|
+
type: Input
|
|
126
|
+
}], radius: [{
|
|
127
|
+
type: Input
|
|
128
|
+
}] } });
|
|
129
|
+
|
|
130
|
+
const PIE_MODULE_COMPONENTS = [TdChartSeriesPieComponent];
|
|
131
|
+
class CovalentPieEchartsModule {
|
|
132
|
+
}
|
|
133
|
+
CovalentPieEchartsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CovalentPieEchartsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
134
|
+
CovalentPieEchartsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: CovalentPieEchartsModule, declarations: [TdChartSeriesPieComponent], imports: [CommonModule], exports: [TdChartSeriesPieComponent] });
|
|
135
|
+
CovalentPieEchartsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CovalentPieEchartsModule, imports: [CommonModule] });
|
|
136
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CovalentPieEchartsModule, decorators: [{
|
|
137
|
+
type: NgModule,
|
|
138
|
+
args: [{
|
|
139
|
+
imports: [CommonModule],
|
|
140
|
+
declarations: [PIE_MODULE_COMPONENTS],
|
|
141
|
+
exports: [PIE_MODULE_COMPONENTS],
|
|
142
|
+
}]
|
|
143
|
+
}] });
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* Generated bundle index. Do not edit.
|
|
147
|
+
*/
|
|
148
|
+
|
|
149
|
+
export { CovalentPieEchartsModule, PIE_MODULE_COMPONENTS, TdChartSeriesPieComponent };
|
|
150
|
+
//# sourceMappingURL=covalent-echarts-pie.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"covalent-echarts-pie.mjs","sources":["../../../../libs/angular-echarts/pie/src/pie.component.ts","../../../../libs/angular-echarts/pie/src/pie.module.ts","../../../../libs/angular-echarts/pie/src/covalent-echarts-pie.ts"],"sourcesContent":["import {\n Component,\n Input,\n ChangeDetectionStrategy,\n forwardRef,\n} from '@angular/core';\n\nimport {\n TdChartOptionsService,\n ITdItemStyle,\n ITdEmphasis,\n TdSeriesLayoutBy,\n ITdMarkPoint,\n ITdMarkLine,\n ITdMarkArea,\n ITdSeries,\n ITdLabel,\n ITdLabelLine,\n TdSeriesDirective,\n} from '@covalent/echarts/base';\n\nexport interface ITdPieSeries extends ITdSeries {\n legendHoverLink?: boolean;\n hoverAnimation?: boolean;\n hoverOffset?: number;\n selectedMode?: boolean | string;\n selectedOffset?: number;\n clockwise?: boolean;\n startAngle?: number;\n minAngle?: number;\n minShowLabelAngle?: number;\n roseType?: boolean | string;\n avoidLabelOverlap?: boolean;\n stillShowZeroSum?: boolean;\n cursor?: string;\n labelLine?: ITdLabelLine;\n Label?: ITdLabel;\n itemStyle?: ITdItemStyle;\n emphasis?: ITdEmphasis;\n seriesLayoutBy?: TdSeriesLayoutBy;\n datasetIndex?: number;\n data?: any[];\n markPoint?: ITdMarkPoint;\n markLine?: ITdMarkLine;\n markArea?: ITdMarkArea;\n Zlevel?: 0;\n z?: number;\n center?: object;\n radius?: number | string | any[];\n silent?: boolean;\n}\n\n@Component({\n selector: 'td-chart-series[td-pie]',\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(() => TdChartSeriesPieComponent),\n },\n ],\n})\nexport class TdChartSeriesPieComponent\n extends TdSeriesDirective\n implements ITdPieSeries\n{\n @Input() legendHoverLink?: boolean;\n @Input() hoverAnimation?: boolean;\n @Input() hoverOffset?: number;\n @Input() selectedMode?: boolean | string;\n @Input() selectedOffset?: number;\n @Input() clockwise?: boolean;\n @Input() startAngle?: number;\n @Input() minAngle?: number;\n @Input() minShowLabelAngle?: number;\n @Input() roseType?: boolean | string;\n @Input() avoidLabelOverlap?: boolean;\n @Input() stillShowZeroSum?: boolean;\n @Input() cursor?: string;\n @Input() labelLine?: object;\n @Input() label?: any;\n @Input() itemStyle?: ITdItemStyle;\n @Input() emphasis?: ITdEmphasis;\n @Input() seriesLayoutBy?: TdSeriesLayoutBy;\n @Input() datasetIndex?: number;\n @Input() markPoint?: ITdMarkPoint;\n @Input() markLine?: ITdMarkLine;\n @Input() markArea?: ITdMarkArea;\n @Input() zlevel?: number;\n @Input() z?: number;\n @Input() center?: object;\n @Input() radius?: number | string | any[];\n\n constructor(_optionsService: TdChartOptionsService) {\n super('pie', _optionsService);\n }\n\n getConfig(): any {\n return {\n legendHoverLink: this.legendHoverLink,\n label: this.label,\n itemStyle: this.itemStyle,\n emphasis: this.emphasis,\n selectedMode: this.selectedMode,\n selectedOffset: this.selectedOffset,\n clockwise: this.clockwise,\n startAngle: this.startAngle,\n minAngle: this.minAngle,\n minShowLabelAngle: this.minShowLabelAngle,\n roseType: this.roseType,\n avoidLabelOverlap: this.avoidLabelOverlap,\n stillShowZeroSum: this.stillShowZeroSum,\n cursor: this.cursor,\n labelLine: this.labelLine,\n seriesLayoutBy: this.seriesLayoutBy,\n datasetIndex: this.datasetIndex,\n markPoint: this.markPoint,\n markLine: this.markLine,\n markArea: this.markArea,\n zlevel: this.zlevel,\n z: this.z,\n center: this.center,\n radius: this.radius,\n };\n }\n}\n","import { NgModule, Type } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nimport { TdChartSeriesPieComponent } from './pie.component';\n\nexport const PIE_MODULE_COMPONENTS: Type<any>[] = [TdChartSeriesPieComponent];\n\n@NgModule({\n imports: [CommonModule],\n declarations: [PIE_MODULE_COMPONENTS],\n exports: [PIE_MODULE_COMPONENTS],\n})\nexport class CovalentPieEchartsModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;AAgFM,MAAO,yBACX,SAAQ,iBAAiB,CAAA;AA8BzB,IAAA,WAAA,CAAY,eAAsC,EAAA;AAChD,QAAA,KAAK,CAAC,KAAK,EAAE,eAAe,CAAC,CAAC;KAC/B;IAED,SAAS,GAAA;QACP,OAAO;YACL,eAAe,EAAE,IAAI,CAAC,eAAe;YACrC,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,SAAS,EAAE,IAAI,CAAC,SAAS;YACzB,QAAQ,EAAE,IAAI,CAAC,QAAQ;YACvB,YAAY,EAAE,IAAI,CAAC,YAAY;YAC/B,cAAc,EAAE,IAAI,CAAC,cAAc;YACnC,SAAS,EAAE,IAAI,CAAC,SAAS;YACzB,UAAU,EAAE,IAAI,CAAC,UAAU;YAC3B,QAAQ,EAAE,IAAI,CAAC,QAAQ;YACvB,iBAAiB,EAAE,IAAI,CAAC,iBAAiB;YACzC,QAAQ,EAAE,IAAI,CAAC,QAAQ;YACvB,iBAAiB,EAAE,IAAI,CAAC,iBAAiB;YACzC,gBAAgB,EAAE,IAAI,CAAC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