@covalent/echarts 4.0.0 → 4.1.0-develop.10
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/README.md +4 -90
- package/bar/README.md +23 -21
- package/bar/bar.component.d.ts +30 -27
- package/bar/bar.module.d.ts +6 -1
- package/bar/covalent-echarts-bar.d.ts +2 -1
- package/bar/package.json +6 -7
- package/bar/{public-api.d.ts → public_api.d.ts} +0 -0
- package/base/README.md +26 -26
- package/base/axis/axis.component.d.ts +32 -29
- package/base/axis/x-axis.component.d.ts +3 -0
- package/base/axis/y-axis.component.d.ts +3 -0
- package/base/base.module.d.ts +9 -1
- package/base/chart-options.service.d.ts +3 -0
- package/base/chart.component.d.ts +6 -3
- package/base/covalent-echarts-base.d.ts +2 -2
- package/base/dataset/dataset.component.d.ts +8 -5
- package/base/package.json +6 -7
- package/base/{public-api.d.ts → public_api.d.ts} +0 -0
- package/base/series/series.component.d.ts +18 -15
- package/base/{axis → src/axis}/README.md +19 -19
- package/base/{dataset → src/dataset}/README.md +19 -16
- package/covalent-echarts.d.ts +2 -1
- package/esm2020/bar/bar.component.mjs +135 -0
- package/esm2020/bar/bar.module.mjs +19 -0
- package/esm2020/bar/covalent-echarts-bar.mjs +5 -0
- package/esm2020/bar/public_api.mjs +3 -0
- package/esm2020/base/axis/axis.component.mjs +127 -0
- package/esm2020/base/axis/axis.interface.mjs +2 -0
- package/esm2020/base/axis/x-axis.component.mjs +55 -0
- package/esm2020/base/axis/y-axis.component.mjs +55 -0
- package/esm2020/base/base.module.mjs +35 -0
- package/esm2020/base/base.types.mjs +2 -0
- package/esm2020/base/chart-options.service.mjs +65 -0
- package/esm2020/base/chart.component.mjs +195 -0
- package/esm2020/base/covalent-echarts-base.mjs +5 -0
- package/esm2020/base/dataset/dataset.component.mjs +52 -0
- package/esm2020/base/public_api.mjs +10 -0
- package/esm2020/base/series/series.component.mjs +91 -0
- package/esm2020/base/series/series.interface.mjs +2 -0
- package/esm2020/base/themes/aqua-splash.mjs +487 -0
- package/esm2020/base/themes/california-coast.mjs +460 -0
- package/esm2020/base/themes/hawaiian-sunrise.mjs +460 -0
- package/esm2020/base/themes/passion-flower.mjs +460 -0
- package/esm2020/base/themes/razzleberry-pie.mjs +487 -0
- package/esm2020/base/themes/teradata-classic.mjs +487 -0
- package/{esm2015/base/themes/razzleberry-pie.js → esm2020/base/themes/teradata-default.mjs} +30 -35
- package/esm2020/base/themes/urban-sunrise.mjs +460 -0
- package/esm2020/base/themes/volcanic-eruption.mjs +460 -0
- package/esm2020/base/utils/assign-defined.mjs +25 -0
- package/esm2020/base/utils/echarts.mjs +49 -0
- package/esm2020/base/utils/index.mjs +3 -0
- package/esm2020/covalent-echarts.mjs +5 -0
- package/esm2020/graph/covalent-echarts-graph.mjs +5 -0
- package/esm2020/graph/graph.component.mjs +185 -0
- package/esm2020/graph/graph.module.mjs +21 -0
- package/esm2020/graph/public_api.mjs +3 -0
- package/esm2020/line/covalent-echarts-line.mjs +5 -0
- package/esm2020/line/line.component.mjs +159 -0
- package/esm2020/line/line.module.mjs +19 -0
- package/esm2020/line/public_api.mjs +3 -0
- package/esm2020/map/covalent-echarts-map.mjs +5 -0
- package/esm2020/map/map.component.mjs +132 -0
- package/esm2020/map/map.module.mjs +19 -0
- package/esm2020/map/public_api.mjs +3 -0
- package/esm2020/pie/covalent-echarts-pie.mjs +5 -0
- package/esm2020/pie/pie.component.mjs +127 -0
- package/esm2020/pie/pie.module.mjs +19 -0
- package/esm2020/pie/public_api.mjs +3 -0
- package/esm2020/public_api.mjs +2 -0
- package/esm2020/sankey/covalent-echarts-sankey.mjs +5 -0
- package/esm2020/sankey/public_api.mjs +3 -0
- package/esm2020/sankey/sankey.component.mjs +117 -0
- package/esm2020/sankey/sankey.module.mjs +21 -0
- package/esm2020/scatter/covalent-echarts-scatter.mjs +5 -0
- package/esm2020/scatter/public_api.mjs +3 -0
- package/esm2020/scatter/scatter.component.mjs +144 -0
- package/esm2020/scatter/scatter.module.mjs +21 -0
- package/esm2020/toolbox/covalent-echarts-toolbox.mjs +5 -0
- package/esm2020/toolbox/public_api.mjs +3 -0
- package/esm2020/toolbox/toolbox.component.mjs +135 -0
- package/esm2020/toolbox/toolbox.module.mjs +24 -0
- package/esm2020/tooltip/covalent-echarts-tooltip.mjs +5 -0
- package/esm2020/tooltip/public_api.mjs +4 -0
- package/esm2020/tooltip/series-tooltip.component.mjs +102 -0
- package/esm2020/tooltip/tooltip.component.mjs +156 -0
- package/esm2020/tooltip/tooltip.module.mjs +28 -0
- package/esm2020/tree/covalent-echarts-tree.mjs +5 -0
- package/esm2020/tree/public_api.mjs +3 -0
- package/esm2020/tree/tree.component.mjs +117 -0
- package/esm2020/tree/tree.module.mjs +19 -0
- package/esm2020/treemap/covalent-echarts-treemap.mjs +5 -0
- package/esm2020/treemap/public_api.mjs +3 -0
- package/esm2020/treemap/treemap.component.mjs +149 -0
- package/esm2020/treemap/treemap.module.mjs +21 -0
- package/esm2020/wordcloud/covalent-echarts-wordcloud.mjs +5 -0
- package/esm2020/wordcloud/public_api.mjs +3 -0
- package/esm2020/wordcloud/wordcloud.component.mjs +92 -0
- package/esm2020/wordcloud/wordcloud.module.mjs +21 -0
- package/fesm2015/covalent-echarts-bar.mjs +158 -0
- package/fesm2015/covalent-echarts-bar.mjs.map +1 -0
- package/fesm2015/{covalent-echarts-base.js → covalent-echarts-base.mjs} +390 -856
- package/fesm2015/covalent-echarts-base.mjs.map +1 -0
- package/fesm2015/covalent-echarts-graph.mjs +210 -0
- package/fesm2015/covalent-echarts-graph.mjs.map +1 -0
- package/fesm2015/covalent-echarts-line.mjs +182 -0
- package/fesm2015/covalent-echarts-line.mjs.map +1 -0
- package/fesm2015/covalent-echarts-map.mjs +155 -0
- package/fesm2015/covalent-echarts-map.mjs.map +1 -0
- package/fesm2015/covalent-echarts-pie.mjs +150 -0
- package/fesm2015/covalent-echarts-pie.mjs.map +1 -0
- package/fesm2015/covalent-echarts-sankey.mjs +142 -0
- package/fesm2015/covalent-echarts-sankey.mjs.map +1 -0
- package/fesm2015/covalent-echarts-scatter.mjs +169 -0
- 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/fesm2015/covalent-echarts-tooltip.mjs +283 -0
- package/fesm2015/covalent-echarts-tooltip.mjs.map +1 -0
- package/fesm2015/covalent-echarts-tree.mjs +140 -0
- package/fesm2015/covalent-echarts-tree.mjs.map +1 -0
- package/fesm2015/covalent-echarts-treemap.mjs +174 -0
- package/fesm2015/covalent-echarts-treemap.mjs.map +1 -0
- package/fesm2015/covalent-echarts-wordcloud.mjs +117 -0
- package/fesm2015/covalent-echarts-wordcloud.mjs.map +1 -0
- package/fesm2015/covalent-echarts.mjs +4 -0
- package/fesm2015/covalent-echarts.mjs.map +1 -0
- package/fesm2020/covalent-echarts-bar.mjs +158 -0
- package/fesm2020/covalent-echarts-bar.mjs.map +1 -0
- package/fesm2020/covalent-echarts-base.mjs +4930 -0
- package/fesm2020/covalent-echarts-base.mjs.map +1 -0
- package/fesm2020/covalent-echarts-graph.mjs +210 -0
- package/fesm2020/covalent-echarts-graph.mjs.map +1 -0
- 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/fesm2020/covalent-echarts-map.mjs.map +1 -0
- package/fesm2020/covalent-echarts-pie.mjs +150 -0
- package/fesm2020/covalent-echarts-pie.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/fesm2020/covalent-echarts-toolbox.mjs +163 -0
- package/fesm2020/covalent-echarts-toolbox.mjs.map +1 -0
- 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/README.md +21 -19
- package/graph/covalent-echarts-graph.d.ts +2 -1
- package/graph/graph.component.d.ts +63 -60
- package/graph/graph.module.d.ts +6 -1
- package/graph/package.json +6 -7
- package/graph/{public-api.d.ts → public_api.d.ts} +0 -0
- package/line/README.md +19 -21
- package/line/covalent-echarts-line.d.ts +2 -1
- package/line/line.component.d.ts +38 -35
- package/line/line.module.d.ts +6 -1
- package/line/package.json +6 -7
- package/line/{public-api.d.ts → public_api.d.ts} +0 -0
- package/map/README.md +19 -17
- package/map/covalent-echarts-map.d.ts +2 -1
- package/map/map.component.d.ts +30 -27
- package/map/map.module.d.ts +6 -1
- package/map/package.json +6 -7
- package/map/{public-api.d.ts → public_api.d.ts} +0 -0
- package/package.json +130 -22
- package/pie/README.md +17 -15
- package/pie/covalent-echarts-pie.d.ts +2 -1
- package/pie/package.json +6 -7
- package/pie/pie.component.d.ts +29 -26
- package/pie/pie.module.d.ts +6 -1
- package/pie/{public-api.d.ts → public_api.d.ts} +0 -0
- package/{index.d.ts → public_api.d.ts} +0 -0
- package/sankey/README.md +22 -20
- package/sankey/covalent-echarts-sankey.d.ts +2 -1
- package/sankey/package.json +6 -7
- package/sankey/{public-api.d.ts → public_api.d.ts} +0 -0
- package/sankey/sankey.component.d.ts +25 -22
- package/sankey/sankey.module.d.ts +6 -1
- package/scatter/README.md +19 -21
- package/scatter/covalent-echarts-scatter.d.ts +2 -1
- package/scatter/package.json +6 -7
- package/scatter/{public-api.d.ts → public_api.d.ts} +0 -0
- package/scatter/scatter.component.d.ts +34 -31
- package/scatter/scatter.module.d.ts +6 -1
- package/toolbox/README.md +12 -11
- package/toolbox/covalent-echarts-toolbox.d.ts +2 -1
- package/toolbox/package.json +6 -7
- package/toolbox/{public-api.d.ts → public_api.d.ts} +0 -0
- package/toolbox/toolbox.component.d.ts +15 -10
- package/toolbox/toolbox.module.d.ts +6 -1
- package/tooltip/README.md +30 -26
- package/tooltip/covalent-echarts-tooltip.d.ts +2 -1
- package/tooltip/package.json +6 -7
- package/tooltip/{public-api.d.ts → public_api.d.ts} +0 -0
- package/tooltip/series-tooltip.component.d.ts +14 -9
- package/tooltip/tooltip.component.d.ts +21 -16
- package/tooltip/tooltip.module.d.ts +7 -1
- package/tree/README.md +20 -18
- package/tree/covalent-echarts-tree.d.ts +2 -1
- package/tree/package.json +6 -7
- package/tree/{public-api.d.ts → public_api.d.ts} +0 -0
- package/tree/tree.component.d.ts +27 -24
- package/tree/tree.module.d.ts +6 -1
- package/treemap/README.md +23 -21
- package/treemap/covalent-echarts-treemap.d.ts +2 -1
- package/treemap/package.json +6 -7
- package/treemap/{public-api.d.ts → public_api.d.ts} +0 -0
- package/treemap/treemap.component.d.ts +40 -37
- package/treemap/treemap.module.d.ts +6 -1
- package/wordcloud/README.md +25 -23
- package/wordcloud/covalent-echarts-wordcloud.d.ts +2 -1
- package/wordcloud/package.json +6 -7
- package/wordcloud/{public-api.d.ts → public_api.d.ts} +0 -0
- package/wordcloud/wordcloud.component.d.ts +17 -14
- package/wordcloud/wordcloud.module.d.ts +6 -1
- package/bar/covalent-echarts-bar.metadata.json +0 -1
- package/bar/index.d.ts +0 -1
- package/base/chart.component.scss +0 -4
- package/base/covalent-echarts-base.metadata.json +0 -1
- package/base/index.d.ts +0 -1
- package/bundles/covalent-echarts-bar.umd.js +0 -588
- package/bundles/covalent-echarts-bar.umd.js.map +0 -1
- package/bundles/covalent-echarts-bar.umd.min.js +0 -16
- package/bundles/covalent-echarts-bar.umd.min.js.map +0 -1
- package/bundles/covalent-echarts-base.umd.js +0 -5750
- package/bundles/covalent-echarts-base.umd.js.map +0 -1
- package/bundles/covalent-echarts-base.umd.min.js +0 -16
- package/bundles/covalent-echarts-base.umd.min.js.map +0 -1
- package/bundles/covalent-echarts-graph.umd.js +0 -745
- package/bundles/covalent-echarts-graph.umd.js.map +0 -1
- package/bundles/covalent-echarts-graph.umd.min.js +0 -16
- package/bundles/covalent-echarts-graph.umd.min.js.map +0 -1
- package/bundles/covalent-echarts-line.umd.js +0 -638
- package/bundles/covalent-echarts-line.umd.js.map +0 -1
- package/bundles/covalent-echarts-line.umd.min.js +0 -16
- package/bundles/covalent-echarts-line.umd.min.js.map +0 -1
- package/bundles/covalent-echarts-map.umd.js +0 -600
- package/bundles/covalent-echarts-map.umd.js.map +0 -1
- package/bundles/covalent-echarts-map.umd.min.js +0 -16
- package/bundles/covalent-echarts-map.umd.min.js.map +0 -1
- package/bundles/covalent-echarts-pie.umd.js +0 -574
- package/bundles/covalent-echarts-pie.umd.js.map +0 -1
- package/bundles/covalent-echarts-pie.umd.min.js +0 -16
- package/bundles/covalent-echarts-pie.umd.min.js.map +0 -1
- package/bundles/covalent-echarts-sankey.umd.js +0 -570
- package/bundles/covalent-echarts-sankey.umd.js.map +0 -1
- package/bundles/covalent-echarts-sankey.umd.min.js +0 -16
- package/bundles/covalent-echarts-sankey.umd.min.js.map +0 -1
- package/bundles/covalent-echarts-scatter.umd.js +0 -610
- package/bundles/covalent-echarts-scatter.umd.js.map +0 -1
- package/bundles/covalent-echarts-scatter.umd.min.js +0 -16
- package/bundles/covalent-echarts-scatter.umd.min.js.map +0 -1
- package/bundles/covalent-echarts-toolbox.umd.js +0 -460
- package/bundles/covalent-echarts-toolbox.umd.js.map +0 -1
- package/bundles/covalent-echarts-toolbox.umd.min.js +0 -2
- package/bundles/covalent-echarts-toolbox.umd.min.js.map +0 -1
- package/bundles/covalent-echarts-tooltip.umd.js +0 -476
- package/bundles/covalent-echarts-tooltip.umd.js.map +0 -1
- package/bundles/covalent-echarts-tooltip.umd.min.js +0 -2
- package/bundles/covalent-echarts-tooltip.umd.min.js.map +0 -1
- package/bundles/covalent-echarts-tree.umd.js +0 -584
- package/bundles/covalent-echarts-tree.umd.js.map +0 -1
- package/bundles/covalent-echarts-tree.umd.min.js +0 -16
- package/bundles/covalent-echarts-tree.umd.min.js.map +0 -1
- package/bundles/covalent-echarts-treemap.umd.js +0 -728
- package/bundles/covalent-echarts-treemap.umd.js.map +0 -1
- package/bundles/covalent-echarts-treemap.umd.min.js +0 -16
- package/bundles/covalent-echarts-treemap.umd.min.js.map +0 -1
- package/bundles/covalent-echarts-wordcloud.umd.js +0 -521
- package/bundles/covalent-echarts-wordcloud.umd.js.map +0 -1
- package/bundles/covalent-echarts-wordcloud.umd.min.js +0 -16
- package/bundles/covalent-echarts-wordcloud.umd.min.js.map +0 -1
- package/bundles/covalent-echarts.umd.js +0 -9
- package/bundles/covalent-echarts.umd.js.map +0 -1
- package/bundles/covalent-echarts.umd.min.js +0 -2
- package/bundles/covalent-echarts.umd.min.js.map +0 -1
- package/covalent-echarts.metadata.json +0 -1
- package/esm2015/bar/bar.component.js +0 -241
- package/esm2015/bar/bar.module.js +0 -21
- package/esm2015/bar/covalent-echarts-bar.js +0 -10
- package/esm2015/bar/index.js +0 -7
- package/esm2015/bar/public-api.js +0 -8
- package/esm2015/base/axis/axis.component.js +0 -209
- package/esm2015/base/axis/axis.interface.js +0 -324
- package/esm2015/base/axis/x-axis.component.js +0 -67
- package/esm2015/base/axis/y-axis.component.js +0 -67
- package/esm2015/base/base.module.js +0 -31
- package/esm2015/base/base.types.js +0 -278
- package/esm2015/base/chart-options.service.js +0 -115
- package/esm2015/base/chart.component.js +0 -354
- package/esm2015/base/covalent-echarts-base.js +0 -11
- package/esm2015/base/dataset/dataset.component.js +0 -93
- package/esm2015/base/index.js +0 -7
- package/esm2015/base/public-api.js +0 -15
- package/esm2015/base/series/series.component.js +0 -187
- package/esm2015/base/series/series.interface.js +0 -178
- package/esm2015/base/themes/aqua-splash.js +0 -465
- package/esm2015/base/themes/california-coast.js +0 -465
- package/esm2015/base/themes/hawaiian-sunrise.js +0 -465
- package/esm2015/base/themes/passion-flower.js +0 -465
- package/esm2015/base/themes/teradata-classic.js +0 -465
- package/esm2015/base/themes/teradata-default.js +0 -465
- package/esm2015/base/themes/urban-sunrise.js +0 -465
- package/esm2015/base/themes/volcanic-eruption.js +0 -465
- package/esm2015/base/utils/assign-defined.js +0 -37
- package/esm2015/base/utils/echarts.js +0 -60
- package/esm2015/base/utils/index.js +0 -8
- package/esm2015/covalent-echarts.js +0 -10
- package/esm2015/graph/covalent-echarts-graph.js +0 -10
- package/esm2015/graph/graph.component.js +0 -398
- package/esm2015/graph/graph.module.js +0 -21
- package/esm2015/graph/index.js +0 -7
- package/esm2015/graph/public-api.js +0 -8
- package/esm2015/index.js +0 -7
- package/esm2015/line/covalent-echarts-line.js +0 -10
- package/esm2015/line/index.js +0 -7
- package/esm2015/line/line.component.js +0 -291
- package/esm2015/line/line.module.js +0 -21
- package/esm2015/line/public-api.js +0 -8
- package/esm2015/map/covalent-echarts-map.js +0 -10
- package/esm2015/map/index.js +0 -7
- package/esm2015/map/map.component.js +0 -253
- package/esm2015/map/map.module.js +0 -21
- package/esm2015/map/public-api.js +0 -8
- package/esm2015/pie/covalent-echarts-pie.js +0 -10
- package/esm2015/pie/index.js +0 -7
- package/esm2015/pie/pie.component.js +0 -227
- package/esm2015/pie/pie.module.js +0 -21
- package/esm2015/pie/public-api.js +0 -8
- package/esm2015/sankey/covalent-echarts-sankey.js +0 -10
- package/esm2015/sankey/index.js +0 -7
- package/esm2015/sankey/public-api.js +0 -8
- package/esm2015/sankey/sankey.component.js +0 -223
- package/esm2015/sankey/sankey.module.js +0 -21
- package/esm2015/scatter/covalent-echarts-scatter.js +0 -10
- package/esm2015/scatter/index.js +0 -7
- package/esm2015/scatter/public-api.js +0 -8
- package/esm2015/scatter/scatter.component.js +0 -263
- package/esm2015/scatter/scatter.module.js +0 -21
- package/esm2015/toolbox/covalent-echarts-toolbox.js +0 -10
- package/esm2015/toolbox/index.js +0 -7
- package/esm2015/toolbox/public-api.js +0 -8
- package/esm2015/toolbox/toolbox.component.js +0 -405
- package/esm2015/toolbox/toolbox.module.js +0 -21
- package/esm2015/tooltip/covalent-echarts-tooltip.js +0 -10
- package/esm2015/tooltip/index.js +0 -7
- package/esm2015/tooltip/public-api.js +0 -9
- package/esm2015/tooltip/series-tooltip.component.js +0 -170
- package/esm2015/tooltip/tooltip.component.js +0 -246
- package/esm2015/tooltip/tooltip.module.js +0 -26
- package/esm2015/tree/covalent-echarts-tree.js +0 -10
- package/esm2015/tree/index.js +0 -7
- package/esm2015/tree/public-api.js +0 -8
- package/esm2015/tree/tree.component.js +0 -237
- package/esm2015/tree/tree.module.js +0 -21
- package/esm2015/treemap/covalent-echarts-treemap.js +0 -10
- package/esm2015/treemap/index.js +0 -7
- package/esm2015/treemap/public-api.js +0 -8
- package/esm2015/treemap/treemap.component.js +0 -380
- package/esm2015/treemap/treemap.module.js +0 -21
- package/esm2015/wordcloud/covalent-echarts-wordcloud.js +0 -10
- package/esm2015/wordcloud/index.js +0 -7
- package/esm2015/wordcloud/public-api.js +0 -8
- package/esm2015/wordcloud/wordcloud.component.js +0 -174
- package/esm2015/wordcloud/wordcloud.module.js +0 -21
- package/fesm2015/covalent-echarts-bar.js +0 -281
- package/fesm2015/covalent-echarts-bar.js.map +0 -1
- package/fesm2015/covalent-echarts-base.js.map +0 -1
- package/fesm2015/covalent-echarts-graph.js +0 -438
- package/fesm2015/covalent-echarts-graph.js.map +0 -1
- package/fesm2015/covalent-echarts-line.js +0 -331
- package/fesm2015/covalent-echarts-line.js.map +0 -1
- package/fesm2015/covalent-echarts-map.js +0 -293
- package/fesm2015/covalent-echarts-map.js.map +0 -1
- package/fesm2015/covalent-echarts-pie.js +0 -267
- package/fesm2015/covalent-echarts-pie.js.map +0 -1
- package/fesm2015/covalent-echarts-sankey.js +0 -263
- package/fesm2015/covalent-echarts-sankey.js.map +0 -1
- package/fesm2015/covalent-echarts-scatter.js +0 -303
- package/fesm2015/covalent-echarts-scatter.js.map +0 -1
- package/fesm2015/covalent-echarts-toolbox.js +0 -445
- package/fesm2015/covalent-echarts-toolbox.js.map +0 -1
- package/fesm2015/covalent-echarts-tooltip.js +0 -457
- package/fesm2015/covalent-echarts-tooltip.js.map +0 -1
- package/fesm2015/covalent-echarts-tree.js +0 -277
- package/fesm2015/covalent-echarts-tree.js.map +0 -1
- package/fesm2015/covalent-echarts-treemap.js +0 -420
- package/fesm2015/covalent-echarts-treemap.js.map +0 -1
- package/fesm2015/covalent-echarts-wordcloud.js +0 -214
- package/fesm2015/covalent-echarts-wordcloud.js.map +0 -1
- package/fesm2015/covalent-echarts.js +0 -12
- package/fesm2015/covalent-echarts.js.map +0 -1
- package/graph/covalent-echarts-graph.metadata.json +0 -1
- package/graph/index.d.ts +0 -1
- package/line/covalent-echarts-line.metadata.json +0 -1
- package/line/index.d.ts +0 -1
- package/map/covalent-echarts-map.metadata.json +0 -1
- package/map/index.d.ts +0 -1
- package/pie/covalent-echarts-pie.metadata.json +0 -1
- package/pie/index.d.ts +0 -1
- package/sankey/covalent-echarts-sankey.metadata.json +0 -1
- package/sankey/index.d.ts +0 -1
- package/scatter/covalent-echarts-scatter.metadata.json +0 -1
- package/scatter/index.d.ts +0 -1
- package/toolbox/covalent-echarts-toolbox.metadata.json +0 -1
- package/toolbox/index.d.ts +0 -1
- package/tooltip/covalent-echarts-tooltip.metadata.json +0 -1
- package/tooltip/index.d.ts +0 -1
- package/tree/covalent-echarts-tree.metadata.json +0 -1
- package/tree/index.d.ts +0 -1
- package/treemap/covalent-echarts-treemap.metadata.json +0 -1
- package/treemap/index.d.ts +0 -1
- package/wordcloud/covalent-echarts-wordcloud.metadata.json +0 -1
- package/wordcloud/index.d.ts +0 -1
|
@@ -1,445 +0,0 @@
|
|
|
1
|
-
import { Directive, Component, ChangeDetectionStrategy, ChangeDetectorRef, ElementRef, Input, ContentChild, TemplateRef, ViewChild, NgModule } from '@angular/core';
|
|
2
|
-
import { CommonModule } from '@angular/common';
|
|
3
|
-
import 'echarts/lib/component/toolbox';
|
|
4
|
-
import { assignDefined, TdChartOptionsService } from '@covalent/echarts/base';
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* @fileoverview added by tsickle
|
|
8
|
-
* Generated from: toolbox.component.ts
|
|
9
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
10
|
-
*/
|
|
11
|
-
/**
|
|
12
|
-
* @record
|
|
13
|
-
*/
|
|
14
|
-
function ITdAcceptedBrushTypes() { }
|
|
15
|
-
if (false) {
|
|
16
|
-
/** @type {?|undefined} */
|
|
17
|
-
ITdAcceptedBrushTypes.prototype.rect;
|
|
18
|
-
/** @type {?|undefined} */
|
|
19
|
-
ITdAcceptedBrushTypes.prototype.polygon;
|
|
20
|
-
/** @type {?|undefined} */
|
|
21
|
-
ITdAcceptedBrushTypes.prototype.lineX;
|
|
22
|
-
/** @type {?|undefined} */
|
|
23
|
-
ITdAcceptedBrushTypes.prototype.lineY;
|
|
24
|
-
/** @type {?|undefined} */
|
|
25
|
-
ITdAcceptedBrushTypes.prototype.keep;
|
|
26
|
-
/** @type {?|undefined} */
|
|
27
|
-
ITdAcceptedBrushTypes.prototype.clear;
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* @record
|
|
31
|
-
*/
|
|
32
|
-
function ITdAcceptedMagicTypes() { }
|
|
33
|
-
if (false) {
|
|
34
|
-
/** @type {?|undefined} */
|
|
35
|
-
ITdAcceptedMagicTypes.prototype.line;
|
|
36
|
-
/** @type {?|undefined} */
|
|
37
|
-
ITdAcceptedMagicTypes.prototype.bar;
|
|
38
|
-
/** @type {?|undefined} */
|
|
39
|
-
ITdAcceptedMagicTypes.prototype.stack;
|
|
40
|
-
/** @type {?|undefined} */
|
|
41
|
-
ITdAcceptedMagicTypes.prototype.tiled;
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* @record
|
|
45
|
-
*/
|
|
46
|
-
function ITdToolboxIconEmphasis() { }
|
|
47
|
-
/**
|
|
48
|
-
* @record
|
|
49
|
-
*/
|
|
50
|
-
function ITdFeatureIconStyle() { }
|
|
51
|
-
if (false) {
|
|
52
|
-
/** @type {?|undefined} */
|
|
53
|
-
ITdFeatureIconStyle.prototype.textPosition;
|
|
54
|
-
/** @type {?|undefined} */
|
|
55
|
-
ITdFeatureIconStyle.prototype.textAlign;
|
|
56
|
-
/** @type {?|undefined} */
|
|
57
|
-
ITdFeatureIconStyle.prototype.emphasis;
|
|
58
|
-
}
|
|
59
|
-
/**
|
|
60
|
-
* @record
|
|
61
|
-
*/
|
|
62
|
-
function ITdZoomTitles() { }
|
|
63
|
-
if (false) {
|
|
64
|
-
/** @type {?|undefined} */
|
|
65
|
-
ITdZoomTitles.prototype.zoom;
|
|
66
|
-
/** @type {?|undefined} */
|
|
67
|
-
ITdZoomTitles.prototype.back;
|
|
68
|
-
}
|
|
69
|
-
/**
|
|
70
|
-
* @record
|
|
71
|
-
*/
|
|
72
|
-
function ITdSaveAsImage() { }
|
|
73
|
-
if (false) {
|
|
74
|
-
/** @type {?|undefined} */
|
|
75
|
-
ITdSaveAsImage.prototype.type;
|
|
76
|
-
/** @type {?|undefined} */
|
|
77
|
-
ITdSaveAsImage.prototype.name;
|
|
78
|
-
/** @type {?|undefined} */
|
|
79
|
-
ITdSaveAsImage.prototype.backgroundColor;
|
|
80
|
-
/** @type {?|undefined} */
|
|
81
|
-
ITdSaveAsImage.prototype.excludeComponents;
|
|
82
|
-
/** @type {?|undefined} */
|
|
83
|
-
ITdSaveAsImage.prototype.show;
|
|
84
|
-
/** @type {?|undefined} */
|
|
85
|
-
ITdSaveAsImage.prototype.title;
|
|
86
|
-
/** @type {?|undefined} */
|
|
87
|
-
ITdSaveAsImage.prototype.icon;
|
|
88
|
-
/** @type {?|undefined} */
|
|
89
|
-
ITdSaveAsImage.prototype.iconStyle;
|
|
90
|
-
/** @type {?|undefined} */
|
|
91
|
-
ITdSaveAsImage.prototype.pixelRatio;
|
|
92
|
-
}
|
|
93
|
-
/**
|
|
94
|
-
* @record
|
|
95
|
-
*/
|
|
96
|
-
function ITdRestore() { }
|
|
97
|
-
if (false) {
|
|
98
|
-
/** @type {?|undefined} */
|
|
99
|
-
ITdRestore.prototype.show;
|
|
100
|
-
/** @type {?|undefined} */
|
|
101
|
-
ITdRestore.prototype.title;
|
|
102
|
-
/** @type {?|undefined} */
|
|
103
|
-
ITdRestore.prototype.icon;
|
|
104
|
-
/** @type {?|undefined} */
|
|
105
|
-
ITdRestore.prototype.iconStyle;
|
|
106
|
-
}
|
|
107
|
-
/**
|
|
108
|
-
* @record
|
|
109
|
-
*/
|
|
110
|
-
function ITdDataView() { }
|
|
111
|
-
if (false) {
|
|
112
|
-
/** @type {?|undefined} */
|
|
113
|
-
ITdDataView.prototype.show;
|
|
114
|
-
/** @type {?|undefined} */
|
|
115
|
-
ITdDataView.prototype.title;
|
|
116
|
-
/** @type {?|undefined} */
|
|
117
|
-
ITdDataView.prototype.icon;
|
|
118
|
-
/** @type {?|undefined} */
|
|
119
|
-
ITdDataView.prototype.iconStyle;
|
|
120
|
-
/** @type {?|undefined} */
|
|
121
|
-
ITdDataView.prototype.readOnly;
|
|
122
|
-
/** @type {?|undefined} */
|
|
123
|
-
ITdDataView.prototype.optionToContent;
|
|
124
|
-
/** @type {?|undefined} */
|
|
125
|
-
ITdDataView.prototype.contentToOption;
|
|
126
|
-
/** @type {?|undefined} */
|
|
127
|
-
ITdDataView.prototype.lang;
|
|
128
|
-
/** @type {?|undefined} */
|
|
129
|
-
ITdDataView.prototype.textareaColor;
|
|
130
|
-
/** @type {?|undefined} */
|
|
131
|
-
ITdDataView.prototype.textareaBorderColor;
|
|
132
|
-
/** @type {?|undefined} */
|
|
133
|
-
ITdDataView.prototype.textColor;
|
|
134
|
-
/** @type {?|undefined} */
|
|
135
|
-
ITdDataView.prototype.buttonColor;
|
|
136
|
-
/** @type {?|undefined} */
|
|
137
|
-
ITdDataView.prototype.buttonTextColor;
|
|
138
|
-
}
|
|
139
|
-
/**
|
|
140
|
-
* @record
|
|
141
|
-
*/
|
|
142
|
-
function ITdDataZoom() { }
|
|
143
|
-
if (false) {
|
|
144
|
-
/** @type {?|undefined} */
|
|
145
|
-
ITdDataZoom.prototype.show;
|
|
146
|
-
/** @type {?|undefined} */
|
|
147
|
-
ITdDataZoom.prototype.title;
|
|
148
|
-
/** @type {?|undefined} */
|
|
149
|
-
ITdDataZoom.prototype.icon;
|
|
150
|
-
/** @type {?|undefined} */
|
|
151
|
-
ITdDataZoom.prototype.iconStyle;
|
|
152
|
-
/** @type {?|undefined} */
|
|
153
|
-
ITdDataZoom.prototype.xAxisIndex;
|
|
154
|
-
/** @type {?|undefined} */
|
|
155
|
-
ITdDataZoom.prototype.yAxisIndex;
|
|
156
|
-
}
|
|
157
|
-
/**
|
|
158
|
-
* @record
|
|
159
|
-
*/
|
|
160
|
-
function ITdMagicType() { }
|
|
161
|
-
if (false) {
|
|
162
|
-
/** @type {?|undefined} */
|
|
163
|
-
ITdMagicType.prototype.show;
|
|
164
|
-
/** @type {?|undefined} */
|
|
165
|
-
ITdMagicType.prototype.type;
|
|
166
|
-
/** @type {?|undefined} */
|
|
167
|
-
ITdMagicType.prototype.title;
|
|
168
|
-
/** @type {?|undefined} */
|
|
169
|
-
ITdMagicType.prototype.icon;
|
|
170
|
-
/** @type {?|undefined} */
|
|
171
|
-
ITdMagicType.prototype.iconStyle;
|
|
172
|
-
/** @type {?|undefined} */
|
|
173
|
-
ITdMagicType.prototype.option;
|
|
174
|
-
/** @type {?|undefined} */
|
|
175
|
-
ITdMagicType.prototype.seriesIndex;
|
|
176
|
-
}
|
|
177
|
-
/**
|
|
178
|
-
* @record
|
|
179
|
-
*/
|
|
180
|
-
function ITdBrush() { }
|
|
181
|
-
if (false) {
|
|
182
|
-
/** @type {?|undefined} */
|
|
183
|
-
ITdBrush.prototype.type;
|
|
184
|
-
/** @type {?|undefined} */
|
|
185
|
-
ITdBrush.prototype.icon;
|
|
186
|
-
/** @type {?|undefined} */
|
|
187
|
-
ITdBrush.prototype.title;
|
|
188
|
-
}
|
|
189
|
-
/**
|
|
190
|
-
* @record
|
|
191
|
-
*/
|
|
192
|
-
function ITdToolboxFeature() { }
|
|
193
|
-
if (false) {
|
|
194
|
-
/** @type {?|undefined} */
|
|
195
|
-
ITdToolboxFeature.prototype.saveAsImage;
|
|
196
|
-
/** @type {?|undefined} */
|
|
197
|
-
ITdToolboxFeature.prototype.restore;
|
|
198
|
-
/** @type {?|undefined} */
|
|
199
|
-
ITdToolboxFeature.prototype.dataView;
|
|
200
|
-
/** @type {?|undefined} */
|
|
201
|
-
ITdToolboxFeature.prototype.dataZoom;
|
|
202
|
-
/** @type {?|undefined} */
|
|
203
|
-
ITdToolboxFeature.prototype.magicType;
|
|
204
|
-
/** @type {?|undefined} */
|
|
205
|
-
ITdToolboxFeature.prototype.brush;
|
|
206
|
-
}
|
|
207
|
-
class TdChartViewDataFormatterDirective {
|
|
208
|
-
}
|
|
209
|
-
TdChartViewDataFormatterDirective.decorators = [
|
|
210
|
-
{ type: Directive, args: [{
|
|
211
|
-
selector: 'ng-template[tdViewDataFormatter]',
|
|
212
|
-
},] }
|
|
213
|
-
];
|
|
214
|
-
class TdChartToolboxComponent {
|
|
215
|
-
/**
|
|
216
|
-
* @param {?} _changeDetectorRef
|
|
217
|
-
* @param {?} _elementRef
|
|
218
|
-
* @param {?} _optionsService
|
|
219
|
-
*/
|
|
220
|
-
constructor(_changeDetectorRef, _elementRef, _optionsService) {
|
|
221
|
-
this._changeDetectorRef = _changeDetectorRef;
|
|
222
|
-
this._elementRef = _elementRef;
|
|
223
|
-
this._optionsService = _optionsService;
|
|
224
|
-
this._state = {};
|
|
225
|
-
this.config = {};
|
|
226
|
-
this.show = true;
|
|
227
|
-
this.showTitle = true;
|
|
228
|
-
this.transitionDuration = 0.5;
|
|
229
|
-
this.left = 'auto';
|
|
230
|
-
this.top = 'auto';
|
|
231
|
-
this.right = 'auto';
|
|
232
|
-
this.bottom = 'auto';
|
|
233
|
-
this.width = 'auto';
|
|
234
|
-
this.height = 'auto';
|
|
235
|
-
}
|
|
236
|
-
/**
|
|
237
|
-
* @return {?}
|
|
238
|
-
*/
|
|
239
|
-
ngOnChanges() {
|
|
240
|
-
this._setOptions();
|
|
241
|
-
}
|
|
242
|
-
/**
|
|
243
|
-
* @return {?}
|
|
244
|
-
*/
|
|
245
|
-
ngOnDestroy() {
|
|
246
|
-
this._removeOption();
|
|
247
|
-
}
|
|
248
|
-
/**
|
|
249
|
-
* @private
|
|
250
|
-
* @return {?}
|
|
251
|
-
*/
|
|
252
|
-
_setOptions() {
|
|
253
|
-
this._checkFormatterTemplate();
|
|
254
|
-
/** @type {?} */
|
|
255
|
-
const config = assignDefined(this._state, {
|
|
256
|
-
show: this.show,
|
|
257
|
-
name: this.trigger,
|
|
258
|
-
orient: this.orient,
|
|
259
|
-
itemSize: this.itemSize,
|
|
260
|
-
itemGap: this.itemGap,
|
|
261
|
-
showTitle: this.showTitle,
|
|
262
|
-
label: this.label,
|
|
263
|
-
feature: this.feature,
|
|
264
|
-
iconStyle: this.iconStyle,
|
|
265
|
-
zlevel: this.zlevel,
|
|
266
|
-
z: this.z,
|
|
267
|
-
transitionDuration: this.transitionDuration,
|
|
268
|
-
left: this.left,
|
|
269
|
-
top: this.top,
|
|
270
|
-
right: this.right,
|
|
271
|
-
bottom: this.bottom,
|
|
272
|
-
width: this.width,
|
|
273
|
-
height: this.height,
|
|
274
|
-
}, this.config ? this.config : {});
|
|
275
|
-
// set toolbox configuration in parent chart and render new configurations
|
|
276
|
-
this._optionsService.setOption('toolbox', config);
|
|
277
|
-
}
|
|
278
|
-
/**
|
|
279
|
-
* @private
|
|
280
|
-
* @return {?}
|
|
281
|
-
*/
|
|
282
|
-
_removeOption() {
|
|
283
|
-
this._optionsService.clearOption('toolbox');
|
|
284
|
-
}
|
|
285
|
-
/**
|
|
286
|
-
* @private
|
|
287
|
-
* @return {?}
|
|
288
|
-
*/
|
|
289
|
-
_checkFormatterTemplate() {
|
|
290
|
-
if (this.formatterTemplate) {
|
|
291
|
-
this.feature = Object.assign(Object.assign({}, this.feature), { dataView: Object.assign(Object.assign({}, this.feature.dataView), { optionToContent: this._optionToContentFormatter() }) });
|
|
292
|
-
}
|
|
293
|
-
}
|
|
294
|
-
/**
|
|
295
|
-
* @private
|
|
296
|
-
* @return {?}
|
|
297
|
-
*/
|
|
298
|
-
_optionToContentFormatter() {
|
|
299
|
-
return (/**
|
|
300
|
-
* @return {?}
|
|
301
|
-
*/
|
|
302
|
-
() => {
|
|
303
|
-
this._changeDetectorRef.markForCheck();
|
|
304
|
-
return ((/** @type {?} */ (this._elementRef.nativeElement))).innerHTML;
|
|
305
|
-
});
|
|
306
|
-
}
|
|
307
|
-
}
|
|
308
|
-
TdChartToolboxComponent.decorators = [
|
|
309
|
-
{ type: Component, args: [{
|
|
310
|
-
selector: 'td-chart-toolbox',
|
|
311
|
-
template: "<ng-template #toolboxContent [ngTemplateOutlet]=\"formatterTemplate\"></ng-template>\n",
|
|
312
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
|
313
|
-
}] }
|
|
314
|
-
];
|
|
315
|
-
/** @nocollapse */
|
|
316
|
-
TdChartToolboxComponent.ctorParameters = () => [
|
|
317
|
-
{ type: ChangeDetectorRef },
|
|
318
|
-
{ type: ElementRef },
|
|
319
|
-
{ type: TdChartOptionsService }
|
|
320
|
-
];
|
|
321
|
-
TdChartToolboxComponent.propDecorators = {
|
|
322
|
-
config: [{ type: Input }],
|
|
323
|
-
show: [{ type: Input }],
|
|
324
|
-
trigger: [{ type: Input }],
|
|
325
|
-
orient: [{ type: Input }],
|
|
326
|
-
itemSize: [{ type: Input }],
|
|
327
|
-
itemGap: [{ type: Input }],
|
|
328
|
-
showTitle: [{ type: Input }],
|
|
329
|
-
label: [{ type: Input }],
|
|
330
|
-
feature: [{ type: Input }],
|
|
331
|
-
iconStyle: [{ type: Input }],
|
|
332
|
-
zlevel: [{ type: Input }],
|
|
333
|
-
z: [{ type: Input }],
|
|
334
|
-
transitionDuration: [{ type: Input }],
|
|
335
|
-
left: [{ type: Input }],
|
|
336
|
-
top: [{ type: Input }],
|
|
337
|
-
right: [{ type: Input }],
|
|
338
|
-
bottom: [{ type: Input }],
|
|
339
|
-
width: [{ type: Input }],
|
|
340
|
-
height: [{ type: Input }],
|
|
341
|
-
formatterTemplate: [{ type: ContentChild, args: [TdChartViewDataFormatterDirective, { read: TemplateRef },] }],
|
|
342
|
-
fullTemplate: [{ type: ViewChild, args: ['toolboxContent', { static: true },] }]
|
|
343
|
-
};
|
|
344
|
-
if (false) {
|
|
345
|
-
/**
|
|
346
|
-
* @type {?}
|
|
347
|
-
* @private
|
|
348
|
-
*/
|
|
349
|
-
TdChartToolboxComponent.prototype._state;
|
|
350
|
-
/** @type {?} */
|
|
351
|
-
TdChartToolboxComponent.prototype.config;
|
|
352
|
-
/** @type {?} */
|
|
353
|
-
TdChartToolboxComponent.prototype.show;
|
|
354
|
-
/** @type {?} */
|
|
355
|
-
TdChartToolboxComponent.prototype.trigger;
|
|
356
|
-
/** @type {?} */
|
|
357
|
-
TdChartToolboxComponent.prototype.orient;
|
|
358
|
-
/** @type {?} */
|
|
359
|
-
TdChartToolboxComponent.prototype.itemSize;
|
|
360
|
-
/** @type {?} */
|
|
361
|
-
TdChartToolboxComponent.prototype.itemGap;
|
|
362
|
-
/** @type {?} */
|
|
363
|
-
TdChartToolboxComponent.prototype.showTitle;
|
|
364
|
-
/** @type {?} */
|
|
365
|
-
TdChartToolboxComponent.prototype.label;
|
|
366
|
-
/** @type {?} */
|
|
367
|
-
TdChartToolboxComponent.prototype.feature;
|
|
368
|
-
/** @type {?} */
|
|
369
|
-
TdChartToolboxComponent.prototype.iconStyle;
|
|
370
|
-
/** @type {?} */
|
|
371
|
-
TdChartToolboxComponent.prototype.zlevel;
|
|
372
|
-
/** @type {?} */
|
|
373
|
-
TdChartToolboxComponent.prototype.z;
|
|
374
|
-
/** @type {?} */
|
|
375
|
-
TdChartToolboxComponent.prototype.transitionDuration;
|
|
376
|
-
/** @type {?} */
|
|
377
|
-
TdChartToolboxComponent.prototype.left;
|
|
378
|
-
/** @type {?} */
|
|
379
|
-
TdChartToolboxComponent.prototype.top;
|
|
380
|
-
/** @type {?} */
|
|
381
|
-
TdChartToolboxComponent.prototype.right;
|
|
382
|
-
/** @type {?} */
|
|
383
|
-
TdChartToolboxComponent.prototype.bottom;
|
|
384
|
-
/** @type {?} */
|
|
385
|
-
TdChartToolboxComponent.prototype.width;
|
|
386
|
-
/** @type {?} */
|
|
387
|
-
TdChartToolboxComponent.prototype.height;
|
|
388
|
-
/** @type {?} */
|
|
389
|
-
TdChartToolboxComponent.prototype.formatterTemplate;
|
|
390
|
-
/** @type {?} */
|
|
391
|
-
TdChartToolboxComponent.prototype.fullTemplate;
|
|
392
|
-
/**
|
|
393
|
-
* @type {?}
|
|
394
|
-
* @private
|
|
395
|
-
*/
|
|
396
|
-
TdChartToolboxComponent.prototype._changeDetectorRef;
|
|
397
|
-
/**
|
|
398
|
-
* @type {?}
|
|
399
|
-
* @private
|
|
400
|
-
*/
|
|
401
|
-
TdChartToolboxComponent.prototype._elementRef;
|
|
402
|
-
/**
|
|
403
|
-
* @type {?}
|
|
404
|
-
* @private
|
|
405
|
-
*/
|
|
406
|
-
TdChartToolboxComponent.prototype._optionsService;
|
|
407
|
-
}
|
|
408
|
-
|
|
409
|
-
/**
|
|
410
|
-
* @fileoverview added by tsickle
|
|
411
|
-
* Generated from: toolbox.module.ts
|
|
412
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
413
|
-
*/
|
|
414
|
-
/** @type {?} */
|
|
415
|
-
const TOOLBOX_MODULE_COMPONENTS = [TdChartToolboxComponent, TdChartViewDataFormatterDirective];
|
|
416
|
-
class CovalentToolboxEchartsModule {
|
|
417
|
-
}
|
|
418
|
-
CovalentToolboxEchartsModule.decorators = [
|
|
419
|
-
{ type: NgModule, args: [{
|
|
420
|
-
imports: [CommonModule],
|
|
421
|
-
declarations: [TOOLBOX_MODULE_COMPONENTS],
|
|
422
|
-
exports: [TOOLBOX_MODULE_COMPONENTS],
|
|
423
|
-
},] }
|
|
424
|
-
];
|
|
425
|
-
|
|
426
|
-
/**
|
|
427
|
-
* @fileoverview added by tsickle
|
|
428
|
-
* Generated from: public-api.ts
|
|
429
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
430
|
-
*/
|
|
431
|
-
|
|
432
|
-
/**
|
|
433
|
-
* @fileoverview added by tsickle
|
|
434
|
-
* Generated from: index.ts
|
|
435
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
436
|
-
*/
|
|
437
|
-
|
|
438
|
-
/**
|
|
439
|
-
* @fileoverview added by tsickle
|
|
440
|
-
* Generated from: covalent-echarts-toolbox.ts
|
|
441
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
442
|
-
*/
|
|
443
|
-
|
|
444
|
-
export { CovalentToolboxEchartsModule, TOOLBOX_MODULE_COMPONENTS, TdChartToolboxComponent, TdChartViewDataFormatterDirective };
|
|
445
|
-
//# sourceMappingURL=covalent-echarts-toolbox.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"covalent-echarts-toolbox.js","sources":["../../../../src/platform/echarts/toolbox/toolbox.component.ts","../../../../src/platform/echarts/toolbox/toolbox.module.ts"],"sourcesContent":["import {\n Component,\n Input,\n Directive,\n TemplateRef,\n ChangeDetectionStrategy,\n ElementRef,\n ChangeDetectorRef,\n OnChanges,\n ContentChild,\n ViewChild,\n OnDestroy,\n} from '@angular/core';\n\nimport {\n TdChartOptionsService,\n assignDefined,\n ITdLabel,\n ITdShadow,\n ITdItemStyle,\n TdTextPosition,\n TdTextAlign,\n} from '@covalent/echarts/base';\n\nexport type TdToolboxOrient = 'horizontal' | 'vertical';\nexport type TdImageType = 'png' | 'jpeg';\n\nexport interface ITdAcceptedBrushTypes {\n rect?: string;\n polygon?: string;\n lineX?: string;\n lineY?: string;\n keep?: string;\n clear?: string;\n}\n\nexport interface ITdAcceptedMagicTypes {\n line?: string;\n bar?: string;\n stack?: string;\n tiled?: string;\n}\n\nexport interface ITdToolboxIconEmphasis extends ITdItemStyle, ITdShadow {}\n\nexport interface ITdFeatureIconStyle extends ITdItemStyle, ITdShadow {\n textPosition?: TdTextPosition;\n textAlign?: TdTextAlign;\n emphasis?: ITdToolboxIconEmphasis;\n}\n\nexport interface ITdZoomTitles {\n zoom?: string;\n back?: string;\n}\n\nexport interface ITdSaveAsImage {\n type?: TdImageType;\n name?: string;\n backgroundColor?: any;\n excludeComponents?: string[]; // defaults to ['toolbox']\n show?: boolean;\n title?: string;\n icon?: string;\n iconStyle?: ITdFeatureIconStyle;\n pixelRatio?: number;\n}\n\nexport interface ITdRestore {\n show?: boolean;\n title?: string;\n icon?: string;\n iconStyle?: ITdFeatureIconStyle;\n}\n\nexport interface ITdDataView {\n show?: boolean;\n title?: string;\n icon?: string;\n iconStyle?: ITdFeatureIconStyle;\n readOnly?: boolean;\n optionToContent?: Function;\n contentToOption?: Function;\n lang?: string[]; // Defaults to Chinese, there are 3 names in data view, which are ['data view', 'turn off' and 'refresh'].\n textareaColor?: string;\n textareaBorderColor?: string;\n textColor?: string;\n buttonColor?: string;\n buttonTextColor?: string;\n}\n\nexport interface ITdDataZoom {\n show?: boolean;\n title?: ITdZoomTitles;\n icon?: ITdZoomTitles;\n iconStyle?: ITdFeatureIconStyle;\n xAxisIndex?: number | number[] | boolean;\n yAxisIndex?: number | number[] | boolean;\n}\n\nexport interface ITdMagicType {\n show?: boolean;\n type?: string[]; // only expects 'line' | 'bar' | 'stack' | 'tiled';\n title?: ITdAcceptedMagicTypes;\n icon?: ITdAcceptedMagicTypes;\n iconStyle?: ITdFeatureIconStyle;\n option?: {\n line?: object;\n bar?: object;\n stack?: object;\n tiled?: object;\n };\n seriesIndex?: {\n line?: any[];\n bar?: any[];\n stack?: any[];\n tiled?: any[];\n };\n}\n\nexport interface ITdBrush {\n type?: any[];\n icon?: ITdAcceptedBrushTypes;\n title?: ITdAcceptedBrushTypes;\n}\n\nexport interface ITdToolboxFeature {\n saveAsImage?: ITdSaveAsImage;\n restore?: ITdRestore;\n dataView?: ITdDataView;\n dataZoom?: ITdDataZoom;\n magicType?: ITdMagicType;\n brush?: ITdBrush;\n}\n\n@Directive({\n selector: 'ng-template[tdViewDataFormatter]',\n})\nexport class TdChartViewDataFormatterDirective {}\n\n@Component({\n selector: 'td-chart-toolbox',\n templateUrl: './toolbox.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TdChartToolboxComponent implements OnChanges, OnDestroy {\n private _state: any = {};\n\n @Input() config: any = {};\n\n @Input() show: boolean = true;\n @Input() trigger: string;\n @Input() orient: TdToolboxOrient;\n @Input() itemSize: number;\n @Input() itemGap: number;\n @Input() showTitle: boolean = true;\n @Input() label: ITdLabel;\n @Input() feature: ITdToolboxFeature;\n @Input() iconStyle: ITdFeatureIconStyle;\n @Input() zlevel: number;\n @Input() z: number;\n @Input() transitionDuration: number = 0.5;\n @Input() left: string | number = 'auto';\n @Input() top: string | number = 'auto';\n @Input() right: string | number = 'auto';\n @Input() bottom: string | number = 'auto';\n @Input() width: string | number = 'auto';\n @Input() height: string | number = 'auto';\n\n @ContentChild(TdChartViewDataFormatterDirective, { read: TemplateRef })\n formatterTemplate: TemplateRef<any>;\n @ViewChild('toolboxContent', { static: true }) fullTemplate: TemplateRef<any>;\n\n constructor(\n private _changeDetectorRef: ChangeDetectorRef,\n private _elementRef: ElementRef,\n private _optionsService: TdChartOptionsService,\n ) {}\n\n ngOnChanges(): void {\n this._setOptions();\n }\n\n ngOnDestroy(): void {\n this._removeOption();\n }\n\n private _setOptions(): void {\n this._checkFormatterTemplate();\n\n const config: any = assignDefined(\n this._state,\n {\n show: this.show,\n name: this.trigger,\n orient: this.orient,\n itemSize: this.itemSize,\n itemGap: this.itemGap,\n showTitle: this.showTitle,\n label: this.label,\n feature: this.feature,\n iconStyle: this.iconStyle,\n zlevel: this.zlevel,\n z: this.z,\n transitionDuration: this.transitionDuration,\n left: this.left,\n top: this.top,\n right: this.right,\n bottom: this.bottom,\n width: this.width,\n height: this.height,\n },\n this.config ? this.config : {},\n );\n // set toolbox configuration in parent chart and render new configurations\n this._optionsService.setOption('toolbox', config);\n }\n\n private _removeOption(): void {\n this._optionsService.clearOption('toolbox');\n }\n\n private _checkFormatterTemplate(): void {\n if (this.formatterTemplate) {\n this.feature = {\n ...this.feature,\n dataView: {\n ...this.feature.dataView,\n optionToContent: this._optionToContentFormatter(),\n },\n };\n }\n }\n\n private _optionToContentFormatter(): () => string {\n return () => {\n this._changeDetectorRef.markForCheck();\n return (<HTMLElement>this._elementRef.nativeElement).innerHTML;\n };\n }\n}\n","import { NgModule, Type } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nimport 'echarts/lib/component/toolbox';\n\nimport { TdChartToolboxComponent, TdChartViewDataFormatterDirective } from './toolbox.component';\n\nexport const TOOLBOX_MODULE_COMPONENTS: Type<any>[] = [TdChartToolboxComponent, TdChartViewDataFormatterDirective];\n\n@NgModule({\n imports: [CommonModule],\n declarations: [TOOLBOX_MODULE_COMPONENTS],\n exports: [TOOLBOX_MODULE_COMPONENTS],\n})\nexport class CovalentToolboxEchartsModule {}\n"],"names":[],"mappings":";;;;;;;;;;;;;oCAkCC;;;IANC,qCAAc;;IACd,wCAAiB;;IACjB,sCAAe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