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
@@ -92,7 +92,7 @@ export declare type TLayoutManagerDefinition = {
92
92
  * @param divElementId The Div Element ID where the {@link SciChartSurface} will reside
93
93
  * @param definition the {@link ISciChart2DDefinition}
94
94
  */
95
- export declare const build2DChart: (divElementId: string, definition: ISciChart2DDefinition | string) => Promise<{
95
+ export declare const build2DChart: (divElementId: string | HTMLDivElement, definition: ISciChart2DDefinition | string) => Promise<{
96
96
  wasmContext: TSciChart;
97
97
  sciChartSurface: SciChartSurface;
98
98
  }>;
@@ -102,5 +102,5 @@ export declare const build2DChart: (divElementId: string, definition: ISciChart2
102
102
  * @param divElementId The Div Element ID where the {@link SciChartPieSurface} will reside
103
103
  * @param definition the {@link ISciChartPieDefinition}
104
104
  */
105
- export declare const buildPieChart: (divElementId: string, definition: ISciChartPieDefinition | string) => Promise<SciChartPieSurface>;
105
+ export declare const buildPieChart: (divElementId: string | HTMLDivElement, definition: ISciChartPieDefinition | string) => Promise<SciChartPieSurface>;
106
106
  export declare function configure2DSurface(definition: ISciChart2DDefinition, sciChartSurface: SciChartSurface, wasmContext: TSciChart): void;
@@ -22,7 +22,7 @@ export declare function chartReviver(key: string, value: any): any;
22
22
  * @param definition a {@link TSurfaceDefinition } or a string which will be parsed to it.
23
23
  * @returns
24
24
  */
25
- export declare const buildChart: (divElementId: string, definition: string | TSurfaceDefinition) => Promise<TWebAssemblyChart | SciChartPieSurface>;
25
+ export declare const buildChart: (divElementId: string | HTMLDivElement, definition: string | TSurfaceDefinition) => Promise<TWebAssemblyChart | SciChartPieSurface>;
26
26
  /**
27
27
  * Configures an existing surface using a definition.
28
28
  * This is useful if you need to use the wasmContext in methods or classes you use in your definition
@@ -37,16 +37,16 @@ export declare const configureChart: (sciChartSurface: SciChartSurfaceBase, wasm
37
37
  export declare const ensureRegistrations: () => void;
38
38
  export declare const chartBuilder: {
39
39
  /** @inheritdoc */
40
- buildChart: (divElementId: string, definition: string | TSurfaceDefinition) => Promise<TWebAssemblyChart | SciChartPieSurface>;
40
+ buildChart: (divElementId: string | HTMLDivElement, definition: string | TSurfaceDefinition) => Promise<TWebAssemblyChart | SciChartPieSurface>;
41
41
  /** @inheritdoc */
42
42
  chartReviver: typeof chartReviver;
43
43
  /** @inheritdoc */
44
- build2DChart: (divElementId: string, definition: string | ISciChart2DDefinition) => Promise<{
44
+ build2DChart: (divElementId: string | HTMLDivElement, definition: string | ISciChart2DDefinition) => Promise<{
45
45
  wasmContext: TSciChart;
46
46
  sciChartSurface: SciChartSurface;
47
47
  }>;
48
48
  /** @inheritdoc */
49
- buildPieChart: (divElementId: string, definition: string | ISciChartPieDefinition) => Promise<SciChartPieSurface>;
49
+ buildPieChart: (divElementId: string | HTMLDivElement, definition: string | ISciChartPieDefinition) => Promise<SciChartPieSurface>;
50
50
  /** @inheritdoc */
51
51
  configureChart: (sciChartSurface: SciChartSurfaceBase, wasmContext: TSciChart, definition: string | TSurfaceDefinition) => void;
52
52
  /** @inheritdoc */
@@ -1,3 +1,4 @@
1
+ import { DeletableEntity } from "../../Core/DeletableEntity";
1
2
  import { IDeletable } from "../../Core/IDeletable";
2
3
  import { Point } from "../../Core/Point";
3
4
  import { EExecuteOn } from "../../types/ExecuteOn";
@@ -56,7 +57,7 @@ export interface IChartModifierBase extends IThemeable, IDeletable {
56
57
  * Specifies a string ID to group modifiers.
57
58
  * @remarks When one receives a mouse event, all modifiers in the same group receive the event.
58
59
  */
59
- modifierGroup: string;
60
+ modifierGroup: string | undefined;
60
61
  /**
61
62
  * Called when the modifier is attached to a parent {@link SciChartSurfaceBase}
62
63
  */
@@ -153,19 +154,24 @@ export interface IChartModifierBase extends IThemeable, IDeletable {
153
154
  * Defines a base class to a Chart Modifier - a class which provides Zoom, Pan, Tooltip or interaction behavior
154
155
  * to SciChart - High Performance Realtime {@link https://www.scichart.com/javascript-chart-features | JavaScript Charts}
155
156
  */
156
- export declare abstract class ChartModifierBase<TSurfaceType extends SciChartSurfaceBase> implements IChartModifierBase {
157
+ export declare abstract class ChartModifierBase<TSurfaceType extends SciChartSurfaceBase> extends DeletableEntity implements IChartModifierBase {
157
158
  /** @inheritDoc */
158
159
  readonly id: string;
159
160
  /** @inheritDoc */
160
- modifierGroup: string;
161
+ modifierGroup: string | undefined;
161
162
  /** @inheritDoc */
162
163
  invalidateParentCallback: () => void;
163
164
  protected isEnabledProperty: boolean;
164
165
  protected isAttachedProperty: boolean;
165
166
  protected receiveHandledEventsProperty: boolean;
166
- protected mousePoint: Point;
167
+ protected mousePoint: Point | undefined;
168
+ protected previousPoint: Point | undefined;
167
169
  protected executeOnProperty: EExecuteOn;
168
- private parentSurfaceProperty;
170
+ /**
171
+ * Stores info about active pointerdown events
172
+ */
173
+ protected activePointerEvents: Map<number, ModifierMouseArgs>;
174
+ protected parentSurfaceProperty: TSurfaceType;
169
175
  protected constructor(options?: {
170
176
  id?: string;
171
177
  executeOn?: EExecuteOn;
@@ -235,4 +241,12 @@ export declare abstract class ChartModifierBase<TSurfaceType extends SciChartSur
235
241
  * @param propertyName the property name which has changed
236
242
  */
237
243
  protected notifyPropertyChanged(propertyName: string): void;
244
+ protected updatePointerInfo(args: ModifierMouseArgs): void;
245
+ /**
246
+ * Checks if event conditions should trigger the modifier action
247
+ * @param args current event info as {@link ModifierMouseArgs}
248
+ *
249
+ * @remarks Can be used in some of the modifiers to add/override constraints
250
+ */
251
+ protected getIsActionAllowed(args: ModifierMouseArgs): boolean;
238
252
  }
@@ -1,6 +1,22 @@
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.ChartModifierBase = exports.EModifierType = void 0;
19
+ var DeletableEntity_1 = require("../../Core/DeletableEntity");
4
20
  var ExecuteOn_1 = require("../../types/ExecuteOn");
5
21
  var guid_1 = require("../../utils/guid");
6
22
  var SciChartSurfaceBase_1 = require("../Visuals/SciChartSurfaceBase");
@@ -15,13 +31,21 @@ var EModifierType;
15
31
  * Defines a base class to a Chart Modifier - a class which provides Zoom, Pan, Tooltip or interaction behavior
16
32
  * to SciChart - High Performance Realtime {@link https://www.scichart.com/javascript-chart-features | JavaScript Charts}
17
33
  */
18
- var ChartModifierBase = /** @class */ (function () {
34
+ var ChartModifierBase = /** @class */ (function (_super) {
35
+ __extends(ChartModifierBase, _super);
19
36
  function ChartModifierBase(options) {
37
+ var _this = this;
20
38
  var _a, _b;
21
- this.isEnabledProperty = true;
22
- this.executeOnProperty = ExecuteOn_1.EExecuteOn.MouseLeftButton;
23
- this.id = (_a = options === null || options === void 0 ? void 0 : options.id) !== null && _a !== void 0 ? _a : (0, guid_1.generateGuid)();
24
- this.executeOnProperty = (_b = options === null || options === void 0 ? void 0 : options.executeOn) !== null && _b !== void 0 ? _b : this.executeOn;
39
+ _this = _super.call(this) || this;
40
+ _this.isEnabledProperty = true;
41
+ _this.executeOnProperty = ExecuteOn_1.EExecuteOn.MouseLeftButton;
42
+ /**
43
+ * Stores info about active pointerdown events
44
+ */
45
+ _this.activePointerEvents = new Map();
46
+ _this.id = (_a = options === null || options === void 0 ? void 0 : options.id) !== null && _a !== void 0 ? _a : (0, guid_1.generateGuid)();
47
+ _this.executeOnProperty = (_b = options === null || options === void 0 ? void 0 : options.executeOn) !== null && _b !== void 0 ? _b : _this.executeOn;
48
+ return _this;
25
49
  }
26
50
  /** @inheritDoc */
27
51
  ChartModifierBase.prototype.applyTheme = function (themeProvider) {
@@ -125,14 +149,22 @@ var ChartModifierBase = /** @class */ (function () {
125
149
  // Don't scroll browser if middle button is being used for the modifier
126
150
  args.nativeEvent.preventDefault();
127
151
  }
152
+ var isTouchEvent = args.pointerType === "touch" || args.pointerType === "pen";
153
+ if (isTouchEvent) {
154
+ this.activePointerEvents.set(args.pointerId, args);
155
+ }
128
156
  };
129
157
  /** @inheritDoc */
130
158
  ChartModifierBase.prototype.modifierMouseMove = function (args) {
131
- this.mousePoint = args.mousePoint;
159
+ this.updatePointerInfo(args);
132
160
  // Override in derived class to be notified of mouse move
133
161
  };
134
162
  /** @inheritDoc */
135
163
  ChartModifierBase.prototype.modifierMouseUp = function (args) {
164
+ var isTouchEvent = args.pointerType === "touch" || args.pointerType === "pen";
165
+ if (isTouchEvent) {
166
+ this.activePointerEvents.delete(args.pointerId);
167
+ }
136
168
  // Override in derived class to be notified of mouse up
137
169
  };
138
170
  /** @inheritDoc */
@@ -149,6 +181,7 @@ var ChartModifierBase = /** @class */ (function () {
149
181
  };
150
182
  /** @inheritDoc */
151
183
  ChartModifierBase.prototype.modifierMouseLeave = function (args) {
184
+ this.activePointerEvents.delete(args.pointerId);
152
185
  // Override in derived class to be notified of mouse leave
153
186
  };
154
187
  /** @inheritDoc */
@@ -157,6 +190,7 @@ var ChartModifierBase = /** @class */ (function () {
157
190
  };
158
191
  /** @inheritDoc */
159
192
  ChartModifierBase.prototype.modifierPointerCancel = function (args) {
193
+ this.activePointerEvents.delete(args.pointerId);
160
194
  // Override in derived class to be notified of mouse leave
161
195
  };
162
196
  /** @inheritDoc */
@@ -191,6 +225,29 @@ var ChartModifierBase = /** @class */ (function () {
191
225
  this.invalidateParentCallback();
192
226
  }
193
227
  };
228
+ ChartModifierBase.prototype.updatePointerInfo = function (args) {
229
+ var _a;
230
+ // store position of primary pointer
231
+ // activePointerEvents are set on mousedown/mouseup if this is a touch event. In this case only track the first one
232
+ if (this.activePointerEvents.size === 0 || this.activePointerEvents.keys().next().value === args.pointerId) {
233
+ this.mousePoint = args.mousePoint;
234
+ }
235
+ // get previous coordinates of the current pointer
236
+ this.previousPoint = (_a = this.activePointerEvents.get(args.pointerId)) === null || _a === void 0 ? void 0 : _a.mousePoint;
237
+ // update saved pointer coordinates
238
+ if (this.activePointerEvents.has(args.pointerId)) {
239
+ this.activePointerEvents.set(args.pointerId, args);
240
+ }
241
+ };
242
+ /**
243
+ * Checks if event conditions should trigger the modifier action
244
+ * @param args current event info as {@link ModifierMouseArgs}
245
+ *
246
+ * @remarks Can be used in some of the modifiers to add/override constraints
247
+ */
248
+ ChartModifierBase.prototype.getIsActionAllowed = function (args) {
249
+ return true;
250
+ };
194
251
  return ChartModifierBase;
195
- }());
252
+ }(DeletableEntity_1.DeletableEntity));
196
253
  exports.ChartModifierBase = ChartModifierBase;
@@ -131,19 +131,19 @@ export declare class CursorModifier extends ChartModifierBase2D implements IIncl
131
131
  /**
132
132
  * Gets or sets the xAxis label text color as an HTML Color code
133
133
  */
134
- xAxisLabelStroke: string;
134
+ xAxisLabelStroke: string | undefined;
135
135
  /**
136
136
  * Gets or sets the xAxis label fill as an HTML Color code.
137
137
  */
138
- xAxisLabelFill: string;
138
+ xAxisLabelFill: string | undefined;
139
139
  /**
140
140
  * Gets or sets the xAxis label text color as an HTML Color code
141
141
  */
142
- yAxisLabelStroke: string;
142
+ yAxisLabelStroke: string | undefined;
143
143
  /**
144
144
  * Gets or sets the yAxis label fill as an HTML Color code.
145
145
  */
146
- yAxisLabelFill: string;
146
+ yAxisLabelFill: string | undefined;
147
147
  /**
148
148
  * Gets or sets the template for the legend
149
149
  */
@@ -160,14 +160,14 @@ export declare class CursorModifier extends ChartModifierBase2D implements IIncl
160
160
  * If this is set greater than the default of zero, the toolip will only show values for points in this radius, rather than all points on the vertical line
161
161
  */
162
162
  hitTestRadius: number;
163
- protected xLineAnnotation: LineAnnotation;
164
- protected yLineAnnotation: LineAnnotation;
165
- protected tooltipAnnotation: CursorTooltipSvgAnnotation;
163
+ protected xLineAnnotation: LineAnnotation | undefined;
164
+ protected yLineAnnotation: LineAnnotation | undefined;
165
+ protected tooltipAnnotation: CursorTooltipSvgAnnotation | undefined;
166
166
  protected mousePosition: EMousePosition;
167
167
  protected crosshairStrokeProperty: string;
168
- protected tooltipDataTemplateProperty?: TCursorTooltipDataTemplate;
168
+ protected tooltipDataTemplateProperty?: TCursorTooltipDataTemplate | undefined;
169
169
  protected includedSeriesMap: Map<IRenderableSeries, boolean>;
170
- protected placementDivIdProperty: string;
170
+ protected placementDivIdProperty: string | undefined;
171
171
  protected showXLineProperty: boolean;
172
172
  protected showYLineProperty: boolean;
173
173
  protected showAxisLabelsProperty: boolean;
@@ -251,6 +251,7 @@ var CursorModifier = /** @class */ (function (_super) {
251
251
  * @inheritDoc
252
252
  */
253
253
  CursorModifier.prototype.modifierMouseMove = function (args) {
254
+ this.activePointerEvents.set(args.pointerId, args);
254
255
  _super.prototype.modifierMouseMove.call(this, args);
255
256
  var translatedMousePoint;
256
257
  if (!this.mousePoint) {
@@ -265,7 +266,10 @@ var CursorModifier = /** @class */ (function (_super) {
265
266
  this.mousePosition = MousePosition_1.EMousePosition.SeriesArea;
266
267
  }
267
268
  }
268
- this.update();
269
+ var isActionAllowed = this.getIsActionAllowed(args);
270
+ if (isActionAllowed) {
271
+ this.update();
272
+ }
269
273
  };
270
274
  /**
271
275
  * @inheritDoc
@@ -534,6 +538,7 @@ var CursorModifier = /** @class */ (function (_super) {
534
538
  this.yLineAnnotation.isHidden = true;
535
539
  }
536
540
  this.tooltipAnnotation.isHidden = true;
541
+ this.tooltipAnnotation.seriesInfos = [];
537
542
  if (this.placementDivId) {
538
543
  this.tooltipAnnotation.delete();
539
544
  }
@@ -654,6 +659,13 @@ var defaultTooltipDataTemplate = function (seriesInfos, tooltipTitle) {
654
659
  valuesWithLabels.push("Y: ".concat(xyySeriesInfo.formattedYValue));
655
660
  valuesWithLabels.push("Y1: ".concat(xyySeriesInfo.formattedY1Value));
656
661
  }
662
+ else if (si.dataSeriesType === IDataSeries_1.EDataSeriesType.Xyz) {
663
+ // Bubble Series
664
+ var xyzSeriesInfo = si;
665
+ valuesWithLabels.push("X: ".concat(xyzSeriesInfo.formattedXValue));
666
+ valuesWithLabels.push("Y: ".concat(xyzSeriesInfo.formattedYValue));
667
+ valuesWithLabels.push("Z: ".concat(xyzSeriesInfo.formattedZValue));
668
+ }
657
669
  else if (si.dataSeriesType === IDataSeries_1.EDataSeriesType.HeatmapUniform) {
658
670
  // Heatmap Series
659
671
  var heatmapSeriesInfo = si;
@@ -201,6 +201,7 @@ export declare class DataPointSelectionModifier extends ChartModifierBase2D impl
201
201
  type: string;
202
202
  options: Required<Omit<IChartModifierBaseOptions, never>>;
203
203
  };
204
+ delete(): void;
204
205
  /**
205
206
  * Selects all points inside the {@link Rect}, according to the {@link ESelectionMode} passed in
206
207
  * @param rect
@@ -17,6 +17,7 @@ var __extends = (this && this.__extends) || (function () {
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
18
  exports.DataPointSelectionModifier = exports.ESelectionMode = void 0;
19
19
  var classFactory_1 = require("../../Builder/classFactory");
20
+ var Deleter_1 = require("../../Core/Deleter");
20
21
  var EventHandler_1 = require("../../Core/EventHandler");
21
22
  var Rect_1 = require("../../Core/Rect");
22
23
  var BaseType_1 = require("../../types/BaseType");
@@ -131,7 +132,7 @@ var DataPointSelectionModifier = /** @class */ (function (_super) {
131
132
  var _this = this;
132
133
  var _a;
133
134
  _super.prototype.onDetach.call(this);
134
- this.selectionRect = undefined;
135
+ this.selectionRect = (0, Deleter_1.deleteSafe)(this.selectionRect);
135
136
  this.clearSelectedDataPoints();
136
137
  (_a = this.getAllSeries()) === null || _a === void 0 ? void 0 : _a.forEach(function (rs) { return _this.onDetachSeries(rs); });
137
138
  };
@@ -366,6 +367,10 @@ var DataPointSelectionModifier = /** @class */ (function (_super) {
366
367
  Object.assign(json.options, options);
367
368
  return json;
368
369
  };
370
+ DataPointSelectionModifier.prototype.delete = function () {
371
+ this.selectionRect = (0, Deleter_1.deleteSafe)(this.selectionRect);
372
+ _super.prototype.delete.call(this);
373
+ };
369
374
  /**
370
375
  * Selects all points inside the {@link Rect}, according to the {@link ESelectionMode} passed in
371
376
  * @param rect
@@ -3,21 +3,13 @@ import { IIncludeSeries } from "../../Core/IIncludeSeries";
3
3
  import { EChart2DModifierType } from "../../types/ChartModifierType";
4
4
  import { IThemeProvider } from "../Themes/IThemeProvider";
5
5
  import { SciChartLegend } from "../Visuals/Legend/SciChartLegend";
6
- import { ELegendOrientation, ELegendPlacement } from "../Visuals/Legend/SciChartLegendBase";
6
+ import { ILegendOptionsBase } from "../Visuals/Legend/SciChartLegendBase";
7
7
  import { IRenderableSeries } from "../Visuals/RenderableSeries/IRenderableSeries";
8
8
  import { ChartModifierBase2D, IChartModifierBaseOptions } from "./ChartModifierBase2D";
9
9
  /**
10
10
  * Optional parameters used to configure a {@link LegendModifier} at construct time
11
11
  */
12
- export interface ILegendModifierOptions extends IChartModifierBaseOptions {
13
- /**
14
- * Sets the initial orientation of the legend. See {@link ELegendOrientation} for a list of values
15
- */
16
- orientation?: ELegendOrientation;
17
- /**
18
- * Sets whether the legend is initially visible or not
19
- */
20
- showLegend?: boolean;
12
+ export interface ILegendModifierOptions extends IChartModifierBaseOptions, ILegendOptionsBase {
21
13
  /**
22
14
  * Sets whether the legend has visibility checkboxes in it or not
23
15
  */
@@ -26,24 +18,17 @@ export interface ILegendModifierOptions extends IChartModifierBaseOptions {
26
18
  * Sets whether Series markers are visible or not
27
19
  */
28
20
  showSeriesMarkers?: boolean;
29
- /**
30
- * Sets the initial legend placement in the parent chart surface. See {@link ELegendPlacement} for a list of values
31
- */
32
- placement?: ELegendPlacement;
33
- /**
34
- * Sets the margin for the legend control
35
- */
36
- margin?: number;
37
- /**
38
- * The parent div element Id or reference, the Legend will be appended to this element
39
- */
40
- placementDivId?: string | HTMLDivElement;
41
21
  /**
42
22
  * Callback when a legend item checkbox is checked or unchecked (by default, this corresponds to {@link IRenderableSeries.isVisible}
43
23
  * @param series
44
24
  * @param isChecked
45
25
  */
46
26
  isCheckedChangedCallback?: (series: IRenderableSeries, isChecked: boolean) => void;
27
+ /**
28
+ * Set this only if you need to pass in a custom legend instance.
29
+ * showCheckboxes, showSeriesMarkers and isCheckedChangedCallback will be set on the instance you pass if specified in the options.
30
+ */
31
+ legend?: SciChartLegend;
47
32
  }
48
33
  /**
49
34
  * Type args for the {@link LegendModifier.isCheckedChanged} callback
@@ -76,7 +61,7 @@ export declare class LegendModifier extends ChartModifierBase2D implements IIncl
76
61
  /**
77
62
  * Gets the {@link SciChartLegend} control used to render the legend
78
63
  */
79
- sciChartLegend: SciChartLegend;
64
+ sciChartLegend: SciChartLegend | undefined;
80
65
  /**
81
66
  * An event handler raised when a {@link SciChartLegend} row checkbox is checked or unchecked
82
67
  */
@@ -105,8 +90,8 @@ export declare class LegendModifier extends ChartModifierBase2D implements IIncl
105
90
  getIncludedRenderableSeries(): IRenderableSeries[];
106
91
  /** @inheritDoc */
107
92
  toJSON(): {
108
- type: string; /** @inheritDoc */
109
- options: Required<Omit<IChartModifierBaseOptions, never>>;
93
+ type: string;
94
+ options: Required<Omit<IChartModifierBaseOptions, never>>; /** @inheritDoc */
110
95
  };
111
96
  /** @inheritDoc */
112
97
  delete(): void;
@@ -41,7 +41,7 @@ var LegendModifier = /** @class */ (function (_super) {
41
41
  */
42
42
  function LegendModifier(options) {
43
43
  var _this = this;
44
- var _a, _b, _c, _d, _e, _f, _g;
44
+ var _a, _b, _c;
45
45
  _this = _super.call(this, options) || this;
46
46
  _this.type = ChartModifierType_1.EChart2DModifierType.Legend;
47
47
  /**
@@ -50,14 +50,9 @@ var LegendModifier = /** @class */ (function (_super) {
50
50
  _this.isCheckedChanged = new EventHandler_1.EventHandler();
51
51
  _this.includedSeriesMap = new Map();
52
52
  _this.legendItemCheckedChanged = _this.legendItemCheckedChanged.bind(_this);
53
- _this.sciChartLegend = new SciChartLegend_1.SciChartLegend();
54
- _this.sciChartLegend.orientation = (_a = options === null || options === void 0 ? void 0 : options.orientation) !== null && _a !== void 0 ? _a : _this.sciChartLegend.orientation;
55
- _this.sciChartLegend.showLegend = (_b = options === null || options === void 0 ? void 0 : options.showLegend) !== null && _b !== void 0 ? _b : _this.sciChartLegend.showLegend;
56
- _this.sciChartLegend.showCheckboxes = (_c = options === null || options === void 0 ? void 0 : options.showCheckboxes) !== null && _c !== void 0 ? _c : _this.sciChartLegend.showCheckboxes;
57
- _this.sciChartLegend.showSeriesMarkers = (_d = options === null || options === void 0 ? void 0 : options.showSeriesMarkers) !== null && _d !== void 0 ? _d : _this.sciChartLegend.showSeriesMarkers;
58
- _this.sciChartLegend.placement = (_e = options === null || options === void 0 ? void 0 : options.placement) !== null && _e !== void 0 ? _e : _this.sciChartLegend.placement;
59
- _this.sciChartLegend.margin = (_f = options === null || options === void 0 ? void 0 : options.margin) !== null && _f !== void 0 ? _f : _this.sciChartLegend.margin;
60
- _this.sciChartLegend.placementDivId = (_g = options === null || options === void 0 ? void 0 : options.placementDivId) !== null && _g !== void 0 ? _g : _this.sciChartLegend.placementDivId;
53
+ _this.sciChartLegend = (_a = options === null || options === void 0 ? void 0 : options.legend) !== null && _a !== void 0 ? _a : new SciChartLegend_1.SciChartLegend(options);
54
+ _this.sciChartLegend.showCheckboxes = (_b = options === null || options === void 0 ? void 0 : options.showCheckboxes) !== null && _b !== void 0 ? _b : _this.sciChartLegend.showCheckboxes;
55
+ _this.sciChartLegend.showSeriesMarkers = (_c = options === null || options === void 0 ? void 0 : options.showSeriesMarkers) !== null && _c !== void 0 ? _c : _this.sciChartLegend.showSeriesMarkers;
61
56
  _this.sciChartLegend.legendItemCheckedChangedCallback = _this.legendItemCheckedChanged;
62
57
  if (options === null || options === void 0 ? void 0 : options.isCheckedChangedCallback) {
63
58
  _this.isCheckedChanged.subscribe(function (arg) {
@@ -85,25 +80,20 @@ var LegendModifier = /** @class */ (function (_super) {
85
80
  /** @inheritDoc */
86
81
  LegendModifier.prototype.onParentSurfaceRendered = function () {
87
82
  _super.prototype.onParentSurfaceRendered.call(this);
88
- this.sciChartLegend.setSeriesViewRect(this.parentSurface.seriesViewRect);
89
- this.sciChartLegend.update();
90
83
  };
91
84
  /** @inheritDoc */
92
85
  LegendModifier.prototype.onAttach = function () {
93
86
  _super.prototype.onAttach.call(this);
94
- this.sciChartLegend.setParentSurface(this.parentSurface);
95
- this.sciChartLegend.setRootDiv(this.parentSurface.domDivContainer);
87
+ this.sciChartLegend.attachTo(this.parentSurface);
96
88
  this.sciChartLegend.setRenderableSeriesArray(this.getIncludedRenderableSeries());
97
- this.sciChartLegend.setInvalidateParentSurface(this.parentSurface.invalidateElement);
98
89
  };
99
90
  /** @inheritDoc */
100
91
  LegendModifier.prototype.onDetach = function () {
92
+ var _a, _b;
101
93
  _super.prototype.onDetach.call(this);
102
- this.sciChartLegend.delete();
103
- this.sciChartLegend.setRootDiv(undefined);
104
- this.sciChartLegend.setRenderableSeriesArray([]);
105
- this.sciChartLegend.setInvalidateParentSurface(undefined);
106
- this.sciChartLegend.setParentSurface(undefined);
94
+ (_a = this.sciChartLegend) === null || _a === void 0 ? void 0 : _a.setRenderableSeriesArray([]);
95
+ (_b = this.sciChartLegend) === null || _b === void 0 ? void 0 : _b.detach();
96
+ this.sciChartLegend = undefined;
107
97
  };
108
98
  /** @inheritDoc */
109
99
  LegendModifier.prototype.includeSeries = function (series, isIncluded) {
@@ -152,7 +142,7 @@ var LegendModifier = /** @class */ (function (_super) {
152
142
  /** @inheritDoc */
153
143
  LegendModifier.prototype.delete = function () {
154
144
  _super.prototype.delete.call(this);
155
- this.sciChartLegend.delete();
145
+ this.onDetach();
156
146
  };
157
147
  /**
158
148
  * Callback called from inner {@link SciChartLegend} when a checkbox is checked or unchecked
@@ -60,9 +60,18 @@ var MouseWheelZoomModifier = /** @class */ (function (_super) {
60
60
  */
61
61
  function MouseWheelZoomModifier(options) {
62
62
  var _this = this;
63
- var _a, _b, _c, _d, _e, _f, _g;
63
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
64
64
  _this = _super.call(this, options) || this;
65
65
  _this.type = ChartModifierType_1.EChart2DModifierType.MouseWheelZoom;
66
+ /**
67
+ * Modifies the speed of mousewheel zoom, for example growFactor = 0.001 means each mousewheel 'click'
68
+ * zooms the chart 0.1%
69
+ */
70
+ _this.growFactor = 0.001;
71
+ /**
72
+ * Defines whether the Mouse Wheel zooms or pans. See {@link EActionType} for options
73
+ */
74
+ _this.actionType = EActionType.Zoom;
66
75
  /**
67
76
  * Whether the modifier applies when the mouse is over the area where series are drawn (ie not over the axes). Default true.
68
77
  */
@@ -73,30 +82,30 @@ var MouseWheelZoomModifier = /** @class */ (function (_super) {
73
82
  _this.applyToAxes = true;
74
83
  _this.includedXAxisMap = new Map();
75
84
  _this.includedYAxisMap = new Map();
76
- _this.growFactor = (options === null || options === void 0 ? void 0 : options.growFactor) || 0.001;
77
- _this.actionType = (_a = options === null || options === void 0 ? void 0 : options.actionType) !== null && _a !== void 0 ? _a : EActionType.Zoom;
78
- _this.applyToSeriesViewRect = (_b = options === null || options === void 0 ? void 0 : options.applyToSeriesViewRect) !== null && _b !== void 0 ? _b : _this.applyToSeriesViewRect;
79
- _this.applyToAxes = (_c = options === null || options === void 0 ? void 0 : options.applyToAxes) !== null && _c !== void 0 ? _c : _this.applyToAxes;
85
+ _this.growFactor = (_a = options === null || options === void 0 ? void 0 : options.growFactor) !== null && _a !== void 0 ? _a : _this.growFactor;
86
+ _this.actionType = (_b = options === null || options === void 0 ? void 0 : options.actionType) !== null && _b !== void 0 ? _b : _this.actionType;
87
+ _this.applyToSeriesViewRect = (_c = options === null || options === void 0 ? void 0 : options.applyToSeriesViewRect) !== null && _c !== void 0 ? _c : _this.applyToSeriesViewRect;
88
+ _this.applyToAxes = (_d = options === null || options === void 0 ? void 0 : options.applyToAxes) !== null && _d !== void 0 ? _d : _this.applyToAxes;
80
89
  if (_this.actionType === EActionType.Pan && _this.xyDirection === XyDirection_1.EXyDirection.XyDirection) {
81
90
  console.warn("SciChart MouseWheelZoomModifier: actionType=Pan and xyDirection=Xy conflict. Auto setting XyDirection to X");
82
91
  _this.xyDirection = XyDirection_1.EXyDirection.XDirection;
83
92
  }
84
- if ((options === null || options === void 0 ? void 0 : options.includedXAxisIds) && (options === null || options === void 0 ? void 0 : options.excludedXAxisIds)) {
93
+ if (((_e = options === null || options === void 0 ? void 0 : options.includedXAxisIds) === null || _e === void 0 ? void 0 : _e.length) > 0 && ((_f = options === null || options === void 0 ? void 0 : options.excludedXAxisIds) === null || _f === void 0 ? void 0 : _f.length) > 0) {
85
94
  throw new Error("You either should use includedXAxisIds or excludedXAxisIds");
86
95
  }
87
- if ((options === null || options === void 0 ? void 0 : options.includedYAxisIds) && (options === null || options === void 0 ? void 0 : options.excludedYAxisIds)) {
96
+ if (((_g = options === null || options === void 0 ? void 0 : options.includedYAxisIds) === null || _g === void 0 ? void 0 : _g.length) > 0 && ((_h = options === null || options === void 0 ? void 0 : options.excludedYAxisIds) === null || _h === void 0 ? void 0 : _h.length) > 0) {
88
97
  throw new Error("You either should use includedYAxisIds or excludedYAxisIds");
89
98
  }
90
- (_d = options === null || options === void 0 ? void 0 : options.includedXAxisIds) === null || _d === void 0 ? void 0 : _d.forEach(function (id) {
99
+ (_j = options === null || options === void 0 ? void 0 : options.includedXAxisIds) === null || _j === void 0 ? void 0 : _j.forEach(function (id) {
91
100
  _this.includedXAxisMap.set(id, true);
92
101
  });
93
- (_e = options === null || options === void 0 ? void 0 : options.includedYAxisIds) === null || _e === void 0 ? void 0 : _e.forEach(function (id) {
102
+ (_k = options === null || options === void 0 ? void 0 : options.includedYAxisIds) === null || _k === void 0 ? void 0 : _k.forEach(function (id) {
94
103
  _this.includedYAxisMap.set(id, true);
95
104
  });
96
- (_f = options === null || options === void 0 ? void 0 : options.excludedXAxisIds) === null || _f === void 0 ? void 0 : _f.forEach(function (id) {
105
+ (_l = options === null || options === void 0 ? void 0 : options.excludedXAxisIds) === null || _l === void 0 ? void 0 : _l.forEach(function (id) {
97
106
  _this.includedXAxisMap.set(id, false);
98
107
  });
99
- (_g = options === null || options === void 0 ? void 0 : options.excludedYAxisIds) === null || _g === void 0 ? void 0 : _g.forEach(function (id) {
108
+ (_m = options === null || options === void 0 ? void 0 : options.excludedYAxisIds) === null || _m === void 0 ? void 0 : _m.forEach(function (id) {
100
109
  _this.includedYAxisMap.set(id, false);
101
110
  });
102
111
  return _this;
@@ -29,14 +29,14 @@ export interface IRangeSelectionModifierOptions extends IChartModifierBaseOption
29
29
  export declare class OverviewRangeSelectionModifier extends ChartModifierBase2D {
30
30
  readonly type = EChart2DModifierType.OverviewRangeSelection;
31
31
  onSelectedAreaChanged: (area?: NumberRange) => void;
32
- overviewPositionAnimation: IGenericAnimation;
32
+ overviewPositionAnimation: IGenericAnimation | undefined;
33
33
  animationDuration: number;
34
34
  animate: boolean;
35
- protected pointTo: Point;
35
+ protected pointTo: Point | undefined;
36
36
  protected isClicked: boolean;
37
- protected rangeSelectionAnnotationProperty: OverviewCustomResizableAnnotation;
38
- protected annotationBeforeSelectedAreaProperty: OverviewCustomResizableAnnotation;
39
- protected annotationAfterSelectedAreaProperty: OverviewCustomResizableAnnotation;
37
+ protected rangeSelectionAnnotationProperty: OverviewCustomResizableAnnotation | undefined;
38
+ protected annotationBeforeSelectedAreaProperty: OverviewCustomResizableAnnotation | undefined;
39
+ protected annotationAfterSelectedAreaProperty: OverviewCustomResizableAnnotation | undefined;
40
40
  private selectedAreaProperty;
41
41
  /**
42
42
  * Creates an instance of a OverviewRangeSelectionModifier