@tetacom/svg-charts 1.1.1 → 1.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (266) hide show
  1. package/{dist/chart → chart}/base/series-base.component.d.ts +3 -1
  2. package/{dist/chart → chart}/chart/chart.component.d.ts +0 -0
  3. package/{dist/chart → chart}/chart-container/chart-container.component.d.ts +0 -0
  4. package/{dist/chart → chart}/chart-container/gridlines/gridlines.component.d.ts +0 -0
  5. package/{dist/chart → chart}/chart-container/plotband/plot-band.component.d.ts +1 -0
  6. package/{dist/chart → chart}/chart-container/plotline/plotline.component.d.ts +0 -0
  7. package/chart/chart-container/series/area-series/area-series.component.d.ts +31 -0
  8. package/{dist/chart → chart}/chart-container/series/bar/bar-series.component.d.ts +0 -0
  9. package/chart/chart-container/series/block-area-series/block-area-series.component.d.ts +28 -0
  10. package/chart/chart-container/series/block-series/block-series.component.d.ts +28 -0
  11. package/{dist/chart → chart}/chart-container/series/line/line-series.component.d.ts +0 -0
  12. package/chart/chart-container/series/public-api.d.ts +6 -0
  13. package/{dist/chart → chart}/chart-container/series/scatter-series/scatter-series.component.d.ts +0 -0
  14. package/{dist/chart → chart}/chart-container/series-host/series-host.component.d.ts +0 -1
  15. package/{dist/chart → chart}/chart-container/tooltip/tooltip.component.d.ts +4 -3
  16. package/{dist/chart → chart}/chart-container/x-axis/x-axis.component.d.ts +0 -0
  17. package/{dist/chart → chart}/chart-container/y-axis/y-axis.component.d.ts +0 -0
  18. package/{dist/chart → chart}/chart.module.d.ts +6 -3
  19. package/{dist/chart → chart}/core/axis/axis.d.ts +0 -0
  20. package/{dist/chart → chart}/core/axis/builders/axis-size-builder.d.ts +0 -0
  21. package/{dist/chart → chart}/core/axis/builders/extremes-builder.d.ts +0 -0
  22. package/{dist/chart → chart}/core/axis/builders/public-api.d.ts +0 -0
  23. package/{dist/chart → chart}/core/utils/generate-ticks.d.ts +0 -0
  24. package/{dist/chart → chart}/core/utils/get-text-width.d.ts +0 -0
  25. package/{dist/chart → chart}/core/utils/public-api.d.ts +0 -0
  26. package/{dist/chart → chart}/default/default-axis-config.d.ts +0 -0
  27. package/{dist/chart → chart}/default/default-chart-config.d.ts +0 -0
  28. package/{dist/chart → chart}/default/default-series-config.d.ts +0 -0
  29. package/chart/default/defaultSeriesTypeMapping.d.ts +3 -0
  30. package/{dist/chart → chart}/directives/brushable.directive.d.ts +0 -0
  31. package/{dist/chart → chart}/directives/zoomable.directive.d.ts +2 -1
  32. package/{dist/chart → chart}/legend/legend.component.d.ts +0 -0
  33. package/{dist/chart → chart}/model/axis-options.d.ts +1 -0
  34. package/{dist/chart → chart}/model/base-point.d.ts +3 -1
  35. package/{dist/chart → chart}/model/chart-bounds.d.ts +0 -0
  36. package/{dist/chart → chart}/model/enum/axis-orientation.d.ts +0 -0
  37. package/{dist/chart → chart}/model/enum/brush-type.d.ts +0 -0
  38. package/{dist/chart → chart}/model/enum/drag-point-type.d.ts +0 -0
  39. package/chart/model/enum/fill-type.d.ts +4 -0
  40. package/{dist/chart → chart}/model/enum/public-api.d.ts +1 -0
  41. package/{dist/chart → chart}/model/enum/scale-type.d.ts +0 -0
  42. package/chart/model/enum/series-type.d.ts +8 -0
  43. package/{dist/chart → chart}/model/enum/tooltip-tracking.d.ts +0 -0
  44. package/{dist/chart → chart}/model/enum/zoom-type.d.ts +0 -0
  45. package/{dist/chart → chart}/model/i-broadcast-message.d.ts +1 -1
  46. package/{dist/chart → chart}/model/i-builder.d.ts +0 -0
  47. package/{dist/chart → chart}/model/i-chart-config.d.ts +3 -2
  48. package/{dist/chart → chart}/model/i-chart-event.d.ts +0 -0
  49. package/{dist/chart → chart}/model/i-display-tooltip.d.ts +0 -0
  50. package/{dist/chart → chart}/model/i-point-move.d.ts +0 -0
  51. package/{dist/chart → chart}/model/marker-options.d.ts +0 -0
  52. package/{dist/chart → chart}/model/plot-band.d.ts +0 -0
  53. package/{dist/chart → chart}/model/plot-line.d.ts +0 -0
  54. package/{dist/chart → chart}/model/public-api.d.ts +1 -0
  55. package/{dist/chart → chart}/model/series.d.ts +2 -0
  56. package/{dist/chart → chart}/model/svg-attributes.d.ts +0 -0
  57. package/{dist/chart → chart}/model/tooltip-options.d.ts +2 -1
  58. package/{dist/chart → chart}/service/broadcast.service.d.ts +0 -0
  59. package/{dist/chart → chart}/service/brush.service.d.ts +6 -2
  60. package/{dist/chart → chart}/service/chart.service.d.ts +0 -0
  61. package/chart/service/public-api.d.ts +5 -0
  62. package/{dist/chart → chart}/service/scale.service.d.ts +0 -0
  63. package/{dist/chart → chart}/service/zoom.service.d.ts +4 -2
  64. package/esm2020/chart/base/series-base.component.mjs +39 -0
  65. package/{dist/esm2020 → esm2020}/chart/chart/chart.component.mjs +0 -0
  66. package/esm2020/chart/chart-container/chart-container.component.mjs +138 -0
  67. package/{dist/esm2020 → esm2020}/chart/chart-container/gridlines/gridlines.component.mjs +0 -0
  68. package/esm2020/chart/chart-container/plotband/plot-band.component.mjs +142 -0
  69. package/{dist/esm2020 → esm2020}/chart/chart-container/plotline/plotline.component.mjs +0 -0
  70. package/esm2020/chart/chart-container/series/area-series/area-series.component.mjs +161 -0
  71. package/{dist/esm2020 → esm2020}/chart/chart-container/series/bar/bar-series.component.mjs +0 -0
  72. package/esm2020/chart/chart-container/series/block-area-series/block-area-series.component.mjs +60 -0
  73. package/esm2020/chart/chart-container/series/block-series/block-series.component.mjs +60 -0
  74. package/esm2020/chart/chart-container/series/line/line-series.component.mjs +155 -0
  75. package/esm2020/chart/chart-container/series/public-api.mjs +7 -0
  76. package/esm2020/chart/chart-container/series/scatter-series/scatter-series.component.mjs +101 -0
  77. package/esm2020/chart/chart-container/series-host/series-host.component.mjs +61 -0
  78. package/esm2020/chart/chart-container/tooltip/tooltip.component.mjs +83 -0
  79. package/{dist/esm2020 → esm2020}/chart/chart-container/x-axis/x-axis.component.mjs +0 -0
  80. package/{dist/esm2020 → esm2020}/chart/chart-container/y-axis/y-axis.component.mjs +0 -0
  81. package/esm2020/chart/chart.module.mjs +90 -0
  82. package/{dist/esm2020 → esm2020}/chart/core/axis/axis.mjs +0 -0
  83. package/{dist/esm2020 → esm2020}/chart/core/axis/builders/axis-size-builder.mjs +0 -0
  84. package/{dist/esm2020 → esm2020}/chart/core/axis/builders/extremes-builder.mjs +0 -0
  85. package/{dist/esm2020 → esm2020}/chart/core/axis/builders/public-api.mjs +0 -0
  86. package/{dist/esm2020 → esm2020}/chart/core/utils/generate-ticks.mjs +0 -0
  87. package/{dist/esm2020 → esm2020}/chart/core/utils/get-text-width.mjs +0 -0
  88. package/{dist/esm2020 → esm2020}/chart/core/utils/public-api.mjs +0 -0
  89. package/{dist/esm2020 → esm2020}/chart/default/default-axis-config.mjs +2 -1
  90. package/{dist/esm2020 → esm2020}/chart/default/default-chart-config.mjs +0 -0
  91. package/esm2020/chart/default/default-series-config.mjs +11 -0
  92. package/esm2020/chart/default/defaultSeriesTypeMapping.mjs +15 -0
  93. package/{dist/esm2020 → esm2020}/chart/directives/brushable.directive.mjs +2 -2
  94. package/{dist/esm2020 → esm2020}/chart/directives/zoomable.directive.mjs +5 -3
  95. package/{dist/esm2020 → esm2020}/chart/legend/legend.component.mjs +5 -2
  96. package/{dist/esm2020 → esm2020}/chart/model/axis-options.mjs +1 -1
  97. package/{dist/esm2020 → esm2020}/chart/model/base-point.mjs +1 -1
  98. package/{dist/esm2020 → esm2020}/chart/model/chart-bounds.mjs +0 -0
  99. package/{dist/esm2020 → esm2020}/chart/model/enum/axis-orientation.mjs +0 -0
  100. package/{dist/esm2020 → esm2020}/chart/model/enum/brush-type.mjs +0 -0
  101. package/{dist/esm2020 → esm2020}/chart/model/enum/drag-point-type.mjs +0 -0
  102. package/esm2020/chart/model/enum/fill-type.mjs +6 -0
  103. package/{dist/esm2020 → esm2020}/chart/model/enum/public-api.mjs +2 -1
  104. package/{dist/esm2020 → esm2020}/chart/model/enum/scale-type.mjs +0 -0
  105. package/esm2020/chart/model/enum/series-type.mjs +10 -0
  106. package/{dist/esm2020 → esm2020}/chart/model/enum/tooltip-tracking.mjs +0 -0
  107. package/{dist/esm2020 → esm2020}/chart/model/enum/zoom-type.mjs +0 -0
  108. package/{dist/esm2020 → esm2020}/chart/model/i-broadcast-message.mjs +1 -1
  109. package/{dist/esm2020 → esm2020}/chart/model/i-builder.mjs +0 -0
  110. package/{dist/esm2020 → esm2020}/chart/model/i-chart-config.mjs +1 -1
  111. package/{dist/esm2020 → esm2020}/chart/model/i-chart-event.mjs +0 -0
  112. package/{dist/esm2020 → esm2020}/chart/model/i-display-tooltip.mjs +0 -0
  113. package/{dist/esm2020 → esm2020}/chart/model/i-point-move.mjs +0 -0
  114. package/{dist/esm2020 → esm2020}/chart/model/marker-options.mjs +0 -0
  115. package/{dist/esm2020 → esm2020}/chart/model/plot-band.mjs +0 -0
  116. package/{dist/esm2020 → esm2020}/chart/model/plot-line.mjs +0 -0
  117. package/esm2020/chart/model/public-api.mjs +15 -0
  118. package/esm2020/chart/model/series.mjs +2 -0
  119. package/{dist/esm2020 → esm2020}/chart/model/svg-attributes.mjs +0 -0
  120. package/esm2020/chart/model/tooltip-options.mjs +2 -0
  121. package/esm2020/chart/service/broadcast.service.mjs +23 -0
  122. package/esm2020/chart/service/brush.service.mjs +120 -0
  123. package/esm2020/chart/service/chart.service.mjs +105 -0
  124. package/esm2020/chart/service/public-api.mjs +6 -0
  125. package/{dist/esm2020 → esm2020}/chart/service/scale.service.mjs +8 -2
  126. package/esm2020/chart/service/zoom.service.mjs +132 -0
  127. package/esm2020/public-api.mjs +11 -0
  128. package/{dist/esm2020 → esm2020}/tetacom-svg-charts.mjs +0 -0
  129. package/{dist/fesm2015 → fesm2015}/tetacom-svg-charts.mjs +497 -176
  130. package/fesm2015/tetacom-svg-charts.mjs.map +1 -0
  131. package/{dist/fesm2020 → fesm2020}/tetacom-svg-charts.mjs +482 -167
  132. package/fesm2020/tetacom-svg-charts.mjs.map +1 -0
  133. package/package.json +22 -2
  134. package/public-api.d.ts +7 -0
  135. package/{dist/tetacom-svg-charts.d.ts → tetacom-svg-charts.d.ts} +0 -0
  136. package/dist/README.md +0 -24
  137. package/dist/chart/model/enum/series-type.d.ts +0 -5
  138. package/dist/esm2020/chart/base/series-base.component.mjs +0 -32
  139. package/dist/esm2020/chart/chart-container/chart-container.component.mjs +0 -133
  140. package/dist/esm2020/chart/chart-container/plotband/plot-band.component.mjs +0 -141
  141. package/dist/esm2020/chart/chart-container/series/line/line-series.component.mjs +0 -152
  142. package/dist/esm2020/chart/chart-container/series/scatter-series/scatter-series.component.mjs +0 -174
  143. package/dist/esm2020/chart/chart-container/series-host/series-host.component.mjs +0 -68
  144. package/dist/esm2020/chart/chart-container/tooltip/tooltip.component.mjs +0 -83
  145. package/dist/esm2020/chart/chart.module.mjs +0 -65
  146. package/dist/esm2020/chart/default/default-series-config.mjs +0 -8
  147. package/dist/esm2020/chart/model/enum/series-type.mjs +0 -7
  148. package/dist/esm2020/chart/model/public-api.mjs +0 -14
  149. package/dist/esm2020/chart/model/series.mjs +0 -2
  150. package/dist/esm2020/chart/model/tooltip-options.mjs +0 -2
  151. package/dist/esm2020/chart/service/broadcast.service.mjs +0 -23
  152. package/dist/esm2020/chart/service/brush.service.mjs +0 -70
  153. package/dist/esm2020/chart/service/chart.service.mjs +0 -95
  154. package/dist/esm2020/chart/service/zoom.service.mjs +0 -114
  155. package/dist/esm2020/public-api.mjs +0 -9
  156. package/dist/fesm2015/tetacom-svg-charts.mjs.map +0 -1
  157. package/dist/fesm2020/tetacom-svg-charts.mjs.map +0 -1
  158. package/dist/package.json +0 -35
  159. package/dist/public-api.d.ts +0 -4
  160. package/karma.conf.js +0 -44
  161. package/ng-package.json +0 -7
  162. package/src/chart/Chart.stories.ts +0 -312
  163. package/src/chart/base/series-base.component.ts +0 -36
  164. package/src/chart/chart/chart.component.html +0 -16
  165. package/src/chart/chart/chart.component.scss +0 -7
  166. package/src/chart/chart/chart.component.spec.ts +0 -25
  167. package/src/chart/chart/chart.component.ts +0 -103
  168. package/src/chart/chart-container/chart-container.component.html +0 -124
  169. package/src/chart/chart-container/chart-container.component.scss +0 -14
  170. package/src/chart/chart-container/chart-container.component.spec.ts +0 -25
  171. package/src/chart/chart-container/chart-container.component.ts +0 -213
  172. package/src/chart/chart-container/gridlines/gridlines.component.html +0 -14
  173. package/src/chart/chart-container/gridlines/gridlines.component.scss +0 -8
  174. package/src/chart/chart-container/gridlines/gridlines.component.spec.ts +0 -25
  175. package/src/chart/chart-container/gridlines/gridlines.component.ts +0 -37
  176. package/src/chart/chart-container/plotband/plot-band.component.html +0 -64
  177. package/src/chart/chart-container/plotband/plot-band.component.scss +0 -13
  178. package/src/chart/chart-container/plotband/plot-band.component.spec.ts +0 -25
  179. package/src/chart/chart-container/plotband/plot-band.component.ts +0 -200
  180. package/src/chart/chart-container/plotline/plotline.component.html +0 -22
  181. package/src/chart/chart-container/plotline/plotline.component.scss +0 -6
  182. package/src/chart/chart-container/plotline/plotline.component.spec.ts +0 -25
  183. package/src/chart/chart-container/plotline/plotline.component.ts +0 -101
  184. package/src/chart/chart-container/series/bar/bar-series.component.html +0 -3
  185. package/src/chart/chart-container/series/bar/bar-series.component.scss +0 -0
  186. package/src/chart/chart-container/series/bar/bar-series.component.ts +0 -69
  187. package/src/chart/chart-container/series/line/line-series.component.html +0 -36
  188. package/src/chart/chart-container/series/line/line-series.component.scss +0 -9
  189. package/src/chart/chart-container/series/line/line-series.component.spec.ts +0 -25
  190. package/src/chart/chart-container/series/line/line-series.component.ts +0 -264
  191. package/src/chart/chart-container/series/scatter-series/scatter-series.component.html +0 -43
  192. package/src/chart/chart-container/series/scatter-series/scatter-series.component.scss +0 -9
  193. package/src/chart/chart-container/series/scatter-series/scatter-series.component.spec.ts +0 -25
  194. package/src/chart/chart-container/series/scatter-series/scatter-series.component.ts +0 -254
  195. package/src/chart/chart-container/series-host/series-host.component.ts +0 -89
  196. package/src/chart/chart-container/tooltip/tooltip.component.html +0 -14
  197. package/src/chart/chart-container/tooltip/tooltip.component.scss +0 -8
  198. package/src/chart/chart-container/tooltip/tooltip.component.spec.ts +0 -25
  199. package/src/chart/chart-container/tooltip/tooltip.component.ts +0 -137
  200. package/src/chart/chart-container/x-axis/x-axis.component.html +0 -1
  201. package/src/chart/chart-container/x-axis/x-axis.component.scss +0 -3
  202. package/src/chart/chart-container/x-axis/x-axis.component.spec.ts +0 -25
  203. package/src/chart/chart-container/x-axis/x-axis.component.ts +0 -78
  204. package/src/chart/chart-container/y-axis/y-axis.component.html +0 -4
  205. package/src/chart/chart-container/y-axis/y-axis.component.scss +0 -13
  206. package/src/chart/chart-container/y-axis/y-axis.component.spec.ts +0 -25
  207. package/src/chart/chart-container/y-axis/y-axis.component.ts +0 -80
  208. package/src/chart/chart.module.ts +0 -42
  209. package/src/chart/core/axis/axis.ts +0 -148
  210. package/src/chart/core/axis/builders/axis-size-builder.ts +0 -37
  211. package/src/chart/core/axis/builders/extremes-builder.ts +0 -40
  212. package/src/chart/core/axis/builders/public-api.ts +0 -2
  213. package/src/chart/core/builder/domain-builder.ts +0 -0
  214. package/src/chart/core/utils/generate-ticks.ts +0 -14
  215. package/src/chart/core/utils/get-text-width.ts +0 -10
  216. package/src/chart/core/utils/public-api.ts +0 -2
  217. package/src/chart/default/default-axis-config.ts +0 -10
  218. package/src/chart/default/default-chart-config.ts +0 -24
  219. package/src/chart/default/default-series-config.ts +0 -10
  220. package/src/chart/directives/brushable.directive.ts +0 -31
  221. package/src/chart/directives/zoomable.directive.ts +0 -28
  222. package/src/chart/legend/legend.component.html +0 -8
  223. package/src/chart/legend/legend.component.scss +0 -20
  224. package/src/chart/legend/legend.component.spec.ts +0 -25
  225. package/src/chart/legend/legend.component.ts +0 -31
  226. package/src/chart/model/axis-options.ts +0 -20
  227. package/src/chart/model/base-point.ts +0 -10
  228. package/src/chart/model/chart-bounds.ts +0 -18
  229. package/src/chart/model/enum/axis-orientation.ts +0 -4
  230. package/src/chart/model/enum/brush-type.ts +0 -5
  231. package/src/chart/model/enum/drag-point-type.ts +0 -5
  232. package/src/chart/model/enum/public-api.ts +0 -7
  233. package/src/chart/model/enum/scale-type.ts +0 -8
  234. package/src/chart/model/enum/series-type.ts +0 -5
  235. package/src/chart/model/enum/tooltip-tracking.ts +0 -4
  236. package/src/chart/model/enum/zoom-type.ts +0 -5
  237. package/src/chart/model/i-broadcast-message.ts +0 -20
  238. package/src/chart/model/i-builder.ts +0 -3
  239. package/src/chart/model/i-chart-config.ts +0 -34
  240. package/src/chart/model/i-chart-event.ts +0 -4
  241. package/src/chart/model/i-display-tooltip.ts +0 -7
  242. package/src/chart/model/i-dom-rect.ts +0 -6
  243. package/src/chart/model/i-drag-event.ts +0 -5
  244. package/src/chart/model/i-point-move.ts +0 -7
  245. package/src/chart/model/marker-options.ts +0 -8
  246. package/src/chart/model/plot-band.ts +0 -48
  247. package/src/chart/model/plot-line.ts +0 -32
  248. package/src/chart/model/public-api.ts +0 -14
  249. package/src/chart/model/series.ts +0 -18
  250. package/src/chart/model/svg-attributes.ts +0 -14
  251. package/src/chart/model/tooltip-options.ts +0 -37
  252. package/src/chart/service/broadcast.service.spec.ts +0 -16
  253. package/src/chart/service/broadcast.service.ts +0 -25
  254. package/src/chart/service/brush.service.spec.ts +0 -16
  255. package/src/chart/service/brush.service.ts +0 -90
  256. package/src/chart/service/chart.service.spec.ts +0 -16
  257. package/src/chart/service/chart.service.ts +0 -126
  258. package/src/chart/service/scale.service.spec.ts +0 -16
  259. package/src/chart/service/scale.service.ts +0 -230
  260. package/src/chart/service/zoom.service.spec.ts +0 -16
  261. package/src/chart/service/zoom.service.ts +0 -184
  262. package/src/public-api.ts +0 -11
  263. package/src/test.ts +0 -27
  264. package/tsconfig.lib.json +0 -15
  265. package/tsconfig.lib.prod.json +0 -10
  266. package/tsconfig.spec.json +0 -17
@@ -14,10 +14,12 @@ export declare class SeriesBaseComponent<T extends BasePoint> implements OnInit
14
14
  protected zoomService: ZoomService;
15
15
  protected element: ElementRef;
16
16
  config: IChartConfig;
17
- series: Series<T>;
17
+ set series(series: Series<T>);
18
+ get series(): Series<T>;
18
19
  size: DOMRect;
19
20
  rect: any;
20
21
  zoom: Observable<any>;
22
+ protected _series: Series<T>;
21
23
  constructor(svc: ChartService, cdr: ChangeDetectorRef, scaleService: ScaleService, zoomService: ZoomService, element: ElementRef);
22
24
  ngOnInit(): void;
23
25
  static ɵfac: i0.ɵɵFactoryDeclaration<SeriesBaseComponent<any>, never>;
File without changes
@@ -20,6 +20,7 @@ export declare class PlotBandComponent implements AfterViewInit {
20
20
  orientation: typeof AxisOrientation;
21
21
  domain: number[];
22
22
  constructor(scaleService: ScaleService, zoomService: ZoomService, chartService: ChartService, cdr: ChangeDetectorRef, element: ElementRef);
23
+ click(event: MouseEvent): void;
23
24
  emit(event: IChartEvent<PlotBand>): void;
24
25
  ngAfterViewInit(): void;
25
26
  get bandSize(): number;
@@ -0,0 +1,31 @@
1
+ import { ChangeDetectorRef, ElementRef, OnInit } from '@angular/core';
2
+ import { SeriesBaseComponent } from '../../../base/series-base.component';
3
+ import { BasePoint } from '../../../model/base-point';
4
+ import { ChartService } from '../../../service/chart.service';
5
+ import { ScaleService } from '../../../service/scale.service';
6
+ import { ZoomService } from '../../../service/zoom.service';
7
+ import { Observable } from 'rxjs';
8
+ import { FillType } from '../../../model/enum/fill-type';
9
+ import * as i0 from "@angular/core";
10
+ export declare class AreaSeriesComponent<T extends BasePoint> extends SeriesBaseComponent<T> implements OnInit {
11
+ protected svc: ChartService;
12
+ protected cdr: ChangeDetectorRef;
13
+ protected scaleService: ScaleService;
14
+ protected zoomService: ZoomService;
15
+ protected element: ElementRef;
16
+ transform: Observable<Pick<BasePoint, 'x' | 'y'>>;
17
+ display: Observable<number>;
18
+ path: Observable<string>;
19
+ svgElement: SVGGeometryElement;
20
+ x: any;
21
+ y: any;
22
+ id: string;
23
+ fillType: typeof FillType;
24
+ constructor(svc: ChartService, cdr: ChangeDetectorRef, scaleService: ScaleService, zoomService: ZoomService, element: ElementRef);
25
+ ngOnInit(): void;
26
+ ngAfterViewInit(): void;
27
+ getMarkers(): T[];
28
+ getTransform(event: any, x: Map<number, any>, y: Map<number, any>): Pick<BasePoint, 'x' | 'y'>;
29
+ static ɵfac: i0.ɵɵFactoryDeclaration<AreaSeriesComponent<any>, never>;
30
+ static ɵcmp: i0.ɵɵComponentDeclaration<AreaSeriesComponent<any>, "svg:svg[teta-area-series]", never, {}, {}, never, never>;
31
+ }
@@ -0,0 +1,28 @@
1
+ import { AfterViewInit, ChangeDetectorRef, ElementRef, OnInit } from '@angular/core';
2
+ import { SeriesBaseComponent } from '../../../base/series-base.component';
3
+ import { BasePoint } from '../../../model/base-point';
4
+ import { ChartService } from '../../../service/chart.service';
5
+ import { ScaleService } from '../../../service/scale.service';
6
+ import { ZoomService } from '../../../service/zoom.service';
7
+ import { Observable } from 'rxjs';
8
+ import { FillType } from '../../../model/enum/fill-type';
9
+ import * as i0 from "@angular/core";
10
+ export declare class BlockAreaSeriesComponent<T extends BasePoint> extends SeriesBaseComponent<T> implements OnInit, AfterViewInit {
11
+ protected svc: ChartService;
12
+ protected cdr: ChangeDetectorRef;
13
+ protected scaleService: ScaleService;
14
+ protected zoomService: ZoomService;
15
+ protected element: ElementRef;
16
+ x: Observable<any>;
17
+ y: Observable<any>;
18
+ displayPoints: Observable<BasePoint[]>;
19
+ fillType: typeof FillType;
20
+ id: string;
21
+ constructor(svc: ChartService, cdr: ChangeDetectorRef, scaleService: ScaleService, zoomService: ZoomService, element: ElementRef);
22
+ ngOnInit(): void;
23
+ ngAfterViewInit(): void;
24
+ mouseEnter(point: any): void;
25
+ mouseleave(point: any): void;
26
+ static ɵfac: i0.ɵɵFactoryDeclaration<BlockAreaSeriesComponent<any>, never>;
27
+ static ɵcmp: i0.ɵɵComponentDeclaration<BlockAreaSeriesComponent<any>, "svg:svg[teta-block-area-series]", never, {}, {}, never, never>;
28
+ }
@@ -0,0 +1,28 @@
1
+ import { AfterViewInit, ChangeDetectorRef, ElementRef, OnInit } from '@angular/core';
2
+ import { BasePoint } from '../../../model/base-point';
3
+ import { SeriesBaseComponent } from '../../../base/series-base.component';
4
+ import { Observable } from 'rxjs';
5
+ import { ChartService } from '../../../service/chart.service';
6
+ import { ScaleService } from '../../../service/scale.service';
7
+ import { ZoomService } from '../../../service/zoom.service';
8
+ import { FillType } from '../../../model/enum/fill-type';
9
+ import * as i0 from "@angular/core";
10
+ export declare class BlockSeriesComponent<T extends BasePoint> extends SeriesBaseComponent<T> implements OnInit, AfterViewInit {
11
+ protected svc: ChartService;
12
+ protected cdr: ChangeDetectorRef;
13
+ protected scaleService: ScaleService;
14
+ protected zoomService: ZoomService;
15
+ protected element: ElementRef;
16
+ x: Observable<any>;
17
+ y: Observable<any>;
18
+ displayPoints: Observable<BasePoint[]>;
19
+ fillType: typeof FillType;
20
+ id: string;
21
+ constructor(svc: ChartService, cdr: ChangeDetectorRef, scaleService: ScaleService, zoomService: ZoomService, element: ElementRef);
22
+ ngOnInit(): void;
23
+ mouseEnter(point: any): void;
24
+ mouseleave(point: any): void;
25
+ ngAfterViewInit(): void;
26
+ static ɵfac: i0.ɵɵFactoryDeclaration<BlockSeriesComponent<any>, never>;
27
+ static ɵcmp: i0.ɵɵComponentDeclaration<BlockSeriesComponent<any>, "svg:svg[teta-block-series]", never, {}, {}, never, never>;
28
+ }
@@ -0,0 +1,6 @@
1
+ export * from './bar/bar-series.component';
2
+ export * from './block-area-series/block-area-series.component';
3
+ export * from './block-series/block-series.component';
4
+ export * from './line/line-series.component';
5
+ export * from './scatter-series/scatter-series.component';
6
+ export * from './area-series/area-series.component';
@@ -11,7 +11,6 @@ export declare class SeriesHostComponent<T extends BasePoint> implements OnInit
11
11
  series: Series<T>;
12
12
  size: DOMRect;
13
13
  rect: any;
14
- private defaultSeriesTypeMapping;
15
14
  private _init;
16
15
  private _componentRef;
17
16
  constructor(viewContainerRef: ViewContainerRef, chartService: ChartService);
@@ -2,7 +2,8 @@ import { ChangeDetectorRef, NgZone, OnDestroy, OnInit } from '@angular/core';
2
2
  import { Observable } from 'rxjs';
3
3
  import { ChartService } from '../../service/chart.service';
4
4
  import { ZoomService } from '../../service/zoom.service';
5
- import { DomSanitizer } from '@angular/platform-browser';
5
+ import { IDisplayTooltip } from '../../model/i-display-tooltip';
6
+ import { DomSanitizer, SafeHtml } from '@angular/platform-browser';
6
7
  import { IChartConfig } from '../../model/i-chart-config';
7
8
  import * as i0 from "@angular/core";
8
9
  export declare class TooltipComponent implements OnInit, OnDestroy {
@@ -19,8 +20,8 @@ export declare class TooltipComponent implements OnInit, OnDestroy {
19
20
  bottom: string;
20
21
  right: string;
21
22
  }>;
22
- displayTooltips: Observable<string>;
23
- tooltips: any[];
23
+ displayTooltips: Observable<SafeHtml>;
24
+ tooltips: IDisplayTooltip[];
24
25
  private alive;
25
26
  display: Observable<number>;
26
27
  constructor(svc: ChartService, cdr: ChangeDetectorRef, zoomService: ZoomService, sanitizer: DomSanitizer, _zone: NgZone);
@@ -14,10 +14,13 @@ import * as i12 from "./chart-container/series/bar/bar-series.component";
14
14
  import * as i13 from "./chart-container/tooltip/tooltip.component";
15
15
  import * as i14 from "./directives/zoomable.directive";
16
16
  import * as i15 from "./directives/brushable.directive";
17
- import * as i16 from "./chart-container/series/scatter-series/scatter-series.component";
18
- import * as i17 from "@angular/common";
17
+ import * as i16 from "./chart-container/series/area-series/area-series.component";
18
+ import * as i17 from "./chart-container/series/scatter-series/scatter-series.component";
19
+ import * as i18 from "./chart-container/series/block-series/block-series.component";
20
+ import * as i19 from "./chart-container/series/block-area-series/block-area-series.component";
21
+ import * as i20 from "@angular/common";
19
22
  export declare class ChartModule {
20
23
  static ɵfac: i0.ɵɵFactoryDeclaration<ChartModule, never>;
21
- static ɵmod: i0.ɵɵNgModuleDeclaration<ChartModule, [typeof i1.ChartComponent, typeof i2.SeriesHostComponent, typeof i3.ChartContainerComponent, typeof i4.LegendComponent, typeof i5.SeriesBaseComponent, typeof i6.LineSeriesComponent, typeof i7.GridlinesComponent, typeof i8.XAxisComponent, typeof i9.YAxisComponent, typeof i10.PlotlineComponent, typeof i11.PlotBandComponent, typeof i12.BarSeriesComponent, typeof i13.TooltipComponent, typeof i14.ZoomableDirective, typeof i15.BrushableDirective, typeof i16.ScatterSeriesComponent], [typeof i17.CommonModule], [typeof i1.ChartComponent]>;
24
+ static ɵmod: i0.ɵɵNgModuleDeclaration<ChartModule, [typeof i1.ChartComponent, typeof i2.SeriesHostComponent, typeof i3.ChartContainerComponent, typeof i4.LegendComponent, typeof i5.SeriesBaseComponent, typeof i6.LineSeriesComponent, typeof i7.GridlinesComponent, typeof i8.XAxisComponent, typeof i9.YAxisComponent, typeof i10.PlotlineComponent, typeof i11.PlotBandComponent, typeof i12.BarSeriesComponent, typeof i13.TooltipComponent, typeof i14.ZoomableDirective, typeof i15.BrushableDirective, typeof i16.AreaSeriesComponent, typeof i17.ScatterSeriesComponent, typeof i18.BlockSeriesComponent, typeof i19.BlockAreaSeriesComponent], [typeof i20.CommonModule], [typeof i1.ChartComponent, typeof i5.SeriesBaseComponent, typeof i6.LineSeriesComponent, typeof i12.BarSeriesComponent, typeof i17.ScatterSeriesComponent, typeof i16.AreaSeriesComponent, typeof i18.BlockSeriesComponent, typeof i19.BlockAreaSeriesComponent]>;
22
25
  static ɵinj: i0.ɵɵInjectorDeclaration<ChartModule>;
23
26
  }
File without changes
File without changes
@@ -0,0 +1,3 @@
1
+ import { SeriesType } from '../model/enum/series-type';
2
+ import { SeriesBaseComponent } from '../base/series-base.component';
3
+ export declare const defaultSeriesTypeMapping: Map<SeriesType, typeof SeriesBaseComponent>;
@@ -9,10 +9,11 @@ export declare class ZoomableDirective {
9
9
  config?: IChartConfig;
10
10
  axis?: Axis;
11
11
  size?: DOMRect;
12
+ brushScale?: any;
12
13
  private zoomable;
13
14
  constructor(element: ElementRef, svc: ZoomService);
14
15
  ngOnInit(): void;
15
16
  ngAfterViewInit(): void;
16
17
  static ɵfac: i0.ɵɵFactoryDeclaration<ZoomableDirective, never>;
17
- static ɵdir: i0.ɵɵDirectiveDeclaration<ZoomableDirective, "[tetaZoomable]", never, { "config": "config"; "axis": "axis"; "size": "size"; }, {}, never>;
18
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ZoomableDirective, "[tetaZoomable]", never, { "config": "config"; "axis": "axis"; "size": "size"; "brushScale": "brushScale"; }, {}, never>;
18
19
  }
@@ -14,6 +14,7 @@ export interface AxisOptions {
14
14
  zoom?: boolean;
15
15
  inverted?: boolean;
16
16
  opposite?: boolean;
17
+ niceTicks?: boolean;
17
18
  plotBands?: PlotBand[];
18
19
  plotLines?: PlotLine[];
19
20
  }
@@ -4,6 +4,8 @@ export interface BasePoint {
4
4
  x1?: number;
5
5
  y: number;
6
6
  y1?: number;
7
- color?: number;
7
+ iconId?: string;
8
+ color?: string;
9
+ text?: string;
8
10
  marker?: MarkerOptions;
9
11
  }
File without changes
File without changes
@@ -0,0 +1,4 @@
1
+ export declare enum FillType {
2
+ default = 0,
3
+ gradient = 1
4
+ }
@@ -5,3 +5,4 @@ export * from './series-type';
5
5
  export * from './tooltip-tracking';
6
6
  export * from './zoom-type';
7
7
  export * from './scale-type';
8
+ export * from './fill-type';
File without changes
@@ -0,0 +1,8 @@
1
+ export declare enum SeriesType {
2
+ line = 0,
3
+ bar = 1,
4
+ area = 2,
5
+ scatter = 3,
6
+ block = 4,
7
+ blockArea = 5
8
+ }
File without changes
@@ -4,12 +4,12 @@ import { BrushType } from './enum/brush-type';
4
4
  export interface ZoomMessage {
5
5
  event: D3ZoomEvent<any, any>;
6
6
  axis?: Axis;
7
+ brushDomain?: number[];
7
8
  }
8
9
  export interface BrushMessage {
9
10
  event: D3BrushEvent<any>;
10
11
  brushType: BrushType;
11
12
  selection: number[];
12
- brushScale: any;
13
13
  }
14
14
  export interface IBroadcastMessage {
15
15
  channel: string;
File without changes
@@ -15,9 +15,10 @@ export interface IChartConfig {
15
15
  syncChannel?: string;
16
16
  };
17
17
  brush?: {
18
- enable: boolean;
18
+ enable?: boolean;
19
19
  type: BrushType;
20
- axisIndex?: number;
20
+ from?: number;
21
+ to?: number;
21
22
  };
22
23
  legend?: {
23
24
  enable?: boolean;
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -6,6 +6,7 @@ export * from './i-broadcast-message';
6
6
  export * from './i-chart-config';
7
7
  export * from './i-chart-event';
8
8
  export * from './i-point-move';
9
+ export * from './i-display-tooltip';
9
10
  export * from './marker-options';
10
11
  export * from './plot-band';
11
12
  export * from './plot-line';
@@ -2,6 +2,7 @@ import { BasePoint } from './base-point';
2
2
  import { SeriesType } from './enum/series-type';
3
3
  import { SeriesBaseComponent } from '../base/series-base.component';
4
4
  import { SvgAttributes } from './svg-attributes';
5
+ import { FillType } from './enum/fill-type';
5
6
  export interface Series<T extends BasePoint> {
6
7
  id?: number | string;
7
8
  type: SeriesType;
@@ -12,6 +13,7 @@ export interface Series<T extends BasePoint> {
12
13
  component?: typeof SeriesBaseComponent;
13
14
  visible?: boolean;
14
15
  color?: string;
16
+ fillType?: FillType;
15
17
  showInLegend?: boolean;
16
18
  style?: SvgAttributes;
17
19
  }
File without changes
@@ -1,8 +1,9 @@
1
1
  import { TooltipTracking } from './enum/tooltip-tracking';
2
+ import { IDisplayTooltip } from './i-display-tooltip';
2
3
  export interface TooltipOptions {
3
4
  enable?: boolean;
4
5
  showMarkers?: boolean;
5
6
  showLine?: boolean;
6
7
  tracking?: TooltipTracking;
7
- format?: (data: any) => any;
8
+ format?: (data: IDisplayTooltip[]) => string;
8
9
  }
@@ -2,13 +2,17 @@ import { ElementRef } from '@angular/core';
2
2
  import { Subscription } from 'rxjs';
3
3
  import { BroadcastService } from './broadcast.service';
4
4
  import { IChartConfig } from '../model/i-chart-config';
5
+ import { ChartService } from './chart.service';
5
6
  import * as i0 from "@angular/core";
6
7
  export declare class BrushService {
7
8
  private broadcastService;
9
+ private chartService;
8
10
  broadcastSubscribtion: Subscription;
11
+ private brush;
9
12
  private brushMap;
10
- constructor(broadcastService: BroadcastService);
11
- applyBrush(svgElement: ElementRef, config: IChartConfig, brushScale: any): void;
13
+ private selection;
14
+ constructor(broadcastService: BroadcastService, chartService: ChartService);
15
+ applyBrush(svgElement: ElementRef, config: IChartConfig, brushScale: any, size: DOMRect): void;
12
16
  static ɵfac: i0.ɵɵFactoryDeclaration<BrushService, never>;
13
17
  static ɵprov: i0.ɵɵInjectableDeclaration<BrushService>;
14
18
  }
File without changes
@@ -0,0 +1,5 @@
1
+ export * from './broadcast.service';
2
+ export * from './brush.service';
3
+ export * from './chart.service';
4
+ export * from './scale.service';
5
+ export * from './zoom.service';
File without changes
@@ -4,14 +4,16 @@ import { IChartConfig } from '../model/i-chart-config';
4
4
  import { BroadcastService } from './broadcast.service';
5
5
  import { Axis } from '../core/axis/axis';
6
6
  import { IChartEvent } from '../model/i-chart-event';
7
+ import { ChartService } from "./chart.service";
7
8
  import * as i0 from "@angular/core";
8
9
  export declare class ZoomService {
9
10
  private broadcastService;
11
+ private chartService;
10
12
  broadcastSubscription: Subscription[];
11
13
  zoomed: Observable<IChartEvent<Axis>>;
12
14
  private zoomed$;
13
- constructor(broadcastService: BroadcastService);
14
- applyZoom(svgElement: ElementRef, config: IChartConfig, size: DOMRect, axis?: Axis): void;
15
+ constructor(broadcastService: BroadcastService, chartService: ChartService);
16
+ applyZoom(svgElement: ElementRef, config: IChartConfig, size: DOMRect, axis?: Axis, brushScale?: any): void;
15
17
  static ɵfac: i0.ɵɵFactoryDeclaration<ZoomService, never>;
16
18
  static ɵprov: i0.ɵɵInjectableDeclaration<ZoomService>;
17
19
  }
@@ -0,0 +1,39 @@
1
+ import { Component, Input, } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ import * as i1 from "../service/chart.service";
4
+ import * as i2 from "../service/scale.service";
5
+ import * as i3 from "../service/zoom.service";
6
+ export class SeriesBaseComponent {
7
+ constructor(svc, cdr, scaleService, zoomService, element) {
8
+ this.svc = svc;
9
+ this.cdr = cdr;
10
+ this.scaleService = scaleService;
11
+ this.zoomService = zoomService;
12
+ this.element = element;
13
+ }
14
+ set series(series) {
15
+ this._series = series;
16
+ }
17
+ get series() {
18
+ return this._series;
19
+ }
20
+ ngOnInit() {
21
+ }
22
+ }
23
+ SeriesBaseComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.1", ngImport: i0, type: SeriesBaseComponent, deps: [{ token: i1.ChartService }, { token: i0.ChangeDetectorRef }, { token: i2.ScaleService }, { token: i3.ZoomService }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
24
+ SeriesBaseComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.1", type: SeriesBaseComponent, selector: "ng-component", inputs: { config: "config", series: "series", size: "size", rect: "rect" }, ngImport: i0, template: '', isInline: true });
25
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.1", ngImport: i0, type: SeriesBaseComponent, decorators: [{
26
+ type: Component,
27
+ args: [{
28
+ template: '',
29
+ }]
30
+ }], ctorParameters: function () { return [{ type: i1.ChartService }, { type: i0.ChangeDetectorRef }, { type: i2.ScaleService }, { type: i3.ZoomService }, { type: i0.ElementRef }]; }, propDecorators: { config: [{
31
+ type: Input
32
+ }], series: [{
33
+ type: Input
34
+ }], size: [{
35
+ type: Input
36
+ }], rect: [{
37
+ type: Input
38
+ }] } });
39
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VyaWVzLWJhc2UuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vc3JjL2NoYXJ0L2Jhc2Uvc2VyaWVzLWJhc2UuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFFTCxTQUFTLEVBRVQsS0FBSyxHQUVOLE1BQU0sZUFBZSxDQUFDOzs7OztBQVl2QixNQUFNLE9BQU8sbUJBQW1CO0lBa0I5QixZQUNZLEdB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