scichart 3.1.348 → 3.2.434

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 (358) hide show
  1. package/Builder/buildSurface.d.ts +2 -2
  2. package/Builder/chartBuilder.d.ts +4 -4
  3. package/Charting/ChartModifiers/ChartModifierBase.d.ts +19 -5
  4. package/Charting/ChartModifiers/ChartModifierBase.js +64 -7
  5. package/Charting/ChartModifiers/CursorModifier.d.ts +9 -9
  6. package/Charting/ChartModifiers/CursorModifier.js +13 -1
  7. package/Charting/ChartModifiers/DataPointSelectionModifier.d.ts +1 -0
  8. package/Charting/ChartModifiers/DataPointSelectionModifier.js +6 -1
  9. package/Charting/ChartModifiers/LegendModifier.d.ts +10 -25
  10. package/Charting/ChartModifiers/LegendModifier.js +10 -20
  11. package/Charting/ChartModifiers/MouseWheelZoomModifier.js +20 -11
  12. package/Charting/ChartModifiers/OverviewRangeSelectionModifier.d.ts +5 -5
  13. package/Charting/ChartModifiers/PinchZoomModifier.d.ts +38 -8
  14. package/Charting/ChartModifiers/PinchZoomModifier.js +103 -40
  15. package/Charting/ChartModifiers/RolloverModifier.js +10 -3
  16. package/Charting/ChartModifiers/RubberBandXyZoomModifier.d.ts +4 -7
  17. package/Charting/ChartModifiers/RubberBandXyZoomModifier.js +6 -8
  18. package/Charting/ChartModifiers/SeriesSelectionModifier.js +39 -29
  19. package/Charting/ChartModifiers/XAxisDragModifier.d.ts +1 -1
  20. package/Charting/ChartModifiers/XAxisDragModifier.js +3 -3
  21. package/Charting/ChartModifiers/YAxisDragModifier.d.ts +2 -4
  22. package/Charting/ChartModifiers/YAxisDragModifier.js +7 -8
  23. package/Charting/ChartModifiers/ZoomPanModifier.d.ts +13 -38
  24. package/Charting/ChartModifiers/ZoomPanModifier.js +54 -99
  25. package/Charting/Drawing/BaseCache.d.ts +2 -1
  26. package/Charting/Drawing/BaseCache.js +45 -7
  27. package/Charting/Drawing/RenderSurface.d.ts +1 -0
  28. package/Charting/Drawing/RenderSurface.js +5 -1
  29. package/Charting/Drawing/SolidBrushCache.d.ts +2 -1
  30. package/Charting/Drawing/SolidBrushCache.js +23 -3
  31. package/Charting/Drawing/WebGlBrush.d.ts +2 -1
  32. package/Charting/Drawing/WebGlBrush.js +22 -3
  33. package/Charting/Drawing/WebGlPen.d.ts +2 -1
  34. package/Charting/Drawing/WebGlPen.js +23 -4
  35. package/Charting/Drawing/WebGlRenderContext2D.d.ts +4 -3
  36. package/Charting/Drawing/WebGlRenderContext2D.js +26 -7
  37. package/Charting/Model/BaseDataSeries.d.ts +67 -2
  38. package/Charting/Model/BaseDataSeries.js +193 -42
  39. package/Charting/Model/BaseHeatmapDataSeries.js +1 -1
  40. package/Charting/Model/ChartData/SeriesInfo.d.ts +16 -0
  41. package/Charting/Model/ChartData/SeriesInfo.js +7 -0
  42. package/Charting/Model/ChartData/XyzSeriesInfo.d.ts +8 -0
  43. package/Charting/Model/ChartData/XyzSeriesInfo.js +36 -0
  44. package/Charting/Model/DoubleVectorProvider.d.ts +19 -0
  45. package/Charting/Model/DoubleVectorProvider.js +95 -0
  46. package/Charting/Model/Filters/HlcFilterBase.d.ts +6 -2
  47. package/Charting/Model/Filters/HlcFilterBase.js +17 -1
  48. package/Charting/Model/Filters/IFilterBase.d.ts +24 -0
  49. package/Charting/Model/Filters/IFilterBase.js +2 -0
  50. package/Charting/Model/Filters/OhlcFilterBase.d.ts +6 -2
  51. package/Charting/Model/Filters/OhlcFilterBase.js +17 -1
  52. package/Charting/Model/Filters/XyFilterBase.d.ts +6 -5
  53. package/Charting/Model/Filters/XyFilterBase.js +17 -1
  54. package/Charting/Model/Filters/XyyFilterBase.d.ts +6 -2
  55. package/Charting/Model/Filters/XyyFilterBase.js +17 -1
  56. package/Charting/Model/Filters/XyzFilterBase.d.ts +6 -2
  57. package/Charting/Model/Filters/XyzFilterBase.js +17 -1
  58. package/Charting/Model/HlcDataSeries.d.ts +3 -0
  59. package/Charting/Model/HlcDataSeries.js +44 -15
  60. package/Charting/Model/IDataSeries.d.ts +23 -0
  61. package/Charting/Model/NonUniformHeatmapDataSeries.js +2 -0
  62. package/Charting/Model/OhlcDataSeries.d.ts +3 -0
  63. package/Charting/Model/OhlcDataSeries.js +56 -24
  64. package/Charting/Model/PointSeries/BasePointSeriesResampled.d.ts +4 -5
  65. package/Charting/Model/PointSeries/BasePointSeriesResampled.js +29 -21
  66. package/Charting/Model/PointSeries/BasePointSeriesWrapped.d.ts +2 -0
  67. package/Charting/Model/PointSeries/BasePointSeriesWrapped.js +2 -0
  68. package/Charting/Model/PointSeries/IPointSeries.d.ts +2 -1
  69. package/Charting/Model/PointSeries/OhlcPointSeriesResampled.js +1 -1
  70. package/Charting/Model/PointSeries/XyPointSeriesWrapped.d.ts +2 -1
  71. package/Charting/Model/PointSeries/XyPointSeriesWrapped.js +2 -2
  72. package/Charting/Model/PointSeries/XyyPointSeriesResampled.js +1 -1
  73. package/Charting/Model/UniformHeatmapDataSeries.d.ts +31 -11
  74. package/Charting/Model/UniformHeatmapDataSeries.js +72 -4
  75. package/Charting/Model/XyDataSeries.d.ts +0 -8
  76. package/Charting/Model/XyDataSeries.js +21 -5
  77. package/Charting/Model/XyTextDataSeries.d.ts +2 -0
  78. package/Charting/Model/XyTextDataSeries.js +35 -4
  79. package/Charting/Model/XyyDataSeries.d.ts +2 -0
  80. package/Charting/Model/XyyDataSeries.js +50 -26
  81. package/Charting/Model/XyzDataSeries.d.ts +3 -0
  82. package/Charting/Model/XyzDataSeries.js +36 -10
  83. package/Charting/Numerics/CoordinateCalculators/CategoryCoordinateCalculator.d.ts +3 -5
  84. package/Charting/Numerics/CoordinateCalculators/CategoryCoordinateCalculator.js +5 -7
  85. package/Charting/Numerics/CoordinateCalculators/CoordinateCalculatorBase.d.ts +2 -1
  86. package/Charting/Numerics/CoordinateCalculators/CoordinateCalculatorBase.js +29 -9
  87. package/Charting/Numerics/CoordinateCalculators/FlippedCategoryCoordinateCalculator.d.ts +3 -5
  88. package/Charting/Numerics/CoordinateCalculators/FlippedCategoryCoordinateCalculator.js +5 -7
  89. package/Charting/Numerics/Resamplers/ExtremeResamplerHelper.d.ts +14 -10
  90. package/Charting/Numerics/Resamplers/ExtremeResamplerHelper.js +105 -69
  91. package/Charting/Numerics/Resamplers/ResamplingParams.d.ts +4 -2
  92. package/Charting/Numerics/Resamplers/ResamplingParams.js +12 -7
  93. package/Charting/Numerics/TickCoordinateProviders/TickCoordinatesProvider.d.ts +5 -0
  94. package/Charting/Numerics/TickCoordinateProviders/TickCoordinatesProvider.js +7 -0
  95. package/Charting/Numerics/TickProviders/NumericTickProvider.js +3 -4
  96. package/Charting/Numerics/TickProviders/TickProvider.d.ts +5 -0
  97. package/Charting/Numerics/TickProviders/TickProvider.js +7 -0
  98. package/Charting/Services/SciChartRenderer.js +15 -5
  99. package/Charting/Services/TitleRenderer.d.ts +2 -1
  100. package/Charting/Services/TitleRenderer.js +35 -14
  101. package/Charting/Visuals/Annotations/AdornerLayer.d.ts +1 -1
  102. package/Charting/Visuals/Annotations/AnnotationBase.d.ts +6 -6
  103. package/Charting/Visuals/Annotations/AnnotationBase.js +81 -61
  104. package/Charting/Visuals/Annotations/CursorTooltipSvgAnnotation.js +4 -0
  105. package/Charting/Visuals/Annotations/IAnnotation.d.ts +9 -4
  106. package/Charting/Visuals/Annotations/IAnnotation.js +6 -0
  107. package/Charting/Visuals/Annotations/LineAnnotation.js +3 -1
  108. package/Charting/Visuals/Annotations/NativeTextAnnotation.js +4 -0
  109. package/Charting/Visuals/Annotations/RenderContextAnnotationBase.d.ts +5 -0
  110. package/Charting/Visuals/Annotations/RenderContextAnnotationBase.js +16 -0
  111. package/Charting/Visuals/Annotations/RolloverTooltipSvgAnnotation.js +6 -0
  112. package/Charting/Visuals/Annotations/constants.d.ts +1 -0
  113. package/Charting/Visuals/Annotations/constants.js +1 -0
  114. package/Charting/Visuals/Axis/AxisBase2D.d.ts +23 -8
  115. package/Charting/Visuals/Axis/AxisBase2D.js +46 -10
  116. package/Charting/Visuals/Axis/AxisCore.d.ts +6 -3
  117. package/Charting/Visuals/Axis/AxisCore.js +100 -54
  118. package/Charting/Visuals/Axis/AxisRenderer.d.ts +2 -1
  119. package/Charting/Visuals/Axis/AxisRenderer.js +40 -16
  120. package/Charting/Visuals/Axis/AxisTitleRenderer.d.ts +1 -0
  121. package/Charting/Visuals/Axis/AxisTitleRenderer.js +4 -0
  122. package/Charting/Visuals/Axis/CategoryAxisBase.js +4 -4
  123. package/Charting/Visuals/Axis/DeltaCalculator/DateTimeDeltaCalculator.js +14 -9
  124. package/Charting/Visuals/Axis/DeltaCalculator/DeltaCalculator.d.ts +5 -0
  125. package/Charting/Visuals/Axis/DeltaCalculator/DeltaCalculator.js +7 -0
  126. package/Charting/Visuals/Axis/LabelProvider/LabelCache.d.ts +2 -2
  127. package/Charting/Visuals/Axis/LabelProvider/LabelCache.js +8 -1
  128. package/Charting/Visuals/Axis/LabelProvider/LabelProvider.d.ts +7 -1
  129. package/Charting/Visuals/Axis/LabelProvider/LabelProvider.js +34 -8
  130. package/Charting/Visuals/Axis/LabelProvider/LabelProviderBase2D.d.ts +4 -2
  131. package/Charting/Visuals/Axis/LabelProvider/LabelProviderBase2D.js +8 -2
  132. package/Charting/Visuals/Axis/LabelProvider/PieLabelProvider.d.ts +1 -0
  133. package/Charting/Visuals/Axis/LabelProvider/PieLabelProvider.js +1 -0
  134. package/Charting/Visuals/HeatmapLegend.d.ts +3 -2
  135. package/Charting/Visuals/HeatmapLegend.js +33 -12
  136. package/Charting/Visuals/Helpers/NativeObject.d.ts +8 -5
  137. package/Charting/Visuals/Helpers/NativeObject.js +42 -21
  138. package/Charting/Visuals/Helpers/drawLabel.js +3 -1
  139. package/Charting/Visuals/I2DSurfaceOptions.d.ts +0 -15
  140. package/Charting/Visuals/Legend/ManualLegend.d.ts +56 -0
  141. package/Charting/Visuals/Legend/ManualLegend.js +138 -0
  142. package/Charting/Visuals/Legend/SciChartLegend.js +4 -3
  143. package/Charting/Visuals/Legend/SciChartLegendBase.d.ts +65 -4
  144. package/Charting/Visuals/Legend/SciChartLegendBase.js +111 -23
  145. package/Charting/Visuals/Legend/SciChartPieLegend.js +1 -1
  146. package/Charting/Visuals/PointMarkers/BasePointMarker.d.ts +13 -1
  147. package/Charting/Visuals/PointMarkers/BasePointMarker.js +77 -19
  148. package/Charting/Visuals/PointMarkers/Constants.d.ts +2 -1
  149. package/Charting/Visuals/PointMarkers/Constants.js +1 -0
  150. package/Charting/Visuals/PointMarkers/IPointMarker.d.ts +2 -0
  151. package/Charting/Visuals/RenderableSeries/Animations/SeriesAnimation.js +4 -1
  152. package/Charting/Visuals/RenderableSeries/Animations/animationHelpers.d.ts +1 -1
  153. package/Charting/Visuals/RenderableSeries/BaseBandRenderableSeries.js +8 -7
  154. package/Charting/Visuals/RenderableSeries/BaseHeatmapRenderableSeries.d.ts +1 -0
  155. package/Charting/Visuals/RenderableSeries/BaseHeatmapRenderableSeries.js +5 -0
  156. package/Charting/Visuals/RenderableSeries/BaseOhlcRenderableSeries.js +10 -9
  157. package/Charting/Visuals/RenderableSeries/BaseRenderableSeries.d.ts +3 -2
  158. package/Charting/Visuals/RenderableSeries/BaseRenderableSeries.js +101 -69
  159. package/Charting/Visuals/RenderableSeries/BaseStackedCollection.js +18 -4
  160. package/Charting/Visuals/RenderableSeries/BaseStackedRenderableSeries.js +12 -3
  161. package/Charting/Visuals/RenderableSeries/DataLabels/BaseDataLabelProvider.d.ts +2 -0
  162. package/Charting/Visuals/RenderableSeries/DataLabels/BaseDataLabelProvider.js +5 -0
  163. package/Charting/Visuals/RenderableSeries/DataLabels/DataLabelProvider.js +6 -0
  164. package/Charting/Visuals/RenderableSeries/DataLabels/DataLabelState.d.ts +1 -0
  165. package/Charting/Visuals/RenderableSeries/DataLabels/DataLabelState.js +18 -5
  166. package/Charting/Visuals/RenderableSeries/DataLabels/NonUniformHeatmapDataLabelProvider.js +0 -1
  167. package/Charting/Visuals/RenderableSeries/DataLabels/TextDataLabelProvider.js +8 -2
  168. package/Charting/Visuals/RenderableSeries/DrawingProviders/BandSeriesDrawingProvider.d.ts +1 -0
  169. package/Charting/Visuals/RenderableSeries/DrawingProviders/BandSeriesDrawingProvider.js +35 -16
  170. package/Charting/Visuals/RenderableSeries/DrawingProviders/BaseSeriesDrawingProvider.d.ts +5 -4
  171. package/Charting/Visuals/RenderableSeries/DrawingProviders/BaseSeriesDrawingProvider.js +70 -33
  172. package/Charting/Visuals/RenderableSeries/DrawingProviders/BubbleSeriesDrawingProvider.d.ts +1 -0
  173. package/Charting/Visuals/RenderableSeries/DrawingProviders/BubbleSeriesDrawingProvider.js +30 -9
  174. package/Charting/Visuals/RenderableSeries/DrawingProviders/ColumnSeriesDrawingProvider.d.ts +1 -0
  175. package/Charting/Visuals/RenderableSeries/DrawingProviders/ColumnSeriesDrawingProvider.js +37 -16
  176. package/Charting/Visuals/RenderableSeries/DrawingProviders/HeatmapHelpers.d.ts +47 -0
  177. package/Charting/Visuals/RenderableSeries/DrawingProviders/HeatmapHelpers.js +258 -0
  178. package/Charting/Visuals/RenderableSeries/DrawingProviders/LineSeriesDrawingProvider.js +26 -2
  179. package/Charting/Visuals/RenderableSeries/DrawingProviders/MountainSeriesDrawingProvider.d.ts +1 -0
  180. package/Charting/Visuals/RenderableSeries/DrawingProviders/MountainSeriesDrawingProvider.js +34 -15
  181. package/Charting/Visuals/RenderableSeries/DrawingProviders/NonUniformHeatmapDrawingProvider.js +5 -230
  182. package/Charting/Visuals/RenderableSeries/DrawingProviders/OhlcSeriesDrawingProvider.d.ts +1 -0
  183. package/Charting/Visuals/RenderableSeries/DrawingProviders/OhlcSeriesDrawingProvider.js +62 -37
  184. package/Charting/Visuals/RenderableSeries/DrawingProviders/PointMarkerDrawingProvider.js +30 -3
  185. package/Charting/Visuals/RenderableSeries/DrawingProviders/UniformHeatmapDrawingProvider.d.ts +1 -0
  186. package/Charting/Visuals/RenderableSeries/DrawingProviders/UniformHeatmapDrawingProvider.js +4 -1
  187. package/Charting/Visuals/RenderableSeries/FastBubbleRenderableSeries.d.ts +0 -2
  188. package/Charting/Visuals/RenderableSeries/FastBubbleRenderableSeries.js +0 -4
  189. package/Charting/Visuals/RenderableSeries/FastTextRenderableSeries.d.ts +3 -0
  190. package/Charting/Visuals/RenderableSeries/FastTextRenderableSeries.js +10 -0
  191. package/Charting/Visuals/RenderableSeries/HitTest/BubbleSeriesHitTestProvider.d.ts +4 -0
  192. package/Charting/Visuals/RenderableSeries/HitTest/BubbleSeriesHitTestProvider.js +7 -0
  193. package/Charting/Visuals/RenderableSeries/HitTest/HitTestInfo.d.ts +4 -0
  194. package/Charting/Visuals/RenderableSeries/HitTest/HitTestInfo.js +9 -0
  195. package/Charting/Visuals/RenderableSeries/HoveredChangedArgs.d.ts +6 -1
  196. package/Charting/Visuals/RenderableSeries/HoveredChangedArgs.js +2 -1
  197. package/Charting/Visuals/RenderableSeries/IRenderableSeries.d.ts +1 -1
  198. package/Charting/Visuals/RenderableSeries/SelectionChangedArgs.d.ts +6 -1
  199. package/Charting/Visuals/RenderableSeries/SelectionChangedArgs.js +2 -1
  200. package/Charting/Visuals/RenderableSeries/ShaderEffect.d.ts +3 -2
  201. package/Charting/Visuals/RenderableSeries/ShaderEffect.js +29 -9
  202. package/Charting/Visuals/RenderableSeries/SplineBandRenderableSeries.js +50 -1
  203. package/Charting/Visuals/RenderableSeries/SplineLineRenderableSeries.js +13 -1
  204. package/Charting/Visuals/RenderableSeries/SplineMountainRenderableSeries.js +13 -1
  205. package/Charting/Visuals/RenderableSeries/StackedColumnCollection.js +3 -0
  206. package/Charting/Visuals/RenderableSeries/StackedMountainCollection.d.ts +0 -2
  207. package/Charting/Visuals/RenderableSeries/StackedMountainCollection.js +4 -4
  208. package/Charting/Visuals/RenderableSeries/StackedMountainRenderableSeries.d.ts +1 -0
  209. package/Charting/Visuals/RenderableSeries/StackedMountainRenderableSeries.js +8 -0
  210. package/Charting/Visuals/RenderableSeries/XyScatterRenderableSeries.d.ts +1 -2
  211. package/Charting/Visuals/RenderableSeries/XyScatterRenderableSeries.js +8 -3
  212. package/Charting/Visuals/RubberBandSvgRect/RubberBandSvgRect.d.ts +7 -1
  213. package/Charting/Visuals/RubberBandSvgRect/RubberBandSvgRect.js +38 -12
  214. package/Charting/Visuals/SciChartDefaults.d.ts +10 -0
  215. package/Charting/Visuals/SciChartDefaults.js +10 -0
  216. package/Charting/Visuals/SciChartOverview.d.ts +2 -1
  217. package/Charting/Visuals/SciChartOverview.js +28 -8
  218. package/Charting/Visuals/SciChartPieSurface/SciChartPieSurface.d.ts +16 -3
  219. package/Charting/Visuals/SciChartPieSurface/SciChartPieSurface.js +125 -60
  220. package/Charting/Visuals/SciChartSurface.d.ts +4 -41
  221. package/Charting/Visuals/SciChartSurface.js +52 -66
  222. package/Charting/Visuals/SciChartSurfaceBase.d.ts +117 -13
  223. package/Charting/Visuals/SciChartSurfaceBase.js +177 -32
  224. package/Charting/Visuals/TextureManager/CanvasTexture.d.ts +2 -1
  225. package/Charting/Visuals/TextureManager/CanvasTexture.js +37 -17
  226. package/Charting/Visuals/TextureManager/TextureManager.d.ts +2 -1
  227. package/Charting/Visuals/TextureManager/TextureManager.js +27 -7
  228. package/Charting/Visuals/createMaster.d.ts +7 -2
  229. package/Charting/Visuals/createMaster.js +140 -45
  230. package/Charting/Visuals/createSingle.d.ts +0 -2
  231. package/Charting/Visuals/createSingle.js +46 -11
  232. package/Charting/Visuals/licenseManager2D.d.ts +7 -5
  233. package/Charting/Visuals/licenseManager2D.js +105 -53
  234. package/Charting/Visuals/loader.js +3 -1
  235. package/Charting/Visuals/sciChartInitCommon.d.ts +1 -1
  236. package/Charting/Visuals/sciChartInitCommon.js +5 -1
  237. package/Charting3D/CameraController.d.ts +1 -1
  238. package/Charting3D/CameraController.js +21 -7
  239. package/Charting3D/ChartModifiers/ChartModifierBase3D.d.ts +1 -0
  240. package/Charting3D/ChartModifiers/ChartModifierBase3D.js +4 -1
  241. package/Charting3D/ChartModifiers/OrbitModifier3D.d.ts +17 -5
  242. package/Charting3D/ChartModifiers/OrbitModifier3D.js +62 -26
  243. package/Charting3D/ChartModifiers/PinchZoomModifier3D.d.ts +81 -0
  244. package/Charting3D/ChartModifiers/PinchZoomModifier3D.js +164 -0
  245. package/Charting3D/ChartModifiers/ResetCamera3DModifier.d.ts +1 -1
  246. package/Charting3D/ChartModifiers/ResetCamera3DModifier.js +1 -2
  247. package/Charting3D/ChartModifiers/TooltipModifier3D.d.ts +122 -0
  248. package/Charting3D/ChartModifiers/TooltipModifier3D.js +427 -0
  249. package/Charting3D/I3DSurfaceOptions.d.ts +10 -0
  250. package/Charting3D/I3DSurfaceOptions.js +2 -0
  251. package/Charting3D/Model/DataSeries/BaseDataSeries3D.d.ts +2 -1
  252. package/Charting3D/Model/DataSeries/BaseDataSeries3D.js +27 -6
  253. package/Charting3D/Model/DataSeries/BaseGridDataSeries3D.d.ts +1 -1
  254. package/Charting3D/Model/DataSeries/BaseGridDataSeries3D.js +2 -2
  255. package/Charting3D/Model/DataSeries/IPointMetadata3D.d.ts +7 -2
  256. package/Charting3D/Model/DataSeries/UniformGridDataSeries3D.d.ts +8 -0
  257. package/Charting3D/Model/DataSeries/UniformGridDataSeries3D.js +12 -0
  258. package/Charting3D/Model/DataSeries/XyzDataSeries3D.d.ts +2 -2
  259. package/Charting3D/Model/DataSeries/XyzDataSeries3D.js +1 -1
  260. package/Charting3D/Vector3.d.ts +5 -0
  261. package/Charting3D/Vector3.js +7 -0
  262. package/Charting3D/Visuals/Annotations/TooltipSvgAnnotation3D.d.ts +88 -0
  263. package/Charting3D/Visuals/Annotations/TooltipSvgAnnotation3D.js +291 -0
  264. package/Charting3D/Visuals/Axis/AxisBase3D.d.ts +29 -3
  265. package/Charting3D/Visuals/Axis/AxisBase3D.js +46 -18
  266. package/Charting3D/Visuals/Axis/AxisBase3DLabelStyle.js +2 -1
  267. package/Charting3D/Visuals/Axis/AxisCubeEntity.d.ts +0 -4
  268. package/Charting3D/Visuals/Axis/AxisCubeEntity.js +3 -6
  269. package/Charting3D/Visuals/Axis/IAxisDescriptor.d.ts +2 -2
  270. package/Charting3D/Visuals/Axis/IAxisDescriptor.js +2 -2
  271. package/Charting3D/Visuals/Axis/NumericAxis3D.d.ts +3 -2
  272. package/Charting3D/Visuals/Axis/NumericAxis3D.js +7 -3
  273. package/Charting3D/Visuals/Primitives/BaseSceneEntity3D.d.ts +41 -30
  274. package/Charting3D/Visuals/Primitives/BaseSceneEntity3D.js +78 -26
  275. package/Charting3D/Visuals/Primitives/CrosshairLinesSceneEntity.d.ts +47 -0
  276. package/Charting3D/Visuals/Primitives/CrosshairLinesSceneEntity.js +106 -0
  277. package/Charting3D/Visuals/Primitives/EntityIdProvider.d.ts +29 -0
  278. package/Charting3D/Visuals/Primitives/EntityIdProvider.js +28 -0
  279. package/Charting3D/Visuals/Primitives/PointLine3DSceneEntity.d.ts +51 -0
  280. package/Charting3D/Visuals/Primitives/PointLine3DSceneEntity.js +190 -0
  281. package/Charting3D/Visuals/Primitives/RenderableSeriesSceneEntity.d.ts +12 -0
  282. package/Charting3D/Visuals/Primitives/RenderableSeriesSceneEntity.js +14 -0
  283. package/Charting3D/Visuals/Primitives/ScatterPointsSceneEntity.d.ts +11 -0
  284. package/Charting3D/Visuals/Primitives/ScatterPointsSceneEntity.js +23 -2
  285. package/Charting3D/Visuals/Primitives/SurfaceMeshSceneEntity.d.ts +3 -0
  286. package/Charting3D/Visuals/Primitives/SurfaceMeshSceneEntity.js +17 -1
  287. package/Charting3D/Visuals/RenderableSeries/BaseRenderableSeries3D.d.ts +21 -1
  288. package/Charting3D/Visuals/RenderableSeries/BaseRenderableSeries3D.js +78 -12
  289. package/Charting3D/Visuals/RenderableSeries/Constants.d.ts +2 -0
  290. package/Charting3D/Visuals/RenderableSeries/Constants.js +2 -0
  291. package/Charting3D/Visuals/RenderableSeries/ESeriesType.d.ts +2 -1
  292. package/Charting3D/Visuals/RenderableSeries/ESeriesType.js +1 -0
  293. package/Charting3D/Visuals/RenderableSeries/HitTestInfo3D.d.ts +37 -0
  294. package/Charting3D/Visuals/RenderableSeries/HitTestInfo3D.js +22 -0
  295. package/Charting3D/Visuals/RenderableSeries/PointLineRenderableSeries3D.d.ts +64 -0
  296. package/Charting3D/Visuals/RenderableSeries/PointLineRenderableSeries3D.js +105 -0
  297. package/Charting3D/Visuals/RenderableSeries/SeriesInfo3D.d.ts +51 -0
  298. package/Charting3D/Visuals/RenderableSeries/SeriesInfo3D.js +32 -0
  299. package/Charting3D/Visuals/RenderableSeries/SurfaceMeshSeriesInfo3D.d.ts +15 -0
  300. package/Charting3D/Visuals/RenderableSeries/SurfaceMeshSeriesInfo3D.js +112 -0
  301. package/Charting3D/Visuals/RenderableSeries/XyzSeriesInfo3D.d.ts +20 -0
  302. package/Charting3D/Visuals/RenderableSeries/XyzSeriesInfo3D.js +60 -0
  303. package/Charting3D/Visuals/RootSceneEntity.d.ts +0 -4
  304. package/Charting3D/Visuals/RootSceneEntity.js +3 -8
  305. package/Charting3D/Visuals/SciChart3DRenderer.d.ts +1 -0
  306. package/Charting3D/Visuals/SciChart3DRenderer.js +26 -0
  307. package/Charting3D/Visuals/SciChart3DSurface.d.ts +55 -7
  308. package/Charting3D/Visuals/SciChart3DSurface.js +136 -13
  309. package/Charting3D/Visuals/ViewportManager3DBase.d.ts +4 -0
  310. package/Charting3D/Visuals/ViewportManager3DBase.js +7 -1
  311. package/Charting3D/Visuals/createMaster3d.d.ts +1 -2
  312. package/Charting3D/Visuals/createMaster3d.js +81 -14
  313. package/Charting3D/Visuals/createSingle3d.js +34 -4
  314. package/Charting3D/Visuals/licenseManager3D.js +29 -25
  315. package/Core/BuildStamp.d.ts +1 -1
  316. package/Core/BuildStamp.js +2 -2
  317. package/Core/DeletableEntity.d.ts +34 -0
  318. package/Core/DeletableEntity.js +138 -0
  319. package/Core/Globals.d.ts +11 -0
  320. package/Core/Globals.js +13 -0
  321. package/Core/Guard.d.ts +6 -0
  322. package/Core/Guard.js +10 -0
  323. package/Core/Mouse/MouseManager.d.ts +23 -0
  324. package/Core/Mouse/MouseManager.js +53 -0
  325. package/Core/Telemetry.js +4 -6
  326. package/_wasm/scichart.browser.js +1 -1
  327. package/_wasm/scichart2d.data +0 -0
  328. package/_wasm/scichart2d.js +4 -294
  329. package/_wasm/scichart2d.wasm +0 -0
  330. package/_wasm/scichart3d.data +0 -0
  331. package/_wasm/scichart3d.js +4 -294
  332. package/_wasm/scichart3d.wasm +0 -0
  333. package/index.d.ts +42 -2
  334. package/index.dev.js +68876 -0
  335. package/index.js +81 -27
  336. package/index.min.js +1 -1
  337. package/package.json +3 -4
  338. package/types/ChartModifierType.d.ts +2 -0
  339. package/types/ChartModifierType.js +2 -0
  340. package/types/DefaultRenderLayer.d.ts +9 -8
  341. package/types/DefaultRenderLayer.js +9 -8
  342. package/types/NumberArray.d.ts +1 -0
  343. package/types/NumberArray.js +12 -1
  344. package/types/SceneEntityType.d.ts +13 -5
  345. package/types/SceneEntityType.js +13 -5
  346. package/types/TSciChart.d.ts +37 -8
  347. package/types/TSciChart3D.d.ts +126 -7
  348. package/types/licensingClasses.d.ts +2 -1
  349. package/types/licensingClasses.js +1 -0
  350. package/utils/MemoryUsageHelper.d.ts +92 -0
  351. package/utils/MemoryUsageHelper.js +221 -0
  352. package/utils/array.d.ts +8 -0
  353. package/utils/array.js +58 -1
  354. package/utils/colorUtil.d.ts +7 -0
  355. package/utils/colorUtil.js +13 -1
  356. package/utils/logger.d.ts +2 -0
  357. package/utils/logger.js +11 -0
  358. package/utils/parseColor.js +19 -4
@@ -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,6 @@
1
1
  import { ISciChartPieDefinition } from "../../../Builder/buildSurface";
2
+ import { DeletableEntity } from "../../../Core/DeletableEntity";
3
+ import { EventHandler } from "../../../Core/EventHandler";
2
4
  import { IDeletable } from "../../../Core/IDeletable";
3
5
  import { ObservableArray } from "../../../Core/ObservableArray";
4
6
  import { Thickness } from "../../../Core/Thickness";
@@ -10,7 +12,7 @@ import { TTextStyle } from "../Axis/AxisCore";
10
12
  import { PieLabelProvider } from "../Axis/LabelProvider/PieLabelProvider";
11
13
  import { IEventSubscriptionItem } from "../Legend/SciChartLegendBase";
12
14
  import { SciChartPieLegend } from "../Legend/SciChartPieLegend";
13
- import { ISciChartSurfaceBase } from "../SciChartSurfaceBase";
15
+ import { ISciChartSurfaceBase, TSciChartDestination } from "../SciChartSurfaceBase";
14
16
  import { IPieSurfaceOptions } from "./IPieSurfaceOptions";
15
17
  import { IPieSegment } from "./PieSegment/IPieSegment";
16
18
  export declare enum ESizingMode {
@@ -46,7 +48,7 @@ export declare enum EPieValueMode {
46
48
  * It is possible to have more than one {@link SciChartPieSurface} on screen at the same time.
47
49
  * {@link SciChartPieSurface | SciChartPieSurfaces} scale to fit the parent DIV where they are hosted. Use CSS to position the DIV.
48
50
  */
49
- export declare class SciChartPieSurface implements ISciChartSurfaceBase {
51
+ export declare class SciChartPieSurface extends DeletableEntity implements ISciChartSurfaceBase {
50
52
  /**
51
53
  * Creates a {@link SciChartPieSurface} to occupy the div by element ID in your DOM.
52
54
  * @remarks This method is async and must be awaited
@@ -75,9 +77,17 @@ export declare class SciChartPieSurface implements ISciChartSurfaceBase {
75
77
  */
76
78
  legend: SciChartPieLegend;
77
79
  onCreatedName: string;
80
+ id: string;
81
+ /**
82
+ * An event handler which notifies its subscribers when a render operation has finished. Use this
83
+ * to time render performance, or to update elements of the chart or your UI on redraw.
84
+ */
85
+ rendered: EventHandler<void>;
78
86
  protected widthAspect: number;
79
87
  protected heightAspect: number;
80
88
  protected labelProviderProperty: PieLabelProvider;
89
+ protected isDeletedProperty: boolean;
90
+ protected destinations: TSciChartDestination[];
81
91
  private pieTypeProperty;
82
92
  private holeRadiusProperty;
83
93
  private holeRadiusSizingModeProperty;
@@ -97,6 +107,7 @@ export declare class SciChartPieSurface implements ISciChartSurfaceBase {
97
107
  private labelStyleProperty;
98
108
  private resizeSubscriptionToken;
99
109
  constructor(canvases?: TSciChartSurfaceCanvases, options?: IPieSurfaceOptions);
110
+ get isDeleted(): boolean;
100
111
  /**
101
112
  * Gets or sets a {@link LabelProvider} - a class which is responsible for formatting axis labels and cursor labels from numeric values
102
113
  */
@@ -125,6 +136,8 @@ export declare class SciChartPieSurface implements ISciChartSurfaceBase {
125
136
  * Used internally - gets the previous {@link IThemeProvider}
126
137
  */
127
138
  get previousThemeProvider(): IThemeProvider;
139
+ setDestinations(destinations: TSciChartDestination[]): void;
140
+ get otherSurfaces(): ISciChartSurfaceBase[];
128
141
  /**
129
142
  * Call invalidateElement() to trigger a redraw of the {@link SciChartPieSurface}. SciChart's rendering
130
143
  * engine will schedule a redraw a the next time the renderer is free.
@@ -137,7 +150,7 @@ export declare class SciChartPieSurface implements ISciChartSurfaceBase {
137
150
  /**
138
151
  * @inheritDoc
139
152
  */
140
- delete(isAnimationProgress?: boolean): void;
153
+ delete(): void;
141
154
  /**
142
155
  * Used Internally. Cleans up the chart internal parts, subscriptions, etc.
143
156
  */
@@ -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++) {
@@ -23,19 +38,20 @@ Object.defineProperty(exports, "__esModule", { value: true });
23
38
  exports.addEventListenerToPieSegment = exports.SciChartPieSurface = exports.EPieValueMode = exports.EPieType = exports.ESizingMode = void 0;
24
39
  var chartBuilder_1 = require("../../../Builder/chartBuilder");
25
40
  var classFactory_1 = require("../../../Builder/classFactory");
26
- var createMaster3d_1 = require("../../../Charting3D/Visuals/createMaster3d");
27
41
  var app_1 = require("../../../constants/app");
28
42
  var EasingFunctions_1 = require("../../../Core/Animations/EasingFunctions");
43
+ var DeletableEntity_1 = require("../../../Core/DeletableEntity");
29
44
  var Deleter_1 = require("../../../Core/Deleter");
45
+ var EventHandler_1 = require("../../../Core/EventHandler");
46
+ var Globals_1 = require("../../../Core/Globals");
30
47
  var ObservableArray_1 = require("../../../Core/ObservableArray");
31
48
  var Rect_1 = require("../../../Core/Rect");
32
49
  var BaseType_1 = require("../../../types/BaseType");
33
50
  var SciChartSurfaceType_1 = require("../../../types/SciChartSurfaceType");
51
+ var guid_1 = require("../../../utils/guid");
34
52
  var SciChartJSDarkTheme_1 = require("../../Themes/SciChartJSDarkTheme");
35
53
  var annotationHelpers_1 = require("../Annotations/annotationHelpers");
36
54
  var PieLabelProvider_1 = require("../Axis/LabelProvider/PieLabelProvider");
37
- var createMaster_1 = require("../createMaster");
38
- var createSingle_1 = require("../createSingle");
39
55
  var SciChartPieLegend_1 = require("../Legend/SciChartPieLegend");
40
56
  var sciChartInitCommon_1 = require("../sciChartInitCommon");
41
57
  var SciChartSurfaceBase_1 = require("../SciChartSurfaceBase");
@@ -81,79 +97,88 @@ var EPieValueMode;
81
97
  * It is possible to have more than one {@link SciChartPieSurface} on screen at the same time.
82
98
  * {@link SciChartPieSurface | SciChartPieSurfaces} scale to fit the parent DIV where they are hosted. Use CSS to position the DIV.
83
99
  */
84
- var SciChartPieSurface = /** @class */ (function () {
100
+ var SciChartPieSurface = /** @class */ (function (_super) {
101
+ __extends(SciChartPieSurface, _super);
85
102
  function SciChartPieSurface(canvases, options) {
86
103
  if (canvases === void 0) { canvases = {}; }
87
104
  var _this = this;
88
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
89
- this.animate = true;
105
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
106
+ _this = _super.call(this) || this;
107
+ _this.animate = true;
90
108
  /* The number of frames for the animation. Default 30. A frame will be trigged every 20ms. */
91
- this.animationFrames = 30;
92
- this.pieTypeProperty = EPieType.Pie;
93
- this.holeRadiusProperty = 0.5;
94
- this.holeRadiusSizingModeProperty = ESizingMode.Relative;
95
- this.seriesSpacingProperty = 0;
96
- this.labelRadiusProperty = 1;
97
- this.titleDivs = [];
98
- this.sweepAnimationDone = false;
99
- this.suspendUpdate = false;
100
- this.themeProviderProperty = new SciChartJSDarkTheme_1.SciChartJSDarkTheme();
101
- this.previousThemeProviderProperty = new SciChartJSDarkTheme_1.SciChartJSDarkTheme();
102
- this.deletables = [];
103
- this.valueModeProperty = EPieValueMode.Percentage;
104
- this.labelStyleProperty = {
109
+ _this.animationFrames = 30;
110
+ /**
111
+ * An event handler which notifies its subscribers when a render operation has finished. Use this
112
+ * to time render performance, or to update elements of the chart or your UI on redraw.
113
+ */
114
+ _this.rendered = new EventHandler_1.EventHandler();
115
+ _this.pieTypeProperty = EPieType.Pie;
116
+ _this.holeRadiusProperty = 0.5;
117
+ _this.holeRadiusSizingModeProperty = ESizingMode.Relative;
118
+ _this.seriesSpacingProperty = 0;
119
+ _this.labelRadiusProperty = 1;
120
+ _this.titleDivs = [];
121
+ _this.sweepAnimationDone = false;
122
+ _this.suspendUpdate = false;
123
+ _this.themeProviderProperty = new SciChartJSDarkTheme_1.SciChartJSDarkTheme();
124
+ _this.previousThemeProviderProperty = new SciChartJSDarkTheme_1.SciChartJSDarkTheme();
125
+ _this.deletables = [];
126
+ _this.valueModeProperty = EPieValueMode.Percentage;
127
+ _this.labelStyleProperty = {
105
128
  fontSize: 14,
106
129
  fontFamily: "Arial",
107
130
  color: "#1e323d",
108
131
  fontWeight: "bold"
109
132
  };
110
- this.domChartRoot = canvases.domChartRoot;
111
- this.domCanvas2D = canvases.domCanvas2D;
112
- this.domSvgContainer = canvases.domSvgContainer;
113
- this.domSvgAdornerLayer = canvases.domSvgAdornerLayer;
114
- this.domDivContainer = canvases.domDivContainer;
115
- var width = this.domCanvas2D.width;
116
- var height = this.domCanvas2D.height;
117
- this.viewRect = new Rect_1.Rect(0, 0, width, height);
118
- this.resizeSubscriptionToken = sciChartInitCommon_1.default.subscribeToResize(canvases.domChartRoot, canvases.aspect, this);
119
- this.drawChart = this.drawChart.bind(this);
120
- this.deleteInternals = this.deleteInternals.bind(this);
121
- this.invalidateElement = this.invalidateElement.bind(this);
122
- this.detachPieSegment = this.detachPieSegment.bind(this);
123
- this.attachPieSegment = this.attachPieSegment.bind(this);
124
- this.pieSegments = new ObservableArray_1.ObservableArray();
125
- this.pieSegments.collectionChanged.subscribe(function (args) {
133
+ _this.id = (_a = options === null || options === void 0 ? void 0 : options.id) !== null && _a !== void 0 ? _a : (0, guid_1.generateGuid)();
134
+ _this.domChartRoot = canvases.domChartRoot;
135
+ _this.domCanvas2D = canvases.domCanvas2D;
136
+ _this.domSvgContainer = canvases.domSvgContainer;
137
+ _this.domSvgAdornerLayer = canvases.domSvgAdornerLayer;
138
+ _this.domDivContainer = canvases.domDivContainer;
139
+ var width = _this.domCanvas2D.width;
140
+ var height = _this.domCanvas2D.height;
141
+ _this.viewRect = new Rect_1.Rect(0, 0, width, height);
142
+ _this.resizeSubscriptionToken = sciChartInitCommon_1.default.subscribeToResize(canvases.domChartRoot, canvases.aspect, _this);
143
+ _this.drawChart = _this.drawChart.bind(_this);
144
+ _this.deleteInternals = _this.deleteInternals.bind(_this);
145
+ _this.invalidateElement = _this.invalidateElement.bind(_this);
146
+ _this.detachPieSegment = _this.detachPieSegment.bind(_this);
147
+ _this.attachPieSegment = _this.attachPieSegment.bind(_this);
148
+ _this.pieSegments = new ObservableArray_1.ObservableArray();
149
+ _this.pieSegments.collectionChanged.subscribe(function (args) {
126
150
  var _a, _b;
127
151
  (_a = args.getOldItems()) === null || _a === void 0 ? void 0 : _a.forEach(_this.detachPieSegment);
128
152
  (_b = args.getNewItems()) === null || _b === void 0 ? void 0 : _b.forEach(_this.attachPieSegment);
129
153
  // Do this only after all changes have been processed
130
154
  _this.invalidateElement();
131
155
  });
132
- this.applySciChartBackground(SciChartSurfaceBase_1.SciChartSurfaceBase.DEFAULT_THEME.sciChartBackground);
133
- this.legend = new SciChartPieLegend_1.SciChartPieLegend();
134
- this.legend.setRootDiv(this.domDivContainer);
135
- this.legend.setPieSegmentArray(this.pieSegments.asArray());
136
- this.legend.setInvalidateParentSurface(this.invalidateElement);
137
- this.legend.setParentSurface(this);
138
- this.heightAspect = (_a = options === null || options === void 0 ? void 0 : options.heightAspect) !== null && _a !== void 0 ? _a : 0;
139
- this.widthAspect = (_b = options === null || options === void 0 ? void 0 : options.widthAspect) !== null && _b !== void 0 ? _b : 0;
140
- this.pieTypeProperty = (_c = options === null || options === void 0 ? void 0 : options.pieType) !== null && _c !== void 0 ? _c : this.pieType;
141
- this.holeRadiusProperty = (_d = options === null || options === void 0 ? void 0 : options.holeRadius) !== null && _d !== void 0 ? _d : this.holeRadius;
142
- this.animate = (_e = options === null || options === void 0 ? void 0 : options.animate) !== null && _e !== void 0 ? _e : this.animate;
143
- this.holeRadiusSizingModeProperty = (_f = options === null || options === void 0 ? void 0 : options.holeRadiusSizingMode) !== null && _f !== void 0 ? _f : this.holeRadiusSizingModeProperty;
144
- this.seriesSpacingProperty = (_g = options === null || options === void 0 ? void 0 : options.seriesSpacing) !== null && _g !== void 0 ? _g : this.seriesSpacingProperty;
145
- this.legend.showLegend = (_h = options === null || options === void 0 ? void 0 : options.showLegend) !== null && _h !== void 0 ? _h : this.legend.showLegend;
146
- this.legend.animate = (_j = options === null || options === void 0 ? void 0 : options.animateLegend) !== null && _j !== void 0 ? _j : this.legend.animate;
147
- this.legend.showCheckboxes = (_k = options === null || options === void 0 ? void 0 : options.showLegendCheckBoxes) !== null && _k !== void 0 ? _k : this.legend.showCheckboxes;
148
- this.legend.showSeriesMarkers = (_l = options === null || options === void 0 ? void 0 : options.showLegendSeriesMarkers) !== null && _l !== void 0 ? _l : this.legend.showSeriesMarkers;
149
- this.paddingProperty = (_m = options === null || options === void 0 ? void 0 : options.padding) !== null && _m !== void 0 ? _m : this.paddingProperty;
156
+ _this.applySciChartBackground(SciChartSurfaceBase_1.SciChartSurfaceBase.DEFAULT_THEME.sciChartBackground);
157
+ _this.legend = new SciChartPieLegend_1.SciChartPieLegend();
158
+ _this.legend.setRootDiv(_this.domDivContainer);
159
+ _this.legend.setPieSegmentArray(_this.pieSegments.asArray());
160
+ _this.legend.setInvalidateParentSurface(_this.invalidateElement);
161
+ _this.legend.setParentSurface(_this);
162
+ _this.heightAspect = (_b = options === null || options === void 0 ? void 0 : options.heightAspect) !== null && _b !== void 0 ? _b : 0;
163
+ _this.widthAspect = (_c = options === null || options === void 0 ? void 0 : options.widthAspect) !== null && _c !== void 0 ? _c : 0;
164
+ _this.pieTypeProperty = (_d = options === null || options === void 0 ? void 0 : options.pieType) !== null && _d !== void 0 ? _d : _this.pieType;
165
+ _this.holeRadiusProperty = (_e = options === null || options === void 0 ? void 0 : options.holeRadius) !== null && _e !== void 0 ? _e : _this.holeRadius;
166
+ _this.animate = (_f = options === null || options === void 0 ? void 0 : options.animate) !== null && _f !== void 0 ? _f : _this.animate;
167
+ _this.holeRadiusSizingModeProperty = (_g = options === null || options === void 0 ? void 0 : options.holeRadiusSizingMode) !== null && _g !== void 0 ? _g : _this.holeRadiusSizingModeProperty;
168
+ _this.seriesSpacingProperty = (_h = options === null || options === void 0 ? void 0 : options.seriesSpacing) !== null && _h !== void 0 ? _h : _this.seriesSpacingProperty;
169
+ _this.legend.showLegend = (_j = options === null || options === void 0 ? void 0 : options.showLegend) !== null && _j !== void 0 ? _j : _this.legend.showLegend;
170
+ _this.legend.animate = (_k = options === null || options === void 0 ? void 0 : options.animateLegend) !== null && _k !== void 0 ? _k : _this.legend.animate;
171
+ _this.legend.showCheckboxes = (_l = options === null || options === void 0 ? void 0 : options.showLegendCheckBoxes) !== null && _l !== void 0 ? _l : _this.legend.showCheckboxes;
172
+ _this.legend.showSeriesMarkers = (_m = options === null || options === void 0 ? void 0 : options.showLegendSeriesMarkers) !== null && _m !== void 0 ? _m : _this.legend.showSeriesMarkers;
173
+ _this.paddingProperty = (_o = options === null || options === void 0 ? void 0 : options.padding) !== null && _o !== void 0 ? _o : _this.paddingProperty;
150
174
  if (options === null || options === void 0 ? void 0 : options.labelProvider) {
151
175
  if (!("getSegmentText" in (options === null || options === void 0 ? void 0 : options.labelProvider))) {
152
176
  options.labelProvider = (0, classFactory_1.createType)(BaseType_1.EBaseType.LabelProvider, options.labelProvider.type, undefined, options.labelProvider.options);
153
177
  }
154
178
  }
155
- this.labelProvider = (_o = options === null || options === void 0 ? void 0 : options.labelProvider) !== null && _o !== void 0 ? _o : new PieLabelProvider_1.PieLabelProvider();
156
- this.valueModeProperty = (_p = options === null || options === void 0 ? void 0 : options.valueMode) !== null && _p !== void 0 ? _p : this.valueModeProperty;
179
+ _this.labelProvider = (_p = options === null || options === void 0 ? void 0 : options.labelProvider) !== null && _p !== void 0 ? _p : new PieLabelProvider_1.PieLabelProvider();
180
+ _this.valueModeProperty = (_q = options === null || options === void 0 ? void 0 : options.valueMode) !== null && _q !== void 0 ? _q : _this.valueModeProperty;
181
+ return _this;
157
182
  }
158
183
  /**
159
184
  * Creates a {@link SciChartPieSurface} to occupy the div by element ID in your DOM.
@@ -165,17 +190,32 @@ var SciChartPieSurface = /** @class */ (function () {
165
190
  SciChartPieSurface.create = function (divElement, options) {
166
191
  var _a, _b;
167
192
  (0, chartBuilder_1.ensureRegistrations)();
168
- var canvases = sciChartInitCommon_1.default.initCanvas(divElement, (_a = options === null || options === void 0 ? void 0 : options.widthAspect) !== null && _a !== void 0 ? _a : 0, (_b = options === null || options === void 0 ? void 0 : options.heightAspect) !== null && _b !== void 0 ? _b : 0, sciChartInitCommon_1.default.ECanvasType.svg);
193
+ var canvases = sciChartInitCommon_1.default.initCanvas(divElement, (_a = options === null || options === void 0 ? void 0 : options.widthAspect) !== null && _a !== void 0 ? _a : 0, (_b = options === null || options === void 0 ? void 0 : options.heightAspect) !== null && _b !== void 0 ? _b : 0, sciChartInitCommon_1.default.ECanvasType.svg, undefined, options === null || options === void 0 ? void 0 : options.touchAction);
169
194
  return new Promise(function (resolve) {
170
- var conflictingRenderContextDestinations = __spreadArray(__spreadArray(__spreadArray([], createMaster_1.sciChartDestinations, true), createMaster3d_1.sciChartDestinations, true), createSingle_1.sciChartSingleDestinations, true).filter(function (destination) { return destination.sciChartSurface.domChartRoot.id === canvases.domChartRoot.id; });
195
+ var _a, _b, _c;
196
+ var conflictingRenderContextDestinations = __spreadArray(__spreadArray(__spreadArray(__spreadArray([], Globals_1.sciChartDestinations, true), Globals_1.sciChart3DDestinations, true), Globals_1.sciChartSingleDestinations, true), Globals_1.sciChartPieDestinations, true).filter(function (destination) { return destination.sciChartSurface.domChartRoot.id === canvases.domChartRoot.id; });
171
197
  conflictingRenderContextDestinations.forEach(function (destination) { return destination.sciChartSurface.delete(); });
172
198
  options = SciChartSurfaceBase_1.SciChartSurfaceBase.resolveOptions(options);
173
199
  var scps = new SciChartPieSurface(canvases, options);
174
200
  scps.applyTheme(options === null || options === void 0 ? void 0 : options.theme);
201
+ Globals_1.sciChartPieDestinations.push({
202
+ canvasElementId: (_a = canvases.domCanvas2D) === null || _a === void 0 ? void 0 : _a.id,
203
+ sciChartSurface: scps,
204
+ width: (_b = canvases.domCanvas2D) === null || _b === void 0 ? void 0 : _b.width,
205
+ height: (_c = canvases.domCanvas2D) === null || _c === void 0 ? void 0 : _c.height
206
+ });
207
+ scps.setDestinations(Globals_1.sciChartPieDestinations);
175
208
  // setTimeout is used to make function async like createSciChartSurface, to have a consistent API
176
209
  setTimeout(function () { return resolve(scps); }, 0);
177
210
  });
178
211
  };
212
+ Object.defineProperty(SciChartPieSurface.prototype, "isDeleted", {
213
+ get: function () {
214
+ return this.isDeletedProperty;
215
+ },
216
+ enumerable: false,
217
+ configurable: true
218
+ });
179
219
  Object.defineProperty(SciChartPieSurface.prototype, "labelProvider", {
180
220
  /**
181
221
  * Gets or sets a {@link LabelProvider} - a class which is responsible for formatting axis labels and cursor labels from numeric values
@@ -244,6 +284,20 @@ var SciChartPieSurface = /** @class */ (function () {
244
284
  enumerable: false,
245
285
  configurable: true
246
286
  });
287
+ SciChartPieSurface.prototype.setDestinations = function (destinations) {
288
+ this.destinations = destinations;
289
+ };
290
+ Object.defineProperty(SciChartPieSurface.prototype, "otherSurfaces", {
291
+ get: function () {
292
+ var _this = this;
293
+ if (!this.destinations) {
294
+ return [];
295
+ }
296
+ return this.destinations.map(function (el) { return el.sciChartSurface; }).filter(function (el2) { return el2 !== _this; });
297
+ },
298
+ enumerable: false,
299
+ configurable: true
300
+ });
247
301
  /**
248
302
  * Call invalidateElement() to trigger a redraw of the {@link SciChartPieSurface}. SciChart's rendering
249
303
  * engine will schedule a redraw a the next time the renderer is free.
@@ -269,9 +323,19 @@ var SciChartPieSurface = /** @class */ (function () {
269
323
  /**
270
324
  * @inheritDoc
271
325
  */
272
- SciChartPieSurface.prototype.delete = function (isAnimationProgress) {
326
+ SciChartPieSurface.prototype.delete = function () {
327
+ var _this = this;
328
+ var _a;
273
329
  this.deleteInternals();
330
+ this.legend = (0, Deleter_1.deleteSafe)(this.legend);
331
+ this.labelProvider = (0, Deleter_1.deleteSafe)(this.labelProvider);
274
332
  this.resizeSubscriptionToken = (0, Deleter_1.deleteSafe)(this.resizeSubscriptionToken);
333
+ // TODO probably this should be moved outside for Proxy === this comparison issue exists
334
+ var currentSurfaceIndex = (_a = this.destinations) === null || _a === void 0 ? void 0 : _a.findIndex(function (dest) { return dest.sciChartSurface.id === _this.id; });
335
+ if (currentSurfaceIndex >= 0) {
336
+ this.destinations.splice(currentSurfaceIndex, 1);
337
+ }
338
+ this.isDeletedProperty = true;
275
339
  };
276
340
  /**
277
341
  * Used Internally. Cleans up the chart internal parts, subscriptions, etc.
@@ -632,6 +696,7 @@ var SciChartPieSurface = /** @class */ (function () {
632
696
  }
633
697
  });
634
698
  }
699
+ this.rendered.raiseEvent();
635
700
  };
636
701
  /**
637
702
  * @description Draws pie chart itself
@@ -801,7 +866,7 @@ var SciChartPieSurface = /** @class */ (function () {
801
866
  this.domCanvas2D.style.background = htmlColor;
802
867
  };
803
868
  return SciChartPieSurface;
804
- }());
869
+ }(DeletableEntity_1.DeletableEntity));
805
870
  exports.SciChartPieSurface = SciChartPieSurface;
806
871
  /**
807
872
  * @ignore
@@ -13,14 +13,11 @@ import { TSciChart as TWasmContext } from "../../types/TSciChart";
13
13
  import { TSciChartSurfaceCanvases } from "../../types/TSciChartSurfaceCanvases";
14
14
  import { EZoomState } from "../../types/ZoomState";
15
15
  import { IChartModifierBase } from "../ChartModifiers/ChartModifierBase";
16
- import { RenderContext2D } from "../Drawing/RenderContext2D";
17
16
  import { RenderSurface } from "../Drawing/RenderSurface";
18
17
  import { WebGlRenderContext2D } from "../Drawing/WebGlRenderContext2D";
19
18
  import { LayoutManager } from "../LayoutManager/LayoutManager";
20
19
  import { IThemeProvider } from "../Themes/IThemeProvider";
21
- import { AdornerLayer } from "./Annotations/AdornerLayer";
22
20
  import { ECoordinateMode } from "./Annotations/AnnotationBase";
23
- import { IAnnotation } from "./Annotations/IAnnotation";
24
21
  import { AxisBase2D } from "./Axis/AxisBase2D";
25
22
  import { I2DSubSurfaceOptions, I2DSurfaceOptions } from "./I2DSurfaceOptions";
26
23
  import { IDataLabelLayoutManager } from "./RenderableSeries/DataLabels/DataLabelLayoutManager";
@@ -67,6 +64,7 @@ export declare class SciChartSurface extends SciChartSurfaceBase {
67
64
  * @param options Optional - Optional parameters for chart creation. See {@link I2DSurfaceOptions} for more details
68
65
  */
69
66
  static create(divElement: string | HTMLDivElement, options?: I2DSurfaceOptions): Promise<TWebAssemblyChart>;
67
+ static disposeSharedWasmContext(): void;
70
68
  /**
71
69
  * Performs a similar operation to {@link SciChartSurface.create} but uses a dedicated WebAssembly context for this chart, and draws directly to the target canvas
72
70
  * This provides better performance for a single chart, but there is a limit (16) to how many you can have on one page.
@@ -101,7 +99,7 @@ export declare class SciChartSurface extends SciChartSurfaceBase {
101
99
  static useWasmLocal(): void;
102
100
  static isSubSurface(surface: SciChartSurface): surface is SciChartSubSurface;
103
101
  private static createTest;
104
- readonly renderSurface: RenderSurface;
102
+ renderSurface: RenderSurface;
105
103
  /**
106
104
  * @summary Gets the collection of {@link IRenderableSeries} - the chart types or series on this {@link SciChartSurface}
107
105
  * @description A {@link SciChartSurface} can have zero to many {@link IRenderableSeries | RenderableSeries}.
@@ -116,32 +114,6 @@ export declare class SciChartSurface extends SciChartSurfaceBase {
116
114
  * {@link AxisCore.autoRange} or call {@link SciChartSurface.zoomExtents}
117
115
  */
118
116
  readonly renderableSeries: ObservableArray<IRenderableSeries>;
119
- /**
120
- * @summary Gets the collection of {@link IAnnotation} - annotations, markers or shapes drawn over the top of a {@link SciChartSurface}
121
- * @description A {@link SciChartSurface} can have zero to many {@link IAnnotation | Annotations}.
122
- *
123
- * The Annotations are drawn using our WebGL / WebAssembly rendering engine, but some use SVG for maximum configurability.
124
- * See derived types of {@link IAnnotation} such as {@link BoxAnnotation}, {@link LineAnnotation} etc...
125
- *
126
- * Use this collection to add and remove Annotations to the chart.
127
- * @remarks
128
- * Adding an Annotation to the chart causes it to automatically redraw. Note that annotations do not pariticpate in autoranging,
129
- * meaning a chart will zoom to fit data and chart series but not annotations
130
- */
131
- readonly annotations: ObservableArray<IAnnotation>;
132
- /**
133
- * @summary Gets the collection of {@link IAnnotation} - modifier annotations, markers or shapes drawn over the top of a {@link SciChartSurface}
134
- * @description A {@link SciChartSurface} can have zero to many {@link IAnnotation | Annotations}.
135
- *
136
- * The Annotations are drawn using our WebGL / WebAssembly rendering engine, but some use SVG for maximum configurability.
137
- * See derived types of {@link IAnnotation} such as {@link BoxAnnotation}, {@link LineAnnotation} etc...
138
- *
139
- * Use this collection to add and remove Modifier Annotations to the chart.
140
- * @remarks
141
- * Adding an Modifier Annotation to the chart causes it to automatically redraw. Note that annotations do not pariticpate in autoranging,
142
- * meaning a chart will zoom to fit data and chart series but not annotations
143
- */
144
- readonly modifierAnnotations: ObservableArray<IAnnotation>;
145
117
  /**
146
118
  * @summary Gets the collection of {@link AxisBase2D} - the X Axis on a {@link SciChartSurface}
147
119
  * @description A {@link SciChartSurface} can have one to many {@link AxisBase2D | XAxes}.
@@ -187,12 +159,6 @@ export declare class SciChartSurface extends SciChartSurfaceBase {
187
159
  /**
188
160
  * Used internally - the {@link RenderContext2D} for drawing
189
161
  */
190
- renderContext2D: RenderContext2D;
191
- /**
192
- * An event handler which notifies its subscribers when a render operation has finished. Use this
193
- * to time render performance, or to update elements of the chart or your UI on redraw.
194
- */
195
- rendered: EventHandler<void>;
196
162
  /**
197
163
  * An event handler which notifies its subscribers when a render operation starts. Use this
198
164
  * to update elements of the chart for the current render. Any updates made here will not trigger a subsequent render.
@@ -201,7 +167,6 @@ export declare class SciChartSurface extends SciChartSurfaceBase {
201
167
  layersOffset: number;
202
168
  stepBetweenLayers: number;
203
169
  readonly isSubSurface: boolean;
204
- readonly adornerLayer: AdornerLayer;
205
170
  /**
206
171
  * Sets / Gets the clipping mode for SVG Annotations
207
172
  */
@@ -226,7 +191,7 @@ export declare class SciChartSurface extends SciChartSurfaceBase {
226
191
  protected chartTitleRendererProperty: IChartTitleRenderer;
227
192
  protected paddingProperty: Thickness;
228
193
  protected currentWebGlRenderContextProperty: WebGlRenderContext2D;
229
- private readonly sciChartRenderer;
194
+ private sciChartRenderer;
230
195
  private layoutManagerProperty;
231
196
  private dataLabelLayoutManagerProperty;
232
197
  private zoomStateProperty;
@@ -303,7 +268,7 @@ export declare class SciChartSurface extends SciChartSurfaceBase {
303
268
  /**
304
269
  * Gets or sets the title text style and placement for the SciChartSurface as {@link TChartTitleStyle}
305
270
  */
306
- get titleStyle(): Readonly<Required<TChartTitleStyle>>;
271
+ get titleStyle(): TChartTitleStyle;
307
272
  /**
308
273
  * Gets or sets the title text style and placement for the SciChartSurface as {@link TChartTitleStyle}
309
274
  * @remarks if updating, should be set as an object (or partial object) of type {@link TChartTitleStyle},
@@ -544,8 +509,6 @@ export declare class SciChartSurface extends SciChartSurfaceBase {
544
509
  private attachSeries;
545
510
  private detachAxis;
546
511
  private attachAxis;
547
- private detachAnnotation;
548
- private attachAnnotation;
549
512
  protected onAttachSubSurface(subSurface: SciChartSubSurface): void;
550
513
  protected onDetachSubSurface(subSurface: SciChartSubSurface): void;
551
514
  /**