scichart 3.1.348 → 3.2.0-beta

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 (314) hide show
  1. package/Charting/ChartModifiers/ChartModifierBase.d.ts +15 -1
  2. package/Charting/ChartModifiers/ChartModifierBase.js +65 -7
  3. package/Charting/ChartModifiers/CursorModifier.js +13 -1
  4. package/Charting/ChartModifiers/LegendModifier.d.ts +1 -1
  5. package/Charting/ChartModifiers/LegendModifier.js +8 -6
  6. package/Charting/ChartModifiers/PinchZoomModifier.d.ts +38 -8
  7. package/Charting/ChartModifiers/PinchZoomModifier.js +103 -40
  8. package/Charting/ChartModifiers/RolloverModifier.js +10 -3
  9. package/Charting/ChartModifiers/RubberBandXyZoomModifier.d.ts +1 -1
  10. package/Charting/ChartModifiers/SeriesSelectionModifier.js +32 -24
  11. package/Charting/ChartModifiers/ZoomPanModifier.d.ts +13 -38
  12. package/Charting/ChartModifiers/ZoomPanModifier.js +54 -99
  13. package/Charting/Drawing/BaseCache.d.ts +2 -1
  14. package/Charting/Drawing/BaseCache.js +40 -7
  15. package/Charting/Drawing/RenderSurface.d.ts +1 -0
  16. package/Charting/Drawing/RenderSurface.js +5 -1
  17. package/Charting/Drawing/SolidBrushCache.d.ts +2 -1
  18. package/Charting/Drawing/SolidBrushCache.js +23 -3
  19. package/Charting/Drawing/WebGlBrush.d.ts +2 -1
  20. package/Charting/Drawing/WebGlBrush.js +22 -3
  21. package/Charting/Drawing/WebGlPen.d.ts +2 -1
  22. package/Charting/Drawing/WebGlPen.js +23 -4
  23. package/Charting/Drawing/WebGlRenderContext2D.d.ts +4 -3
  24. package/Charting/Drawing/WebGlRenderContext2D.js +26 -7
  25. package/Charting/Model/BaseDataSeries.d.ts +67 -2
  26. package/Charting/Model/BaseDataSeries.js +193 -42
  27. package/Charting/Model/BaseHeatmapDataSeries.js +1 -1
  28. package/Charting/Model/ChartData/SeriesInfo.d.ts +16 -0
  29. package/Charting/Model/ChartData/SeriesInfo.js +7 -0
  30. package/Charting/Model/ChartData/XyzSeriesInfo.d.ts +8 -0
  31. package/Charting/Model/ChartData/XyzSeriesInfo.js +36 -0
  32. package/Charting/Model/DoubleVectorProvider.d.ts +19 -0
  33. package/Charting/Model/DoubleVectorProvider.js +95 -0
  34. package/Charting/Model/HlcDataSeries.d.ts +3 -0
  35. package/Charting/Model/HlcDataSeries.js +44 -15
  36. package/Charting/Model/IDataSeries.d.ts +23 -0
  37. package/Charting/Model/NonUniformHeatmapDataSeries.js +2 -0
  38. package/Charting/Model/OhlcDataSeries.d.ts +3 -0
  39. package/Charting/Model/OhlcDataSeries.js +56 -24
  40. package/Charting/Model/PointSeries/BasePointSeriesResampled.d.ts +4 -5
  41. package/Charting/Model/PointSeries/BasePointSeriesResampled.js +29 -21
  42. package/Charting/Model/PointSeries/BasePointSeriesWrapped.d.ts +2 -0
  43. package/Charting/Model/PointSeries/BasePointSeriesWrapped.js +2 -0
  44. package/Charting/Model/PointSeries/IPointSeries.d.ts +2 -1
  45. package/Charting/Model/PointSeries/OhlcPointSeriesResampled.js +1 -1
  46. package/Charting/Model/PointSeries/XyPointSeriesWrapped.d.ts +2 -1
  47. package/Charting/Model/PointSeries/XyPointSeriesWrapped.js +2 -2
  48. package/Charting/Model/PointSeries/XyyPointSeriesResampled.js +1 -1
  49. package/Charting/Model/UniformHeatmapDataSeries.d.ts +31 -11
  50. package/Charting/Model/UniformHeatmapDataSeries.js +72 -4
  51. package/Charting/Model/XyDataSeries.d.ts +0 -8
  52. package/Charting/Model/XyDataSeries.js +21 -5
  53. package/Charting/Model/XyTextDataSeries.d.ts +2 -0
  54. package/Charting/Model/XyTextDataSeries.js +35 -4
  55. package/Charting/Model/XyyDataSeries.d.ts +2 -0
  56. package/Charting/Model/XyyDataSeries.js +35 -10
  57. package/Charting/Model/XyzDataSeries.d.ts +3 -0
  58. package/Charting/Model/XyzDataSeries.js +36 -10
  59. package/Charting/Numerics/CoordinateCalculators/CategoryCoordinateCalculator.d.ts +3 -5
  60. package/Charting/Numerics/CoordinateCalculators/CategoryCoordinateCalculator.js +5 -7
  61. package/Charting/Numerics/CoordinateCalculators/CoordinateCalculatorBase.d.ts +2 -1
  62. package/Charting/Numerics/CoordinateCalculators/CoordinateCalculatorBase.js +29 -9
  63. package/Charting/Numerics/CoordinateCalculators/FlippedCategoryCoordinateCalculator.d.ts +3 -5
  64. package/Charting/Numerics/CoordinateCalculators/FlippedCategoryCoordinateCalculator.js +5 -7
  65. package/Charting/Numerics/Resamplers/ExtremeResamplerHelper.d.ts +14 -10
  66. package/Charting/Numerics/Resamplers/ExtremeResamplerHelper.js +105 -69
  67. package/Charting/Numerics/Resamplers/ResamplingParams.d.ts +4 -2
  68. package/Charting/Numerics/Resamplers/ResamplingParams.js +12 -7
  69. package/Charting/Numerics/TickCoordinateProviders/TickCoordinatesProvider.d.ts +5 -0
  70. package/Charting/Numerics/TickCoordinateProviders/TickCoordinatesProvider.js +7 -0
  71. package/Charting/Numerics/TickProviders/NumericTickProvider.js +3 -4
  72. package/Charting/Numerics/TickProviders/TickProvider.d.ts +5 -0
  73. package/Charting/Numerics/TickProviders/TickProvider.js +7 -0
  74. package/Charting/Services/SciChartRenderer.js +15 -5
  75. package/Charting/Services/TitleRenderer.d.ts +2 -1
  76. package/Charting/Services/TitleRenderer.js +35 -14
  77. package/Charting/Visuals/Annotations/AdornerLayer.d.ts +1 -1
  78. package/Charting/Visuals/Annotations/AnnotationBase.d.ts +6 -6
  79. package/Charting/Visuals/Annotations/AnnotationBase.js +81 -61
  80. package/Charting/Visuals/Annotations/CursorTooltipSvgAnnotation.js +8 -0
  81. package/Charting/Visuals/Annotations/IAnnotation.d.ts +9 -4
  82. package/Charting/Visuals/Annotations/IAnnotation.js +6 -0
  83. package/Charting/Visuals/Annotations/LineAnnotation.js +3 -1
  84. package/Charting/Visuals/Annotations/RenderContextAnnotationBase.d.ts +5 -0
  85. package/Charting/Visuals/Annotations/RenderContextAnnotationBase.js +16 -0
  86. package/Charting/Visuals/Annotations/RolloverTooltipSvgAnnotation.js +6 -0
  87. package/Charting/Visuals/Annotations/constants.d.ts +1 -0
  88. package/Charting/Visuals/Annotations/constants.js +1 -0
  89. package/Charting/Visuals/Axis/AxisBase2D.d.ts +20 -5
  90. package/Charting/Visuals/Axis/AxisBase2D.js +46 -10
  91. package/Charting/Visuals/Axis/AxisCore.d.ts +4 -1
  92. package/Charting/Visuals/Axis/AxisCore.js +100 -54
  93. package/Charting/Visuals/Axis/AxisRenderer.d.ts +2 -1
  94. package/Charting/Visuals/Axis/AxisRenderer.js +40 -16
  95. package/Charting/Visuals/Axis/AxisTitleRenderer.d.ts +1 -0
  96. package/Charting/Visuals/Axis/AxisTitleRenderer.js +4 -0
  97. package/Charting/Visuals/Axis/CategoryAxisBase.js +4 -4
  98. package/Charting/Visuals/Axis/DeltaCalculator/DateTimeDeltaCalculator.js +14 -9
  99. package/Charting/Visuals/Axis/DeltaCalculator/DeltaCalculator.d.ts +5 -0
  100. package/Charting/Visuals/Axis/DeltaCalculator/DeltaCalculator.js +7 -0
  101. package/Charting/Visuals/Axis/LabelProvider/LabelCache.d.ts +2 -2
  102. package/Charting/Visuals/Axis/LabelProvider/LabelCache.js +8 -1
  103. package/Charting/Visuals/Axis/LabelProvider/LabelProvider.d.ts +7 -1
  104. package/Charting/Visuals/Axis/LabelProvider/LabelProvider.js +34 -8
  105. package/Charting/Visuals/Axis/LabelProvider/LabelProviderBase2D.d.ts +4 -2
  106. package/Charting/Visuals/Axis/LabelProvider/LabelProviderBase2D.js +8 -2
  107. package/Charting/Visuals/Axis/LabelProvider/PieLabelProvider.d.ts +1 -0
  108. package/Charting/Visuals/Axis/LabelProvider/PieLabelProvider.js +1 -0
  109. package/Charting/Visuals/HeatmapLegend.d.ts +3 -2
  110. package/Charting/Visuals/HeatmapLegend.js +33 -12
  111. package/Charting/Visuals/Helpers/NativeObject.d.ts +8 -5
  112. package/Charting/Visuals/Helpers/NativeObject.js +42 -21
  113. package/Charting/Visuals/Helpers/drawLabel.js +3 -1
  114. package/Charting/Visuals/I2DSurfaceOptions.d.ts +0 -15
  115. package/Charting/Visuals/Legend/SciChartLegendBase.d.ts +3 -1
  116. package/Charting/Visuals/Legend/SciChartLegendBase.js +35 -14
  117. package/Charting/Visuals/Legend/SciChartPieLegend.js +1 -1
  118. package/Charting/Visuals/PointMarkers/BasePointMarker.d.ts +13 -1
  119. package/Charting/Visuals/PointMarkers/BasePointMarker.js +72 -19
  120. package/Charting/Visuals/PointMarkers/Constants.d.ts +2 -1
  121. package/Charting/Visuals/PointMarkers/Constants.js +1 -0
  122. package/Charting/Visuals/PointMarkers/IPointMarker.d.ts +2 -0
  123. package/Charting/Visuals/RenderableSeries/Animations/SeriesAnimation.js +4 -1
  124. package/Charting/Visuals/RenderableSeries/Animations/animationHelpers.d.ts +1 -1
  125. package/Charting/Visuals/RenderableSeries/BaseBandRenderableSeries.js +8 -7
  126. package/Charting/Visuals/RenderableSeries/BaseHeatmapRenderableSeries.d.ts +1 -0
  127. package/Charting/Visuals/RenderableSeries/BaseHeatmapRenderableSeries.js +5 -0
  128. package/Charting/Visuals/RenderableSeries/BaseOhlcRenderableSeries.js +10 -9
  129. package/Charting/Visuals/RenderableSeries/BaseRenderableSeries.d.ts +2 -1
  130. package/Charting/Visuals/RenderableSeries/BaseRenderableSeries.js +101 -69
  131. package/Charting/Visuals/RenderableSeries/BaseStackedCollection.js +13 -4
  132. package/Charting/Visuals/RenderableSeries/BaseStackedRenderableSeries.js +12 -3
  133. package/Charting/Visuals/RenderableSeries/DataLabels/BaseDataLabelProvider.d.ts +2 -0
  134. package/Charting/Visuals/RenderableSeries/DataLabels/BaseDataLabelProvider.js +5 -0
  135. package/Charting/Visuals/RenderableSeries/DataLabels/DataLabelProvider.js +6 -0
  136. package/Charting/Visuals/RenderableSeries/DataLabels/DataLabelState.d.ts +1 -0
  137. package/Charting/Visuals/RenderableSeries/DataLabels/DataLabelState.js +18 -5
  138. package/Charting/Visuals/RenderableSeries/DataLabels/NonUniformHeatmapDataLabelProvider.js +0 -1
  139. package/Charting/Visuals/RenderableSeries/DataLabels/TextDataLabelProvider.js +8 -2
  140. package/Charting/Visuals/RenderableSeries/DrawingProviders/BandSeriesDrawingProvider.d.ts +1 -0
  141. package/Charting/Visuals/RenderableSeries/DrawingProviders/BandSeriesDrawingProvider.js +35 -16
  142. package/Charting/Visuals/RenderableSeries/DrawingProviders/BaseSeriesDrawingProvider.d.ts +2 -1
  143. package/Charting/Visuals/RenderableSeries/DrawingProviders/BaseSeriesDrawingProvider.js +62 -33
  144. package/Charting/Visuals/RenderableSeries/DrawingProviders/BubbleSeriesDrawingProvider.d.ts +1 -0
  145. package/Charting/Visuals/RenderableSeries/DrawingProviders/BubbleSeriesDrawingProvider.js +30 -9
  146. package/Charting/Visuals/RenderableSeries/DrawingProviders/ColumnSeriesDrawingProvider.d.ts +1 -0
  147. package/Charting/Visuals/RenderableSeries/DrawingProviders/ColumnSeriesDrawingProvider.js +37 -16
  148. package/Charting/Visuals/RenderableSeries/DrawingProviders/HeatmapHelpers.d.ts +47 -0
  149. package/Charting/Visuals/RenderableSeries/DrawingProviders/HeatmapHelpers.js +258 -0
  150. package/Charting/Visuals/RenderableSeries/DrawingProviders/LineSeriesDrawingProvider.js +26 -2
  151. package/Charting/Visuals/RenderableSeries/DrawingProviders/MountainSeriesDrawingProvider.d.ts +1 -0
  152. package/Charting/Visuals/RenderableSeries/DrawingProviders/MountainSeriesDrawingProvider.js +34 -15
  153. package/Charting/Visuals/RenderableSeries/DrawingProviders/NonUniformHeatmapDrawingProvider.js +5 -230
  154. package/Charting/Visuals/RenderableSeries/DrawingProviders/OhlcSeriesDrawingProvider.d.ts +1 -0
  155. package/Charting/Visuals/RenderableSeries/DrawingProviders/OhlcSeriesDrawingProvider.js +62 -37
  156. package/Charting/Visuals/RenderableSeries/DrawingProviders/PointMarkerDrawingProvider.js +30 -3
  157. package/Charting/Visuals/RenderableSeries/DrawingProviders/UniformHeatmapDrawingProvider.d.ts +1 -0
  158. package/Charting/Visuals/RenderableSeries/DrawingProviders/UniformHeatmapDrawingProvider.js +4 -1
  159. package/Charting/Visuals/RenderableSeries/FastBubbleRenderableSeries.d.ts +0 -2
  160. package/Charting/Visuals/RenderableSeries/FastBubbleRenderableSeries.js +0 -4
  161. package/Charting/Visuals/RenderableSeries/FastTextRenderableSeries.d.ts +3 -0
  162. package/Charting/Visuals/RenderableSeries/FastTextRenderableSeries.js +10 -0
  163. package/Charting/Visuals/RenderableSeries/HitTest/BubbleSeriesHitTestProvider.d.ts +4 -0
  164. package/Charting/Visuals/RenderableSeries/HitTest/BubbleSeriesHitTestProvider.js +7 -0
  165. package/Charting/Visuals/RenderableSeries/HitTest/HitTestInfo.d.ts +4 -0
  166. package/Charting/Visuals/RenderableSeries/HitTest/HitTestInfo.js +9 -0
  167. package/Charting/Visuals/RenderableSeries/ShaderEffect.d.ts +3 -2
  168. package/Charting/Visuals/RenderableSeries/ShaderEffect.js +29 -9
  169. package/Charting/Visuals/RenderableSeries/SplineBandRenderableSeries.js +7 -0
  170. package/Charting/Visuals/RenderableSeries/SplineLineRenderableSeries.js +7 -0
  171. package/Charting/Visuals/RenderableSeries/SplineMountainRenderableSeries.js +7 -0
  172. package/Charting/Visuals/RenderableSeries/StackedColumnCollection.js +3 -0
  173. package/Charting/Visuals/RenderableSeries/StackedMountainCollection.d.ts +0 -2
  174. package/Charting/Visuals/RenderableSeries/StackedMountainCollection.js +4 -4
  175. package/Charting/Visuals/RenderableSeries/StackedMountainRenderableSeries.d.ts +1 -0
  176. package/Charting/Visuals/RenderableSeries/StackedMountainRenderableSeries.js +8 -0
  177. package/Charting/Visuals/RenderableSeries/XyScatterRenderableSeries.d.ts +1 -2
  178. package/Charting/Visuals/RenderableSeries/XyScatterRenderableSeries.js +8 -3
  179. package/Charting/Visuals/RubberBandSvgRect/RubberBandSvgRect.d.ts +3 -1
  180. package/Charting/Visuals/RubberBandSvgRect/RubberBandSvgRect.js +30 -10
  181. package/Charting/Visuals/SciChartDefaults.d.ts +10 -0
  182. package/Charting/Visuals/SciChartDefaults.js +10 -0
  183. package/Charting/Visuals/SciChartOverview.d.ts +2 -1
  184. package/Charting/Visuals/SciChartOverview.js +28 -8
  185. package/Charting/Visuals/SciChartPieSurface/SciChartPieSurface.d.ts +10 -3
  186. package/Charting/Visuals/SciChartPieSurface/SciChartPieSurface.js +118 -60
  187. package/Charting/Visuals/SciChartSurface.d.ts +4 -36
  188. package/Charting/Visuals/SciChartSurface.js +48 -61
  189. package/Charting/Visuals/SciChartSurfaceBase.d.ts +99 -13
  190. package/Charting/Visuals/SciChartSurfaceBase.js +155 -32
  191. package/Charting/Visuals/TextureManager/CanvasTexture.d.ts +2 -1
  192. package/Charting/Visuals/TextureManager/CanvasTexture.js +37 -17
  193. package/Charting/Visuals/TextureManager/TextureManager.d.ts +2 -1
  194. package/Charting/Visuals/TextureManager/TextureManager.js +27 -7
  195. package/Charting/Visuals/createMaster.d.ts +4 -2
  196. package/Charting/Visuals/createMaster.js +92 -28
  197. package/Charting/Visuals/createSingle.d.ts +0 -2
  198. package/Charting/Visuals/createSingle.js +44 -9
  199. package/Charting/Visuals/licenseManager2D.d.ts +7 -5
  200. package/Charting/Visuals/licenseManager2D.js +105 -53
  201. package/Charting/Visuals/loader.js +3 -1
  202. package/Charting/Visuals/sciChartInitCommon.d.ts +1 -1
  203. package/Charting/Visuals/sciChartInitCommon.js +5 -1
  204. package/Charting3D/CameraController.d.ts +1 -1
  205. package/Charting3D/CameraController.js +21 -7
  206. package/Charting3D/ChartModifiers/ChartModifierBase3D.d.ts +1 -0
  207. package/Charting3D/ChartModifiers/ChartModifierBase3D.js +4 -1
  208. package/Charting3D/ChartModifiers/OrbitModifier3D.d.ts +17 -5
  209. package/Charting3D/ChartModifiers/OrbitModifier3D.js +62 -26
  210. package/Charting3D/ChartModifiers/PinchZoomModifier3D.d.ts +81 -0
  211. package/Charting3D/ChartModifiers/PinchZoomModifier3D.js +164 -0
  212. package/Charting3D/ChartModifiers/TooltipModifier3D.d.ts +87 -0
  213. package/Charting3D/ChartModifiers/TooltipModifier3D.js +391 -0
  214. package/Charting3D/I3DSurfaceOptions.d.ts +10 -0
  215. package/Charting3D/I3DSurfaceOptions.js +2 -0
  216. package/Charting3D/Model/DataSeries/BaseDataSeries3D.d.ts +2 -1
  217. package/Charting3D/Model/DataSeries/BaseDataSeries3D.js +27 -6
  218. package/Charting3D/Model/DataSeries/UniformGridDataSeries3D.d.ts +8 -0
  219. package/Charting3D/Model/DataSeries/UniformGridDataSeries3D.js +12 -0
  220. package/Charting3D/Model/DataSeries/XyzDataSeries3D.d.ts +2 -2
  221. package/Charting3D/Model/DataSeries/XyzDataSeries3D.js +1 -1
  222. package/Charting3D/Vector3.d.ts +5 -0
  223. package/Charting3D/Vector3.js +7 -0
  224. package/Charting3D/Visuals/Annotations/TooltipSvgAnnotation3D.d.ts +88 -0
  225. package/Charting3D/Visuals/Annotations/TooltipSvgAnnotation3D.js +291 -0
  226. package/Charting3D/Visuals/Axis/AxisBase3D.d.ts +21 -2
  227. package/Charting3D/Visuals/Axis/AxisBase3D.js +48 -18
  228. package/Charting3D/Visuals/Axis/AxisBase3DLabelStyle.js +2 -1
  229. package/Charting3D/Visuals/Axis/AxisCubeEntity.d.ts +0 -4
  230. package/Charting3D/Visuals/Axis/AxisCubeEntity.js +3 -6
  231. package/Charting3D/Visuals/Axis/IAxisDescriptor.d.ts +2 -2
  232. package/Charting3D/Visuals/Axis/IAxisDescriptor.js +2 -2
  233. package/Charting3D/Visuals/Primitives/BaseSceneEntity3D.d.ts +41 -30
  234. package/Charting3D/Visuals/Primitives/BaseSceneEntity3D.js +78 -26
  235. package/Charting3D/Visuals/Primitives/CrosshairLinesSceneEntity.d.ts +47 -0
  236. package/Charting3D/Visuals/Primitives/CrosshairLinesSceneEntity.js +106 -0
  237. package/Charting3D/Visuals/Primitives/EntityIdProvider.d.ts +29 -0
  238. package/Charting3D/Visuals/Primitives/EntityIdProvider.js +28 -0
  239. package/Charting3D/Visuals/Primitives/PointLine3DSceneEntity.d.ts +51 -0
  240. package/Charting3D/Visuals/Primitives/PointLine3DSceneEntity.js +188 -0
  241. package/Charting3D/Visuals/Primitives/RenderableSeriesSceneEntity.d.ts +12 -0
  242. package/Charting3D/Visuals/Primitives/RenderableSeriesSceneEntity.js +14 -0
  243. package/Charting3D/Visuals/Primitives/ScatterPointsSceneEntity.d.ts +11 -0
  244. package/Charting3D/Visuals/Primitives/ScatterPointsSceneEntity.js +18 -0
  245. package/Charting3D/Visuals/Primitives/SurfaceMeshSceneEntity.d.ts +3 -0
  246. package/Charting3D/Visuals/Primitives/SurfaceMeshSceneEntity.js +15 -0
  247. package/Charting3D/Visuals/RenderableSeries/BaseRenderableSeries3D.d.ts +16 -1
  248. package/Charting3D/Visuals/RenderableSeries/BaseRenderableSeries3D.js +64 -12
  249. package/Charting3D/Visuals/RenderableSeries/Constants.d.ts +2 -0
  250. package/Charting3D/Visuals/RenderableSeries/Constants.js +2 -0
  251. package/Charting3D/Visuals/RenderableSeries/ESeriesType.d.ts +2 -1
  252. package/Charting3D/Visuals/RenderableSeries/ESeriesType.js +1 -0
  253. package/Charting3D/Visuals/RenderableSeries/HitTestInfo3D.d.ts +37 -0
  254. package/Charting3D/Visuals/RenderableSeries/HitTestInfo3D.js +22 -0
  255. package/Charting3D/Visuals/RenderableSeries/PointLineRenderableSeries3D.d.ts +64 -0
  256. package/Charting3D/Visuals/RenderableSeries/PointLineRenderableSeries3D.js +105 -0
  257. package/Charting3D/Visuals/RenderableSeries/SeriesInfo3D.d.ts +51 -0
  258. package/Charting3D/Visuals/RenderableSeries/SeriesInfo3D.js +32 -0
  259. package/Charting3D/Visuals/RenderableSeries/SurfaceMeshSeriesInfo3D.d.ts +15 -0
  260. package/Charting3D/Visuals/RenderableSeries/SurfaceMeshSeriesInfo3D.js +112 -0
  261. package/Charting3D/Visuals/RenderableSeries/XyzSeriesInfo3D.d.ts +20 -0
  262. package/Charting3D/Visuals/RenderableSeries/XyzSeriesInfo3D.js +60 -0
  263. package/Charting3D/Visuals/RootSceneEntity.d.ts +0 -4
  264. package/Charting3D/Visuals/RootSceneEntity.js +3 -8
  265. package/Charting3D/Visuals/SciChart3DRenderer.d.ts +2 -0
  266. package/Charting3D/Visuals/SciChart3DRenderer.js +49 -0
  267. package/Charting3D/Visuals/SciChart3DSurface.d.ts +44 -3
  268. package/Charting3D/Visuals/SciChart3DSurface.js +103 -9
  269. package/Charting3D/Visuals/ViewportManager3DBase.d.ts +4 -0
  270. package/Charting3D/Visuals/ViewportManager3DBase.js +7 -1
  271. package/Charting3D/Visuals/createMaster3d.d.ts +1 -2
  272. package/Charting3D/Visuals/createMaster3d.js +76 -14
  273. package/Charting3D/Visuals/createSingle3d.js +34 -4
  274. package/Charting3D/Visuals/licenseManager3D.js +29 -25
  275. package/Core/BuildStamp.d.ts +1 -1
  276. package/Core/BuildStamp.js +2 -2
  277. package/Core/DeletableEntity.d.ts +28 -0
  278. package/Core/DeletableEntity.js +141 -0
  279. package/Core/Globals.d.ts +11 -0
  280. package/Core/Globals.js +13 -0
  281. package/Core/Guard.d.ts +6 -0
  282. package/Core/Guard.js +10 -0
  283. package/Core/Mouse/MouseManager.d.ts +23 -0
  284. package/Core/Mouse/MouseManager.js +47 -0
  285. package/Core/Telemetry.js +4 -6
  286. package/_wasm/scichart.browser.js +1 -1
  287. package/_wasm/scichart2d.data +0 -0
  288. package/_wasm/scichart2d.js +4 -294
  289. package/_wasm/scichart2d.wasm +0 -0
  290. package/_wasm/scichart3d.data +0 -0
  291. package/_wasm/scichart3d.js +4 -294
  292. package/_wasm/scichart3d.wasm +0 -0
  293. package/index.d.ts +43 -2
  294. package/index.js +89 -27
  295. package/index.min.js +1 -1
  296. package/package.json +3 -4
  297. package/types/ChartModifierType.d.ts +2 -0
  298. package/types/ChartModifierType.js +2 -0
  299. package/types/DefaultRenderLayer.d.ts +9 -8
  300. package/types/DefaultRenderLayer.js +9 -8
  301. package/types/NumberArray.d.ts +1 -0
  302. package/types/NumberArray.js +12 -1
  303. package/types/SceneEntityType.d.ts +13 -5
  304. package/types/SceneEntityType.js +13 -5
  305. package/types/TSciChart.d.ts +37 -8
  306. package/types/TSciChart3D.d.ts +126 -7
  307. package/types/licensingClasses.d.ts +2 -1
  308. package/types/licensingClasses.js +1 -0
  309. package/utils/MemoryUsageHelper.d.ts +45 -0
  310. package/utils/MemoryUsageHelper.js +171 -0
  311. package/utils/array.d.ts +8 -0
  312. package/utils/array.js +58 -1
  313. package/utils/logger.d.ts +2 -0
  314. package/utils/logger.js +11 -0
@@ -1,14 +1,34 @@
1
1
  "use strict";
2
+ var __extends = (this && this.__extends) || (function () {
3
+ var extendStatics = function (d, b) {
4
+ extendStatics = Object.setPrototypeOf ||
5
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
+ return extendStatics(d, b);
8
+ };
9
+ return function (d, b) {
10
+ if (typeof b !== "function" && b !== null)
11
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
+ extendStatics(d, b);
13
+ function __() { this.constructor = d; }
14
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
+ };
16
+ })();
2
17
  Object.defineProperty(exports, "__esModule", { value: true });
3
18
  exports.BasePointSeriesResampled = void 0;
4
- var BasePointSeriesResampled = /** @class */ (function () {
19
+ var DeletableEntity_1 = require("../../../Core/DeletableEntity");
20
+ var BasePointSeriesResampled = /** @class */ (function (_super) {
21
+ __extends(BasePointSeriesResampled, _super);
5
22
  function BasePointSeriesResampled(wasmContext, xRange) {
6
- this.wasmContext = wasmContext;
7
- this.intIndexes = new wasmContext.IntVector();
8
- this.indexes = new wasmContext.SCRTDoubleVector();
9
- this.xValues = new wasmContext.SCRTDoubleVector();
10
- this.yValues = new wasmContext.SCRTDoubleVector();
11
- this.xRange = xRange;
23
+ var _this = _super.call(this) || this;
24
+ _this.resampled = true;
25
+ _this.wasmContext = wasmContext;
26
+ _this.intIndexes = new wasmContext.IntVector();
27
+ _this.indexes = new wasmContext.SCRTDoubleVector();
28
+ _this.xValues = new wasmContext.SCRTDoubleVector();
29
+ _this.yValues = new wasmContext.SCRTDoubleVector();
30
+ _this.xRange = xRange;
31
+ return _this;
12
32
  }
13
33
  Object.defineProperty(BasePointSeriesResampled.prototype, "count", {
14
34
  get: function () {
@@ -22,19 +42,7 @@ var BasePointSeriesResampled = /** @class */ (function () {
22
42
  this.indexes.delete();
23
43
  this.xValues.delete();
24
44
  this.yValues.delete();
25
- };
26
- /**
27
- * Updates SCRTDoubleVector from IntVector
28
- */
29
- BasePointSeriesResampled.prototype.updateIndexes = function () {
30
- var resultCount = this.count;
31
- // console.log("resultCount", resultCount);
32
- // console.log("this.indexes", this.indexes);
33
- this.indexes.resizeFast(resultCount);
34
- // TODO: Find an effective way to copy indexes
35
- for (var i = 0; i < resultCount; i++) {
36
- this.indexes.set(i, this.intIndexes.get(i));
37
- }
45
+ this.wasmContext = undefined;
38
46
  };
39
47
  BasePointSeriesResampled.prototype.clearIntIndexes = function () {
40
48
  this.intIndexes.clear();
@@ -52,5 +60,5 @@ var BasePointSeriesResampled = /** @class */ (function () {
52
60
  console.log("yValues at end", this.yValues.get(end));
53
61
  };
54
62
  return BasePointSeriesResampled;
55
- }());
63
+ }(DeletableEntity_1.DeletableEntity));
56
64
  exports.BasePointSeriesResampled = BasePointSeriesResampled;
@@ -7,6 +7,8 @@ export declare class BasePointSeriesWrapped implements IPointSeries {
7
7
  readonly xRange: NumberRange;
8
8
  readonly xValues: SCRTDoubleVector;
9
9
  readonly yValues: SCRTDoubleVector;
10
+ readonly resampled = false;
11
+ readonly fifoStartIndex: number;
10
12
  protected dataSeries: IDataSeries;
11
13
  protected indexesProperty: SCRTDoubleVector;
12
14
  constructor(dataSeries: IDataSeries, yValues?: SCRTDoubleVector);
@@ -3,10 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.BasePointSeriesWrapped = void 0;
4
4
  var BasePointSeriesWrapped = /** @class */ (function () {
5
5
  function BasePointSeriesWrapped(dataSeries, yValues) {
6
+ this.resampled = false;
6
7
  this.dataSeries = dataSeries;
7
8
  this.count = dataSeries.count();
8
9
  this.xValues = this.dataSeries.getNativeXValues();
9
10
  this.yValues = yValues !== null && yValues !== void 0 ? yValues : this.dataSeries.getNativeYValues();
11
+ this.fifoStartIndex = dataSeries.fifoStartIndex;
10
12
  }
11
13
  Object.defineProperty(BasePointSeriesWrapped.prototype, "indexes", {
12
14
  get: function () {
@@ -9,10 +9,11 @@ export interface IPointSeries {
9
9
  readonly yValues: SCRTDoubleVector;
10
10
  readonly count: number;
11
11
  xRange: NumberRange;
12
+ readonly resampled: boolean;
13
+ fifoStartIndex: number;
12
14
  }
13
15
  export interface IPointSeriesResampled {
14
16
  readonly intIndexes: IntVector;
15
- updateIndexes(): void;
16
17
  clearIntIndexes(): void;
17
18
  }
18
19
  export interface IXyPointSeries extends IPointSeries {
@@ -28,10 +28,10 @@ var OhlcPointSeriesResampled = /** @class */ (function (_super) {
28
28
  return _this;
29
29
  }
30
30
  OhlcPointSeriesResampled.prototype.delete = function () {
31
- _super.prototype.delete.call(this);
32
31
  this.openValues.delete();
33
32
  this.highValues.delete();
34
33
  this.lowValues.delete();
34
+ _super.prototype.delete.call(this);
35
35
  };
36
36
  OhlcPointSeriesResampled.prototype.debugOutputForUnitTests = function () {
37
37
  console.log("points count ".concat(this.count));
@@ -1,6 +1,7 @@
1
+ import { SCRTDoubleVector } from "../../../types/TSciChart";
1
2
  import { IDataSeries } from "../IDataSeries";
2
3
  import { BasePointSeriesWrapped } from "./BasePointSeriesWrapped";
3
4
  import { IXyPointSeries } from "./IPointSeries";
4
5
  export declare class XyPointSeriesWrapped extends BasePointSeriesWrapped implements IXyPointSeries {
5
- constructor(dataSeries: IDataSeries);
6
+ constructor(dataSeries: IDataSeries, yValues?: SCRTDoubleVector);
6
7
  }
@@ -19,8 +19,8 @@ exports.XyPointSeriesWrapped = void 0;
19
19
  var BasePointSeriesWrapped_1 = require("./BasePointSeriesWrapped");
20
20
  var XyPointSeriesWrapped = /** @class */ (function (_super) {
21
21
  __extends(XyPointSeriesWrapped, _super);
22
- function XyPointSeriesWrapped(dataSeries) {
23
- return _super.call(this, dataSeries) || this;
22
+ function XyPointSeriesWrapped(dataSeries, yValues) {
23
+ return _super.call(this, dataSeries, yValues) || this;
24
24
  }
25
25
  return XyPointSeriesWrapped;
26
26
  }(BasePointSeriesWrapped_1.BasePointSeriesWrapped));
@@ -25,8 +25,8 @@ var XyyPointSeriesResampled = /** @class */ (function (_super) {
25
25
  return _this;
26
26
  }
27
27
  XyyPointSeriesResampled.prototype.delete = function () {
28
- _super.prototype.delete.call(this);
29
28
  this.y1Values.delete();
29
+ _super.prototype.delete.call(this);
30
30
  };
31
31
  XyyPointSeriesResampled.prototype.debugOutputForUnitTests = function () {
32
32
  console.log("points count ".concat(this.count));
@@ -29,31 +29,51 @@ export declare class UniformHeatmapDataSeries extends BaseHeatmapDataSeries {
29
29
  * @inheritDoc
30
30
  */
31
31
  readonly type: EDataSeriesType;
32
+ private xRangeProperty;
33
+ private yRangeProperty;
34
+ private xStartProperty;
35
+ private xStepProperty;
36
+ private yStartProperty;
37
+ private yStepProperty;
38
+ /**
39
+ * Creates an instance of {@link UniformHeatmapDataSeries}
40
+ * @param webAssemblyContext the {@link TSciChart | SciChart WebAssembly Context} containing native methods
41
+ * and access to our underlying WebGL2 rendering engine
42
+ * @param options the {@link IUniformHeatmapSeriesOptions} which must be passed to configure the series
43
+ */
44
+ constructor(webAssemblyContext: TSciChart, options: IUniformHeatmapSeriesOptions);
45
+ /**
46
+ * xStart defines the Start point on the {@link AxisBase2D| XAxis} where this heatmap will be drawn
47
+ */
48
+ get xStart(): number;
32
49
  /**
33
50
  * xStart defines the Start point on the {@link AxisBase2D| XAxis} where this heatmap will be drawn
34
51
  */
35
- readonly xStart: number;
52
+ set xStart(value: number);
53
+ /**
54
+ * xStep defines Step on the {@link AxisBase2D| XAxis} for each cell in the heatmap
55
+ */
56
+ get xStep(): number;
36
57
  /**
37
58
  * xStep defines Step on the {@link AxisBase2D| XAxis} for each cell in the heatmap
38
59
  */
39
- readonly xStep: number;
60
+ set xStep(value: number);
40
61
  /**
41
62
  * yStart defines the Start point on the {@link AxisBase2D| YAxis} where this heatmap will be drawn
42
63
  */
43
- readonly yStart: number;
64
+ get yStart(): number;
65
+ /**
66
+ * yStart defines the Start point on the {@link AxisBase2D| YAxis} where this heatmap will be drawn
67
+ */
68
+ set yStart(value: number);
44
69
  /**
45
70
  * yStep defines Step on the {@link AxisBase2D| YAxis} for each cell in the heatmap
46
71
  */
47
- readonly yStep: number;
48
- private xRangeProperty;
49
- private yRangeProperty;
72
+ get yStep(): number;
50
73
  /**
51
- * Creates an instance of {@link UniformHeatmapDataSeries}
52
- * @param webAssemblyContext the {@link TSciChart | SciChart WebAssembly Context} containing native methods
53
- * and access to our underlying WebGL2 rendering engine
54
- * @param options the {@link IUniformHeatmapSeriesOptions} which must be passed to configure the series
74
+ * yStep defines Step on the {@link AxisBase2D| YAxis} for each cell in the heatmap
55
75
  */
56
- constructor(webAssemblyContext: TSciChart, options: IUniformHeatmapSeriesOptions);
76
+ set yStep(value: number);
57
77
  /**
58
78
  * Gets the X-value at the specified index. This will be computed from constructor parameters xStep and xStart
59
79
  * @param xIndex
@@ -33,14 +33,82 @@ var UniformHeatmapDataSeries = /** @class */ (function (_super) {
33
33
  * @inheritDoc
34
34
  */
35
35
  _this.type = IDataSeries_1.EDataSeriesType.HeatmapUniform;
36
- _this.xStart = options.xStart;
37
- _this.xStep = options.xStep;
38
- _this.yStart = options.yStart;
39
- _this.yStep = options.yStep;
36
+ _this.xStartProperty = options.xStart;
37
+ _this.xStepProperty = options.xStep;
38
+ _this.yStartProperty = options.yStart;
39
+ _this.yStepProperty = options.yStep;
40
40
  _this.xRangeProperty = new NumberRange_1.NumberRange(_this.xStart, _this.getXValue(_this.arrayWidth));
41
41
  _this.yRangeProperty = new NumberRange_1.NumberRange(_this.yStart, _this.getYValue(_this.arrayHeight));
42
42
  return _this;
43
43
  }
44
+ Object.defineProperty(UniformHeatmapDataSeries.prototype, "xStart", {
45
+ /**
46
+ * xStart defines the Start point on the {@link AxisBase2D| XAxis} where this heatmap will be drawn
47
+ */
48
+ get: function () {
49
+ return this.xStartProperty;
50
+ },
51
+ /**
52
+ * xStart defines the Start point on the {@link AxisBase2D| XAxis} where this heatmap will be drawn
53
+ */
54
+ set: function (value) {
55
+ this.xStartProperty = value;
56
+ this.notifyDataChanged(IDataSeries_1.EDataChangeType.Update);
57
+ },
58
+ enumerable: false,
59
+ configurable: true
60
+ });
61
+ Object.defineProperty(UniformHeatmapDataSeries.prototype, "xStep", {
62
+ /**
63
+ * xStep defines Step on the {@link AxisBase2D| XAxis} for each cell in the heatmap
64
+ */
65
+ get: function () {
66
+ return this.xStepProperty;
67
+ },
68
+ /**
69
+ * xStep defines Step on the {@link AxisBase2D| XAxis} for each cell in the heatmap
70
+ */
71
+ set: function (value) {
72
+ this.xStepProperty = value;
73
+ this.notifyDataChanged(IDataSeries_1.EDataChangeType.Update);
74
+ },
75
+ enumerable: false,
76
+ configurable: true
77
+ });
78
+ Object.defineProperty(UniformHeatmapDataSeries.prototype, "yStart", {
79
+ /**
80
+ * yStart defines the Start point on the {@link AxisBase2D| YAxis} where this heatmap will be drawn
81
+ */
82
+ get: function () {
83
+ return this.yStartProperty;
84
+ },
85
+ /**
86
+ * yStart defines the Start point on the {@link AxisBase2D| YAxis} where this heatmap will be drawn
87
+ */
88
+ set: function (value) {
89
+ this.yStartProperty = value;
90
+ this.notifyDataChanged(IDataSeries_1.EDataChangeType.Update);
91
+ },
92
+ enumerable: false,
93
+ configurable: true
94
+ });
95
+ Object.defineProperty(UniformHeatmapDataSeries.prototype, "yStep", {
96
+ /**
97
+ * yStep defines Step on the {@link AxisBase2D| YAxis} for each cell in the heatmap
98
+ */
99
+ get: function () {
100
+ return this.yStepProperty;
101
+ },
102
+ /**
103
+ * yStep defines Step on the {@link AxisBase2D| YAxis} for each cell in the heatmap
104
+ */
105
+ set: function (value) {
106
+ this.yStepProperty = value;
107
+ this.notifyDataChanged(IDataSeries_1.EDataChangeType.Update);
108
+ },
109
+ enumerable: false,
110
+ configurable: true
111
+ });
44
112
  /**
45
113
  * Gets the X-value at the specified index. This will be computed from constructor parameters xStep and xStart
46
114
  * @param xIndex
@@ -7,14 +7,6 @@ import { IPointMetadata } from "./IPointMetadata";
7
7
  * Options to pass to the {@link XyDataSeries} constructor
8
8
  */
9
9
  export interface IXyDataSeriesOptions extends IBaseDataSeriesOptions {
10
- /**
11
- * The X-values array to pre-populate the {@link XyDataSeries}
12
- */
13
- xValues?: NumberArray;
14
- /**
15
- * The Y-values array to pre-populate the {@link XyDataSeries}
16
- */
17
- yValues?: NumberArray;
18
10
  }
19
11
  /**
20
12
  * @summary XyDataSeries is a DataSeries for holding X, Y data in SciChart's 2D
@@ -64,6 +64,10 @@ var XyDataSeries = /** @class */ (function (_super) {
64
64
  if (options === null || options === void 0 ? void 0 : options.xValues) {
65
65
  Guard_1.Guard.notNull(options.yValues, "options.yValues");
66
66
  _this.appendRange(options.xValues, options.yValues, options.metadata);
67
+ if ((options === null || options === void 0 ? void 0 : options.fifoCapacity) && (options === null || options === void 0 ? void 0 : options.fifoStartIndex)) {
68
+ _this.xValues.notifyAppend(options === null || options === void 0 ? void 0 : options.fifoStartIndex);
69
+ _this.yValues.notifyAppend(options === null || options === void 0 ? void 0 : options.fifoStartIndex);
70
+ }
67
71
  }
68
72
  return _this;
69
73
  }
@@ -114,8 +118,8 @@ var XyDataSeries = /** @class */ (function (_super) {
114
118
  this.appendMetadataRange(metadata, xValues.length);
115
119
  // New implementation passing array from JS
116
120
  // TODO: create indexValues from c++
117
- (0, appendDoubleVectorFromJsArray_1.appendDoubleVectorFromJsArray)(this.webAssemblyContext, nativeX, xValues);
118
- (0, appendDoubleVectorFromJsArray_1.appendDoubleVectorFromJsArray)(this.webAssemblyContext, nativeY, yValues);
121
+ this.doubleVectorProvider.appendArray(this.webAssemblyContext, nativeX, xValues);
122
+ this.doubleVectorProvider.appendArray(this.webAssemblyContext, nativeY, yValues);
119
123
  this.notifyDataChanged(IDataSeries_1.EDataChangeType.Append, null, xValues.length);
120
124
  }
121
125
  };
@@ -168,6 +172,7 @@ var XyDataSeries = /** @class */ (function (_super) {
168
172
  XyDataSeries.prototype.insert = function (startIndex, x, y, metadata) {
169
173
  if (!this.getIsDeleted()) {
170
174
  this.validateIndex(startIndex, "Start index is out of range");
175
+ this.throwIfFifo("insert");
171
176
  var nativeX = this.getNativeXValues();
172
177
  var nativeY = this.getNativeYValues();
173
178
  this.dataDistributionCalculator.onInsert(this.isSorted, this.containsNaN, nativeX, [x], [y], startIndex);
@@ -192,6 +197,7 @@ var XyDataSeries = /** @class */ (function (_super) {
192
197
  Guard_1.Guard.isTrue((0, NumberArray_1.isNumberArray)(yValues) || (0, NumberArray_1.isTypedArray)(yValues), "yValues must be an array of numbers");
193
198
  this.validateIndex(startIndex, "Start index is out of range");
194
199
  Guard_1.Guard.arraysSameLength(xValues, "xValues", yValues, "yValues");
200
+ this.throwIfFifo("insertRange");
195
201
  if (metadata) {
196
202
  Guard_1.Guard.isTrue(Array.isArray(metadata), "metadata must be an array of IPointMetadata");
197
203
  Guard_1.Guard.arraysSameLength(xValues, "xValues", metadata, "metadata");
@@ -212,6 +218,7 @@ var XyDataSeries = /** @class */ (function (_super) {
212
218
  XyDataSeries.prototype.removeAt = function (index) {
213
219
  if (!this.getIsDeleted()) {
214
220
  this.validateIndex(index);
221
+ this.throwIfFifo("removeAt");
215
222
  this.getNativeXValues().removeAt(index);
216
223
  this.getNativeYValues().removeAt(index);
217
224
  this.removeMetadataAt(index);
@@ -227,6 +234,7 @@ var XyDataSeries = /** @class */ (function (_super) {
227
234
  XyDataSeries.prototype.removeRange = function (startIndex, count) {
228
235
  if (!this.getIsDeleted()) {
229
236
  this.validateIndex(startIndex, "Start index is out of range");
237
+ this.throwIfFifo("removeRange");
230
238
  this.getNativeXValues().removeRange(startIndex, count);
231
239
  this.getNativeYValues().removeRange(startIndex, count);
232
240
  this.removeMetadataRange(startIndex, count);
@@ -256,9 +264,17 @@ var XyDataSeries = /** @class */ (function (_super) {
256
264
  if (!excludeData) {
257
265
  var xValues = [];
258
266
  var yValues = [];
259
- for (var i = 0; i < this.count(); i++) {
260
- xValues.push(this.xValues.get(i));
261
- yValues.push(this.yValues.get(i));
267
+ if (this.fifoCapacity && this.fifoSweeping) {
268
+ for (var i = 0; i < this.count(); i++) {
269
+ xValues.push(this.xValues.getRaw(i));
270
+ yValues.push(this.yValues.getRaw(i));
271
+ }
272
+ }
273
+ else {
274
+ for (var i = 0; i < this.count(); i++) {
275
+ xValues.push(this.xValues.get(i));
276
+ yValues.push(this.yValues.get(i));
277
+ }
262
278
  }
263
279
  var options = {
264
280
  xValues: xValues,
@@ -28,6 +28,8 @@ export declare class XyTextDataSeries extends BaseDataSeries {
28
28
  constructor(webAssemblyContext: TSciChart, options?: IXyTextDataSeriesOptions);
29
29
  /** The text values for this series. Manipulate using append, insert, update etc on the XyTextDataSeries */
30
30
  get textValues(): readonly string[];
31
+ /** Get the text value at an index, unwrapping the fifo buffer if fifoCapacity is set */
32
+ getTextValue(index: number): string;
31
33
  /**
32
34
  * Appends a single X, Y, Text point to the DataSeries
33
35
  * @remarks
@@ -18,6 +18,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
18
18
  exports.XyTextDataSeries = void 0;
19
19
  var Guard_1 = require("../../Core/Guard");
20
20
  var NumberArray_1 = require("../../types/NumberArray");
21
+ var array_1 = require("../../utils/array");
21
22
  var appendDoubleVectorFromJsArray_1 = require("../../utils/ccall/appendDoubleVectorFromJsArray");
22
23
  var BaseDataSeries_1 = require("./BaseDataSeries");
23
24
  var IDataSeries_1 = require("./IDataSeries");
@@ -50,6 +51,21 @@ var XyTextDataSeries = /** @class */ (function (_super) {
50
51
  enumerable: false,
51
52
  configurable: true
52
53
  });
54
+ /** Get the text value at an index, unwrapping the fifo buffer if fifoCapacity is set */
55
+ XyTextDataSeries.prototype.getTextValue = function (index) {
56
+ if (!this.fifoCapacity)
57
+ return this.textValuesProperty[index];
58
+ if (!this.fifoSweeping) {
59
+ var fifoIndex = (this.xValues.getStartIndex() + index) % this.fifoCapacity;
60
+ return this.textValuesProperty[fifoIndex];
61
+ }
62
+ else {
63
+ if (this.fifoCapacity - index < this.fifoSweepingGap) {
64
+ return "";
65
+ }
66
+ return this.textValuesProperty[index];
67
+ }
68
+ };
53
69
  /**
54
70
  * Appends a single X, Y, Text point to the DataSeries
55
71
  * @remarks
@@ -67,9 +83,15 @@ var XyTextDataSeries = /** @class */ (function (_super) {
67
83
  this.dataDistributionCalculator.onAppend(this.isSorted, this.containsNaN, nativeX, [x], [y]);
68
84
  // Push metadata should be done before push x values
69
85
  this.appendMetadata(metadata);
86
+ // Fifo text also before values as startIndex gets updated by nativeX push
87
+ if (this.fifoCapacity && this.count() === this.fifoCapacity) {
88
+ this.textValuesProperty[this.xValues.getStartIndex()] = text;
89
+ }
90
+ else {
91
+ this.textValuesProperty.push(text);
92
+ }
70
93
  nativeX.push_back(x);
71
94
  this.getNativeYValues().push_back(y);
72
- this.textValuesProperty.push(text);
73
95
  this.notifyDataChanged(IDataSeries_1.EDataChangeType.Append, null, 1);
74
96
  }
75
97
  };
@@ -99,11 +121,16 @@ var XyTextDataSeries = /** @class */ (function (_super) {
99
121
  this.dataDistributionCalculator.onAppend(this.isSorted, this.containsNaN, nativeX, xValues, yValues);
100
122
  // Push metadata should be done before push x values
101
123
  this.appendMetadataRange(metadata, xValues.length);
124
+ if (this.fifoCapacity) {
125
+ (0, array_1.appendRangeFifo)(textValues, this.textValuesProperty, this.fifoCapacity, this.xValues.getStartIndex());
126
+ }
127
+ else {
128
+ (_a = this.textValuesProperty).push.apply(_a, textValues);
129
+ }
102
130
  // New implementation passing array from JS
103
131
  // TODO: create indexValues from c++
104
- (0, appendDoubleVectorFromJsArray_1.appendDoubleVectorFromJsArray)(this.webAssemblyContext, nativeX, xValues);
105
- (0, appendDoubleVectorFromJsArray_1.appendDoubleVectorFromJsArray)(this.webAssemblyContext, nativeY, yValues);
106
- (_a = this.textValuesProperty).push.apply(_a, textValues);
132
+ this.doubleVectorProvider.appendArray(this.webAssemblyContext, nativeX, xValues);
133
+ this.doubleVectorProvider.appendArray(this.webAssemblyContext, nativeY, yValues);
107
134
  this.notifyDataChanged(IDataSeries_1.EDataChangeType.Append, null, xValues.length);
108
135
  }
109
136
  };
@@ -161,6 +188,7 @@ var XyTextDataSeries = /** @class */ (function (_super) {
161
188
  XyTextDataSeries.prototype.insert = function (startIndex, x, y, text, metadata) {
162
189
  if (!this.getIsDeleted()) {
163
190
  this.validateIndex(startIndex, "Start index is out of range");
191
+ this.throwIfFifo("insert");
164
192
  var nativeX = this.getNativeXValues();
165
193
  var nativeY = this.getNativeYValues();
166
194
  this.dataDistributionCalculator.onInsert(this.isSorted, this.containsNaN, nativeX, [x], [y], startIndex);
@@ -187,6 +215,7 @@ var XyTextDataSeries = /** @class */ (function (_super) {
187
215
  Guard_1.Guard.isTrue((0, NumberArray_1.isNumberArray)(xValues) || (0, NumberArray_1.isTypedArray)(xValues), "xValues must be an array of numbers");
188
216
  Guard_1.Guard.isTrue((0, NumberArray_1.isNumberArray)(yValues) || (0, NumberArray_1.isTypedArray)(yValues), "yValues must be an array of numbers");
189
217
  this.validateIndex(startIndex, "Start index is out of range");
218
+ this.throwIfFifo("insertRange");
190
219
  Guard_1.Guard.arraysSameLength(xValues, "xValues", yValues, "yValues");
191
220
  if (metadata) {
192
221
  Guard_1.Guard.isTrue(Array.isArray(metadata), "metadata must be an array of IPointMetadata");
@@ -209,6 +238,7 @@ var XyTextDataSeries = /** @class */ (function (_super) {
209
238
  XyTextDataSeries.prototype.removeAt = function (index) {
210
239
  if (!this.getIsDeleted()) {
211
240
  this.validateIndex(index);
241
+ this.throwIfFifo("removeAt");
212
242
  this.getNativeXValues().removeAt(index);
213
243
  this.getNativeYValues().removeAt(index);
214
244
  this.textValuesProperty.splice(index, 1);
@@ -225,6 +255,7 @@ var XyTextDataSeries = /** @class */ (function (_super) {
225
255
  XyTextDataSeries.prototype.removeRange = function (startIndex, count) {
226
256
  if (!this.getIsDeleted()) {
227
257
  this.validateIndex(startIndex, "Start index is out of range");
258
+ this.throwIfFifo("removeRange");
228
259
  this.getNativeXValues().removeRange(startIndex, count);
229
260
  this.getNativeYValues().removeRange(startIndex, count);
230
261
  this.textValuesProperty.splice(startIndex, count);
@@ -151,6 +151,7 @@ export declare class XyyDataSeries extends BaseDataSeries {
151
151
  getWindowedYRange(xRange: NumberRange, getPositiveRange: boolean, isXCategoryAxis?: boolean, dataSeriesValueType?: EDataSeriesValueType): NumberRange;
152
152
  /** @inheritDoc */
153
153
  delete(): void;
154
+ createAnimationVectors(): void;
154
155
  /** @inheritDoc */
155
156
  setInitialAnimationVectors(dataSeries?: XyyDataSeries): void;
156
157
  /** @inheritDoc */
@@ -161,5 +162,6 @@ export declare class XyyDataSeries extends BaseDataSeries {
161
162
  updateAnimationProperties(progress: number, animation: SeriesAnimation): void;
162
163
  /** @inheritDoc */
163
164
  toJSON(excludeData?: boolean): any;
165
+ protected reserve(size: number): void;
164
166
  private getYY1Values;
165
167
  }
@@ -49,13 +49,16 @@ var XyyDataSeries = /** @class */ (function (_super) {
49
49
  var _this = _super.call(this, webAssemblyContext, options) || this;
50
50
  /** @inheritDoc */
51
51
  _this.type = IDataSeries_1.EDataSeriesType.Xyy;
52
- _this.y1Values = new webAssemblyContext.SCRTDoubleVector();
53
- _this.y1InitialAnimationValues = new webAssemblyContext.SCRTDoubleVector();
54
- _this.y1FinalAnimationValues = new webAssemblyContext.SCRTDoubleVector();
52
+ _this.y1Values = _this.doubleVectorProvider.getDoubleVector(webAssemblyContext);
55
53
  if (options === null || options === void 0 ? void 0 : options.xValues) {
56
54
  Guard_1.Guard.notNull(options.yValues, "options.yValues");
57
55
  Guard_1.Guard.notNull(options.y1Values, "options.y1Values");
58
56
  _this.appendRange(options.xValues, options.yValues, options.y1Values, options.metadata);
57
+ if ((options === null || options === void 0 ? void 0 : options.fifoCapacity) && (options === null || options === void 0 ? void 0 : options.fifoStartIndex)) {
58
+ _this.xValues.notifyAppend(options === null || options === void 0 ? void 0 : options.fifoStartIndex);
59
+ _this.yValues.notifyAppend(options === null || options === void 0 ? void 0 : options.fifoStartIndex);
60
+ _this.y1Values.notifyAppend(options === null || options === void 0 ? void 0 : options.fifoStartIndex);
61
+ }
59
62
  }
60
63
  return _this;
61
64
  }
@@ -126,9 +129,9 @@ var XyyDataSeries = /** @class */ (function (_super) {
126
129
  // nativeY1.push_back(y1Values[i]);
127
130
  // }
128
131
  // New implementation passing array from JS
129
- (0, appendDoubleVectorFromJsArray_1.appendDoubleVectorFromJsArray)(this.webAssemblyContext, nativeX, xValues);
130
- (0, appendDoubleVectorFromJsArray_1.appendDoubleVectorFromJsArray)(this.webAssemblyContext, nativeY, yValues);
131
- (0, appendDoubleVectorFromJsArray_1.appendDoubleVectorFromJsArray)(this.webAssemblyContext, nativeY1, y1Values);
132
+ this.doubleVectorProvider.appendArray(this.webAssemblyContext, nativeX, xValues);
133
+ this.doubleVectorProvider.appendArray(this.webAssemblyContext, nativeY, yValues);
134
+ this.doubleVectorProvider.appendArray(this.webAssemblyContext, nativeY1, y1Values);
132
135
  this.notifyDataChanged(IDataSeries_1.EDataChangeType.Append, null, xValues.length);
133
136
  }
134
137
  };
@@ -186,6 +189,7 @@ var XyyDataSeries = /** @class */ (function (_super) {
186
189
  XyyDataSeries.prototype.insert = function (startIndex, x, y, y1, metadata) {
187
190
  if (!this.getIsDeleted()) {
188
191
  this.validateIndex(startIndex, "Start index is out of range");
192
+ this.throwIfFifo("insert");
189
193
  var nativeX = this.getNativeXValues();
190
194
  var nativeY = this.getNativeYValues();
191
195
  var nativeY1 = this.getNativeY1Values();
@@ -213,6 +217,7 @@ var XyyDataSeries = /** @class */ (function (_super) {
213
217
  Guard_1.Guard.isTrue((0, NumberArray_1.isNumberArray)(yValues) || (0, NumberArray_1.isTypedArray)(yValues), "yValues must be an array of numbers");
214
218
  Guard_1.Guard.isTrue((0, NumberArray_1.isNumberArray)(y1Values) || (0, NumberArray_1.isTypedArray)(y1Values), "y1Values must be an array of numbers");
215
219
  this.validateIndex(startIndex, "Start index is out of range");
220
+ this.throwIfFifo("insertRange");
216
221
  Guard_1.Guard.arraysSameLengthArr([
217
222
  { arg: xValues, name: "xValues" },
218
223
  { arg: yValues, name: "yValues" },
@@ -239,6 +244,7 @@ var XyyDataSeries = /** @class */ (function (_super) {
239
244
  XyyDataSeries.prototype.removeAt = function (index) {
240
245
  if (!this.getIsDeleted()) {
241
246
  this.validateIndex(index);
247
+ this.throwIfFifo("removeAt");
242
248
  this.getNativeXValues().removeAt(index);
243
249
  this.getNativeYValues().removeAt(index);
244
250
  this.getNativeY1Values().removeAt(index);
@@ -255,6 +261,7 @@ var XyyDataSeries = /** @class */ (function (_super) {
255
261
  XyyDataSeries.prototype.removeRange = function (startIndex, count) {
256
262
  if (!this.getIsDeleted()) {
257
263
  this.validateIndex(startIndex, "Start index is out of range");
264
+ this.throwIfFifo("removeRange");
258
265
  this.getNativeXValues().removeRange(startIndex, count);
259
266
  this.getNativeYValues().removeRange(startIndex, count);
260
267
  this.getNativeY1Values().removeRange(startIndex, count);
@@ -325,6 +332,11 @@ var XyyDataSeries = /** @class */ (function (_super) {
325
332
  this.y1FinalAnimationValues = (0, Deleter_1.deleteSafe)(this.y1FinalAnimationValues);
326
333
  _super.prototype.delete.call(this);
327
334
  };
335
+ XyyDataSeries.prototype.createAnimationVectors = function () {
336
+ _super.prototype.createAnimationVectors.call(this);
337
+ this.y1InitialAnimationValues = this.doubleVectorProvider.getDoubleVector(this.webAssemblyContext);
338
+ this.y1FinalAnimationValues = this.doubleVectorProvider.getDoubleVector(this.webAssemblyContext);
339
+ };
328
340
  /** @inheritDoc */
329
341
  XyyDataSeries.prototype.setInitialAnimationVectors = function (dataSeries) {
330
342
  _super.prototype.setInitialAnimationVectors.call(this, dataSeries);
@@ -369,10 +381,19 @@ var XyyDataSeries = /** @class */ (function (_super) {
369
381
  var xValues = [];
370
382
  var yValues = [];
371
383
  var y1Values = [];
372
- for (var i = 0; i < this.count(); i++) {
373
- xValues.push(this.xValues.get(i));
374
- yValues.push(this.yValues.get(i));
375
- y1Values.push(this.y1Values.get(i));
384
+ if (this.fifoCapacity && this.fifoSweeping) {
385
+ for (var i = 0; i < this.count(); i++) {
386
+ xValues.push(this.xValues.getRaw(i));
387
+ yValues.push(this.yValues.getRaw(i));
388
+ y1Values.push(this.y1Values.getRaw(i));
389
+ }
390
+ }
391
+ else {
392
+ for (var i = 0; i < this.count(); i++) {
393
+ xValues.push(this.xValues.get(i));
394
+ yValues.push(this.yValues.get(i));
395
+ y1Values.push(this.y1Values.get(i));
396
+ }
376
397
  }
377
398
  var options = {
378
399
  xValues: xValues,
@@ -383,6 +404,10 @@ var XyyDataSeries = /** @class */ (function (_super) {
383
404
  }
384
405
  return json;
385
406
  };
407
+ XyyDataSeries.prototype.reserve = function (size) {
408
+ _super.prototype.reserve.call(this, size);
409
+ this.y1Values.reserve(size);
410
+ };
386
411
  XyyDataSeries.prototype.getYY1Values = function (dataSeriesValueType) {
387
412
  var yValues;
388
413
  var y1Values;
@@ -149,6 +149,8 @@ export declare class XyzDataSeries extends BaseDataSeries {
149
149
  /** @inheritDoc */
150
150
  delete(): void;
151
151
  /** @inheritDoc */
152
+ createAnimationVectors(): void;
153
+ /** @inheritDoc */
152
154
  setInitialAnimationVectors(dataSeries?: XyzDataSeries): void;
153
155
  /** @inheritDoc */
154
156
  setFinalAnimationVectors(dataSeries?: XyzDataSeries): void;
@@ -158,5 +160,6 @@ export declare class XyzDataSeries extends BaseDataSeries {
158
160
  updateAnimationProperties(progress: number, animation: SeriesAnimation): void;
159
161
  /** @inheritDoc */
160
162
  toJSON(excludeData?: boolean): any;
163
+ protected reserve(size: number): void;
161
164
  private getYZValues;
162
165
  }