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
@@ -40,6 +40,7 @@ exports.licenseManager = exports.updateLicenseDisplay = exports.getLicenseInfo =
40
40
  var app_1 = require("../../constants/app");
41
41
  var BuildStamp_1 = require("../../Core/BuildStamp");
42
42
  var Dictionary_1 = require("../../Core/Dictionary");
43
+ var Globals_1 = require("../../Core/Globals");
43
44
  var localStorageApi_1 = require("../../Core/storage/localStorageApi");
44
45
  var Telemetry_1 = require("../../Core/Telemetry");
45
46
  var Color_1 = require("../../types/Color");
@@ -133,8 +134,10 @@ var setRuntimeLicenseKey = function (value) {
133
134
  var prev = runtimeLicenseKey;
134
135
  runtimeLicenseKey = value;
135
136
  if (runtimeLicenseKey !== prev && runtimeLicenseKey !== "") {
136
- if (licenseContext2D !== undefined) {
137
- (0, exports.applyLicense)(licenseContext2D, sciChartSurface2D);
137
+ if (Globals_1.sciChartDestinations.length > 0) {
138
+ var sciChartSurface = Globals_1.sciChartDestinations[0].sciChartSurface;
139
+ // @ts-ignore
140
+ (0, exports.applyLicense)(sciChartSurface.sharedWasmContext, sciChartSurface);
138
141
  }
139
142
  }
140
143
  };
@@ -152,13 +155,16 @@ var setServerLicenseEndpoint = function (value) {
152
155
  serverLicenseEndpoint = value;
153
156
  };
154
157
  var getLicenseFailCounts = 0;
158
+ // TODO cleanup on surface delete
155
159
  var wizardTimer;
156
- var callbacks3D = {
160
+ var licenseChallengeTimeout;
161
+ var callbacks3DInitialValue = {
157
162
  getLicenseChallenge3D: function () { return undefined; },
158
163
  setChallengeResponse3D: function (token) { return undefined; },
159
164
  setNewLicense3D: function (keyCode) { return undefined; },
160
165
  updateLicenseDisplay3D: function () { return undefined; }
161
166
  };
167
+ var callbacks3D = callbacks3DInitialValue;
162
168
  var setCallbacks3D = function (callbacks) { return (callbacks3D = callbacks); };
163
169
  exports.setCallbacks3D = setCallbacks3D;
164
170
  var getlicenseFromWizard = function (licenseContext, sciChartSurface) { return __awaiter(void 0, void 0, void 0, function () {
@@ -166,7 +172,12 @@ var getlicenseFromWizard = function (licenseContext, sciChartSurface) { return _
166
172
  return __generator(this, function (_b) {
167
173
  switch (_b.label) {
168
174
  case 0:
169
- _b.trys.push([0, 5, , 6]);
175
+ if (sciChartSurface.isDeleted) {
176
+ return [2 /*return*/];
177
+ }
178
+ _b.label = 1;
179
+ case 1:
180
+ _b.trys.push([1, 6, , 7]);
170
181
  if (checkStatus !== licensingClasses_1.LicenseCheckStatus.StartLookingForLicenseWizard &&
171
182
  checkStatus !== licensingClasses_1.LicenseCheckStatus.LookingForLicenseWizard &&
172
183
  checkStatus !== licensingClasses_1.LicenseCheckStatus.NoLicenseInWizard)
@@ -174,11 +185,11 @@ var getlicenseFromWizard = function (licenseContext, sciChartSurface) { return _
174
185
  debug("Trying to get license from local license wizard");
175
186
  response = void 0;
176
187
  return [4 /*yield*/, licenseDependencies.fetchFromWizard("/license")];
177
- case 1:
188
+ case 2:
178
189
  response = _b.sent();
179
- if (!response.ok) return [3 /*break*/, 3];
190
+ if (!response.ok) return [3 /*break*/, 4];
180
191
  return [4 /*yield*/, response.text()];
181
- case 2:
192
+ case 3:
182
193
  keyCode = _b.sent();
183
194
  _a = setNewLicense(keyCode, licenseContext, sciChartSurface), requiresValidation = _a.requiresValidation, trialExpired = _a.trialExpired;
184
195
  if (requiresValidation) {
@@ -195,21 +206,21 @@ var getlicenseFromWizard = function (licenseContext, sciChartSurface) { return _
195
206
  debug("Got a valid license from local license wizard.");
196
207
  checkStatus = licensingClasses_1.LicenseCheckStatus.LicenseOK;
197
208
  }
198
- return [3 /*break*/, 4];
199
- case 3:
209
+ return [3 /*break*/, 5];
210
+ case 4:
200
211
  checkStatus = licensingClasses_1.LicenseCheckStatus.NoLicenseInWizard;
201
212
  debug("No license available in licensing wizard. Trying again in ".concat(retryTime, " seconds"));
202
213
  wizardTimer = setTimeout(function () { return getlicenseFromWizard(licenseContext, sciChartSurface); }, retryTime * 1000);
203
- _b.label = 4;
204
- case 4: return [3 /*break*/, 6];
205
- case 5:
214
+ _b.label = 5;
215
+ case 5: return [3 /*break*/, 7];
216
+ case 6:
206
217
  err_3 = _b.sent();
207
218
  checkStatus = licensingClasses_1.LicenseCheckStatus.LookingForLicenseWizard;
208
219
  // Failed to connect. Retry
209
220
  getLicenseFailCounts += 1;
210
221
  if (getLicenseFailCounts < maxretries) {
211
222
  debug("Could not find licensing wizard. Trying again in ".concat(retryTime, " seconds"));
212
- setTimeout(function () { return getlicenseFromWizard(licenseContext, sciChartSurface); }, retryTime * 1000);
223
+ wizardTimer = setTimeout(function () { return getlicenseFromWizard(licenseContext, sciChartSurface); }, retryTime * 1000);
213
224
  }
214
225
  else {
215
226
  // give up.
@@ -217,12 +228,12 @@ var getlicenseFromWizard = function (licenseContext, sciChartSurface) { return _
217
228
  getLicenseFailCounts = 0;
218
229
  checkStatus = licensingClasses_1.LicenseCheckStatus.FailedToFindLicenseWizard;
219
230
  }
220
- return [3 /*break*/, 6];
221
- case 6:
222
- if (licenseContext !== undefined) {
231
+ return [3 /*break*/, 7];
232
+ case 7:
233
+ if (licenseContext !== undefined && !sciChartSurface.isDeleted) {
223
234
  (0, exports.updateLicenseDisplay)((0, exports.getLicenseInfo)(licenseContext), sciChartSurface, true, true);
235
+ callbacks3D.updateLicenseDisplay3D();
224
236
  }
225
- callbacks3D.updateLicenseDisplay3D();
226
237
  return [2 /*return*/];
227
238
  }
228
239
  });
@@ -247,10 +258,6 @@ var getLicenseCookie = function () {
247
258
  return { key: parts[0], token: null, expiry: null, lastValidated: null };
248
259
  };
249
260
  exports.getLicenseCookie = getLicenseCookie;
250
- var refreshLicense = function () {
251
- (0, cookie_1.deleteCookie)("scLicense");
252
- (0, exports.applyLicense)(licenseContext2D, sciChartSurface2D);
253
- };
254
261
  var setChallengeResponse = function (token, licenseContext) {
255
262
  var expirySeconds = -1;
256
263
  if (licenseContext !== undefined) {
@@ -263,11 +270,14 @@ var setChallengeResponse = function (token, licenseContext) {
263
270
  };
264
271
  var challengeFailCounts = 0;
265
272
  var dolicenseChallenge = function (licenseContext, sciChartSurface) { return __awaiter(void 0, void 0, void 0, function () {
266
- var server, challenge, orderId, response, queryString, url, url, token, expirySeconds, key, timeNow, timeToExpiry, err_4, expiry, msg;
273
+ var server, challenge, orderId, response, queryString, url, url, token, expirySeconds, key, timeNow, timeToExpiry, err_4, sciChartSurface2D, expiry, msg;
267
274
  var _a;
268
275
  return __generator(this, function (_b) {
269
276
  switch (_b.label) {
270
277
  case 0:
278
+ if (sciChartSurface.isDeleted) {
279
+ return [2 /*return*/];
280
+ }
271
281
  server = licenseManager2dState_1.licenseManager2dState.getIsDev() ? "license wizard" : "server";
272
282
  _b.label = 1;
273
283
  case 1:
@@ -321,7 +331,7 @@ var dolicenseChallenge = function (licenseContext, sciChartSurface) { return __a
321
331
  checkStatus = licensingClasses_1.LicenseCheckStatus.LicenseOK;
322
332
  timeToExpiry = expirySeconds - timeNow;
323
333
  challengeFailCounts = 0;
324
- setTimeout(function () { return dolicenseChallenge(licenseContext, sciChartSurface); }, Math.floor(timeToExpiry * 0.95 * 1000)); // Allow 5%
334
+ licenseChallengeTimeout = setTimeout(function () { return dolicenseChallenge(licenseContext, sciChartSurface); }, Math.floor(timeToExpiry * 0.95 * 1000)); // Allow 5%
325
335
  }
326
336
  else {
327
337
  // Something went wrong with the apply
@@ -359,17 +369,20 @@ var dolicenseChallenge = function (licenseContext, sciChartSurface) { return __a
359
369
  licenseManager2dState_1.licenseManager2dState.setIsDev(true);
360
370
  checkStatus = licensingClasses_1.LicenseCheckStatus.StartLookingForLicenseWizard;
361
371
  getlicenseFromWizard(licenseContext, sciChartSurface);
362
- if (licenseContext2D !== undefined) {
363
- (0, exports.updateLicenseDisplay)((0, exports.getLicenseInfo)(licenseContext2D), sciChartSurface2D, true, false);
372
+ if (Globals_1.sciChartDestinations.length > 0 && !sciChartSurface.isDeleted) {
373
+ sciChartSurface2D = Globals_1.sciChartDestinations[0].sciChartSurface;
374
+ (0, exports.updateLicenseDisplay)(
375
+ //@ts-ignore
376
+ (0, exports.getLicenseInfo)(sciChartSurface2D.sharedWasmContext), sciChartSurface2D, true, false);
377
+ callbacks3D.updateLicenseDisplay3D();
364
378
  }
365
- callbacks3D.updateLicenseDisplay3D();
366
379
  return [2 /*return*/];
367
380
  }
368
381
  // Failed to connect. Retry
369
382
  challengeFailCounts += 1;
370
383
  if (challengeFailCounts < maxretries) {
371
384
  debug("Could not find ".concat(server, "/").concat(serverLicenseEndpoint, ". Trying again in ").concat(retryTime, " seconds"));
372
- setTimeout(function () { return dolicenseChallenge(licenseContext, sciChartSurface); }, retryTime * 1000);
385
+ licenseChallengeTimeout = setTimeout(function () { return dolicenseChallenge(licenseContext, sciChartSurface); }, retryTime * 1000);
373
386
  }
374
387
  else {
375
388
  expiry = (0, exports.getLicenseCookie)().expiry;
@@ -384,56 +397,50 @@ var dolicenseChallenge = function (licenseContext, sciChartSurface) { return __a
384
397
  }
385
398
  return [3 /*break*/, 12];
386
399
  case 12:
387
- if (licenseContext !== undefined) {
400
+ if (licenseContext !== undefined && !sciChartSurface.isDeleted) {
388
401
  (0, exports.updateLicenseDisplay)((0, exports.getLicenseInfo)(licenseContext), sciChartSurface, true, true);
402
+ callbacks3D.updateLicenseDisplay3D();
389
403
  }
390
- callbacks3D.updateLicenseDisplay3D();
391
404
  return [2 /*return*/];
392
405
  }
393
406
  });
394
407
  }); };
395
408
  var shouldApplyLicense2D = true;
396
409
  var checkStatus = licensingClasses_1.LicenseCheckStatus.NoLicense;
397
- var licenseContext2D;
398
- var sciChartSurface2D;
410
+ // let licenseContext2D: TLicenseContext;
411
+ // let sciChartSurface2D: SciChartSurfaceBase;
399
412
  var isRuntimeKey = false;
413
+ var communityNotice = false;
400
414
  var applyLicense2D = function (licenseContext, sciChartSurface, isSingle) {
401
415
  debug("applyLicense 2D");
402
- if (shouldApplyLicense2D) {
403
- sciChartSurface2D = sciChartSurface;
404
- licenseContext2D = licenseContext;
405
- }
416
+ // if (shouldApplyLicense2D) {
417
+ // sciChartSurface2D = sciChartSurface;
418
+ // licenseContext2D = licenseContext;
419
+ // }
406
420
  if (isSingle || shouldApplyLicense2D) {
407
421
  (0, exports.applyLicense)(licenseContext, sciChartSurface);
408
422
  }
409
423
  else {
410
424
  if (checkStatus !== licensingClasses_1.LicenseCheckStatus.LicenseOK) {
411
- (0, exports.updateLicenseDisplay)((0, exports.getLicenseInfo)(licenseContext2D), sciChartSurface2D, true, false);
425
+ (0, exports.updateLicenseDisplay)((0, exports.getLicenseInfo)(licenseContext), sciChartSurface, true, false);
412
426
  }
413
427
  }
414
428
  if (!isSingle)
415
429
  shouldApplyLicense2D = false;
416
430
  };
417
431
  var applyLicense = function (licenseContext, sciChartSurface) {
418
- var _a;
432
+ var _a, _b;
419
433
  debug("applyLicense running");
420
434
  var licenseKey = "";
421
435
  var lt = licenseContext.SCRTCredentials.GetLicenseType();
422
436
  debug("Initial license status is " + licensingClasses_1.LicenseType[convertLicenseType(lt, licenseContext)]);
423
- if (window.location.hostname.includes(".csb.app") ||
424
- window.location.hostname === "codesandbox.io" ||
425
- window.location.hostname.includes(".codesandbox.io") ||
426
- window.location.hostname.includes("fiddle.jshell.net") ||
427
- window.location.hostname.includes("cdpn.io")) {
428
- runtimeLicenseKey = "builtin";
429
- }
430
437
  // Get from global store
431
438
  var runtimelicense = getRuntimeLicenseKey();
432
439
  if ((checkStatus === licensingClasses_1.LicenseCheckStatus.NoLicense ||
433
440
  checkStatus === licensingClasses_1.LicenseCheckStatus.LicenseOK ||
434
441
  checkStatus === licensingClasses_1.LicenseCheckStatus.StartLookingForLicenseWizard ||
435
442
  checkStatus === licensingClasses_1.LicenseCheckStatus.LookingForLicenseWizard) &&
436
- lt === licenseContext.SCRTLicenseType.LICENSE_TYPE_NO_LICENSE &&
443
+ lt === licenseContext.SCRTLicenseType.LICENSE_TYPE_COMMUNITY &&
437
444
  runtimelicense) {
438
445
  debug("Runtime license found");
439
446
  var sep = runtimelicense.indexOf(";");
@@ -449,6 +456,7 @@ var applyLicense = function (licenseContext, sciChartSurface) {
449
456
  debug("Runtime license status is " + licensingClasses_1.LicenseType[licenseType]);
450
457
  if (lt === licenseContext.SCRTLicenseType.LICENSE_TYPE_FULL ||
451
458
  lt === licenseContext.SCRTLicenseType.LICENSE_TYPE_TRIAL ||
459
+ lt === licenseContext.SCRTLicenseType.LICENSE_TYPE_COMMUNITY ||
452
460
  lt === licenseContext.SCRTLicenseType.LICENSE_TYPE_REQUIRES_VALIDATION) {
453
461
  isRuntimeKey = true;
454
462
  licenseKey = runtimelicense;
@@ -485,23 +493,30 @@ var applyLicense = function (licenseContext, sciChartSurface) {
485
493
  debug("License cookie is invalid. " + licenseContext.SCRTCredentials.GetLicenseErrors());
486
494
  (0, cookie_1.deleteCookie)("scLicense");
487
495
  licenseKey = "";
488
- lt = licenseContext.SCRTLicenseType.LICENSE_TYPE_NO_LICENSE;
496
+ lt = licenseContext.SCRTLicenseType.LICENSE_TYPE_COMMUNITY;
489
497
  }
490
498
  }
491
499
  else if (checkStatus === licensingClasses_1.LicenseCheckStatus.FetchingFromServer) {
492
500
  checkStatus = licensingClasses_1.LicenseCheckStatus.NoLicense;
493
501
  }
494
502
  if (licenseKey !== "") {
495
- if (lt === licenseContext.SCRTLicenseType.LICENSE_TYPE_NO_LICENSE) {
503
+ if (lt === licenseContext.SCRTLicenseType.LICENSE_TYPE_COMMUNITY) {
496
504
  // Set the license if we haven't already
497
505
  licenseContext.SCRTCredentials.SetRuntimeLicenseKeyW(licenseKey);
498
506
  lt = licenseContext.SCRTCredentials.GetLicenseType();
499
507
  }
500
508
  licenseManager2dState_1.licenseManager2dState.setIsDev(licenseContext.SCRTCredentials.GetAllowDebugging());
501
509
  if (lt === licenseContext.SCRTLicenseType.LICENSE_TYPE_FULL ||
502
- lt === licenseContext.SCRTLicenseType.LICENSE_TYPE_TRIAL) {
510
+ lt === licenseContext.SCRTLicenseType.LICENSE_TYPE_TRIAL ||
511
+ lt === licenseContext.SCRTLicenseType.LICENSE_TYPE_COMMUNITY) {
503
512
  checkStatus = licensingClasses_1.LicenseCheckStatus.LicenseOK;
504
513
  debug("license ok");
514
+ if (lt === licenseContext.SCRTLicenseType.LICENSE_TYPE_COMMUNITY && isRuntimeKey && !communityNotice) {
515
+ console.log("Using SciChart Community Edition. To use a license from the License Wizard, remove the call to UseCommunityLicense");
516
+ var daysRemaining = licenseContext.SCRTCredentials.GetLicenseDaysRemaining();
517
+ console.log("The community license is valid for 6 months from the date the version in use was released. This version ".concat(BuildStamp_1.libraryVersion, " has ").concat(daysRemaining, " day").concat(daysRemaining === 1 ? "" : "s", " remaining"));
518
+ communityNotice = true;
519
+ }
505
520
  }
506
521
  else if (licenseContext.SCRTCredentials.RequiresValidation()) {
507
522
  debug("license requires validation");
@@ -542,8 +557,17 @@ var applyLicense = function (licenseContext, sciChartSurface) {
542
557
  }
543
558
  }
544
559
  debug("checkstatus: " + licensingClasses_1.LicenseCheckStatus[checkStatus]);
545
- if (checkStatus === licensingClasses_1.LicenseCheckStatus.NoLicense && useLicenseWizard) {
546
- if (wizardTimer === undefined) {
560
+ if (checkStatus === licensingClasses_1.LicenseCheckStatus.NoLicense) {
561
+ if (lt === licenseContext.SCRTLicenseType.LICENSE_TYPE_COMMUNITY && !communityNotice) {
562
+ console.log("Defaulting to SciChart Community Edition. Usage constitutes acceptance of EULA at https://scichart.com/JSCommunityEULA. See https://store.scichart.com for commercial licensing options.");
563
+ var daysRemaining = licenseContext.SCRTCredentials.GetLicenseDaysRemaining();
564
+ console.log("The community license is valid for 6 months from the date the version in use was released. This version ".concat(BuildStamp_1.libraryVersion, " has ").concat(daysRemaining, " day").concat(daysRemaining === 1 ? "" : "s", " remaining"));
565
+ if (!app_1.IS_TEST_ENV && ((_b = document === null || document === void 0 ? void 0 : document.location) === null || _b === void 0 ? void 0 : _b.hostname.startsWith("localhost")) && useLicenseWizard) {
566
+ console.log("Looking for paid developer activation from licensing wizard... To disable this call SciChartSurface.UseCommunityLicense()");
567
+ }
568
+ communityNotice = true;
569
+ }
570
+ if (wizardTimer === undefined && useLicenseWizard) {
547
571
  checkStatus = licensingClasses_1.LicenseCheckStatus.StartLookingForLicenseWizard;
548
572
  licenseManager2dState_1.licenseManager2dState.setIsDev(true);
549
573
  getlicenseFromWizard(licenseContext, sciChartSurface);
@@ -551,8 +575,8 @@ var applyLicense = function (licenseContext, sciChartSurface) {
551
575
  }
552
576
  if (licenseContext !== undefined) {
553
577
  (0, exports.updateLicenseDisplay)((0, exports.getLicenseInfo)(licenseContext), sciChartSurface, true, false);
578
+ callbacks3D.updateLicenseDisplay3D();
554
579
  }
555
- callbacks3D.updateLicenseDisplay3D();
556
580
  };
557
581
  exports.applyLicense = applyLicense;
558
582
  var licenseModal;
@@ -697,6 +721,9 @@ var LICENSE_MSG_CLASS_CHILD = "licenseMessageChild";
697
721
  var licenseMessageDiv = null;
698
722
  var licenseMessageDivChild = null;
699
723
  var updateLicenseMessageDOM = function (divContainer, licenseMsgDiv) {
724
+ if (!divContainer) {
725
+ return;
726
+ }
700
727
  var msgCloneOther = licenseMsgDiv.cloneNode(true);
701
728
  var lms = divContainer.getElementsByClassName(LICENSE_MSG_CLASS);
702
729
  if (lms.length > 0) {
@@ -720,6 +747,10 @@ var convertLicenseType = function (sclt, licenseContext) {
720
747
  licenseType = licensingClasses_1.LicenseType.Trial;
721
748
  break;
722
749
  }
750
+ case licenseContext.SCRTLicenseType.LICENSE_TYPE_COMMUNITY: {
751
+ licenseType = licensingClasses_1.LicenseType.Community;
752
+ break;
753
+ }
723
754
  case licenseContext.SCRTLicenseType.LICENSE_TYPE_FULL: {
724
755
  licenseType = licensingClasses_1.LicenseType.Full;
725
756
  break;
@@ -756,7 +787,12 @@ var getLicenseInfo = function (licenseContext) {
756
787
  var licenseType = convertLicenseType(sclt, licenseContext);
757
788
  var daysRemaining = licenseContext.SCRTCredentials.GetLicenseDaysRemaining();
758
789
  if (checkStatus === licensingClasses_1.LicenseCheckStatus.LicenseOK && licenseManager2dState_1.licenseManager2dState.getLicenseType() !== licenseType) {
759
- licenseManager2dState_1.licenseManager2dState.setOrderId(licenseContext.SCRTCredentials.GetEncryptedOrderId());
790
+ if (licenseType === licensingClasses_1.LicenseType.Community) {
791
+ licenseManager2dState_1.licenseManager2dState.setOrderId("Community");
792
+ }
793
+ else {
794
+ licenseManager2dState_1.licenseManager2dState.setOrderId(licenseContext.SCRTCredentials.GetEncryptedOrderId());
795
+ }
760
796
  licenseManager2dState_1.licenseManager2dState.setProductCode(licenseContext.SCRTCredentials.GetProductCode());
761
797
  licenseManager2dState_1.licenseManager2dState.setLicenseType(licenseType);
762
798
  licenseManager2dState_1.licenseManager2dState.setDevCount(licenseContext.SCRTCredentials.GetDeveloperCount());
@@ -816,6 +852,8 @@ var updateLicenseDisplayInternal = function (licenseInfo, sciChartSurface, is2D,
816
852
  premsg = "Sorry! Your license key is invalid for this domain</br>Please ".concat(contactSupportLink, " with your OrderID if you believe this to be incorrect.");
817
853
  else if (error.startsWith("This version of SciChart can no longer be trialed"))
818
854
  premsg = "Sorry! This version of SciChart is too old to be trialed. Please update to the latest version";
855
+ else if (error.startsWith("This version of SciChart can no longer be used for the community edition"))
856
+ premsg = "Sorry! This version of SciChart is too old to be used for the community edition. Please update to the latest version";
819
857
  else
820
858
  premsg = "Sorry! Your license key appears to be invalid</br>Please ".concat(contactSupportLink, " with your OrderID if you believe this to be incorrect.");
821
859
  postMsg = "Instructions can be seen at ".concat(licensingLink);
@@ -848,7 +886,11 @@ var updateLicenseDisplayInternal = function (licenseInfo, sciChartSurface, is2D,
848
886
  else if (licenseType === licensingClasses_1.LicenseType.Trial && daysRemaining <= 7) {
849
887
  premsg = "You have ".concat(daysRemaining, " day").concat(daysRemaining === 1 ? "" : "s", " remaining of the trial.");
850
888
  }
851
- else if (licenseType === licensingClasses_1.LicenseType.Full || (licenseType === licensingClasses_1.LicenseType.Trial && daysRemaining > 7)) {
889
+ else if (licenseType === licensingClasses_1.LicenseType.Community && daysRemaining <= 7) {
890
+ premsg = "You have ".concat(daysRemaining, " day").concat(daysRemaining === 1 ? "" : "s", " remaining on the community license for this version. Please update to the latest version of SciChart");
891
+ }
892
+ else if (licenseType === licensingClasses_1.LicenseType.Full ||
893
+ ((licenseType === licensingClasses_1.LicenseType.Trial || licenseType === licensingClasses_1.LicenseType.Community) && daysRemaining > 7)) {
852
894
  licenseMessageDiv.style.display = "none";
853
895
  licenseMessageDivChild.innerHTML = "";
854
896
  }
@@ -930,9 +972,19 @@ var updateLicenseDisplayInternal = function (licenseInfo, sciChartSurface, is2D,
930
972
  });
931
973
  }
932
974
  };
975
+ var clear = function () {
976
+ if (!Globals_1.sciChartDestinations.length && !Globals_1.sciChartSingleDestinations.length && !Globals_1.sciChart3DDestinations.length) {
977
+ clearTimeout(wizardTimer);
978
+ clearTimeout(licenseChallengeTimeout);
979
+ (0, exports.setCallbacks3D)(callbacks3DInitialValue);
980
+ licenseMessageDivChild = null;
981
+ licenseMessageDiv = null;
982
+ }
983
+ };
933
984
  var updateLicenseDisplay = function (licenseInfo, sciChartSurface, is2D, applyToOther) { return licenseDependencies.updateLicenseDisplay(licenseInfo, sciChartSurface, is2D, applyToOther); };
934
985
  exports.updateLicenseDisplay = updateLicenseDisplay;
935
986
  exports.licenseManager = {
987
+ clear: clear,
936
988
  setRuntimeLicenseKey: function (value) { return (0, exports.setRuntimeLicenseKey)(value); },
937
989
  setIsDebugLicensing: function (value) { return (0, exports.setIsDebugLicensing)(value); },
938
990
  setLicenseCallback: function (callback) { return (0, exports.setLicenseCallback)(callback); },
@@ -43,7 +43,9 @@ var DefaultSciChartLoader = /** @class */ (function () {
43
43
  try {
44
44
  domChartRoot.removeChild(loaderElement);
45
45
  }
46
- catch (_a) { }
46
+ catch (err) {
47
+ console.error(err);
48
+ }
47
49
  };
48
50
  DefaultSciChartLoader.prototype.toJSON = function () {
49
51
  return { type: this.type };
@@ -10,7 +10,7 @@ declare const sciChartInitCommon: {
10
10
  checkChartDivExists: (divElement: string | HTMLDivElement) => void;
11
11
  ECanvasType: typeof ECanvasType;
12
12
  getCanvas2dId: (divElementId: string) => string;
13
- initCanvas: (divElement: string | HTMLDivElement, aspectWidth: number, aspectHeight: number, activeCanvas?: ECanvasType, disableAspect?: boolean) => TSciChartSurfaceCanvases;
13
+ initCanvas: (divElement: string | HTMLDivElement, aspectWidth: number, aspectHeight: number, activeCanvas?: ECanvasType, disableAspect?: boolean, touchAction?: string) => TSciChartSurfaceCanvases;
14
14
  subscribeToResize: (chartRoot: HTMLDivElement, aspect: number, sciChartSurface: ISciChartSurfaceBase, disableAspect?: boolean) => IDeletable;
15
15
  };
16
16
  export default sciChartInitCommon;
@@ -69,7 +69,7 @@ var getMaxHeight = function (divElement) {
69
69
  * @param activeCanvas - ECanvasType.canvasWebGL for sciChartSurface.createSingle, ECanvasType.canvas2D for copy canvas,
70
70
  * ECanvasType.svg for SciChartPieSurface
71
71
  */
72
- var initCanvas = function (divElement, aspectWidth, aspectHeight, activeCanvas, disableAspect) {
72
+ var initCanvas = function (divElement, aspectWidth, aspectHeight, activeCanvas, disableAspect, touchAction) {
73
73
  if (activeCanvas === void 0) { activeCanvas = ECanvasType.canvasWebGL; }
74
74
  WebGlHelper_1.WebGlHelper.initialize();
75
75
  DpiHelper_1.DpiHelper.initialize();
@@ -121,7 +121,11 @@ var initCanvas = function (divElement, aspectWidth, aspectHeight, activeCanvas,
121
121
  canvas2D.style.display = "block";
122
122
  }
123
123
  chartRoot.appendChild(canvas2D);
124
+ // used to prevent default browser behavior on touchscreen
125
+ canvas2D.style.touchAction = touchAction !== null && touchAction !== void 0 ? touchAction : "none";
124
126
  canvas2D.onselectstart = function () { return false; };
127
+ // prevents default browser behavior of dragging the selected elements
128
+ // canvas2D.ondragstart = () => false;
125
129
  // SVG Root Element
126
130
  var svgRootElement = document.createElementNS("http://www.w3.org/2000/svg", "svg");
127
131
  svgRootElement.id = "".concat(divElementId, "_SVG");
@@ -333,5 +333,5 @@ export declare class CameraController implements ICameraController {
333
333
  /**
334
334
  * @inheritDoc
335
335
  */
336
- debugOutput(): void;
336
+ debugOutput(): string[];
337
337
  }
@@ -31,6 +31,7 @@ var CameraController = /** @class */ (function () {
31
31
  function CameraController(webAssemblyContext, options) {
32
32
  var _a;
33
33
  this.aspectRatioProperty = 1.5;
34
+ this.idProperty = "Default";
34
35
  this.farClipProperty = 4000;
35
36
  this.fieldOfViewProperty = 60;
36
37
  this.nearClipProperty = 1;
@@ -508,13 +509,26 @@ var CameraController = /** @class */ (function () {
508
509
  * @inheritDoc
509
510
  */
510
511
  CameraController.prototype.debugOutput = function () {
511
- console.log("Camera properties: ");
512
- console.log(" projectionMode: ".concat(this.projectionMode));
513
- console.log(" position: ".concat(this.position.toString()));
514
- console.log(" target: ".concat(this.target.toString()));
515
- console.log(" up: ".concat(this.up.toString()));
516
- console.log(" pitch: ".concat(this.orbitalPitch.toFixed(2)));
517
- console.log(" yaw: ".concat(this.orbitalYaw.toFixed(2)));
512
+ var debugOutput = [
513
+ "Camera id='".concat(this.id, "': "),
514
+ " position: ".concat(this.position.toString()),
515
+ " target: ".concat(this.target.toString()),
516
+ " pitch: ".concat(this.orbitalPitch.toFixed(2), " degrees"),
517
+ " yaw: ".concat(this.orbitalYaw.toFixed(2), " degrees"),
518
+ " up Vector: ".concat(this.up.toString()),
519
+ " forward Vector: ".concat(this.forward.toString()),
520
+ " projectionMode: ".concat(this.projectionMode)
521
+ ];
522
+ if (this.projectionMode === ECameraProjectionMode.Orthogonal) {
523
+ debugOutput.push(" orthoWidth: ".concat(this.orthoWidth.toFixed(2)));
524
+ debugOutput.push(" orthoHeight: ".concat(this.orthoHeight.toFixed(2)));
525
+ }
526
+ else {
527
+ debugOutput.push(" radius: ".concat(this.radius.toFixed(2)));
528
+ debugOutput.push(" fieldOfView: ".concat(this.fieldOfView.toFixed(2), " degrees"));
529
+ }
530
+ debugOutput.forEach(function (line) { return console.log(line); });
531
+ return debugOutput;
518
532
  };
519
533
  return CameraController;
520
534
  }());
@@ -21,6 +21,7 @@ export declare abstract class ChartModifierBase3D extends ChartModifierBase<SciC
21
21
  * The type of chartmodifier. See {@link EChart3DModifierType} for available options
22
22
  */
23
23
  abstract readonly type: EChart3DModifierType | string;
24
+ protected typeMap: Map<string, string>;
24
25
  /**
25
26
  * Creates an instance of a {@link ChartModifierBase3D}
26
27
  * @param options Optional parameters of type {@link IChartModifierBase3DOptions} used to configure the modifier
@@ -28,7 +28,10 @@ var ChartModifierBase3D = /** @class */ (function (_super) {
28
28
  * @param options Optional parameters of type {@link IChartModifierBase3DOptions} used to configure the modifier
29
29
  */
30
30
  function ChartModifierBase3D(options) {
31
- return _super.call(this, options) || this;
31
+ var _this = _super.call(this, options) || this;
32
+ // used to track if registered types were used for function properties, so they can be serialized
33
+ _this.typeMap = new Map();
34
+ return _this;
32
35
  }
33
36
  Object.defineProperty(ChartModifierBase3D.prototype, "modifierType", {
34
37
  /**
@@ -1,10 +1,14 @@
1
1
  import { ModifierMouseArgs } from "../../Charting/ChartModifiers/ModifierMouseArgs";
2
2
  import { EChart3DModifierType } from "../../types/ChartModifierType";
3
- import { ChartModifierBase3D, IChartModifierBase3DOptions } from "./ChartModifierBase3D";
3
+ import { IPinchZoomModifier3DOptions, PinchZoomModifier3D } from "./PinchZoomModifier3D";
4
4
  /**
5
5
  * Optional parameters passed to the constructor of {@link OrbitModifier3D} to configure it
6
6
  */
7
- export interface IOrbitModifier3DOptions extends IChartModifierBase3DOptions {
7
+ export interface IOrbitModifier3DOptions extends IPinchZoomModifier3DOptions {
8
+ /**
9
+ * Sets whether to enable pinch zoom behavior of {@link SciChartSurface} on touchscreen devices
10
+ */
11
+ enableZoom?: boolean;
8
12
  }
9
13
  /**
10
14
  * @summary The {@link OrbitModifier3D} provides behavior to orbit around a target point on a 3D {@link SciChart3DSurface}
@@ -19,13 +23,15 @@ export interface IOrbitModifier3DOptions extends IChartModifierBase3DOptions {
19
23
  * sciChart3DSurface.chartModifiers.add(new OrbitModifier3D());
20
24
  * ```
21
25
  */
22
- export declare class OrbitModifier3D extends ChartModifierBase3D {
26
+ export declare class OrbitModifier3D extends PinchZoomModifier3D {
23
27
  /**
24
28
  * @inheritDoc
25
29
  */
26
30
  readonly type = EChart3DModifierType.Orbit;
27
- private pointStart;
28
- private isDragging;
31
+ /**
32
+ * Sets whether to enable pinch zoom behavior of {@link SciChartSurface} on touchscreen devices
33
+ */
34
+ enableZoom: boolean;
29
35
  constructor(options?: IOrbitModifier3DOptions);
30
36
  /**
31
37
  * @inheritDoc
@@ -39,4 +45,10 @@ export declare class OrbitModifier3D extends ChartModifierBase3D {
39
45
  * @inheritDoc
40
46
  */
41
47
  modifierMouseUp(args: ModifierMouseArgs): void;
48
+ toJSON(): {
49
+ type: string;
50
+ options: Required<Omit<import("./ChartModifierBase3D").IChartModifierBase3DOptions, never>>;
51
+ };
52
+ protected performModifierAction(args: ModifierMouseArgs): void;
53
+ protected getIsActionAllowed(args: ModifierMouseArgs): boolean;
42
54
  }