stream-charts 1.0.1 → 1.1.0

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 (271) hide show
  1. package/README.md +756 -343
  2. package/changes.md +7 -0
  3. package/dist/src/app/charts/Chart.d.ts +116 -87
  4. package/dist/src/app/charts/Chart.js +96 -101
  5. package/dist/src/app/charts/Chart.js.map +1 -1
  6. package/dist/src/app/charts/axes/AxesState.d.ts +64 -0
  7. package/dist/src/app/charts/axes/AxesState.js +97 -0
  8. package/dist/src/app/charts/axes/AxesState.js.map +1 -0
  9. package/dist/src/app/charts/axes/AxesState.test.js +30 -0
  10. package/dist/src/app/charts/axes/AxesState.test.js.map +1 -0
  11. package/dist/src/app/charts/axes/AxisInterval.d.ts +92 -0
  12. package/dist/src/app/charts/axes/AxisInterval.js +126 -0
  13. package/dist/src/app/charts/axes/AxisInterval.js.map +1 -0
  14. package/dist/src/app/charts/axes/AxisInterval.test.js +120 -0
  15. package/dist/src/app/charts/axes/AxisInterval.test.js.map +1 -0
  16. package/dist/src/app/charts/axes/BaseAxisRange.d.ts +83 -0
  17. package/dist/src/app/charts/axes/BaseAxisRange.js +58 -0
  18. package/dist/src/app/charts/axes/BaseAxisRange.js.map +1 -0
  19. package/dist/src/app/charts/axes/ContinuousAxis.d.ts +22 -0
  20. package/dist/src/app/charts/axes/ContinuousAxis.js +96 -0
  21. package/dist/src/app/charts/axes/ContinuousAxis.js.map +1 -0
  22. package/dist/src/app/charts/axes/ContinuousAxisRange.d.ts +59 -0
  23. package/dist/src/app/charts/axes/ContinuousAxisRange.js +84 -0
  24. package/dist/src/app/charts/axes/ContinuousAxisRange.js.map +1 -0
  25. package/dist/src/app/charts/axes/ContinuousAxisRange.test.js +47 -0
  26. package/dist/src/app/charts/axes/ContinuousAxisRange.test.js.map +1 -0
  27. package/dist/src/app/charts/axes/OrdinalAxis.d.ts +23 -0
  28. package/dist/src/app/charts/axes/OrdinalAxis.js +124 -0
  29. package/dist/src/app/charts/axes/OrdinalAxis.js.map +1 -0
  30. package/dist/src/app/charts/axes/OrdinalAxisRange.d.ts +69 -0
  31. package/dist/src/app/charts/axes/OrdinalAxisRange.js +100 -0
  32. package/dist/src/app/charts/axes/OrdinalAxisRange.js.map +1 -0
  33. package/dist/src/app/charts/axes/OrdinalAxisRange.test.js +48 -0
  34. package/dist/src/app/charts/axes/OrdinalAxisRange.test.js.map +1 -0
  35. package/dist/src/app/charts/axes/axes.d.ts +391 -0
  36. package/dist/src/app/charts/axes/axes.js +1046 -0
  37. package/dist/src/app/charts/axes/axes.js.map +1 -0
  38. package/dist/src/app/charts/d3types.d.ts +10 -10
  39. package/dist/src/app/charts/filters/regexFilter.d.ts +9 -0
  40. package/dist/src/app/charts/filters/regexFilter.js +18 -0
  41. package/dist/src/app/charts/filters/regexFilter.js.map +1 -0
  42. package/dist/src/app/charts/filters/regexFilter.test.d.ts +1 -0
  43. package/dist/src/app/charts/filters/regexFilter.test.js +11 -0
  44. package/dist/src/app/charts/filters/regexFilter.test.js.map +1 -0
  45. package/dist/src/app/charts/hooks/useAxes.d.ts +144 -0
  46. package/dist/src/app/charts/hooks/useAxes.js +187 -0
  47. package/dist/src/app/charts/hooks/useAxes.js.map +1 -0
  48. package/dist/src/app/charts/hooks/useChart.d.ts +30 -201
  49. package/dist/src/app/charts/hooks/useChart.js +33 -134
  50. package/dist/src/app/charts/hooks/useChart.js.map +1 -1
  51. package/dist/src/app/charts/hooks/useDataObservable.d.ts +74 -0
  52. package/dist/src/app/charts/hooks/useDataObservable.js +76 -0
  53. package/dist/src/app/charts/hooks/useDataObservable.js.map +1 -0
  54. package/dist/src/app/charts/hooks/useInitialData.d.ts +38 -0
  55. package/dist/src/app/charts/hooks/useInitialData.js +29 -0
  56. package/dist/src/app/charts/hooks/useInitialData.js.map +1 -0
  57. package/dist/src/app/charts/hooks/useMouse.d.ts +53 -0
  58. package/dist/src/app/charts/hooks/useMouse.js +65 -0
  59. package/dist/src/app/charts/hooks/useMouse.js.map +1 -0
  60. package/dist/src/app/charts/hooks/usePlotDimensions.d.ts +34 -0
  61. package/dist/src/app/charts/hooks/usePlotDimensions.js +73 -0
  62. package/dist/src/app/charts/hooks/usePlotDimensions.js.map +1 -0
  63. package/dist/src/app/charts/hooks/useTooltip.d.ts +64 -0
  64. package/dist/src/app/charts/hooks/useTooltip.js +52 -0
  65. package/dist/src/app/charts/hooks/useTooltip.js.map +1 -0
  66. package/dist/src/app/charts/observables/ChartData.d.ts +23 -0
  67. package/dist/src/app/charts/observables/ChartData.js +20 -0
  68. package/dist/src/app/charts/observables/ChartData.js.map +1 -0
  69. package/dist/src/app/charts/observables/iterates.d.ts +52 -0
  70. package/dist/src/app/charts/observables/iterates.js +121 -0
  71. package/dist/src/app/charts/observables/iterates.js.map +1 -0
  72. package/dist/src/app/charts/observables/iterates.test.d.ts +1 -0
  73. package/dist/src/app/charts/observables/iterates.test.js +180 -0
  74. package/dist/src/app/charts/observables/iterates.test.js.map +1 -0
  75. package/dist/src/app/charts/observables/ordinals.d.ts +75 -0
  76. package/dist/src/app/charts/observables/ordinals.js +141 -0
  77. package/dist/src/app/charts/observables/ordinals.js.map +1 -0
  78. package/dist/src/app/charts/observables/ordinals.test.d.ts +1 -0
  79. package/dist/src/app/charts/observables/ordinals.test.js +102 -0
  80. package/dist/src/app/charts/observables/ordinals.test.js.map +1 -0
  81. package/dist/src/app/charts/plots/BarPlot.d.ts +81 -0
  82. package/dist/src/app/charts/plots/BarPlot.js +557 -0
  83. package/dist/src/app/charts/plots/BarPlot.js.map +1 -0
  84. package/dist/src/app/charts/plots/PoincarePlot.d.ts +78 -0
  85. package/dist/src/app/charts/plots/PoincarePlot.js +504 -0
  86. package/dist/src/app/charts/plots/PoincarePlot.js.map +1 -0
  87. package/dist/src/app/charts/{RasterPlot.d.ts → plots/RasterPlot.d.ts} +1 -1
  88. package/dist/src/app/charts/{RasterPlot.js → plots/RasterPlot.js} +152 -133
  89. package/dist/src/app/charts/plots/RasterPlot.js.map +1 -0
  90. package/dist/src/app/charts/{ScatterPlot.d.ts → plots/ScatterPlot.d.ts} +10 -8
  91. package/dist/src/app/charts/plots/ScatterPlot.js +379 -0
  92. package/dist/src/app/charts/plots/ScatterPlot.js.map +1 -0
  93. package/dist/src/app/charts/{plot.d.ts → plots/plot.d.ts} +12 -14
  94. package/dist/src/app/charts/{plot.js → plots/plot.js} +19 -17
  95. package/dist/src/app/charts/plots/plot.js.map +1 -0
  96. package/dist/src/app/charts/series/baseSeries.d.ts +38 -0
  97. package/dist/src/app/charts/series/baseSeries.js +36 -0
  98. package/dist/src/app/charts/series/baseSeries.js.map +1 -0
  99. package/dist/src/app/charts/series/datumSeries.test.d.ts +1 -0
  100. package/dist/src/app/charts/series/datumSeries.test.js +50 -0
  101. package/dist/src/app/charts/series/datumSeries.test.js.map +1 -0
  102. package/dist/src/app/charts/series/iterateSeries.d.ts +42 -0
  103. package/dist/src/app/charts/series/iterateSeries.js +34 -0
  104. package/dist/src/app/charts/series/iterateSeries.js.map +1 -0
  105. package/dist/src/app/charts/series/ordinalSeries.d.ts +54 -0
  106. package/dist/src/app/charts/series/ordinalSeries.js +98 -0
  107. package/dist/src/app/charts/series/ordinalSeries.js.map +1 -0
  108. package/dist/src/app/charts/series/timeSeries.d.ts +30 -0
  109. package/dist/src/app/charts/series/timeSeries.js +19 -0
  110. package/dist/src/app/charts/series/timeSeries.js.map +1 -0
  111. package/dist/src/app/charts/{chartData.d.ts → series/timeSeriesChartData.d.ts} +11 -6
  112. package/dist/src/app/charts/series/timeSeriesChartData.js +32 -0
  113. package/dist/src/app/charts/series/timeSeriesChartData.js.map +1 -0
  114. package/dist/src/app/charts/styling/barPlotStyle.d.ts +41 -0
  115. package/dist/src/app/charts/styling/barPlotStyle.js +84 -0
  116. package/dist/src/app/charts/styling/barPlotStyle.js.map +1 -0
  117. package/dist/src/app/charts/{margins.d.ts → styling/margins.d.ts} +7 -5
  118. package/dist/src/app/charts/{margins.js → styling/margins.js} +19 -9
  119. package/dist/src/app/charts/styling/margins.js.map +1 -0
  120. package/dist/src/app/charts/styling/margins.test.d.ts +1 -0
  121. package/dist/src/app/charts/styling/margins.test.js +19 -0
  122. package/dist/src/app/charts/styling/margins.test.js.map +1 -0
  123. package/dist/src/app/charts/styling/svgStyle.d.ts +76 -0
  124. package/dist/src/app/charts/styling/svgStyle.js +84 -0
  125. package/dist/src/app/charts/styling/svgStyle.js.map +1 -0
  126. package/dist/src/app/charts/subscriptions/subscription.test.d.ts +1 -0
  127. package/dist/src/app/charts/subscriptions/subscription.test.js +395 -0
  128. package/dist/src/app/charts/subscriptions/subscription.test.js.map +1 -0
  129. package/dist/src/app/charts/subscriptions/subscriptions.d.ts +100 -0
  130. package/dist/src/app/charts/subscriptions/subscriptions.js +449 -0
  131. package/dist/src/app/charts/subscriptions/subscriptions.js.map +1 -0
  132. package/dist/src/app/charts/tooltips/BarPlotTooltipContent.d.ts +90 -0
  133. package/dist/src/app/charts/tooltips/BarPlotTooltipContent.js +302 -0
  134. package/dist/src/app/charts/tooltips/BarPlotTooltipContent.js.map +1 -0
  135. package/dist/src/app/charts/tooltips/PoincarePlotTooltipContent.d.ts +100 -0
  136. package/dist/src/app/charts/tooltips/PoincarePlotTooltipContent.js +190 -0
  137. package/dist/src/app/charts/tooltips/PoincarePlotTooltipContent.js.map +1 -0
  138. package/dist/src/app/charts/{RasterPlotTooltipContent.js → tooltips/RasterPlotTooltipContent.js} +40 -44
  139. package/dist/src/app/charts/tooltips/RasterPlotTooltipContent.js.map +1 -0
  140. package/dist/src/app/charts/tooltips/ScatterPlotTooltipContent.js +154 -0
  141. package/dist/src/app/charts/tooltips/ScatterPlotTooltipContent.js.map +1 -0
  142. package/dist/src/app/charts/{Tooltip.d.ts → tooltips/Tooltip.d.ts} +4 -2
  143. package/dist/src/app/charts/{Tooltip.js → tooltips/Tooltip.js} +23 -28
  144. package/dist/src/app/charts/tooltips/Tooltip.js.map +1 -0
  145. package/dist/src/app/charts/{tooltipUtils.d.ts → tooltips/tooltipUtils.d.ts} +11 -6
  146. package/dist/src/app/charts/{tooltipUtils.js → tooltips/tooltipUtils.js} +33 -17
  147. package/dist/src/app/charts/tooltips/tooltipUtils.js.map +1 -0
  148. package/dist/src/app/charts/{Tracker.d.ts → trackers/Tracker.d.ts} +6 -5
  149. package/dist/src/app/charts/trackers/Tracker.js +60 -0
  150. package/dist/src/app/charts/trackers/Tracker.js.map +1 -0
  151. package/dist/src/app/charts/{trackerUtils.d.ts → trackers/trackerUtils.d.ts} +13 -8
  152. package/dist/src/app/charts/trackers/trackerUtils.js +359 -0
  153. package/dist/src/app/charts/trackers/trackerUtils.js.map +1 -0
  154. package/dist/src/app/charts/utils.d.ts +22 -32
  155. package/dist/src/app/charts/utils.js +36 -37
  156. package/dist/src/app/charts/utils.js.map +1 -1
  157. package/dist/src/index.d.ts +48 -15
  158. package/dist/src/index.js +71 -15
  159. package/dist/src/index.js.map +1 -1
  160. package/package.json +30 -20
  161. package/src/app/charts/Chart.tsx +334 -0
  162. package/src/app/charts/axes/AxesState.test.ts +34 -0
  163. package/src/app/charts/axes/AxesState.ts +112 -0
  164. package/src/app/charts/axes/AxisInterval.test.ts +143 -0
  165. package/src/app/charts/axes/AxisInterval.ts +139 -0
  166. package/src/app/charts/axes/BaseAxisRange.ts +113 -0
  167. package/src/app/charts/axes/ContinuousAxis.tsx +192 -0
  168. package/src/app/charts/axes/ContinuousAxisRange.test.ts +55 -0
  169. package/src/app/charts/axes/ContinuousAxisRange.ts +96 -0
  170. package/src/app/charts/axes/OrdinalAxis.tsx +223 -0
  171. package/src/app/charts/axes/OrdinalAxisRange.test.ts +55 -0
  172. package/src/app/charts/axes/OrdinalAxisRange.ts +112 -0
  173. package/src/app/charts/axes/axes.ts +1569 -0
  174. package/src/app/charts/d3types.ts +16 -0
  175. package/src/app/charts/filters/regexFilter.test.ts +13 -0
  176. package/src/app/charts/filters/regexFilter.ts +17 -0
  177. package/src/app/charts/hooks/useAxes.tsx +341 -0
  178. package/src/app/charts/hooks/useChart.tsx +159 -0
  179. package/src/app/charts/hooks/useDataObservable.tsx +175 -0
  180. package/src/app/charts/hooks/useInitialData.tsx +65 -0
  181. package/src/app/charts/hooks/useMouse.tsx +125 -0
  182. package/src/app/charts/hooks/usePlotDimensions.tsx +120 -0
  183. package/src/app/charts/hooks/useTooltip.tsx +112 -0
  184. package/src/app/charts/observables/ChartData.ts +31 -0
  185. package/src/app/charts/observables/iterates.test.ts +201 -0
  186. package/src/app/charts/observables/iterates.ts +203 -0
  187. package/src/app/charts/observables/ordinals.test.ts +135 -0
  188. package/src/app/charts/observables/ordinals.ts +248 -0
  189. package/src/app/charts/plots/BarPlot.tsx +1088 -0
  190. package/src/app/charts/plots/PoincarePlot.tsx +832 -0
  191. package/src/app/charts/plots/RasterPlot.tsx +676 -0
  192. package/src/app/charts/plots/ScatterPlot.tsx +653 -0
  193. package/src/app/charts/plots/plot.ts +75 -0
  194. package/src/app/charts/series/baseSeries.ts +52 -0
  195. package/src/app/charts/series/datumSeries.test.ts +60 -0
  196. package/src/app/charts/series/iterateSeries.ts +56 -0
  197. package/src/app/charts/series/ordinalSeries.ts +164 -0
  198. package/src/app/charts/series/timeSeries.ts +40 -0
  199. package/src/app/charts/series/timeSeriesChartData.ts +68 -0
  200. package/src/app/charts/styling/barPlotStyle.ts +126 -0
  201. package/src/app/charts/styling/margins.test.ts +22 -0
  202. package/src/app/charts/styling/margins.ts +58 -0
  203. package/src/app/charts/styling/svgStyle.ts +118 -0
  204. package/src/app/charts/subscriptions/subscription.test.ts +499 -0
  205. package/src/app/charts/subscriptions/subscriptions.ts +635 -0
  206. package/src/app/charts/tooltips/BarPlotTooltipContent.tsx +440 -0
  207. package/src/app/charts/tooltips/PoincarePlotTooltipContent.tsx +352 -0
  208. package/src/app/charts/tooltips/RasterPlotTooltipContent.tsx +274 -0
  209. package/src/app/charts/tooltips/ScatterPlotTooltipContent.tsx +319 -0
  210. package/src/app/charts/tooltips/Tooltip.tsx +148 -0
  211. package/src/app/charts/tooltips/tooltipUtils.ts +216 -0
  212. package/src/app/charts/trackers/Tracker.tsx +129 -0
  213. package/src/app/charts/trackers/trackerUtils.ts +494 -0
  214. package/src/app/charts/utils.ts +109 -0
  215. package/dist/src/app/charts/CategoryAxis.d.ts +0 -20
  216. package/dist/src/app/charts/CategoryAxis.js +0 -112
  217. package/dist/src/app/charts/CategoryAxis.js.map +0 -1
  218. package/dist/src/app/charts/ContinuousAxis.d.ts +0 -16
  219. package/dist/src/app/charts/ContinuousAxis.js +0 -186
  220. package/dist/src/app/charts/ContinuousAxis.js.map +0 -1
  221. package/dist/src/app/charts/RasterPlot.js.map +0 -1
  222. package/dist/src/app/charts/RasterPlotTooltipContent.js.map +0 -1
  223. package/dist/src/app/charts/ScatterPlot.js +0 -351
  224. package/dist/src/app/charts/ScatterPlot.js.map +0 -1
  225. package/dist/src/app/charts/ScatterPlotTooltipContent.js +0 -163
  226. package/dist/src/app/charts/ScatterPlotTooltipContent.js.map +0 -1
  227. package/dist/src/app/charts/Tooltip.js.map +0 -1
  228. package/dist/src/app/charts/Tracker.js +0 -65
  229. package/dist/src/app/charts/Tracker.js.map +0 -1
  230. package/dist/src/app/charts/axes.d.ts +0 -132
  231. package/dist/src/app/charts/axes.js +0 -265
  232. package/dist/src/app/charts/axes.js.map +0 -1
  233. package/dist/src/app/charts/chartData.js +0 -32
  234. package/dist/src/app/charts/chartData.js.map +0 -1
  235. package/dist/src/app/charts/continuousAxisRangeFor.d.ts +0 -20
  236. package/dist/src/app/charts/continuousAxisRangeFor.js +0 -68
  237. package/dist/src/app/charts/continuousAxisRangeFor.js.map +0 -1
  238. package/dist/src/app/charts/datumSeries.d.ts +0 -59
  239. package/dist/src/app/charts/datumSeries.js +0 -55
  240. package/dist/src/app/charts/datumSeries.js.map +0 -1
  241. package/dist/src/app/charts/datumSeries.test.js +0 -50
  242. package/dist/src/app/charts/datumSeries.test.js.map +0 -1
  243. package/dist/src/app/charts/hooks/AxesState.d.ts +0 -37
  244. package/dist/src/app/charts/hooks/AxesState.js +0 -44
  245. package/dist/src/app/charts/hooks/AxesState.js.map +0 -1
  246. package/dist/src/app/charts/margins.js.map +0 -1
  247. package/dist/src/app/charts/margins.test.js +0 -14
  248. package/dist/src/app/charts/margins.test.js.map +0 -1
  249. package/dist/src/app/charts/plot.js.map +0 -1
  250. package/dist/src/app/charts/regexFilter.d.ts +0 -9
  251. package/dist/src/app/charts/regexFilter.js +0 -17
  252. package/dist/src/app/charts/regexFilter.js.map +0 -1
  253. package/dist/src/app/charts/regexFilter.test.js +0 -11
  254. package/dist/src/app/charts/regexFilter.test.js.map +0 -1
  255. package/dist/src/app/charts/subscriptions.d.ts +0 -43
  256. package/dist/src/app/charts/subscriptions.js +0 -213
  257. package/dist/src/app/charts/subscriptions.js.map +0 -1
  258. package/dist/src/app/charts/svgStyle.d.ts +0 -27
  259. package/dist/src/app/charts/svgStyle.js +0 -32
  260. package/dist/src/app/charts/svgStyle.js.map +0 -1
  261. package/dist/src/app/charts/timeRange.test.js +0 -54
  262. package/dist/src/app/charts/timeRange.test.js.map +0 -1
  263. package/dist/src/app/charts/tooltipUtils.js.map +0 -1
  264. package/dist/src/app/charts/trackerUtils.js +0 -130
  265. package/dist/src/app/charts/trackerUtils.js.map +0 -1
  266. /package/dist/src/app/charts/{datumSeries.test.d.ts → axes/AxesState.test.d.ts} +0 -0
  267. /package/dist/src/app/charts/{margins.test.d.ts → axes/AxisInterval.test.d.ts} +0 -0
  268. /package/dist/src/app/charts/{regexFilter.test.d.ts → axes/ContinuousAxisRange.test.d.ts} +0 -0
  269. /package/dist/src/app/charts/{timeRange.test.d.ts → axes/OrdinalAxisRange.test.d.ts} +0 -0
  270. /package/dist/src/app/charts/{RasterPlotTooltipContent.d.ts → tooltips/RasterPlotTooltipContent.d.ts} +0 -0
  271. /package/dist/src/app/charts/{ScatterPlotTooltipContent.d.ts → tooltips/ScatterPlotTooltipContent.d.ts} +0 -0
@@ -0,0 +1,78 @@
1
+ import * as d3 from "d3";
2
+ import { CurveFactory } from "d3";
3
+ export declare const NoCurveFactory: CurveFactory;
4
+ interface Props {
5
+ /**
6
+ * The line interpolation curve factory. See the d3 documentation for curves at
7
+ * {@link https://github.com/d3/d3-shape#curves} for information on available interpolations
8
+ */
9
+ interpolation?: d3.CurveFactory;
10
+ /**
11
+ * When set to `true` plots the data points as well as the line.
12
+ */
13
+ showPoints?: boolean;
14
+ /**
15
+ * The number of milliseconds of data to hold in memory before dropping it. Defaults to
16
+ * infinity (i.e. no data is dropped)
17
+ */
18
+ dropDataAfter?: number;
19
+ /**
20
+ * Enables panning (default is false)
21
+ */
22
+ panEnabled?: boolean;
23
+ /**
24
+ * Enables zooming (default is false)
25
+ */
26
+ zoomEnabled?: boolean;
27
+ /**
28
+ * When true, requires that the shift or control key be pressed while scrolling
29
+ * in order to activate the zoom
30
+ */
31
+ zoomKeyModifiersRequired?: boolean;
32
+ /**
33
+ * The smallest scale factor allowed for zooming (in). For example, a setting of 0.5 means
34
+ * that the largest zoom amount is 2 times the current size, or put another way, an interval
35
+ * of length 1 unit covers twice as may pixels after the zoom. Effectively, the smaller this
36
+ * factor, the more the user can "zoom in". Default value is 0.0.
37
+ */
38
+ zoomMinScaleFactor?: number;
39
+ /**
40
+ * The largest scale factor allowed for zooming (out). For example, a setting of 2.0 means
41
+ * that at this value, the length of 1 unit covers 1/2 the number of pixels. Effectively,
42
+ * the larger this factor, the more the user can "zoom out". Default value is 1.0.
43
+ */
44
+ zoomMaxScaleFactor?: number;
45
+ /**
46
+ * When set, uses a cadence with the specified refresh period (in milliseconds). For plots
47
+ * where the updates are slow (> 100 ms) using a cadence of 10 to 25 ms smooths out the
48
+ * updates and makes the plot updates look cleaner. When updates are around 25 ms or less,
49
+ * then setting the cadence period too small will result in poor update performance. Generally
50
+ * at high update speeds, the cadence is unnecessary. Finally, using cadence, sets the max time
51
+ * to the current time.
52
+ */
53
+ withCadenceOf?: number;
54
+ }
55
+ /**
56
+ * Renders a streaming Poincare (iterates) plot for the series in the initial data and those sourced by the
57
+ * observable specified as a property in the {@link Chart}. This component uses the {@link useChart}
58
+ * hook, and therefore must be a child of the {@link Chart} in order to be plugged in to the
59
+ * chart ecosystem (axes, tracker, tooltip).
60
+ *
61
+ * @param props The properties associated with the scatter plot
62
+ * @constructor
63
+ * @example
64
+ * ```typescript
65
+ * <ScatterPlot
66
+ * interpolation={interpolation}
67
+ * axisAssignments={new Map([
68
+ * ['test2', assignAxes("x-axis-2", "y-axis-2")],
69
+ * ])}
70
+ * dropDataAfter={10000}
71
+ * panEnabled={true}
72
+ * zoomEnabled={true}
73
+ * zoomKeyModifiersRequired={true}
74
+ * />
75
+ * ```
76
+ */
77
+ export declare function PoincarePlot(props: Props): null;
78
+ export {};
@@ -0,0 +1,504 @@
1
+ import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
2
+ import { useCallback, useEffect, useMemo, useRef } from 'react';
3
+ import { useChart } from "../hooks/useChart";
4
+ import * as d3 from "d3";
5
+ import { setClipPathG } from "./plot";
6
+ import { axesZoomHandler, defaultLineStyle, panHandler2D } from "../axes/axes";
7
+ import { formatTime, noop, textDimensions } from "../utils";
8
+ import { subscriptionIteratesFor } from "../subscriptions/subscriptions";
9
+ import { useDataObservable } from "../hooks/useDataObservable";
10
+ import { usePlotDimensions } from "../hooks/usePlotDimensions";
11
+ import { useInitialData } from "../hooks/useInitialData";
12
+ import { useTooltip } from "../hooks/useTooltip";
13
+ import { ContinuousAxisRange } from "../axes/ContinuousAxisRange";
14
+ function generateAxisRangeMap(axes) {
15
+ return new Map(Array.from(axes.entries()).map(([id, axis]) => {
16
+ const [start, end] = axis.scale.domain();
17
+ return [id, ContinuousAxisRange.from(start, end)];
18
+ }));
19
+ }
20
+ // A sentinel that represents that no curve factory is to be used, which means
21
+ // that no line will be drawn between the iterates (kinda gross)
22
+ export const NoCurveFactory = undefined;
23
+ /**
24
+ * Renders a streaming Poincare (iterates) plot for the series in the initial data and those sourced by the
25
+ * observable specified as a property in the {@link Chart}. This component uses the {@link useChart}
26
+ * hook, and therefore must be a child of the {@link Chart} in order to be plugged in to the
27
+ * chart ecosystem (axes, tracker, tooltip).
28
+ *
29
+ * @param props The properties associated with the scatter plot
30
+ * @constructor
31
+ * @example
32
+ * ```typescript
33
+ * <ScatterPlot
34
+ * interpolation={interpolation}
35
+ * axisAssignments={new Map([
36
+ * ['test2', assignAxes("x-axis-2", "y-axis-2")],
37
+ * ])}
38
+ * dropDataAfter={10000}
39
+ * panEnabled={true}
40
+ * zoomEnabled={true}
41
+ * zoomKeyModifiersRequired={true}
42
+ * />
43
+ * ```
44
+ */
45
+ export function PoincarePlot(props) {
46
+ const { chartId, container, mainG, axes, backgroundColor, seriesStyles, seriesFilter, mouse } = useChart();
47
+ const { xAxesState, yAxesState, setAxisIntervalFor, updateAxisRanges = noop, axisRangeFor, addAxesRangesUpdateHandler, removeAxesRangesUpdateHandler, } = axes;
48
+ const { mouseOverHandlerFor, mouseLeaveHandlerFor } = mouse;
49
+ const { plotDimensions, margin, } = usePlotDimensions();
50
+ const { seriesObservable, windowingTime = 100, shouldSubscribe, onSubscribe = noop, onUpdateData, onUpdateChartTime = noop, } = useDataObservable();
51
+ const { initialData } = useInitialData();
52
+ const { visibilityState: tooltipVisible } = useTooltip();
53
+ const { interpolation, showPoints = true, dropDataAfter = 1000, panEnabled = false, zoomEnabled = false, zoomKeyModifiersRequired = true, zoomMinScaleFactor = 0, zoomMaxScaleFactor = 1, } = props;
54
+ // why do "dataRef" and "seriesRef" both hold on to the same underlying data? for performance.
55
+ //
56
+ // the "dataRef" and "seriesRef" both point to the same underlying data, a collection
57
+ // of series. The series in "dataRef" are bound to the DOM elements through d3. The "seriesRef" series
58
+ // are the ones that are updated as new data is streamed in.
59
+ //
60
+ // the "dataRef" object holds on to a copy of the initial data (which is an array of
61
+ // time-series, e.i. an array of BaseSeries<OrdinalDatum> objects). The slice just creates a copy of
62
+ // the array, but the references to the BaseSeries objects are the same and still point to the same
63
+ // data as the "initialData" array.
64
+ //
65
+ // the "seriesRef" object is a reference to a map (series_name -> BaseSeries<OrdinalDatum>) which is
66
+ // used to update the data in the series. When new data enters, it is appended to one or more series.
67
+ //
68
+ // the series in the "dataRef" object are the ones bound to the DOM elements in d3, and so as these
69
+ // are updated, d3 will update the DOM elements (the elements in this plot).
70
+ const dataRef = useRef(initialData.slice());
71
+ const seriesRef = useRef(new Map(initialData.map(series => [series.name, series])));
72
+ // map(axis_id -> current_time) -- maps the axis ID to the current time for that axis
73
+ const currentTimeRef = useRef(0);
74
+ const xAxisRangesRef = useRef(new Map());
75
+ const yAxisRangesRef = useRef(new Map());
76
+ const subscriptionRef = useRef(undefined);
77
+ const isSubscriptionClosed = () => subscriptionRef.current === undefined || subscriptionRef.current.closed;
78
+ const allowTooltip = useRef(isSubscriptionClosed());
79
+ // so that we can reset the zoom when the axes-bounds change, we hold on to the zoom-behaviour
80
+ // and the zoom-selection so that we can reset the transform to the identity
81
+ const zoomRef = useRef(undefined);
82
+ const zoomSelectionRef = useRef(undefined);
83
+ // calculates the distinct axis IDs that cover all the series in the plot
84
+ const xAxesForSeries = useMemo(() => xAxesState.axisIds(), [xAxesState]);
85
+ const yAxesForSeries = useMemo(() => yAxesState.axisIds(), [yAxesState]);
86
+ // when the axes are available, then set the reference, but only once
87
+ useEffect(() => {
88
+ if (xAxesState.axes.size > 0 && xAxisRangesRef.current.size === 0) {
89
+ xAxisRangesRef.current = generateAxisRangeMap(xAxesState.axes);
90
+ }
91
+ if (yAxesState.axes.size > 0 && yAxisRangesRef.current.size === 0) {
92
+ yAxisRangesRef.current = generateAxisRangeMap(yAxesState.axes);
93
+ }
94
+ }, [xAxesState, yAxesState]);
95
+ // update the plot with the new axes bounds
96
+ const updateRangesAndPlot = useCallback(() => {
97
+ if (mainG !== null) {
98
+ updatePlotRef.current(mainG);
99
+ }
100
+ }, [mainG]);
101
+ // todo find better way
102
+ // when the initial data changes, then reset the plot. note that the initial data doesn't change
103
+ // during the normal course of updates from the observable, only when the plot is restarted.
104
+ useEffect(() => {
105
+ dataRef.current = initialData.slice();
106
+ seriesRef.current = new Map(initialData.map(series => [series.name, series]));
107
+ currentTimeRef.current = 0;
108
+ updateRangesAndPlot();
109
+ }, [initialData, updateRangesAndPlot]);
110
+ /**
111
+ * When the axes bounds have changed, we need to reset the range references so that
112
+ * the new axis ranges are used
113
+ * @param updates The updates to the axes
114
+ */
115
+ const updatedBoundsHandler = useCallback((updates) => {
116
+ updates.forEach((update, axisId) => {
117
+ if (xAxisRangesRef.current.has(axisId)) {
118
+ xAxisRangesRef.current.set(axisId, update);
119
+ }
120
+ if (yAxisRangesRef.current.has(axisId)) {
121
+ yAxisRangesRef.current.set(axisId, update);
122
+ }
123
+ });
124
+ if (zoomEnabled && zoomSelectionRef.current !== undefined && zoomRef.current !== undefined) {
125
+ zoomSelectionRef.current.call(zoomRef.current.transform, d3.zoomIdentity);
126
+ }
127
+ }, [zoomEnabled]);
128
+ // strange construct so that we only add the update handler when the chart ID
129
+ // changes, and not when the addAxesBoundsUpdateHandler or removeAxesBoundsUpdateHandler
130
+ // which they do, and that breaks the updates...someone, please teach me react
131
+ //
132
+ // the update handler is needed so that when the axis bounds are changed (say to accommodate a
133
+ // different iterate function's domain/range), then the handler needs to update the x and y
134
+ // axes range refs
135
+ const addAxesBoundsUpdateHandlerRef = useRef(addAxesRangesUpdateHandler);
136
+ const removeAxesBoundsUpdateHandlerRef = useRef(removeAxesRangesUpdateHandler);
137
+ useEffect(() => {
138
+ addAxesBoundsUpdateHandlerRef.current(`handler-${chartId}`, updatedBoundsHandler);
139
+ const removeHandler = removeAxesBoundsUpdateHandlerRef.current;
140
+ return () => {
141
+ // closure on the function to remove the handler from this chart
142
+ removeHandler(`handler-${chartId}`);
143
+ };
144
+ }, [chartId, updatedBoundsHandler]);
145
+ /**
146
+ * Adjusts the time-range and updates the plot when the plot is dragged to the left or right
147
+ * @param x The amount that the plot is dragged
148
+ * @param plotDimensions The dimensions of the plot
149
+ * @param series An array of series names
150
+ * @param ranges A map holding the axis ID and its associated time range
151
+ */
152
+ const onPan = useCallback((x, y, plotDimensions, series, xRanges, yRanges) => panHandler2D(xAxesForSeries, yAxesForSeries, margin, setAxisIntervalFor, xAxesState, yAxesState)(x, y, plotDimensions, series, xRanges, yRanges), [xAxesForSeries, yAxesForSeries, margin, setAxisIntervalFor, xAxesState, yAxesState]);
153
+ /**
154
+ * Called when the user uses the scroll wheel (or scroll gesture) to zoom in or out. Zooms in/out
155
+ * at the location of the mouse when the scroll wheel or gesture was applied. Unlike time-series
156
+ * plots, the iterates plot zooms the x- and y-axis at the same rate.
157
+ * @param transform The d3 zoom transformation information
158
+ * @param x The x-position of the mouse when the scroll wheel or gesture is used
159
+ * @param y The y-position of the mouse when the scroll wheel or gesture is used
160
+ * @param plotDimensions The dimensions of the plot
161
+ * @param series An array of series names
162
+ * @param ranges A map holding the axis ID and its associated time-range
163
+ */
164
+ const onZoom = useCallback((transform, x, y, plotDimensions, xRanges, yRanges) => axesZoomHandler(xAxesForSeries, yAxesForSeries, margin, setAxisIntervalFor, xAxesState, yAxesState, [zoomMinScaleFactor, zoomMaxScaleFactor])(transform, [x, y], plotDimensions, xRanges, yRanges), [xAxesForSeries, yAxesForSeries, margin, setAxisIntervalFor, xAxesState, yAxesState, zoomMinScaleFactor, zoomMaxScaleFactor]);
165
+ const updatePlot = useCallback(
166
+ /**
167
+ * Updates the plot data for the specified time-range, which may have changed due to zoom or pan
168
+ * @param mainGElem The main <g> element selection for that holds the plot
169
+ */
170
+ (mainGElem) => {
171
+ if (container) {
172
+ onUpdateChartTime(currentTimeRef.current);
173
+ // select the svg element bind the data to them
174
+ const svg = d3.select(container);
175
+ // create a map associating series-names to their time-series.
176
+ //
177
+ // performance-related confusion: wondering where the dataRef is updated? well it isn't
178
+ // directly. The dataRef holds on to an array of references to the Series. And so does the
179
+ // seriesRef, though it uses a map(series_name -> series). The seriesRef is used to append
180
+ // data to the underlying Series, and the dataRef is used so that we can just use
181
+ // dataRef.current and don't have to do Array.from(seriesRef.current.values()) which
182
+ // creates a temporary array
183
+ // const offset = 1
184
+ const boundedSeries = new Map(dataRef.current.map(series => {
185
+ return [
186
+ series.name,
187
+ series.data
188
+ .filter(datum => !isNaN(datum.iterateN))
189
+ .map((datum, index) => ({
190
+ n: datum.iterateN,
191
+ n_1: datum.iterateN_1,
192
+ time: datum.time,
193
+ index: index
194
+ }))
195
+ ];
196
+ }));
197
+ // set up panning
198
+ if (panEnabled) {
199
+ const drag = d3.drag()
200
+ .on("start", () => {
201
+ d3.select(container).style("cursor", "move");
202
+ // during panning, we need to disable viewing the tooltip to prevent
203
+ // tooltips from rendering but not getting removed
204
+ allowTooltip.current = false;
205
+ })
206
+ .on("drag", event => {
207
+ onPan(event.dx, event.dy, plotDimensions, Array.from(boundedSeries.keys()), xAxisRangesRef.current, yAxisRangesRef.current);
208
+ updatePlotRef.current(mainGElem);
209
+ })
210
+ .on("end", () => {
211
+ d3.select(container).style("cursor", "auto");
212
+ // during panning, we disabled viewing the tooltip to prevent
213
+ // tooltips from rendering but not getting removed, now that panning
214
+ // is over, allow tooltips to render again
215
+ allowTooltip.current = isSubscriptionClosed();
216
+ });
217
+ svg.call(drag);
218
+ }
219
+ // set up for zooming
220
+ if (zoomEnabled) {
221
+ zoomRef.current = d3.zoom()
222
+ .filter(event => !zoomKeyModifiersRequired || event.shiftKey || event.ctrlKey)
223
+ .scaleExtent([zoomMinScaleFactor, zoomMaxScaleFactor])
224
+ .translateExtent([[margin.left, margin.top], [plotDimensions.width, plotDimensions.height]])
225
+ .on("zoom", event => {
226
+ allowTooltip.current = false;
227
+ if (event.sourceEvent !== null) {
228
+ onZoom(event.transform, event.sourceEvent.offsetX - margin.left, event.sourceEvent.offsetY - margin.top, plotDimensions, xAxisRangesRef.current, yAxisRangesRef.current);
229
+ updatePlotRef.current(mainGElem);
230
+ }
231
+ allowTooltip.current = true;
232
+ });
233
+ zoomSelectionRef.current = svg.call(zoomRef.current);
234
+ }
235
+ // define the clip-path so that the series lines don't go beyond the plot area
236
+ const clipPathId = setClipPathG(chartId, mainGElem, plotDimensions);
237
+ // ---
238
+ // todo only want to do this once, on the first plot, and then leave it,
239
+ // unless the axes are updated, also needs to be removed/added when the
240
+ // plot size changes
241
+ const xAxis = xAxesState.defaultAxis().getOrThrow(() => new Error('No default axis found'));
242
+ const yAxis = yAxesState.defaultAxis().getOrThrow(() => new Error('No default axis found'));
243
+ const lineGenerator = d3.line()
244
+ .x(d => xAxis.scale(d[0] || 0))
245
+ .y(d => yAxis.scale(d[1] || 0));
246
+ // ---
247
+ const [xStart, xEnd] = xAxesState.axisDefaultId()
248
+ .map(id => { var _a; return ((_a = xAxisRangesRef.current.get(id)) === null || _a === void 0 ? void 0 : _a.original.asTuple()) || [0, 0]; })
249
+ .getOrElse([0, 0]);
250
+ const [yStart, yEnd] = yAxesState.axisDefaultId()
251
+ .map(id => { var _a; return ((_a = yAxisRangesRef.current.get(id)) === null || _a === void 0 ? void 0 : _a.original.asTuple()) || [0, 0]; })
252
+ .getOrElse([0, 0]);
253
+ // const [xStart, xEnd] = xAxisRangesRef.current.get(xAxesState.axisDefaultId())?.original.asTuple() || [0, 0]
254
+ // const [yStart, yEnd] = yAxisRangesRef.current.get(yAxesState.axisDefaultId())?.original.asTuple() || [0, 0]
255
+ mainGElem
256
+ .selectAll(`#fn-equals-fn1-${chartId}-poincare`)
257
+ .data([[[xStart, yStart], [xEnd, yEnd]]])
258
+ .join(enter => enter
259
+ .select("path")
260
+ .style("stroke", "grey")
261
+ .style("fill", "none")
262
+ .style("stroke-width", "1px")
263
+ .attr("class", `fn-equals-fn1-poincare`)
264
+ .attr("id", `#fn-equals-fn1-${chartId}-poincare`)
265
+ .attr('transform', `translate(${margin.left}, ${margin.top})`)
266
+ .attr("d", lineGenerator), update => update.remove(), exit => exit.remove())
267
+ // clear out mouse-enter callbacks for the diagonal line
268
+ .on("mouseenter", () => {
269
+ })
270
+ .on("mouseleave", () => {
271
+ });
272
+ boundedSeries.forEach((data, name) => {
273
+ // grab the x and y axes assigned to the series, and if either or both
274
+ // axes aren't found, then give up and return
275
+ const [xAxisLinear, yAxisLinear] = axesFor(axisId => xAxesState.axisFor(axisId).getOrUndefined(), axisId => yAxesState.axisFor(axisId).getOrUndefined());
276
+ if (xAxisLinear === undefined || yAxisLinear === undefined)
277
+ return;
278
+ // grab the style for the series
279
+ const seriesLineStyle = seriesStyles.get(name) || Object.assign(Object.assign({}, defaultLineStyle()), { highlightColor: defaultLineStyle().color });
280
+ // only show the data for which the filter matches
281
+ const plotData = (name.match(seriesFilter)) ? data : [];
282
+ const pathGenerator = d3.line()
283
+ .x(d => xAxis.scale(d.n || 0))
284
+ .y(d => yAxis.scale(d.n_1 || 0));
285
+ if (interpolation === undefined) {
286
+ mainGElem
287
+ .selectAll(`#${name}-${chartId}-poincare`)
288
+ .remove();
289
+ }
290
+ else {
291
+ // create the time-series paths
292
+ mainGElem
293
+ .selectAll(`#${name}-${chartId}-poincare`)
294
+ .data([[], plotData], () => `${name}`)
295
+ .join(enter => enter
296
+ .append("path")
297
+ .attr("class", 'iterate-series-lines')
298
+ .attr("id", `${name}-${chartId}-poincare`)
299
+ .attr("d", pathGenerator.curve(interpolation))
300
+ .style("fill", "none")
301
+ .style("stroke", seriesLineStyle.color)
302
+ .style("stroke-width", seriesLineStyle.lineWidth)
303
+ .attr('transform', `translate(${margin.left}, ${margin.top})`)
304
+ .attr("clip-path", `url(#${clipPathId})`), update => update, exit => exit.remove());
305
+ }
306
+ // when specified, show a circle for the actual data point
307
+ if (showPoints) {
308
+ mainGElem
309
+ .selectAll(`.${name}-${chartId}-poincare-points`)
310
+ .data(plotData, () => `${name}`)
311
+ .join(enter => enter
312
+ .append("circle")
313
+ .attr("class", `${name}-${chartId}-poincare-points`)
314
+ .attr("id", (_, index) => `${name}-${chartId}-poincare-point-${index}`)
315
+ .attr("fill", seriesLineStyle.color)
316
+ .attr("stroke", "none")
317
+ .attr("cx", (d) => xAxisLinear.scale(d.n) || 0)
318
+ .attr("cy", (d) => yAxisLinear.scale(d.n_1) || 0)
319
+ .attr("r", 2)
320
+ .attr('transform', `translate(${margin.left}, ${margin.top})`)
321
+ .attr("clip-path", `url(#${clipPathId})`), update => update
322
+ .attr("cx", (d) => xAxisLinear.scale(d.n) || 0)
323
+ .attr("cy", (d) => yAxisLinear.scale(d.n_1) || 0), exit => exit.remove())
324
+ .on("mouseenter", (event, datum) => {
325
+ if (allowTooltip.current && tooltipVisible) {
326
+ return handleMouseEnterPoint(chartId, name, container, event, datum, plotData, xAxisLinear, yAxisLinear, margin, seriesLineStyle, backgroundColor, allowTooltip.current, mouseOverHandlerFor(`tooltip-${chartId}`));
327
+ }
328
+ return _jsx(_Fragment, {});
329
+ })
330
+ .on("mouseleave", () => {
331
+ handleMouseLeavePoint(chartId, name, seriesLineStyle.color, mouseLeaveHandlerFor(`tooltip-${chartId}`));
332
+ });
333
+ }
334
+ });
335
+ }
336
+ }, [
337
+ container, onUpdateChartTime, panEnabled, zoomEnabled, chartId, plotDimensions, margin,
338
+ xAxesState, yAxesState,
339
+ onPan,
340
+ zoomMinScaleFactor, zoomMaxScaleFactor, zoomKeyModifiersRequired, onZoom,
341
+ seriesStyles, seriesFilter, showPoints,
342
+ interpolation, backgroundColor,
343
+ mouseOverHandlerFor, mouseLeaveHandlerFor,
344
+ tooltipVisible,
345
+ ]);
346
+ // need to keep the function references for use by the subscription, which forms a closure
347
+ // on them. without the references, the closures become stale, and resizing during streaming
348
+ // doesn't work properly
349
+ const updatePlotRef = useRef(updatePlot);
350
+ useEffect(() => {
351
+ updatePlotRef.current = updatePlot;
352
+ }, [updatePlot]);
353
+ const onUpdateAxesBoundsRef = useRef(updateAxisRanges);
354
+ useEffect(() => {
355
+ onUpdateAxesBoundsRef.current = updateAxisRanges;
356
+ }, [updateAxisRanges]);
357
+ // memoized function for subscribing to the chart-data observable
358
+ const subscribe = useCallback(() => {
359
+ if (seriesObservable === undefined || mainG === null)
360
+ return undefined;
361
+ return subscriptionIteratesFor(seriesObservable, onSubscribe, windowingTime, xAxesState, yAxesState, onUpdateData, dropDataAfter, updateRangesAndPlot,
362
+ // as new data flows into the subscription, the subscription
363
+ // updates this map directly (for performance)
364
+ seriesRef.current, end => currentTimeRef.current = end);
365
+ }, [
366
+ dropDataAfter, mainG,
367
+ onSubscribe, onUpdateData,
368
+ seriesObservable, updateRangesAndPlot, windowingTime,
369
+ xAxesState, yAxesState,
370
+ ]);
371
+ // updates the plot when the interpolation and filter change, because the updatePlot
372
+ // callback has changed.
373
+ useEffect(() => {
374
+ if (container && mainG) {
375
+ updatePlot(mainG);
376
+ }
377
+ }, [axisRangeFor, container, mainG, updatePlot]);
378
+ // subscribe/unsubscribe to the observable chart data. when the `shouldSubscribe`
379
+ // is changed to `true` and we haven't subscribed yet, then subscribe. when the
380
+ // `shouldSubscribe` is `false` and we had subscribed, then unsubscribe. otherwise,
381
+ // do nothing.
382
+ useEffect(() => {
383
+ var _a;
384
+ if (shouldSubscribe && subscriptionRef.current === undefined) {
385
+ subscriptionRef.current = subscribe();
386
+ allowTooltip.current = false;
387
+ }
388
+ else if (!shouldSubscribe && subscriptionRef.current !== undefined) {
389
+ (_a = subscriptionRef.current) === null || _a === void 0 ? void 0 : _a.unsubscribe();
390
+ subscriptionRef.current = undefined;
391
+ allowTooltip.current = true;
392
+ }
393
+ }, [shouldSubscribe, subscribe]);
394
+ return null;
395
+ }
396
+ /**
397
+ * Attempts to locate the x- and y-axes for the specified series. If no axis is found for the
398
+ * series name, then uses the default returned by the useChart() hook
399
+ * @param xAxisFor The function that accepts an axis ID and returns the corresponding x-axis
400
+ * @param yAxisFor The function that accepts an axis ID and returns the corresponding y-axis
401
+ */
402
+ function axesFor(xAxisFor, yAxisFor) {
403
+ const xAxis = xAxisFor("");
404
+ const xAxisLinear = xAxis;
405
+ const yAxis = yAxisFor("");
406
+ const yAxisLinear = yAxis;
407
+ if (xAxis && !xAxisLinear) {
408
+ throw Error("Poincare plot requires that x-axis be of type LinearAxis");
409
+ }
410
+ if (yAxis && !yAxisLinear) {
411
+ throw Error("Poincare plot requires that y-axis be of type LinearAxis");
412
+ }
413
+ return [xAxisLinear, yAxisLinear];
414
+ }
415
+ /**
416
+ * @param chartId The ID of the chart
417
+ * @param seriesName The name of the series (i.e. the neuron ID)
418
+ * @param container The SVG container holding the plot
419
+ * @param event The mouse event that triggered this call
420
+ * @param datum The datum over which the mouse has entered
421
+ * @param plotData The iterates series
422
+ * @param xAxisLinear The x-axis (f[n](x))
423
+ * @param yAxisLinear The y-axis (f[n+1](x))
424
+ * @param margin The plot margin
425
+ * @param seriesStyle The series style information (needed for (un)highlighting)
426
+ * @param backgroundColor
427
+ * @param allowTooltip When set to `false` won't show tooltip, even if it is visible (used by pan)
428
+ * @param mouseOverHandlerFor The handler for the mouse-over (registered by the <Tooltip/>)
429
+ */
430
+ function handleMouseEnterPoint(chartId, seriesName, container, event, datum, plotData, xAxisLinear, yAxisLinear, margin, seriesStyle, backgroundColor, allowTooltip, mouseOverHandlerFor) {
431
+ const { color, highlightColor, lineWidth } = seriesStyle;
432
+ const padding = 4;
433
+ const circleRadius = 5;
434
+ const circleStroke = lineWidth;
435
+ const circle = event.currentTarget;
436
+ d3.select(circle)
437
+ .attr("r", circleRadius)
438
+ .style("fill", highlightColor);
439
+ const index = plotData
440
+ .findIndex(point => point.n === datum.n && point.n_1 === datum.n_1);
441
+ /**
442
+ * Displays basic information about an iterate, generally its neighbors
443
+ * @param index The index of the iterate
444
+ */
445
+ function showInfo(index) {
446
+ d3.select(`#${seriesName}-${chartId}-poincare-point-${index}`)
447
+ .attr("r", circleRadius)
448
+ .style("fill", d3.rgb(highlightColor).brighter(0.7).toString())
449
+ .style("stroke-width", circleStroke)
450
+ .style("stroke", color);
451
+ // grab the (x, y)-coordinates for the plot
452
+ const iterateN = xAxisLinear.scale(plotData[index].n) + margin.left;
453
+ const iterateN_1 = yAxisLinear.scale(plotData[index].n_1) + margin.top;
454
+ const svg = d3.select(container);
455
+ // add a rectangle that serves as the background for the text (to make the
456
+ // text readable when the chart is busy)
457
+ const rect = svg
458
+ .append("rect")
459
+ .attr("class", `${seriesName}-${chartId}-poincare-point-text-background`);
460
+ // add the information about the iterate as a text element
461
+ const textElement = svg
462
+ .append("text")
463
+ .attr('class', `${seriesName}-${chartId}-poincare-point-text`)
464
+ .attr('fill', highlightColor)
465
+ .attr('font-family', 'sans-serif')
466
+ .attr('font-size', 11)
467
+ .attr('font-weight', 700)
468
+ .text(`n = ${index}; t = ${formatTime(plotData[index].time)} ms`);
469
+ // calculate the width and height of the text element
470
+ const { width, height } = textDimensions(textElement);
471
+ textElement
472
+ .attr("transform", `translate(${iterateN - 8}, ${iterateN_1 - circleRadius - circleStroke - padding})`);
473
+ rect
474
+ .attr("x", iterateN - padding / 2 - 8)
475
+ .attr("y", iterateN_1 - padding / 2 - circleRadius - circleStroke - height)
476
+ .attr("width", width + padding)
477
+ .attr("height", height + padding / 2)
478
+ .style("fill", backgroundColor);
479
+ }
480
+ if (index > 0) {
481
+ showInfo(index - 1);
482
+ }
483
+ if (index < plotData.length - 1) {
484
+ showInfo(index + 1);
485
+ }
486
+ const [x, y] = d3.pointer(event, container);
487
+ const currentDatum = (index >= 0) ? plotData[index] : { time: 0, n: 0, n_1: 0, index };
488
+ if (mouseOverHandlerFor && allowTooltip) {
489
+ mouseOverHandlerFor(seriesName, currentDatum.time, { series: plotData.map(ip => ({ iterateN: ip.n, iterateN_1: ip.n_1, time: ip.time })), metadata: {} }, [x, y]);
490
+ }
491
+ }
492
+ function handleMouseLeavePoint(chartId, seriesName, color, mouseLeaverHandlerFor) {
493
+ d3.selectAll(`.${seriesName}-${chartId}-poincare-points`)
494
+ .attr("r", 2)
495
+ .style("fill", color)
496
+ .style("stroke", "none");
497
+ d3.selectAll(`.${seriesName}-${chartId}-poincare-point-arrows`).remove();
498
+ d3.selectAll(`.${seriesName}-${chartId}-poincare-point-text`).remove();
499
+ d3.selectAll(`.${seriesName}-${chartId}-poincare-point-text-background`).remove();
500
+ if (mouseLeaverHandlerFor) {
501
+ mouseLeaverHandlerFor(seriesName);
502
+ }
503
+ }
504
+ //# sourceMappingURL=PoincarePlot.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PoincarePlot.js","sourceRoot":"","sources":["../../../../../src/app/charts/plots/PoincarePlot.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAC,WAAW,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAC,MAAM,OAAO,CAAA;AACpE,OAAO,EAAoB,QAAQ,EAAC,MAAM,mBAAmB,CAAC;AAC9D,OAAO,KAAK,EAAE,MAAM,IAAI,CAAC;AAEzB,OAAO,EAAC,YAAY,EAAC,MAAM,QAAQ,CAAC;AAEpC,OAAO,EACH,eAAe,EAGf,gBAAgB,EAChB,YAAY,EAEf,MAAM,cAAc,CAAC;AAGtB,OAAO,EAAC,UAAU,EAAE,IAAI,EAAE,cAAc,EAAC,MAAM,UAAU,CAAC;AAE1D,OAAO,EAAC,uBAAuB,EAAC,MAAM,gCAAgC,CAAC;AACvE,OAAO,EAAC,iBAAiB,EAAC,MAAM,4BAA4B,CAAC;AAG7D,OAAO,EAAC,iBAAiB,EAAC,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAC,cAAc,EAAC,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAc,UAAU,EAAC,MAAM,qBAAqB,CAAC;AAE5D,OAAO,EAAC,mBAAmB,EAAC,MAAM,6BAA6B,CAAC;AAKhE,SAAS,oBAAoB,CAAC,IAA2B;IACrD,OAAO,IAAI,GAAG,CACV,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,IAAI,CAAC,EAAE,EAAE;QAC1C,MAAM,CAAC,KAAK,EAAE,GAAG,CAAC,GAAI,IAA8B,CAAC,KAAK,CAAC,MAAM,EAAE,CAAA;QACnE,OAAO,CAAC,EAAE,EAAE,mBAAmB,CAAC,IAAI,CA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AE,UAAU,EAAE,EAAE,CAAC,GAAG,EAAE,IAAI,EAAE,EAAE,CAAC,IAAI,EAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAC,EACjG,CAAC,CAAC,EAAE,CAAC,CAAC,CACT,CAAA;IACL,CAAC;AACL,CAAC;AAED,SAAS,qBAAqB,CAC1B,OAAe,EACf,UAAkB,EAClB,KAAa,EACb,qBAAiE;IAEjE,EAAE,CAAC,SAAS,CAAwB,IAAI,UAAU,IAAI,OAAO,kBAAkB,CAAC;SAC3E,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;SACZ,KAAK,CAAC,MAAM,EAAE,KAAK,CAAC;SACpB,KAAK,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAA;IAC5B,EAAE,CAAC,SAAS,CAAC,IAAI,UAAU,IAAI,OAAO,wBAAwB,CAAC,CAAC,MAAM,EAAE,CAAA;IACxE,EAAE,CAAC,SAAS,CAAC,IAAI,UAAU,IAAI,OAAO,sBAAsB,CAAC,CAAC,MAAM,EAAE,CAAA;IACtE,EAAE,CAAC,SAAS,CAAC,IAAI,UAAU,IAAI,OAAO,iCAAiC,CAAC,CAAC,MAAM,EAAE,CAAA;IAEjF,IAAI,qBAAqB,EAAE,CAAC;QACxB,qBAAqB,CAAC,UAAU,CAAC,CAAA;IACrC,CAAC;AAEL,CAAC"}
@@ -21,7 +21,7 @@ interface Props {
21
21
  zoomEnabled?: boolean;
22
22
  /**
23
23
  * When true, requires that the shift or control key be pressed while scrolling
24
- * in order to activate the zoom
24
+ * to activate the zoom
25
25
  */
26
26
  zoomKeyModifiersRequired?: boolean;
27
27
  /**