@covalent/echarts 6.3.0 → 7.0.0

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.
Files changed (212) hide show
  1. package/bar/bar.component.d.ts +1 -1
  2. package/base/axis/axis.component.d.ts +1 -1
  3. package/base/axis/x-axis.component.d.ts +1 -1
  4. package/base/axis/y-axis.component.d.ts +1 -1
  5. package/base/chart.component.d.ts +1 -1
  6. package/base/dataset/dataset.component.d.ts +1 -1
  7. package/base/series/series.component.d.ts +1 -1
  8. package/clustering/clustering.component.d.ts +1 -1
  9. package/esm2022/bar/bar.component.mjs +163 -0
  10. package/{esm2020 → esm2022}/bar/bar.module.mjs +5 -5
  11. package/esm2022/base/axis/axis.component.mjs +157 -0
  12. package/esm2022/base/axis/x-axis.component.mjs +56 -0
  13. package/esm2022/base/axis/y-axis.component.mjs +56 -0
  14. package/{esm2020 → esm2022}/base/base.module.mjs +11 -11
  15. package/esm2022/base/chart-options.service.mjs +63 -0
  16. package/esm2022/base/chart.component.mjs +211 -0
  17. package/esm2022/base/dataset/dataset.component.mjs +57 -0
  18. package/esm2022/base/series/series.component.mjs +106 -0
  19. package/esm2022/clustering/clustering.component.mjs +275 -0
  20. package/{esm2020 → esm2022}/clustering/clustering.module.mjs +5 -5
  21. package/esm2022/graph/graph.component.mjs +230 -0
  22. package/{esm2020 → esm2022}/graph/graph.module.mjs +5 -5
  23. package/esm2022/histogram/histogram.component.mjs +127 -0
  24. package/{esm2020 → esm2022}/histogram/histogram.module.mjs +5 -5
  25. package/esm2022/line/line.component.mjs +195 -0
  26. package/{esm2020 → esm2022}/line/line.module.mjs +5 -5
  27. package/esm2022/map/map.component.mjs +159 -0
  28. package/{esm2020 → esm2022}/map/map.module.mjs +5 -5
  29. package/esm2022/pie/pie.component.mjs +153 -0
  30. package/{esm2020 → esm2022}/pie/pie.module.mjs +5 -5
  31. package/esm2022/regression/regression.component.mjs +140 -0
  32. package/{esm2020 → esm2022}/regression/regression.module.mjs +5 -5
  33. package/esm2022/sankey/sankey.component.mjs +139 -0
  34. package/{esm2020 → esm2022}/sankey/sankey.module.mjs +5 -5
  35. package/esm2022/scatter/scatter.component.mjs +175 -0
  36. package/{esm2020 → esm2022}/scatter/scatter.module.mjs +5 -5
  37. package/esm2022/toolbox/toolbox.component.mjs +149 -0
  38. package/{esm2020 → esm2022}/toolbox/toolbox.module.mjs +7 -7
  39. package/esm2022/tooltip/series-tooltip.component.mjs +112 -0
  40. package/esm2022/tooltip/tooltip.component.mjs +168 -0
  41. package/{esm2020 → esm2022}/tooltip/tooltip.module.mjs +9 -9
  42. package/esm2022/tree/tree.component.mjs +139 -0
  43. package/{esm2020 → esm2022}/tree/tree.module.mjs +5 -5
  44. package/esm2022/treemap/treemap.component.mjs +182 -0
  45. package/{esm2020 → esm2022}/treemap/treemap.module.mjs +5 -5
  46. package/esm2022/wordcloud/wordcloud.component.mjs +106 -0
  47. package/{esm2020 → esm2022}/wordcloud/wordcloud.module.mjs +5 -5
  48. package/{fesm2015 → fesm2022}/covalent-echarts-bar.mjs +40 -12
  49. package/fesm2022/covalent-echarts-bar.mjs.map +1 -0
  50. package/{fesm2020 → fesm2022}/covalent-echarts-base.mjs +135 -69
  51. package/{fesm2015 → fesm2022}/covalent-echarts-base.mjs.map +1 -1
  52. package/{fesm2015 → fesm2022}/covalent-echarts-clustering.mjs +54 -12
  53. package/{fesm2020 → fesm2022}/covalent-echarts-clustering.mjs.map +1 -1
  54. package/{fesm2020 → fesm2022}/covalent-echarts-graph.mjs +57 -12
  55. package/{fesm2015 → fesm2022}/covalent-echarts-graph.mjs.map +1 -1
  56. package/{fesm2020 → fesm2022}/covalent-echarts-histogram.mjs +14 -12
  57. package/{fesm2020 → fesm2022}/covalent-echarts-histogram.mjs.map +1 -1
  58. package/{fesm2020 → fesm2022}/covalent-echarts-line.mjs +48 -12
  59. package/fesm2022/covalent-echarts-line.mjs.map +1 -0
  60. package/{fesm2015 → fesm2022}/covalent-echarts-map.mjs +39 -12
  61. package/{fesm2020 → fesm2022}/covalent-echarts-map.mjs.map +1 -1
  62. package/{fesm2020 → fesm2022}/covalent-echarts-pie.mjs +38 -12
  63. package/fesm2022/covalent-echarts-pie.mjs.map +1 -0
  64. package/{fesm2020 → fesm2022}/covalent-echarts-regression.mjs +15 -12
  65. package/fesm2022/covalent-echarts-regression.mjs.map +1 -0
  66. package/{fesm2015 → fesm2022}/covalent-echarts-sankey.mjs +34 -12
  67. package/fesm2022/covalent-echarts-sankey.mjs.map +1 -0
  68. package/{fesm2015 → fesm2022}/covalent-echarts-scatter.mjs +43 -12
  69. package/fesm2022/covalent-echarts-scatter.mjs.map +1 -0
  70. package/{fesm2020 → fesm2022}/covalent-echarts-toolbox.mjs +37 -23
  71. package/{fesm2020 → fesm2022}/covalent-echarts-toolbox.mjs.map +1 -1
  72. package/{fesm2020 → fesm2022}/covalent-echarts-tooltip.mjs +69 -47
  73. package/{fesm2015 → fesm2022}/covalent-echarts-tooltip.mjs.map +1 -1
  74. package/{fesm2020 → fesm2022}/covalent-echarts-tree.mjs +34 -12
  75. package/{fesm2015 → fesm2022}/covalent-echarts-tree.mjs.map +1 -1
  76. package/{fesm2020 → fesm2022}/covalent-echarts-treemap.mjs +46 -13
  77. package/fesm2022/covalent-echarts-treemap.mjs.map +1 -0
  78. package/{fesm2020 → fesm2022}/covalent-echarts-wordcloud.mjs +26 -12
  79. package/fesm2022/covalent-echarts-wordcloud.mjs.map +1 -0
  80. package/graph/graph.component.d.ts +1 -1
  81. package/histogram/histogram.component.d.ts +1 -1
  82. package/line/line.component.d.ts +1 -1
  83. package/map/map.component.d.ts +1 -1
  84. package/package.json +57 -96
  85. package/pie/pie.component.d.ts +1 -1
  86. package/regression/regression.component.d.ts +1 -1
  87. package/sankey/sankey.component.d.ts +1 -1
  88. package/scatter/scatter.component.d.ts +1 -1
  89. package/toolbox/toolbox.component.d.ts +1 -1
  90. package/tooltip/series-tooltip.component.d.ts +1 -1
  91. package/tooltip/tooltip.component.d.ts +1 -1
  92. package/tree/tree.component.d.ts +1 -1
  93. package/treemap/treemap.component.d.ts +2 -2
  94. package/wordcloud/wordcloud.component.d.ts +1 -1
  95. package/base/src/axis/README.md +0 -58
  96. package/base/src/dataset/README.md +0 -80
  97. package/esm2020/bar/bar.component.mjs +0 -135
  98. package/esm2020/base/axis/axis.component.mjs +0 -127
  99. package/esm2020/base/axis/x-axis.component.mjs +0 -55
  100. package/esm2020/base/axis/y-axis.component.mjs +0 -55
  101. package/esm2020/base/chart-options.service.mjs +0 -65
  102. package/esm2020/base/chart.component.mjs +0 -195
  103. package/esm2020/base/dataset/dataset.component.mjs +0 -52
  104. package/esm2020/base/series/series.component.mjs +0 -91
  105. package/esm2020/clustering/clustering.component.mjs +0 -233
  106. package/esm2020/graph/graph.component.mjs +0 -185
  107. package/esm2020/histogram/histogram.component.mjs +0 -125
  108. package/esm2020/line/line.component.mjs +0 -159
  109. package/esm2020/map/map.component.mjs +0 -132
  110. package/esm2020/pie/pie.component.mjs +0 -127
  111. package/esm2020/regression/regression.component.mjs +0 -137
  112. package/esm2020/sankey/sankey.component.mjs +0 -117
  113. package/esm2020/scatter/scatter.component.mjs +0 -144
  114. package/esm2020/toolbox/toolbox.component.mjs +0 -135
  115. package/esm2020/tooltip/series-tooltip.component.mjs +0 -102
  116. package/esm2020/tooltip/tooltip.component.mjs +0 -156
  117. package/esm2020/tree/tree.component.mjs +0 -117
  118. package/esm2020/treemap/treemap.component.mjs +0 -149
  119. package/esm2020/wordcloud/wordcloud.component.mjs +0 -92
  120. package/fesm2015/covalent-echarts-bar.mjs.map +0 -1
  121. package/fesm2015/covalent-echarts-base.mjs +0 -4931
  122. package/fesm2015/covalent-echarts-clustering.mjs.map +0 -1
  123. package/fesm2015/covalent-echarts-graph.mjs +0 -210
  124. package/fesm2015/covalent-echarts-histogram.mjs +0 -151
  125. package/fesm2015/covalent-echarts-histogram.mjs.map +0 -1
  126. package/fesm2015/covalent-echarts-line.mjs +0 -182
  127. package/fesm2015/covalent-echarts-line.mjs.map +0 -1
  128. package/fesm2015/covalent-echarts-map.mjs.map +0 -1
  129. package/fesm2015/covalent-echarts-pie.mjs +0 -150
  130. package/fesm2015/covalent-echarts-pie.mjs.map +0 -1
  131. package/fesm2015/covalent-echarts-regression.mjs +0 -163
  132. package/fesm2015/covalent-echarts-regression.mjs.map +0 -1
  133. package/fesm2015/covalent-echarts-sankey.mjs.map +0 -1
  134. package/fesm2015/covalent-echarts-scatter.mjs.map +0 -1
  135. package/fesm2015/covalent-echarts-toolbox.mjs +0 -158
  136. package/fesm2015/covalent-echarts-toolbox.mjs.map +0 -1
  137. package/fesm2015/covalent-echarts-tooltip.mjs +0 -283
  138. package/fesm2015/covalent-echarts-tree.mjs +0 -140
  139. package/fesm2015/covalent-echarts-treemap.mjs +0 -174
  140. package/fesm2015/covalent-echarts-treemap.mjs.map +0 -1
  141. package/fesm2015/covalent-echarts-wordcloud.mjs +0 -117
  142. package/fesm2015/covalent-echarts-wordcloud.mjs.map +0 -1
  143. package/fesm2020/covalent-echarts-bar.mjs +0 -158
  144. package/fesm2020/covalent-echarts-bar.mjs.map +0 -1
  145. package/fesm2020/covalent-echarts-base.mjs.map +0 -1
  146. package/fesm2020/covalent-echarts-clustering.mjs +0 -258
  147. package/fesm2020/covalent-echarts-graph.mjs.map +0 -1
  148. package/fesm2020/covalent-echarts-line.mjs.map +0 -1
  149. package/fesm2020/covalent-echarts-map.mjs +0 -155
  150. package/fesm2020/covalent-echarts-pie.mjs.map +0 -1
  151. package/fesm2020/covalent-echarts-regression.mjs.map +0 -1
  152. package/fesm2020/covalent-echarts-sankey.mjs +0 -142
  153. package/fesm2020/covalent-echarts-sankey.mjs.map +0 -1
  154. package/fesm2020/covalent-echarts-scatter.mjs +0 -169
  155. package/fesm2020/covalent-echarts-scatter.mjs.map +0 -1
  156. package/fesm2020/covalent-echarts-tooltip.mjs.map +0 -1
  157. package/fesm2020/covalent-echarts-tree.mjs.map +0 -1
  158. package/fesm2020/covalent-echarts-treemap.mjs.map +0 -1
  159. package/fesm2020/covalent-echarts-wordcloud.mjs.map +0 -1
  160. package/fesm2020/covalent-echarts.mjs +0 -4
  161. package/fesm2020/covalent-echarts.mjs.map +0 -1
  162. /package/{esm2020 → esm2022}/bar/covalent-echarts-bar.mjs +0 -0
  163. /package/{esm2020 → esm2022}/bar/public_api.mjs +0 -0
  164. /package/{esm2020 → esm2022}/base/axis/axis.interface.mjs +0 -0
  165. /package/{esm2020 → esm2022}/base/base.types.mjs +0 -0
  166. /package/{esm2020 → esm2022}/base/covalent-echarts-base.mjs +0 -0
  167. /package/{esm2020 → esm2022}/base/public_api.mjs +0 -0
  168. /package/{esm2020 → esm2022}/base/series/series.interface.mjs +0 -0
  169. /package/{esm2020 → esm2022}/base/themes/aqua-splash.mjs +0 -0
  170. /package/{esm2020 → esm2022}/base/themes/california-coast.mjs +0 -0
  171. /package/{esm2020 → esm2022}/base/themes/hawaiian-sunrise.mjs +0 -0
  172. /package/{esm2020 → esm2022}/base/themes/passion-flower.mjs +0 -0
  173. /package/{esm2020 → esm2022}/base/themes/razzleberry-pie.mjs +0 -0
  174. /package/{esm2020 → esm2022}/base/themes/teradata-classic.mjs +0 -0
  175. /package/{esm2020 → esm2022}/base/themes/teradata-default.mjs +0 -0
  176. /package/{esm2020 → esm2022}/base/themes/urban-sunrise.mjs +0 -0
  177. /package/{esm2020 → esm2022}/base/themes/volcanic-eruption.mjs +0 -0
  178. /package/{esm2020 → esm2022}/base/utils/assign-defined.mjs +0 -0
  179. /package/{esm2020 → esm2022}/base/utils/echarts.mjs +0 -0
  180. /package/{esm2020 → esm2022}/base/utils/index.mjs +0 -0
  181. /package/{esm2020 → esm2022}/clustering/covalent-echarts-clustering.mjs +0 -0
  182. /package/{esm2020 → esm2022}/clustering/public_api.mjs +0 -0
  183. /package/{esm2020 → esm2022}/covalent-echarts.mjs +0 -0
  184. /package/{esm2020 → esm2022}/graph/covalent-echarts-graph.mjs +0 -0
  185. /package/{esm2020 → esm2022}/graph/public_api.mjs +0 -0
  186. /package/{esm2020 → esm2022}/histogram/covalent-echarts-histogram.mjs +0 -0
  187. /package/{esm2020 → esm2022}/histogram/public_api.mjs +0 -0
  188. /package/{esm2020 → esm2022}/line/covalent-echarts-line.mjs +0 -0
  189. /package/{esm2020 → esm2022}/line/public_api.mjs +0 -0
  190. /package/{esm2020 → esm2022}/map/covalent-echarts-map.mjs +0 -0
  191. /package/{esm2020 → esm2022}/map/public_api.mjs +0 -0
  192. /package/{esm2020 → esm2022}/pie/covalent-echarts-pie.mjs +0 -0
  193. /package/{esm2020 → esm2022}/pie/public_api.mjs +0 -0
  194. /package/{esm2020 → esm2022}/public_api.mjs +0 -0
  195. /package/{esm2020 → esm2022}/regression/covalent-echarts-regression.mjs +0 -0
  196. /package/{esm2020 → esm2022}/regression/public_api.mjs +0 -0
  197. /package/{esm2020 → esm2022}/sankey/covalent-echarts-sankey.mjs +0 -0
  198. /package/{esm2020 → esm2022}/sankey/public_api.mjs +0 -0
  199. /package/{esm2020 → esm2022}/scatter/covalent-echarts-scatter.mjs +0 -0
  200. /package/{esm2020 → esm2022}/scatter/public_api.mjs +0 -0
  201. /package/{esm2020 → esm2022}/toolbox/covalent-echarts-toolbox.mjs +0 -0
  202. /package/{esm2020 → esm2022}/toolbox/public_api.mjs +0 -0
  203. /package/{esm2020 → esm2022}/tooltip/covalent-echarts-tooltip.mjs +0 -0
  204. /package/{esm2020 → esm2022}/tooltip/public_api.mjs +0 -0
  205. /package/{esm2020 → esm2022}/tree/covalent-echarts-tree.mjs +0 -0
  206. /package/{esm2020 → esm2022}/tree/public_api.mjs +0 -0
  207. /package/{esm2020 → esm2022}/treemap/covalent-echarts-treemap.mjs +0 -0
  208. /package/{esm2020 → esm2022}/treemap/public_api.mjs +0 -0
  209. /package/{esm2020 → esm2022}/wordcloud/covalent-echarts-wordcloud.mjs +0 -0
  210. /package/{esm2020 → esm2022}/wordcloud/public_api.mjs +0 -0
  211. /package/{fesm2015 → fesm2022}/covalent-echarts.mjs +0 -0
  212. /package/{fesm2015 → fesm2022}/covalent-echarts.mjs.map +0 -0
@@ -1,283 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { Directive, TemplateRef, Component, ChangeDetectionStrategy, Input, ContentChild, ViewChild, NgModule } from '@angular/core';
3
- import * as i2 from '@angular/common';
4
- import { CommonModule } from '@angular/common';
5
- import * as i1 from '@covalent/echarts/base';
6
- import { assignDefined } from '@covalent/echarts/base';
7
-
8
- class TdTooltipContext {
9
- }
10
- class TdChartTooltipFormatterDirective {
11
- }
12
- TdChartTooltipFormatterDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: TdChartTooltipFormatterDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
13
- TdChartTooltipFormatterDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.5", type: TdChartTooltipFormatterDirective, selector: "ng-template[tdTooltipFormatter]", ngImport: i0 });
14
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: TdChartTooltipFormatterDirective, decorators: [{
15
- type: Directive,
16
- args: [{
17
- selector: 'ng-template[tdTooltipFormatter]',
18
- }]
19
- }] });
20
- class TdChartTooltipComponent {
21
- constructor(_changeDetectorRef, _elementRef, _optionsService) {
22
- this._changeDetectorRef = _changeDetectorRef;
23
- this._elementRef = _elementRef;
24
- this._optionsService = _optionsService;
25
- this._state = {};
26
- this._context = new TdTooltipContext();
27
- this.config = {};
28
- this.show = true;
29
- this.trigger = 'axis';
30
- this.showContent = true;
31
- this.alwaysShowContent = false;
32
- this.triggerOn = 'mousemove|click';
33
- this.showDelay = 0;
34
- this.hideDelay = 0;
35
- this.enterable = false;
36
- this.confine = false;
37
- this.transitionDuration = 0.5;
38
- this.backgroundColor = 'rgba(50,50,50,0.7)'; // series
39
- this.borderColor = '#333'; // series
40
- this.borderWidth = 0; // series
41
- this.padding = 5; // series
42
- this.textStyle = {
43
- // series
44
- color: '#FFF',
45
- };
46
- }
47
- ngOnChanges() {
48
- this._setOptions();
49
- }
50
- ngOnDestroy() {
51
- this._removeOption();
52
- }
53
- _setOptions() {
54
- const config = assignDefined(this._state, {
55
- show: this.show,
56
- trigger: this.trigger,
57
- axisPointer: this.axisPointer,
58
- showContent: this.showContent,
59
- alwaysShowContent: this.alwaysShowContent,
60
- triggerOn: this.triggerOn,
61
- showDelay: this.showDelay,
62
- hideDelay: this.hideDelay,
63
- enterable: this.enterable,
64
- confine: this.confine,
65
- transitionDuration: this.transitionDuration,
66
- position: this.position,
67
- formatter: this.formatter
68
- ? this.formatter
69
- : this.formatterTemplate
70
- ? this._formatter()
71
- : undefined,
72
- backgroundColor: this.backgroundColor,
73
- borderColor: this.borderColor,
74
- borderWidth: this.borderWidth,
75
- padding: this.padding,
76
- textStyle: this.textStyle,
77
- extraCssText: this.extraCssText,
78
- }, this.config ? this.config : {});
79
- // set tooltip configuration in parent chart and render new configurations
80
- this._optionsService.setOption('tooltip', config);
81
- }
82
- _removeOption() {
83
- this._optionsService.clearOption('tooltip');
84
- }
85
- _formatter() {
86
- return (params, ticket, callback) => {
87
- this._context = {
88
- $implicit: params,
89
- ticket,
90
- };
91
- // timeout set since we need to set the HTML at the end of the angular lifecycle when
92
- // the tooltip delay is more than 0
93
- setTimeout(() => {
94
- callback(ticket, this._elementRef.nativeElement.innerHTML);
95
- });
96
- this._changeDetectorRef.markForCheck();
97
- return this._elementRef.nativeElement.innerHTML;
98
- };
99
- }
100
- }
101
- TdChartTooltipComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: TdChartTooltipComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i1.TdChartOptionsService }], target: i0.ɵɵFactoryTarget.Component });
102
- TdChartTooltipComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.5", type: TdChartTooltipComponent, selector: "td-chart-tooltip", inputs: { config: "config", show: "show", trigger: "trigger", axisPointer: "axisPointer", showContent: "showContent", alwaysShowContent: "alwaysShowContent", triggerOn: "triggerOn", showDelay: "showDelay", hideDelay: "hideDelay", enterable: "enterable", renderMode: "renderMode", confine: "confine", transitionDuration: "transitionDuration", position: "position", formatter: "formatter", backgroundColor: "backgroundColor", borderColor: "borderColor", borderWidth: "borderWidth", padding: "padding", textStyle: "textStyle", extraCssText: "extraCssText" }, queries: [{ propertyName: "formatterTemplate", first: true, predicate: TdChartTooltipFormatterDirective, descendants: true, read: TemplateRef, static: true }], viewQueries: [{ propertyName: "fullTemplate", first: true, predicate: ["tooltipContent"], descendants: true, static: true }], usesOnChanges: true, ngImport: i0, template: "<ng-template\n #tooltipContent\n [ngTemplateOutlet]=\"formatterTemplate\"\n [ngTemplateOutletContext]=\"_context\"\n></ng-template>\n", dependencies: [{ kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
103
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: TdChartTooltipComponent, decorators: [{
104
- type: Component,
105
- args: [{ selector: 'td-chart-tooltip', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-template\n #tooltipContent\n [ngTemplateOutlet]=\"formatterTemplate\"\n [ngTemplateOutletContext]=\"_context\"\n></ng-template>\n" }]
106
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i1.TdChartOptionsService }]; }, propDecorators: { config: [{
107
- type: Input
108
- }], show: [{
109
- type: Input
110
- }], trigger: [{
111
- type: Input
112
- }], axisPointer: [{
113
- type: Input
114
- }], showContent: [{
115
- type: Input
116
- }], alwaysShowContent: [{
117
- type: Input
118
- }], triggerOn: [{
119
- type: Input
120
- }], showDelay: [{
121
- type: Input
122
- }], hideDelay: [{
123
- type: Input
124
- }], enterable: [{
125
- type: Input
126
- }], renderMode: [{
127
- type: Input
128
- }], confine: [{
129
- type: Input
130
- }], transitionDuration: [{
131
- type: Input
132
- }], position: [{
133
- type: Input
134
- }], formatter: [{
135
- type: Input
136
- }], backgroundColor: [{
137
- type: Input
138
- }], borderColor: [{
139
- type: Input
140
- }], borderWidth: [{
141
- type: Input
142
- }], padding: [{
143
- type: Input
144
- }], textStyle: [{
145
- type: Input
146
- }], extraCssText: [{
147
- type: Input
148
- }], formatterTemplate: [{
149
- type: ContentChild,
150
- args: [TdChartTooltipFormatterDirective, {
151
- read: TemplateRef,
152
- static: true,
153
- }]
154
- }], fullTemplate: [{
155
- type: ViewChild,
156
- args: ['tooltipContent', { static: true }]
157
- }] } });
158
-
159
- class TdSeriesTooltipComponent {
160
- constructor(_changeDetectorRef, _elementRef, _seriesComponent) {
161
- this._changeDetectorRef = _changeDetectorRef;
162
- this._elementRef = _elementRef;
163
- this._seriesComponent = _seriesComponent;
164
- this._state = {};
165
- this._context = new TdTooltipContext();
166
- this.backgroundColor = 'rgba(50,50,50,0.7)';
167
- this.borderColor = '#333';
168
- this.borderWidth = 0;
169
- this.padding = 5;
170
- this.textStyle = {
171
- color: '#FFF',
172
- };
173
- }
174
- ngOnChanges() {
175
- this._setOptions();
176
- }
177
- ngOnDestroy() {
178
- this._removeOption();
179
- }
180
- _setOptions() {
181
- const config = assignDefined(this._state, {
182
- position: this.position,
183
- backgroundColor: this.backgroundColor,
184
- borderColor: this.borderColor,
185
- borderWidth: this.borderWidth,
186
- padding: this.padding,
187
- textStyle: this.textStyle,
188
- extraCssText: this.extraCssText,
189
- formatter: this.formatter
190
- ? this.formatter
191
- : this.formatterTemplate
192
- ? this._formatter()
193
- : undefined,
194
- }, this.config ? this.config : {});
195
- // set series tooltip configuration in parent chart and render new configurations
196
- this._seriesComponent.setStateOption('tooltip', config);
197
- }
198
- /**
199
- * Formatter for tooltip
200
- *
201
- */
202
- _formatter() {
203
- return (params, ticket, callback) => {
204
- this._context = {
205
- $implicit: params,
206
- ticket,
207
- };
208
- // timeout set since we need to set the HTML at the end of the angular lifecycle when
209
- // the tooltip delay is more than 0
210
- setTimeout(() => {
211
- callback(ticket, this._elementRef.nativeElement.innerHTML);
212
- });
213
- this._changeDetectorRef.markForCheck();
214
- return this._elementRef.nativeElement.innerHTML;
215
- };
216
- }
217
- _removeOption() {
218
- this._seriesComponent.removeStateOption('tooltip');
219
- }
220
- }
221
- TdSeriesTooltipComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: TdSeriesTooltipComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i1.TdSeriesDirective }], target: i0.ɵɵFactoryTarget.Component });
222
- TdSeriesTooltipComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.5", type: TdSeriesTooltipComponent, selector: "td-chart-series-tooltip", inputs: { config: "config", formatter: "formatter", position: "position", backgroundColor: "backgroundColor", borderColor: "borderColor", borderWidth: "borderWidth", padding: "padding", textStyle: "textStyle", extraCssText: "extraCssText" }, queries: [{ propertyName: "formatterTemplate", first: true, predicate: TdChartTooltipFormatterDirective, descendants: true, read: TemplateRef, static: true }], viewQueries: [{ propertyName: "fullTemplate", first: true, predicate: ["tooltipContent"], descendants: true, static: true }], usesOnChanges: true, ngImport: i0, template: "<ng-template\n #tooltipContent\n [ngTemplateOutlet]=\"formatterTemplate\"\n [ngTemplateOutletContext]=\"_context\"\n></ng-template>\n", dependencies: [{ kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
223
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: TdSeriesTooltipComponent, decorators: [{
224
- type: Component,
225
- args: [{ selector: 'td-chart-series-tooltip', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-template\n #tooltipContent\n [ngTemplateOutlet]=\"formatterTemplate\"\n [ngTemplateOutletContext]=\"_context\"\n></ng-template>\n" }]
226
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i1.TdSeriesDirective }]; }, propDecorators: { config: [{
227
- type: Input
228
- }], formatter: [{
229
- type: Input
230
- }], position: [{
231
- type: Input
232
- }], backgroundColor: [{
233
- type: Input
234
- }], borderColor: [{
235
- type: Input
236
- }], borderWidth: [{
237
- type: Input
238
- }], padding: [{
239
- type: Input
240
- }], textStyle: [{
241
- type: Input
242
- }], extraCssText: [{
243
- type: Input
244
- }], formatterTemplate: [{
245
- type: ContentChild,
246
- args: [TdChartTooltipFormatterDirective, {
247
- read: TemplateRef,
248
- static: true,
249
- }]
250
- }], fullTemplate: [{
251
- type: ViewChild,
252
- args: ['tooltipContent', { static: true }]
253
- }] } });
254
-
255
- const TOOLTIP_MODULE_COMPONENTS = [
256
- TdChartTooltipComponent,
257
- TdChartTooltipFormatterDirective,
258
- TdSeriesTooltipComponent,
259
- ];
260
- class CovalentTooltipEchartsModule {
261
- }
262
- CovalentTooltipEchartsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: CovalentTooltipEchartsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
263
- CovalentTooltipEchartsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.5", ngImport: i0, type: CovalentTooltipEchartsModule, declarations: [TdChartTooltipComponent,
264
- TdChartTooltipFormatterDirective,
265
- TdSeriesTooltipComponent], imports: [CommonModule], exports: [TdChartTooltipComponent,
266
- TdChartTooltipFormatterDirective,
267
- TdSeriesTooltipComponent] });
268
- CovalentTooltipEchartsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: CovalentTooltipEchartsModule, imports: [CommonModule] });
269
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: CovalentTooltipEchartsModule, decorators: [{
270
- type: NgModule,
271
- args: [{
272
- imports: [CommonModule],
273
- declarations: [TOOLTIP_MODULE_COMPONENTS],
274
- exports: [TOOLTIP_MODULE_COMPONENTS],
275
- }]
276
- }] });
277
-
278
- /**
279
- * Generated bundle index. Do not edit.
280
- */
281
-
282
- export { CovalentTooltipEchartsModule, TOOLTIP_MODULE_COMPONENTS, TdChartTooltipComponent, TdChartTooltipFormatterDirective, TdSeriesTooltipComponent, TdTooltipContext };
283
- //# sourceMappingURL=covalent-echarts-tooltip.mjs.map
@@ -1,140 +0,0 @@
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 TdChartSeriesTreeComponent extends TdSeriesDirective {
8
- constructor(_optionsService) {
9
- super('tree', _optionsService);
10
- }
11
- getConfig() {
12
- return {
13
- zlevel: this.zlevel,
14
- z: this.z,
15
- left: this.left,
16
- top: this.top,
17
- right: this.right,
18
- bottom: this.bottom,
19
- width: this.width,
20
- height: this.height,
21
- layout: this.layout,
22
- orient: this.orient,
23
- symbol: this.symbol,
24
- symbolSize: this.symbolSize,
25
- symbolRotate: this.symbolRotate,
26
- symbolKeepAspect: this.symbolKeepAspect,
27
- roam: this.roam,
28
- expandAndCollapse: this.expandAndCollapse,
29
- initialTreeDepth: this.initialTreeDepth,
30
- itemStyle: this.itemStyle,
31
- label: this.label,
32
- lineStyle: this.lineStyle,
33
- leaves: this.leaves,
34
- emphasis: this.emphasis,
35
- };
36
- }
37
- }
38
- TdChartSeriesTreeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: TdChartSeriesTreeComponent, deps: [{ token: i1.TdChartOptionsService }], target: i0.ɵɵFactoryTarget.Component });
39
- TdChartSeriesTreeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.5", type: TdChartSeriesTreeComponent, selector: "td-chart-series[td-tree]", 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", zlevel: "zlevel", z: "z", left: "left", top: "top", right: "right", bottom: "bottom", width: "width", height: "height", layout: "layout", orient: "orient", symbol: "symbol", symbolSize: "symbolSize", symbolRotate: "symbolRotate", symbolKeepAspect: "symbolKeepAspect", roam: "roam", expandAndCollapse: "expandAndCollapse", initialTreeDepth: "initialTreeDepth", itemStyle: "itemStyle", label: "label", lineStyle: "lineStyle", leaves: "leaves", emphasis: "emphasis" }, providers: [
40
- {
41
- provide: TdSeriesDirective,
42
- useExisting: forwardRef(() => TdChartSeriesTreeComponent),
43
- },
44
- ], usesInheritance: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
45
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: TdChartSeriesTreeComponent, decorators: [{
46
- type: Component,
47
- args: [{
48
- selector: 'td-chart-series[td-tree]',
49
- template: '',
50
- changeDetection: ChangeDetectionStrategy.OnPush,
51
- inputs: [
52
- 'config',
53
- 'id',
54
- 'name',
55
- 'color',
56
- 'data',
57
- 'animation',
58
- 'animationThreshold',
59
- 'animationDuration',
60
- 'animationEasing',
61
- 'animationDelay',
62
- 'animationDurationUpdate',
63
- 'animationEasingUpdate',
64
- 'animationDelayUpdate',
65
- 'tooltip',
66
- ],
67
- providers: [
68
- {
69
- provide: TdSeriesDirective,
70
- useExisting: forwardRef(() => TdChartSeriesTreeComponent),
71
- },
72
- ],
73
- }]
74
- }], ctorParameters: function () { return [{ type: i1.TdChartOptionsService }]; }, propDecorators: { zlevel: [{
75
- type: Input
76
- }], z: [{
77
- type: Input
78
- }], left: [{
79
- type: Input
80
- }], top: [{
81
- type: Input
82
- }], right: [{
83
- type: Input
84
- }], bottom: [{
85
- type: Input
86
- }], width: [{
87
- type: Input
88
- }], height: [{
89
- type: Input
90
- }], layout: [{
91
- type: Input
92
- }], orient: [{
93
- type: Input
94
- }], symbol: [{
95
- type: Input
96
- }], symbolSize: [{
97
- type: Input
98
- }], symbolRotate: [{
99
- type: Input
100
- }], symbolKeepAspect: [{
101
- type: Input
102
- }], roam: [{
103
- type: Input
104
- }], expandAndCollapse: [{
105
- type: Input
106
- }], initialTreeDepth: [{
107
- type: Input
108
- }], itemStyle: [{
109
- type: Input
110
- }], label: [{
111
- type: Input
112
- }], lineStyle: [{
113
- type: Input
114
- }], leaves: [{
115
- type: Input
116
- }], emphasis: [{
117
- type: Input
118
- }] } });
119
-
120
- const TREE_MODULE_COMPONENTS = [TdChartSeriesTreeComponent];
121
- class CovalentTreeEchartsModule {
122
- }
123
- CovalentTreeEchartsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: CovalentTreeEchartsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
124
- CovalentTreeEchartsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.5", ngImport: i0, type: CovalentTreeEchartsModule, declarations: [TdChartSeriesTreeComponent], imports: [CommonModule], exports: [TdChartSeriesTreeComponent] });
125
- CovalentTreeEchartsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: CovalentTreeEchartsModule, imports: [CommonModule] });
126
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: CovalentTreeEchartsModule, decorators: [{
127
- type: NgModule,
128
- args: [{
129
- imports: [CommonModule],
130
- declarations: [TREE_MODULE_COMPONENTS],
131
- exports: [TREE_MODULE_COMPONENTS],
132
- }]
133
- }] });
134
-
135
- /**
136
- * Generated bundle index. Do not edit.
137
- */
138
-
139
- export { CovalentTreeEchartsModule, TREE_MODULE_COMPONENTS, TdChartSeriesTreeComponent };
140
- //# sourceMappingURL=covalent-echarts-tree.mjs.map
@@ -1,174 +0,0 @@
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 TdChartSeriesTreemapComponent extends TdSeriesDirective {
8
- constructor(_optionsService) {
9
- super('treemap', _optionsService);
10
- this.config = {};
11
- }
12
- getConfig() {
13
- return {
14
- zlevel: this.zlevel,
15
- z: this.z,
16
- left: this.left,
17
- top: this.top,
18
- right: this.right,
19
- bottom: this.bottom,
20
- width: this.width,
21
- height: this.height,
22
- squareRatio: this.squareRatio,
23
- leafDepth: this.leafDepth,
24
- drillDownIcon: this.drillDownIcon,
25
- roam: this.roam,
26
- nodeClick: this.nodeClick,
27
- zoomToNodeRatio: this.zoomToNodeRatio,
28
- levels: this.levels,
29
- silent: this.silent,
30
- visualDimension: this.visualDimension,
31
- visualMin: this.visualMin,
32
- visualMax: this.visualMax,
33
- colorAlpha: this.colorAlpha,
34
- colorSaturation: this.colorSaturation,
35
- colorMappingBy: this.colorMappingBy,
36
- visibleMin: this.visibleMin,
37
- childrenVisibleMin: this.childrenVisibleMin,
38
- itemStyle: this.itemStyle,
39
- label: this.label,
40
- upperLabel: this.upperLabel,
41
- breadcrumb: this.breadcrumb,
42
- emphasis: this.emphasis,
43
- };
44
- }
45
- }
46
- TdChartSeriesTreemapComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: TdChartSeriesTreemapComponent, deps: [{ token: i1.TdChartOptionsService }], target: i0.ɵɵFactoryTarget.Component });
47
- TdChartSeriesTreemapComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.5", type: TdChartSeriesTreemapComponent, selector: "td-chart-series[td-treemap]", 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", zlevel: "zlevel", z: "z", left: "left", top: "top", right: "right", bottom: "bottom", width: "width", height: "height", squareRatio: "squareRatio", leafDepth: "leafDepth", drillDownIcon: "drillDownIcon", roam: "roam", nodeClick: "nodeClick", zoomToNodeRatio: "zoomToNodeRatio", levels: "levels", silent: "silent", visualDimension: "visualDimension", visualMin: "visualMin", visualMax: "visualMax", colorAlpha: "colorAlpha", colorSaturation: "colorSaturation", colorMappingBy: "colorMappingBy", visibleMin: "visibleMin", childrenVisibleMin: "childrenVisibleMin", itemStyle: "itemStyle", label: "label", upperLabel: "upperLabel", breadcrumb: "breadcrumb", emphasis: "emphasis" }, providers: [
48
- {
49
- provide: TdSeriesDirective,
50
- useExisting: forwardRef(() => TdChartSeriesTreemapComponent),
51
- },
52
- ], usesInheritance: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
53
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: TdChartSeriesTreemapComponent, decorators: [{
54
- type: Component,
55
- args: [{
56
- selector: 'td-chart-series[td-treemap]',
57
- template: '',
58
- changeDetection: ChangeDetectionStrategy.OnPush,
59
- inputs: [
60
- 'config',
61
- 'id',
62
- 'name',
63
- 'color',
64
- 'data',
65
- 'animation',
66
- 'animationThreshold',
67
- 'animationDuration',
68
- 'animationEasing',
69
- 'animationDelay',
70
- 'animationDurationUpdate',
71
- 'animationEasingUpdate',
72
- 'animationDelayUpdate',
73
- 'tooltip',
74
- ],
75
- providers: [
76
- {
77
- provide: TdSeriesDirective,
78
- useExisting: forwardRef(() => TdChartSeriesTreemapComponent),
79
- },
80
- ],
81
- }]
82
- }], ctorParameters: function () { return [{ type: i1.TdChartOptionsService }]; }, propDecorators: { config: [{
83
- type: Input
84
- }], id: [{
85
- type: Input
86
- }], name: [{
87
- type: Input
88
- }], data: [{
89
- type: Input
90
- }], zlevel: [{
91
- type: Input
92
- }], z: [{
93
- type: Input
94
- }], left: [{
95
- type: Input
96
- }], top: [{
97
- type: Input
98
- }], right: [{
99
- type: Input
100
- }], bottom: [{
101
- type: Input
102
- }], width: [{
103
- type: Input
104
- }], height: [{
105
- type: Input
106
- }], squareRatio: [{
107
- type: Input
108
- }], leafDepth: [{
109
- type: Input
110
- }], drillDownIcon: [{
111
- type: Input
112
- }], roam: [{
113
- type: Input
114
- }], nodeClick: [{
115
- type: Input
116
- }], zoomToNodeRatio: [{
117
- type: Input
118
- }], levels: [{
119
- type: Input
120
- }], silent: [{
121
- type: Input
122
- }], visualDimension: [{
123
- type: Input
124
- }], visualMin: [{
125
- type: Input
126
- }], visualMax: [{
127
- type: Input
128
- }], colorAlpha: [{
129
- type: Input
130
- }], colorSaturation: [{
131
- type: Input
132
- }], colorMappingBy: [{
133
- type: Input
134
- }], visibleMin: [{
135
- type: Input
136
- }], childrenVisibleMin: [{
137
- type: Input
138
- }], itemStyle: [{
139
- type: Input
140
- }], label: [{
141
- type: Input
142
- }], upperLabel: [{
143
- type: Input
144
- }], breadcrumb: [{
145
- type: Input
146
- }], emphasis: [{
147
- type: Input
148
- }], tooltip: [{
149
- type: Input
150
- }] } });
151
-
152
- const TREEMAP_MODULE_COMPONENTS = [
153
- TdChartSeriesTreemapComponent,
154
- ];
155
- class CovalentTreemapEchartsModule {
156
- }
157
- CovalentTreemapEchartsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: CovalentTreemapEchartsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
158
- CovalentTreemapEchartsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.5", ngImport: i0, type: CovalentTreemapEchartsModule, declarations: [TdChartSeriesTreemapComponent], imports: [CommonModule], exports: [TdChartSeriesTreemapComponent] });
159
- CovalentTreemapEchartsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: CovalentTreemapEchartsModule, imports: [CommonModule] });
160
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: CovalentTreemapEchartsModule, decorators: [{
161
- type: NgModule,
162
- args: [{
163
- imports: [CommonModule],
164
- declarations: [TREEMAP_MODULE_COMPONENTS],
165
- exports: [TREEMAP_MODULE_COMPONENTS],
166
- }]
167
- }] });
168
-
169
- /**
170
- * Generated bundle index. Do not edit.
171
- */
172
-
173
- export { CovalentTreemapEchartsModule, TREEMAP_MODULE_COMPONENTS, TdChartSeriesTreemapComponent };
174
- //# sourceMappingURL=covalent-echarts-treemap.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"covalent-echarts-treemap.mjs","sources":["../../../../libs/angular-echarts/treemap/src/treemap.component.ts","../../../../libs/angular-echarts/treemap/src/treemap.module.ts","../../../../libs/angular-echarts/treemap/src/covalent-echarts-treemap.ts"],"sourcesContent":["import {\n Component,\n Input,\n ChangeDetectionStrategy,\n forwardRef,\n} from '@angular/core';\n\nimport {\n TdChartOptionsService,\n ITdItemStyle,\n ITdSeriesTooltip,\n ITdLabel,\n ITdSeries,\n TdSeriesDirective,\n ITdEmphasis,\n ITdShadow,\n} from '@covalent/echarts/base';\n\n/**\n * ECHART OPTION DOCS\n * https://ecomfe.github.io/echarts-examples/public/index.html#chart-type-treemap\n *\n */\n\nexport interface ITdTreemapEmphasisLineStyle extends ITdShadow {\n color?: any;\n width?: number;\n curveness?: number;\n}\n\nexport interface ITdTreemapEmphasis extends ITdEmphasis {\n lineStyle: ITdTreemapEmphasisLineStyle;\n}\n\nexport interface ITdTreemapUpperLabel {\n show?: boolean;\n position?: string | any[];\n distance?: string | number;\n rotate?: string | number;\n offset?: any[];\n formatter?: string;\n color?: any;\n fontStyle?: string;\n fontWeight?: string;\n fontFamily?: string;\n fontSize?: string | number;\n align?: string;\n verticalAlign?: string;\n lineHeight?: string | number;\n backgroundColor?: any;\n borderColor?: string;\n borderWidth?: string | number;\n borderRadius?: string | number;\n padding?: number | any[];\n shadowColor?: string;\n shadowBlur?: string | number;\n shadowOffsetX?: string | number;\n shadowOffsetY?: string | number;\n width?: string | number;\n height?: string | number;\n textBorderColor?: string;\n textBorderWidth?: string | number;\n textShadowColor?: string;\n textShadowBlur?: string | number;\n textShadowOffsetX?: string | number;\n textShadowOffsetY?: string | number;\n rich?: any;\n ellipsis?: any;\n}\n\nexport interface ITdTreemapBreadcrumb {\n show?: boolean;\n left?: string | number;\n top?: string | number;\n right?: string | number;\n bottom?: string | number;\n height?: string | number;\n emptyItemWidth?: string | number;\n itemStyle?: ITdItemStyle;\n emphasis?: ITdTreemapEmphasis;\n}\n\ninterface ITdTreemapSeries extends ITdSeries {\n zlevel?: number;\n z?: number;\n left?: string | number;\n top?: string | number;\n right?: string | number;\n bottom?: string | number;\n width?: string | number;\n height?: string | number;\n squareRatio?: string | number;\n leafDepth?: string | number;\n drillDownIcon?: string;\n roam?: boolean | string;\n nodeClick?: boolean | string;\n zoomToNodeRatio?: string | number;\n levels?: any[];\n silent?: boolean;\n visualDimension?: string | number;\n visualMin?: string | number;\n visualMax?: string | number;\n colorAlpha?: any[];\n colorSaturation?: string | number;\n colorMappingBy?: string;\n visibleMin?: string | number;\n childrenVisibleMin?: string | number;\n itemStyle?: ITdItemStyle;\n label?: ITdLabel;\n upperLabel?: ITdTreemapUpperLabel;\n breadcrumb?: ITdTreemapBreadcrumb;\n emphasis?: ITdTreemapEmphasis;\n data?: any[];\n}\n\n@Component({\n selector: 'td-chart-series[td-treemap]',\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(() => TdChartSeriesTreemapComponent),\n },\n ],\n})\nexport class TdChartSeriesTreemapComponent\n extends TdSeriesDirective\n implements ITdTreemapSeries\n{\n @Input() override config?: any = {};\n @Input() override id?: string;\n @Input() override name?: string;\n @Input() override data?: any;\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() width?: string | number;\n @Input() height?: string | number;\n @Input() squareRatio?: string | number;\n @Input() leafDepth?: string | number;\n @Input() drillDownIcon?: string;\n @Input() roam?: boolean | string;\n @Input() nodeClick?: boolean | string;\n @Input() zoomToNodeRatio?: string | number;\n @Input() levels?: any[];\n @Input() silent?: boolean;\n @Input() visualDimension?: string | number;\n @Input() visualMin?: string | number;\n @Input() visualMax?: string | number;\n @Input() colorAlpha?: any[];\n @Input() colorSaturation?: string | number;\n @Input() colorMappingBy?: string;\n @Input() visibleMin?: string | number;\n @Input() childrenVisibleMin?: string | number;\n @Input() itemStyle?: ITdItemStyle;\n @Input() label?: ITdLabel;\n @Input() upperLabel?: ITdTreemapUpperLabel;\n @Input() breadcrumb?: ITdTreemapBreadcrumb;\n @Input() emphasis?: ITdTreemapEmphasis;\n @Input() override tooltip?: ITdSeriesTooltip;\n\n constructor(_optionsService: TdChartOptionsService) {\n super('treemap', _optionsService);\n }\n\n getConfig(): any {\n return {\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 width: this.width,\n height: this.height,\n squareRatio: this.squareRatio,\n leafDepth: this.leafDepth,\n drillDownIcon: this.drillDownIcon,\n roam: this.roam,\n nodeClick: this.nodeClick,\n zoomToNodeRatio: this.zoomToNodeRatio,\n levels: this.levels,\n silent: this.silent,\n visualDimension: this.visualDimension,\n visualMin: this.visualMin,\n visualMax: this.visualMax,\n colorAlpha: this.colorAlpha,\n colorSaturation: this.colorSaturation,\n colorMappingBy: this.colorMappingBy,\n visibleMin: this.visibleMin,\n childrenVisibleMin: this.childrenVisibleMin,\n itemStyle: this.itemStyle,\n label: this.label,\n upperLabel: this.upperLabel,\n breadcrumb: this.breadcrumb,\n emphasis: this.emphasis,\n };\n }\n}\n","import { NgModule, Type } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nimport { TdChartSeriesTreemapComponent } from './treemap.component';\n\nexport const TREEMAP_MODULE_COMPONENTS: Type<any>[] = [\n TdChartSeriesTreemapComponent,\n];\n\n@NgModule({\n imports: [CommonModule],\n declarations: [TREEMAP_MODULE_COMPONENTS],\n exports: [TREEMAP_MODULE_COMPONENTS],\n})\nexport class CovalentTreemapEchartsModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;AA+IM,MAAO,6BACX,SAAQ,iBAAiB,CAAA;AAsCzB,IAAA,WAAA,CAAY,eAAsC,EAAA;AAChD,QAAA,KAAK,CAAC,SAAS,EAAE,eAAe,CAAC,CAAC;AApClB,QAAA,IAAM,CAAA,MAAA,GAAS,EAAE,CAAC;KAqCnC;IAED,SAAS,GAAA;QACP,OAAO;YACL,MAAM,EAAE,IAAI,CAAC,MAAM;YACnB,CAAC,EAAE,IAAI,CAAC,CAAC;YACT,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,GAAG,EAAE,IAAI,CAAC,GAAG;YACb,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,MAA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