scichart 3.1.348 → 3.2.0-beta

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (314) hide show
  1. package/Charting/ChartModifiers/ChartModifierBase.d.ts +15 -1
  2. package/Charting/ChartModifiers/ChartModifierBase.js +65 -7
  3. package/Charting/ChartModifiers/CursorModifier.js +13 -1
  4. package/Charting/ChartModifiers/LegendModifier.d.ts +1 -1
  5. package/Charting/ChartModifiers/LegendModifier.js +8 -6
  6. package/Charting/ChartModifiers/PinchZoomModifier.d.ts +38 -8
  7. package/Charting/ChartModifiers/PinchZoomModifier.js +103 -40
  8. package/Charting/ChartModifiers/RolloverModifier.js +10 -3
  9. package/Charting/ChartModifiers/RubberBandXyZoomModifier.d.ts +1 -1
  10. package/Charting/ChartModifiers/SeriesSelectionModifier.js +32 -24
  11. package/Charting/ChartModifiers/ZoomPanModifier.d.ts +13 -38
  12. package/Charting/ChartModifiers/ZoomPanModifier.js +54 -99
  13. package/Charting/Drawing/BaseCache.d.ts +2 -1
  14. package/Charting/Drawing/BaseCache.js +40 -7
  15. package/Charting/Drawing/RenderSurface.d.ts +1 -0
  16. package/Charting/Drawing/RenderSurface.js +5 -1
  17. package/Charting/Drawing/SolidBrushCache.d.ts +2 -1
  18. package/Charting/Drawing/SolidBrushCache.js +23 -3
  19. package/Charting/Drawing/WebGlBrush.d.ts +2 -1
  20. package/Charting/Drawing/WebGlBrush.js +22 -3
  21. package/Charting/Drawing/WebGlPen.d.ts +2 -1
  22. package/Charting/Drawing/WebGlPen.js +23 -4
  23. package/Charting/Drawing/WebGlRenderContext2D.d.ts +4 -3
  24. package/Charting/Drawing/WebGlRenderContext2D.js +26 -7
  25. package/Charting/Model/BaseDataSeries.d.ts +67 -2
  26. package/Charting/Model/BaseDataSeries.js +193 -42
  27. package/Charting/Model/BaseHeatmapDataSeries.js +1 -1
  28. package/Charting/Model/ChartData/SeriesInfo.d.ts +16 -0
  29. package/Charting/Model/ChartData/SeriesInfo.js +7 -0
  30. package/Charting/Model/ChartData/XyzSeriesInfo.d.ts +8 -0
  31. package/Charting/Model/ChartData/XyzSeriesInfo.js +36 -0
  32. package/Charting/Model/DoubleVectorProvider.d.ts +19 -0
  33. package/Charting/Model/DoubleVectorProvider.js +95 -0
  34. package/Charting/Model/HlcDataSeries.d.ts +3 -0
  35. package/Charting/Model/HlcDataSeries.js +44 -15
  36. package/Charting/Model/IDataSeries.d.ts +23 -0
  37. package/Charting/Model/NonUniformHeatmapDataSeries.js +2 -0
  38. package/Charting/Model/OhlcDataSeries.d.ts +3 -0
  39. package/Charting/Model/OhlcDataSeries.js +56 -24
  40. package/Charting/Model/PointSeries/BasePointSeriesResampled.d.ts +4 -5
  41. package/Charting/Model/PointSeries/BasePointSeriesResampled.js +29 -21
  42. package/Charting/Model/PointSeries/BasePointSeriesWrapped.d.ts +2 -0
  43. package/Charting/Model/PointSeries/BasePointSeriesWrapped.js +2 -0
  44. package/Charting/Model/PointSeries/IPointSeries.d.ts +2 -1
  45. package/Charting/Model/PointSeries/OhlcPointSeriesResampled.js +1 -1
  46. package/Charting/Model/PointSeries/XyPointSeriesWrapped.d.ts +2 -1
  47. package/Charting/Model/PointSeries/XyPointSeriesWrapped.js +2 -2
  48. package/Charting/Model/PointSeries/XyyPointSeriesResampled.js +1 -1
  49. package/Charting/Model/UniformHeatmapDataSeries.d.ts +31 -11
  50. package/Charting/Model/UniformHeatmapDataSeries.js +72 -4
  51. package/Charting/Model/XyDataSeries.d.ts +0 -8
  52. package/Charting/Model/XyDataSeries.js +21 -5
  53. package/Charting/Model/XyTextDataSeries.d.ts +2 -0
  54. package/Charting/Model/XyTextDataSeries.js +35 -4
  55. package/Charting/Model/XyyDataSeries.d.ts +2 -0
  56. package/Charting/Model/XyyDataSeries.js +35 -10
  57. package/Charting/Model/XyzDataSeries.d.ts +3 -0
  58. package/Charting/Model/XyzDataSeries.js +36 -10
  59. package/Charting/Numerics/CoordinateCalculators/CategoryCoordinateCalculator.d.ts +3 -5
  60. package/Charting/Numerics/CoordinateCalculators/CategoryCoordinateCalculator.js +5 -7
  61. package/Charting/Numerics/CoordinateCalculators/CoordinateCalculatorBase.d.ts +2 -1
  62. package/Charting/Numerics/CoordinateCalculators/CoordinateCalculatorBase.js +29 -9
  63. package/Charting/Numerics/CoordinateCalculators/FlippedCategoryCoordinateCalculator.d.ts +3 -5
  64. package/Charting/Numerics/CoordinateCalculators/FlippedCategoryCoordinateCalculator.js +5 -7
  65. package/Charting/Numerics/Resamplers/ExtremeResamplerHelper.d.ts +14 -10
  66. package/Charting/Numerics/Resamplers/ExtremeResamplerHelper.js +105 -69
  67. package/Charting/Numerics/Resamplers/ResamplingParams.d.ts +4 -2
  68. package/Charting/Numerics/Resamplers/ResamplingParams.js +12 -7
  69. package/Charting/Numerics/TickCoordinateProviders/TickCoordinatesProvider.d.ts +5 -0
  70. package/Charting/Numerics/TickCoordinateProviders/TickCoordinatesProvider.js +7 -0
  71. package/Charting/Numerics/TickProviders/NumericTickProvider.js +3 -4
  72. package/Charting/Numerics/TickProviders/TickProvider.d.ts +5 -0
  73. package/Charting/Numerics/TickProviders/TickProvider.js +7 -0
  74. package/Charting/Services/SciChartRenderer.js +15 -5
  75. package/Charting/Services/TitleRenderer.d.ts +2 -1
  76. package/Charting/Services/TitleRenderer.js +35 -14
  77. package/Charting/Visuals/Annotations/AdornerLayer.d.ts +1 -1
  78. package/Charting/Visuals/Annotations/AnnotationBase.d.ts +6 -6
  79. package/Charting/Visuals/Annotations/AnnotationBase.js +81 -61
  80. package/Charting/Visuals/Annotations/CursorTooltipSvgAnnotation.js +8 -0
  81. package/Charting/Visuals/Annotations/IAnnotation.d.ts +9 -4
  82. package/Charting/Visuals/Annotations/IAnnotation.js +6 -0
  83. package/Charting/Visuals/Annotations/LineAnnotation.js +3 -1
  84. package/Charting/Visuals/Annotations/RenderContextAnnotationBase.d.ts +5 -0
  85. package/Charting/Visuals/Annotations/RenderContextAnnotationBase.js +16 -0
  86. package/Charting/Visuals/Annotations/RolloverTooltipSvgAnnotation.js +6 -0
  87. package/Charting/Visuals/Annotations/constants.d.ts +1 -0
  88. package/Charting/Visuals/Annotations/constants.js +1 -0
  89. package/Charting/Visuals/Axis/AxisBase2D.d.ts +20 -5
  90. package/Charting/Visuals/Axis/AxisBase2D.js +46 -10
  91. package/Charting/Visuals/Axis/AxisCore.d.ts +4 -1
  92. package/Charting/Visuals/Axis/AxisCore.js +100 -54
  93. package/Charting/Visuals/Axis/AxisRenderer.d.ts +2 -1
  94. package/Charting/Visuals/Axis/AxisRenderer.js +40 -16
  95. package/Charting/Visuals/Axis/AxisTitleRenderer.d.ts +1 -0
  96. package/Charting/Visuals/Axis/AxisTitleRenderer.js +4 -0
  97. package/Charting/Visuals/Axis/CategoryAxisBase.js +4 -4
  98. package/Charting/Visuals/Axis/DeltaCalculator/DateTimeDeltaCalculator.js +14 -9
  99. package/Charting/Visuals/Axis/DeltaCalculator/DeltaCalculator.d.ts +5 -0
  100. package/Charting/Visuals/Axis/DeltaCalculator/DeltaCalculator.js +7 -0
  101. package/Charting/Visuals/Axis/LabelProvider/LabelCache.d.ts +2 -2
  102. package/Charting/Visuals/Axis/LabelProvider/LabelCache.js +8 -1
  103. package/Charting/Visuals/Axis/LabelProvider/LabelProvider.d.ts +7 -1
  104. package/Charting/Visuals/Axis/LabelProvider/LabelProvider.js +34 -8
  105. package/Charting/Visuals/Axis/LabelProvider/LabelProviderBase2D.d.ts +4 -2
  106. package/Charting/Visuals/Axis/LabelProvider/LabelProviderBase2D.js +8 -2
  107. package/Charting/Visuals/Axis/LabelProvider/PieLabelProvider.d.ts +1 -0
  108. package/Charting/Visuals/Axis/LabelProvider/PieLabelProvider.js +1 -0
  109. package/Charting/Visuals/HeatmapLegend.d.ts +3 -2
  110. package/Charting/Visuals/HeatmapLegend.js +33 -12
  111. package/Charting/Visuals/Helpers/NativeObject.d.ts +8 -5
  112. package/Charting/Visuals/Helpers/NativeObject.js +42 -21
  113. package/Charting/Visuals/Helpers/drawLabel.js +3 -1
  114. package/Charting/Visuals/I2DSurfaceOptions.d.ts +0 -15
  115. package/Charting/Visuals/Legend/SciChartLegendBase.d.ts +3 -1
  116. package/Charting/Visuals/Legend/SciChartLegendBase.js +35 -14
  117. package/Charting/Visuals/Legend/SciChartPieLegend.js +1 -1
  118. package/Charting/Visuals/PointMarkers/BasePointMarker.d.ts +13 -1
  119. package/Charting/Visuals/PointMarkers/BasePointMarker.js +72 -19
  120. package/Charting/Visuals/PointMarkers/Constants.d.ts +2 -1
  121. package/Charting/Visuals/PointMarkers/Constants.js +1 -0
  122. package/Charting/Visuals/PointMarkers/IPointMarker.d.ts +2 -0
  123. package/Charting/Visuals/RenderableSeries/Animations/SeriesAnimation.js +4 -1
  124. package/Charting/Visuals/RenderableSeries/Animations/animationHelpers.d.ts +1 -1
  125. package/Charting/Visuals/RenderableSeries/BaseBandRenderableSeries.js +8 -7
  126. package/Charting/Visuals/RenderableSeries/BaseHeatmapRenderableSeries.d.ts +1 -0
  127. package/Charting/Visuals/RenderableSeries/BaseHeatmapRenderableSeries.js +5 -0
  128. package/Charting/Visuals/RenderableSeries/BaseOhlcRenderableSeries.js +10 -9
  129. package/Charting/Visuals/RenderableSeries/BaseRenderableSeries.d.ts +2 -1
  130. package/Charting/Visuals/RenderableSeries/BaseRenderableSeries.js +101 -69
  131. package/Charting/Visuals/RenderableSeries/BaseStackedCollection.js +13 -4
  132. package/Charting/Visuals/RenderableSeries/BaseStackedRenderableSeries.js +12 -3
  133. package/Charting/Visuals/RenderableSeries/DataLabels/BaseDataLabelProvider.d.ts +2 -0
  134. package/Charting/Visuals/RenderableSeries/DataLabels/BaseDataLabelProvider.js +5 -0
  135. package/Charting/Visuals/RenderableSeries/DataLabels/DataLabelProvider.js +6 -0
  136. package/Charting/Visuals/RenderableSeries/DataLabels/DataLabelState.d.ts +1 -0
  137. package/Charting/Visuals/RenderableSeries/DataLabels/DataLabelState.js +18 -5
  138. package/Charting/Visuals/RenderableSeries/DataLabels/NonUniformHeatmapDataLabelProvider.js +0 -1
  139. package/Charting/Visuals/RenderableSeries/DataLabels/TextDataLabelProvider.js +8 -2
  140. package/Charting/Visuals/RenderableSeries/DrawingProviders/BandSeriesDrawingProvider.d.ts +1 -0
  141. package/Charting/Visuals/RenderableSeries/DrawingProviders/BandSeriesDrawingProvider.js +35 -16
  142. package/Charting/Visuals/RenderableSeries/DrawingProviders/BaseSeriesDrawingProvider.d.ts +2 -1
  143. package/Charting/Visuals/RenderableSeries/DrawingProviders/BaseSeriesDrawingProvider.js +62 -33
  144. package/Charting/Visuals/RenderableSeries/DrawingProviders/BubbleSeriesDrawingProvider.d.ts +1 -0
  145. package/Charting/Visuals/RenderableSeries/DrawingProviders/BubbleSeriesDrawingProvider.js +30 -9
  146. package/Charting/Visuals/RenderableSeries/DrawingProviders/ColumnSeriesDrawingProvider.d.ts +1 -0
  147. package/Charting/Visuals/RenderableSeries/DrawingProviders/ColumnSeriesDrawingProvider.js +37 -16
  148. package/Charting/Visuals/RenderableSeries/DrawingProviders/HeatmapHelpers.d.ts +47 -0
  149. package/Charting/Visuals/RenderableSeries/DrawingProviders/HeatmapHelpers.js +258 -0
  150. package/Charting/Visuals/RenderableSeries/DrawingProviders/LineSeriesDrawingProvider.js +26 -2
  151. package/Charting/Visuals/RenderableSeries/DrawingProviders/MountainSeriesDrawingProvider.d.ts +1 -0
  152. package/Charting/Visuals/RenderableSeries/DrawingProviders/MountainSeriesDrawingProvider.js +34 -15
  153. package/Charting/Visuals/RenderableSeries/DrawingProviders/NonUniformHeatmapDrawingProvider.js +5 -230
  154. package/Charting/Visuals/RenderableSeries/DrawingProviders/OhlcSeriesDrawingProvider.d.ts +1 -0
  155. package/Charting/Visuals/RenderableSeries/DrawingProviders/OhlcSeriesDrawingProvider.js +62 -37
  156. package/Charting/Visuals/RenderableSeries/DrawingProviders/PointMarkerDrawingProvider.js +30 -3
  157. package/Charting/Visuals/RenderableSeries/DrawingProviders/UniformHeatmapDrawingProvider.d.ts +1 -0
  158. package/Charting/Visuals/RenderableSeries/DrawingProviders/UniformHeatmapDrawingProvider.js +4 -1
  159. package/Charting/Visuals/RenderableSeries/FastBubbleRenderableSeries.d.ts +0 -2
  160. package/Charting/Visuals/RenderableSeries/FastBubbleRenderableSeries.js +0 -4
  161. package/Charting/Visuals/RenderableSeries/FastTextRenderableSeries.d.ts +3 -0
  162. package/Charting/Visuals/RenderableSeries/FastTextRenderableSeries.js +10 -0
  163. package/Charting/Visuals/RenderableSeries/HitTest/BubbleSeriesHitTestProvider.d.ts +4 -0
  164. package/Charting/Visuals/RenderableSeries/HitTest/BubbleSeriesHitTestProvider.js +7 -0
  165. package/Charting/Visuals/RenderableSeries/HitTest/HitTestInfo.d.ts +4 -0
  166. package/Charting/Visuals/RenderableSeries/HitTest/HitTestInfo.js +9 -0
  167. package/Charting/Visuals/RenderableSeries/ShaderEffect.d.ts +3 -2
  168. package/Charting/Visuals/RenderableSeries/ShaderEffect.js +29 -9
  169. package/Charting/Visuals/RenderableSeries/SplineBandRenderableSeries.js +7 -0
  170. package/Charting/Visuals/RenderableSeries/SplineLineRenderableSeries.js +7 -0
  171. package/Charting/Visuals/RenderableSeries/SplineMountainRenderableSeries.js +7 -0
  172. package/Charting/Visuals/RenderableSeries/StackedColumnCollection.js +3 -0
  173. package/Charting/Visuals/RenderableSeries/StackedMountainCollection.d.ts +0 -2
  174. package/Charting/Visuals/RenderableSeries/StackedMountainCollection.js +4 -4
  175. package/Charting/Visuals/RenderableSeries/StackedMountainRenderableSeries.d.ts +1 -0
  176. package/Charting/Visuals/RenderableSeries/StackedMountainRenderableSeries.js +8 -0
  177. package/Charting/Visuals/RenderableSeries/XyScatterRenderableSeries.d.ts +1 -2
  178. package/Charting/Visuals/RenderableSeries/XyScatterRenderableSeries.js +8 -3
  179. package/Charting/Visuals/RubberBandSvgRect/RubberBandSvgRect.d.ts +3 -1
  180. package/Charting/Visuals/RubberBandSvgRect/RubberBandSvgRect.js +30 -10
  181. package/Charting/Visuals/SciChartDefaults.d.ts +10 -0
  182. package/Charting/Visuals/SciChartDefaults.js +10 -0
  183. package/Charting/Visuals/SciChartOverview.d.ts +2 -1
  184. package/Charting/Visuals/SciChartOverview.js +28 -8
  185. package/Charting/Visuals/SciChartPieSurface/SciChartPieSurface.d.ts +10 -3
  186. package/Charting/Visuals/SciChartPieSurface/SciChartPieSurface.js +118 -60
  187. package/Charting/Visuals/SciChartSurface.d.ts +4 -36
  188. package/Charting/Visuals/SciChartSurface.js +48 -61
  189. package/Charting/Visuals/SciChartSurfaceBase.d.ts +99 -13
  190. package/Charting/Visuals/SciChartSurfaceBase.js +155 -32
  191. package/Charting/Visuals/TextureManager/CanvasTexture.d.ts +2 -1
  192. package/Charting/Visuals/TextureManager/CanvasTexture.js +37 -17
  193. package/Charting/Visuals/TextureManager/TextureManager.d.ts +2 -1
  194. package/Charting/Visuals/TextureManager/TextureManager.js +27 -7
  195. package/Charting/Visuals/createMaster.d.ts +4 -2
  196. package/Charting/Visuals/createMaster.js +92 -28
  197. package/Charting/Visuals/createSingle.d.ts +0 -2
  198. package/Charting/Visuals/createSingle.js +44 -9
  199. package/Charting/Visuals/licenseManager2D.d.ts +7 -5
  200. package/Charting/Visuals/licenseManager2D.js +105 -53
  201. package/Charting/Visuals/loader.js +3 -1
  202. package/Charting/Visuals/sciChartInitCommon.d.ts +1 -1
  203. package/Charting/Visuals/sciChartInitCommon.js +5 -1
  204. package/Charting3D/CameraController.d.ts +1 -1
  205. package/Charting3D/CameraController.js +21 -7
  206. package/Charting3D/ChartModifiers/ChartModifierBase3D.d.ts +1 -0
  207. package/Charting3D/ChartModifiers/ChartModifierBase3D.js +4 -1
  208. package/Charting3D/ChartModifiers/OrbitModifier3D.d.ts +17 -5
  209. package/Charting3D/ChartModifiers/OrbitModifier3D.js +62 -26
  210. package/Charting3D/ChartModifiers/PinchZoomModifier3D.d.ts +81 -0
  211. package/Charting3D/ChartModifiers/PinchZoomModifier3D.js +164 -0
  212. package/Charting3D/ChartModifiers/TooltipModifier3D.d.ts +87 -0
  213. package/Charting3D/ChartModifiers/TooltipModifier3D.js +391 -0
  214. package/Charting3D/I3DSurfaceOptions.d.ts +10 -0
  215. package/Charting3D/I3DSurfaceOptions.js +2 -0
  216. package/Charting3D/Model/DataSeries/BaseDataSeries3D.d.ts +2 -1
  217. package/Charting3D/Model/DataSeries/BaseDataSeries3D.js +27 -6
  218. package/Charting3D/Model/DataSeries/UniformGridDataSeries3D.d.ts +8 -0
  219. package/Charting3D/Model/DataSeries/UniformGridDataSeries3D.js +12 -0
  220. package/Charting3D/Model/DataSeries/XyzDataSeries3D.d.ts +2 -2
  221. package/Charting3D/Model/DataSeries/XyzDataSeries3D.js +1 -1
  222. package/Charting3D/Vector3.d.ts +5 -0
  223. package/Charting3D/Vector3.js +7 -0
  224. package/Charting3D/Visuals/Annotations/TooltipSvgAnnotation3D.d.ts +88 -0
  225. package/Charting3D/Visuals/Annotations/TooltipSvgAnnotation3D.js +291 -0
  226. package/Charting3D/Visuals/Axis/AxisBase3D.d.ts +21 -2
  227. package/Charting3D/Visuals/Axis/AxisBase3D.js +48 -18
  228. package/Charting3D/Visuals/Axis/AxisBase3DLabelStyle.js +2 -1
  229. package/Charting3D/Visuals/Axis/AxisCubeEntity.d.ts +0 -4
  230. package/Charting3D/Visuals/Axis/AxisCubeEntity.js +3 -6
  231. package/Charting3D/Visuals/Axis/IAxisDescriptor.d.ts +2 -2
  232. package/Charting3D/Visuals/Axis/IAxisDescriptor.js +2 -2
  233. package/Charting3D/Visuals/Primitives/BaseSceneEntity3D.d.ts +41 -30
  234. package/Charting3D/Visuals/Primitives/BaseSceneEntity3D.js +78 -26
  235. package/Charting3D/Visuals/Primitives/CrosshairLinesSceneEntity.d.ts +47 -0
  236. package/Charting3D/Visuals/Primitives/CrosshairLinesSceneEntity.js +106 -0
  237. package/Charting3D/Visuals/Primitives/EntityIdProvider.d.ts +29 -0
  238. package/Charting3D/Visuals/Primitives/EntityIdProvider.js +28 -0
  239. package/Charting3D/Visuals/Primitives/PointLine3DSceneEntity.d.ts +51 -0
  240. package/Charting3D/Visuals/Primitives/PointLine3DSceneEntity.js +188 -0
  241. package/Charting3D/Visuals/Primitives/RenderableSeriesSceneEntity.d.ts +12 -0
  242. package/Charting3D/Visuals/Primitives/RenderableSeriesSceneEntity.js +14 -0
  243. package/Charting3D/Visuals/Primitives/ScatterPointsSceneEntity.d.ts +11 -0
  244. package/Charting3D/Visuals/Primitives/ScatterPointsSceneEntity.js +18 -0
  245. package/Charting3D/Visuals/Primitives/SurfaceMeshSceneEntity.d.ts +3 -0
  246. package/Charting3D/Visuals/Primitives/SurfaceMeshSceneEntity.js +15 -0
  247. package/Charting3D/Visuals/RenderableSeries/BaseRenderableSeries3D.d.ts +16 -1
  248. package/Charting3D/Visuals/RenderableSeries/BaseRenderableSeries3D.js +64 -12
  249. package/Charting3D/Visuals/RenderableSeries/Constants.d.ts +2 -0
  250. package/Charting3D/Visuals/RenderableSeries/Constants.js +2 -0
  251. package/Charting3D/Visuals/RenderableSeries/ESeriesType.d.ts +2 -1
  252. package/Charting3D/Visuals/RenderableSeries/ESeriesType.js +1 -0
  253. package/Charting3D/Visuals/RenderableSeries/HitTestInfo3D.d.ts +37 -0
  254. package/Charting3D/Visuals/RenderableSeries/HitTestInfo3D.js +22 -0
  255. package/Charting3D/Visuals/RenderableSeries/PointLineRenderableSeries3D.d.ts +64 -0
  256. package/Charting3D/Visuals/RenderableSeries/PointLineRenderableSeries3D.js +105 -0
  257. package/Charting3D/Visuals/RenderableSeries/SeriesInfo3D.d.ts +51 -0
  258. package/Charting3D/Visuals/RenderableSeries/SeriesInfo3D.js +32 -0
  259. package/Charting3D/Visuals/RenderableSeries/SurfaceMeshSeriesInfo3D.d.ts +15 -0
  260. package/Charting3D/Visuals/RenderableSeries/SurfaceMeshSeriesInfo3D.js +112 -0
  261. package/Charting3D/Visuals/RenderableSeries/XyzSeriesInfo3D.d.ts +20 -0
  262. package/Charting3D/Visuals/RenderableSeries/XyzSeriesInfo3D.js +60 -0
  263. package/Charting3D/Visuals/RootSceneEntity.d.ts +0 -4
  264. package/Charting3D/Visuals/RootSceneEntity.js +3 -8
  265. package/Charting3D/Visuals/SciChart3DRenderer.d.ts +2 -0
  266. package/Charting3D/Visuals/SciChart3DRenderer.js +49 -0
  267. package/Charting3D/Visuals/SciChart3DSurface.d.ts +44 -3
  268. package/Charting3D/Visuals/SciChart3DSurface.js +103 -9
  269. package/Charting3D/Visuals/ViewportManager3DBase.d.ts +4 -0
  270. package/Charting3D/Visuals/ViewportManager3DBase.js +7 -1
  271. package/Charting3D/Visuals/createMaster3d.d.ts +1 -2
  272. package/Charting3D/Visuals/createMaster3d.js +76 -14
  273. package/Charting3D/Visuals/createSingle3d.js +34 -4
  274. package/Charting3D/Visuals/licenseManager3D.js +29 -25
  275. package/Core/BuildStamp.d.ts +1 -1
  276. package/Core/BuildStamp.js +2 -2
  277. package/Core/DeletableEntity.d.ts +28 -0
  278. package/Core/DeletableEntity.js +141 -0
  279. package/Core/Globals.d.ts +11 -0
  280. package/Core/Globals.js +13 -0
  281. package/Core/Guard.d.ts +6 -0
  282. package/Core/Guard.js +10 -0
  283. package/Core/Mouse/MouseManager.d.ts +23 -0
  284. package/Core/Mouse/MouseManager.js +47 -0
  285. package/Core/Telemetry.js +4 -6
  286. package/_wasm/scichart.browser.js +1 -1
  287. package/_wasm/scichart2d.data +0 -0
  288. package/_wasm/scichart2d.js +4 -294
  289. package/_wasm/scichart2d.wasm +0 -0
  290. package/_wasm/scichart3d.data +0 -0
  291. package/_wasm/scichart3d.js +4 -294
  292. package/_wasm/scichart3d.wasm +0 -0
  293. package/index.d.ts +43 -2
  294. package/index.js +89 -27
  295. package/index.min.js +1 -1
  296. package/package.json +3 -4
  297. package/types/ChartModifierType.d.ts +2 -0
  298. package/types/ChartModifierType.js +2 -0
  299. package/types/DefaultRenderLayer.d.ts +9 -8
  300. package/types/DefaultRenderLayer.js +9 -8
  301. package/types/NumberArray.d.ts +1 -0
  302. package/types/NumberArray.js +12 -1
  303. package/types/SceneEntityType.d.ts +13 -5
  304. package/types/SceneEntityType.js +13 -5
  305. package/types/TSciChart.d.ts +37 -8
  306. package/types/TSciChart3D.d.ts +126 -7
  307. package/types/licensingClasses.d.ts +2 -1
  308. package/types/licensingClasses.js +1 -0
  309. package/utils/MemoryUsageHelper.d.ts +45 -0
  310. package/utils/MemoryUsageHelper.js +171 -0
  311. package/utils/array.d.ts +8 -0
  312. package/utils/array.js +58 -1
  313. package/utils/logger.d.ts +2 -0
  314. package/utils/logger.js +11 -0
@@ -7,8 +7,8 @@ var ResamplingParams = /** @class */ (function () {
7
7
  this.zeroLineY = 0;
8
8
  this.precision = 0;
9
9
  this.enableExperimentalResampling = false;
10
- this.dataIsFifo = false;
11
10
  this.fifoCapacity = 0;
11
+ this.fifoStartIndex = 0;
12
12
  this.viewportRect = seriesViewRect;
13
13
  if (rs) {
14
14
  var dataSeries = rs.dataSeries;
@@ -16,8 +16,8 @@ var ResamplingParams = /** @class */ (function () {
16
16
  this.precision = rs.resamplingPrecision;
17
17
  if (xAxis) {
18
18
  this.indexesRange = rs.getIndicesRange(xAxis.visibleRange, xAxis.isCategoryAxis);
19
- // console.log("visible range", xAxis.visibleRange.min, xAxis.visibleRange.max);
20
- // console.log("indexes range", this.indexesRange.min, this.indexesRange.max);
19
+ //console.log("visible range", xAxis.visibleRange.min, xAxis.visibleRange.max);
20
+ //console.log("indexes range", this.indexesRange.min, this.indexesRange.max);
21
21
  this.isCategoryAxis = xAxis.isCategoryAxis;
22
22
  this.isXAxisAutoRanged = xAxis.autoRange === AutoRange_1.EAutoRange.Always;
23
23
  this.xVisibleRange = xAxis.visibleRange;
@@ -25,11 +25,15 @@ var ResamplingParams = /** @class */ (function () {
25
25
  if (dataSeries) {
26
26
  this.dataHasNaN = dataSeries === null || dataSeries === void 0 ? void 0 : dataSeries.dataDistributionCalculator.containsNaN;
27
27
  this.dataEvenlySpaced = dataSeries === null || dataSeries === void 0 ? void 0 : dataSeries.isEvenlySpaced;
28
+ this.fifoCapacity = dataSeries.fifoCapacity;
29
+ this.fifoStartIndex = dataSeries.fifoStartIndex;
30
+ // Disabling fifo for sweeping nearly works, but is very unreliable.
31
+ this.dataIsFifo = dataSeries.fifoCapacity > 0 && !dataSeries.fifoSweeping;
28
32
  }
29
33
  }
30
34
  }
31
35
  ResamplingParams.prototype.clone = function (options) {
32
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
36
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
33
37
  var rp = new ResamplingParams(undefined, undefined, undefined);
34
38
  rp.zeroLineY = (_a = options === null || options === void 0 ? void 0 : options.zeroLineY) !== null && _a !== void 0 ? _a : this.zeroLineY;
35
39
  rp.precision = (_b = options === null || options === void 0 ? void 0 : options.precision) !== null && _b !== void 0 ? _b : this.precision;
@@ -42,9 +46,10 @@ var ResamplingParams = /** @class */ (function () {
42
46
  rp.renderableSeriesHash = (_j = options === null || options === void 0 ? void 0 : options.renderableSeriesHash) !== null && _j !== void 0 ? _j : this.renderableSeriesHash;
43
47
  rp.enableExperimentalResampling = (_k = options === null || options === void 0 ? void 0 : options.enableExperimentalResampling) !== null && _k !== void 0 ? _k : this.enableExperimentalResampling;
44
48
  rp.dataHasNaN = (_l = options === null || options === void 0 ? void 0 : options.dataHasNaN) !== null && _l !== void 0 ? _l : this.dataHasNaN;
45
- rp.dataIsFifo = (_m = options === null || options === void 0 ? void 0 : options.dataIsFifo) !== null && _m !== void 0 ? _m : this.dataIsFifo;
46
- rp.fifoCapacity = (_o = options === null || options === void 0 ? void 0 : options.fifoCapacity) !== null && _o !== void 0 ? _o : this.fifoCapacity;
47
- rp.dataEvenlySpaced = (_p = options === null || options === void 0 ? void 0 : options.dataEvenlySpaced) !== null && _p !== void 0 ? _p : this.dataEvenlySpaced;
49
+ rp.dataEvenlySpaced = (_m = options === null || options === void 0 ? void 0 : options.dataEvenlySpaced) !== null && _m !== void 0 ? _m : this.dataEvenlySpaced;
50
+ rp.fifoCapacity = (_o = options.fifoCapacity) !== null && _o !== void 0 ? _o : this.fifoCapacity;
51
+ rp.fifoStartIndex = (_p = options.fifoStartIndex) !== null && _p !== void 0 ? _p : this.fifoStartIndex;
52
+ rp.dataIsFifo = (_q = options.dataIsFifo) !== null && _q !== void 0 ? _q : this.dataIsFifo;
48
53
  return rp;
49
54
  };
50
55
  return ResamplingParams;
@@ -12,6 +12,11 @@ export declare abstract class TickCoordinatesProvider {
12
12
  * @param axis The Axis we are attached to.
13
13
  */
14
14
  attachedToAxis(axis: AxisCore): void;
15
+ /**
16
+ * Called when the {@link TickCoordinatesProvider} is detached from an {@link AxisCore | Axis}
17
+ * @param axis The Axis we are attached to.
18
+ */
19
+ detachedFromAxis(): void;
15
20
  /**
16
21
  * Converts arrays of major and minor ticks (data values) into structure containing pixel coordinates
17
22
  * @param minorTicks
@@ -14,6 +14,13 @@ var TickCoordinatesProvider = /** @class */ (function () {
14
14
  TickCoordinatesProvider.prototype.attachedToAxis = function (axis) {
15
15
  this.parentAxis = axis;
16
16
  };
17
+ /**
18
+ * Called when the {@link TickCoordinatesProvider} is detached from an {@link AxisCore | Axis}
19
+ * @param axis The Axis we are attached to.
20
+ */
21
+ TickCoordinatesProvider.prototype.detachedFromAxis = function () {
22
+ this.parentAxis = undefined;
23
+ };
17
24
  return TickCoordinatesProvider;
18
25
  }());
19
26
  exports.TickCoordinatesProvider = TickCoordinatesProvider;
@@ -92,12 +92,11 @@ var NumericTickProvider = /** @class */ (function (_super) {
92
92
  var results = [];
93
93
  var min = visibleRange.min;
94
94
  var max = visibleRange.max;
95
- var current = min;
96
95
  var calcMajorTicks = delta === majorDelta;
97
96
  var numberUtil = this.webAssemblyContext.NumberUtil;
98
- if (!numberUtil.IsDivisibleBy(current, delta)) {
99
- current = numberUtil.RoundUp(current, delta);
100
- }
97
+ // Skip the divisiblity check here as it can return true if the min is within epsilon of being divisible,
98
+ // but false for min + delta, leading to only one tick being output.
99
+ var current = numberUtil.RoundUp(min, delta);
101
100
  var start = current;
102
101
  var tickCount = 0;
103
102
  while (current <= max) {
@@ -23,6 +23,11 @@ export declare abstract class TickProvider {
23
23
  * @param axis
24
24
  */
25
25
  attachedToAxis(axis: AxisCore): void;
26
+ /**
27
+ * Called when the TickProvider is attached from an {@link AxisCore | Axis}
28
+ * @param axis
29
+ */
30
+ detachedFromAxis(): void;
26
31
  /**
27
32
  * @summary Gets an array of major ticks (data-values values where SciChart will place labels and major gridlines).
28
33
  * @description Major ticks are data-values where we will place the major gridlines and labels. For example. if the {@link AxisCore | Axis}
@@ -24,6 +24,13 @@ var TickProvider = /** @class */ (function () {
24
24
  TickProvider.prototype.attachedToAxis = function (axis) {
25
25
  this.parentAxis = axis;
26
26
  };
27
+ /**
28
+ * Called when the TickProvider is attached from an {@link AxisCore | Axis}
29
+ * @param axis
30
+ */
31
+ TickProvider.prototype.detachedFromAxis = function () {
32
+ this.parentAxis = undefined;
33
+ };
27
34
  return TickProvider;
28
35
  }());
29
36
  exports.TickProvider = TickProvider;
@@ -58,7 +58,7 @@ var SciChartRenderer = /** @class */ (function () {
58
58
  return {
59
59
  pointSeries: rs.toPointSeries(),
60
60
  renderableSeries: rs,
61
- indicesRange: undefined,
61
+ indicesRange: rs.isStacked ? undefined : rs.getIndicesRange(xAxis.visibleRange, xAxis.isCategoryAxis),
62
62
  resamplingHash: undefined
63
63
  };
64
64
  var rp = new ResamplingParams_1.ResamplingParams(seriesViewRect, rs, xAxis);
@@ -66,7 +66,7 @@ var SciChartRenderer = /** @class */ (function () {
66
66
  return {
67
67
  pointSeries: rs.toPointSeries(),
68
68
  renderableSeries: rs,
69
- indicesRange: undefined,
69
+ indicesRange: rp.indexesRange,
70
70
  resamplingHash: undefined
71
71
  };
72
72
  var resamplingHash = SciChartRenderer.calculateResamplingHash(rs, rp);
@@ -110,7 +110,7 @@ var SciChartRenderer = /** @class */ (function () {
110
110
  if (this.sciChartSurface.isDeleted) {
111
111
  return;
112
112
  }
113
- // console.log("render start");
113
+ //console.log("render start");
114
114
  var nativeContext = renderContext.getNativeContext();
115
115
  var wasmContext = this.sciChartSurface.webAssemblyContext2D;
116
116
  var oldBlendMode;
@@ -126,7 +126,7 @@ var SciChartRenderer = /** @class */ (function () {
126
126
  this.sciChartSurface.onAnimate(timeElapsed);
127
127
  renderContext.enqueueLayeredDraw(function () {
128
128
  _this.sciChartSurface.updateBackground();
129
- }, this.getAbsoluteLayer(DefaultRenderLayer_1.EDefaultRenderLayer.AxisBandsLayer));
129
+ }, this.getAbsoluteLayer(DefaultRenderLayer_1.EDefaultRenderLayer.Background));
130
130
  // Step 2 autorange
131
131
  this.sciChartSurface.updateStackedCollectionAccumulatedVectors();
132
132
  this.sciChartSurface.xAxes.asArray().forEach(function (axis) { return _this.tryPerformAutoRangeOn(axis, _this.sciChartSurface); });
@@ -164,6 +164,11 @@ var SciChartRenderer = /** @class */ (function () {
164
164
  el.type === IAnnotation_1.EAnnotationType.RenderContextAxisMarkerAnnotation ||
165
165
  el.type === IAnnotation_1.EAnnotationType.RenderContextNativeTextAnnotation);
166
166
  });
167
+ // Draw annotations before axis
168
+ var annotationsLayerBelowAxis = this.getAbsoluteLayer(DefaultRenderLayer_1.EDefaultRenderLayer.Background);
169
+ renderContext.enqueueLayeredDraw(function () {
170
+ _this.drawRenderContextAnnotations(renderContextAnnotations, xAxesById, yAxesById, IAnnotation_1.EAnnotationLayer.Background, renderContext, seriesViewRect);
171
+ }, annotationsLayerBelowAxis);
167
172
  var annotationsBelowLayer = this.getAbsoluteLayer(DefaultRenderLayer_1.EDefaultRenderLayer.AnnotationsBelowSeriesLayer);
168
173
  renderContext.enqueueLayeredDraw(function () {
169
174
  _this.drawRenderContextAnnotations(renderContextAnnotations, xAxesById, yAxesById, IAnnotation_1.EAnnotationLayer.BelowChart, renderContext, seriesViewRect);
@@ -373,7 +378,12 @@ var SciChartRenderer = /** @class */ (function () {
373
378
  nativeContext.SetClipRect(viewRect.x, viewRect.y, viewRect.width, viewRect.height);
374
379
  // Draw unselected series first
375
380
  renderableSeriesArray.forEach(function (rs, index) {
376
- if (rs.isVisible && !rs.isSelected)
381
+ if (rs.isVisible && !rs.isSelected && !rs.isHovered)
382
+ drawSeriesImpl(index);
383
+ });
384
+ // Draw hovered series next
385
+ renderableSeriesArray.forEach(function (rs, index) {
386
+ if (rs.isVisible && rs.isHovered)
377
387
  drawSeriesImpl(index);
378
388
  });
379
389
  // Draw selected series at higher z-index
@@ -1,3 +1,4 @@
1
+ import { DeletableEntity } from "../../Core/DeletableEntity";
1
2
  import { ICacheable } from "../../Core/ICacheable";
2
3
  import { IDeletable } from "../../Core/IDeletable";
3
4
  import { Rect } from "../../Core/Rect";
@@ -18,7 +19,7 @@ export interface IChartTitleRenderer extends ITitleRenderer {
18
19
  titleOffset: Thickness;
19
20
  measure(title: string | string[], originalTextStyle: Required<TChartTitleStyle>, renderContext: WebGlRenderContext2D): void;
20
21
  }
21
- export declare class TitleRendererBase<TextStyleType extends TAxisTitleStyle | TChartTitleStyle> implements ITitleRenderer {
22
+ export declare class TitleRendererBase<TextStyleType extends TAxisTitleStyle | TChartTitleStyle> extends DeletableEntity implements ITitleRenderer {
22
23
  /**
23
24
  * Defines a bounding {@link Rect} containing the title text
24
25
  */
@@ -1,7 +1,23 @@
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.getAdjustedRotation = exports.TitleRendererBase = void 0;
4
19
  var app_1 = require("../../constants/app");
20
+ var DeletableEntity_1 = require("../../Core/DeletableEntity");
5
21
  var Deleter_1 = require("../../Core/Deleter");
6
22
  var Rect_1 = require("../../Core/Rect");
7
23
  var TextPosition_1 = require("../../types/TextPosition");
@@ -12,32 +28,35 @@ var createNativeRect_1 = require("../Visuals/Helpers/createNativeRect");
12
28
  var NativeObject_1 = require("../Visuals/Helpers/NativeObject");
13
29
  var DpiHelper_1 = require("../Visuals/TextureManager/DpiHelper");
14
30
  var TextureManager_1 = require("../Visuals/TextureManager/TextureManager");
15
- var TitleRendererBase = /** @class */ (function () {
31
+ var TitleRendererBase = /** @class */ (function (_super) {
32
+ __extends(TitleRendererBase, _super);
16
33
  function TitleRendererBase(webAssemblyContext) {
17
- this.drawDebug = false;
18
- this.useCache = true;
19
- this.viewRectProperty = Rect_1.Rect.createZero();
34
+ var _this = _super.call(this) || this;
35
+ _this.drawDebug = false;
36
+ _this.useCache = true;
37
+ _this.viewRectProperty = Rect_1.Rect.createZero();
20
38
  /**
21
39
  * The height taken by the text with normal(horizontal) orientation including padding
22
40
  */
23
- this.textHeight = 0;
41
+ _this.textHeight = 0;
24
42
  /**
25
43
  * The width taken by the text with normal(horizontal) orientation including padding
26
44
  */
27
- this.textWidth = 0;
45
+ _this.textWidth = 0;
28
46
  /**
29
47
  * The height taken by the text considering current orientation orientation including padding
30
48
  */
31
- this.desiredHeightProperty = 0;
49
+ _this.desiredHeightProperty = 0;
32
50
  /**
33
51
  * The width taken by the text considering current orientation orientation including padding
34
52
  */
35
- this.desiredWidthProperty = 0;
36
- this.useNativeTextProperty = false;
37
- this.webAssemblyContext = webAssemblyContext;
38
- this.textureManager = new TextureManager_1.TextureManager(webAssemblyContext);
39
- this.onDpiChanged = this.onDpiChanged.bind(this);
40
- DpiHelper_1.DpiHelper.dpiChanged.subscribe(this.onDpiChanged);
53
+ _this.desiredWidthProperty = 0;
54
+ _this.useNativeTextProperty = false;
55
+ _this.webAssemblyContext = webAssemblyContext;
56
+ _this.textureManager = new TextureManager_1.TextureManager(webAssemblyContext);
57
+ _this.onDpiChanged = _this.onDpiChanged.bind(_this);
58
+ DpiHelper_1.DpiHelper.dpiChanged.subscribe(_this.onDpiChanged);
59
+ return _this;
41
60
  }
42
61
  Object.defineProperty(TitleRendererBase.prototype, "viewRect", {
43
62
  /**
@@ -65,6 +84,8 @@ var TitleRendererBase = /** @class */ (function () {
65
84
  };
66
85
  TitleRendererBase.prototype.delete = function () {
67
86
  this.resetCache();
87
+ this.textureManager = (0, Deleter_1.deleteSafe)(this.textureManager);
88
+ this.webAssemblyContext = undefined;
68
89
  DpiHelper_1.DpiHelper.dpiChanged.unsubscribe(this.onDpiChanged);
69
90
  };
70
91
  TitleRendererBase.prototype.resetCache = function () {
@@ -236,7 +257,7 @@ var TitleRendererBase = /** @class */ (function () {
236
257
  }
237
258
  };
238
259
  return TitleRendererBase;
239
- }());
260
+ }(DeletableEntity_1.DeletableEntity));
240
261
  exports.TitleRendererBase = TitleRendererBase;
241
262
  var getAdjustedRotation = function (rotation, position) {
242
263
  if (rotation !== undefined) {
@@ -3,7 +3,7 @@ import { SciChartSurface } from "../SciChartSurface";
3
3
  import { AnnotationBase } from "./AnnotationBase";
4
4
  import { IAnnotation } from "./IAnnotation";
5
5
  export declare class AdornerLayer {
6
- readonly parentSurface: SciChartSurface;
6
+ parentSurface: SciChartSurface;
7
7
  private selectedAnnotationProperty;
8
8
  constructor(scs: SciChartSurface);
9
9
  selectAnnotation(args: ModifierMouseArgs): boolean;
@@ -1,9 +1,9 @@
1
+ import { DeletableEntity } from "../../../Core/DeletableEntity";
1
2
  import { EventHandler } from "../../../Core/EventHandler";
2
3
  import { Point } from "../../../Core/Point";
3
4
  import { EXyDirection } from "../../../types/XyDirection";
4
5
  import { ModifierMouseArgs } from "../../ChartModifiers/ModifierMouseArgs";
5
6
  import { CoordinateCalculatorBase } from "../../Numerics/CoordinateCalculators/CoordinateCalculatorBase";
6
- import { SciChartSurface } from "../SciChartSurface";
7
7
  import { SciChartSurfaceBase } from "../SciChartSurfaceBase";
8
8
  import { TDpiChangedEventArgs } from "../TextureManager/DpiHelper";
9
9
  import { AnnotationClickEventArgs } from "./AnnotationClickEventArgs";
@@ -222,7 +222,7 @@ export declare enum ECoordinateMode {
222
222
  /**
223
223
  * Defines the base class to an Annotation - a type of marker, text label, line or custom UI overlay on a 2D Cartesian {@link SciChartSurface}
224
224
  */
225
- export declare abstract class AnnotationBase implements IAnnotation, IAdornerProvider {
225
+ export declare abstract class AnnotationBase extends DeletableEntity implements IAnnotation, IAdornerProvider {
226
226
  dragStarted: EventHandler<void>;
227
227
  dragEnded: EventHandler<void>;
228
228
  dragDelta: EventHandler<AnnotationDragDeltaEventArgs>;
@@ -260,10 +260,10 @@ export declare abstract class AnnotationBase implements IAnnotation, IAdornerPro
260
260
  protected selectionBoxDeltaProperty: number;
261
261
  protected selectionBoxThicknessProperty: number;
262
262
  protected dragPointsProperty: readonly EDraggingGripPoint[];
263
+ protected parentSurfaceProperty: SciChartSurfaceBase;
263
264
  private opacityProperty;
264
265
  private annotationLayerProperty;
265
266
  private isEditableProperty;
266
- private parentSurfaceProperty;
267
267
  private x1Property;
268
268
  private x2Property;
269
269
  private y1Property;
@@ -287,11 +287,11 @@ export declare abstract class AnnotationBase implements IAnnotation, IAdornerPro
287
287
  /**
288
288
  * Gets or sets current {@link EDraggingGripPoint}
289
289
  */
290
- protected set adornerDraggingPoint(value: EDraggingGripPoint);
290
+ set adornerDraggingPoint(value: EDraggingGripPoint);
291
291
  /** @inheritDoc */
292
- get parentSurface(): SciChartSurface;
292
+ get parentSurface(): SciChartSurfaceBase;
293
293
  /** @inheritDoc */
294
- set parentSurface(parentSurface: SciChartSurface);
294
+ set parentSurface(parentSurface: SciChartSurfaceBase);
295
295
  /** @inheritDoc */
296
296
  get isEditable(): boolean;
297
297
  /** @inheritDoc */
@@ -1,7 +1,23 @@
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.AnnotationBase = exports.ECoordinateMode = exports.EDraggingGripPoint = void 0;
4
19
  var classFactory_1 = require("../../../Builder/classFactory");
20
+ var DeletableEntity_1 = require("../../../Core/DeletableEntity");
5
21
  var EventHandler_1 = require("../../../Core/EventHandler");
6
22
  var Guard_1 = require("../../../Core/Guard");
7
23
  var Point_1 = require("../../../Core/Point");
@@ -62,108 +78,112 @@ var ECoordinateMode;
62
78
  /**
63
79
  * Defines the base class to an Annotation - a type of marker, text label, line or custom UI overlay on a 2D Cartesian {@link SciChartSurface}
64
80
  */
65
- var AnnotationBase = /** @class */ (function () {
81
+ var AnnotationBase = /** @class */ (function (_super) {
82
+ __extends(AnnotationBase, _super);
66
83
  /**
67
84
  * Creates an instance of the Annotation
68
85
  * @param options optional parameters of type {@link IAnnotationBaseOptions} used to configure the annotation at construct time
69
86
  */
70
87
  function AnnotationBase(options) {
88
+ var _this = this;
71
89
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x;
72
- this.showWarning = true;
73
- this.prevIsSelected = true;
90
+ _this = _super.call(this) || this;
91
+ _this.showWarning = true;
92
+ _this.prevIsSelected = true;
74
93
  /** the annotation absolute coordinates */
75
- this.annotationBorders = {
94
+ _this.annotationBorders = {
76
95
  x1: 0,
77
96
  x2: 0,
78
97
  y1: 0,
79
98
  y2: 0
80
99
  };
81
- this.typeMap = new Map();
82
- this.isHiddenProperty = false;
83
- this.annotationsGripsStrokeProperty = SciChartSurfaceBase_1.SciChartSurfaceBase.DEFAULT_THEME.annotationsGripsBorderBrush;
84
- this.annotationsGripsFillProperty = SciChartSurfaceBase_1.SciChartSurfaceBase.DEFAULT_THEME.annotationsGripsBackroundBrush;
85
- this.annotationsGripsRadiusProperty = constants_1.ADORNER_GRIP_RADIUS;
86
- this.selectionBoxStrokeProperty = SciChartSurfaceBase_1.SciChartSurfaceBase.DEFAULT_THEME.annotationSelectionStroke;
87
- this.selectionBoxDeltaProperty = 1.5;
88
- this.selectionBoxThicknessProperty = 6;
89
- this.dragPointsProperty = [
100
+ _this.typeMap = new Map();
101
+ _this.isHiddenProperty = false;
102
+ _this.annotationsGripsStrokeProperty = SciChartSurfaceBase_1.SciChartSurfaceBase.DEFAULT_THEME.annotationsGripsBorderBrush;
103
+ _this.annotationsGripsFillProperty = SciChartSurfaceBase_1.SciChartSurfaceBase.DEFAULT_THEME.annotationsGripsBackroundBrush;
104
+ _this.annotationsGripsRadiusProperty = constants_1.ADORNER_GRIP_RADIUS;
105
+ _this.selectionBoxStrokeProperty = SciChartSurfaceBase_1.SciChartSurfaceBase.DEFAULT_THEME.annotationSelectionStroke;
106
+ _this.selectionBoxDeltaProperty = 1.5;
107
+ _this.selectionBoxThicknessProperty = 6;
108
+ _this.dragPointsProperty = [
90
109
  EDraggingGripPoint.Body,
91
110
  EDraggingGripPoint.x1y1,
92
111
  EDraggingGripPoint.x2y2,
93
112
  EDraggingGripPoint.x2y1,
94
113
  EDraggingGripPoint.x1y2
95
114
  ];
96
- this.annotationLayerProperty = IAnnotation_1.EAnnotationLayer.AboveChart;
97
- this.isEditableProperty = false;
98
- this.xAxisIdProperty = AxisCore_1.AxisCore.DEFAULT_AXIS_ID;
99
- this.yAxisIdProperty = AxisCore_1.AxisCore.DEFAULT_AXIS_ID;
100
- this.xCoordinateModeProperty = ECoordinateMode.DataValue;
101
- this.yCoordinateModeProperty = ECoordinateMode.DataValue;
102
- this.isSelectedProperty = false;
103
- this.resizeDirectionsProperty = XyDirection_1.EXyDirection.XyDirection;
104
- this.id = (_a = options === null || options === void 0 ? void 0 : options.id) !== null && _a !== void 0 ? _a : (0, guid_1.generateGuid)();
105
- this.dragStarted = new EventHandler_1.EventHandler();
106
- this.dragEnded = new EventHandler_1.EventHandler();
107
- this.dragDelta = new EventHandler_1.EventHandler();
108
- this.selectedChanged = new EventHandler_1.EventHandler();
109
- this.clicked = new EventHandler_1.EventHandler();
110
- this.annotationLayerProperty = (_b = options === null || options === void 0 ? void 0 : options.annotationLayer) !== null && _b !== void 0 ? _b : this.annotationLayerProperty;
111
- this.resizeDirectionsProperty = (_c = options === null || options === void 0 ? void 0 : options.resizeDirections) !== null && _c !== void 0 ? _c : this.resizeDirectionsProperty;
112
- this.isEditableProperty = (_d = options === null || options === void 0 ? void 0 : options.isEditable) !== null && _d !== void 0 ? _d : this.isEditableProperty;
113
- this.isHiddenProperty = (_e = options === null || options === void 0 ? void 0 : options.isHidden) !== null && _e !== void 0 ? _e : this.isHiddenProperty;
114
- this.x1Property = (_f = options === null || options === void 0 ? void 0 : options.x1) !== null && _f !== void 0 ? _f : this.x1Property;
115
- this.y1Property = (_g = options === null || options === void 0 ? void 0 : options.y1) !== null && _g !== void 0 ? _g : this.y1Property;
116
- this.x2Property = (_h = options === null || options === void 0 ? void 0 : options.x2) !== null && _h !== void 0 ? _h : this.x2Property;
117
- this.y2Property = (_j = options === null || options === void 0 ? void 0 : options.y2) !== null && _j !== void 0 ? _j : this.y2Property;
118
- this.xAxisIdProperty = (_k = options === null || options === void 0 ? void 0 : options.xAxisId) !== null && _k !== void 0 ? _k : this.xAxisIdProperty;
119
- this.yAxisIdProperty = (_l = options === null || options === void 0 ? void 0 : options.yAxisId) !== null && _l !== void 0 ? _l : this.yAxisIdProperty;
120
- this.xCoordinateModeProperty = (_m = options === null || options === void 0 ? void 0 : options.xCoordinateMode) !== null && _m !== void 0 ? _m : this.xCoordinateModeProperty;
121
- this.yCoordinateModeProperty = (_o = options === null || options === void 0 ? void 0 : options.yCoordinateMode) !== null && _o !== void 0 ? _o : this.yCoordinateModeProperty;
122
- this.isSelectedProperty = (_p = options === null || options === void 0 ? void 0 : options.isSelected) !== null && _p !== void 0 ? _p : this.isSelectedProperty;
123
- this.opacityProperty = (_q = options === null || options === void 0 ? void 0 : options.opacity) !== null && _q !== void 0 ? _q : 1.0;
124
- this.annotationsGripsStrokeProperty = (_r = options === null || options === void 0 ? void 0 : options.annotationsGripsStroke) !== null && _r !== void 0 ? _r : this.annotationsGripsStrokeProperty;
125
- this.annotationsGripsFillProperty = (_s = options === null || options === void 0 ? void 0 : options.annotationsGripsFill) !== null && _s !== void 0 ? _s : this.annotationsGripsFillProperty;
126
- this.annotationsGripsRadiusProperty = (_t = options === null || options === void 0 ? void 0 : options.annotationsGripsRadius) !== null && _t !== void 0 ? _t : this.annotationsGripsRadius;
127
- this.selectionBoxStroke = (_u = options === null || options === void 0 ? void 0 : options.selectionBoxStroke) !== null && _u !== void 0 ? _u : this.selectionBoxStrokeProperty;
128
- this.selectionBoxDelta = (_v = options === null || options === void 0 ? void 0 : options.selectionBoxDelta) !== null && _v !== void 0 ? _v : this.selectionBoxDeltaProperty;
129
- this.selectionBoxThickness = (_w = options === null || options === void 0 ? void 0 : options.selectionBoxThickness) !== null && _w !== void 0 ? _w : this.selectionBoxThicknessProperty;
130
- this.dragPointsProperty = (_x = options === null || options === void 0 ? void 0 : options.dragPoints) !== null && _x !== void 0 ? _x : this.dragPointsProperty;
115
+ _this.annotationLayerProperty = IAnnotation_1.EAnnotationLayer.AboveChart;
116
+ _this.isEditableProperty = false;
117
+ _this.xAxisIdProperty = AxisCore_1.AxisCore.DEFAULT_AXIS_ID;
118
+ _this.yAxisIdProperty = AxisCore_1.AxisCore.DEFAULT_AXIS_ID;
119
+ _this.xCoordinateModeProperty = ECoordinateMode.DataValue;
120
+ _this.yCoordinateModeProperty = ECoordinateMode.DataValue;
121
+ _this.isSelectedProperty = false;
122
+ _this.resizeDirectionsProperty = XyDirection_1.EXyDirection.XyDirection;
123
+ _this.id = (_a = options === null || options === void 0 ? void 0 : options.id) !== null && _a !== void 0 ? _a : (0, guid_1.generateGuid)();
124
+ _this.dragStarted = new EventHandler_1.EventHandler();
125
+ _this.dragEnded = new EventHandler_1.EventHandler();
126
+ _this.dragDelta = new EventHandler_1.EventHandler();
127
+ _this.selectedChanged = new EventHandler_1.EventHandler();
128
+ _this.clicked = new EventHandler_1.EventHandler();
129
+ _this.annotationLayerProperty = (_b = options === null || options === void 0 ? void 0 : options.annotationLayer) !== null && _b !== void 0 ? _b : _this.annotationLayerProperty;
130
+ _this.resizeDirectionsProperty = (_c = options === null || options === void 0 ? void 0 : options.resizeDirections) !== null && _c !== void 0 ? _c : _this.resizeDirectionsProperty;
131
+ _this.isEditableProperty = (_d = options === null || options === void 0 ? void 0 : options.isEditable) !== null && _d !== void 0 ? _d : _this.isEditableProperty;
132
+ _this.isHiddenProperty = (_e = options === null || options === void 0 ? void 0 : options.isHidden) !== null && _e !== void 0 ? _e : _this.isHiddenProperty;
133
+ _this.x1Property = (_f = options === null || options === void 0 ? void 0 : options.x1) !== null && _f !== void 0 ? _f : _this.x1Property;
134
+ _this.y1Property = (_g = options === null || options === void 0 ? void 0 : options.y1) !== null && _g !== void 0 ? _g : _this.y1Property;
135
+ _this.x2Property = (_h = options === null || options === void 0 ? void 0 : options.x2) !== null && _h !== void 0 ? _h : _this.x2Property;
136
+ _this.y2Property = (_j = options === null || options === void 0 ? void 0 : options.y2) !== null && _j !== void 0 ? _j : _this.y2Property;
137
+ _this.xAxisIdProperty = (_k = options === null || options === void 0 ? void 0 : options.xAxisId) !== null && _k !== void 0 ? _k : _this.xAxisIdProperty;
138
+ _this.yAxisIdProperty = (_l = options === null || options === void 0 ? void 0 : options.yAxisId) !== null && _l !== void 0 ? _l : _this.yAxisIdProperty;
139
+ _this.xCoordinateModeProperty = (_m = options === null || options === void 0 ? void 0 : options.xCoordinateMode) !== null && _m !== void 0 ? _m : _this.xCoordinateModeProperty;
140
+ _this.yCoordinateModeProperty = (_o = options === null || options === void 0 ? void 0 : options.yCoordinateMode) !== null && _o !== void 0 ? _o : _this.yCoordinateModeProperty;
141
+ _this.isSelectedProperty = (_p = options === null || options === void 0 ? void 0 : options.isSelected) !== null && _p !== void 0 ? _p : _this.isSelectedProperty;
142
+ _this.opacityProperty = (_q = options === null || options === void 0 ? void 0 : options.opacity) !== null && _q !== void 0 ? _q : 1.0;
143
+ _this.annotationsGripsStrokeProperty = (_r = options === null || options === void 0 ? void 0 : options.annotationsGripsStroke) !== null && _r !== void 0 ? _r : _this.annotationsGripsStrokeProperty;
144
+ _this.annotationsGripsFillProperty = (_s = options === null || options === void 0 ? void 0 : options.annotationsGripsFill) !== null && _s !== void 0 ? _s : _this.annotationsGripsFillProperty;
145
+ _this.annotationsGripsRadiusProperty = (_t = options === null || options === void 0 ? void 0 : options.annotationsGripsRadius) !== null && _t !== void 0 ? _t : _this.annotationsGripsRadius;
146
+ _this.selectionBoxStroke = (_u = options === null || options === void 0 ? void 0 : options.selectionBoxStroke) !== null && _u !== void 0 ? _u : _this.selectionBoxStrokeProperty;
147
+ _this.selectionBoxDelta = (_v = options === null || options === void 0 ? void 0 : options.selectionBoxDelta) !== null && _v !== void 0 ? _v : _this.selectionBoxDeltaProperty;
148
+ _this.selectionBoxThickness = (_w = options === null || options === void 0 ? void 0 : options.selectionBoxThickness) !== null && _w !== void 0 ? _w : _this.selectionBoxThicknessProperty;
149
+ _this.dragPointsProperty = (_x = options === null || options === void 0 ? void 0 : options.dragPoints) !== null && _x !== void 0 ? _x : _this.dragPointsProperty;
131
150
  if (options === null || options === void 0 ? void 0 : options.onDragStarted) {
132
151
  if (typeof options.onDragStarted === "string") {
133
- this.typeMap.set("onDragStarted", options.onDragStarted);
134
- this.dragStarted.subscribe((0, classFactory_1.getFunction)(BaseType_1.EBaseType.OptionFunction, options.onDragStarted));
152
+ _this.typeMap.set("onDragStarted", options.onDragStarted);
153
+ _this.dragStarted.subscribe((0, classFactory_1.getFunction)(BaseType_1.EBaseType.OptionFunction, options.onDragStarted));
135
154
  }
136
155
  else {
137
- this.dragStarted.subscribe(options.onDragStarted);
156
+ _this.dragStarted.subscribe(options.onDragStarted);
138
157
  }
139
158
  }
140
159
  if (options === null || options === void 0 ? void 0 : options.onDragEnded) {
141
160
  if (typeof options.onDragEnded === "string") {
142
- this.typeMap.set("onDragEnded", options.onDragEnded);
143
- this.dragEnded.subscribe((0, classFactory_1.getFunction)(BaseType_1.EBaseType.OptionFunction, options.onDragEnded));
161
+ _this.typeMap.set("onDragEnded", options.onDragEnded);
162
+ _this.dragEnded.subscribe((0, classFactory_1.getFunction)(BaseType_1.EBaseType.OptionFunction, options.onDragEnded));
144
163
  }
145
164
  else {
146
- this.dragEnded.subscribe(options.onDragEnded);
165
+ _this.dragEnded.subscribe(options.onDragEnded);
147
166
  }
148
167
  }
149
168
  if (options === null || options === void 0 ? void 0 : options.onDrag) {
150
169
  if (typeof options.onDrag === "string") {
151
- this.typeMap.set("onDrag", options.onDrag);
152
- this.dragDelta.subscribe((0, classFactory_1.getFunction)(BaseType_1.EBaseType.OptionFunction, options.onDrag));
170
+ _this.typeMap.set("onDrag", options.onDrag);
171
+ _this.dragDelta.subscribe((0, classFactory_1.getFunction)(BaseType_1.EBaseType.OptionFunction, options.onDrag));
153
172
  }
154
173
  else {
155
- this.dragDelta.subscribe(options.onDrag);
174
+ _this.dragDelta.subscribe(options.onDrag);
156
175
  }
157
176
  }
158
177
  if (options === null || options === void 0 ? void 0 : options.onClick) {
159
178
  if (typeof options.onClick === "string") {
160
- this.typeMap.set("onClick", options.onClick);
161
- this.clicked.subscribe((0, classFactory_1.getFunction)(BaseType_1.EBaseType.OptionFunction, options.onClick));
179
+ _this.typeMap.set("onClick", options.onClick);
180
+ _this.clicked.subscribe((0, classFactory_1.getFunction)(BaseType_1.EBaseType.OptionFunction, options.onClick));
162
181
  }
163
182
  else {
164
- this.clicked.subscribe(options.onClick);
183
+ _this.clicked.subscribe(options.onClick);
165
184
  }
166
185
  }
186
+ return _this;
167
187
  }
168
188
  Object.defineProperty(AnnotationBase.prototype, "annotationLayer", {
169
189
  /** @inheritDoc */
@@ -991,5 +1011,5 @@ var AnnotationBase = /** @class */ (function () {
991
1011
  };
992
1012
  };
993
1013
  return AnnotationBase;
994
- }());
1014
+ }(DeletableEntity_1.DeletableEntity));
995
1015
  exports.AnnotationBase = AnnotationBase;
@@ -78,6 +78,10 @@ var CursorTooltipSvgAnnotation = /** @class */ (function (_super) {
78
78
  this.notifyPropertyChanged(constants_1.PROPERTY.SERIES_INFOS);
79
79
  }
80
80
  }
81
+ else {
82
+ this.seriesInfosProperty = newSeriesInfos;
83
+ this.notifyPropertyChanged(constants_1.PROPERTY.SERIES_INFOS);
84
+ }
81
85
  },
82
86
  enumerable: false,
83
87
  configurable: true
@@ -201,6 +205,10 @@ var CursorTooltipSvgAnnotation = /** @class */ (function (_super) {
201
205
  this.svgRoot.removeChild(this.svg);
202
206
  }
203
207
  this.setSvg(undefined);
208
+ if (this.svgLegend) {
209
+ this.svgRoot.removeChild(this.svgLegend);
210
+ this.svgLegend = undefined;
211
+ }
204
212
  };
205
213
  /**
206
214
  * @inheritDoc
@@ -1,5 +1,4 @@
1
1
  import { IDeletable } from "../../../Core/IDeletable";
2
- import { SciChartSurface } from "../SciChartSurface";
3
2
  import { SciChartSurfaceBase } from "../SciChartSurfaceBase";
4
3
  import { INotifyOnDpiChanged } from "../TextureManager/DpiHelper";
5
4
  import { ECoordinateMode } from "./AnnotationBase";
@@ -21,7 +20,13 @@ export declare enum EAnnotationLayer {
21
20
  * The Grid lines and Axis Bands will show over the annotation,
22
21
  * so consider setting {@link AxisCore.axisBandsFill} to a semi-transparent color to avoid this.
23
22
  */
24
- BelowChart = "BelowChart"
23
+ BelowChart = "BelowChart",
24
+ /**
25
+ * The {@link IAnnotation | Annotation} will be displayed below the chart grid lines, bands, and axes.
26
+ * @remarks
27
+ * Use this for custom background behind the chart.
28
+ */
29
+ Background = "Background"
25
30
  }
26
31
  /**
27
32
  * Defines the type of {@link IAnnotation | Annotation}.
@@ -249,9 +254,9 @@ export interface IAnnotation extends IDeletable, INotifyOnDpiChanged {
249
254
  */
250
255
  isHidden: boolean;
251
256
  /**
252
- * @description the parent SciChartSurface for this annotation
257
+ * @description the parent SciChartSurfaceBase for this annotation
253
258
  */
254
- parentSurface: SciChartSurface;
259
+ parentSurface: SciChartSurfaceBase;
255
260
  /**
256
261
  * @description if true, the chart is vertical
257
262
  */
@@ -21,6 +21,12 @@ var EAnnotationLayer;
21
21
  * so consider setting {@link AxisCore.axisBandsFill} to a semi-transparent color to avoid this.
22
22
  */
23
23
  EAnnotationLayer["BelowChart"] = "BelowChart";
24
+ /**
25
+ * The {@link IAnnotation | Annotation} will be displayed below the chart grid lines, bands, and axes.
26
+ * @remarks
27
+ * Use this for custom background behind the chart.
28
+ */
29
+ EAnnotationLayer["Background"] = "Background";
24
30
  })(EAnnotationLayer = exports.EAnnotationLayer || (exports.EAnnotationLayer = {}));
25
31
  /**
26
32
  * Defines the type of {@link IAnnotation | Annotation}.