@tetacom/svg-charts 1.1.0 → 1.1.4

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 (261) hide show
  1. package/{dist/chart → chart}/base/series-base.component.d.ts +0 -0
  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 +31 -0
  10. package/chart/chart-container/series/block-series/block-series.component.d.ts +23 -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 +0 -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 -0
  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 +0 -0
  60. package/{dist/chart → chart}/service/chart.service.d.ts +0 -0
  61. package/{dist/chart → chart}/service/scale.service.d.ts +0 -0
  62. package/{dist/chart → chart}/service/zoom.service.d.ts +1 -1
  63. package/{dist/esm2020 → esm2020}/chart/base/series-base.component.mjs +0 -0
  64. package/{dist/esm2020 → esm2020}/chart/chart/chart.component.mjs +0 -0
  65. package/esm2020/chart/chart-container/chart-container.component.mjs +138 -0
  66. package/{dist/esm2020 → esm2020}/chart/chart-container/gridlines/gridlines.component.mjs +0 -0
  67. package/esm2020/chart/chart-container/plotband/plot-band.component.mjs +150 -0
  68. package/{dist/esm2020 → esm2020}/chart/chart-container/plotline/plotline.component.mjs +0 -0
  69. package/esm2020/chart/chart-container/series/area-series/area-series.component.mjs +174 -0
  70. package/{dist/esm2020 → esm2020}/chart/chart-container/series/bar/bar-series.component.mjs +0 -0
  71. package/esm2020/chart/chart-container/series/block-area-series/block-area-series.component.mjs +195 -0
  72. package/esm2020/chart/chart-container/series/block-series/block-series.component.mjs +47 -0
  73. package/esm2020/chart/chart-container/series/line/line-series.component.mjs +155 -0
  74. package/esm2020/chart/chart-container/series/public-api.mjs +7 -0
  75. package/esm2020/chart/chart-container/series/scatter-series/scatter-series.component.mjs +101 -0
  76. package/esm2020/chart/chart-container/series-host/series-host.component.mjs +61 -0
  77. package/esm2020/chart/chart-container/tooltip/tooltip.component.mjs +83 -0
  78. package/{dist/esm2020 → esm2020}/chart/chart-container/x-axis/x-axis.component.mjs +0 -0
  79. package/{dist/esm2020 → esm2020}/chart/chart-container/y-axis/y-axis.component.mjs +0 -0
  80. package/esm2020/chart/chart.module.mjs +88 -0
  81. package/{dist/esm2020 → esm2020}/chart/core/axis/axis.mjs +0 -0
  82. package/{dist/esm2020 → esm2020}/chart/core/axis/builders/axis-size-builder.mjs +0 -0
  83. package/{dist/esm2020 → esm2020}/chart/core/axis/builders/extremes-builder.mjs +0 -0
  84. package/{dist/esm2020 → esm2020}/chart/core/axis/builders/public-api.mjs +0 -0
  85. package/{dist/esm2020 → esm2020}/chart/core/utils/generate-ticks.mjs +0 -0
  86. package/{dist/esm2020 → esm2020}/chart/core/utils/get-text-width.mjs +0 -0
  87. package/{dist/esm2020 → esm2020}/chart/core/utils/public-api.mjs +0 -0
  88. package/{dist/esm2020 → esm2020}/chart/default/default-axis-config.mjs +2 -1
  89. package/{dist/esm2020 → esm2020}/chart/default/default-chart-config.mjs +0 -0
  90. package/esm2020/chart/default/default-series-config.mjs +11 -0
  91. package/esm2020/chart/default/defaultSeriesTypeMapping.mjs +13 -0
  92. package/{dist/esm2020 → esm2020}/chart/directives/brushable.directive.mjs +0 -0
  93. package/{dist/esm2020 → esm2020}/chart/directives/zoomable.directive.mjs +5 -3
  94. package/{dist/esm2020 → esm2020}/chart/legend/legend.component.mjs +5 -2
  95. package/{dist/esm2020 → esm2020}/chart/model/axis-options.mjs +1 -1
  96. package/{dist/esm2020 → esm2020}/chart/model/base-point.mjs +1 -1
  97. package/{dist/esm2020 → esm2020}/chart/model/chart-bounds.mjs +0 -0
  98. package/{dist/esm2020 → esm2020}/chart/model/enum/axis-orientation.mjs +0 -0
  99. package/{dist/esm2020 → esm2020}/chart/model/enum/brush-type.mjs +0 -0
  100. package/{dist/esm2020 → esm2020}/chart/model/enum/drag-point-type.mjs +0 -0
  101. package/esm2020/chart/model/enum/fill-type.mjs +6 -0
  102. package/{dist/esm2020 → esm2020}/chart/model/enum/public-api.mjs +0 -0
  103. package/{dist/esm2020 → esm2020}/chart/model/enum/scale-type.mjs +0 -0
  104. package/esm2020/chart/model/enum/series-type.mjs +10 -0
  105. package/{dist/esm2020 → esm2020}/chart/model/enum/tooltip-tracking.mjs +0 -0
  106. package/{dist/esm2020 → esm2020}/chart/model/enum/zoom-type.mjs +0 -0
  107. package/{dist/esm2020 → esm2020}/chart/model/i-broadcast-message.mjs +1 -1
  108. package/{dist/esm2020 → esm2020}/chart/model/i-builder.mjs +0 -0
  109. package/{dist/esm2020 → esm2020}/chart/model/i-chart-config.mjs +1 -1
  110. package/{dist/esm2020 → esm2020}/chart/model/i-chart-event.mjs +0 -0
  111. package/{dist/esm2020 → esm2020}/chart/model/i-display-tooltip.mjs +0 -0
  112. package/{dist/esm2020 → esm2020}/chart/model/i-point-move.mjs +0 -0
  113. package/{dist/esm2020 → esm2020}/chart/model/marker-options.mjs +0 -0
  114. package/{dist/esm2020 → esm2020}/chart/model/plot-band.mjs +0 -0
  115. package/{dist/esm2020 → esm2020}/chart/model/plot-line.mjs +0 -0
  116. package/esm2020/chart/model/public-api.mjs +15 -0
  117. package/esm2020/chart/model/series.mjs +2 -0
  118. package/{dist/esm2020 → esm2020}/chart/model/svg-attributes.mjs +0 -0
  119. package/esm2020/chart/model/tooltip-options.mjs +2 -0
  120. package/{dist/esm2020 → esm2020}/chart/service/broadcast.service.mjs +0 -0
  121. package/esm2020/chart/service/brush.service.mjs +81 -0
  122. package/esm2020/chart/service/chart.service.mjs +97 -0
  123. package/{dist/esm2020 → esm2020}/chart/service/scale.service.mjs +8 -2
  124. package/esm2020/chart/service/zoom.service.mjs +137 -0
  125. package/esm2020/public-api.mjs +9 -0
  126. package/{dist/esm2020 → esm2020}/tetacom-svg-charts.mjs +0 -0
  127. package/{dist/fesm2015 → fesm2015}/tetacom-svg-charts.mjs +566 -151
  128. package/fesm2015/tetacom-svg-charts.mjs.map +1 -0
  129. package/{dist/fesm2020 → fesm2020}/tetacom-svg-charts.mjs +552 -144
  130. package/fesm2020/tetacom-svg-charts.mjs.map +1 -0
  131. package/package.json +22 -2
  132. package/{dist/public-api.d.ts → public-api.d.ts} +1 -0
  133. package/{dist/tetacom-svg-charts.d.ts → tetacom-svg-charts.d.ts} +0 -0
  134. package/dist/README.md +0 -24
  135. package/dist/chart/model/enum/series-type.d.ts +0 -5
  136. package/dist/esm2020/chart/chart-container/chart-container.component.mjs +0 -133
  137. package/dist/esm2020/chart/chart-container/plotband/plot-band.component.mjs +0 -141
  138. package/dist/esm2020/chart/chart-container/series/line/line-series.component.mjs +0 -152
  139. package/dist/esm2020/chart/chart-container/series/scatter-series/scatter-series.component.mjs +0 -174
  140. package/dist/esm2020/chart/chart-container/series-host/series-host.component.mjs +0 -70
  141. package/dist/esm2020/chart/chart-container/tooltip/tooltip.component.mjs +0 -79
  142. package/dist/esm2020/chart/chart.module.mjs +0 -65
  143. package/dist/esm2020/chart/default/default-series-config.mjs +0 -8
  144. package/dist/esm2020/chart/model/enum/series-type.mjs +0 -7
  145. package/dist/esm2020/chart/model/public-api.mjs +0 -14
  146. package/dist/esm2020/chart/model/series.mjs +0 -2
  147. package/dist/esm2020/chart/model/tooltip-options.mjs +0 -2
  148. package/dist/esm2020/chart/service/brush.service.mjs +0 -70
  149. package/dist/esm2020/chart/service/chart.service.mjs +0 -94
  150. package/dist/esm2020/chart/service/zoom.service.mjs +0 -114
  151. package/dist/esm2020/public-api.mjs +0 -9
  152. package/dist/fesm2015/tetacom-svg-charts.mjs.map +0 -1
  153. package/dist/fesm2020/tetacom-svg-charts.mjs.map +0 -1
  154. package/dist/package.json +0 -35
  155. package/karma.conf.js +0 -44
  156. package/ng-package.json +0 -7
  157. package/src/chart/Chart.stories.ts +0 -312
  158. package/src/chart/base/series-base.component.ts +0 -36
  159. package/src/chart/chart/chart.component.html +0 -16
  160. package/src/chart/chart/chart.component.scss +0 -7
  161. package/src/chart/chart/chart.component.spec.ts +0 -25
  162. package/src/chart/chart/chart.component.ts +0 -103
  163. package/src/chart/chart-container/chart-container.component.html +0 -123
  164. package/src/chart/chart-container/chart-container.component.scss +0 -14
  165. package/src/chart/chart-container/chart-container.component.spec.ts +0 -25
  166. package/src/chart/chart-container/chart-container.component.ts +0 -213
  167. package/src/chart/chart-container/gridlines/gridlines.component.html +0 -14
  168. package/src/chart/chart-container/gridlines/gridlines.component.scss +0 -8
  169. package/src/chart/chart-container/gridlines/gridlines.component.spec.ts +0 -25
  170. package/src/chart/chart-container/gridlines/gridlines.component.ts +0 -37
  171. package/src/chart/chart-container/plotband/plot-band.component.html +0 -64
  172. package/src/chart/chart-container/plotband/plot-band.component.scss +0 -13
  173. package/src/chart/chart-container/plotband/plot-band.component.spec.ts +0 -25
  174. package/src/chart/chart-container/plotband/plot-band.component.ts +0 -200
  175. package/src/chart/chart-container/plotline/plotline.component.html +0 -22
  176. package/src/chart/chart-container/plotline/plotline.component.scss +0 -6
  177. package/src/chart/chart-container/plotline/plotline.component.spec.ts +0 -25
  178. package/src/chart/chart-container/plotline/plotline.component.ts +0 -101
  179. package/src/chart/chart-container/series/bar/bar-series.component.html +0 -3
  180. package/src/chart/chart-container/series/bar/bar-series.component.scss +0 -0
  181. package/src/chart/chart-container/series/bar/bar-series.component.ts +0 -69
  182. package/src/chart/chart-container/series/line/line-series.component.html +0 -36
  183. package/src/chart/chart-container/series/line/line-series.component.scss +0 -9
  184. package/src/chart/chart-container/series/line/line-series.component.spec.ts +0 -25
  185. package/src/chart/chart-container/series/line/line-series.component.ts +0 -264
  186. package/src/chart/chart-container/series/scatter-series/scatter-series.component.html +0 -43
  187. package/src/chart/chart-container/series/scatter-series/scatter-series.component.scss +0 -9
  188. package/src/chart/chart-container/series/scatter-series/scatter-series.component.spec.ts +0 -25
  189. package/src/chart/chart-container/series/scatter-series/scatter-series.component.ts +0 -254
  190. package/src/chart/chart-container/series-host/series-host.component.ts +0 -89
  191. package/src/chart/chart-container/tooltip/tooltip.component.html +0 -14
  192. package/src/chart/chart-container/tooltip/tooltip.component.scss +0 -8
  193. package/src/chart/chart-container/tooltip/tooltip.component.spec.ts +0 -25
  194. package/src/chart/chart-container/tooltip/tooltip.component.ts +0 -133
  195. package/src/chart/chart-container/x-axis/x-axis.component.html +0 -1
  196. package/src/chart/chart-container/x-axis/x-axis.component.scss +0 -3
  197. package/src/chart/chart-container/x-axis/x-axis.component.spec.ts +0 -25
  198. package/src/chart/chart-container/x-axis/x-axis.component.ts +0 -78
  199. package/src/chart/chart-container/y-axis/y-axis.component.html +0 -4
  200. package/src/chart/chart-container/y-axis/y-axis.component.scss +0 -13
  201. package/src/chart/chart-container/y-axis/y-axis.component.spec.ts +0 -25
  202. package/src/chart/chart-container/y-axis/y-axis.component.ts +0 -80
  203. package/src/chart/chart.module.ts +0 -42
  204. package/src/chart/core/axis/axis.ts +0 -148
  205. package/src/chart/core/axis/builders/axis-size-builder.ts +0 -37
  206. package/src/chart/core/axis/builders/extremes-builder.ts +0 -40
  207. package/src/chart/core/axis/builders/public-api.ts +0 -2
  208. package/src/chart/core/builder/domain-builder.ts +0 -0
  209. package/src/chart/core/utils/generate-ticks.ts +0 -14
  210. package/src/chart/core/utils/get-text-width.ts +0 -10
  211. package/src/chart/core/utils/public-api.ts +0 -2
  212. package/src/chart/default/default-axis-config.ts +0 -10
  213. package/src/chart/default/default-chart-config.ts +0 -24
  214. package/src/chart/default/default-series-config.ts +0 -10
  215. package/src/chart/directives/brushable.directive.ts +0 -31
  216. package/src/chart/directives/zoomable.directive.ts +0 -28
  217. package/src/chart/legend/legend.component.html +0 -8
  218. package/src/chart/legend/legend.component.scss +0 -20
  219. package/src/chart/legend/legend.component.spec.ts +0 -25
  220. package/src/chart/legend/legend.component.ts +0 -31
  221. package/src/chart/model/axis-options.ts +0 -20
  222. package/src/chart/model/base-point.ts +0 -10
  223. package/src/chart/model/chart-bounds.ts +0 -18
  224. package/src/chart/model/enum/axis-orientation.ts +0 -4
  225. package/src/chart/model/enum/brush-type.ts +0 -5
  226. package/src/chart/model/enum/drag-point-type.ts +0 -5
  227. package/src/chart/model/enum/public-api.ts +0 -7
  228. package/src/chart/model/enum/scale-type.ts +0 -8
  229. package/src/chart/model/enum/series-type.ts +0 -5
  230. package/src/chart/model/enum/tooltip-tracking.ts +0 -4
  231. package/src/chart/model/enum/zoom-type.ts +0 -5
  232. package/src/chart/model/i-broadcast-message.ts +0 -20
  233. package/src/chart/model/i-builder.ts +0 -3
  234. package/src/chart/model/i-chart-config.ts +0 -34
  235. package/src/chart/model/i-chart-event.ts +0 -4
  236. package/src/chart/model/i-display-tooltip.ts +0 -7
  237. package/src/chart/model/i-dom-rect.ts +0 -6
  238. package/src/chart/model/i-drag-event.ts +0 -5
  239. package/src/chart/model/i-point-move.ts +0 -7
  240. package/src/chart/model/marker-options.ts +0 -8
  241. package/src/chart/model/plot-band.ts +0 -48
  242. package/src/chart/model/plot-line.ts +0 -32
  243. package/src/chart/model/public-api.ts +0 -14
  244. package/src/chart/model/series.ts +0 -18
  245. package/src/chart/model/svg-attributes.ts +0 -14
  246. package/src/chart/model/tooltip-options.ts +0 -37
  247. package/src/chart/service/broadcast.service.spec.ts +0 -16
  248. package/src/chart/service/broadcast.service.ts +0 -25
  249. package/src/chart/service/brush.service.spec.ts +0 -16
  250. package/src/chart/service/brush.service.ts +0 -90
  251. package/src/chart/service/chart.service.spec.ts +0 -16
  252. package/src/chart/service/chart.service.ts +0 -116
  253. package/src/chart/service/scale.service.spec.ts +0 -16
  254. package/src/chart/service/scale.service.ts +0 -231
  255. package/src/chart/service/zoom.service.spec.ts +0 -16
  256. package/src/chart/service/zoom.service.ts +0 -184
  257. package/src/public-api.ts +0 -11
  258. package/src/test.ts +0 -27
  259. package/tsconfig.lib.json +0 -15
  260. package/tsconfig.lib.prod.json +0 -10
  261. package/tsconfig.spec.json +0 -17
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,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 BlockAreaSeriesComponent<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<BlockAreaSeriesComponent<any>, never>;
30
+ static ɵcmp: i0.ɵɵComponentDeclaration<BlockAreaSeriesComponent<any>, "svg:svg[teta-block-area-series]", never, {}, {}, never, never>;
31
+ }
@@ -0,0 +1,23 @@
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 * as i0 from "@angular/core";
9
+ export declare class BlockSeriesComponent<T extends BasePoint> extends SeriesBaseComponent<T> implements OnInit, AfterViewInit {
10
+ protected svc: ChartService;
11
+ protected cdr: ChangeDetectorRef;
12
+ protected scaleService: ScaleService;
13
+ protected zoomService: ZoomService;
14
+ protected element: ElementRef;
15
+ x: Observable<any>;
16
+ y: Observable<any>;
17
+ displayPoints: Observable<BasePoint[]>;
18
+ constructor(svc: ChartService, cdr: ChangeDetectorRef, scaleService: ScaleService, zoomService: ZoomService, element: ElementRef);
19
+ ngOnInit(): void;
20
+ ngAfterViewInit(): void;
21
+ static ɵfac: i0.ɵɵFactoryDeclaration<BlockSeriesComponent<any>, never>;
22
+ static ɵcmp: i0.ɵɵComponentDeclaration<BlockSeriesComponent<any>, "svg:svg[teta-block-series]", never, {}, {}, never, never>;
23
+ }
@@ -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 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
+ }
File without changes
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,6 +4,7 @@ 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>;
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
  }
File without changes
File without changes
File without changes
@@ -11,7 +11,7 @@ export declare class ZoomService {
11
11
  zoomed: Observable<IChartEvent<Axis>>;
12
12
  private zoomed$;
13
13
  constructor(broadcastService: BroadcastService);
14
- applyZoom(svgElement: ElementRef, config: IChartConfig, size: DOMRect, axis?: Axis): void;
14
+ applyZoom(svgElement: ElementRef, config: IChartConfig, size: DOMRect, axis?: Axis, brushScale?: any): void;
15
15
  static ɵfac: i0.ɵɵFactoryDeclaration<ZoomService, never>;
16
16
  static ɵprov: i0.ɵɵInjectableDeclaration<ZoomService>;
17
17
  }