scichart 3.1.346 → 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 (316) 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/ObservableArray.d.ts +11 -5
  286. package/Core/ObservableArray.js +25 -6
  287. package/Core/Telemetry.js +4 -6
  288. package/_wasm/scichart.browser.js +1 -1
  289. package/_wasm/scichart2d.data +0 -0
  290. package/_wasm/scichart2d.js +4 -294
  291. package/_wasm/scichart2d.wasm +0 -0
  292. package/_wasm/scichart3d.data +0 -0
  293. package/_wasm/scichart3d.js +4 -294
  294. package/_wasm/scichart3d.wasm +0 -0
  295. package/index.d.ts +43 -2
  296. package/index.js +89 -27
  297. package/index.min.js +1 -1
  298. package/package.json +3 -4
  299. package/types/ChartModifierType.d.ts +2 -0
  300. package/types/ChartModifierType.js +2 -0
  301. package/types/DefaultRenderLayer.d.ts +9 -8
  302. package/types/DefaultRenderLayer.js +9 -8
  303. package/types/NumberArray.d.ts +1 -0
  304. package/types/NumberArray.js +12 -1
  305. package/types/SceneEntityType.d.ts +13 -5
  306. package/types/SceneEntityType.js +13 -5
  307. package/types/TSciChart.d.ts +37 -8
  308. package/types/TSciChart3D.d.ts +126 -7
  309. package/types/licensingClasses.d.ts +2 -1
  310. package/types/licensingClasses.js +1 -0
  311. package/utils/MemoryUsageHelper.d.ts +45 -0
  312. package/utils/MemoryUsageHelper.js +171 -0
  313. package/utils/array.d.ts +8 -0
  314. package/utils/array.js +58 -1
  315. package/utils/logger.d.ts +2 -0
  316. package/utils/logger.js +11 -0
@@ -33,6 +33,7 @@ import { SeriesSelectedArgs } from "./SeriesSelectedArgs";
33
33
  import { SeriesVisibleChangedArgs } from "./SeriesVisibleChangedArgs";
34
34
  import { ShaderEffect } from "./ShaderEffect";
35
35
  import { BaseDataLabelProvider } from "./DataLabels/BaseDataLabelProvider";
36
+ import { DeletableEntity } from "../../../Core/DeletableEntity";
36
37
  /**
37
38
  * @summary Defines the base class to a Render Series (or Chart Type) in SciChart's High Performance Real-time
38
39
  * {@link https://www.scichart.com/javascript-chart-features | JavaScript Charts}
@@ -43,7 +44,7 @@ import { BaseDataLabelProvider } from "./DataLabels/BaseDataLabelProvider";
43
44
  * See derived types of {@link BaseDataSeries} to find out what data-series are available.
44
45
  * See derived types of {@link IRenderableSeries} to find out what 2D JavaScript Chart types are available.
45
46
  */
46
- export declare abstract class BaseRenderableSeries implements IRenderableSeries {
47
+ export declare abstract class BaseRenderableSeries extends DeletableEntity implements IRenderableSeries {
47
48
  /** @inheritDoc */
48
49
  abstract readonly type: ESeriesType;
49
50
  /** @inheritDoc */
@@ -1,4 +1,19 @@
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.getDelta = exports.getDataPointWidth = exports.BaseRenderableSeries = void 0;
4
19
  var classFactory_1 = require("../../../Builder/classFactory");
@@ -35,6 +50,8 @@ var SeriesHoveredArgs_1 = require("./SeriesHoveredArgs");
35
50
  var SeriesSelectedArgs_1 = require("./SeriesSelectedArgs");
36
51
  var SeriesVisibleChangedArgs_1 = require("./SeriesVisibleChangedArgs");
37
52
  var DataLabelProviderType_1 = require("../../../types/DataLabelProviderType");
53
+ var DeletableEntity_1 = require("../../../Core/DeletableEntity");
54
+ var XyzSeriesInfo_1 = require("../../Model/ChartData/XyzSeriesInfo");
38
55
  /**
39
56
  * @summary Defines the base class to a Render Series (or Chart Type) in SciChart's High Performance Real-time
40
57
  * {@link https://www.scichart.com/javascript-chart-features | JavaScript Charts}
@@ -45,7 +62,8 @@ var DataLabelProviderType_1 = require("../../../types/DataLabelProviderType");
45
62
  * See derived types of {@link BaseDataSeries} to find out what data-series are available.
46
63
  * See derived types of {@link IRenderableSeries} to find out what 2D JavaScript Chart types are available.
47
64
  */
48
- var BaseRenderableSeries = /** @class */ (function () {
65
+ var BaseRenderableSeries = /** @class */ (function (_super) {
66
+ __extends(BaseRenderableSeries, _super);
49
67
  /**
50
68
  * Creates an instance of the {@link BaseRenderableSeries}
51
69
  * @param webAssemblyContext The {@link TSciChart | SciChart WebAssembly Context} containing
@@ -53,46 +71,48 @@ var BaseRenderableSeries = /** @class */ (function () {
53
71
  * @param options optional parameters of type {@link IBaseRenderableSeriesOptions} applied when constructing the series type
54
72
  */
55
73
  function BaseRenderableSeries(webAssemblyContext, options) {
74
+ var _this = this;
56
75
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
76
+ _this = _super.call(this) || this;
57
77
  /** @inheritDoc */
58
- this.rolloverModifierProps = new RolloverModifierRenderableSeriesProps_1.RolloverModifierRenderableSeriesProps(this);
78
+ _this.rolloverModifierProps = new RolloverModifierRenderableSeriesProps_1.RolloverModifierRenderableSeriesProps(_this);
59
79
  /** @inheritDoc */
60
- this.rolloverModifierProps1 = new RolloverModifierRenderableSeriesProps_1.RolloverModifierRenderableSeriesProps(this, true);
80
+ _this.rolloverModifierProps1 = new RolloverModifierRenderableSeriesProps_1.RolloverModifierRenderableSeriesProps(_this, true);
61
81
  /** @inheritDoc */
62
- this.selected = new EventHandler_1.EventHandler();
82
+ _this.selected = new EventHandler_1.EventHandler();
63
83
  /** @inheritDoc */
64
- this.hovered = new EventHandler_1.EventHandler();
84
+ _this.hovered = new EventHandler_1.EventHandler();
65
85
  /** @inheritDoc */
66
- this.isVisibleChanged = new EventHandler_1.EventHandler();
67
- this.animationQueue = [];
68
- this.paletteProviderProperty = IPaletteProvider_1.DefaultPaletteProvider.createEmpty();
86
+ _this.isVisibleChanged = new EventHandler_1.EventHandler();
87
+ _this.animationQueue = [];
88
+ _this.paletteProviderProperty = IPaletteProvider_1.DefaultPaletteProvider.createEmpty();
69
89
  // used to track if registered types were used for function properties, so they can be serialized
70
- this.typeMap = new Map();
71
- this.opacityProperty = 1;
72
- this.drawingProvidersProperty = [];
73
- this.xAxisIdProperty = AxisCore_1.AxisCore.DEFAULT_AXIS_ID;
74
- this.yAxisIdProperty = AxisCore_1.AxisCore.DEFAULT_AXIS_ID;
75
- this.strokeThicknessProperty = 2;
76
- this.strokeProperty = SciChartSurfaceBase_1.SciChartSurfaceBase.DEFAULT_THEME.lineSeriesColor;
77
- this.drawNaNAsProperty = WebGlRenderContext2D_1.ELineDrawMode.DiscontinuousLine;
78
- this.isVisibleProperty = true;
79
- this.isDigitalLineProperty = false;
80
- this.resamplingModeProperty = ResamplingMode_1.EResamplingMode.Auto;
81
- this.resamplingPrecisionProperty = 0;
82
- this.isStacked = false;
83
- this.webAssemblyContext = webAssemblyContext;
84
- this.id = (_a = options === null || options === void 0 ? void 0 : options.id) !== null && _a !== void 0 ? _a : (0, guid_1.generateGuid)();
90
+ _this.typeMap = new Map();
91
+ _this.opacityProperty = 1;
92
+ _this.drawingProvidersProperty = [];
93
+ _this.xAxisIdProperty = AxisCore_1.AxisCore.DEFAULT_AXIS_ID;
94
+ _this.yAxisIdProperty = AxisCore_1.AxisCore.DEFAULT_AXIS_ID;
95
+ _this.strokeThicknessProperty = 2;
96
+ _this.strokeProperty = SciChartSurfaceBase_1.SciChartSurfaceBase.DEFAULT_THEME.lineSeriesColor;
97
+ _this.drawNaNAsProperty = WebGlRenderContext2D_1.ELineDrawMode.DiscontinuousLine;
98
+ _this.isVisibleProperty = true;
99
+ _this.isDigitalLineProperty = false;
100
+ _this.resamplingModeProperty = ResamplingMode_1.EResamplingMode.Auto;
101
+ _this.resamplingPrecisionProperty = 0;
102
+ _this.isStacked = false;
103
+ _this.webAssemblyContext = webAssemblyContext;
104
+ _this.id = (_a = options === null || options === void 0 ? void 0 : options.id) !== null && _a !== void 0 ? _a : (0, guid_1.generateGuid)();
85
105
  // It is very important to add bind(this) first line in constructor,
86
106
  // otherwise dataSeries passed through the options does not work!
87
- this.dataSeriesDataChanged = this.dataSeriesDataChanged.bind(this);
88
- this.effectPropertyChanged = this.effectPropertyChanged.bind(this);
89
- this.invalidateParent = this.invalidateParent.bind(this);
90
- this.getDataPointWidth = this.getDataPointWidth.bind(this);
91
- this.updateAnimationProperties = this.updateAnimationProperties.bind(this);
92
- this.beforeAnimationStart = this.beforeAnimationStart.bind(this);
93
- this.afterAnimationComplete = this.afterAnimationComplete.bind(this);
107
+ _this.dataSeriesDataChanged = _this.dataSeriesDataChanged.bind(_this);
108
+ _this.effectPropertyChanged = _this.effectPropertyChanged.bind(_this);
109
+ _this.invalidateParent = _this.invalidateParent.bind(_this);
110
+ _this.getDataPointWidth = _this.getDataPointWidth.bind(_this);
111
+ _this.updateAnimationProperties = _this.updateAnimationProperties.bind(_this);
112
+ _this.beforeAnimationStart = _this.beforeAnimationStart.bind(_this);
113
+ _this.afterAnimationComplete = _this.afterAnimationComplete.bind(_this);
94
114
  // Need to set dataSeries (not just dataSeriesProperty) because of dataChanged.subscribe
95
- this.dataSeries = (_b = options === null || options === void 0 ? void 0 : options.dataSeries) !== null && _b !== void 0 ? _b : this.dataSeriesProperty;
115
+ _this.dataSeries = (_b = options === null || options === void 0 ? void 0 : options.dataSeries) !== null && _b !== void 0 ? _b : _this.dataSeriesProperty;
96
116
  if (options === null || options === void 0 ? void 0 : options.pointMarker) {
97
117
  if (!("drawSprite" in options.pointMarker)) {
98
118
  if (options.pointMarker.type === PointMarkerType_1.EPointMarkerType.Custom) {
@@ -103,22 +123,22 @@ var BaseRenderableSeries = /** @class */ (function () {
103
123
  }
104
124
  }
105
125
  }
106
- this.pointMarkerProperty = (_c = options === null || options === void 0 ? void 0 : options.pointMarker) !== null && _c !== void 0 ? _c : this.pointMarkerProperty;
107
- this.strokeProperty = (_d = options === null || options === void 0 ? void 0 : options.stroke) !== null && _d !== void 0 ? _d : this.strokeProperty;
108
- this.strokeThicknessProperty = (_e = options === null || options === void 0 ? void 0 : options.strokeThickness) !== null && _e !== void 0 ? _e : this.strokeThicknessProperty;
109
- this.opacityProperty = (_f = options === null || options === void 0 ? void 0 : options.opacity) !== null && _f !== void 0 ? _f : this.opacityProperty;
110
- this.xAxisIdProperty = (_g = options === null || options === void 0 ? void 0 : options.xAxisId) !== null && _g !== void 0 ? _g : this.xAxisIdProperty;
111
- this.yAxisIdProperty = (_h = options === null || options === void 0 ? void 0 : options.yAxisId) !== null && _h !== void 0 ? _h : this.yAxisIdProperty;
112
- this.isVisibleProperty = (_j = options === null || options === void 0 ? void 0 : options.isVisible) !== null && _j !== void 0 ? _j : this.isVisibleProperty;
113
- this.isDigitalLineProperty = (_k = options === null || options === void 0 ? void 0 : options.isDigitalLine) !== null && _k !== void 0 ? _k : this.isDigitalLineProperty;
114
- this.resamplingModeProperty = (_l = options === null || options === void 0 ? void 0 : options.resamplingMode) !== null && _l !== void 0 ? _l : this.resamplingModeProperty;
115
- this.resamplingPrecisionProperty = (_m = options === null || options === void 0 ? void 0 : options.resamplingPrecision) !== null && _m !== void 0 ? _m : this.resamplingPrecisionProperty;
126
+ _this.pointMarkerProperty = (_c = options === null || options === void 0 ? void 0 : options.pointMarker) !== null && _c !== void 0 ? _c : _this.pointMarkerProperty;
127
+ _this.strokeProperty = (_d = options === null || options === void 0 ? void 0 : options.stroke) !== null && _d !== void 0 ? _d : _this.strokeProperty;
128
+ _this.strokeThicknessProperty = (_e = options === null || options === void 0 ? void 0 : options.strokeThickness) !== null && _e !== void 0 ? _e : _this.strokeThicknessProperty;
129
+ _this.opacityProperty = (_f = options === null || options === void 0 ? void 0 : options.opacity) !== null && _f !== void 0 ? _f : _this.opacityProperty;
130
+ _this.xAxisIdProperty = (_g = options === null || options === void 0 ? void 0 : options.xAxisId) !== null && _g !== void 0 ? _g : _this.xAxisIdProperty;
131
+ _this.yAxisIdProperty = (_h = options === null || options === void 0 ? void 0 : options.yAxisId) !== null && _h !== void 0 ? _h : _this.yAxisIdProperty;
132
+ _this.isVisibleProperty = (_j = options === null || options === void 0 ? void 0 : options.isVisible) !== null && _j !== void 0 ? _j : _this.isVisibleProperty;
133
+ _this.isDigitalLineProperty = (_k = options === null || options === void 0 ? void 0 : options.isDigitalLine) !== null && _k !== void 0 ? _k : _this.isDigitalLineProperty;
134
+ _this.resamplingModeProperty = (_l = options === null || options === void 0 ? void 0 : options.resamplingMode) !== null && _l !== void 0 ? _l : _this.resamplingModeProperty;
135
+ _this.resamplingPrecisionProperty = (_m = options === null || options === void 0 ? void 0 : options.resamplingPrecision) !== null && _m !== void 0 ? _m : _this.resamplingPrecisionProperty;
116
136
  if (options === null || options === void 0 ? void 0 : options.effect) {
117
137
  if (!("getNativeEffect" in options.effect)) {
118
138
  options.effect = (0, classFactory_1.createType)(BaseType_1.EBaseType.ShaderEffect, options.effect.type, webAssemblyContext, options.effect.options);
119
139
  }
120
140
  }
121
- this.effectProperty = options === null || options === void 0 ? void 0 : options.effect;
141
+ _this.effectProperty = options === null || options === void 0 ? void 0 : options.effect;
122
142
  if (options === null || options === void 0 ? void 0 : options.paletteProvider) {
123
143
  if (!("onAttached" in options.paletteProvider)) {
124
144
  if (options.paletteProvider.type === PaletteProviderType_1.EPaletteProviderType.Custom) {
@@ -129,51 +149,51 @@ var BaseRenderableSeries = /** @class */ (function () {
129
149
  }
130
150
  }
131
151
  }
132
- this.paletteProviderProperty = (_o = options === null || options === void 0 ? void 0 : options.paletteProvider) !== null && _o !== void 0 ? _o : this.paletteProviderProperty;
152
+ _this.paletteProviderProperty = (_o = options === null || options === void 0 ? void 0 : options.paletteProvider) !== null && _o !== void 0 ? _o : _this.paletteProviderProperty;
133
153
  // PaletteProvider.onAttached must be called by the top level series, as the series type is not available here
134
- this.drawNaNAsProperty = (_p = options === null || options === void 0 ? void 0 : options.drawNaNAs) !== null && _p !== void 0 ? _p : this.drawNaNAsProperty;
135
- this.hitTestProvider = this.newHitTestProvider();
136
- this.isSelected = (_q = options === null || options === void 0 ? void 0 : options.isSelected) !== null && _q !== void 0 ? _q : false;
137
- this.isHovered = (_r = options === null || options === void 0 ? void 0 : options.isHovered) !== null && _r !== void 0 ? _r : false;
154
+ _this.drawNaNAsProperty = (_p = options === null || options === void 0 ? void 0 : options.drawNaNAs) !== null && _p !== void 0 ? _p : _this.drawNaNAsProperty;
155
+ _this.hitTestProvider = _this.newHitTestProvider();
156
+ _this.isSelected = (_q = options === null || options === void 0 ? void 0 : options.isSelected) !== null && _q !== void 0 ? _q : false;
157
+ _this.isHovered = (_r = options === null || options === void 0 ? void 0 : options.isHovered) !== null && _r !== void 0 ? _r : false;
138
158
  if (options === null || options === void 0 ? void 0 : options.onIsVisibleChanged) {
139
159
  if (typeof options.onIsVisibleChanged === "string") {
140
- this.typeMap.set("onIsVisibleChanged", options.onIsVisibleChanged);
160
+ _this.typeMap.set("onIsVisibleChanged", options.onIsVisibleChanged);
141
161
  var visibleChanged_1 = (0, classFactory_1.getFunction)(BaseType_1.EBaseType.OptionFunction, options.onIsVisibleChanged);
142
- this.isVisibleChanged.subscribe(function (args) {
162
+ _this.isVisibleChanged.subscribe(function (args) {
143
163
  return visibleChanged_1(args.sourceSeries, args.isVisible);
144
164
  });
145
165
  }
146
166
  else {
147
167
  var onIsVisibleChangedCallback_1 = options === null || options === void 0 ? void 0 : options.onIsVisibleChanged;
148
- this.isVisibleChanged.subscribe(function (args) {
168
+ _this.isVisibleChanged.subscribe(function (args) {
149
169
  return onIsVisibleChangedCallback_1(args.sourceSeries, args.isVisible);
150
170
  });
151
171
  }
152
172
  }
153
173
  if (options === null || options === void 0 ? void 0 : options.onSelectedChanged) {
154
174
  if (typeof options.onSelectedChanged === "string") {
155
- this.typeMap.set("onSelectedChanged", options.onSelectedChanged);
175
+ _this.typeMap.set("onSelectedChanged", options.onSelectedChanged);
156
176
  var selectionChanged_1 = (0, classFactory_1.getFunction)(BaseType_1.EBaseType.OptionFunction, options.onSelectedChanged);
157
- this.selected.subscribe(function (args) {
177
+ _this.selected.subscribe(function (args) {
158
178
  return selectionChanged_1(args.sourceSeries, args.isSelected);
159
179
  });
160
180
  }
161
181
  else {
162
182
  var onSelectedChangedCallback_1 = options === null || options === void 0 ? void 0 : options.onSelectedChanged;
163
- this.selected.subscribe(function (args) {
183
+ _this.selected.subscribe(function (args) {
164
184
  return onSelectedChangedCallback_1(args.sourceSeries, args.isSelected);
165
185
  });
166
186
  }
167
187
  }
168
188
  if (options === null || options === void 0 ? void 0 : options.onHoveredChanged) {
169
189
  if (typeof options.onHoveredChanged === "string") {
170
- this.typeMap.set("onHoveredChanged", options.onHoveredChanged);
190
+ _this.typeMap.set("onHoveredChanged", options.onHoveredChanged);
171
191
  var hoveredChanged_1 = (0, classFactory_1.getFunction)(BaseType_1.EBaseType.OptionFunction, options.onHoveredChanged);
172
- this.hovered.subscribe(function (args) { return hoveredChanged_1(args.sourceSeries, args.hovered); });
192
+ _this.hovered.subscribe(function (args) { return hoveredChanged_1(args.sourceSeries, args.hovered); });
173
193
  }
174
194
  else {
175
195
  var hoveredChanged_2 = options === null || options === void 0 ? void 0 : options.onHoveredChanged;
176
- this.hovered.subscribe(function (args) { return hoveredChanged_2(args.sourceSeries, args.hovered); });
196
+ _this.hovered.subscribe(function (args) { return hoveredChanged_2(args.sourceSeries, args.hovered); });
177
197
  }
178
198
  }
179
199
  if (options === null || options === void 0 ? void 0 : options.animation) {
@@ -186,8 +206,8 @@ var BaseRenderableSeries = /** @class */ (function () {
186
206
  }
187
207
  }
188
208
  }
189
- this.onDpiChanged = this.onDpiChanged.bind(this);
190
- this.resamplerHelper = new ExtremeResamplerHelper_1.ExtremeResamplerHelper(webAssemblyContext);
209
+ _this.onDpiChanged = _this.onDpiChanged.bind(_this);
210
+ _this.resamplerHelper = new ExtremeResamplerHelper_1.ExtremeResamplerHelper(webAssemblyContext);
191
211
  if (options === null || options === void 0 ? void 0 : options.dataLabelProvider) {
192
212
  if (!("draw" in options.dataLabelProvider)) {
193
213
  if (options.dataLabelProvider.type === DataLabelProviderType_1.EDataLabelProviderType.Custom) {
@@ -198,10 +218,11 @@ var BaseRenderableSeries = /** @class */ (function () {
198
218
  }
199
219
  }
200
220
  }
201
- this.dataLabelProviderProperty = options === null || options === void 0 ? void 0 : options.dataLabelProvider;
202
- if (this.dataLabelProviderProperty) {
203
- this.dataLabelProviderProperty.onAttach(webAssemblyContext, this);
221
+ _this.dataLabelProviderProperty = options === null || options === void 0 ? void 0 : options.dataLabelProvider;
222
+ if (_this.dataLabelProviderProperty) {
223
+ _this.dataLabelProviderProperty.onAttach(webAssemblyContext, _this);
204
224
  }
225
+ return _this;
205
226
  }
206
227
  /** @inheritDoc */
207
228
  BaseRenderableSeries.prototype.applyTheme = function (themeProvider) {
@@ -583,14 +604,14 @@ var BaseRenderableSeries = /** @class */ (function () {
583
604
  };
584
605
  /** @inheritDoc */
585
606
  BaseRenderableSeries.prototype.delete = function () {
586
- var _a;
587
607
  this.drawingProviders.forEach(function (dp) { return dp.delete(); });
588
608
  this.drawingProviders = [];
589
609
  this.dataSeries = (0, Deleter_1.deleteSafe)(this.dataSeries);
590
610
  this.effect = (0, Deleter_1.deleteSafe)(this.effect);
591
- (_a = this.pointMarker) === null || _a === void 0 ? void 0 : _a.delete();
611
+ this.pointMarker = (0, Deleter_1.deleteSafe)(this.pointMarker);
592
612
  this.resamplerHelper = (0, Deleter_1.deleteSafe)(this.resamplerHelper);
593
613
  this.pointSeries = (0, Deleter_1.deleteSafe)(this.pointSeries);
614
+ this.dataLabelProviderProperty = (0, Deleter_1.deleteSafe)(this.dataLabelProvider);
594
615
  };
595
616
  /** @inheritDoc */
596
617
  BaseRenderableSeries.prototype.getXRange = function () {
@@ -701,6 +722,8 @@ var BaseRenderableSeries = /** @class */ (function () {
701
722
  return new OhlcSeriesInfo_1.OhlcSeriesInfo(this, hitTestInfo);
702
723
  case IDataSeries_1.EDataSeriesType.Xyy:
703
724
  return new XyySeriesInfo_1.XyySeriesInfo(this, hitTestInfo);
725
+ case IDataSeries_1.EDataSeriesType.Xyz:
726
+ return new XyzSeriesInfo_1.XyzSeriesInfo(this, hitTestInfo);
704
727
  case IDataSeries_1.EDataSeriesType.HeatmapUniform:
705
728
  return new HeatmapSeriesInfo_1.HeatmapSeriesInfo(this, hitTestInfo);
706
729
  case IDataSeries_1.EDataSeriesType.Hlc:
@@ -851,14 +874,17 @@ var BaseRenderableSeries = /** @class */ (function () {
851
874
  else {
852
875
  this.pointSeries.xRange = rp.xVisibleRange;
853
876
  }
854
- this.resamplerHelper.resampleIntoPointSeries(this.webAssemblyContext, rp, this.dataSeries.getNativeXValues(), this.dataSeries.getNativeYValues(), this.pointSeries.intIndexes, this.pointSeries.xValues, this.pointSeries.yValues, false);
855
- // Always update Indexes as we need them in order to get metadata for resampled series
856
- this.pointSeries.updateIndexes();
877
+ var result = this.resamplerHelper.resampleIntoPointSeries(this.webAssemblyContext, rp, this.dataSeries.getNativeXValues(), this.dataSeries.getNativeYValues(), this.pointSeries.intIndexes, this.pointSeries.indexes, this.pointSeries.xValues, this.pointSeries.yValues, false);
878
+ this.pointSeries.fifoStartIndex = result.OutputSplitIndex;
879
+ // This is now done in the resampling above
880
+ //this.pointSeries.updateIndexes();
857
881
  this.pointSeries.clearIntIndexes();
882
+ //console.log("resampling ", this.type, this.pointSeries.count);
858
883
  // this.pointSeries.debugOutputForUnitTests();
859
884
  return this.pointSeries;
860
885
  }
861
886
  else {
887
+ //console.log("NOT resampling ", this.type, this.dataSeries.count());
862
888
  return new XyPointSeriesWrapped_1.XyPointSeriesWrapped(this.dataSeries);
863
889
  }
864
890
  };
@@ -879,7 +905,8 @@ var BaseRenderableSeries = /** @class */ (function () {
879
905
  SeriesType_1.ESeriesType.UniformContoursSeries,
880
906
  SeriesType_1.ESeriesType.UniformHeatmapSeries,
881
907
  SeriesType_1.ESeriesType.NonUniformHeatmapSeries,
882
- SeriesType_1.ESeriesType.ScatterSeries,
908
+ SeriesType_1.ESeriesType.BubbleSeries,
909
+ // ESeriesType.ScatterSeries,
883
910
  SeriesType_1.ESeriesType.ErrorBarsSeries
884
911
  ].includes(this.type);
885
912
  return (seriesTypeSupportsResampling &&
@@ -888,7 +915,9 @@ var BaseRenderableSeries = /** @class */ (function () {
888
915
  !this.isStacked &&
889
916
  this.dataSeries &&
890
917
  this.dataSeries.count() > 0 &&
891
- this.dataSeries.dataDistributionCalculator.isSortedAscending);
918
+ (this.dataSeries.dataDistributionCalculator.isSortedAscending || this.xAxis.isCategoryAxis)
919
+ //!this.dataSeries.fifoSweeping
920
+ );
892
921
  },
893
922
  enumerable: false,
894
923
  configurable: true
@@ -938,6 +967,9 @@ var BaseRenderableSeries = /** @class */ (function () {
938
967
  */
939
968
  BaseRenderableSeries.prototype.setAnimationVectors = function (animation) {
940
969
  var ds = this.dataSeries;
970
+ if (!ds.xInitialAnimationValues) {
971
+ ds.createAnimationVectors();
972
+ }
941
973
  if (animation.isOnStartAnimation) {
942
974
  ds.setFinalAnimationVectors(ds);
943
975
  }
@@ -1027,7 +1059,7 @@ var BaseRenderableSeries = /** @class */ (function () {
1027
1059
  configurable: true
1028
1060
  });
1029
1061
  return BaseRenderableSeries;
1030
- }());
1062
+ }(DeletableEntity_1.DeletableEntity));
1031
1063
  exports.BaseRenderableSeries = BaseRenderableSeries;
1032
1064
  /** @ignore */
1033
1065
  var getDataPointWidth = function (xValues, xCoordCalc, seriesViewRectWidth, widthFraction, isCategoryAxis, wasmContext) {
@@ -17,10 +17,12 @@ var __extends = (this && this.__extends) || (function () {
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
18
  exports.BaseStackedCollection = void 0;
19
19
  var AnimationFiniteStateMachine_1 = require("../../../Core/Animations/AnimationFiniteStateMachine");
20
+ var DeletableEntity_1 = require("../../../Core/DeletableEntity");
20
21
  var Deleter_1 = require("../../../Core/Deleter");
21
22
  var NumberRange_1 = require("../../../Core/NumberRange");
22
23
  var ObservableArray_1 = require("../../../Core/ObservableArray");
23
24
  var guid_1 = require("../../../utils/guid");
25
+ var MemoryUsageHelper_1 = require("../../../utils/MemoryUsageHelper");
24
26
  var BaseDataSeries_1 = require("../../Model/BaseDataSeries");
25
27
  var AxisCore_1 = require("../Axis/AxisCore");
26
28
  var animationHelpers_1 = require("./Animations/animationHelpers");
@@ -71,6 +73,11 @@ var BaseStackedCollection = /** @class */ (function (_super) {
71
73
  _this.updateAnimationProperties = _this.updateAnimationProperties.bind(_this);
72
74
  _this.accumulatedValues0 = new _this.webAssemblyContext.SCRTDoubleVector();
73
75
  _this.accumulatedFinalAnimationValues0 = new _this.webAssemblyContext.SCRTDoubleVector();
76
+ if (process.env.NODE_ENV !== "production") {
77
+ if (MemoryUsageHelper_1.MemoryUsageHelper.isMemoryUsageDebugEnabled) {
78
+ return new Proxy(_this, new DeletableEntity_1.DeletableEntityProxyHandler(_this));
79
+ }
80
+ }
74
81
  return _this;
75
82
  }
76
83
  Object.defineProperty(BaseStackedCollection.prototype, "isVisibleChanged", {
@@ -104,7 +111,7 @@ var BaseStackedCollection = /** @class */ (function (_super) {
104
111
  },
105
112
  /** @inheritDoc */
106
113
  set: function (isSelected) {
107
- throw new Error("Setting or getting isSelected is not supported for BaseStackedCollection");
114
+ throw new Error("Setting isSelected is not supported for BaseStackedCollection");
108
115
  },
109
116
  enumerable: false,
110
117
  configurable: true
@@ -112,11 +119,11 @@ var BaseStackedCollection = /** @class */ (function (_super) {
112
119
  Object.defineProperty(BaseStackedCollection.prototype, "isHovered", {
113
120
  /** @inheritDoc */
114
121
  get: function () {
115
- throw new Error("Setting or getting isHovered is not supported for BaseStackedCollection");
122
+ return false;
116
123
  },
117
124
  /** @inheritDoc */
118
125
  set: function (isHovered) {
119
- throw new Error("Setting or getting isHovered is not supported for BaseStackedCollection");
126
+ throw new Error("Setting isHovered is not supported for BaseStackedCollection");
120
127
  },
121
128
  enumerable: false,
122
129
  configurable: true
@@ -458,6 +465,9 @@ var BaseStackedCollection = /** @class */ (function (_super) {
458
465
  BaseStackedCollection.prototype.delete = function () {
459
466
  this.accumulatedValues0 = (0, Deleter_1.deleteSafe)(this.accumulatedValues0);
460
467
  this.accumulatedFinalAnimationValues0 = (0, Deleter_1.deleteSafe)(this.accumulatedFinalAnimationValues0);
468
+ this.asArray().forEach(function (series) {
469
+ series.delete();
470
+ });
461
471
  };
462
472
  /** @inheritDoc */
463
473
  BaseStackedCollection.prototype.notifyPropertyChanged = function (propertyName) {
@@ -543,7 +553,6 @@ var BaseStackedCollection = /** @class */ (function (_super) {
543
553
  BaseStackedCollection.prototype.onDetach = function () {
544
554
  this.invalidateParentCallback = undefined;
545
555
  this.parentSurface = undefined;
546
- this.delete();
547
556
  };
548
557
  /**
549
558
  * Gets visible renderable series array
@@ -61,14 +61,22 @@ var BaseStackedRenderableSeries = /** @class */ (function (_super) {
61
61
  * @inheritDoc
62
62
  */
63
63
  BaseStackedRenderableSeries.prototype.delete = function () {
64
- _super.prototype.delete.call(this);
65
64
  this.accumulatedValues = (0, Deleter_1.deleteSafe)(this.accumulatedValues);
66
65
  this.accumulatedFinalAnimationValues = (0, Deleter_1.deleteSafe)(this.accumulatedFinalAnimationValues);
66
+ // TODO refactor StackedColumnSeries to fix thrown errors
67
+ // super.delete();
68
+ this.dataSeries = (0, Deleter_1.deleteSafe)(this.dataSeries);
69
+ // this.effect = deleteSafe(this.effect);
70
+ this.pointMarker = (0, Deleter_1.deleteSafe)(this.pointMarker);
71
+ this.resamplerHelper = (0, Deleter_1.deleteSafe)(this.resamplerHelper);
72
+ this.pointSeries = (0, Deleter_1.deleteSafe)(this.pointSeries);
73
+ this.dataLabelProviderProperty = (0, Deleter_1.deleteSafe)(this.dataLabelProvider);
67
74
  };
68
75
  /**
69
76
  * Called when the {@link BaseStackedRenderableSeries} is detached from its parent {@link BaseStackedCollection}
70
77
  */
71
78
  BaseStackedRenderableSeries.prototype.onDetachFromParentCollection = function () {
79
+ console.log("onDetachFromParentCollection");
72
80
  this.parentCollection = undefined;
73
81
  this.getParentSurfaceFn = undefined;
74
82
  this.notifyParentPropertyChangedFn = undefined;
@@ -309,14 +317,15 @@ var BaseStackedRenderableSeries = /** @class */ (function (_super) {
309
317
  * instead set on the {@link StackedColumnCollection} or {@link StackedMountainCollection}
310
318
  */
311
319
  get: function () {
312
- throw Error("xAxisId property is not supported for BaseStackedRenderableSeries");
320
+ var _a;
321
+ return (_a = this.parentCollection) === null || _a === void 0 ? void 0 : _a.xAxisId;
313
322
  },
314
323
  /**
315
324
  * xAxisId property is not supported for BaseStackedRenderableSeries,
316
325
  * instead set on the {@link StackedColumnCollection} or {@link StackedMountainCollection}
317
326
  */
318
327
  set: function (value) {
319
- throw Error("xAxisId property is not supported for BaseStackedRenderableSeries");
328
+ throw Error("Setting xAxisId property is not supported for BaseStackedRenderableSeries");
320
329
  },
321
330
  enumerable: false,
322
331
  configurable: true
@@ -57,6 +57,8 @@ export declare abstract class BaseDataLabelProvider {
57
57
  * @param parentSeries
58
58
  */
59
59
  onAttach(webAssemblyContext: TSciChart, parentSeries: IRenderableSeries): void;
60
+ onDetach(): void;
61
+ delete(): void;
60
62
  /**
61
63
  * Gets or sets the text style used for data labels. The style must be set, with fontFamily and fontSize set, in order for text to be drawn.
62
64
  */
@@ -41,6 +41,11 @@ var BaseDataLabelProvider = /** @class */ (function () {
41
41
  this.webAssemblyContext = webAssemblyContext;
42
42
  this.parentSeries = parentSeries;
43
43
  };
44
+ BaseDataLabelProvider.prototype.onDetach = function () {
45
+ this.webAssemblyContext = undefined;
46
+ this.parentSeries = undefined;
47
+ };
48
+ BaseDataLabelProvider.prototype.delete = function () { };
44
49
  Object.defineProperty(BaseDataLabelProvider.prototype, "style", {
45
50
  /**
46
51
  * Gets or sets the text style used for data labels. The style must be set, with fontFamily and fontSize set, in order for text to be drawn.
@@ -325,6 +325,7 @@ var DataLabelProvider = /** @class */ (function (_super) {
325
325
  // renderPassData.pointSeries.xRange,
326
326
  // renderPassData.pointSeries.indexes.size()
327
327
  // );
328
+ var _c = this.parentSeries.dataSeries, fifoCapacity = _c.fifoCapacity, fifoSweeping = _c.fifoSweeping, fifoSweepingGap = _c.fifoSweepingGap, fifoStartIndex = _c.fifoStartIndex;
328
329
  var bounds = (0, NativeObject_1.getTextBounds)(this.webAssemblyContext);
329
330
  if (!this.shouldGenerate(this.state))
330
331
  return;
@@ -335,6 +336,11 @@ var DataLabelProvider = /** @class */ (function (_super) {
335
336
  this.skipModeProperty === DataLabelSkipMode_1.EDataLabelSkipMode.SkipIfOverlapNext
336
337
  ? this.state.indexEnd - (i - this.state.indexStart)
337
338
  : i;
339
+ if (fifoSweeping &&
340
+ this.state.pointCount === fifoCapacity &&
341
+ this.state.index >= fifoStartIndex &&
342
+ this.state.index < fifoStartIndex + fifoSweepingGap)
343
+ continue;
338
344
  var text = this.getText(this.state);
339
345
  if (!text)
340
346
  continue;
@@ -22,6 +22,7 @@ export declare class DataLabelState {
22
22
  readonly dataLabels: TDataLabel[];
23
23
  readonly indexStart: number;
24
24
  readonly indexEnd: number;
25
+ readonly fifoSweeping: boolean;
25
26
  private indexProperty;
26
27
  private xCoordCache;
27
28
  private yCoordCache;
@@ -27,10 +27,10 @@ var DataLabelState = /** @class */ (function () {
27
27
  ? this.renderPassData.xCoordinateCalculator
28
28
  : this.renderPassData.yCoordinateCalculator).hasFlippedCoordinates;
29
29
  if (!renderPassData.indexRange) {
30
- var indicesRange = this.parentSeries.dataSeries.getIndicesRange(new NumberRange_1.NumberRange(renderPassData.xCoordinateCalculator.visibleMin, renderPassData.xCoordinateCalculator.visibleMax), isCategoryAxis);
30
+ var indicesRange = this.parentSeries.getIndicesRange(new NumberRange_1.NumberRange(renderPassData.xCoordinateCalculator.visibleMin, renderPassData.xCoordinateCalculator.visibleMax), isCategoryAxis);
31
31
  this.indexStart = indicesRange.min;
32
32
  this.indexEnd = indicesRange.max;
33
- this.pointCount = indicesRange.diff;
33
+ this.pointCount = indicesRange.diff + 1;
34
34
  if (this.pointCount > 1)
35
35
  this.pointGap = Math.abs(this.xCoord(this.indexStart) - this.xCoord(this.indexEnd)) / this.pointCount;
36
36
  else
@@ -46,6 +46,7 @@ var DataLabelState = /** @class */ (function () {
46
46
  this.font = renderContext.getFont(this.style);
47
47
  this.xPadding = ((_c = (_b = this.style.padding) === null || _b === void 0 ? void 0 : _b.left) !== null && _c !== void 0 ? _c : 0) + ((_e = (_d = this.style.padding) === null || _d === void 0 ? void 0 : _d.right) !== null && _e !== void 0 ? _e : 0);
48
48
  this.yPadding = ((_g = (_f = this.style.padding) === null || _f === void 0 ? void 0 : _f.top) !== null && _g !== void 0 ? _g : 0) + ((_j = (_h = this.style.padding) === null || _h === void 0 ? void 0 : _h.bottom) !== null && _j !== void 0 ? _j : 0);
49
+ this.fifoSweeping = parentSeries.dataSeries.fifoSweeping;
49
50
  }
50
51
  Object.defineProperty(DataLabelState.prototype, "index", {
51
52
  get: function () {
@@ -64,14 +65,26 @@ var DataLabelState = /** @class */ (function () {
64
65
  if (!this.isXFlipped) {
65
66
  i = this.indexEnd - (i - this.indexStart);
66
67
  }
67
- return this.xValues.get(i);
68
+ // @ts-ignore
69
+ if (!this.fifoSweeping || !this.xValues.getRaw) {
70
+ return this.xValues.get(i);
71
+ }
72
+ else {
73
+ return this.xValues.getRaw(i);
74
+ }
68
75
  };
69
76
  DataLabelState.prototype.yVal = function (index) {
70
77
  var i = index !== null && index !== void 0 ? index : this.indexProperty;
71
78
  if (!this.isXFlipped) {
72
79
  i = this.indexEnd - (i - this.indexStart);
73
80
  }
74
- return this.yValues.get(i);
81
+ // @ts-ignore
82
+ if (!this.fifoSweeping || !this.yValues.getRaw) {
83
+ return this.yValues.get(i);
84
+ }
85
+ else {
86
+ return this.yValues.getRaw(i);
87
+ }
75
88
  };
76
89
  DataLabelState.prototype.yValAfterAnimation = function (index) {
77
90
  if (!this.yFinalValues)
@@ -115,7 +128,7 @@ var DataLabelState = /** @class */ (function () {
115
128
  });
116
129
  DataLabelState.prototype.getMetaData = function () {
117
130
  var index = this.renderPassData.pointSeries.indexes.get(this.index);
118
- return this.parentSeries.dataSeries.getMetadataAt(index);
131
+ return this.parentSeries.dataSeries.getMetadataAt(index, this.fifoSweeping);
119
132
  };
120
133
  Object.defineProperty(DataLabelState.prototype, "isVerticalChart", {
121
134
  get: function () {
@@ -98,7 +98,6 @@ var NonUniformHeatMapDataLabelProvider = /** @class */ (function (_super) {
98
98
  }
99
99
  var xVal = this.dataSeries.getXValue(xIndex);
100
100
  var xValNext = this.dataSeries.xCellOffsets[xIndex + 1];
101
- console.log(xIndex, xVal, xValNext, renderPassData.xCoordinateCalculator.visibleMax);
102
101
  if (renderPassData.xCoordinateCalculator.visibleMin > xVal ||
103
102
  renderPassData.xCoordinateCalculator.visibleMax < xValNext) {
104
103
  continue;
@@ -129,16 +129,22 @@ var TextDataLabelProvider = /** @class */ (function (_super) {
129
129
  }
130
130
  var state = new DataLabelState_1.DataLabelState(renderContext, renderPassData, this.style, this.color, renderPassData.pointSeries.yValues, this.parentSeries);
131
131
  var bounds = (0, NativeObject_1.getTextBounds)(this.webAssemblyContext);
132
+ var _f = this.parentSeries.dataSeries, fifoCapacity = _f.fifoCapacity, fifoSweeping = _f.fifoSweeping, fifoSweepingGap = _f.fifoSweepingGap, fifoStartIndex = _f.fifoStartIndex;
132
133
  var indexes = renderPassData.pointSeries.indexes;
133
134
  var calcBounds = this.verticalTextPosition !== TextPosition_1.EVerticalTextPosition.Above ||
134
135
  this.horizontalTextPosition !== TextPosition_1.EHorizontalTextPosition.Right ||
135
136
  this.calculateTextBounds;
136
137
  if (textSeries) {
137
- state.font.CalculateStringBounds((_a = textSeries.textValues[0]) !== null && _a !== void 0 ? _a : "", bounds, (_c = (_b = this.style) === null || _b === void 0 ? void 0 : _b.lineSpacing) !== null && _c !== void 0 ? _c : 2);
138
+ state.font.CalculateStringBounds((_a = textSeries.getTextValue(0)) !== null && _a !== void 0 ? _a : "", bounds, (_c = (_b = this.style) === null || _b === void 0 ? void 0 : _b.lineSpacing) !== null && _c !== void 0 ? _c : 2);
138
139
  for (var i = 0; i < indexes.size(); i++) {
139
140
  state.index = i;
140
141
  var index = indexes.get(state.index);
141
- var text = textSeries.textValues[index];
142
+ if (fifoSweeping &&
143
+ state.pointCount === fifoCapacity &&
144
+ state.index >= fifoStartIndex &&
145
+ state.index < fifoStartIndex + fifoSweepingGap)
146
+ continue;
147
+ var text = textSeries.getTextValue(index);
142
148
  if (calcBounds) {
143
149
  state.font.CalculateStringBounds(text !== null && text !== void 0 ? text : "", bounds, (_e = (_d = this.style) === null || _d === void 0 ? void 0 : _d.lineSpacing) !== null && _e !== void 0 ? _e : 2);
144
150
  }
@@ -16,6 +16,7 @@ export declare class BandSeriesDrawingProvider extends BaseSeriesDrawingProvider
16
16
  private fillBrushCache;
17
17
  private fillBrushY1Cache;
18
18
  private y1Selector;
19
+ private args;
19
20
  /**
20
21
  * Creates an instance of the {@link BandSeriesDrawingProvider}
21
22
  * @param webAssemblyContext The {@link TSciChart | SciChart 2D WebAssembly Context} containing native methods and