@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
|
@@ -7,9 +7,6 @@ import { TdChartSeriesScatterComponent } from '@covalent/echarts/scatter';
|
|
|
7
7
|
import * as ecStat from 'echarts-stat';
|
|
8
8
|
|
|
9
9
|
class TdChartSeriesRegressionComponent extends TdChartSeriesScatterComponent {
|
|
10
|
-
data;
|
|
11
|
-
regressionType;
|
|
12
|
-
polinomialOrder;
|
|
13
10
|
constructor(_optionsService) {
|
|
14
11
|
super(_optionsService);
|
|
15
12
|
}
|
|
@@ -95,15 +92,15 @@ class TdChartSeriesRegressionComponent extends TdChartSeriesScatterComponent {
|
|
|
95
92
|
this.optionsService.setOption('series', series);
|
|
96
93
|
this.setOptions();
|
|
97
94
|
}
|
|
98
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: TdChartSeriesRegressionComponent, deps: [{ token: i1.TdChartOptionsService }], target: i0.ɵɵFactoryTarget.Component });
|
|
99
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.7", type: TdChartSeriesRegressionComponent, selector: "td-chart-series[td-regression]", 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", regressionType: "regressionType", polinomialOrder: "polinomialOrder" }, providers: [
|
|
100
|
-
{
|
|
101
|
-
provide: TdSeriesDirective,
|
|
102
|
-
useExisting: forwardRef(() => TdChartSeriesRegressionComponent),
|
|
103
|
-
},
|
|
104
|
-
], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
105
95
|
}
|
|
106
|
-
i0.ɵɵ
|
|
96
|
+
TdChartSeriesRegressionComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TdChartSeriesRegressionComponent, deps: [{ token: i1.TdChartOptionsService }], target: i0.ɵɵFactoryTarget.Component });
|
|
97
|
+
TdChartSeriesRegressionComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: TdChartSeriesRegressionComponent, selector: "td-chart-series[td-regression]", 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", regressionType: "regressionType", polinomialOrder: "polinomialOrder" }, providers: [
|
|
98
|
+
{
|
|
99
|
+
provide: TdSeriesDirective,
|
|
100
|
+
useExisting: forwardRef(() => TdChartSeriesRegressionComponent),
|
|
101
|
+
},
|
|
102
|
+
], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
103
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TdChartSeriesRegressionComponent, decorators: [{
|
|
107
104
|
type: Component,
|
|
108
105
|
args: [{
|
|
109
106
|
selector: 'td-chart-series[td-regression]',
|
|
@@ -144,11 +141,11 @@ const REGRESSION_MODULE_COMPONENTS = [
|
|
|
144
141
|
TdChartSeriesRegressionComponent,
|
|
145
142
|
];
|
|
146
143
|
class CovalentRegressionEchartsModule {
|
|
147
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: CovalentRegressionEchartsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
148
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.7", ngImport: i0, type: CovalentRegressionEchartsModule, declarations: [TdChartSeriesRegressionComponent], imports: [CommonModule], exports: [TdChartSeriesRegressionComponent] });
|
|
149
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: CovalentRegressionEchartsModule, imports: [CommonModule] });
|
|
150
144
|
}
|
|
151
|
-
i0.ɵɵ
|
|
145
|
+
CovalentRegressionEchartsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CovalentRegressionEchartsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
146
|
+
CovalentRegressionEchartsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: CovalentRegressionEchartsModule, declarations: [TdChartSeriesRegressionComponent], imports: [CommonModule], exports: [TdChartSeriesRegressionComponent] });
|
|
147
|
+
CovalentRegressionEchartsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CovalentRegressionEchartsModule, imports: [CommonModule] });
|
|
148
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CovalentRegressionEchartsModule, decorators: [{
|
|
152
149
|
type: NgModule,
|
|
153
150
|
args: [{
|
|
154
151
|
imports: [CommonModule],
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"covalent-echarts-regression.mjs","sources":["../../../../libs/angular-echarts/regression/src/regression.component.ts","../../../../libs/angular-echarts/regression/src/regression.module.ts","../../../../libs/angular-echarts/regression/src/covalent-echarts-regression.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 {\n ITdScatterSeries,\n TdChartSeriesScatterComponent,\n} from '@covalent/echarts/scatter';\nimport * as ecStat from 'echarts-stat';\n\nexport type TdRegressionType =\n | 'linear'\n | 'exponential'\n | 'logarithmic'\n | 'polynomial';\n\nexport interface ITdRegressionSeries extends ITdScatterSeries {\n data?: number[][];\n regressionType?: TdRegressionType;\n polinomialOrder?: number;\n}\n\n@Component({\n selector: 'td-chart-series[td-regression]',\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(() => TdChartSeriesRegressionComponent),\n },\n ],\n})\nexport class TdChartSeriesRegressionComponent\n extends TdChartSeriesScatterComponent\n implements ITdRegressionSeries, OnChanges\n{\n @Input() override data?: number[][];\n @Input() regressionType?: TdRegressionType;\n @Input() polinomialOrder?: number;\n\n constructor(_optionsService: TdChartOptionsService) {\n super(_optionsService);\n }\n\n override ngOnChanges(): void {\n this.render();\n }\n\n override getConfig(): any {\n return {\n regressionType: this.regressionType,\n polinomialOrder: this.polinomialOrder,\n coordinateSystem: this.coordinateSystem,\n xAxisIndex: this.xAxisIndex,\n yAxisIndex: this.yAxisIndex,\n polarIndex: this.polarIndex,\n geoIndex: this.geoIndex,\n calendarIndex: this.calendarIndex,\n hoverAnimation: this.hoverAnimation,\n legendHoverLink: this.legendHoverLink,\n symbol: this.symbol,\n symbolSize: this.symbolSize,\n symbolRotate: this.symbolRotate,\n symbolKeepAspect: this.symbolKeepAspect,\n symbolOffset: this.symbolOffset,\n large: this.large,\n largeThreshold: this.largeThreshold,\n cursor: this.cursor,\n label: this.label,\n itemStyle: this.itemStyle,\n emphasis: this.emphasis,\n progressive: this.progressive,\n progressiveThreshold: this.progressiveThreshold,\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 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('scatter', config);\n }\n\n private render() {\n const output: any = this.data;\n const result = ecStat.regression(\n this.regressionType ?? 'linear',\n output,\n this.polinomialOrder ?? 2\n );\n let series = this.optionsService.getOption('series');\n\n if (series) {\n for (const item in series) {\n if (series[item].type === 'line') {\n delete series[item];\n }\n }\n } else {\n series = [];\n }\n\n series.push({\n type: 'line',\n data: result.points,\n tooltip: {},\n showSymbol: false,\n });\n\n this.optionsService.setOption('series', series);\n this.setOptions();\n }\n}\n","import { NgModule, Type } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nimport { TdChartSeriesRegressionComponent } from './regression.component';\n\nexport const REGRESSION_MODULE_COMPONENTS: Type<any>[] = [\n TdChartSeriesRegressionComponent,\n];\n\n@NgModule({\n imports: [CommonModule],\n declarations: [REGRESSION_MODULE_COMPONENTS],\n exports: [REGRESSION_MODULE_COMPONENTS],\n})\nexport class CovalentRegressionEchartsModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;;AA2DM,MAAO,gCACX,SAAQ,6BAA6B,CAAA;AAOrC,IAAA,WAAA,CAAY,eAAsC,EAAA;QAChD,KAAK,CAAC,eAAe,CAAC,CAAC;KACxB;IAEQ,WAAW,GAAA;QAClB,IAAI,CAAC,MAAM,EAAE,CAAC;KACf;IAEQ,SAAS,GAAA;QAChB,OAAO;YACL,cAAc,EAAE,IAAI,CAAC,cAAc;YACnC,eAAe,EAAE,IAAI,CAAC,eAAe;YACrC,gBAAgB,EAAE,IAAI,CAAC,gBAAgB;YACvC,UAAU,EAAE,IAAI,CAAC,UAAU;YAC3B,UAAU,EAAE,IAAI,CAAC,UAAU;YAC3B,UAAU,EAAE,IAAI,CAAC,UAAU;YAC3B,QAAQ,EAAE,IAAI,CAAC,QAAQ;YACvB,aAAa,EAAE,IAAI,CAAC,aAAa;YACjC,cAAc,EAAE,IAAI,CAAC,cAAc;YACnC,eAAe,EAAE,IAAI,CAAC,eAAe;YACrC,MAAM,EAAE,IAAI,CAAC,MAAM;YACnB,UAA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A,CAAA;4FAIX,+BAA+B,EAAA,UAAA,EAAA,CAAA;kBAL3C,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,OAAO,EAAE,CAAC,YAAY,CAAC;oBACvB,YAAY,EAAE,CAAC,4BAA4B,CAAC;oBAC5C,OAAO,EAAE,CAAC,4BAA4B,CAAC;AACxC,iBAAA,CAAA;;;ACbD;;AAEG;;;;"}
|
|
@@ -0,0 +1,142 @@
|
|
|
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 TdChartSeriesSankeyComponent extends TdSeriesDirective {
|
|
8
|
+
constructor(_optionsService) {
|
|
9
|
+
super('sankey', _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
|
+
nodeWidth: this.nodeWidth,
|
|
22
|
+
nodeGap: this.nodeGap,
|
|
23
|
+
layoutIterations: this.layoutIterations,
|
|
24
|
+
orient: this.orient,
|
|
25
|
+
draggable: this.draggable,
|
|
26
|
+
focusNodeAdjacency: this.focusNodeAdjacency,
|
|
27
|
+
label: this.label,
|
|
28
|
+
itemStyle: this.itemStyle,
|
|
29
|
+
lineStyle: this.lineStyle,
|
|
30
|
+
emphasis: this.emphasis,
|
|
31
|
+
nodes: this.nodes,
|
|
32
|
+
links: this.links,
|
|
33
|
+
edges: this.edges,
|
|
34
|
+
silent: this.silent,
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
TdChartSeriesSankeyComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TdChartSeriesSankeyComponent, deps: [{ token: i1.TdChartOptionsService }], target: i0.ɵɵFactoryTarget.Component });
|
|
39
|
+
TdChartSeriesSankeyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: TdChartSeriesSankeyComponent, selector: "td-chart-series[td-sankey]", 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", nodeWidth: "nodeWidth", nodeGap: "nodeGap", layoutIterations: "layoutIterations", orient: "orient", draggable: "draggable", focusNodeAdjacency: "focusNodeAdjacency", label: "label", itemStyle: "itemStyle", lineStyle: "lineStyle", emphasis: "emphasis", nodes: "nodes", links: "links", edges: "edges", silent: "silent" }, providers: [
|
|
40
|
+
{
|
|
41
|
+
provide: TdSeriesDirective,
|
|
42
|
+
useExisting: forwardRef(() => TdChartSeriesSankeyComponent),
|
|
43
|
+
},
|
|
44
|
+
], usesInheritance: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
45
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TdChartSeriesSankeyComponent, decorators: [{
|
|
46
|
+
type: Component,
|
|
47
|
+
args: [{
|
|
48
|
+
selector: 'td-chart-series[td-sankey]',
|
|
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(() => TdChartSeriesSankeyComponent),
|
|
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
|
+
}], nodeWidth: [{
|
|
91
|
+
type: Input
|
|
92
|
+
}], nodeGap: [{
|
|
93
|
+
type: Input
|
|
94
|
+
}], layoutIterations: [{
|
|
95
|
+
type: Input
|
|
96
|
+
}], orient: [{
|
|
97
|
+
type: Input
|
|
98
|
+
}], draggable: [{
|
|
99
|
+
type: Input
|
|
100
|
+
}], focusNodeAdjacency: [{
|
|
101
|
+
type: Input
|
|
102
|
+
}], label: [{
|
|
103
|
+
type: Input
|
|
104
|
+
}], itemStyle: [{
|
|
105
|
+
type: Input
|
|
106
|
+
}], lineStyle: [{
|
|
107
|
+
type: Input
|
|
108
|
+
}], emphasis: [{
|
|
109
|
+
type: Input
|
|
110
|
+
}], nodes: [{
|
|
111
|
+
type: Input
|
|
112
|
+
}], links: [{
|
|
113
|
+
type: Input
|
|
114
|
+
}], edges: [{
|
|
115
|
+
type: Input
|
|
116
|
+
}], silent: [{
|
|
117
|
+
type: Input
|
|
118
|
+
}] } });
|
|
119
|
+
|
|
120
|
+
const SANKEY_MODULE_COMPONENTS = [
|
|
121
|
+
TdChartSeriesSankeyComponent,
|
|
122
|
+
];
|
|
123
|
+
class CovalentSankeyEchartsModule {
|
|
124
|
+
}
|
|
125
|
+
CovalentSankeyEchartsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CovalentSankeyEchartsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
126
|
+
CovalentSankeyEchartsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: CovalentSankeyEchartsModule, declarations: [TdChartSeriesSankeyComponent], imports: [CommonModule], exports: [TdChartSeriesSankeyComponent] });
|
|
127
|
+
CovalentSankeyEchartsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CovalentSankeyEchartsModule, imports: [CommonModule] });
|
|
128
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CovalentSankeyEchartsModule, decorators: [{
|
|
129
|
+
type: NgModule,
|
|
130
|
+
args: [{
|
|
131
|
+
imports: [CommonModule],
|
|
132
|
+
declarations: [SANKEY_MODULE_COMPONENTS],
|
|
133
|
+
exports: [SANKEY_MODULE_COMPONENTS],
|
|
134
|
+
}]
|
|
135
|
+
}] });
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* Generated bundle index. Do not edit.
|
|
139
|
+
*/
|
|
140
|
+
|
|
141
|
+
export { CovalentSankeyEchartsModule, SANKEY_MODULE_COMPONENTS, TdChartSeriesSankeyComponent };
|
|
142
|
+
//# sourceMappingURL=covalent-echarts-sankey.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"covalent-echarts-sankey.mjs","sources":["../../../../libs/angular-echarts/sankey/src/sankey.component.ts","../../../../libs/angular-echarts/sankey/src/sankey.module.ts","../../../../libs/angular-echarts/sankey/src/covalent-echarts-sankey.ts"],"sourcesContent":["import {\n Component,\n Input,\n ChangeDetectionStrategy,\n forwardRef,\n} from '@angular/core';\n\nimport {\n TdChartOptionsService,\n ITdLabel,\n ITdItemStyle,\n ITdEmphasis,\n ITdSeries,\n TdSeriesDirective,\n ITdShadow,\n ITdLineCurveStyle,\n} from '@covalent/echarts/base';\n\nexport type TdSankeyOrient = 'horizontal' | 'vertical';\n\nexport type TdSankeyFocusNodeAdjacency =\n | boolean\n | 'allEdges'\n | 'outEdges'\n | 'inEdges';\n\nexport interface ITdSankeyEmphasisLineStyle extends ITdShadow {\n color?: any;\n opacity?: number;\n curveness?: number;\n}\n\nexport interface ITdSankeyEmphasis extends ITdEmphasis {\n lineStyle: ITdSankeyEmphasisLineStyle;\n}\n\nexport interface ITdSankeySeries 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 nodeWidth?: number;\n nodeGap?: number;\n layoutIterations?: number;\n orient?: TdSankeyOrient;\n draggable?: boolean;\n focusNodeAdjacency?: TdSankeyFocusNodeAdjacency;\n label?: ITdLabel;\n itemStyle?: ITdItemStyle;\n lineStyle?: ITdLineCurveStyle;\n emphasis?: ITdEmphasis;\n data?: any[];\n nodes?: any[];\n links?: any[];\n edges?: any[];\n silent?: boolean;\n}\n\n@Component({\n selector: 'td-chart-series[td-sankey]',\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(() => TdChartSeriesSankeyComponent),\n },\n ],\n})\nexport class TdChartSeriesSankeyComponent\n extends TdSeriesDirective\n implements ITdSankeySeries\n{\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() nodeWidth?: number;\n @Input() nodeGap?: number;\n @Input() layoutIterations?: number;\n @Input() orient?: TdSankeyOrient;\n @Input() draggable?: boolean;\n @Input() focusNodeAdjacency?: TdSankeyFocusNodeAdjacency;\n @Input() label?: ITdLabel;\n @Input() itemStyle?: ITdItemStyle;\n @Input() lineStyle?: ITdLineCurveStyle;\n @Input() emphasis?: ITdEmphasis;\n @Input() nodes?: any[];\n @Input() links?: any[];\n @Input() edges?: any[];\n @Input() silent?: boolean;\n\n constructor(_optionsService: TdChartOptionsService) {\n super('sankey', _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 nodeWidth: this.nodeWidth,\n nodeGap: this.nodeGap,\n layoutIterations: this.layoutIterations,\n orient: this.orient,\n draggable: this.draggable,\n focusNodeAdjacency: this.focusNodeAdjacency,\n label: this.label,\n itemStyle: this.itemStyle,\n lineStyle: this.lineStyle,\n emphasis: this.emphasis,\n nodes: this.nodes,\n links: this.links,\n edges: this.edges,\n silent: this.silent,\n };\n }\n}\n","import { NgModule, Type } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nimport { TdChartSeriesSankeyComponent } from './sankey.component';\n\nexport const SANKEY_MODULE_COMPONENTS: Type<any>[] = [\n TdChartSeriesSankeyComponent,\n];\n\n@NgModule({\n imports: [CommonModule],\n declarations: [SANKEY_MODULE_COMPONENTS],\n exports: [SANKEY_MODULE_COMPONENTS],\n})\nexport class CovalentSankeyEchartsModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;AA0FM,MAAO,4BACX,SAAQ,iBAAiB,CAAA;AA0BzB,IAAA,WAAA,CAAY,eAAsC,EAAA;AAChD,QAAA,KAAK,CAAC,QAAQ,EAAE,eAAe,CAAC,CAAC;KAClC;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,MAAM,EAAE,IAAI,CAAC,MAAM;YACnB,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,MAAM,EAAE,IAAI,CAAC,MAAM;YACnB,SAAS,EAAE,IAAI,CAAC,SAAS;YACzB,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,gBAAgB,EAAE,IAAI,CAAC,gBAAgB;YACvC,MAAM,EAAE,IAAI,CAAC,MAAM;YACnB,SAAS,EAAE,IAAI,CAAC,SAAS;YACzB,kBAAkB,EAAE,IAAI,CAAC,kBAAkB;YAC3C,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,SAAS,EAAE,IAAI,CAAC,SAAS;YACzB,SAAS,EAAE,IAAI,CAAC,SAAS;YACzB,QAAQ,EAAE,IAAI,CAAC,QAAQ;YACvB,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,MAAM,EAAE,IAAI,CAAC,MAAM;SACpB,CAAC;KACH;;0HAxDU,4BAA4B,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,EAAA,CAAA,qBAAA,EAAA,CAAA,EAAA,MAAA,EA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AAC;AACpC,iBAAA,CAAA;;;ACbD;;AAEG;;;;"}
|
|
@@ -0,0 +1,169 @@
|
|
|
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 TdChartSeriesScatterComponent extends TdSeriesDirective {
|
|
8
|
+
constructor(_optionsService) {
|
|
9
|
+
super('scatter', _optionsService);
|
|
10
|
+
}
|
|
11
|
+
getConfig() {
|
|
12
|
+
return {
|
|
13
|
+
coordinateSystem: this.coordinateSystem,
|
|
14
|
+
xAxisIndex: this.xAxisIndex,
|
|
15
|
+
yAxisIndex: this.yAxisIndex,
|
|
16
|
+
polarIndex: this.polarIndex,
|
|
17
|
+
geoIndex: this.geoIndex,
|
|
18
|
+
calendarIndex: this.calendarIndex,
|
|
19
|
+
hoverAnimation: this.hoverAnimation,
|
|
20
|
+
legendHoverLink: this.legendHoverLink,
|
|
21
|
+
symbol: this.symbol,
|
|
22
|
+
symbolSize: this.symbolSize,
|
|
23
|
+
symbolRotate: this.symbolRotate,
|
|
24
|
+
symbolKeepAspect: this.symbolKeepAspect,
|
|
25
|
+
symbolOffset: this.symbolOffset,
|
|
26
|
+
large: this.large,
|
|
27
|
+
largeThreshold: this.largeThreshold,
|
|
28
|
+
cursor: this.cursor,
|
|
29
|
+
label: this.label,
|
|
30
|
+
itemStyle: this.itemStyle,
|
|
31
|
+
emphasis: this.emphasis,
|
|
32
|
+
progressive: this.progressive,
|
|
33
|
+
progressiveThreshold: this.progressiveThreshold,
|
|
34
|
+
dimensions: this.dimensions,
|
|
35
|
+
encode: this.encode,
|
|
36
|
+
seriesLayoutBy: this.seriesLayoutBy,
|
|
37
|
+
datasetIndex: this.datasetIndex,
|
|
38
|
+
markPoint: this.markPoint,
|
|
39
|
+
markLine: this.markLine,
|
|
40
|
+
markArea: this.markArea,
|
|
41
|
+
zlevel: this.zlevel,
|
|
42
|
+
z: this.z,
|
|
43
|
+
silent: this.silent,
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
TdChartSeriesScatterComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TdChartSeriesScatterComponent, deps: [{ token: i1.TdChartOptionsService }], target: i0.ɵɵFactoryTarget.Component });
|
|
48
|
+
TdChartSeriesScatterComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: TdChartSeriesScatterComponent, selector: "td-chart-series[td-scatter]", 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", geoIndex: "geoIndex", calendarIndex: "calendarIndex", hoverAnimation: "hoverAnimation", legendHoverLink: "legendHoverLink", symbol: "symbol", symbolSize: "symbolSize", symbolRotate: "symbolRotate", symbolKeepAspect: "symbolKeepAspect", symbolOffset: "symbolOffset", large: "large", largeThreshold: "largeThreshold", cursor: "cursor", label: "label", itemStyle: "itemStyle", emphasis: "emphasis", progressive: "progressive", progressiveThreshold: "progressiveThreshold", dimensions: "dimensions", encode: "encode", seriesLayoutBy: "seriesLayoutBy", datasetIndex: "datasetIndex", markPoint: "markPoint", markLine: "markLine", markArea: "markArea", zlevel: "zlevel", z: "z", silent: "silent" }, providers: [
|
|
49
|
+
{
|
|
50
|
+
provide: TdSeriesDirective,
|
|
51
|
+
useExisting: forwardRef(() => TdChartSeriesScatterComponent),
|
|
52
|
+
},
|
|
53
|
+
], usesInheritance: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
54
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TdChartSeriesScatterComponent, decorators: [{
|
|
55
|
+
type: Component,
|
|
56
|
+
args: [{
|
|
57
|
+
selector: 'td-chart-series[td-scatter]',
|
|
58
|
+
template: '',
|
|
59
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
60
|
+
inputs: [
|
|
61
|
+
'config',
|
|
62
|
+
'id',
|
|
63
|
+
'name',
|
|
64
|
+
'color',
|
|
65
|
+
'data',
|
|
66
|
+
'animation',
|
|
67
|
+
'animationThreshold',
|
|
68
|
+
'animationDuration',
|
|
69
|
+
'animationEasing',
|
|
70
|
+
'animationDelay',
|
|
71
|
+
'animationDurationUpdate',
|
|
72
|
+
'animationEasingUpdate',
|
|
73
|
+
'animationDelayUpdate',
|
|
74
|
+
'tooltip',
|
|
75
|
+
],
|
|
76
|
+
providers: [
|
|
77
|
+
{
|
|
78
|
+
provide: TdSeriesDirective,
|
|
79
|
+
useExisting: forwardRef(() => TdChartSeriesScatterComponent),
|
|
80
|
+
},
|
|
81
|
+
],
|
|
82
|
+
}]
|
|
83
|
+
}], ctorParameters: function () { return [{ type: i1.TdChartOptionsService }]; }, propDecorators: { coordinateSystem: [{
|
|
84
|
+
type: Input
|
|
85
|
+
}], xAxisIndex: [{
|
|
86
|
+
type: Input
|
|
87
|
+
}], yAxisIndex: [{
|
|
88
|
+
type: Input
|
|
89
|
+
}], polarIndex: [{
|
|
90
|
+
type: Input
|
|
91
|
+
}], geoIndex: [{
|
|
92
|
+
type: Input
|
|
93
|
+
}], calendarIndex: [{
|
|
94
|
+
type: Input
|
|
95
|
+
}], hoverAnimation: [{
|
|
96
|
+
type: Input
|
|
97
|
+
}], legendHoverLink: [{
|
|
98
|
+
type: Input
|
|
99
|
+
}], symbol: [{
|
|
100
|
+
type: Input
|
|
101
|
+
}], symbolSize: [{
|
|
102
|
+
type: Input
|
|
103
|
+
}], symbolRotate: [{
|
|
104
|
+
type: Input
|
|
105
|
+
}], symbolKeepAspect: [{
|
|
106
|
+
type: Input
|
|
107
|
+
}], symbolOffset: [{
|
|
108
|
+
type: Input
|
|
109
|
+
}], large: [{
|
|
110
|
+
type: Input
|
|
111
|
+
}], largeThreshold: [{
|
|
112
|
+
type: Input
|
|
113
|
+
}], cursor: [{
|
|
114
|
+
type: Input
|
|
115
|
+
}], label: [{
|
|
116
|
+
type: Input
|
|
117
|
+
}], itemStyle: [{
|
|
118
|
+
type: Input
|
|
119
|
+
}], emphasis: [{
|
|
120
|
+
type: Input
|
|
121
|
+
}], progressive: [{
|
|
122
|
+
type: Input
|
|
123
|
+
}], progressiveThreshold: [{
|
|
124
|
+
type: Input
|
|
125
|
+
}], dimensions: [{
|
|
126
|
+
type: Input
|
|
127
|
+
}], encode: [{
|
|
128
|
+
type: Input
|
|
129
|
+
}], seriesLayoutBy: [{
|
|
130
|
+
type: Input
|
|
131
|
+
}], datasetIndex: [{
|
|
132
|
+
type: Input
|
|
133
|
+
}], markPoint: [{
|
|
134
|
+
type: Input
|
|
135
|
+
}], markLine: [{
|
|
136
|
+
type: Input
|
|
137
|
+
}], markArea: [{
|
|
138
|
+
type: Input
|
|
139
|
+
}], zlevel: [{
|
|
140
|
+
type: Input
|
|
141
|
+
}], z: [{
|
|
142
|
+
type: Input
|
|
143
|
+
}], silent: [{
|
|
144
|
+
type: Input
|
|
145
|
+
}] } });
|
|
146
|
+
|
|
147
|
+
const SCATTER_MODULE_COMPONENTS = [
|
|
148
|
+
TdChartSeriesScatterComponent,
|
|
149
|
+
];
|
|
150
|
+
class CovalentScatterEchartsModule {
|
|
151
|
+
}
|
|
152
|
+
CovalentScatterEchartsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CovalentScatterEchartsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
153
|
+
CovalentScatterEchartsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: CovalentScatterEchartsModule, declarations: [TdChartSeriesScatterComponent], imports: [CommonModule], exports: [TdChartSeriesScatterComponent] });
|
|
154
|
+
CovalentScatterEchartsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CovalentScatterEchartsModule, imports: [CommonModule] });
|
|
155
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CovalentScatterEchartsModule, decorators: [{
|
|
156
|
+
type: NgModule,
|
|
157
|
+
args: [{
|
|
158
|
+
imports: [CommonModule],
|
|
159
|
+
declarations: [SCATTER_MODULE_COMPONENTS],
|
|
160
|
+
exports: [SCATTER_MODULE_COMPONENTS],
|
|
161
|
+
}]
|
|
162
|
+
}] });
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
* Generated bundle index. Do not edit.
|
|
166
|
+
*/
|
|
167
|
+
|
|
168
|
+
export { CovalentScatterEchartsModule, SCATTER_MODULE_COMPONENTS, TdChartSeriesScatterComponent };
|
|
169
|
+
//# sourceMappingURL=covalent-echarts-scatter.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"covalent-echarts-scatter.mjs","sources":["../../../../libs/angular-echarts/scatter/src/scatter.component.ts","../../../../libs/angular-echarts/scatter/src/scatter.module.ts","../../../../libs/angular-echarts/scatter/src/covalent-echarts-scatter.ts"],"sourcesContent":["import {\n Component,\n Input,\n ChangeDetectionStrategy,\n forwardRef,\n} from '@angular/core';\n\nimport {\n TdChartOptionsService,\n TdCoordinateSystem,\n TdMarkPointSymbol,\n ITdMarkPoint,\n ITdItemStyle,\n ITdLabel,\n ITdEmphasis,\n TdSeriesLayoutBy,\n ITdMarkLine,\n ITdMarkArea,\n TdSeriesDirective,\n ITdSeries,\n} from '@covalent/echarts/base';\n\nexport interface ITdScatterSeries extends ITdSeries {\n coordinateSystem?: TdCoordinateSystem;\n xAxisIndex?: number;\n yAxisIndex?: number;\n polarIndex?: number;\n geoIndex?: number;\n calendarIndex?: number;\n hoverAnimation?: boolean;\n legendHoverLink?: boolean;\n symbol?: TdMarkPointSymbol | string;\n symbolSize?: number | any[] | Function;\n symbolRotate?: number;\n symbolKeepAspect?: boolean;\n symbolOffset?: any[];\n large?: boolean;\n largeThreshold?: number;\n cursor?: string;\n connectNulls?: boolean;\n clipOverflow?: boolean;\n step?: boolean;\n label?: ITdLabel;\n itemStyle?: any;\n emphasis?: ITdEmphasis;\n progressive?: number;\n progressiveThreshold?: number;\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-scatter]',\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(() => TdChartSeriesScatterComponent),\n },\n ],\n})\nexport class TdChartSeriesScatterComponent\n extends TdSeriesDirective\n implements ITdScatterSeries\n{\n @Input() coordinateSystem?: TdCoordinateSystem;\n @Input() xAxisIndex?: number;\n @Input() yAxisIndex?: number;\n @Input() polarIndex?: number;\n @Input() geoIndex?: number;\n @Input() calendarIndex?: number;\n @Input() hoverAnimation?: boolean;\n @Input() legendHoverLink?: boolean;\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() large?: boolean;\n @Input() largeThreshold?: number;\n @Input() cursor?: string;\n @Input() label?: ITdLabel;\n @Input() itemStyle?: ITdItemStyle;\n @Input() emphasis?: ITdEmphasis;\n @Input() progressive?: number;\n @Input() progressiveThreshold?: number;\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('scatter', _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 geoIndex: this.geoIndex,\n calendarIndex: this.calendarIndex,\n hoverAnimation: this.hoverAnimation,\n legendHoverLink: this.legendHoverLink,\n symbol: this.symbol,\n symbolSize: this.symbolSize,\n symbolRotate: this.symbolRotate,\n symbolKeepAspect: this.symbolKeepAspect,\n symbolOffset: this.symbolOffset,\n large: this.large,\n largeThreshold: this.largeThreshold,\n cursor: this.cursor,\n label: this.label,\n itemStyle: this.itemStyle,\n emphasis: this.emphasis,\n progressive: this.progressive,\n progressiveThreshold: this.progressiveThreshold,\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 { TdChartSeriesScatterComponent } from './scatter.component';\n\nexport const SCATTER_MODULE_COMPONENTS: Type<any>[] = [\n TdChartSeriesScatterComponent,\n];\n\n@NgModule({\n imports: [CommonModule],\n declarations: [SCATTER_MODULE_COMPONENTS],\n exports: [SCATTER_MODULE_COMPONENTS],\n})\nexport class CovalentScatterEchartsModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;AAwFM,MAAO,6BACX,SAAQ,iBAAiB,CAAA;AAmCzB,IAAA,WAAA,CAAY,eAAsC,EAAA;AAChD,QAAA,KAAK,CAAC,SAAS,EAAE,eAAe,CAAC,CAAC;KACnC;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,QAAQ,EAAE,IAAI,CAAC,QAAQ;YACvB,aAAa,EAAE,IAAI,CAAC,aAAa;YACjC,cAAc,EAAE,IAAI,CAAC,cAAc;YACnC,eAAe,EAAE,IAAI,CAAC,eAAe;YACrC,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,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,cAAc,EAAE,IAAI,CAAC,cAAc;YACnC,MAAM,EAAE,IAAI,CAAC,MAAM;YACnB,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,SAAS,EAAE,IAAI,CAAC,SAAS;YACzB,QAAQ,EAAE,IAAI,CAAC,QAAQ;YACvB,WAAW,EAAE,IAAI,CAAC,WAAW;YAC7B,oBAAoB,EAAE,IAAI,CAAC,oBAAoB;YAC/C,UAAU,EAAE,IAAI,CAAC,UAAU;YAC3B,MAAM,EAAE,IAAI,CAAC,MAAM;Y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AAK;gBACG,QAAQ,EAAA,CAAA;sBAAhB,KAAK;gBACG,MAAM,EAAA,CAAA;sBAAd,KAAK;gBACG,CAAC,EAAA,CAAA;sBAAT,KAAK;gBACG,MAAM,EAAA,CAAA;sBAAd,KAAK;;;ACrHK,MAAA,yBAAyB,GAAgB;IACpD,6BAA6B;EAC7B;MAOW,4BAA4B,CAAA;;0HAA5B,4BAA4B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;AAA5B,4BAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,4BAA4B,EARvC,YAAA,EAAA,CAAA,6BAA6B,CAInB,EAAA,OAAA,EAAA,CAAA,YAAY,aAJtB,6BAA6B,CAAA,EAAA,CAAA,CAAA;AAQlB,4BAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,4BAA4B,YAJ7B,YAAY,CAAA,EAAA,CAAA,CAAA;4FAIX,4BAA4B,EAAA,UAAA,EAAA,CAAA;kBALxC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,OAAO,EAAE,CAAC,YAAY,CAAC;oBACvB,YAAY,EAAE,CAAC,yBAAyB,CAAC;oBACzC,OAAO,EAAE,CAAC,yBAAyB,CAAC;AACrC,iBAAA,CAAA;;;ACbD;;AAEG;;;;"}
|
|
@@ -6,45 +6,31 @@ import * as i1 from '@covalent/echarts/base';
|
|
|
6
6
|
import { assignDefined } from '@covalent/echarts/base';
|
|
7
7
|
|
|
8
8
|
class TdChartViewDataFormatterDirective {
|
|
9
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: TdChartViewDataFormatterDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
10
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.7", type: TdChartViewDataFormatterDirective, selector: "ng-template[tdViewDataFormatter]", ngImport: i0 });
|
|
11
9
|
}
|
|
12
|
-
i0.ɵɵ
|
|
10
|
+
TdChartViewDataFormatterDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TdChartViewDataFormatterDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
11
|
+
TdChartViewDataFormatterDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: TdChartViewDataFormatterDirective, selector: "ng-template[tdViewDataFormatter]", ngImport: i0 });
|
|
12
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TdChartViewDataFormatterDirective, decorators: [{
|
|
13
13
|
type: Directive,
|
|
14
14
|
args: [{
|
|
15
15
|
selector: 'ng-template[tdViewDataFormatter]',
|
|
16
16
|
}]
|
|
17
17
|
}] });
|
|
18
18
|
class TdChartToolboxComponent {
|
|
19
|
-
_changeDetectorRef;
|
|
20
|
-
_elementRef;
|
|
21
|
-
_optionsService;
|
|
22
|
-
_state = {};
|
|
23
|
-
config = {};
|
|
24
|
-
show = true;
|
|
25
|
-
trigger;
|
|
26
|
-
orient;
|
|
27
|
-
itemSize;
|
|
28
|
-
itemGap;
|
|
29
|
-
showTitle = true;
|
|
30
|
-
label;
|
|
31
|
-
feature;
|
|
32
|
-
iconStyle;
|
|
33
|
-
zlevel;
|
|
34
|
-
z;
|
|
35
|
-
transitionDuration = 0.5;
|
|
36
|
-
left = 'auto';
|
|
37
|
-
top = 'auto';
|
|
38
|
-
right = 'auto';
|
|
39
|
-
bottom = 'auto';
|
|
40
|
-
width = 'auto';
|
|
41
|
-
height = 'auto';
|
|
42
|
-
formatterTemplate;
|
|
43
|
-
fullTemplate;
|
|
44
19
|
constructor(_changeDetectorRef, _elementRef, _optionsService) {
|
|
45
20
|
this._changeDetectorRef = _changeDetectorRef;
|
|
46
21
|
this._elementRef = _elementRef;
|
|
47
22
|
this._optionsService = _optionsService;
|
|
23
|
+
this._state = {};
|
|
24
|
+
this.config = {};
|
|
25
|
+
this.show = true;
|
|
26
|
+
this.showTitle = true;
|
|
27
|
+
this.transitionDuration = 0.5;
|
|
28
|
+
this.left = 'auto';
|
|
29
|
+
this.top = 'auto';
|
|
30
|
+
this.right = 'auto';
|
|
31
|
+
this.bottom = 'auto';
|
|
32
|
+
this.width = 'auto';
|
|
33
|
+
this.height = 'auto';
|
|
48
34
|
}
|
|
49
35
|
ngOnChanges() {
|
|
50
36
|
this._setOptions();
|
|
@@ -97,10 +83,10 @@ class TdChartToolboxComponent {
|
|
|
97
83
|
return this._elementRef.nativeElement.innerHTML;
|
|
98
84
|
};
|
|
99
85
|
}
|
|
100
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: TdChartToolboxComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i1.TdChartOptionsService }], target: i0.ɵɵFactoryTarget.Component });
|
|
101
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.7", type: TdChartToolboxComponent, selector: "td-chart-toolbox", inputs: { config: "config", show: "show", trigger: "trigger", orient: "orient", itemSize: "itemSize", itemGap: "itemGap", showTitle: "showTitle", label: "label", feature: "feature", iconStyle: "iconStyle", zlevel: "zlevel", z: "z", transitionDuration: "transitionDuration", left: "left", top: "top", right: "right", bottom: "bottom", width: "width", height: "height" }, queries: [{ propertyName: "formatterTemplate", first: true, predicate: TdChartViewDataFormatterDirective, descendants: true, read: TemplateRef }], viewQueries: [{ propertyName: "fullTemplate", first: true, predicate: ["toolboxContent"], descendants: true, static: true }], usesOnChanges: true, ngImport: i0, template: "<ng-template\n #toolboxContent\n [ngTemplateOutlet]=\"formatterTemplate\"\n></ng-template>\n", dependencies: [{ kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
102
86
|
}
|
|
103
|
-
i0.ɵɵ
|
|
87
|
+
TdChartToolboxComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TdChartToolboxComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i1.TdChartOptionsService }], target: i0.ɵɵFactoryTarget.Component });
|
|
88
|
+
TdChartToolboxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: TdChartToolboxComponent, selector: "td-chart-toolbox", inputs: { config: "config", show: "show", trigger: "trigger", orient: "orient", itemSize: "itemSize", itemGap: "itemGap", showTitle: "showTitle", label: "label", feature: "feature", iconStyle: "iconStyle", zlevel: "zlevel", z: "z", transitionDuration: "transitionDuration", left: "left", top: "top", right: "right", bottom: "bottom", width: "width", height: "height" }, queries: [{ propertyName: "formatterTemplate", first: true, predicate: TdChartViewDataFormatterDirective, descendants: true, read: TemplateRef }], viewQueries: [{ propertyName: "fullTemplate", first: true, predicate: ["toolboxContent"], descendants: true, static: true }], usesOnChanges: true, ngImport: i0, template: "<ng-template\n #toolboxContent\n [ngTemplateOutlet]=\"formatterTemplate\"\n></ng-template>\n", dependencies: [{ kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
89
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TdChartToolboxComponent, decorators: [{
|
|
104
90
|
type: Component,
|
|
105
91
|
args: [{ selector: 'td-chart-toolbox', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-template\n #toolboxContent\n [ngTemplateOutlet]=\"formatterTemplate\"\n></ng-template>\n" }]
|
|
106
92
|
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i1.TdChartOptionsService }]; }, propDecorators: { config: [{
|
|
@@ -154,13 +140,13 @@ const TOOLBOX_MODULE_COMPONENTS = [
|
|
|
154
140
|
TdChartViewDataFormatterDirective,
|
|
155
141
|
];
|
|
156
142
|
class CovalentToolboxEchartsModule {
|
|
157
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: CovalentToolboxEchartsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
158
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.7", ngImport: i0, type: CovalentToolboxEchartsModule, declarations: [TdChartToolboxComponent,
|
|
159
|
-
TdChartViewDataFormatterDirective], imports: [CommonModule], exports: [TdChartToolboxComponent,
|
|
160
|
-
TdChartViewDataFormatterDirective] });
|
|
161
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: CovalentToolboxEchartsModule, imports: [CommonModule] });
|
|
162
143
|
}
|
|
163
|
-
i0.ɵɵ
|
|
144
|
+
CovalentToolboxEchartsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CovalentToolboxEchartsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
145
|
+
CovalentToolboxEchartsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: CovalentToolboxEchartsModule, declarations: [TdChartToolboxComponent,
|
|
146
|
+
TdChartViewDataFormatterDirective], imports: [CommonModule], exports: [TdChartToolboxComponent,
|
|
147
|
+
TdChartViewDataFormatterDirective] });
|
|
148
|
+
CovalentToolboxEchartsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CovalentToolboxEchartsModule, imports: [CommonModule] });
|
|
149
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CovalentToolboxEchartsModule, decorators: [{
|
|
164
150
|
type: NgModule,
|
|
165
151
|
args: [{
|
|
166
152
|
imports: [CommonModule],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"covalent-echarts-toolbox.mjs","sources":["../../../../libs/angular-echarts/toolbox/src/toolbox.component.ts","../../../../libs/angular-echarts/toolbox/src/toolbox.component.html","../../../../libs/angular-echarts/toolbox/src/toolbox.module.ts","../../../../libs/angular-echarts/toolbox/src/covalent-echarts-toolbox.ts"],"sourcesContent":["import {\n Component,\n Input,\n Directive,\n TemplateRef,\n ChangeDetectionStrategy,\n ElementRef,\n ChangeDetectorRef,\n OnChanges,\n ContentChild,\n ViewChild,\n OnDestroy,\n} from '@angular/core';\n\nimport {\n TdChartOptionsService,\n assignDefined,\n ITdLabel,\n ITdShadow,\n ITdItemStyle,\n TdTextPosition,\n TdTextAlign,\n} from '@covalent/echarts/base';\n\nexport type TdToolboxOrient = 'horizontal' | 'vertical';\nexport type TdImageType = 'png' | 'jpeg';\n\nexport interface ITdAcceptedBrushTypes {\n rect?: string;\n polygon?: string;\n lineX?: string;\n lineY?: string;\n keep?: string;\n clear?: string;\n}\n\nexport interface ITdAcceptedMagicTypes {\n line?: string;\n bar?: string;\n stack?: string;\n tiled?: string;\n}\n\nexport interface ITdToolboxIconEmphasis extends ITdItemStyle, ITdShadow {}\n\nexport interface ITdFeatureIconStyle extends ITdItemStyle, ITdShadow {\n textPosition?: TdTextPosition;\n textAlign?: TdTextAlign;\n emphasis?: ITdToolboxIconEmphasis;\n}\n\nexport interface ITdZoomTitles {\n zoom?: string;\n back?: string;\n}\n\nexport interface ITdSaveAsImage {\n type?: TdImageType;\n name?: string;\n backgroundColor?: any;\n excludeComponents?: string[]; // defaults to ['toolbox']\n show?: boolean;\n title?: string;\n icon?: string;\n iconStyle?: ITdFeatureIconStyle;\n pixelRatio?: number;\n}\n\nexport interface ITdRestore {\n show?: boolean;\n title?: string;\n icon?: string;\n iconStyle?: ITdFeatureIconStyle;\n}\n\nexport interface ITdDataView {\n show?: boolean;\n title?: string;\n icon?: string;\n iconStyle?: ITdFeatureIconStyle;\n readOnly?: boolean;\n optionToContent?: Function;\n contentToOption?: Function;\n lang?: string[]; // Defaults to Chinese, there are 3 names in data view, which are ['data view', 'turn off' and 'refresh'].\n textareaColor?: string;\n textareaBorderColor?: string;\n textColor?: string;\n buttonColor?: string;\n buttonTextColor?: string;\n}\n\nexport interface ITdDataZoom {\n show?: boolean;\n title?: ITdZoomTitles;\n icon?: ITdZoomTitles;\n iconStyle?: ITdFeatureIconStyle;\n xAxisIndex?: number | number[] | boolean;\n yAxisIndex?: number | number[] | boolean;\n}\n\nexport interface ITdMagicType {\n show?: boolean;\n type?: string[]; // only expects 'line' | 'bar' | 'stack' | 'tiled';\n title?: ITdAcceptedMagicTypes;\n icon?: ITdAcceptedMagicTypes;\n iconStyle?: ITdFeatureIconStyle;\n option?: {\n line?: object;\n bar?: object;\n stack?: object;\n tiled?: object;\n };\n seriesIndex?: {\n line?: any[];\n bar?: any[];\n stack?: any[];\n tiled?: any[];\n };\n}\n\nexport interface ITdBrush {\n type?: any[];\n icon?: ITdAcceptedBrushTypes;\n title?: ITdAcceptedBrushTypes;\n}\n\nexport interface ITdToolboxFeature {\n saveAsImage?: ITdSaveAsImage;\n restore?: ITdRestore;\n dataView?: ITdDataView;\n dataZoom?: ITdDataZoom;\n magicType?: ITdMagicType;\n brush?: ITdBrush;\n}\n\n@Directive({\n selector: 'ng-template[tdViewDataFormatter]',\n})\nexport class TdChartViewDataFormatterDirective {}\n\n@Component({\n selector: 'td-chart-toolbox',\n templateUrl: './toolbox.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TdChartToolboxComponent implements OnChanges, OnDestroy {\n private _state: any = {};\n\n @Input() config: any = {};\n\n @Input() show = true;\n @Input() trigger?: string;\n @Input() orient?: TdToolboxOrient;\n @Input() itemSize?: number;\n @Input() itemGap?: number;\n @Input() showTitle? = true;\n @Input() label?: ITdLabel;\n @Input() feature?: ITdToolboxFeature;\n @Input() iconStyle?: ITdFeatureIconStyle;\n @Input() zlevel?: number;\n @Input() z?: number;\n @Input() transitionDuration = 0.5;\n @Input() left: string | number = 'auto';\n @Input() top: string | number = 'auto';\n @Input() right: string | number = 'auto';\n @Input() bottom: string | number = 'auto';\n @Input() width: string | number = 'auto';\n @Input() height: string | number = 'auto';\n\n @ContentChild(TdChartViewDataFormatterDirective, { read: TemplateRef })\n formatterTemplate!: TemplateRef<any>;\n @ViewChild('toolboxContent', { static: true })\n fullTemplate!: TemplateRef<any>;\n\n constructor(\n private _changeDetectorRef: ChangeDetectorRef,\n private _elementRef: ElementRef,\n private _optionsService: TdChartOptionsService\n ) {}\n\n ngOnChanges(): void {\n this._setOptions();\n }\n\n ngOnDestroy(): void {\n this._removeOption();\n }\n\n private _setOptions(): void {\n this._checkFormatterTemplate();\n\n const config: any = assignDefined(\n this._state,\n {\n show: this.show,\n name: this.trigger,\n orient: this.orient,\n itemSize: this.itemSize,\n itemGap: this.itemGap,\n showTitle: this.showTitle,\n label: this.label,\n feature: this.feature,\n iconStyle: this.iconStyle,\n zlevel: this.zlevel,\n z: this.z,\n transitionDuration: this.transitionDuration,\n left: this.left,\n top: this.top,\n right: this.right,\n bottom: this.bottom,\n width: this.width,\n height: this.height,\n },\n this.config ? this.config : {}\n );\n // set toolbox configuration in parent chart and render new configurations\n this._optionsService.setOption('toolbox', config);\n }\n\n private _removeOption(): void {\n this._optionsService.clearOption('toolbox');\n }\n\n private _checkFormatterTemplate(): void {\n if (this.formatterTemplate) {\n this.feature = {\n ...this.feature,\n dataView: {\n ...this.feature?.dataView,\n optionToContent: this._optionToContentFormatter(),\n },\n };\n }\n }\n\n private _optionToContentFormatter(): () => string {\n return () => {\n this._changeDetectorRef.markForCheck();\n return (<HTMLElement>this._elementRef.nativeElement).innerHTML;\n };\n }\n}\n","<ng-template\n #toolboxContent\n [ngTemplateOutlet]=\"formatterTemplate\"\n></ng-template>\n","import { NgModule, Type } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nimport {\n TdChartToolboxComponent,\n TdChartViewDataFormatterDirective,\n} from './toolbox.component';\n\nexport const TOOLBOX_MODULE_COMPONENTS: Type<any>[] = [\n TdChartToolboxComponent,\n TdChartViewDataFormatterDirective,\n];\n\n@NgModule({\n imports: [CommonModule],\n declarations: [TOOLBOX_MODULE_COMPONENTS],\n exports: [TOOLBOX_MODULE_COMPONENTS],\n})\nexport class CovalentToolboxEchartsModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;MA0Ia,iCAAiC,CAAA;uGAAjC,iCAAiC,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;2FAAjC,iCAAiC,EAAA,QAAA,EAAA,kCAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;2FAAjC,iCAAiC,EAAA,UAAA,EAAA,CAAA;kBAH7C,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,kCAAkC;AAC7C,iBAAA,CAAA;;MAQY,uBAAuB,CAAA;AA8BxB,IAAA,kBAAA,CAAA;AACA,IAAA,WAAA,CAAA;AACA,IAAA,eAAA,CAAA;IA/BF,MAAM,GAAQ,EAAE,CAAC;IAEhB,MAAM,GAAQ,EAAE,CAAC;IAEjB,IAAI,GAAG,IAAI,CAAC;AACZ,IAAA,OAAO,CAAU;AACjB,IAAA,MAAM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,EAAA,CAAA,CAAA;AAA5B,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,4BAA4B,iBATvC,uBAAuB;YACvB,iCAAiC,CAAA,EAAA,OAAA,EAAA,CAIvB,YAAY,CAAA,EAAA,OAAA,EAAA,CALtB,uBAAuB;YACvB,iCAAiC,CAAA,EAAA,CAAA,CAAA;AAQtB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,4BAA4B,YAJ7B,YAAY,CAAA,EAAA,CAAA,CAAA;;2FAIX,4BAA4B,EAAA,UAAA,EAAA,CAAA;kBALxC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,OAAO,EAAE,CAAC,YAAY,CAAC;oBACvB,YAAY,EAAE,CAAC,yBAAyB,CAAC;oBACzC,OAAO,EAAE,CAAC,yBAAyB,CAAC;AACrC,iBAAA,CAAA;;;ACjBD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"covalent-echarts-toolbox.mjs","sources":["../../../../libs/angular-echarts/toolbox/src/toolbox.component.ts","../../../../libs/angular-echarts/toolbox/src/toolbox.component.html","../../../../libs/angular-echarts/toolbox/src/toolbox.module.ts","../../../../libs/angular-echarts/toolbox/src/covalent-echarts-toolbox.ts"],"sourcesContent":["import {\n Component,\n Input,\n Directive,\n TemplateRef,\n ChangeDetectionStrategy,\n ElementRef,\n ChangeDetectorRef,\n OnChanges,\n ContentChild,\n ViewChild,\n OnDestroy,\n} from '@angular/core';\n\nimport {\n TdChartOptionsService,\n assignDefined,\n ITdLabel,\n ITdShadow,\n ITdItemStyle,\n TdTextPosition,\n TdTextAlign,\n} from '@covalent/echarts/base';\n\nexport type TdToolboxOrient = 'horizontal' | 'vertical';\nexport type TdImageType = 'png' | 'jpeg';\n\nexport interface ITdAcceptedBrushTypes {\n rect?: string;\n polygon?: string;\n lineX?: string;\n lineY?: string;\n keep?: string;\n clear?: string;\n}\n\nexport interface ITdAcceptedMagicTypes {\n line?: string;\n bar?: string;\n stack?: string;\n tiled?: string;\n}\n\nexport interface ITdToolboxIconEmphasis extends ITdItemStyle, ITdShadow {}\n\nexport interface ITdFeatureIconStyle extends ITdItemStyle, ITdShadow {\n textPosition?: TdTextPosition;\n textAlign?: TdTextAlign;\n emphasis?: ITdToolboxIconEmphasis;\n}\n\nexport interface ITdZoomTitles {\n zoom?: string;\n back?: string;\n}\n\nexport interface ITdSaveAsImage {\n type?: TdImageType;\n name?: string;\n backgroundColor?: any;\n excludeComponents?: string[]; // defaults to ['toolbox']\n show?: boolean;\n title?: string;\n icon?: string;\n iconStyle?: ITdFeatureIconStyle;\n pixelRatio?: number;\n}\n\nexport interface ITdRestore {\n show?: boolean;\n title?: string;\n icon?: string;\n iconStyle?: ITdFeatureIconStyle;\n}\n\nexport interface ITdDataView {\n show?: boolean;\n title?: string;\n icon?: string;\n iconStyle?: ITdFeatureIconStyle;\n readOnly?: boolean;\n optionToContent?: Function;\n contentToOption?: Function;\n lang?: string[]; // Defaults to Chinese, there are 3 names in data view, which are ['data view', 'turn off' and 'refresh'].\n textareaColor?: string;\n textareaBorderColor?: string;\n textColor?: string;\n buttonColor?: string;\n buttonTextColor?: string;\n}\n\nexport interface ITdDataZoom {\n show?: boolean;\n title?: ITdZoomTitles;\n icon?: ITdZoomTitles;\n iconStyle?: ITdFeatureIconStyle;\n xAxisIndex?: number | number[] | boolean;\n yAxisIndex?: number | number[] | boolean;\n}\n\nexport interface ITdMagicType {\n show?: boolean;\n type?: string[]; // only expects 'line' | 'bar' | 'stack' | 'tiled';\n title?: ITdAcceptedMagicTypes;\n icon?: ITdAcceptedMagicTypes;\n iconStyle?: ITdFeatureIconStyle;\n option?: {\n line?: object;\n bar?: object;\n stack?: object;\n tiled?: object;\n };\n seriesIndex?: {\n line?: any[];\n bar?: any[];\n stack?: any[];\n tiled?: any[];\n };\n}\n\nexport interface ITdBrush {\n type?: any[];\n icon?: ITdAcceptedBrushTypes;\n title?: ITdAcceptedBrushTypes;\n}\n\nexport interface ITdToolboxFeature {\n saveAsImage?: ITdSaveAsImage;\n restore?: ITdRestore;\n dataView?: ITdDataView;\n dataZoom?: ITdDataZoom;\n magicType?: ITdMagicType;\n brush?: ITdBrush;\n}\n\n@Directive({\n selector: 'ng-template[tdViewDataFormatter]',\n})\nexport class TdChartViewDataFormatterDirective {}\n\n@Component({\n selector: 'td-chart-toolbox',\n templateUrl: './toolbox.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TdChartToolboxComponent implements OnChanges, OnDestroy {\n private _state: any = {};\n\n @Input() config: any = {};\n\n @Input() show = true;\n @Input() trigger?: string;\n @Input() orient?: TdToolboxOrient;\n @Input() itemSize?: number;\n @Input() itemGap?: number;\n @Input() showTitle? = true;\n @Input() label?: ITdLabel;\n @Input() feature?: ITdToolboxFeature;\n @Input() iconStyle?: ITdFeatureIconStyle;\n @Input() zlevel?: number;\n @Input() z?: number;\n @Input() transitionDuration = 0.5;\n @Input() left: string | number = 'auto';\n @Input() top: string | number = 'auto';\n @Input() right: string | number = 'auto';\n @Input() bottom: string | number = 'auto';\n @Input() width: string | number = 'auto';\n @Input() height: string | number = 'auto';\n\n @ContentChild(TdChartViewDataFormatterDirective, { read: TemplateRef })\n formatterTemplate!: TemplateRef<any>;\n @ViewChild('toolboxContent', { static: true })\n fullTemplate!: TemplateRef<any>;\n\n constructor(\n private _changeDetectorRef: ChangeDetectorRef,\n private _elementRef: ElementRef,\n private _optionsService: TdChartOptionsService\n ) {}\n\n ngOnChanges(): void {\n this._setOptions();\n }\n\n ngOnDestroy(): void {\n this._removeOption();\n }\n\n private _setOptions(): void {\n this._checkFormatterTemplate();\n\n const config: any = assignDefined(\n this._state,\n {\n show: this.show,\n name: this.trigger,\n orient: this.orient,\n itemSize: this.itemSize,\n itemGap: this.itemGap,\n showTitle: this.showTitle,\n label: this.label,\n feature: this.feature,\n iconStyle: this.iconStyle,\n zlevel: this.zlevel,\n z: this.z,\n transitionDuration: this.transitionDuration,\n left: this.left,\n top: this.top,\n right: this.right,\n bottom: this.bottom,\n width: this.width,\n height: this.height,\n },\n this.config ? this.config : {}\n );\n // set toolbox configuration in parent chart and render new configurations\n this._optionsService.setOption('toolbox', config);\n }\n\n private _removeOption(): void {\n this._optionsService.clearOption('toolbox');\n }\n\n private _checkFormatterTemplate(): void {\n if (this.formatterTemplate) {\n this.feature = {\n ...this.feature,\n dataView: {\n ...this.feature?.dataView,\n optionToContent: this._optionToContentFormatter(),\n },\n };\n }\n }\n\n private _optionToContentFormatter(): () => string {\n return () => {\n this._changeDetectorRef.markForCheck();\n return (<HTMLElement>this._elementRef.nativeElement).innerHTML;\n };\n }\n}\n","<ng-template\n #toolboxContent\n [ngTemplateOutlet]=\"formatterTemplate\"\n></ng-template>\n","import { NgModule, Type } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nimport {\n TdChartToolboxComponent,\n TdChartViewDataFormatterDirective,\n} from './toolbox.component';\n\nexport const TOOLBOX_MODULE_COMPONENTS: Type<any>[] = [\n TdChartToolboxComponent,\n TdChartViewDataFormatterDirective,\n];\n\n@NgModule({\n imports: [CommonModule],\n declarations: [TOOLBOX_MODULE_COMPONENTS],\n exports: [TOOLBOX_MODULE_COMPONENTS],\n})\nexport class CovalentToolboxEchartsModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;MA0Ia,iCAAiC,CAAA;;+HAAjC,iCAAiC,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;mHAAjC,iCAAiC,EAAA,QAAA,EAAA,kCAAA,EAAA,QAAA,EAAA,EAAA,EAAA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