@tetacom/svg-charts 1.0.1 → 1.1.2

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 (264) hide show
  1. package/{dist/chart → chart}/base/series-base.component.d.ts +4 -1
  2. package/{dist/chart → chart}/chart/chart.component.d.ts +12 -9
  3. package/chart/chart-container/chart-container.component.d.ts +37 -0
  4. package/chart/chart-container/gridlines/gridlines.component.d.ts +14 -0
  5. package/{dist/chart/chart-container/plotband/plotband.component.d.ts → chart/chart-container/plotband/plot-band.component.d.ts} +11 -10
  6. package/{dist/chart → chart}/chart-container/plotline/plotline.component.d.ts +5 -5
  7. package/{dist/chart → chart}/chart-container/series/bar/bar-series.component.d.ts +0 -0
  8. package/{dist/chart → chart}/chart-container/series/line/line-series.component.d.ts +2 -2
  9. package/chart/chart-container/series/scatter-series/scatter-series.component.d.ts +28 -0
  10. package/{dist/chart → chart}/chart-container/series-host/series-host.component.d.ts +4 -1
  11. package/{dist/chart → chart}/chart-container/tooltip/tooltip.component.d.ts +6 -3
  12. package/chart/chart-container/x-axis/x-axis.component.d.ts +19 -0
  13. package/chart/chart-container/y-axis/y-axis.component.d.ts +20 -0
  14. package/{dist/chart → chart}/chart.module.d.ts +4 -3
  15. package/{dist/chart → chart}/core/axis/axis.d.ts +8 -3
  16. package/{dist/chart → chart}/core/axis/builders/axis-size-builder.d.ts +0 -0
  17. package/{dist/chart → chart}/core/axis/builders/extremes-builder.d.ts +0 -0
  18. package/{dist/chart → chart}/core/axis/builders/public-api.d.ts +0 -0
  19. package/{dist/chart → chart}/core/utils/generate-ticks.d.ts +0 -0
  20. package/{dist/chart → chart}/core/utils/get-text-width.d.ts +0 -0
  21. package/{dist/chart → chart}/core/utils/public-api.d.ts +0 -0
  22. package/chart/default/default-axis-config.d.ts +2 -0
  23. package/chart/default/default-chart-config.d.ts +2 -0
  24. package/chart/default/default-series-config.d.ts +3 -0
  25. package/{dist/chart → chart}/directives/brushable.directive.d.ts +2 -1
  26. package/{dist/chart → chart}/directives/zoomable.directive.d.ts +1 -3
  27. package/{dist/chart → chart}/legend/legend.component.d.ts +1 -3
  28. package/chart/model/axis-options.d.ts +19 -0
  29. package/{dist/chart → chart}/model/base-point.d.ts +1 -1
  30. package/{dist/chart → chart}/model/chart-bounds.d.ts +0 -0
  31. package/{dist/chart → chart}/model/enum/axis-orientation.d.ts +0 -0
  32. package/{dist/chart → chart}/model/enum/brush-type.d.ts +0 -0
  33. package/{dist/chart → chart}/model/enum/drag-point-type.d.ts +0 -0
  34. package/{src/chart/model/enum/public-api.ts → chart/model/enum/public-api.d.ts} +1 -1
  35. package/chart/model/enum/scale-type.d.ts +8 -0
  36. package/{dist/chart → chart}/model/enum/series-type.d.ts +2 -1
  37. package/{dist/chart → chart}/model/enum/tooltip-tracking.d.ts +0 -0
  38. package/{dist/chart → chart}/model/enum/zoom-type.d.ts +0 -0
  39. package/chart/model/i-broadcast-message.d.ts +17 -0
  40. package/{dist/chart → chart}/model/i-builder.d.ts +0 -0
  41. package/{dist/chart → chart}/model/i-chart-config.d.ts +1 -0
  42. package/{dist/chart → chart}/model/i-chart-event.d.ts +0 -0
  43. package/{dist/chart → chart}/model/i-display-tooltip.d.ts +0 -0
  44. package/{dist/chart → chart}/model/i-point-move.d.ts +0 -0
  45. package/{dist/chart → chart}/model/marker-options.d.ts +0 -0
  46. package/{dist/chart/model/plotband.d.ts → chart/model/plot-band.d.ts} +7 -5
  47. package/{dist/chart/model/plotline.d.ts → chart/model/plot-line.d.ts} +3 -1
  48. package/chart/model/public-api.d.ts +13 -0
  49. package/{dist/chart → chart}/model/series.d.ts +0 -0
  50. package/{dist/chart → chart}/model/svg-attributes.d.ts +0 -0
  51. package/{dist/chart → chart}/model/tooltip-options.d.ts +0 -0
  52. package/{dist/chart → chart}/service/broadcast.service.d.ts +0 -0
  53. package/{dist/chart → chart}/service/brush.service.d.ts +2 -5
  54. package/{dist/chart → chart}/service/chart.service.d.ts +16 -17
  55. package/chart/service/scale.service.d.ts +19 -0
  56. package/{dist/chart → chart}/service/zoom.service.d.ts +6 -14
  57. package/esm2020/chart/base/series-base.component.mjs +32 -0
  58. package/esm2020/chart/chart/chart.component.mjs +71 -0
  59. package/esm2020/chart/chart-container/chart-container.component.mjs +133 -0
  60. package/esm2020/chart/chart-container/gridlines/gridlines.component.mjs +29 -0
  61. package/esm2020/chart/chart-container/plotband/plot-band.component.mjs +150 -0
  62. package/esm2020/chart/chart-container/plotline/plotline.component.mjs +76 -0
  63. package/esm2020/chart/chart-container/series/bar/bar-series.component.mjs +48 -0
  64. package/esm2020/chart/chart-container/series/line/line-series.component.mjs +152 -0
  65. package/esm2020/chart/chart-container/series/scatter-series/scatter-series.component.mjs +174 -0
  66. package/esm2020/chart/chart-container/series-host/series-host.component.mjs +68 -0
  67. package/esm2020/chart/chart-container/tooltip/tooltip.component.mjs +83 -0
  68. package/esm2020/chart/chart-container/x-axis/x-axis.component.mjs +53 -0
  69. package/esm2020/chart/chart-container/y-axis/y-axis.component.mjs +58 -0
  70. package/{dist/esm2020 → esm2020}/chart/chart.module.mjs +8 -5
  71. package/esm2020/chart/core/axis/axis.mjs +105 -0
  72. package/{dist/esm2020 → esm2020}/chart/core/axis/builders/axis-size-builder.mjs +0 -0
  73. package/esm2020/chart/core/axis/builders/extremes-builder.mjs +31 -0
  74. package/{dist/esm2020 → esm2020}/chart/core/axis/builders/public-api.mjs +0 -0
  75. package/{dist/esm2020 → esm2020}/chart/core/utils/generate-ticks.mjs +0 -0
  76. package/{dist/esm2020 → esm2020}/chart/core/utils/get-text-width.mjs +0 -0
  77. package/{dist/esm2020 → esm2020}/chart/core/utils/public-api.mjs +0 -0
  78. package/esm2020/chart/default/default-axis-config.mjs +9 -0
  79. package/esm2020/chart/default/default-chart-config.mjs +23 -0
  80. package/esm2020/chart/default/default-series-config.mjs +8 -0
  81. package/{dist/esm2020 → esm2020}/chart/directives/brushable.directive.mjs +5 -3
  82. package/esm2020/chart/directives/zoomable.directive.mjs +36 -0
  83. package/esm2020/chart/legend/legend.component.mjs +27 -0
  84. package/esm2020/chart/model/axis-options.mjs +2 -0
  85. package/{dist/esm2020 → esm2020}/chart/model/base-point.mjs +1 -1
  86. package/{dist/esm2020 → esm2020}/chart/model/chart-bounds.mjs +0 -0
  87. package/{dist/esm2020 → esm2020}/chart/model/enum/axis-orientation.mjs +0 -0
  88. package/{dist/esm2020 → esm2020}/chart/model/enum/brush-type.mjs +0 -0
  89. package/{dist/esm2020 → esm2020}/chart/model/enum/drag-point-type.mjs +0 -0
  90. package/esm2020/chart/model/enum/public-api.mjs +8 -0
  91. package/esm2020/chart/model/enum/scale-type.mjs +10 -0
  92. package/{dist/esm2020 → esm2020}/chart/model/enum/series-type.mjs +2 -1
  93. package/{dist/esm2020 → esm2020}/chart/model/enum/tooltip-tracking.mjs +0 -0
  94. package/{dist/esm2020 → esm2020}/chart/model/enum/zoom-type.mjs +0 -0
  95. package/esm2020/chart/model/i-broadcast-message.mjs +2 -0
  96. package/{dist/esm2020 → esm2020}/chart/model/i-builder.mjs +0 -0
  97. package/{dist/esm2020 → esm2020}/chart/model/i-chart-config.mjs +1 -1
  98. package/{dist/esm2020 → esm2020}/chart/model/i-chart-event.mjs +0 -0
  99. package/{dist/esm2020 → esm2020}/chart/model/i-display-tooltip.mjs +0 -0
  100. package/{dist/esm2020 → esm2020}/chart/model/i-point-move.mjs +0 -0
  101. package/{dist/esm2020 → esm2020}/chart/model/marker-options.mjs +0 -0
  102. package/esm2020/chart/model/plot-band.mjs +17 -0
  103. package/esm2020/chart/model/plot-line.mjs +13 -0
  104. package/esm2020/chart/model/public-api.mjs +14 -0
  105. package/{dist/esm2020 → esm2020}/chart/model/series.mjs +0 -0
  106. package/{dist/esm2020 → esm2020}/chart/model/svg-attributes.mjs +0 -0
  107. package/{dist/esm2020 → esm2020}/chart/model/tooltip-options.mjs +0 -0
  108. package/esm2020/chart/service/broadcast.service.mjs +23 -0
  109. package/esm2020/chart/service/brush.service.mjs +70 -0
  110. package/esm2020/chart/service/chart.service.mjs +95 -0
  111. package/esm2020/chart/service/scale.service.mjs +152 -0
  112. package/esm2020/chart/service/zoom.service.mjs +114 -0
  113. package/esm2020/public-api.mjs +9 -0
  114. package/{dist/esm2020 → esm2020}/tetacom-svg-charts.mjs +0 -0
  115. package/fesm2015/tetacom-svg-charts.mjs +1912 -0
  116. package/fesm2015/tetacom-svg-charts.mjs.map +1 -0
  117. package/fesm2020/tetacom-svg-charts.mjs +1887 -0
  118. package/fesm2020/tetacom-svg-charts.mjs.map +1 -0
  119. package/package.json +22 -2
  120. package/{dist/public-api.d.ts → public-api.d.ts} +1 -0
  121. package/{dist/tetacom-svg-charts.d.ts → tetacom-svg-charts.d.ts} +0 -0
  122. package/dist/README.md +0 -24
  123. package/dist/chart/chart-container/chart-container.component.d.ts +0 -42
  124. package/dist/chart/chart-container/gridlines/gridlines.component.d.ts +0 -23
  125. package/dist/chart/chart-container/x-axis/x-axis.component.d.ts +0 -23
  126. package/dist/chart/chart-container/y-axis/y-axis.component.d.ts +0 -24
  127. package/dist/chart/model/axis-options.d.ts +0 -17
  128. package/dist/chart/model/enum/axis-type.d.ts +0 -7
  129. package/dist/chart/model/i-broadcast-message.d.ts +0 -5
  130. package/dist/chart/service/axes.service.d.ts +0 -11
  131. package/dist/chart/service/scale.service.d.ts +0 -14
  132. package/dist/esm2020/chart/base/series-base.component.mjs +0 -34
  133. package/dist/esm2020/chart/chart/chart.component.mjs +0 -73
  134. package/dist/esm2020/chart/chart-container/chart-container.component.mjs +0 -151
  135. package/dist/esm2020/chart/chart-container/gridlines/gridlines.component.mjs +0 -41
  136. package/dist/esm2020/chart/chart-container/plotband/plotband.component.mjs +0 -139
  137. package/dist/esm2020/chart/chart-container/plotline/plotline.component.mjs +0 -79
  138. package/dist/esm2020/chart/chart-container/series/bar/bar-series.component.mjs +0 -48
  139. package/dist/esm2020/chart/chart-container/series/line/line-series.component.mjs +0 -148
  140. package/dist/esm2020/chart/chart-container/series-host/series-host.component.mjs +0 -59
  141. package/dist/esm2020/chart/chart-container/tooltip/tooltip.component.mjs +0 -81
  142. package/dist/esm2020/chart/chart-container/x-axis/x-axis.component.mjs +0 -56
  143. package/dist/esm2020/chart/chart-container/y-axis/y-axis.component.mjs +0 -63
  144. package/dist/esm2020/chart/core/axis/axis.mjs +0 -96
  145. package/dist/esm2020/chart/core/axis/builders/extremes-builder.mjs +0 -32
  146. package/dist/esm2020/chart/directives/zoomable.directive.mjs +0 -37
  147. package/dist/esm2020/chart/legend/legend.component.mjs +0 -30
  148. package/dist/esm2020/chart/model/axis-options.mjs +0 -2
  149. package/dist/esm2020/chart/model/enum/axis-type.mjs +0 -9
  150. package/dist/esm2020/chart/model/i-broadcast-message.mjs +0 -2
  151. package/dist/esm2020/chart/model/plotband.mjs +0 -16
  152. package/dist/esm2020/chart/model/plotline.mjs +0 -12
  153. package/dist/esm2020/chart/service/axes.service.mjs +0 -29
  154. package/dist/esm2020/chart/service/broadcast.service.mjs +0 -25
  155. package/dist/esm2020/chart/service/brush.service.mjs +0 -67
  156. package/dist/esm2020/chart/service/chart.service.mjs +0 -76
  157. package/dist/esm2020/chart/service/scale.service.mjs +0 -64
  158. package/dist/esm2020/chart/service/zoom.service.mjs +0 -117
  159. package/dist/esm2020/public-api.mjs +0 -7
  160. package/dist/fesm2015/tetacom-svg-charts.mjs +0 -1589
  161. package/dist/fesm2015/tetacom-svg-charts.mjs.map +0 -1
  162. package/dist/fesm2020/tetacom-svg-charts.mjs +0 -1575
  163. package/dist/fesm2020/tetacom-svg-charts.mjs.map +0 -1
  164. package/dist/package.json +0 -35
  165. package/karma.conf.js +0 -44
  166. package/ng-package.json +0 -7
  167. package/src/chart/Chart.stories.ts +0 -397
  168. package/src/chart/base/series-base.component.ts +0 -41
  169. package/src/chart/chart/chart.component.html +0 -5
  170. package/src/chart/chart/chart.component.scss +0 -6
  171. package/src/chart/chart/chart.component.spec.ts +0 -25
  172. package/src/chart/chart/chart.component.ts +0 -97
  173. package/src/chart/chart-container/chart-container.component.html +0 -78
  174. package/src/chart/chart-container/chart-container.component.scss +0 -15
  175. package/src/chart/chart-container/chart-container.component.spec.ts +0 -25
  176. package/src/chart/chart-container/chart-container.component.ts +0 -242
  177. package/src/chart/chart-container/gridlines/gridlines.component.html +0 -7
  178. package/src/chart/chart-container/gridlines/gridlines.component.scss +0 -8
  179. package/src/chart/chart-container/gridlines/gridlines.component.spec.ts +0 -25
  180. package/src/chart/chart-container/gridlines/gridlines.component.ts +0 -55
  181. package/src/chart/chart-container/plotband/plotband.component.html +0 -58
  182. package/src/chart/chart-container/plotband/plotband.component.scss +0 -13
  183. package/src/chart/chart-container/plotband/plotband.component.spec.ts +0 -25
  184. package/src/chart/chart-container/plotband/plotband.component.ts +0 -206
  185. package/src/chart/chart-container/plotline/plotline.component.html +0 -22
  186. package/src/chart/chart-container/plotline/plotline.component.scss +0 -6
  187. package/src/chart/chart-container/plotline/plotline.component.spec.ts +0 -25
  188. package/src/chart/chart-container/plotline/plotline.component.ts +0 -113
  189. package/src/chart/chart-container/series/bar/bar-series.component.html +0 -3
  190. package/src/chart/chart-container/series/bar/bar-series.component.scss +0 -0
  191. package/src/chart/chart-container/series/bar/bar-series.component.ts +0 -71
  192. package/src/chart/chart-container/series/line/line-series.component.html +0 -38
  193. package/src/chart/chart-container/series/line/line-series.component.scss +0 -9
  194. package/src/chart/chart-container/series/line/line-series.component.spec.ts +0 -25
  195. package/src/chart/chart-container/series/line/line-series.component.ts +0 -245
  196. package/src/chart/chart-container/series-host/series-host.component.ts +0 -80
  197. package/src/chart/chart-container/tooltip/tooltip.component.html +0 -14
  198. package/src/chart/chart-container/tooltip/tooltip.component.scss +0 -7
  199. package/src/chart/chart-container/tooltip/tooltip.component.spec.ts +0 -25
  200. package/src/chart/chart-container/tooltip/tooltip.component.ts +0 -134
  201. package/src/chart/chart-container/x-axis/x-axis.component.html +0 -1
  202. package/src/chart/chart-container/x-axis/x-axis.component.scss +0 -3
  203. package/src/chart/chart-container/x-axis/x-axis.component.spec.ts +0 -25
  204. package/src/chart/chart-container/x-axis/x-axis.component.ts +0 -80
  205. package/src/chart/chart-container/y-axis/y-axis.component.html +0 -4
  206. package/src/chart/chart-container/y-axis/y-axis.component.scss +0 -13
  207. package/src/chart/chart-container/y-axis/y-axis.component.spec.ts +0 -25
  208. package/src/chart/chart-container/y-axis/y-axis.component.ts +0 -90
  209. package/src/chart/chart.module.ts +0 -40
  210. package/src/chart/core/axis/axis.ts +0 -132
  211. package/src/chart/core/axis/builders/axis-size-builder.ts +0 -37
  212. package/src/chart/core/axis/builders/extremes-builder.ts +0 -45
  213. package/src/chart/core/axis/builders/public-api.ts +0 -2
  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-chart-config.ts +0 -12
  218. package/src/chart/directives/brushable.directive.ts +0 -30
  219. package/src/chart/directives/zoomable.directive.ts +0 -31
  220. package/src/chart/legend/legend.component.html +0 -6
  221. package/src/chart/legend/legend.component.scss +0 -20
  222. package/src/chart/legend/legend.component.spec.ts +0 -25
  223. package/src/chart/legend/legend.component.ts +0 -35
  224. package/src/chart/model/axis-options.ts +0 -18
  225. package/src/chart/model/base-point.ts +0 -10
  226. package/src/chart/model/chart-bounds.ts +0 -18
  227. package/src/chart/model/enum/axis-orientation.ts +0 -4
  228. package/src/chart/model/enum/axis-type.ts +0 -7
  229. package/src/chart/model/enum/brush-type.ts +0 -5
  230. package/src/chart/model/enum/drag-point-type.ts +0 -5
  231. package/src/chart/model/enum/series-type.ts +0 -4
  232. package/src/chart/model/enum/tooltip-tracking.ts +0 -4
  233. package/src/chart/model/enum/zoom-type.ts +0 -5
  234. package/src/chart/model/i-broadcast-message.ts +0 -5
  235. package/src/chart/model/i-builder.ts +0 -3
  236. package/src/chart/model/i-chart-config.ts +0 -33
  237. package/src/chart/model/i-chart-event.ts +0 -4
  238. package/src/chart/model/i-display-tooltip.ts +0 -7
  239. package/src/chart/model/i-drag-event.ts +0 -5
  240. package/src/chart/model/i-point-move.ts +0 -7
  241. package/src/chart/model/marker-options.ts +0 -8
  242. package/src/chart/model/plotband.ts +0 -45
  243. package/src/chart/model/plotline.ts +0 -29
  244. package/src/chart/model/public-api.ts +0 -0
  245. package/src/chart/model/series.ts +0 -18
  246. package/src/chart/model/svg-attributes.ts +0 -14
  247. package/src/chart/model/tooltip-options.ts +0 -37
  248. package/src/chart/service/axes.service.spec.ts +0 -16
  249. package/src/chart/service/axes.service.ts +0 -27
  250. package/src/chart/service/broadcast.service.spec.ts +0 -16
  251. package/src/chart/service/broadcast.service.ts +0 -24
  252. package/src/chart/service/brush.service.spec.ts +0 -16
  253. package/src/chart/service/brush.service.ts +0 -87
  254. package/src/chart/service/chart.service.spec.ts +0 -16
  255. package/src/chart/service/chart.service.ts +0 -100
  256. package/src/chart/service/scale.service.spec.ts +0 -16
  257. package/src/chart/service/scale.service.ts +0 -74
  258. package/src/chart/service/zoom.service.spec.ts +0 -16
  259. package/src/chart/service/zoom.service.ts +0 -153
  260. package/src/public-api.ts +0 -7
  261. package/src/test.ts +0 -27
  262. package/tsconfig.lib.json +0 -15
  263. package/tsconfig.lib.prod.json +0 -10
  264. package/tsconfig.spec.json +0 -17
@@ -5,6 +5,7 @@ import { BasePoint } from '../model/base-point';
5
5
  import { ScaleService } from '../service/scale.service';
6
6
  import { ZoomService } from '../service/zoom.service';
7
7
  import { Observable } from 'rxjs';
8
+ import { IChartConfig } from '../model/i-chart-config';
8
9
  import * as i0 from "@angular/core";
9
10
  export declare class SeriesBaseComponent<T extends BasePoint> implements OnInit {
10
11
  protected svc: ChartService;
@@ -12,11 +13,13 @@ export declare class SeriesBaseComponent<T extends BasePoint> implements OnInit
12
13
  protected scaleService: ScaleService;
13
14
  protected zoomService: ZoomService;
14
15
  protected element: ElementRef;
16
+ config: IChartConfig;
15
17
  series: Series<T>;
16
18
  size: DOMRect;
19
+ rect: any;
17
20
  zoom: Observable<any>;
18
21
  constructor(svc: ChartService, cdr: ChangeDetectorRef, scaleService: ScaleService, zoomService: ZoomService, element: ElementRef);
19
22
  ngOnInit(): void;
20
23
  static ɵfac: i0.ɵɵFactoryDeclaration<SeriesBaseComponent<any>, never>;
21
- static ɵcmp: i0.ɵɵComponentDeclaration<SeriesBaseComponent<any>, "ng-component", never, { "series": "series"; "size": "size"; }, {}, never, never>;
24
+ static ɵcmp: i0.ɵɵComponentDeclaration<SeriesBaseComponent<any>, "ng-component", never, { "config": "config"; "series": "series"; "size": "size"; "rect": "rect"; }, {}, never, never>;
22
25
  }
@@ -5,25 +5,28 @@ import { BasePoint } from '../model/base-point';
5
5
  import { Series } from '../model/series';
6
6
  import { ZoomService } from '../service/zoom.service';
7
7
  import { IChartEvent } from '../model/i-chart-event';
8
- import { PlotLine } from '../model/plotline';
9
- import { Plotband } from '../model/plotband';
8
+ import { PlotLine } from '../model/plot-line';
9
+ import { PlotBand } from '../model/plot-band';
10
10
  import { IPointMove } from '../model/i-point-move';
11
+ import { Observable } from 'rxjs';
11
12
  import * as i0 from "@angular/core";
12
13
  export declare class ChartComponent implements OnInit, OnChanges, OnDestroy {
13
- private svc;
14
- private zoomService;
14
+ private _svc;
15
+ private _zoomService;
15
16
  legendSeries: Array<Series<BasePoint>>;
16
- plotBandsMove: EventEmitter<IChartEvent<Plotband>>;
17
+ hasSeriesData: Observable<boolean>;
18
+ svcConfig: Observable<IChartConfig>;
19
+ plotBandsMove: EventEmitter<IChartEvent<PlotBand>>;
20
+ plotBandsClick: EventEmitter<IChartEvent<PlotBand>>;
17
21
  plotLinesMove: EventEmitter<IChartEvent<PlotLine>>;
18
22
  pointMove: EventEmitter<IChartEvent<IPointMove>>;
19
23
  set config(config: IChartConfig);
20
- get config(): IChartConfig;
21
- private _config;
22
- constructor(svc: ChartService, zoomService: ZoomService);
24
+ private _alive;
25
+ constructor(_svc: ChartService, _zoomService: ZoomService);
23
26
  ngOnChanges(changes: SimpleChanges): void;
24
27
  ngOnInit(): void;
25
28
  ngAfterViewInit(): void;
26
29
  ngOnDestroy(): void;
27
30
  static ɵfac: i0.ɵɵFactoryDeclaration<ChartComponent, never>;
28
- static ɵcmp: i0.ɵɵComponentDeclaration<ChartComponent, "teta-chart", never, { "config": "config"; }, { "plotBandsMove": "plotBandsMove"; "plotLinesMove": "plotLinesMove"; "pointMove": "pointMove"; }, never, never>;
31
+ static ɵcmp: i0.ɵɵComponentDeclaration<ChartComponent, "teta-svg-chart", never, { "config": "config"; }, { "plotBandsMove": "plotBandsMove"; "plotBandsClick": "plotBandsClick"; "plotLinesMove": "plotLinesMove"; "pointMove": "pointMove"; }, never, never>;
29
32
  }
@@ -0,0 +1,37 @@
1
+ import { ChangeDetectorRef, ElementRef, OnInit } from '@angular/core';
2
+ import { IChartConfig } from '../model/i-chart-config';
3
+ import { ChartService } from '../service/chart.service';
4
+ import { Observable } from 'rxjs';
5
+ import { Axis } from '../core/axis/axis';
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 ChartContainerComponent implements OnInit {
10
+ private _svc;
11
+ private _cdr;
12
+ private _scaleService;
13
+ private _zoomService;
14
+ private _elementRef;
15
+ config: Observable<IChartConfig>;
16
+ yAxisMap: Observable<Map<number, Axis>>;
17
+ xAxisMap: Observable<Map<number, Axis>>;
18
+ yScaleMap: Observable<Map<number, any>>;
19
+ xScaleMap: Observable<Map<number, any>>;
20
+ size: Observable<DOMRect>;
21
+ visibleRect: Observable<any>;
22
+ brushScale: Observable<any>;
23
+ private _observer;
24
+ private uniqId;
25
+ private filterPositionMap;
26
+ constructor(_svc: ChartService, _cdr: ChangeDetectorRef, _scaleService: ScaleService, _zoomService: ZoomService, _elementRef: ElementRef);
27
+ ngOnInit(): void;
28
+ ngAfterViewInit(): void;
29
+ private sumSize;
30
+ getTranslate(axis?: Axis, size?: DOMRect): Observable<string>;
31
+ identify(index: any, item: any): any;
32
+ mouseMove(event: any): void;
33
+ mouseLeave(event: any): void;
34
+ id(): string;
35
+ static ɵfac: i0.ɵɵFactoryDeclaration<ChartContainerComponent, never>;
36
+ static ɵcmp: i0.ɵɵComponentDeclaration<ChartContainerComponent, "teta-chart-container", never, {}, {}, never, never>;
37
+ }
@@ -0,0 +1,14 @@
1
+ import { SimpleChanges } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class GridlinesComponent {
4
+ size: DOMRect;
5
+ xScaleMap: Map<number, any>;
6
+ yScaleMap: Map<number, any>;
7
+ tickYValues: number[];
8
+ tickXValues: number[];
9
+ constructor();
10
+ draw(): void;
11
+ ngOnChanges(changes: SimpleChanges): void;
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<GridlinesComponent, never>;
13
+ static ɵcmp: i0.ɵɵComponentDeclaration<GridlinesComponent, "[teta-gridlines]", never, { "size": "size"; "xScaleMap": "xScaleMap"; "yScaleMap": "yScaleMap"; }, {}, never, never>;
14
+ }
@@ -1,5 +1,5 @@
1
- import { ChangeDetectorRef, ElementRef, OnInit } from '@angular/core';
2
- import { Plotband } from '../../model/plotband';
1
+ import { AfterViewInit, ChangeDetectorRef, ElementRef } from '@angular/core';
2
+ import { PlotBand } from '../../model/plot-band';
3
3
  import { ScaleService } from '../../service/scale.service';
4
4
  import { Axis } from '../../core/axis/axis';
5
5
  import { ZoomService } from '../../service/zoom.service';
@@ -7,27 +7,28 @@ import { AxisOrientation } from '../../model/enum/axis-orientation';
7
7
  import { IChartEvent } from '../../model/i-chart-event';
8
8
  import { ChartService } from '../../service/chart.service';
9
9
  import * as i0 from "@angular/core";
10
- export declare class PlotbandComponent implements OnInit {
10
+ export declare class PlotBandComponent implements AfterViewInit {
11
11
  private scaleService;
12
12
  private zoomService;
13
13
  private chartService;
14
14
  private cdr;
15
15
  private element;
16
- plotband: Plotband;
16
+ plotBand: PlotBand;
17
17
  axis: Axis;
18
+ scale: any;
18
19
  size: DOMRect;
19
20
  orientation: typeof AxisOrientation;
20
- private scale;
21
21
  domain: number[];
22
22
  constructor(scaleService: ScaleService, zoomService: ZoomService, chartService: ChartService, cdr: ChangeDetectorRef, element: ElementRef);
23
- emit(event: IChartEvent<Plotband>): void;
24
- ngOnInit(): void;
23
+ click(event: MouseEvent): void;
24
+ emit(event: IChartEvent<PlotBand>): void;
25
+ ngAfterViewInit(): void;
25
26
  get bandSize(): number;
26
27
  get height(): number;
27
28
  get width(): number;
28
29
  get from(): number;
29
30
  get to(): number;
30
- getFill(d: Plotband): string;
31
- static ɵfac: i0.ɵɵFactoryDeclaration<PlotbandComponent, never>;
32
- static ɵcmp: i0.ɵɵComponentDeclaration<PlotbandComponent, "[teta-plot-band]", never, { "plotband": "plotband"; "axis": "axis"; "size": "size"; }, {}, never, never>;
31
+ getFill(d: PlotBand): string;
32
+ static ɵfac: i0.ɵɵFactoryDeclaration<PlotBandComponent, never>;
33
+ static ɵcmp: i0.ɵɵComponentDeclaration<PlotBandComponent, "[teta-plot-band]", never, { "plotBand": "plotBand"; "axis": "axis"; "scale": "scale"; "size": "size"; }, {}, never, never>;
33
34
  }
@@ -1,5 +1,5 @@
1
1
  import { ChangeDetectorRef, ElementRef, OnInit } from '@angular/core';
2
- import { PlotLine } from '../../model/plotline';
2
+ import { PlotLine } from '../../model/plot-line';
3
3
  import { Axis } from '../../core/axis/axis';
4
4
  import { AxisOrientation } from '../../model/enum/axis-orientation';
5
5
  import { ZoomService } from '../../service/zoom.service';
@@ -13,12 +13,12 @@ export declare class PlotlineComponent implements OnInit {
13
13
  private scaleService;
14
14
  private chartService;
15
15
  private element;
16
- plotline: PlotLine;
16
+ plotLine: PlotLine;
17
17
  size: DOMRect;
18
18
  axis: Axis;
19
+ scale: any;
19
20
  orientation: typeof AxisOrientation;
20
- private scale;
21
- private domain;
21
+ private _domain;
22
22
  constructor(cdr: ChangeDetectorRef, zoomService: ZoomService, scaleService: ScaleService, chartService: ChartService, element: ElementRef);
23
23
  ngOnInit(): void;
24
24
  emit(event: IChartEvent<PlotLine>): void;
@@ -26,5 +26,5 @@ export declare class PlotlineComponent implements OnInit {
26
26
  get height(): number;
27
27
  get width(): number;
28
28
  static ɵfac: i0.ɵɵFactoryDeclaration<PlotlineComponent, never>;
29
- static ɵcmp: i0.ɵɵComponentDeclaration<PlotlineComponent, "[teta-plot-line]", never, { "plotline": "plotline"; "size": "size"; "axis": "axis"; }, {}, never, never>;
29
+ static ɵcmp: i0.ɵɵComponentDeclaration<PlotlineComponent, "[teta-plot-line]", never, { "plotLine": "plotLine"; "size": "size"; "axis": "axis"; "scale": "scale"; }, {}, never, never>;
30
30
  }
@@ -14,15 +14,15 @@ export declare class LineSeriesComponent<T extends BasePoint> extends SeriesBase
14
14
  protected element: ElementRef;
15
15
  transform: Observable<Pick<BasePoint, 'x' | 'y'>>;
16
16
  display: Observable<number>;
17
+ path: Observable<string>;
17
18
  svgElement: SVGGeometryElement;
18
19
  x: any;
19
20
  y: any;
20
21
  constructor(svc: ChartService, cdr: ChangeDetectorRef, scaleService: ScaleService, zoomService: ZoomService, element: ElementRef);
21
22
  ngOnInit(): void;
22
23
  ngAfterViewInit(): void;
23
- getPath(): string;
24
24
  getMarkers(): T[];
25
- getTransform(event: any): Pick<BasePoint, 'x' | 'y'>;
25
+ getTransform(event: any, x: Map<number, any>, y: Map<number, any>): Pick<BasePoint, 'x' | 'y'>;
26
26
  static ɵfac: i0.ɵɵFactoryDeclaration<LineSeriesComponent<any>, never>;
27
27
  static ɵcmp: i0.ɵɵComponentDeclaration<LineSeriesComponent<any>, "svg:svg[teta-line-series]", never, {}, {}, never, never>;
28
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 * as i0 from "@angular/core";
9
+ export declare class ScatterSeriesComponent<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
+ transform: Observable<Pick<BasePoint, 'x' | 'y'>>;
16
+ display: Observable<number>;
17
+ path: Observable<string>;
18
+ svgElement: SVGGeometryElement;
19
+ x: Observable<any>;
20
+ y: Observable<any>;
21
+ constructor(svc: ChartService, cdr: ChangeDetectorRef, scaleService: ScaleService, zoomService: ZoomService, element: ElementRef);
22
+ ngOnInit(): void;
23
+ ngAfterViewInit(): void;
24
+ getMarkers(): T[];
25
+ getTransform(event: any, x: Map<number, any>, y: Map<number, any>): Pick<BasePoint, 'x' | 'y'>;
26
+ static ɵfac: i0.ɵɵFactoryDeclaration<ScatterSeriesComponent<any>, never>;
27
+ static ɵcmp: i0.ɵɵComponentDeclaration<ScatterSeriesComponent<any>, "svg:svg[teta-scatter-series]", never, {}, {}, never, never>;
28
+ }
@@ -2,12 +2,15 @@ import { OnInit, SimpleChanges, ViewContainerRef } from '@angular/core';
2
2
  import { Series } from '../../model/series';
3
3
  import { BasePoint } from '../../model/base-point';
4
4
  import { ChartService } from '../../service/chart.service';
5
+ import { IChartConfig } from '../../model/i-chart-config';
5
6
  import * as i0 from "@angular/core";
6
7
  export declare class SeriesHostComponent<T extends BasePoint> implements OnInit {
7
8
  private viewContainerRef;
8
9
  private chartService;
10
+ config: IChartConfig;
9
11
  series: Series<T>;
10
12
  size: DOMRect;
13
+ rect: any;
11
14
  private defaultSeriesTypeMapping;
12
15
  private _init;
13
16
  private _componentRef;
@@ -16,5 +19,5 @@ export declare class SeriesHostComponent<T extends BasePoint> implements OnInit
16
19
  ngOnDestroy(): void;
17
20
  ngOnChanges(changes: SimpleChanges): void;
18
21
  static ɵfac: i0.ɵɵFactoryDeclaration<SeriesHostComponent<any>, never>;
19
- static ɵcmp: i0.ɵɵComponentDeclaration<SeriesHostComponent<any>, "[teta-series-host]", never, { "series": "series"; "size": "size"; }, {}, never, never>;
22
+ static ɵcmp: i0.ɵɵComponentDeclaration<SeriesHostComponent<any>, "[teta-series-host]", never, { "config": "config"; "series": "series"; "size": "size"; "rect": "rect"; }, {}, never, never>;
20
23
  }
@@ -1,15 +1,18 @@
1
- import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
1
+ 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
5
  import { DomSanitizer } from '@angular/platform-browser';
6
+ import { IChartConfig } from '../../model/i-chart-config';
6
7
  import * as i0 from "@angular/core";
7
8
  export declare class TooltipComponent implements OnInit, OnDestroy {
8
9
  private svc;
9
10
  private cdr;
10
11
  private zoomService;
11
12
  private sanitizer;
13
+ private _zone;
12
14
  size: DOMRect;
15
+ config: IChartConfig;
13
16
  position: Observable<{
14
17
  left: string;
15
18
  top: string;
@@ -20,10 +23,10 @@ export declare class TooltipComponent implements OnInit, OnDestroy {
20
23
  tooltips: any[];
21
24
  private alive;
22
25
  display: Observable<number>;
23
- constructor(svc: ChartService, cdr: ChangeDetectorRef, zoomService: ZoomService, sanitizer: DomSanitizer);
26
+ constructor(svc: ChartService, cdr: ChangeDetectorRef, zoomService: ZoomService, sanitizer: DomSanitizer, _zone: NgZone);
24
27
  ngOnInit(): void;
25
28
  private getPoisition;
26
29
  ngOnDestroy(): void;
27
30
  static ɵfac: i0.ɵɵFactoryDeclaration<TooltipComponent, never>;
28
- static ɵcmp: i0.ɵɵComponentDeclaration<TooltipComponent, "teta-tooltip", never, { "size": "size"; }, {}, never, never>;
31
+ static ɵcmp: i0.ɵɵComponentDeclaration<TooltipComponent, "teta-tooltip", never, { "size": "size"; "config": "config"; }, {}, never, never>;
29
32
  }
@@ -0,0 +1,19 @@
1
+ import { AfterViewInit, ElementRef, OnDestroy, OnInit } from '@angular/core';
2
+ import { Axis } from '../../core/axis/axis';
3
+ import * as i0 from "@angular/core";
4
+ export declare class XAxisComponent implements OnInit, OnDestroy, AfterViewInit {
5
+ axis: Axis;
6
+ set scale(scale: any);
7
+ get scale(): any;
8
+ size: DOMRect;
9
+ node: ElementRef;
10
+ private _scale;
11
+ private _alive;
12
+ constructor();
13
+ ngOnInit(): void;
14
+ ngOnDestroy(): void;
15
+ ngAfterViewInit(): void;
16
+ private draw;
17
+ static ɵfac: i0.ɵɵFactoryDeclaration<XAxisComponent, never>;
18
+ static ɵcmp: i0.ɵɵComponentDeclaration<XAxisComponent, "[teta-x-axis]", never, { "axis": "axis"; "scale": "scale"; "size": "size"; }, {}, never, never>;
19
+ }
@@ -0,0 +1,20 @@
1
+ import { AfterViewInit, ElementRef, OnInit } from '@angular/core';
2
+ import { Axis } from '../../core/axis/axis';
3
+ import * as i0 from "@angular/core";
4
+ export declare class YAxisComponent implements OnInit, AfterViewInit {
5
+ axis: Axis;
6
+ set scale(scale: any);
7
+ get scale(): any;
8
+ size: DOMRect;
9
+ node: ElementRef;
10
+ private _alive;
11
+ private _scale;
12
+ constructor();
13
+ ngOnInit(): void;
14
+ ngOnDestroy(): void;
15
+ ngAfterViewInit(): void;
16
+ getLabelTransform(): string;
17
+ private draw;
18
+ static ɵfac: i0.ɵɵFactoryDeclaration<YAxisComponent, never>;
19
+ static ɵcmp: i0.ɵɵComponentDeclaration<YAxisComponent, "[teta-y-axis]", never, { "axis": "axis"; "scale": "scale"; "size": "size"; }, {}, never, never>;
20
+ }
@@ -9,14 +9,15 @@ import * as i7 from "./chart-container/gridlines/gridlines.component";
9
9
  import * as i8 from "./chart-container/x-axis/x-axis.component";
10
10
  import * as i9 from "./chart-container/y-axis/y-axis.component";
11
11
  import * as i10 from "./chart-container/plotline/plotline.component";
12
- import * as i11 from "./chart-container/plotband/plotband.component";
12
+ import * as i11 from "./chart-container/plotband/plot-band.component";
13
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 "@angular/common";
17
+ import * as i16 from "./chart-container/series/scatter-series/scatter-series.component";
18
+ import * as i17 from "@angular/common";
18
19
  export declare class ChartModule {
19
20
  static ɵfac: i0.ɵɵFactoryDeclaration<ChartModule, never>;
20
- 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.CommonModule], [typeof i1.ChartComponent]>;
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]>;
21
22
  static ɵinj: i0.ɵɵInjectorDeclaration<ChartModule>;
22
23
  }
@@ -10,6 +10,8 @@ export declare class Axis {
10
10
  private _extremes;
11
11
  private _selfSize;
12
12
  private _ticksValues;
13
+ private _options;
14
+ private _isFake;
13
15
  private defaultFormatters;
14
16
  constructor(config: IChartConfig);
15
17
  /**
@@ -20,10 +22,11 @@ export declare class Axis {
20
22
  * Chart config
21
23
  * @param {number} index
22
24
  * Index axis
25
+ * @param {boolean} isFake
23
26
  * @return {Axis}
24
27
  * New generated axis
25
28
  */
26
- static createAxis(orientation: AxisOrientation, config: IChartConfig, index: number): Axis;
29
+ static createAxis(orientation: AxisOrientation, config: IChartConfig, index: number, isFake?: boolean): Axis;
27
30
  /**
28
31
  *
29
32
  * @param {orientation} orientation
@@ -32,7 +35,7 @@ export declare class Axis {
32
35
  private setLocate;
33
36
  /**
34
37
  *
35
- * @param {number | string} index
38
+ * @param {number} index
36
39
  * Index axis
37
40
  */
38
41
  private setIndex;
@@ -44,11 +47,13 @@ export declare class Axis {
44
47
  private setExtremes;
45
48
  private setSelfSize;
46
49
  private setTicksValues;
50
+ private setOptions;
47
51
  get extremes(): Array<number>;
48
52
  get orientation(): AxisOrientation;
49
53
  get selfSize(): number;
50
54
  get tickValues(): number[];
51
- get index(): string | number;
55
+ get index(): number;
52
56
  get options(): AxisOptions;
57
+ get isFake(): boolean;
53
58
  defaultFormatter(): any;
54
59
  }
File without changes
@@ -0,0 +1,2 @@
1
+ import { AxisOptions } from '../model/axis-options';
2
+ export declare const defaultAxisConfig: AxisOptions;
@@ -0,0 +1,2 @@
1
+ import { IChartConfig } from '../model/i-chart-config';
2
+ export declare const defaultChartConfig: IChartConfig;
@@ -0,0 +1,3 @@
1
+ import { Series } from '../model/series';
2
+ import { BasePoint } from '../model/base-point';
3
+ export declare const defaultSeriesConfig: Series<BasePoint>;
@@ -9,9 +9,10 @@ export declare class BrushableDirective implements OnInit, AfterViewInit {
9
9
  private element;
10
10
  config?: IChartConfig;
11
11
  size?: DOMRect;
12
+ brushScale: any;
12
13
  constructor(brushService: BrushService, chartService: ChartService, element: ElementRef);
13
14
  ngOnInit(): void;
14
15
  ngAfterViewInit(): void;
15
16
  static ɵfac: i0.ɵɵFactoryDeclaration<BrushableDirective, never>;
16
- static ɵdir: i0.ɵɵDirectiveDeclaration<BrushableDirective, "svg:svg[tetaBrushable]", never, { "config": "config"; "size": "size"; }, {}, never>;
17
+ static ɵdir: i0.ɵɵDirectiveDeclaration<BrushableDirective, "svg:svg[tetaBrushable]", never, { "config": "config"; "size": "size"; "brushScale": "brushScale"; }, {}, never>;
17
18
  }
@@ -1,18 +1,16 @@
1
1
  import { ElementRef } from '@angular/core';
2
2
  import { ZoomService } from '../service/zoom.service';
3
- import { ChartService } from '../service/chart.service';
4
3
  import { IChartConfig } from '../model/i-chart-config';
5
4
  import { Axis } from '../core/axis/axis';
6
5
  import * as i0 from "@angular/core";
7
6
  export declare class ZoomableDirective {
8
7
  private element;
9
8
  private svc;
10
- private chartService;
11
9
  config?: IChartConfig;
12
10
  axis?: Axis;
13
11
  size?: DOMRect;
14
12
  private zoomable;
15
- constructor(element: ElementRef, svc: ZoomService, chartService: ChartService);
13
+ constructor(element: ElementRef, svc: ZoomService);
16
14
  ngOnInit(): void;
17
15
  ngAfterViewInit(): void;
18
16
  static ɵfac: i0.ɵɵFactoryDeclaration<ZoomableDirective, never>;
@@ -1,13 +1,11 @@
1
- import { OnInit } from '@angular/core';
2
1
  import { Series } from '../model/series';
3
2
  import { BasePoint } from '../model/base-point';
4
3
  import * as i0 from "@angular/core";
5
- export declare class LegendComponent implements OnInit {
4
+ export declare class LegendComponent {
6
5
  private sizeMapping;
7
6
  series: Array<Series<BasePoint>>;
8
7
  classLegend: boolean;
9
8
  constructor();
10
- ngOnInit(): void;
11
9
  getHeight(serie: Series<BasePoint>): number;
12
10
  static ɵfac: i0.ɵɵFactoryDeclaration<LegendComponent, never>;
13
11
  static ɵcmp: i0.ɵɵComponentDeclaration<LegendComponent, "teta-legend", never, { "series": "series"; }, {}, never, never>;
@@ -0,0 +1,19 @@
1
+ import { PlotBand } from './plot-band';
2
+ import { PlotLine } from './plot-line';
3
+ import { ScaleType } from './enum/scale-type';
4
+ export interface AxisOptions {
5
+ title?: string;
6
+ min?: number;
7
+ max?: number;
8
+ scaleType?: {
9
+ type?: ScaleType;
10
+ base?: number;
11
+ };
12
+ visible?: boolean;
13
+ tickFormat?: (d: any) => string;
14
+ zoom?: boolean;
15
+ inverted?: boolean;
16
+ opposite?: boolean;
17
+ plotBands?: PlotBand[];
18
+ plotLines?: PlotLine[];
19
+ }
@@ -4,6 +4,6 @@ export interface BasePoint {
4
4
  x1?: number;
5
5
  y: number;
6
6
  y1?: number;
7
- color?: string | number;
7
+ color?: number;
8
8
  marker?: MarkerOptions;
9
9
  }
File without changes
File without changes
@@ -1,7 +1,7 @@
1
1
  export * from './axis-orientation';
2
- export * from './axis-type';
3
2
  export * from './brush-type';
4
3
  export * from './drag-point-type';
5
4
  export * from './series-type';
6
5
  export * from './tooltip-tracking';
7
6
  export * from './zoom-type';
7
+ export * from './scale-type';
@@ -0,0 +1,8 @@
1
+ export declare enum ScaleType {
2
+ linear = 0,
3
+ log = 1,
4
+ pow = 2,
5
+ sqrt = 3,
6
+ time = 4,
7
+ category = 5
8
+ }
@@ -1,4 +1,5 @@
1
1
  export declare enum SeriesType {
2
2
  line = 0,
3
- bar = 1
3
+ bar = 1,
4
+ scatter = 2
4
5
  }
File without changes
@@ -0,0 +1,17 @@
1
+ import { D3BrushEvent, D3ZoomEvent } from 'd3';
2
+ import { Axis } from '../core/axis/axis';
3
+ import { BrushType } from './enum/brush-type';
4
+ export interface ZoomMessage {
5
+ event: D3ZoomEvent<any, any>;
6
+ axis?: Axis;
7
+ }
8
+ export interface BrushMessage {
9
+ event: D3BrushEvent<any>;
10
+ brushType: BrushType;
11
+ selection: number[];
12
+ brushScale: any;
13
+ }
14
+ export interface IBroadcastMessage {
15
+ channel: string;
16
+ message: ZoomMessage | BrushMessage;
17
+ }
File without changes
@@ -11,6 +11,7 @@ export interface IChartConfig {
11
11
  zoom?: {
12
12
  enable: boolean;
13
13
  type: ZoomType;
14
+ axisIndex?: number;
14
15
  syncChannel?: string;
15
16
  };
16
17
  brush?: {
File without changes
File without changes
File without changes
@@ -1,6 +1,7 @@
1
1
  import { SvgAttributes } from './svg-attributes';
2
- export declare class Plotband {
3
- id: number | string;
2
+ export declare class PlotBand {
3
+ id?: number | string;
4
+ name?: string;
4
5
  from: number;
5
6
  to: number;
6
7
  label?: string;
@@ -10,11 +11,12 @@ export declare class Plotband {
10
11
  min?: number;
11
12
  max?: number;
12
13
  style?: {
13
- plotband?: SvgAttributes;
14
+ plotBand?: SvgAttributes;
14
15
  grabbers?: SvgAttributes;
15
16
  };
16
17
  constructor(options?: {
17
- id: any;
18
+ id?: number | string;
19
+ name?: string;
18
20
  from: number;
19
21
  to: number;
20
22
  label?: string;
@@ -24,7 +26,7 @@ export declare class Plotband {
24
26
  min?: number;
25
27
  max?: number;
26
28
  style?: {
27
- plotband?: SvgAttributes;
29
+ plotBand?: SvgAttributes;
28
30
  grabbers?: SvgAttributes;
29
31
  };
30
32
  });