scichart 2.0.2139 → 2.0.2185

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 (379) hide show
  1. package/Builder/buildAnnotations.js +11 -10
  2. package/Builder/buildAxis.js +7 -6
  3. package/Builder/buildDataSeries.js +3 -6
  4. package/Builder/buildModifiers.js +17 -16
  5. package/Builder/buildSeries.d.ts +1 -1
  6. package/Builder/buildSeries.js +21 -20
  7. package/Builder/buildSurface.js +29 -27
  8. package/Builder/chartBuilder.d.ts +10 -162
  9. package/Builder/chartBuilder.js +9 -6
  10. package/Builder/classFactory.js +12 -6
  11. package/Charting/ChartModifiers/ChartModifierBase.js +1 -1
  12. package/Charting/ChartModifiers/ChartModifierBase2D.d.ts +1 -1
  13. package/Charting/ChartModifiers/ChartModifierBase2D.js +11 -6
  14. package/Charting/ChartModifiers/CursorModifier.d.ts +23 -3
  15. package/Charting/ChartModifiers/CursorModifier.js +72 -40
  16. package/Charting/ChartModifiers/DataPointSelectionModifier.d.ts +1 -1
  17. package/Charting/ChartModifiers/DataPointSelectionModifier.js +18 -16
  18. package/Charting/ChartModifiers/LegendModifier.d.ts +1 -1
  19. package/Charting/ChartModifiers/LegendModifier.js +4 -1
  20. package/Charting/ChartModifiers/ModifierMouseArgs.js +4 -3
  21. package/Charting/ChartModifiers/MouseWheelZoomModifier.d.ts +52 -2
  22. package/Charting/ChartModifiers/MouseWheelZoomModifier.js +105 -10
  23. package/Charting/ChartModifiers/OverviewRangeSelectionModifier.d.ts +2 -2
  24. package/Charting/ChartModifiers/OverviewRangeSelectionModifier.js +13 -10
  25. package/Charting/ChartModifiers/PinchZoomModifier.d.ts +1 -1
  26. package/Charting/ChartModifiers/PinchZoomModifier.js +4 -2
  27. package/Charting/ChartModifiers/RolloverModifier.d.ts +1 -1
  28. package/Charting/ChartModifiers/RolloverModifier.js +27 -20
  29. package/Charting/ChartModifiers/RubberBandXyZoomModifier.d.ts +1 -1
  30. package/Charting/ChartModifiers/RubberBandXyZoomModifier.js +11 -9
  31. package/Charting/ChartModifiers/SeriesSelectionModifier.d.ts +1 -1
  32. package/Charting/ChartModifiers/SeriesSelectionModifier.js +9 -7
  33. package/Charting/ChartModifiers/XAxisDragModifier.d.ts +1 -1
  34. package/Charting/ChartModifiers/XAxisDragModifier.js +12 -10
  35. package/Charting/ChartModifiers/YAxisDragModifier.d.ts +1 -1
  36. package/Charting/ChartModifiers/YAxisDragModifier.js +12 -10
  37. package/Charting/ChartModifiers/ZoomExtentsModifier.d.ts +17 -1
  38. package/Charting/ChartModifiers/ZoomExtentsModifier.js +65 -10
  39. package/Charting/ChartModifiers/ZoomPanModifier.d.ts +4 -2
  40. package/Charting/ChartModifiers/ZoomPanModifier.js +25 -21
  41. package/Charting/Drawing/BaseCache.js +2 -2
  42. package/Charting/Drawing/BrushCache.js +12 -7
  43. package/Charting/Drawing/PaletteCache.js +4 -2
  44. package/Charting/Drawing/Pen2DCache.js +14 -9
  45. package/Charting/Drawing/SolidBrushCache.js +2 -2
  46. package/Charting/Drawing/TextureCache.js +4 -2
  47. package/Charting/Drawing/WebGlBrush.js +1 -1
  48. package/Charting/Drawing/WebGlPen.js +2 -2
  49. package/Charting/Drawing/WebGlRenderContext2D.js +5 -5
  50. package/Charting/LayoutManager/AxisLayoutHelpers.js +6 -4
  51. package/Charting/LayoutManager/BaseAxisLayoutStrategy.js +4 -4
  52. package/Charting/LayoutManager/BaseCenteredAxisLayoutStrategy.d.ts +1 -1
  53. package/Charting/LayoutManager/BaseCenteredAxisLayoutStrategy.js +3 -1
  54. package/Charting/LayoutManager/BottomAlignedInnerAxisLayoutStrategy.js +6 -4
  55. package/Charting/LayoutManager/BottomAlignedOuterAxisLayoutStrategy.js +6 -4
  56. package/Charting/LayoutManager/BottomAlignedOuterHorizontallyStackedAxisLayoutStrategy.js +7 -5
  57. package/Charting/LayoutManager/CentralAxesLayoutManager.js +7 -3
  58. package/Charting/LayoutManager/LayoutManager.js +2 -2
  59. package/Charting/LayoutManager/LeftAlignedInnerAxisLayoutStrategy.js +6 -4
  60. package/Charting/LayoutManager/LeftAlignedOuterAxisLayoutStrategy.js +6 -4
  61. package/Charting/LayoutManager/LeftAlignedOuterVerticallyStackedAxisLayoutStrategy.js +7 -5
  62. package/Charting/LayoutManager/RightAlignedInnerAxisLayoutStrategy.js +6 -4
  63. package/Charting/LayoutManager/RightAlignedOuterAxisLayoutStrategy.js +6 -4
  64. package/Charting/LayoutManager/RightAlignedOuterVerticallyStackedAxisLayoutStrategy.js +7 -5
  65. package/Charting/LayoutManager/SynchronizedLayoutManager.js +4 -2
  66. package/Charting/LayoutManager/TopAlignedInnerAxisLayoutStrategy.js +6 -4
  67. package/Charting/LayoutManager/TopAlignedOuterAxisLayoutStrategy.js +6 -4
  68. package/Charting/LayoutManager/TopAlignedOuterHorizontallyStackedAxisLayoutStrategy.js +7 -5
  69. package/Charting/Model/BaseDataSeries.d.ts +2 -2
  70. package/Charting/Model/BaseDataSeries.js +23 -20
  71. package/Charting/Model/BaseHeatmapDataSeries.js +5 -5
  72. package/Charting/Model/ChartData/HeatmapSeriesInfo.js +4 -2
  73. package/Charting/Model/ChartData/OhlcSeriesInfo.js +3 -1
  74. package/Charting/Model/ChartData/SeriesInfo.d.ts +1 -0
  75. package/Charting/Model/ChartData/SeriesInfo.js +15 -0
  76. package/Charting/Model/ChartData/StackedXySeriesInfo.js +3 -1
  77. package/Charting/Model/ChartData/XySeriesInfo.js +3 -1
  78. package/Charting/Model/ChartData/XyySeriesInfo.js +3 -1
  79. package/Charting/Model/DataPointSelectionPaletteProvider.js +2 -2
  80. package/Charting/Model/Filters/OhlcCustomFilter.js +7 -2
  81. package/Charting/Model/Filters/OhlcFilterBase.js +3 -1
  82. package/Charting/Model/Filters/OhlcScaleOffsetFilter.js +3 -1
  83. package/Charting/Model/Filters/XyCustomFilter.js +3 -1
  84. package/Charting/Model/Filters/XyFilterBase.js +9 -6
  85. package/Charting/Model/Filters/XyLinearTrendFilter.js +3 -1
  86. package/Charting/Model/Filters/XyMovingAverageFilter.js +3 -1
  87. package/Charting/Model/Filters/XyRatioFilter.js +6 -4
  88. package/Charting/Model/Filters/XyScaleOffsetFilter.js +3 -1
  89. package/Charting/Model/Filters/XyyCustomFilter.js +3 -1
  90. package/Charting/Model/Filters/XyyFilterBase.js +7 -5
  91. package/Charting/Model/Filters/XyyScaleOffsetFilter.js +3 -1
  92. package/Charting/Model/Filters/XyzCustomFilter.js +3 -1
  93. package/Charting/Model/Filters/XyzFilterBase.js +7 -5
  94. package/Charting/Model/Filters/XyzScaleOffsetFilter.js +3 -1
  95. package/Charting/Model/OhlcDataSeries.d.ts +2 -2
  96. package/Charting/Model/OhlcDataSeries.js +27 -25
  97. package/Charting/Model/PaletteFactory.js +3 -3
  98. package/Charting/Model/UniformHeatmapDataSeries.js +3 -1
  99. package/Charting/Model/XyDataSeries.js +9 -7
  100. package/Charting/Model/XyyDataSeries.d.ts +2 -2
  101. package/Charting/Model/XyyDataSeries.js +15 -13
  102. package/Charting/Model/XyzDataSeries.d.ts +2 -2
  103. package/Charting/Model/XyzDataSeries.js +15 -13
  104. package/Charting/Numerics/CoordinateCalculators/CategoryCoordinateCalculator.js +3 -1
  105. package/Charting/Numerics/CoordinateCalculators/FlippedCategoryCoordinateCalculator.js +3 -1
  106. package/Charting/Numerics/CoordinateCalculators/FlippedNumericCoordinateCalculator.js +3 -1
  107. package/Charting/Numerics/CoordinateCalculators/LogarithmicCoordinateCalculator.js +3 -1
  108. package/Charting/Numerics/CoordinateCalculators/NumericCoordinateCalculator.js +3 -1
  109. package/Charting/Numerics/TickCoordinateProviders/DefaultTickCoordinatesProvider.js +3 -1
  110. package/Charting/Numerics/TickProviders/LogarithmicTickProvider.js +7 -5
  111. package/Charting/Numerics/TickProviders/NumericTickProvider.js +4 -2
  112. package/Charting/Services/SciChartRenderer.d.ts +1 -0
  113. package/Charting/Services/SciChartRenderer.js +41 -22
  114. package/Charting/Services/Workers/TextureWorker.d.ts +16 -0
  115. package/Charting/Services/Workers/TextureWorker.js +138 -0
  116. package/Charting/Services/Workers/TextureWorkerSource.d.ts +1 -0
  117. package/Charting/Services/Workers/TextureWorkerSource.js +133 -0
  118. package/Charting/Themes/SciChartJSDarkTheme.js +3 -1
  119. package/Charting/Themes/SciChartJSDarkv2Theme.js +3 -1
  120. package/Charting/Themes/SciChartJSLightTheme.js +3 -1
  121. package/Charting/Visuals/Annotations/AnnotationBase.d.ts +1 -1
  122. package/Charting/Visuals/Annotations/AnnotationBase.js +71 -41
  123. package/Charting/Visuals/Annotations/AxisMarkerAnnotation.d.ts +28 -1
  124. package/Charting/Visuals/Annotations/AxisMarkerAnnotation.js +11 -9
  125. package/Charting/Visuals/Annotations/BoxAnnotation.d.ts +1 -1
  126. package/Charting/Visuals/Annotations/BoxAnnotation.js +18 -16
  127. package/Charting/Visuals/Annotations/CursorTooltipSvgAnnotation.d.ts +1 -1
  128. package/Charting/Visuals/Annotations/CursorTooltipSvgAnnotation.js +36 -14
  129. package/Charting/Visuals/Annotations/CustomAnnotation.d.ts +1 -1
  130. package/Charting/Visuals/Annotations/CustomAnnotation.js +3 -1
  131. package/Charting/Visuals/Annotations/HorizontalLineAnnotation.js +8 -6
  132. package/Charting/Visuals/Annotations/LineAnnotation.d.ts +1 -1
  133. package/Charting/Visuals/Annotations/LineAnnotation.js +21 -17
  134. package/Charting/Visuals/Annotations/OverviewCustomResizableAnnotation.js +20 -17
  135. package/Charting/Visuals/Annotations/RenderContextAnnotationBase.js +3 -1
  136. package/Charting/Visuals/Annotations/RolloverLegendSvgAnnotation.js +3 -1
  137. package/Charting/Visuals/Annotations/RolloverMarkerSvgAnnotation.js +4 -2
  138. package/Charting/Visuals/Annotations/RolloverTooltipSvgAnnotation.js +17 -15
  139. package/Charting/Visuals/Annotations/SvgAnnotationBase.d.ts +1 -1
  140. package/Charting/Visuals/Annotations/SvgAnnotationBase.js +23 -13
  141. package/Charting/Visuals/Annotations/TextAnnotation.d.ts +1 -1
  142. package/Charting/Visuals/Annotations/TextAnnotation.js +4 -2
  143. package/Charting/Visuals/Annotations/VerticalLineAnnotation.js +8 -6
  144. package/Charting/Visuals/Axis/AxisBase2D.d.ts +89 -58
  145. package/Charting/Visuals/Axis/AxisBase2D.js +118 -66
  146. package/Charting/Visuals/Axis/AxisCore.d.ts +7 -4
  147. package/Charting/Visuals/Axis/AxisCore.js +18 -32
  148. package/Charting/Visuals/Axis/AxisRenderer.d.ts +63 -0
  149. package/Charting/Visuals/Axis/AxisRenderer.js +92 -16
  150. package/Charting/Visuals/Axis/AxisTitleRenderer.js +7 -3
  151. package/Charting/Visuals/Axis/CategoryAxis.js +5 -2
  152. package/Charting/Visuals/Axis/CategoryAxisBase.js +10 -8
  153. package/Charting/Visuals/Axis/DeltaCalculator/CategoryDeltaCalculator.js +3 -1
  154. package/Charting/Visuals/Axis/DeltaCalculator/LogarithmicDeltaCalculator.js +3 -1
  155. package/Charting/Visuals/Axis/DeltaCalculator/NumericDeltaCalculator.js +3 -1
  156. package/Charting/Visuals/Axis/LabelProvider/DateLabelProvider.js +5 -3
  157. package/Charting/Visuals/Axis/LabelProvider/LabelCache.d.ts +41 -0
  158. package/Charting/Visuals/Axis/LabelProvider/LabelCache.js +164 -0
  159. package/Charting/Visuals/Axis/LabelProvider/LabelProvider.d.ts +1 -1
  160. package/Charting/Visuals/Axis/LabelProvider/LabelProviderBase2D.d.ts +57 -7
  161. package/Charting/Visuals/Axis/LabelProvider/LabelProviderBase2D.js +171 -74
  162. package/Charting/Visuals/Axis/LabelProvider/LogarithmicLabelProvider.js +5 -3
  163. package/Charting/Visuals/Axis/LabelProvider/NumericLabelProvider.js +5 -3
  164. package/Charting/Visuals/Axis/LabelProvider/SmartDateLabelProvider.js +30 -37
  165. package/Charting/Visuals/Axis/LabelProvider/TextLabelProvider.d.ts +5 -2
  166. package/Charting/Visuals/Axis/LabelProvider/TextLabelProvider.js +86 -5
  167. package/Charting/Visuals/Axis/LogarithmicAxis.d.ts +1 -3
  168. package/Charting/Visuals/Axis/LogarithmicAxis.js +14 -14
  169. package/Charting/Visuals/Axis/NumericAxis.js +5 -2
  170. package/Charting/Visuals/Axis/getAxisById.js +1 -1
  171. package/Charting/Visuals/Helpers/createNativeRect.js +2 -1
  172. package/Charting/Visuals/Helpers/createPen.js +4 -3
  173. package/Charting/Visuals/Helpers/createSolidBrush.js +5 -4
  174. package/Charting/Visuals/Helpers/drawBorder.js +6 -5
  175. package/Charting/Visuals/Helpers/drawLabel.js +10 -6
  176. package/Charting/Visuals/Legend/SciChartLegend.js +4 -2
  177. package/Charting/Visuals/Legend/SciChartLegendBase.js +16 -14
  178. package/Charting/Visuals/Legend/SciChartPieLegend.js +6 -4
  179. package/Charting/Visuals/PointMarkers/BasePointMarker.js +3 -3
  180. package/Charting/Visuals/PointMarkers/CrossPointMarker.js +3 -1
  181. package/Charting/Visuals/PointMarkers/EllipsePointMarker.js +3 -1
  182. package/Charting/Visuals/PointMarkers/SpritePointMarker.js +3 -1
  183. package/Charting/Visuals/PointMarkers/SquarePointMarker.js +3 -1
  184. package/Charting/Visuals/PointMarkers/TrianglePointMarker.js +3 -1
  185. package/Charting/Visuals/PointMarkers/XPointMarker.js +3 -1
  186. package/Charting/Visuals/RenderableSeries/Animations/BandAnimation.d.ts +2 -2
  187. package/Charting/Visuals/RenderableSeries/Animations/BandAnimation.js +8 -6
  188. package/Charting/Visuals/RenderableSeries/Animations/BandAnimationStyle.js +6 -4
  189. package/Charting/Visuals/RenderableSeries/Animations/BaseAnimationStyle.js +1 -1
  190. package/Charting/Visuals/RenderableSeries/Animations/BubbleAnimation.d.ts +2 -2
  191. package/Charting/Visuals/RenderableSeries/Animations/BubbleAnimation.js +5 -3
  192. package/Charting/Visuals/RenderableSeries/Animations/CandlestickAnimation.d.ts +1 -1
  193. package/Charting/Visuals/RenderableSeries/Animations/CandlestickAnimation.js +5 -3
  194. package/Charting/Visuals/RenderableSeries/Animations/CandlestickAnimationStyle.js +5 -3
  195. package/Charting/Visuals/RenderableSeries/Animations/ColumnAnimation.d.ts +2 -2
  196. package/Charting/Visuals/RenderableSeries/Animations/ColumnAnimation.js +6 -4
  197. package/Charting/Visuals/RenderableSeries/Animations/ColumnAnimationStyle.js +4 -2
  198. package/Charting/Visuals/RenderableSeries/Animations/CustomPointMarkerStyle.js +3 -1
  199. package/Charting/Visuals/RenderableSeries/Animations/FadeAnimation.d.ts +2 -2
  200. package/Charting/Visuals/RenderableSeries/Animations/FadeAnimation.js +5 -3
  201. package/Charting/Visuals/RenderableSeries/Animations/LineAnimation.d.ts +2 -2
  202. package/Charting/Visuals/RenderableSeries/Animations/LineAnimation.js +5 -3
  203. package/Charting/Visuals/RenderableSeries/Animations/MountainAnimation.d.ts +2 -2
  204. package/Charting/Visuals/RenderableSeries/Animations/MountainAnimation.js +6 -4
  205. package/Charting/Visuals/RenderableSeries/Animations/MountainAnimationStyle.js +4 -2
  206. package/Charting/Visuals/RenderableSeries/Animations/OhlcAnimation.d.ts +2 -2
  207. package/Charting/Visuals/RenderableSeries/Animations/OhlcAnimation.js +7 -5
  208. package/Charting/Visuals/RenderableSeries/Animations/OhlcAnimationStyle.js +5 -3
  209. package/Charting/Visuals/RenderableSeries/Animations/PointMarkerStyle.js +5 -3
  210. package/Charting/Visuals/RenderableSeries/Animations/ScaleAnimation.d.ts +3 -3
  211. package/Charting/Visuals/RenderableSeries/Animations/ScaleAnimation.js +5 -3
  212. package/Charting/Visuals/RenderableSeries/Animations/ScatterAnimation.d.ts +2 -2
  213. package/Charting/Visuals/RenderableSeries/Animations/ScatterAnimation.js +5 -3
  214. package/Charting/Visuals/RenderableSeries/Animations/{BaseAnimation.d.ts → SeriesAnimation.d.ts} +4 -3
  215. package/Charting/Visuals/RenderableSeries/Animations/{BaseAnimation.js → SeriesAnimation.js} +16 -16
  216. package/Charting/Visuals/RenderableSeries/Animations/SweepAnimation.d.ts +2 -2
  217. package/Charting/Visuals/RenderableSeries/Animations/SweepAnimation.js +5 -3
  218. package/Charting/Visuals/RenderableSeries/Animations/WaveAnimation.d.ts +3 -3
  219. package/Charting/Visuals/RenderableSeries/Animations/WaveAnimation.js +5 -3
  220. package/Charting/Visuals/RenderableSeries/Animations/animationHelpers.d.ts +8 -8
  221. package/Charting/Visuals/RenderableSeries/Animations/animationHelpers.js +2 -2
  222. package/Charting/Visuals/RenderableSeries/BaseBandRenderableSeries.js +3 -1
  223. package/Charting/Visuals/RenderableSeries/BaseLineRenderableSeries.js +3 -1
  224. package/Charting/Visuals/RenderableSeries/BaseMountainRenderableSeries.js +3 -1
  225. package/Charting/Visuals/RenderableSeries/BaseOhlcRenderableSeries.js +3 -1
  226. package/Charting/Visuals/RenderableSeries/BaseRenderableSeries.d.ts +9 -9
  227. package/Charting/Visuals/RenderableSeries/BaseRenderableSeries.js +18 -17
  228. package/Charting/Visuals/RenderableSeries/BaseStackedCollection.d.ts +7 -7
  229. package/Charting/Visuals/RenderableSeries/BaseStackedCollection.js +8 -6
  230. package/Charting/Visuals/RenderableSeries/BaseStackedRenderableSeries.d.ts +7 -7
  231. package/Charting/Visuals/RenderableSeries/BaseStackedRenderableSeries.js +4 -4
  232. package/Charting/Visuals/RenderableSeries/DrawingProviders/BandSeriesDrawingProvider.js +20 -18
  233. package/Charting/Visuals/RenderableSeries/DrawingProviders/BaseSeriesDrawingProvider.js +12 -12
  234. package/Charting/Visuals/RenderableSeries/DrawingProviders/BubbleSeriesDrawingProvider.js +4 -2
  235. package/Charting/Visuals/RenderableSeries/DrawingProviders/ColumnSeriesDrawingProvider.js +12 -10
  236. package/Charting/Visuals/RenderableSeries/DrawingProviders/LineSeriesDrawingProvider.js +9 -7
  237. package/Charting/Visuals/RenderableSeries/DrawingProviders/MountainSeriesDrawingProvider.js +10 -8
  238. package/Charting/Visuals/RenderableSeries/DrawingProviders/OhlcSeriesDrawingProvider.js +20 -18
  239. package/Charting/Visuals/RenderableSeries/DrawingProviders/PointMarkerDrawingProvider.js +6 -4
  240. package/Charting/Visuals/RenderableSeries/DrawingProviders/UniformContoursDrawingProvider.js +9 -7
  241. package/Charting/Visuals/RenderableSeries/DrawingProviders/UniformHeatmapDrawingProvider.js +6 -4
  242. package/Charting/Visuals/RenderableSeries/FastBandRenderableSeries.js +3 -1
  243. package/Charting/Visuals/RenderableSeries/FastBubbleRenderableSeries.js +3 -1
  244. package/Charting/Visuals/RenderableSeries/FastCandlestickRenderableSeries.js +3 -1
  245. package/Charting/Visuals/RenderableSeries/FastColumnRenderableSeries.js +6 -3
  246. package/Charting/Visuals/RenderableSeries/FastLineRenderableSeries.js +3 -1
  247. package/Charting/Visuals/RenderableSeries/FastMountainRenderableSeries.js +3 -1
  248. package/Charting/Visuals/RenderableSeries/FastOhlcRenderableSeries.js +3 -1
  249. package/Charting/Visuals/RenderableSeries/GlowEffect.js +3 -1
  250. package/Charting/Visuals/RenderableSeries/HitTest/BandSeriesHitTestProvider.js +3 -1
  251. package/Charting/Visuals/RenderableSeries/HitTest/BaseHitTestProvider.js +1 -1
  252. package/Charting/Visuals/RenderableSeries/HitTest/BubbleSeriesHitTestProvider.js +4 -2
  253. package/Charting/Visuals/RenderableSeries/HitTest/ColumnSeriesHitTestProvider.js +4 -2
  254. package/Charting/Visuals/RenderableSeries/HitTest/LineSeriesHitTestProvider.js +8 -6
  255. package/Charting/Visuals/RenderableSeries/HitTest/MountainSeriesHitTestProvider.js +3 -1
  256. package/Charting/Visuals/RenderableSeries/HitTest/OhlcSeriesHitTestProvider.js +4 -2
  257. package/Charting/Visuals/RenderableSeries/HitTest/ScatterSeriesHitTestProvider.js +6 -4
  258. package/Charting/Visuals/RenderableSeries/HitTest/StackedColumnSeriesHitTestProvider.js +7 -5
  259. package/Charting/Visuals/RenderableSeries/HitTest/StackedMountainSeriesHitTestProvider.js +3 -1
  260. package/Charting/Visuals/RenderableSeries/HitTest/UniformHeatmapHitTestProvider.js +3 -1
  261. package/Charting/Visuals/RenderableSeries/HitTest/hitTestHelpers.js +12 -12
  262. package/Charting/Visuals/RenderableSeries/IBaseRenderableSeriesOptions.d.ts +2 -2
  263. package/Charting/Visuals/RenderableSeries/IRenderableSeries.d.ts +3 -3
  264. package/Charting/Visuals/RenderableSeries/RolloverModifier/RolloverModifierRenderableSeriesProps.d.ts +5 -0
  265. package/Charting/Visuals/RenderableSeries/RolloverModifier/RolloverModifierRenderableSeriesProps.js +31 -7
  266. package/Charting/Visuals/RenderableSeries/ShaderEffect.js +4 -4
  267. package/Charting/Visuals/RenderableSeries/ShadowEffect.js +4 -2
  268. package/Charting/Visuals/RenderableSeries/SplineBandRenderableSeries.d.ts +4 -4
  269. package/Charting/Visuals/RenderableSeries/SplineBandRenderableSeries.js +6 -4
  270. package/Charting/Visuals/RenderableSeries/SplineLineRenderableSeries.d.ts +4 -4
  271. package/Charting/Visuals/RenderableSeries/SplineLineRenderableSeries.js +5 -3
  272. package/Charting/Visuals/RenderableSeries/SplineMountainRenderableSeries.d.ts +4 -4
  273. package/Charting/Visuals/RenderableSeries/SplineMountainRenderableSeries.js +5 -3
  274. package/Charting/Visuals/RenderableSeries/StackedColumnCollection.js +6 -4
  275. package/Charting/Visuals/RenderableSeries/StackedColumnRenderableSeries.js +11 -9
  276. package/Charting/Visuals/RenderableSeries/StackedMountainCollection.js +7 -5
  277. package/Charting/Visuals/RenderableSeries/StackedMountainRenderableSeries.js +11 -9
  278. package/Charting/Visuals/RenderableSeries/UniformContoursRenderableSeries.js +6 -4
  279. package/Charting/Visuals/RenderableSeries/UniformHeatmapRenderableSeries.js +5 -2
  280. package/Charting/Visuals/RenderableSeries/XyScatterRenderableSeries.js +3 -1
  281. package/Charting/Visuals/RubberBandSvgRect/RubberBandSvgRect.js +3 -3
  282. package/Charting/Visuals/SciChartDefaults.d.ts +11 -0
  283. package/Charting/Visuals/SciChartDefaults.js +18 -0
  284. package/Charting/Visuals/SciChartOverview.js +13 -7
  285. package/Charting/Visuals/SciChartPieSurface/PieSegment/PieSegment.js +1 -1
  286. package/Charting/Visuals/SciChartPieSurface/SciChartPieSurface.js +27 -24
  287. package/Charting/Visuals/SciChartSurface.d.ts +13 -0
  288. package/Charting/Visuals/SciChartSurface.js +52 -14
  289. package/Charting/Visuals/SciChartSurfaceBase.js +15 -11
  290. package/Charting/Visuals/TextureManager/CanvasTexture.js +5 -5
  291. package/Charting/Visuals/TextureManager/DpiHelper.js +3 -3
  292. package/Charting/Visuals/TextureManager/TextureManager.d.ts +1 -0
  293. package/Charting/Visuals/TextureManager/TextureManager.js +16 -12
  294. package/Charting/Visuals/createMaster.js +6 -5
  295. package/Charting/Visuals/createSingle.js +6 -4
  296. package/Charting/Visuals/licenseManager2D.js +65 -48
  297. package/Charting/Visuals/loader.js +1 -1
  298. package/Charting/Visuals/sciChartInitCommon.js +12 -12
  299. package/Charting3D/CameraController.js +6 -6
  300. package/Charting3D/ChartModifiers/ChartModifierBase3D.js +3 -1
  301. package/Charting3D/ChartModifiers/MouseWheelZoomModifier3D.js +3 -1
  302. package/Charting3D/ChartModifiers/OrbitModifier3D.js +3 -1
  303. package/Charting3D/ChartModifiers/ResetCamera3DModifier.d.ts +79 -0
  304. package/Charting3D/ChartModifiers/ResetCamera3DModifier.js +143 -0
  305. package/Charting3D/Model/DataSeries/BaseGridDataSeries3D.js +4 -2
  306. package/Charting3D/Model/DataSeries/UniformGridDataSeries3D.js +3 -1
  307. package/Charting3D/Model/DataSeries/XyzDataSeries3D.js +6 -4
  308. package/Charting3D/Vector3.js +1 -1
  309. package/Charting3D/Visuals/Axis/AxisBase3D.js +9 -7
  310. package/Charting3D/Visuals/Axis/AxisCubeEntity.js +20 -15
  311. package/Charting3D/Visuals/Axis/NumericAxis3D.d.ts +5 -0
  312. package/Charting3D/Visuals/Axis/NumericAxis3D.js +29 -1
  313. package/Charting3D/Visuals/DefaultViewportManager3D.js +3 -1
  314. package/Charting3D/Visuals/GizmoEntity.js +3 -1
  315. package/Charting3D/Visuals/PointMarkers/BaseMeshPointMarker3D.js +3 -1
  316. package/Charting3D/Visuals/PointMarkers/BaseTexturePointMarker3D.js +3 -1
  317. package/Charting3D/Visuals/PointMarkers/DefaultPointMarkers.js +3 -1
  318. package/Charting3D/Visuals/Primitives/BaseSceneEntity3D.js +2 -2
  319. package/Charting3D/Visuals/Primitives/RenderableSeriesSceneEntity.js +3 -1
  320. package/Charting3D/Visuals/Primitives/ScatterPointsSceneEntity.js +7 -5
  321. package/Charting3D/Visuals/Primitives/SurfaceMeshSceneEntity.js +22 -20
  322. package/Charting3D/Visuals/RenderableSeries/BaseRenderableSeries3D.js +3 -3
  323. package/Charting3D/Visuals/RenderableSeries/ScatterRenderableSeries3D.js +3 -1
  324. package/Charting3D/Visuals/RenderableSeries/SurfaceMesh/GradientColorPalette.js +3 -1
  325. package/Charting3D/Visuals/RenderableSeries/SurfaceMesh/SolidColorBrushPalette.js +5 -3
  326. package/Charting3D/Visuals/RenderableSeries/SurfaceMesh/SurfaceMeshRenderableSeries3D.js +3 -1
  327. package/Charting3D/Visuals/RootSceneEntity.js +3 -1
  328. package/Charting3D/Visuals/SciChart3DRenderer.d.ts +1 -0
  329. package/Charting3D/Visuals/SciChart3DRenderer.js +11 -2
  330. package/Charting3D/Visuals/SciChart3DSurface.d.ts +22 -0
  331. package/Charting3D/Visuals/SciChart3DSurface.js +64 -11
  332. package/Charting3D/Visuals/createMaster3d.js +8 -7
  333. package/Charting3D/Visuals/createSingle3d.js +5 -4
  334. package/Charting3D/Visuals/licenseManager3D.js +7 -6
  335. package/Core/Animations/AnimationFiniteStateMachine.d.ts +27 -14
  336. package/Core/Animations/AnimationFiniteStateMachine.js +51 -16
  337. package/Core/Animations/Animator.d.ts +1 -9
  338. package/Core/Animations/Animator.js +1 -9
  339. package/Core/Animations/DoubleAnimator.d.ts +2 -8
  340. package/Core/Animations/DoubleAnimator.js +2 -8
  341. package/Core/Animations/GenericAnimation.d.ts +74 -0
  342. package/Core/Animations/GenericAnimation.js +74 -0
  343. package/Core/Animations/NumberRangeAnimator.d.ts +4 -3
  344. package/Core/Animations/NumberRangeAnimator.js +23 -3
  345. package/Core/Guard.js +4 -4
  346. package/Core/Mouse/MouseManager.js +1 -1
  347. package/Core/NumberRange.js +8 -9
  348. package/Core/Point.js +1 -1
  349. package/_wasm/scichart.browser.js +1 -1
  350. package/_wasm/scichart2d.js +1 -1
  351. package/_wasm/scichart2d.wasm +0 -0
  352. package/_wasm/scichart3d.js +95 -95
  353. package/_wasm/scichart3d.wasm +0 -0
  354. package/index.js +1 -0
  355. package/package.json +2 -2
  356. package/types/AxisAlignment.js +6 -4
  357. package/types/ChartModifierType.d.ts +2 -1
  358. package/types/ChartModifierType.js +1 -0
  359. package/utils/array.js +2 -1
  360. package/utils/calcAverage.js +4 -2
  361. package/utils/colorUtil.js +4 -4
  362. package/utils/convertColor.js +6 -4
  363. package/utils/convertToPixel.js +2 -1
  364. package/utils/date.js +26 -17
  365. package/utils/font.js +4 -3
  366. package/utils/guid.js +2 -1
  367. package/utils/hasAllProperties.js +2 -1
  368. package/utils/includedAxis.d.ts +3 -0
  369. package/utils/includedAxis.js +23 -0
  370. package/utils/math.js +6 -3
  371. package/utils/number.js +18 -13
  372. package/utils/parseColor.js +7 -5
  373. package/utils/pointUtil.js +24 -15
  374. package/utils/random.js +2 -1
  375. package/utils/randomPricesDataSource.js +7 -5
  376. package/utils/svgString.js +2 -1
  377. package/utils/translate.js +10 -5
  378. package/utils/tsrExtensions.js +4 -2
  379. package/utils/zeroArray2D.js +3 -2
@@ -93,13 +93,14 @@ var fetchFromWizard = function (path) { return __awaiter(void 0, void 0, void 0,
93
93
  }); };
94
94
  var licenseDependencies = {
95
95
  fetchFromWizard: function (url) { return fetchFromWizard(url); },
96
- setCookie: function (name, val, validDays) { return cookie_1.setCookie(name, val, validDays); },
97
- getCookie: function (name) { return cookie_1.getCookie(name); },
96
+ setCookie: function (name, val, validDays) { return (0, cookie_1.setCookie)(name, val, validDays); },
97
+ getCookie: function (name) { return (0, cookie_1.getCookie)(name); },
98
98
  fetchForChallenge: function (url) { return fetch(url); },
99
99
  updateLicenseDisplay: function (licenseInfo, sciChartSurface, is2D, applyToOther) { return updateLicenseDisplayInternal(licenseInfo, sciChartSurface, is2D, applyToOther); },
100
100
  debug: function (message) { return console.log(message); }
101
101
  };
102
- exports.setDependencies = function (dependencies) { return (licenseDependencies = dependencies); };
102
+ var setDependencies = function (dependencies) { return (licenseDependencies = dependencies); };
103
+ exports.setDependencies = setDependencies;
103
104
  var isDebug = null;
104
105
  var debug = function (message) {
105
106
  if (isDebug === null) {
@@ -111,24 +112,27 @@ var debug = function (message) {
111
112
  };
112
113
  // tslint:disable: no-console
113
114
  var licenseCallback;
114
- exports.setLicenseCallback = function (callback) {
115
+ var setLicenseCallback = function (callback) {
115
116
  licenseCallback = callback;
116
117
  };
118
+ exports.setLicenseCallback = setLicenseCallback;
117
119
  var runtimeLicenseKey = "";
118
120
  var getRuntimeLicenseKey = function () { return runtimeLicenseKey; };
119
- exports.setRuntimeLicenseKey = function (value) {
121
+ var setRuntimeLicenseKey = function (value) {
120
122
  var prev = runtimeLicenseKey;
121
123
  runtimeLicenseKey = value;
122
124
  if (runtimeLicenseKey !== prev && runtimeLicenseKey !== "") {
123
125
  if (licenseContext2D !== undefined) {
124
- exports.applyLicense(licenseContext2D);
126
+ (0, exports.applyLicense)(licenseContext2D);
125
127
  }
126
128
  }
127
129
  };
130
+ exports.setRuntimeLicenseKey = setRuntimeLicenseKey;
128
131
  var useLicenseWizard = true;
129
- exports.setUseLicenseWizard = function (value) {
132
+ var setUseLicenseWizard = function (value) {
130
133
  useLicenseWizard = value;
131
134
  };
135
+ exports.setUseLicenseWizard = setUseLicenseWizard;
132
136
  var retryTime = app_1.IS_TEST_ENV ? 0.1 : 5;
133
137
  var maxretries = app_1.IS_TEST_ENV ? 12 : 10;
134
138
  var serverLicenseEndpoint = "api/license";
@@ -144,7 +148,8 @@ var callbacks3D = {
144
148
  setNewLicense3D: function (keyCode) { return undefined; },
145
149
  updateLicenseDisplay3D: function () { return undefined; }
146
150
  };
147
- exports.setCallbacks3D = function (callbacks) { return (callbacks3D = callbacks); };
151
+ var setCallbacks3D = function (callbacks) { return (callbacks3D = callbacks); };
152
+ exports.setCallbacks3D = setCallbacks3D;
148
153
  var getlicenseFromWizard = function () { return __awaiter(void 0, void 0, void 0, function () {
149
154
  var response, keyCode, _a, requiresValidation, trialExpired, err_3;
150
155
  return __generator(this, function (_b) {
@@ -170,7 +175,7 @@ var getlicenseFromWizard = function () { return __awaiter(void 0, void 0, void 0
170
175
  }
171
176
  else if (trialExpired) {
172
177
  checkStatus = licensingClasses_1.LicenseCheckStatus.NoLicenseInWizard;
173
- debug("No valid license available in licensing wizard. Trying again in " + retryTime + " seconds");
178
+ debug("No valid license available in licensing wizard. Trying again in ".concat(retryTime, " seconds"));
174
179
  wizardTimer = setTimeout(function () { return getlicenseFromWizard(); }, retryTime * 1000);
175
180
  }
176
181
  else {
@@ -179,7 +184,7 @@ var getlicenseFromWizard = function () { return __awaiter(void 0, void 0, void 0
179
184
  return [3 /*break*/, 4];
180
185
  case 3:
181
186
  checkStatus = licensingClasses_1.LicenseCheckStatus.NoLicenseInWizard;
182
- debug("No license available in licensing wizard. Trying again in " + retryTime + " seconds");
187
+ debug("No license available in licensing wizard. Trying again in ".concat(retryTime, " seconds"));
183
188
  wizardTimer = setTimeout(function () { return getlicenseFromWizard(); }, retryTime * 1000);
184
189
  _b.label = 4;
185
190
  case 4: return [3 /*break*/, 6];
@@ -188,7 +193,7 @@ var getlicenseFromWizard = function () { return __awaiter(void 0, void 0, void 0
188
193
  // Failed to connect. Retry
189
194
  getLicenseFailCounts += 1;
190
195
  if (getLicenseFailCounts < maxretries) {
191
- debug("Could not find licensing wizard. Trying again in " + retryTime + " seconds");
196
+ debug("Could not find licensing wizard. Trying again in ".concat(retryTime, " seconds"));
192
197
  setTimeout(function () { return getlicenseFromWizard(); }, retryTime * 1000);
193
198
  }
194
199
  else {
@@ -200,7 +205,7 @@ var getlicenseFromWizard = function () { return __awaiter(void 0, void 0, void 0
200
205
  return [3 /*break*/, 6];
201
206
  case 6:
202
207
  if (licenseContext2D !== undefined) {
203
- exports.updateLicenseDisplay(exports.getLicenseInfo(licenseContext2D), sciChartSurface2D, true, true);
208
+ (0, exports.updateLicenseDisplay)((0, exports.getLicenseInfo)(licenseContext2D), sciChartSurface2D, true, true);
204
209
  }
205
210
  callbacks3D.updateLicenseDisplay3D();
206
211
  return [2 /*return*/];
@@ -208,10 +213,10 @@ var getlicenseFromWizard = function () { return __awaiter(void 0, void 0, void 0
208
213
  });
209
214
  }); };
210
215
  var setLicenseCookie = function (key, token, expirySeconds, lastValidated) {
211
- var cookieVal = key + "," + token + "," + expirySeconds + "," + lastValidated;
216
+ var cookieVal = "".concat(key, ",").concat(token, ",").concat(expirySeconds, ",").concat(lastValidated);
212
217
  return licenseDependencies.setCookie("scLicense", cookieVal, 365);
213
218
  };
214
- exports.getLicenseCookie = function () {
219
+ var getLicenseCookie = function () {
215
220
  var cookie;
216
221
  cookie = licenseDependencies.getCookie("scLicense");
217
222
  var parts = cookie.split(",");
@@ -226,9 +231,10 @@ exports.getLicenseCookie = function () {
226
231
  else
227
232
  return { key: parts[0], token: null, expiry: null, lastValidated: null };
228
233
  };
234
+ exports.getLicenseCookie = getLicenseCookie;
229
235
  var refreshLicense = function () {
230
- cookie_1.deleteCookie("scLicense");
231
- exports.applyLicense(licenseContext2D);
236
+ (0, cookie_1.deleteCookie)("scLicense");
237
+ (0, exports.applyLicense)(licenseContext2D);
232
238
  };
233
239
  var setChallengeResponse = function (token) {
234
240
  var expirySeconds = -1;
@@ -253,7 +259,7 @@ var dolicenseChallenge = function () { return __awaiter(void 0, void 0, void 0,
253
259
  _b.trys.push([1, 11, , 12]);
254
260
  if (checkStatus !== licensingClasses_1.LicenseCheckStatus.ValidatingDeveloperLicense)
255
261
  return [2 /*return*/];
256
- debug("Attempting to validate license with " + server);
262
+ debug("Attempting to validate license with ".concat(server));
257
263
  challenge = void 0;
258
264
  orderId = void 0;
259
265
  if (licenseContext2D !== undefined) {
@@ -264,9 +270,9 @@ var dolicenseChallenge = function () { return __awaiter(void 0, void 0, void 0,
264
270
  (_a = callbacks3D.getLicenseChallenge3D(), challenge = _a.challenge, orderId = _a.orderId);
265
271
  }
266
272
  response = void 0;
267
- queryString = "orderid=" + orderId + "&challenge=" + challenge;
273
+ queryString = "orderid=".concat(orderId, "&challenge=").concat(challenge);
268
274
  if (!isDev) return [3 /*break*/, 3];
269
- url = "/validate?" + queryString;
275
+ url = "/validate?".concat(queryString);
270
276
  return [4 /*yield*/, licenseDependencies.fetchFromWizard(url)];
271
277
  case 2:
272
278
  response = _b.sent();
@@ -291,7 +297,7 @@ var dolicenseChallenge = function () { return __awaiter(void 0, void 0, void 0,
291
297
  if (!token.startsWith("Error")) {
292
298
  expirySeconds = setChallengeResponse(token);
293
299
  if (expirySeconds > 0) {
294
- key = exports.getLicenseCookie().key;
300
+ key = (0, exports.getLicenseCookie)().key;
295
301
  timeNow = Math.floor(new Date().getTime() / 1000);
296
302
  setLicenseCookie(key, token, expirySeconds, timeNow);
297
303
  checkStatus = licensingClasses_1.LicenseCheckStatus.LicenseOK;
@@ -322,15 +328,15 @@ var dolicenseChallenge = function () { return __awaiter(void 0, void 0, void 0,
322
328
  // Failed to connect. Retry
323
329
  challengeFailCounts += 1;
324
330
  if (challengeFailCounts < maxretries) {
325
- debug("Could not find " + server + "/" + serverLicenseEndpoint + ". Trying again in " + retryTime + " seconds");
331
+ debug("Could not find ".concat(server, "/").concat(serverLicenseEndpoint, ". Trying again in ").concat(retryTime, " seconds"));
326
332
  setTimeout(function () { return dolicenseChallenge(); }, retryTime * 1000);
327
333
  }
328
334
  else {
329
- expiry = exports.getLicenseCookie().expiry;
335
+ expiry = (0, exports.getLicenseCookie)().expiry;
330
336
  msg = isDev
331
337
  ? "Please run the license wizard, ensure your license is activated, then refresh page to retry."
332
338
  : "Please check that the endpoint is configured correctly.";
333
- console.error("Failed to connect to " + server + "/" + serverLicenseEndpoint + ". License must be revalidated before " + expiry.toLocaleString() + ". " + msg);
339
+ console.error("Failed to connect to ".concat(server, "/").concat(serverLicenseEndpoint, ". License must be revalidated before ").concat(expiry.toLocaleString(), ". ").concat(msg));
334
340
  challengeFailCounts = 0;
335
341
  // Only actually show failure message if token has expired
336
342
  if (new Date() > expiry)
@@ -339,7 +345,7 @@ var dolicenseChallenge = function () { return __awaiter(void 0, void 0, void 0,
339
345
  return [3 /*break*/, 12];
340
346
  case 12:
341
347
  if (licenseContext2D !== undefined) {
342
- exports.updateLicenseDisplay(exports.getLicenseInfo(licenseContext2D), sciChartSurface2D, true, true);
348
+ (0, exports.updateLicenseDisplay)((0, exports.getLicenseInfo)(licenseContext2D), sciChartSurface2D, true, true);
343
349
  }
344
350
  callbacks3D.updateLicenseDisplay3D();
345
351
  return [2 /*return*/];
@@ -357,12 +363,12 @@ var applyLicense2D = function (licenseContext, sciChartSurface, isSingle) {
357
363
  if (isSingle || shouldApplyLicense2D) {
358
364
  licenseContext2D = licenseContext;
359
365
  sciChartSurface2D = sciChartSurface;
360
- exports.applyLicense(licenseContext);
366
+ (0, exports.applyLicense)(licenseContext);
361
367
  }
362
368
  if (!isSingle)
363
369
  shouldApplyLicense2D = false;
364
370
  };
365
- exports.applyLicense = function (licenseContext) {
371
+ var applyLicense = function (licenseContext) {
366
372
  debug("applyLicense running");
367
373
  var licenseKey = "";
368
374
  var lt = licenseContext.SCRTCredentials.GetLicenseType();
@@ -396,7 +402,7 @@ exports.applyLicense = function (licenseContext) {
396
402
  }
397
403
  }
398
404
  // Get from cookie store
399
- var licenseCookie = exports.getLicenseCookie();
405
+ var licenseCookie = (0, exports.getLicenseCookie)();
400
406
  if (licenseKey === "" && licenseCookie && licenseCookie.key !== "") {
401
407
  debug("Found license in cookie.");
402
408
  licenseKey = licenseCookie.key;
@@ -407,7 +413,7 @@ exports.applyLicense = function (licenseContext) {
407
413
  lt === licenseContext.SCRTLicenseType.LICENSE_TYPE_TRIAL ||
408
414
  lt === licenseContext.SCRTLicenseType.LICENSE_TYPE_REQUIRES_VALIDATION)) {
409
415
  debug("License cookie is invalid. Removing");
410
- cookie_1.deleteCookie("scLicense");
416
+ (0, cookie_1.deleteCookie)("scLicense");
411
417
  licenseKey = "";
412
418
  lt = licenseContext.SCRTLicenseType.LICENSE_TYPE_NO_LICENSE;
413
419
  }
@@ -432,7 +438,7 @@ exports.applyLicense = function (licenseContext) {
432
438
  if (isRuntimeKey && isDev) {
433
439
  // clear key
434
440
  licenseContext.SCRTCredentials.ResetRuntimeLicense();
435
- cookie_1.deleteCookie("scLicense");
441
+ (0, cookie_1.deleteCookie)("scLicense");
436
442
  checkStatus = licensingClasses_1.LicenseCheckStatus.DevKeyInRuntimeKey;
437
443
  }
438
444
  else if (licenseCookie.expiry > new Date()) {
@@ -449,7 +455,7 @@ exports.applyLicense = function (licenseContext) {
449
455
  }
450
456
  var validationInterval = 60 * 60 * 24; // Once a day
451
457
  var secondsSinceValidated = (new Date().getTime() - licenseCookie.lastValidated.getTime()) / 1000;
452
- debug("License expires in " + (expirySeconds - timeNow) + " seconds. Last validated " + secondsSinceValidated + " seconds ago");
458
+ debug("License expires in ".concat(expirySeconds - timeNow, " seconds. Last validated ").concat(secondsSinceValidated, " seconds ago"));
453
459
  if (secondsSinceValidated > validationInterval &&
454
460
  checkStatus !== licensingClasses_1.LicenseCheckStatus.ValidatingDeveloperLicense) {
455
461
  checkStatus = licensingClasses_1.LicenseCheckStatus.ValidatingDeveloperLicense;
@@ -474,10 +480,11 @@ exports.applyLicense = function (licenseContext) {
474
480
  }
475
481
  }
476
482
  if (licenseContext2D !== undefined) {
477
- exports.updateLicenseDisplay(exports.getLicenseInfo(licenseContext2D), sciChartSurface2D, true, false);
483
+ (0, exports.updateLicenseDisplay)((0, exports.getLicenseInfo)(licenseContext2D), sciChartSurface2D, true, false);
478
484
  }
479
485
  callbacks3D.updateLicenseDisplay3D();
480
486
  };
487
+ exports.applyLicense = applyLicense;
481
488
  var licenseModal;
482
489
  var openLicenseModal = function () {
483
490
  console.error("Modal not initialized");
@@ -494,7 +501,7 @@ var setNewLicense = function (keyCode) {
494
501
  trialExpired =
495
502
  licenseContext2D.SCRTCredentials.GetLicenseType() ===
496
503
  licenseContext2D.SCRTLicenseType.LICENSE_TYPE_TRIAL_EXPIRED;
497
- exports.updateLicenseDisplay(exports.getLicenseInfo(licenseContext2D), sciChartSurface2D, true, true);
504
+ (0, exports.updateLicenseDisplay)((0, exports.getLicenseInfo)(licenseContext2D), sciChartSurface2D, true, true);
498
505
  }
499
506
  var result3D = callbacks3D.setNewLicense3D(keyCode);
500
507
  if (result3D !== undefined) {
@@ -658,14 +665,17 @@ var convertLicenseType = function (sclt, licenseContext) {
658
665
  }
659
666
  return licenseType;
660
667
  };
661
- exports.getLicenseInfo = function (licenseContext) {
668
+ var getLicenseInfo = function (licenseContext) {
662
669
  var sclt = licenseContext.SCRTCredentials.GetLicenseType();
663
670
  var licenseType = convertLicenseType(sclt, licenseContext);
664
671
  var daysRemaining = licenseContext.SCRTCredentials.GetLicenseDaysRemaining();
665
- debug(licenseContext.SCRTCredentials.Dump());
672
+ if (isDebug) {
673
+ debug(licenseContext.SCRTCredentials.Dump());
674
+ }
666
675
  var error = licenseContext.SCRTCredentials.GetLicenseErrors();
667
676
  return { licenseType: licenseType, daysRemaining: daysRemaining, error: error };
668
677
  };
678
+ exports.getLicenseInfo = getLicenseInfo;
669
679
  var licenseType2D;
670
680
  var licenseType3D;
671
681
  var previousCheckStatus;
@@ -692,7 +702,7 @@ var updateLicenseDisplayInternal = function (licenseInfo, sciChartSurface, is2D,
692
702
  licenseType3D = licenseType;
693
703
  // if (licenseType === LicenseType.Trial || licenseType === LicenseType.Full)
694
704
  // checkStatus = LicenseCheckStatus.LicenseOK;
695
- debug((is2D ? "2D" : "3D") + " license status changed");
705
+ debug("".concat(is2D ? "2D" : "3D", " license status changed"));
696
706
  sciChartSurface.invalidateElement();
697
707
  sciChartSurface.otherSurfaces.map(function (s) { return s.invalidateElement(); });
698
708
  // Update license message text
@@ -700,18 +710,18 @@ var updateLicenseDisplayInternal = function (licenseInfo, sciChartSurface, is2D,
700
710
  var contactSupportLink = "<a href=\"https://www.scichart.com/contact-us/\" target=\"_blank\" style=\"color: orange\">contact support</a>";
701
711
  if (licenseType === licensingClasses_1.LicenseType.NoLicense) {
702
712
  premsg = "You need to have a license to use SciChart. ";
703
- postMsg = "Instructions can be seen at " + licensingLink;
713
+ postMsg = "Instructions can be seen at ".concat(licensingLink);
704
714
  }
705
715
  else if (licenseType === licensingClasses_1.LicenseType.Invalid) {
706
716
  if (error.startsWith("License is not valid for this domain"))
707
- premsg = "Sorry! Your license key is invalid for this domain</br>Please " + contactSupportLink + " with your OrderID if you believe this to be incorrect.";
717
+ premsg = "Sorry! Your license key is invalid for this domain</br>Please ".concat(contactSupportLink, " with your OrderID if you believe this to be incorrect.");
708
718
  else
709
- premsg = "Sorry! Your license key appears to be invalid</br>Please " + contactSupportLink + " with your OrderID if you believe this to be incorrect.";
710
- postMsg = "Instructions can be seen at " + licensingLink;
719
+ premsg = "Sorry! Your license key appears to be invalid</br>Please ".concat(contactSupportLink, " with your OrderID if you believe this to be incorrect.");
720
+ postMsg = "Instructions can be seen at ".concat(licensingLink);
711
721
  }
712
722
  else if (licenseType === licensingClasses_1.LicenseType.Invalid_Developer) {
713
723
  premsg = "Sorry! You need a developer license to use SciChart on a domain not included in your runtime key.";
714
- postMsg = "Instructions can be seen at " + licensingLink + "</br>\n Please " + contactSupportLink + " with your OrderID if you are experiencing issues.";
724
+ postMsg = "Instructions can be seen at ".concat(licensingLink, "</br>\n Please ").concat(contactSupportLink, " with your OrderID if you are experiencing issues.");
715
725
  }
716
726
  else if (licenseType === licensingClasses_1.LicenseType.Requres_Validation) {
717
727
  if (isDev) {
@@ -720,18 +730,22 @@ var updateLicenseDisplayInternal = function (licenseInfo, sciChartSurface, is2D,
720
730
  else {
721
731
  premsg = "This runtime key must be validated by a server side key.";
722
732
  }
723
- postMsg = "Instructions can be seen at " + licensingLink + "</br>\n Please " + contactSupportLink + " with your OrderID if you are experiencing issues.";
733
+ postMsg = "Instructions can be seen at ".concat(licensingLink, "</br>\n Please ").concat(contactSupportLink, " with your OrderID if you are experiencing issues.");
724
734
  }
725
735
  else if (licenseType === licensingClasses_1.LicenseType.Subscription_Expired) {
726
736
  premsg = "Sorry! Your support subscription has expired.<br>";
727
- postMsg = "Please " + contactSupportLink + " us if you would like to renew your subscription.";
737
+ postMsg = "Please ".concat(contactSupportLink, " us if you would like to renew your subscription.");
728
738
  }
729
- else if (licenseType === licensingClasses_1.LicenseType.Trial_Expired) {
739
+ else if (licenseType === licensingClasses_1.LicenseType.Trial_Expired && daysRemaining < 1) {
730
740
  premsg = "Sorry! Your trial has expired.";
731
- postMsg = "Please " + contactSupportLink + " if you require an extension.";
741
+ postMsg = "Please ".concat(contactSupportLink, " if you require an extension.");
742
+ }
743
+ else if (licenseType === licensingClasses_1.LicenseType.Trial_Expired && daysRemaining > 1) {
744
+ premsg = "This version is too old to trial.";
745
+ postMsg = "Please ".concat(contactSupportLink, " if you require an extension.");
732
746
  }
733
747
  else if (licenseType === licensingClasses_1.LicenseType.Trial && daysRemaining <= 7) {
734
- premsg = "You have " + daysRemaining + " day" + (daysRemaining === 1 ? "" : "s") + " remaining of the trial.";
748
+ premsg = "You have ".concat(daysRemaining, " day").concat(daysRemaining === 1 ? "" : "s", " remaining of the trial.");
735
749
  }
736
750
  else if (licenseType === licensingClasses_1.LicenseType.Full || (licenseType === licensingClasses_1.LicenseType.Trial && daysRemaining > 7)) {
737
751
  licenseMessageDiv.style.display = "none";
@@ -768,6 +782,8 @@ var updateLicenseDisplayInternal = function (licenseInfo, sciChartSurface, is2D,
768
782
  else if (checkStatus === licensingClasses_1.LicenseCheckStatus.DevKeyInRuntimeKey)
769
783
  chartmsg = "<br><u>You have set a developer key as a runtime key, which will not work on any other machine. Click for more information</u>";
770
784
  // tslint:disable-next-line: max-line-length
785
+ else if (licenseType === licensingClasses_1.LicenseType.Trial_Expired && daysRemaining > 1)
786
+ chartmsg = "<br><u>Please update to the latest version of SciChart. Click for more information</u>.";
771
787
  else if (checkStatus === licensingClasses_1.LicenseCheckStatus.NoLicenseInWizard &&
772
788
  licenseType === licensingClasses_1.LicenseType.Trial_Expired) {
773
789
  chartmsg = "<br><u>Please activate a serial key in the Licensing Wizard, or contact sales for an extension. Click for more information</u>.";
@@ -808,10 +824,11 @@ var updateLicenseDisplayInternal = function (licenseInfo, sciChartSurface, is2D,
808
824
  });
809
825
  }
810
826
  };
811
- exports.updateLicenseDisplay = function (licenseInfo, sciChartSurface, is2D, applyToOther) { return licenseDependencies.updateLicenseDisplay(licenseInfo, sciChartSurface, is2D, applyToOther); };
827
+ var updateLicenseDisplay = function (licenseInfo, sciChartSurface, is2D, applyToOther) { return licenseDependencies.updateLicenseDisplay(licenseInfo, sciChartSurface, is2D, applyToOther); };
828
+ exports.updateLicenseDisplay = updateLicenseDisplay;
812
829
  exports.licenseManager = {
813
- setRuntimeLicenseKey: function (value) { return exports.setRuntimeLicenseKey(value); },
814
- setLicenseCallback: function (callback) { return exports.setLicenseCallback(callback); },
830
+ setRuntimeLicenseKey: function (value) { return (0, exports.setRuntimeLicenseKey)(value); },
831
+ setLicenseCallback: function (callback) { return (0, exports.setLicenseCallback)(callback); },
815
832
  setServerLicenseEndpoint: function (value) { return setServerLicenseEndpoint(value); },
816
833
  applyLicense2D: function (licenseContext, sciChartSurface, isSingle) {
817
834
  return applyLicense2D(licenseContext, sciChartSurface, isSingle);
@@ -27,7 +27,7 @@ var DefaultSciChartLoader = /** @class */ (function () {
27
27
  loaderContainerDiv.style.height = "100%";
28
28
  loaderContainerDiv.style.width = "100%";
29
29
  var loaderDiv = document.createElement("div");
30
- var spinnerChunk = "<div><span style=\"background: " + theme.loadingAnimationForeground + "\"/></div>";
30
+ var spinnerChunk = "<div><span style=\"background: ".concat(theme.loadingAnimationForeground, "\"/></div>");
31
31
  loaderDiv.innerHTML = spinnerChunk.repeat(8);
32
32
  loaderDiv.classList.add("scichart_loader");
33
33
  loaderContainerDiv.appendChild(loaderDiv);
@@ -9,7 +9,7 @@ var ECanvasType;
9
9
  ECanvasType[ECanvasType["canvas2D"] = 1] = "canvas2D";
10
10
  ECanvasType[ECanvasType["svg"] = 2] = "svg";
11
11
  })(ECanvasType || (ECanvasType = {}));
12
- var getCanvas2dId = function (divElementId) { return divElementId + "_2D"; };
12
+ var getCanvas2dId = function (divElementId) { return "".concat(divElementId, "_2D"); };
13
13
  var getCanvasSizes = function (divWidth, divHeight, maxHeight, aspectWidth, aspectHeight) {
14
14
  if (aspectWidth === void 0) { aspectWidth = 0; }
15
15
  if (aspectHeight === void 0) { aspectHeight = 0; }
@@ -38,12 +38,12 @@ var getCanvasSizes = function (divWidth, divHeight, maxHeight, aspectWidth, aspe
38
38
  }
39
39
  };
40
40
  var getChartRootDomElement = function (divElementId) {
41
- var chartRoot = document.querySelector("#" + divElementId);
41
+ var chartRoot = document.querySelector("#".concat(divElementId));
42
42
  if (!chartRoot) {
43
- throw new Error("Check div element with id \"" + divElementId + "\" exists");
43
+ throw new Error("Check div element with id \"".concat(divElementId, "\" exists"));
44
44
  }
45
45
  if (chartRoot.nodeName.toLowerCase() !== "div") {
46
- throw new Error("Element with id \"" + divElementId + "\" should be of type div");
46
+ throw new Error("Element with id \"".concat(divElementId, "\" should be of type div"));
47
47
  }
48
48
  return chartRoot;
49
49
  };
@@ -81,7 +81,7 @@ var initCanvas = function (divElementId, aspectWidth, aspectHeight, activeCanvas
81
81
  if (activeCanvas === ECanvasType.canvasWebGL) {
82
82
  // WebGL Canvas
83
83
  canvasWebGL = document.createElement("canvas");
84
- canvasWebGL.id = divElementId + "_WebGL";
84
+ canvasWebGL.id = "".concat(divElementId, "_WebGL");
85
85
  canvasWebGL.style.position = "absolute";
86
86
  canvasWebGL.style.display = "block";
87
87
  var gl = WebGlHelper_1.WebGlHelper.getContext(canvasWebGL, {
@@ -108,7 +108,7 @@ var initCanvas = function (divElementId, aspectWidth, aspectHeight, activeCanvas
108
108
  canvas2D.onselectstart = function () { return false; };
109
109
  // SVG Root Element
110
110
  var svgRootElement = document.createElementNS("http://www.w3.org/2000/svg", "svg");
111
- svgRootElement.id = divElementId + "_SVG";
111
+ svgRootElement.id = "".concat(divElementId, "_SVG");
112
112
  svgRootElement.setAttribute("width", width.toString());
113
113
  svgRootElement.setAttribute("height", height.toString());
114
114
  svgRootElement.setAttribute("role", "img");
@@ -121,7 +121,7 @@ var initCanvas = function (divElementId, aspectWidth, aspectHeight, activeCanvas
121
121
  chartRoot.appendChild(svgRootElement);
122
122
  // SVG Adorner Layer
123
123
  var svgAdornerLayer = document.createElementNS("http://www.w3.org/2000/svg", "svg");
124
- svgAdornerLayer.id = divElementId + "_Adorner";
124
+ svgAdornerLayer.id = "".concat(divElementId, "_Adorner");
125
125
  svgAdornerLayer.setAttribute("width", width.toString());
126
126
  svgAdornerLayer.setAttribute("height", height.toString());
127
127
  svgAdornerLayer.setAttribute("role", "img");
@@ -132,9 +132,9 @@ var initCanvas = function (divElementId, aspectWidth, aspectHeight, activeCanvas
132
132
  chartRoot.appendChild(svgAdornerLayer);
133
133
  // Root Div Element
134
134
  var divRootElement = document.createElement("div");
135
- divRootElement.id = divElementId + "_div";
135
+ divRootElement.id = "".concat(divElementId, "_div");
136
136
  divRootElement.style.width = "100%";
137
- divRootElement.style.height = height + "px";
137
+ divRootElement.style.height = "".concat(height, "px");
138
138
  divRootElement.style.position = "relative";
139
139
  divRootElement.style.pointerEvents = "none";
140
140
  divRootElement.style.textAlign = "center";
@@ -216,12 +216,12 @@ var subscribeToResize = function (chartRoot, aspect, sciChartSurface) {
216
216
  * @param divElementId
217
217
  */
218
218
  var checkChartDivExists = function (divElementId) {
219
- var numberOfElements = document.querySelectorAll("[id=" + divElementId + "]").length;
219
+ var numberOfElements = document.querySelectorAll("[id=".concat(divElementId, "]")).length;
220
220
  if (numberOfElements > 1) {
221
- console.error("Please provide a unique ID for each chart div element, \"" + divElementId + "\" it is not a unique identifier");
221
+ console.error("Please provide a unique ID for each chart div element, \"".concat(divElementId, "\" it is not a unique identifier"));
222
222
  }
223
223
  else if (numberOfElements === 0) {
224
- console.error("Chart div element with the ID \"" + divElementId + "\" is not present in the DOM");
224
+ console.error("Chart div element with the ID \"".concat(divElementId, "\" is not present in the DOM"));
225
225
  }
226
226
  };
227
227
  var sciChartInitCommon = {
@@ -503,12 +503,12 @@ var CameraController = /** @class */ (function () {
503
503
  */
504
504
  CameraController.prototype.debugOutput = function () {
505
505
  console.log("Camera properties: ");
506
- console.log(" projectionMode: " + this.projectionMode);
507
- console.log(" position: " + this.position.toString());
508
- console.log(" target: " + this.target.toString());
509
- console.log(" up: " + this.up.toString());
510
- console.log(" pitch: " + this.orbitalPitch.toFixed(2));
511
- console.log(" yaw: " + this.orbitalYaw.toFixed(2));
506
+ console.log(" projectionMode: ".concat(this.projectionMode));
507
+ console.log(" position: ".concat(this.position.toString()));
508
+ console.log(" target: ".concat(this.target.toString()));
509
+ console.log(" up: ".concat(this.up.toString()));
510
+ console.log(" pitch: ".concat(this.orbitalPitch.toFixed(2)));
511
+ console.log(" yaw: ".concat(this.orbitalYaw.toFixed(2)));
512
512
  };
513
513
  return CameraController;
514
514
  }());
@@ -3,10 +3,12 @@ var __extends = (this && this.__extends) || (function () {
3
3
  var extendStatics = function (d, b) {
4
4
  extendStatics = Object.setPrototypeOf ||
5
5
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
7
  return extendStatics(d, b);
8
8
  };
9
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");
10
12
  extendStatics(d, b);
11
13
  function __() { this.constructor = d; }
12
14
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
@@ -3,10 +3,12 @@ var __extends = (this && this.__extends) || (function () {
3
3
  var extendStatics = function (d, b) {
4
4
  extendStatics = Object.setPrototypeOf ||
5
5
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
7
  return extendStatics(d, b);
8
8
  };
9
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");
10
12
  extendStatics(d, b);
11
13
  function __() { this.constructor = d; }
12
14
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
@@ -3,10 +3,12 @@ var __extends = (this && this.__extends) || (function () {
3
3
  var extendStatics = function (d, b) {
4
4
  extendStatics = Object.setPrototypeOf ||
5
5
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
7
  return extendStatics(d, b);
8
8
  };
9
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");
10
12
  extendStatics(d, b);
11
13
  function __() { this.constructor = d; }
12
14
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
@@ -0,0 +1,79 @@
1
+ import { ModifierMouseArgs } from "../../Charting/ChartModifiers/ModifierMouseArgs";
2
+ import { TEasingFn } from "../../Core/Animations/EasingFunctions";
3
+ import { EChart3DModifierType } from "../../types/ChartModifierType";
4
+ import { ChartModifierBase3D, IChartModifierBase3DOptions } from "./ChartModifierBase3D";
5
+ /**
6
+ * Optional parameters passed to the constructor of {@link ResetCamera3DModifier} to configure it
7
+ */
8
+ export interface IResetCamera3DOptions extends IChartModifierBase3DOptions {
9
+ /**
10
+ * When true, the Zoom operations are animated. See also {@link animationDuration} and {@link easingFunction}
11
+ */
12
+ isAnimated?: boolean;
13
+ /**
14
+ * Defines the duration of animations when zooming in milliseconds
15
+ */
16
+ animationDuration?: number;
17
+ /**
18
+ * Defines the easing function for animation. See {@link TEasingFn} for a range of functions
19
+ */
20
+ easingFunction?: TEasingFn;
21
+ /**
22
+ * The camera settings to reset to. Defaults to the camera state when the modifier was attached to the chart.
23
+ */
24
+ destination?: TCameraState;
25
+ }
26
+ export declare type TCameraState = {
27
+ radius?: number;
28
+ pitch?: number;
29
+ yaw?: number;
30
+ width?: number;
31
+ height?: number;
32
+ };
33
+ /**
34
+ * @summary The {@link ResetCamera3DModifier} provides double click to zoom to extents behavior on a 3D {@link SciChart3DSurface}
35
+ * within SciChart - High Performance {@link https://www.scichart.com/javascript-chart-features | JavaScript 3D Charts}
36
+ * @description
37
+ *
38
+ * To apply the {@link ResetCamera3DModifier} to a {@link SciChart3DSurface} and add Mouse-wheel zoom behavior,
39
+ * use the following code:
40
+ *
41
+ * ```ts
42
+ * const sciChartS3Durface: SciChart3DSurface;
43
+ * sciChart3DSurface.chartModifiers.add(new ZoomExtentsModifier3D());
44
+ * ```
45
+ *
46
+ */
47
+ export declare class ResetCamera3DModifier extends ChartModifierBase3D {
48
+ /**
49
+ * When true, the Zoom operations are animated. See also {@link animationDuration} and {@link easingFunction}
50
+ */
51
+ isAnimated: boolean;
52
+ /**
53
+ * Defines the duration of animations when zooming in milliseconds
54
+ */
55
+ animationDuration: number;
56
+ /**
57
+ * Defines the easing function for animation. See {@link TEasingFn} for a range of functions
58
+ */
59
+ easingFunction: TEasingFn;
60
+ destination: TCameraState;
61
+ /**
62
+ * Creates an instance of the {@link ResetCamera3DModifier}
63
+ * @param options optional parameters of type {@link IResetCamera3DOptions} used to configure the modifier
64
+ */
65
+ constructor(options?: IResetCamera3DOptions);
66
+ onAttach(): void;
67
+ /**
68
+ * @inheritDoc
69
+ */
70
+ modifierDoubleClick(args: ModifierMouseArgs): void;
71
+ toJSON?(): {
72
+ type: EChart3DModifierType;
73
+ options: {
74
+ animationDuration: number;
75
+ easingFunction: string;
76
+ isAnimated: boolean;
77
+ };
78
+ };
79
+ }