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
@@ -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.ShaderEffect = void 0;
4
19
  var app_1 = require("../../../constants/app");
@@ -11,11 +26,13 @@ var parseColor_1 = require("../../../utils/parseColor");
11
26
  var tsrExtensions_1 = require("../../../utils/tsrExtensions");
12
27
  var constants_1 = require("./constants");
13
28
  var NativeObject_1 = require("../Helpers/NativeObject");
29
+ var DeletableEntity_1 = require("../../../Core/DeletableEntity");
14
30
  /**
15
31
  * A {@link ShaderEffect} can be applied to a {@link BaseRenderableSeries | RenderableSeries} via the
16
32
  * {@link BaseRenderableSeries.effect} property. The effect modifies the render output of the chart type.
17
33
  */
18
- var ShaderEffect = /** @class */ (function () {
34
+ var ShaderEffect = /** @class */ (function (_super) {
35
+ __extends(ShaderEffect, _super);
19
36
  /**
20
37
  * Creates an instance of the {@link ShaderEffect}
21
38
  * @param webAssemblyContext The {@link TSciChart | SciChart WebAssembly Context} containing
@@ -24,20 +41,23 @@ var ShaderEffect = /** @class */ (function () {
24
41
  * @param options Optional parameters of type {@link IShaderEffectOptions} to configure the effect
25
42
  */
26
43
  function ShaderEffect(webAssemblyContext, seriesEffect, options) {
44
+ var _this = _super.call(this) || this;
27
45
  Guard_1.Guard.notNull(webAssemblyContext, "webAssemblyContext");
28
46
  if (!app_1.IS_TEST_ENV) {
29
47
  Guard_1.Guard.notNull(seriesEffect, "seriesEffect");
30
48
  }
31
- this.webAssemblyContext = webAssemblyContext;
32
- this.propertyChanged = new EventHandler_1.EventHandler();
33
- this.nativeEffect = seriesEffect;
34
- this.intensity = (options === null || options === void 0 ? void 0 : options.intensity) || 1;
35
- this.range = (options === null || options === void 0 ? void 0 : options.range) || 0;
36
- this.offset = (options === null || options === void 0 ? void 0 : options.offset) || new Point_1.Point(0, 0);
37
- this.color = (options === null || options === void 0 ? void 0 : options.color) || "#444444";
49
+ _this.webAssemblyContext = webAssemblyContext;
50
+ _this.propertyChanged = new EventHandler_1.EventHandler();
51
+ _this.nativeEffect = seriesEffect;
52
+ _this.intensity = (options === null || options === void 0 ? void 0 : options.intensity) || 1;
53
+ _this.range = (options === null || options === void 0 ? void 0 : options.range) || 0;
54
+ _this.offset = (options === null || options === void 0 ? void 0 : options.offset) || new Point_1.Point(0, 0);
55
+ _this.color = (options === null || options === void 0 ? void 0 : options.color) || "#444444";
56
+ return _this;
38
57
  }
39
58
  ShaderEffect.prototype.delete = function () {
40
59
  this.nativeEffect = (0, Deleter_1.deleteSafe)(this.nativeEffect);
60
+ this.webAssemblyContext = undefined;
41
61
  };
42
62
  /**
43
63
  * Gets the native {@link SCRTSeriesEffect} which contains the shader effect that will be applied in WebGL
@@ -142,5 +162,5 @@ var ShaderEffect = /** @class */ (function () {
142
162
  return { type: this.type, options: options };
143
163
  };
144
164
  return ShaderEffect;
145
- }());
165
+ }(DeletableEntity_1.DeletableEntity));
146
166
  exports.ShaderEffect = ShaderEffect;
@@ -112,6 +112,9 @@ var SplineBandRenderableSeries = /** @class */ (function (_super) {
112
112
  }
113
113
  this.isSplineProperty = true;
114
114
  var dataSeries = this.dataSeries;
115
+ if (dataSeries.fifoCapacity) {
116
+ throw new Error("Sorry, fifo is not currently supported for spline series");
117
+ }
115
118
  var xValues = this.xAxis.isCategoryAxis ? dataSeries.getNativeIndexes() : dataSeries.getNativeXValues();
116
119
  var yValues = dataSeries.getNativeYValues();
117
120
  var y1Values = dataSeries.getNativeY1Values();
@@ -156,6 +159,10 @@ var SplineBandRenderableSeries = /** @class */ (function (_super) {
156
159
  };
157
160
  /** @inheritDoc */
158
161
  SplineBandRenderableSeries.prototype.setAnimationVectors = function (animation) {
162
+ var ds = this.dataSeries;
163
+ if (!ds.xInitialAnimationValues) {
164
+ ds.createAnimationVectors();
165
+ }
159
166
  this.updateSplineValues();
160
167
  animationHelpers_1.animationHelpers.setSplineBandAnimationVectors(this.webAssemblyContext, animation, this.dataSeries, animation.dataSeries, this.xSplineValues, this.ySplineValues, this.y1SplineValues, this.xAxis.isCategoryAxis, this.interpolationPoints);
161
168
  };
@@ -108,6 +108,9 @@ var SplineLineRenderableSeries = /** @class */ (function (_super) {
108
108
  }
109
109
  this.isSplineProperty = true;
110
110
  var dataSeries = this.dataSeries;
111
+ if (dataSeries.fifoCapacity) {
112
+ throw new Error("Sorry, fifo is not currently supported for spline series");
113
+ }
111
114
  var xValues = this.xAxis.isCategoryAxis ? dataSeries.getNativeIndexes() : dataSeries.getNativeXValues();
112
115
  var yValues = dataSeries.getNativeYValues();
113
116
  var initialSize = xValues.size();
@@ -156,6 +159,10 @@ var SplineLineRenderableSeries = /** @class */ (function (_super) {
156
159
  };
157
160
  /** @inheritDoc */
158
161
  SplineLineRenderableSeries.prototype.setAnimationVectors = function (animation) {
162
+ var ds = this.dataSeries;
163
+ if (!ds.xInitialAnimationValues) {
164
+ ds.createAnimationVectors();
165
+ }
159
166
  this.updateSplineValues();
160
167
  animationHelpers_1.animationHelpers.setSplineAnimationVectors(this.webAssemblyContext, animation, this.dataSeries, animation.dataSeries, this.xSplineValues, this.ySplineValues, this.xAxis.isCategoryAxis, this.interpolationPoints);
161
168
  };
@@ -108,6 +108,9 @@ var SplineMountainRenderableSeries = /** @class */ (function (_super) {
108
108
  }
109
109
  this.isSplineProperty = true;
110
110
  var dataSeries = this.dataSeries;
111
+ if (dataSeries.fifoCapacity) {
112
+ throw new Error("Sorry, fifo is not currently supported for spline series");
113
+ }
111
114
  var xValues = this.xAxis.isCategoryAxis ? dataSeries.getNativeIndexes() : dataSeries.getNativeXValues();
112
115
  var yValues = dataSeries.getNativeYValues();
113
116
  var initialSize = xValues.size();
@@ -147,6 +150,10 @@ var SplineMountainRenderableSeries = /** @class */ (function (_super) {
147
150
  };
148
151
  /** @inheritDoc */
149
152
  SplineMountainRenderableSeries.prototype.setAnimationVectors = function (animation) {
153
+ var ds = this.dataSeries;
154
+ if (!ds.xInitialAnimationValues) {
155
+ ds.createAnimationVectors();
156
+ }
150
157
  this.updateSplineValues();
151
158
  animationHelpers_1.animationHelpers.setSplineAnimationVectors(this.webAssemblyContext, animation, this.dataSeries, animation.dataSeries, this.xSplineValues, this.ySplineValues, this.xAxis.isCategoryAxis, this.interpolationPoints);
152
159
  };
@@ -152,6 +152,9 @@ var StackedColumnCollection = /** @class */ (function (_super) {
152
152
  var isCategoryAxis = renderPassData.xCoordinateCalculator.isCategoryCoordinateCalculator;
153
153
  var firstDataSeries = this.getFirstSeries().dataSeries;
154
154
  var viewRect_1 = this.parentSurface.seriesViewRect;
155
+ if (firstDataSeries === null || firstDataSeries === void 0 ? void 0 : firstDataSeries.fifoCapacity) {
156
+ throw new Error("Sorry, fifo is not currently supported for stacked series");
157
+ }
155
158
  var isVerticalChart_1 = renderPassData.isVerticalChart, xCoordinateCalculator_1 = renderPassData.xCoordinateCalculator, yCoordinateCalculator_1 = renderPassData.yCoordinateCalculator;
156
159
  var xValues_1 = isCategoryAxis ? firstDataSeries.getNativeIndexes() : firstDataSeries.getNativeXValues();
157
160
  var seriesGroups_1 = this.seriesGroups;
@@ -40,8 +40,6 @@ export declare class StackedMountainCollection extends BaseStackedCollection<Sta
40
40
  */
41
41
  constructor(webAssemblyContext: TSciChart, options?: IBaseStackedCollectionOptions);
42
42
  /** @inheritDoc */
43
- delete(): void;
44
- /** @inheritDoc */
45
43
  updateAccumulatedVectors(): void;
46
44
  /** @inheritDoc */
47
45
  draw(renderContext: WebGlRenderContext2D, renderPassData: RenderPassData): void;
@@ -67,10 +67,6 @@ var StackedMountainCollection = /** @class */ (function (_super) {
67
67
  return _this;
68
68
  }
69
69
  /** @inheritDoc */
70
- StackedMountainCollection.prototype.delete = function () {
71
- _super.prototype.delete.call(this);
72
- };
73
- /** @inheritDoc */
74
70
  StackedMountainCollection.prototype.updateAccumulatedVectors = function () {
75
71
  var _this = this;
76
72
  var dataValuesCount = this.getDataSeriesValuesCount();
@@ -105,11 +101,15 @@ var StackedMountainCollection = /** @class */ (function (_super) {
105
101
  /** @inheritDoc */
106
102
  StackedMountainCollection.prototype.draw = function (renderContext, renderPassData) {
107
103
  var _this = this;
104
+ var _a;
108
105
  if (this.canDraw) {
109
106
  this.updateHitTestProviders(renderPassData);
110
107
  if (!this.isEnoughDataToDraw()) {
111
108
  return;
112
109
  }
110
+ if ((_a = this.getFirstSeries().dataSeries) === null || _a === void 0 ? void 0 : _a.fifoCapacity) {
111
+ throw new Error("Sorry, fifo is not currently supported for stacked series");
112
+ }
113
113
  this.updateAccumulatedVectors();
114
114
  var xAxis_1 = this.parentSurface.getXAxisById(this.xAxisId);
115
115
  var visibleSeries = this.getVisibleSeries();
@@ -150,6 +150,7 @@ export declare class StackedMountainRenderableSeries extends BaseStackedRenderab
150
150
  */
151
151
  getCurrentRenderPassData(): RenderPassData;
152
152
  toJSON(excludeData?: boolean): import("../../../Builder/buildSeries").TSeriesDefinition;
153
+ delete(): void;
153
154
  /** @inheritDoc */
154
155
  toPointSeries(resamplingParams?: ResamplingParams): IPointSeries;
155
156
  /** @inheritDoc */
@@ -16,6 +16,7 @@ var __extends = (this && this.__extends) || (function () {
16
16
  })();
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
18
  exports.StackedMountainRenderableSeries = void 0;
19
+ var Deleter_1 = require("../../../Core/Deleter");
19
20
  var SeriesType_1 = require("../../../types/SeriesType");
20
21
  var XyPointSeriesWrapped_1 = require("../../Model/PointSeries/XyPointSeriesWrapped");
21
22
  var IThemeProvider_1 = require("../../Themes/IThemeProvider");
@@ -250,6 +251,13 @@ var StackedMountainRenderableSeries = /** @class */ (function (_super) {
250
251
  Object.assign(json.options, options);
251
252
  return json;
252
253
  };
254
+ StackedMountainRenderableSeries.prototype.delete = function () {
255
+ // TODO this could just call delete of BaseRenderableSeries
256
+ this.drawingProviders.forEach(function (dp) { return dp.delete(); });
257
+ this.drawingProviders = [];
258
+ this.effect = (0, Deleter_1.deleteSafe)(this.effect);
259
+ _super.prototype.delete.call(this);
260
+ };
253
261
  /** @inheritDoc */
254
262
  StackedMountainRenderableSeries.prototype.toPointSeries = function (resamplingParams) {
255
263
  return new XyPointSeriesWrapped_1.XyPointSeriesWrapped(this.dataSeries);
@@ -1,6 +1,5 @@
1
1
  import { ESeriesType } from "../../../types/SeriesType";
2
2
  import { TSciChart } from "../../../types/TSciChart";
3
- import { IPointSeries } from "../../Model/PointSeries/IPointSeries";
4
3
  import { ResamplingParams } from "../../Numerics/Resamplers/ResamplingParams";
5
4
  import { BaseRenderableSeries } from "./BaseRenderableSeries";
6
5
  import { IDataLabelProviderOptions } from "./DataLabels/DataLabelProvider";
@@ -54,7 +53,7 @@ export declare class XyScatterRenderableSeries extends BaseRenderableSeries {
54
53
  */
55
54
  constructor(webAssemblyContext: TSciChart, options?: IXyScatterRenderableSeriesOptions);
56
55
  /** @inheritDoc */
57
- toPointSeries(rp?: ResamplingParams): IPointSeries;
56
+ needsResampling(rp: ResamplingParams): boolean;
58
57
  /** @inheritDoc */
59
58
  protected newHitTestProvider(): IHitTestProvider;
60
59
  /** @inheritDoc */
@@ -17,7 +17,7 @@ var __extends = (this && this.__extends) || (function () {
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
18
  exports.XyScatterRenderableSeries = void 0;
19
19
  var SeriesType_1 = require("../../../types/SeriesType");
20
- var XyPointSeriesWrapped_1 = require("../../Model/PointSeries/XyPointSeriesWrapped");
20
+ var ResamplingMode_1 = require("../../Numerics/Resamplers/ResamplingMode");
21
21
  var EllipsePointMarker_1 = require("../PointMarkers/EllipsePointMarker");
22
22
  var BaseRenderableSeries_1 = require("./BaseRenderableSeries");
23
23
  var constants_1 = require("./constants");
@@ -86,8 +86,13 @@ var XyScatterRenderableSeries = /** @class */ (function (_super) {
86
86
  return _this;
87
87
  }
88
88
  /** @inheritDoc */
89
- XyScatterRenderableSeries.prototype.toPointSeries = function (rp) {
90
- return new XyPointSeriesWrapped_1.XyPointSeriesWrapped(this.dataSeries);
89
+ XyScatterRenderableSeries.prototype.needsResampling = function (rp) {
90
+ if (this.dataSeries.fifoCapacity) {
91
+ rp.resamplingMode = ResamplingMode_1.EResamplingMode.None;
92
+ this.resamplerHelper.resetAndFillBasicNativeArgs(rp, this.getNativeXValues());
93
+ return true;
94
+ }
95
+ return false;
91
96
  };
92
97
  /** @inheritDoc */
93
98
  XyScatterRenderableSeries.prototype.newHitTestProvider = function () {
@@ -1,8 +1,10 @@
1
+ import { DeletableEntity } from "../../../Core/DeletableEntity";
1
2
  import { IDeletable } from "../../../Core/IDeletable";
2
3
  /**
3
4
  * Used by the {@link RubberBandXyZoomModifier} to draw an {@link SVGSVGElement | SVGElement} rectangle over the chart.
4
5
  */
5
- export declare class RubberBandSvgRect implements IDeletable {
6
+ export declare class RubberBandSvgRect extends DeletableEntity implements IDeletable {
7
+ svgTemplate: (fill: string, stroke: string, strokeThickness: number, width: number, height: number) => string;
6
8
  private svgRoot;
7
9
  private svg;
8
10
  private x1Property;
@@ -1,20 +1,40 @@
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.RubberBandSvgRect = void 0;
19
+ var DeletableEntity_1 = require("../../../Core/DeletableEntity");
4
20
  var annotationHelpers_1 = require("../Annotations/annotationHelpers");
5
21
  var constants_1 = require("./constants");
6
22
  /**
7
23
  * Used by the {@link RubberBandXyZoomModifier} to draw an {@link SVGSVGElement | SVGElement} rectangle over the chart.
8
24
  */
9
- var RubberBandSvgRect = /** @class */ (function () {
25
+ var RubberBandSvgRect = /** @class */ (function (_super) {
26
+ __extends(RubberBandSvgRect, _super);
10
27
  function RubberBandSvgRect(svgRoot, fill, stroke, strokeThickness) {
11
- this.x1Property = 0;
12
- this.x2Property = 0;
13
- this.y1Property = 0;
14
- this.y2Property = 0;
15
- this.isHiddenProperty = true;
16
- this.svgRoot = svgRoot;
17
- this.create(fill, stroke, strokeThickness);
28
+ var _this = _super.call(this) || this;
29
+ _this.svgTemplate = svgTemplate;
30
+ _this.x1Property = 0;
31
+ _this.x2Property = 0;
32
+ _this.y1Property = 0;
33
+ _this.y2Property = 0;
34
+ _this.isHiddenProperty = true;
35
+ _this.svgRoot = svgRoot;
36
+ _this.create(fill, stroke, strokeThickness);
37
+ return _this;
18
38
  }
19
39
  Object.defineProperty(RubberBandSvgRect.prototype, "x1", {
20
40
  /**
@@ -113,7 +133,7 @@ var RubberBandSvgRect = /** @class */ (function () {
113
133
  this.delete();
114
134
  }
115
135
  if (this.svgRoot) {
116
- var svgString = svgTemplate(fill, stroke, strokeThickness);
136
+ var svgString = this.svgTemplate(fill, stroke, strokeThickness, 0, 0);
117
137
  var svgNode = annotationHelpers_1.annotationHelpers.createSvg(svgString, this.svgRoot);
118
138
  this.svg = svgNode;
119
139
  this.svg.setAttribute("x", "100px");
@@ -141,7 +161,7 @@ var RubberBandSvgRect = /** @class */ (function () {
141
161
  this.update(propertyName);
142
162
  };
143
163
  return RubberBandSvgRect;
144
- }());
164
+ }(DeletableEntity_1.DeletableEntity));
145
165
  exports.RubberBandSvgRect = RubberBandSvgRect;
146
166
  /**
147
167
  * @ignore
@@ -30,4 +30,14 @@ export declare class SciChartDefaults {
30
30
  static watermarkPosition: EWatermarkPosition;
31
31
  /** For 2D charts the watermark is normally positioned within the series area. Set this true to place it relative to the overall canvas. */
32
32
  static watermarkRelativeToCanvas: boolean;
33
+ /**
34
+ * For 2D charts a number of buffers are created to process data. Buffer size by default grows with usage and caps out at 8,192kb.
35
+ * A total of 10 buffers are created for different scenarios.
36
+ * When SciChartSurface.create() is used this results in a maximum of 80MB memory as a static overhead for the application.
37
+ * When SciChartSurface.createSingle() is used this results in up to 80MB memory *per chart* as a static overhead.
38
+ * Lowering this number to 2048kb (or 1024kb) will reduce memory usage for the SciChart 2D Engine but may impact chart drawing performance.
39
+ * @remarks This property needs to be set before charts created and cannot be dynamically adjusted after that.
40
+ * Do not set lower than 1024kb or higher than 32MB (1024 x 32). Values outside this range will be clamped
41
+ */
42
+ static wasmBufferSizesKb: number;
33
43
  }
@@ -35,6 +35,16 @@ var SciChartDefaults = /** @class */ (function () {
35
35
  SciChartDefaults.watermarkPosition = WatermarkPosition_1.EWatermarkPosition.BottomLeft;
36
36
  /** For 2D charts the watermark is normally positioned within the series area. Set this true to place it relative to the overall canvas. */
37
37
  SciChartDefaults.watermarkRelativeToCanvas = false;
38
+ /**
39
+ * For 2D charts a number of buffers are created to process data. Buffer size by default grows with usage and caps out at 8,192kb.
40
+ * A total of 10 buffers are created for different scenarios.
41
+ * When SciChartSurface.create() is used this results in a maximum of 80MB memory as a static overhead for the application.
42
+ * When SciChartSurface.createSingle() is used this results in up to 80MB memory *per chart* as a static overhead.
43
+ * Lowering this number to 2048kb (or 1024kb) will reduce memory usage for the SciChart 2D Engine but may impact chart drawing performance.
44
+ * @remarks This property needs to be set before charts created and cannot be dynamically adjusted after that.
45
+ * Do not set lower than 1024kb or higher than 32MB (1024 x 32). Values outside this range will be clamped
46
+ */
47
+ SciChartDefaults.wasmBufferSizesKb = 1024 * 8;
38
48
  return SciChartDefaults;
39
49
  }());
40
50
  exports.SciChartDefaults = SciChartDefaults;
@@ -1,3 +1,4 @@
1
+ import { DeletableEntity } from "../../Core/DeletableEntity";
1
2
  import { IDeletable } from "../../Core/IDeletable";
2
3
  import { OverviewRangeSelectionModifier } from "../ChartModifiers/OverviewRangeSelectionModifier";
3
4
  import { IThemeable } from "../Themes/IThemeable";
@@ -27,7 +28,7 @@ export interface IOverviewOptions extends I2DSurfaceOptions {
27
28
  * @remarks
28
29
  * It is possible to specify options to customize style and behavior of the component.
29
30
  */
30
- export declare class SciChartOverview implements IDeletable, IThemeable {
31
+ export declare class SciChartOverview extends DeletableEntity implements IDeletable, IThemeable {
31
32
  /**
32
33
  * Creates a {@link SciChartOverview} and {@link TSciChart | WebAssembly Context} to occupy the div by element ID in your DOM.
33
34
  * @remarks This method is async and must be awaited
@@ -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
  var __assign = (this && this.__assign) || function () {
3
18
  __assign = Object.assign || function(t) {
4
19
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -49,6 +64,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
49
64
  Object.defineProperty(exports, "__esModule", { value: true });
50
65
  exports.SciChartOverview = void 0;
51
66
  var buildSeries_1 = require("../../Builder/buildSeries");
67
+ var DeletableEntity_1 = require("../../Core/DeletableEntity");
52
68
  var NumberRange_1 = require("../../Core/NumberRange");
53
69
  var AutoRange_1 = require("../../types/AutoRange");
54
70
  var AxisType_1 = require("../../types/AxisType");
@@ -66,14 +82,17 @@ var SciChartSurface_1 = require("./SciChartSurface");
66
82
  * @remarks
67
83
  * It is possible to specify options to customize style and behavior of the component.
68
84
  */
69
- var SciChartOverview = /** @class */ (function () {
85
+ var SciChartOverview = /** @class */ (function (_super) {
86
+ __extends(SciChartOverview, _super);
70
87
  function SciChartOverview(parentSciChartSurface, overviewSciChartSurface, wasmContext, rangeSelectionModifier, overviewXAxis, overviewYAxis) {
71
- this.overviewXAxisProperty = overviewXAxis;
72
- this.overviewYAxisProperty = overviewYAxis;
73
- this.rangeSelectionModifierProperty = rangeSelectionModifier;
74
- this.parentSciChartSurfaceProperty = parentSciChartSurface;
75
- this.overviewSciChartSurfaceProperty = overviewSciChartSurface;
76
- this.overviewWasmContext = wasmContext;
88
+ var _this = _super.call(this) || this;
89
+ _this.overviewXAxisProperty = overviewXAxis;
90
+ _this.overviewYAxisProperty = overviewYAxis;
91
+ _this.rangeSelectionModifierProperty = rangeSelectionModifier;
92
+ _this.parentSciChartSurfaceProperty = parentSciChartSurface;
93
+ _this.overviewSciChartSurfaceProperty = overviewSciChartSurface;
94
+ _this.overviewWasmContext = wasmContext;
95
+ return _this;
77
96
  }
78
97
  /**
79
98
  * Creates a {@link SciChartOverview} and {@link TSciChart | WebAssembly Context} to occupy the div by element ID in your DOM.
@@ -153,9 +172,10 @@ var SciChartOverview = /** @class */ (function () {
153
172
  SciChartOverview.prototype.delete = function () {
154
173
  var _a;
155
174
  (_a = this.overviewSciChartSurface) === null || _a === void 0 ? void 0 : _a.delete();
175
+ this.overviewWasmContext = undefined;
156
176
  };
157
177
  return SciChartOverview;
158
- }());
178
+ }(DeletableEntity_1.DeletableEntity));
159
179
  exports.SciChartOverview = SciChartOverview;
160
180
  /** @ignore */
161
181
  var createSciChartOverview = function (originalSciChartSurface, overviewRootElement, options) { return __awaiter(void 0, void 0, void 0, function () {
@@ -1,4 +1,5 @@
1
1
  import { ISciChartPieDefinition } from "../../../Builder/buildSurface";
2
+ import { DeletableEntity } from "../../../Core/DeletableEntity";
2
3
  import { IDeletable } from "../../../Core/IDeletable";
3
4
  import { ObservableArray } from "../../../Core/ObservableArray";
4
5
  import { Thickness } from "../../../Core/Thickness";
@@ -10,7 +11,7 @@ import { TTextStyle } from "../Axis/AxisCore";
10
11
  import { PieLabelProvider } from "../Axis/LabelProvider/PieLabelProvider";
11
12
  import { IEventSubscriptionItem } from "../Legend/SciChartLegendBase";
12
13
  import { SciChartPieLegend } from "../Legend/SciChartPieLegend";
13
- import { ISciChartSurfaceBase } from "../SciChartSurfaceBase";
14
+ import { ISciChartSurfaceBase, TSciChartDestination } from "../SciChartSurfaceBase";
14
15
  import { IPieSurfaceOptions } from "./IPieSurfaceOptions";
15
16
  import { IPieSegment } from "./PieSegment/IPieSegment";
16
17
  export declare enum ESizingMode {
@@ -46,7 +47,7 @@ export declare enum EPieValueMode {
46
47
  * It is possible to have more than one {@link SciChartPieSurface} on screen at the same time.
47
48
  * {@link SciChartPieSurface | SciChartPieSurfaces} scale to fit the parent DIV where they are hosted. Use CSS to position the DIV.
48
49
  */
49
- export declare class SciChartPieSurface implements ISciChartSurfaceBase {
50
+ export declare class SciChartPieSurface extends DeletableEntity implements ISciChartSurfaceBase {
50
51
  /**
51
52
  * Creates a {@link SciChartPieSurface} to occupy the div by element ID in your DOM.
52
53
  * @remarks This method is async and must be awaited
@@ -75,9 +76,12 @@ export declare class SciChartPieSurface implements ISciChartSurfaceBase {
75
76
  */
76
77
  legend: SciChartPieLegend;
77
78
  onCreatedName: string;
79
+ id: string;
78
80
  protected widthAspect: number;
79
81
  protected heightAspect: number;
80
82
  protected labelProviderProperty: PieLabelProvider;
83
+ protected isDeletedProperty: boolean;
84
+ protected destinations: TSciChartDestination[];
81
85
  private pieTypeProperty;
82
86
  private holeRadiusProperty;
83
87
  private holeRadiusSizingModeProperty;
@@ -97,6 +101,7 @@ export declare class SciChartPieSurface implements ISciChartSurfaceBase {
97
101
  private labelStyleProperty;
98
102
  private resizeSubscriptionToken;
99
103
  constructor(canvases?: TSciChartSurfaceCanvases, options?: IPieSurfaceOptions);
104
+ get isDeleted(): boolean;
100
105
  /**
101
106
  * Gets or sets a {@link LabelProvider} - a class which is responsible for formatting axis labels and cursor labels from numeric values
102
107
  */
@@ -125,6 +130,8 @@ export declare class SciChartPieSurface implements ISciChartSurfaceBase {
125
130
  * Used internally - gets the previous {@link IThemeProvider}
126
131
  */
127
132
  get previousThemeProvider(): IThemeProvider;
133
+ setDestinations(destinations: TSciChartDestination[]): void;
134
+ get otherSurfaces(): ISciChartSurfaceBase[];
128
135
  /**
129
136
  * Call invalidateElement() to trigger a redraw of the {@link SciChartPieSurface}. SciChart's rendering
130
137
  * engine will schedule a redraw a the next time the renderer is free.
@@ -137,7 +144,7 @@ export declare class SciChartPieSurface implements ISciChartSurfaceBase {
137
144
  /**
138
145
  * @inheritDoc
139
146
  */
140
- delete(isAnimationProgress?: boolean): void;
147
+ delete(): void;
141
148
  /**
142
149
  * Used Internally. Cleans up the chart internal parts, subscriptions, etc.
143
150
  */