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
@@ -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 __());
@@ -45,6 +47,7 @@ var RenderSurface_1 = require("../Drawing/RenderSurface");
45
47
  var SolidBrushCache_1 = require("../Drawing/SolidBrushCache");
46
48
  var LayoutManager_1 = require("../LayoutManager/LayoutManager");
47
49
  var SciChartRenderer_1 = require("../Services/SciChartRenderer");
50
+ var TextureWorker_1 = require("../Services/Workers/TextureWorker");
48
51
  var AdornerLayer_1 = require("./Annotations/AdornerLayer");
49
52
  var createMaster_1 = require("./createMaster");
50
53
  var createSingle_1 = require("./createSingle");
@@ -55,6 +58,8 @@ var sciChartInitCommon_1 = require("./sciChartInitCommon");
55
58
  var SciChartSurfaceBase_1 = require("./SciChartSurfaceBase");
56
59
  var DpiHelper_1 = require("./TextureManager/DpiHelper");
57
60
  exports.sciChartConfig = {};
61
+ // To force the worker to be created before it is needed, so we know if it alive or not
62
+ var t = TextureWorker_1.textureWorker;
58
63
  /**
59
64
  * @summary The {@link SciChartSurface} is the root 2D Chart control in SciChart's High Performance Real-time
60
65
  * {@link https://www.scichart.com/javascript-chart-features | JavaScript Chart Library}
@@ -89,6 +94,7 @@ var SciChartSurface = /** @class */ (function (_super) {
89
94
  * to time render performance, or to update elements of the chart or your UI on redraw.
90
95
  */
91
96
  _this.rendered = new EventHandler_1.EventHandler();
97
+ _this.animationList = [];
92
98
  _this.zoomStateProperty = ZoomState_1.EZoomState.AtExtents;
93
99
  _this.paddingProperty = Thickness_1.Thickness.fromNumber(10);
94
100
  _this.viewportBorderProperty = {
@@ -193,13 +199,13 @@ var SciChartSurface = /** @class */ (function (_super) {
193
199
  * @param options Optional - Optional parameters for chart creation. See {@link I2DSurfaceOptions} for more details
194
200
  */
195
201
  SciChartSurface.create = function (divElementId, options) {
196
- chartBuilder_1.ensureRegistrations();
202
+ (0, chartBuilder_1.ensureRegistrations)();
197
203
  options = SciChartSurface.resolveOptions(options);
198
204
  if (app_1.IS_TEST_ENV) {
199
205
  return this.createTest(divElementId, options);
200
206
  }
201
207
  else {
202
- return createMaster_1.createMultichart(divElementId, options).then(function (result) {
208
+ return (0, createMaster_1.createMultichart)(divElementId, options).then(function (result) {
203
209
  result.sciChartSurface.applyOptions(options);
204
210
  return result;
205
211
  });
@@ -211,13 +217,13 @@ var SciChartSurface = /** @class */ (function (_super) {
211
217
  * @param options - optional parameters for chart creation. See {@link I2DSurfaceOptions} for more details
212
218
  */
213
219
  SciChartSurface.createSingle = function (divElementId, options) {
214
- chartBuilder_1.ensureRegistrations();
220
+ (0, chartBuilder_1.ensureRegistrations)();
215
221
  options = SciChartSurface.resolveOptions(options);
216
222
  if (app_1.IS_TEST_ENV) {
217
223
  return this.createTest(divElementId, options);
218
224
  }
219
225
  else {
220
- return createSingle_1.createSingleInternal(divElementId, options).then(function (result) {
226
+ return (0, createSingle_1.createSingleInternal)(divElementId, options).then(function (result) {
221
227
  result.sciChartSurface.applyOptions(options);
222
228
  return result;
223
229
  });
@@ -366,7 +372,7 @@ var SciChartSurface = /** @class */ (function (_super) {
366
372
  this.domSvgAdornerLayer.setAttribute("height", pixelHeight.toString());
367
373
  }
368
374
  if (this.domDivContainer) {
369
- this.domDivContainer.style.height = pixelHeight + "px";
375
+ this.domDivContainer.style.height = "".concat(pixelHeight, "px");
370
376
  }
371
377
  this.invalidateElement();
372
378
  };
@@ -398,10 +404,10 @@ var SciChartSurface = /** @class */ (function (_super) {
398
404
  this.yAxes.asArray().forEach(function (yAxis) { return yAxis.delete(); });
399
405
  this.modifierAnnotations.asArray().forEach(function (annotation) { return annotation.delete(); });
400
406
  this.annotations.asArray().forEach(function (annotation) { return annotation.delete(); });
401
- this.solidBrushCacheViewportBorder = Deleter_1.deleteSafe(this.solidBrushCacheViewportBorder);
402
- this.solidBrushCacheCanvasBorder = Deleter_1.deleteSafe(this.solidBrushCacheCanvasBorder);
403
- this.watermarkProperties = Deleter_1.deleteSafe(this.watermarkProperties);
404
- this.watermarkPropertyPosition = Deleter_1.deleteSafe(this.watermarkPropertyPosition);
407
+ this.solidBrushCacheViewportBorder = (0, Deleter_1.deleteSafe)(this.solidBrushCacheViewportBorder);
408
+ this.solidBrushCacheCanvasBorder = (0, Deleter_1.deleteSafe)(this.solidBrushCacheCanvasBorder);
409
+ this.watermarkProperties = (0, Deleter_1.deleteSafe)(this.watermarkProperties);
410
+ this.watermarkPropertyPosition = (0, Deleter_1.deleteSafe)(this.watermarkPropertyPosition);
405
411
  this.chartModifiers.asArray().forEach(function (chm) { return chm.delete(); });
406
412
  };
407
413
  /**
@@ -548,11 +554,11 @@ var SciChartSurface = /** @class */ (function (_super) {
548
554
  */
549
555
  SciChartSurface.prototype.drawBorder = function (renderContext) {
550
556
  // Draw Viewport Border
551
- drawBorder_1.drawBorder(renderContext, this.webAssemblyContext2D, this.solidBrushCacheViewportBorder, this.seriesViewRect, this.leftViewportBorder, this.topViewportBorder, this.rightViewportBorder, this.bottomViewportBorder, this.viewportBorder.color);
557
+ (0, drawBorder_1.drawBorder)(renderContext, this.webAssemblyContext2D, this.solidBrushCacheViewportBorder, this.seriesViewRect, this.leftViewportBorder, this.topViewportBorder, this.rightViewportBorder, this.bottomViewportBorder, this.viewportBorder.color);
552
558
  // Draw Canvas Border
553
559
  var canvasSize = renderContext.viewportSize;
554
560
  var canvasBorderRect = Rect_1.Rect.create(this.leftCanvasBorder, this.topCanvasBorder, canvasSize.width - this.leftCanvasBorder - this.rightCanvasBorder, canvasSize.height - this.topCanvasBorder - this.bottomCanvasBorder);
555
- drawBorder_1.drawBorder(renderContext, this.webAssemblyContext2D, this.solidBrushCacheCanvasBorder, canvasBorderRect, this.leftCanvasBorder, this.topCanvasBorder, this.rightCanvasBorder, this.bottomCanvasBorder, this.canvasBorder.color);
561
+ (0, drawBorder_1.drawBorder)(renderContext, this.webAssemblyContext2D, this.solidBrushCacheCanvasBorder, canvasBorderRect, this.leftCanvasBorder, this.topCanvasBorder, this.rightCanvasBorder, this.bottomCanvasBorder, this.canvasBorder.color);
556
562
  };
557
563
  Object.defineProperty(SciChartSurface.prototype, "leftViewportBorder", {
558
564
  /**
@@ -649,8 +655,40 @@ var SciChartSurface = /** @class */ (function (_super) {
649
655
  SciChartSurface.prototype.onAnimate = function (timeElapsed) {
650
656
  if (timeElapsed) {
651
657
  this.renderableSeries.asArray().forEach(function (rs) { return rs.onAnimate(timeElapsed); });
658
+ // advance all animations in queue
659
+ var remainingAnimations = [];
660
+ for (var i = 0; i < this.animationList.length; i++) {
661
+ var animation = this.animationList[i];
662
+ if (!animation.isComplete) {
663
+ animation.update(timeElapsed);
664
+ if (!animation.isComplete) {
665
+ // Request another draw to advance animation
666
+ this.invalidateElement();
667
+ remainingAnimations.push(animation);
668
+ }
669
+ }
670
+ }
671
+ this.animationList = remainingAnimations;
652
672
  }
653
673
  };
674
+ /**
675
+ * Gets the generic animations currently on the surface. Do not manipulate this array directly.
676
+ * To add, use addAnimation. To remove, find an animation and call .cancel() on it.
677
+ */
678
+ SciChartSurface.prototype.getAnimations = function () {
679
+ return this.animationList;
680
+ };
681
+ /**
682
+ * Add a {@link GenericAnimation} to the surface.
683
+ * Multiple animations will be run in parallel, so if you want to run one after another, use the onCompleted callback
684
+ * to add another animation after the first completes
685
+ */
686
+ SciChartSurface.prototype.addAnimation = function (animation) {
687
+ if (!animation)
688
+ return;
689
+ this.animationList.push(animation);
690
+ this.invalidateElement();
691
+ };
654
692
  Object.defineProperty(SciChartSurface.prototype, "isRunningAnimation", {
655
693
  /**
656
694
  * Returns true if an animation is running
@@ -661,7 +699,7 @@ var SciChartSurface = /** @class */ (function (_super) {
661
699
  return true;
662
700
  }
663
701
  }
664
- return false;
702
+ return this.animationList.some(function (a) { return !a.isComplete; });
665
703
  },
666
704
  enumerable: false,
667
705
  configurable: true
@@ -721,7 +759,7 @@ var SciChartSurface = /** @class */ (function (_super) {
721
759
  _super.prototype.applyOptions.call(this, options);
722
760
  if (options === null || options === void 0 ? void 0 : options.layoutManager) {
723
761
  if (!("layoutChart" in options.layoutManager)) {
724
- options.layoutManager = classFactory_1.createType(BaseType_1.EBaseType.LayoutManager, options.layoutManager.type, null, options.layoutManager.options);
762
+ options.layoutManager = (0, classFactory_1.createType)(BaseType_1.EBaseType.LayoutManager, options.layoutManager.type, null, options.layoutManager.options);
725
763
  }
726
764
  this.layoutManager = options.layoutManager;
727
765
  }
@@ -48,12 +48,12 @@ var SciChartSurfaceBase = /** @class */ (function () {
48
48
  function SciChartSurfaceBase(webAssemblyContext, canvases) {
49
49
  var _this = this;
50
50
  if (canvases === void 0) { canvases = {}; }
51
- this.id = guid_1.generateGuid();
51
+ this.id = (0, guid_1.generateGuid)();
52
52
  this.themeProviderProperty = SciChartSurfaceBase.DEFAULT_THEME;
53
53
  this.previousThemeProviderProperty = SciChartSurfaceBase.DEFAULT_THEME;
54
54
  this.isInitializedProperty = false;
55
55
  this.isDeletedProperty = false;
56
- this.suspendableIdProperty = guid_1.generateGuid();
56
+ this.suspendableIdProperty = (0, guid_1.generateGuid)();
57
57
  this.isAlphaEnabledProperty = true;
58
58
  this.deletables = [];
59
59
  Guard_1.Guard.notNull(webAssemblyContext, "webAssemblyContext");
@@ -117,7 +117,7 @@ var SciChartSurfaceBase = /** @class */ (function () {
117
117
  if ((options === null || options === void 0 ? void 0 : options.theme) && "type" in options.theme) {
118
118
  if (!("applyOverrides" in options.theme)) {
119
119
  // This is {type, overrides}
120
- var theme = classFactory_1.createType(BaseType_1.EBaseType.ThemeProvider, options.theme.type, null, options.theme);
120
+ var theme = (0, classFactory_1.createType)(BaseType_1.EBaseType.ThemeProvider, options.theme.type, null, options.theme);
121
121
  if ("applyOverrides" in theme) {
122
122
  // We got a ThemeProvider we can give overrides to
123
123
  theme.applyOverrides(options.theme);
@@ -135,7 +135,7 @@ var SciChartSurfaceBase = /** @class */ (function () {
135
135
  }
136
136
  if (options === null || options === void 0 ? void 0 : options.loader) {
137
137
  if (!("addChartLoader" in options.loader)) {
138
- options.loader = classFactory_1.createType(BaseType_1.EBaseType.Loader, options.loader.type, null, options.loader);
138
+ options.loader = (0, classFactory_1.createType)(BaseType_1.EBaseType.Loader, options.loader.type, null, options.loader);
139
139
  }
140
140
  }
141
141
  return options;
@@ -298,7 +298,7 @@ var SciChartSurfaceBase = /** @class */ (function () {
298
298
  this.mouseManager.unsubscribe();
299
299
  for (var _i = 0, _b = this.deletables; _i < _b.length; _i++) {
300
300
  var deletable = _b[_i];
301
- Deleter_1.deleteSafe(deletable);
301
+ (0, Deleter_1.deleteSafe)(deletable);
302
302
  }
303
303
  this.deletables = [];
304
304
  };
@@ -420,8 +420,8 @@ var SciChartSurfaceBase = /** @class */ (function () {
420
420
  return SciChartSurfaceBase;
421
421
  }());
422
422
  exports.SciChartSurfaceBase = SciChartSurfaceBase;
423
- exports.createChartDestination = function (canvasId) {
424
- var canvas = document.querySelector("#" + canvasId);
423
+ var createChartDestination = function (canvasId) {
424
+ var canvas = document.querySelector("#".concat(canvasId));
425
425
  if (!canvas)
426
426
  return undefined;
427
427
  return {
@@ -437,7 +437,8 @@ exports.createChartDestination = function (canvasId) {
437
437
  }
438
438
  };
439
439
  };
440
- exports.getMasterCanvas = function () {
440
+ exports.createChartDestination = createChartDestination;
441
+ var getMasterCanvas = function () {
441
442
  /** @ignore */
442
443
  var SCICHART_MASTER_CANVAS_ID = "SciChartMasterCanvas";
443
444
  // Have we created a master canvas yet?
@@ -473,8 +474,9 @@ exports.getMasterCanvas = function () {
473
474
  }
474
475
  return SciChartSurfaceBase.domMasterCanvas;
475
476
  };
476
- exports.copyToCanvas = function (sourceCanvas) { return function (destinationId) {
477
- var destinationCanvas = document.querySelector("#" + destinationId);
477
+ exports.getMasterCanvas = getMasterCanvas;
478
+ var copyToCanvas = function (sourceCanvas) { return function (destinationId) {
479
+ var destinationCanvas = document.querySelector("#".concat(destinationId));
478
480
  if (destinationCanvas) {
479
481
  var destinationCanvasContext = destinationCanvas.getContext("2d");
480
482
  destinationCanvasContext.clearRect(0, 0, destinationCanvasContext.canvas.width, destinationCanvasContext.canvas.height);
@@ -487,8 +489,9 @@ exports.copyToCanvas = function (sourceCanvas) { return function (destinationId)
487
489
  // destinationCanvas.clientWidth, destinationCanvas.clientHeight);
488
490
  }
489
491
  }; };
492
+ exports.copyToCanvas = copyToCanvas;
490
493
  /** @ignore */
491
- exports.getLocateFile = function (sciChartConfig) { return function (path, prefix) {
494
+ var getLocateFile = function (sciChartConfig) { return function (path, prefix) {
492
495
  if (path.endsWith(".wasm") && sciChartConfig.wasmUrl) {
493
496
  return sciChartConfig.wasmUrl;
494
497
  }
@@ -497,3 +500,4 @@ exports.getLocateFile = function (sciChartConfig) { return function (path, prefi
497
500
  }
498
501
  return prefix + path;
499
502
  }; };
503
+ exports.getLocateFile = getLocateFile;
@@ -90,9 +90,9 @@ var CanvasTexture = /** @class */ (function () {
90
90
  * @inheritDoc
91
91
  */
92
92
  CanvasTexture.prototype.delete = function () {
93
- this.intermediateVector = Deleter_1.deleteSafe(this.intermediateVector);
94
- this.originalIntermediateVector = Deleter_1.deleteSafe(this.originalIntermediateVector);
95
- this.tsrTextureCache = Deleter_1.deleteSafe(this.tsrTextureCache);
93
+ this.intermediateVector = (0, Deleter_1.deleteSafe)(this.intermediateVector);
94
+ this.originalIntermediateVector = (0, Deleter_1.deleteSafe)(this.originalIntermediateVector);
95
+ this.tsrTextureCache = (0, Deleter_1.deleteSafe)(this.tsrTextureCache);
96
96
  };
97
97
  /**
98
98
  * After you have finished drawing, copy the canvas to the destination {@link TSRTexture}
@@ -101,7 +101,7 @@ var CanvasTexture = /** @class */ (function () {
101
101
  var _a;
102
102
  var expectedSize = this.width * this.height;
103
103
  if (!this.intermediateVector || this.intermediateVector.size() !== expectedSize) {
104
- throw new Error("CanvasTexture.ts: IntermediateVector size is " + ((_a = this.intermediateVector) === null || _a === void 0 ? void 0 : _a.size()) + " and expected " + expectedSize);
104
+ throw new Error("CanvasTexture.ts: IntermediateVector size is ".concat((_a = this.intermediateVector) === null || _a === void 0 ? void 0 : _a.size(), " and expected ").concat(expectedSize));
105
105
  }
106
106
  // Get image data from the HTML5 canvas
107
107
  var imageData = this.getContext().getImageData(0, 0, this.width, this.height);
@@ -132,7 +132,7 @@ var CanvasTexture = /** @class */ (function () {
132
132
  var size = this.width * this.height;
133
133
  for (var i = 0; i < size; i++) {
134
134
  var oldPixel = this.originalIntermediateVector.get(i);
135
- var newPixel = colorUtil_1.uintArgbColorMultiplyOpacity(oldPixel, opacity);
135
+ var newPixel = (0, colorUtil_1.uintArgbColorMultiplyOpacity)(oldPixel, opacity);
136
136
  this.intermediateVector.set(i, newPixel);
137
137
  }
138
138
  var tsrTexture = this.tsrTextureCache.value;
@@ -40,7 +40,7 @@ var DpiHelper = /** @class */ (function () {
40
40
  var lastDpiScaling = DpiHelper.PIXEL_RATIO;
41
41
  if (lastDpiScaling !== newDpiScale) {
42
42
  if (SciChartSurfaceBase_1.DebugForDpi) {
43
- console.log("Dpi Changing, was " + lastDpiScaling + ", now " + newDpiScale);
43
+ console.log("Dpi Changing, was ".concat(lastDpiScaling, ", now ").concat(newDpiScale));
44
44
  }
45
45
  DpiHelper.PIXEL_RATIO = newDpiScale;
46
46
  DpiHelper.dpiChanged.raiseEvent({ newValue: newDpiScale, oldValue: lastDpiScaling });
@@ -81,7 +81,7 @@ var DpiHelper = /** @class */ (function () {
81
81
  */
82
82
  DpiHelper.setWidth = function (canvas, desiredWidth) {
83
83
  if (SciChartSurfaceBase_1.DebugForDpi) {
84
- console.log("setWidth " + canvas.id + " backBuffer=" + desiredWidth * DpiHelper.PIXEL_RATIO + " display=" + desiredWidth);
84
+ console.log("setWidth ".concat(canvas.id, " backBuffer=").concat(desiredWidth * DpiHelper.PIXEL_RATIO, " display=").concat(desiredWidth));
85
85
  }
86
86
  // https://www.khronos.org/webgl/wiki/HandlingHighDPI
87
87
  //
@@ -97,7 +97,7 @@ var DpiHelper = /** @class */ (function () {
97
97
  */
98
98
  DpiHelper.setHeight = function (canvas, desiredHeight) {
99
99
  if (SciChartSurfaceBase_1.DebugForDpi) {
100
- console.log("setHeight " + canvas.id + " backBuffer=" + desiredHeight * DpiHelper.PIXEL_RATIO + " display=" + desiredHeight);
100
+ console.log("setHeight ".concat(canvas.id, " backBuffer=").concat(desiredHeight * DpiHelper.PIXEL_RATIO, " display=").concat(desiredHeight));
101
101
  }
102
102
  // https://www.khronos.org/webgl/wiki/HandlingHighDPI
103
103
  //
@@ -35,6 +35,7 @@ export declare class TextureManager implements IDeletable {
35
35
  createTextureFromImage(image: HTMLImageElement, imageWidth: number, imageHeight: number): TTextureObject;
36
36
  getTextureContext(width: number, height: number): CanvasRenderingContext2D;
37
37
  createTextureFromCtxBuffer(textureWidth: number, textureHeight: number): TTextureObject;
38
+ createTextureFromImageData(imageData: ImageData, textureWidth: number, textureHeight: number): TTextureObject;
38
39
  delete(): void;
39
40
  private createTextureFromCtx;
40
41
  }
@@ -56,15 +56,15 @@ var TextureManager = /** @class */ (function () {
56
56
  this.ctx.fillRect(0, 0, this.canvas.width, this.canvas.height);
57
57
  }
58
58
  this.ctx.fillStyle = color;
59
- this.ctx.font = font_1.getFontString(fontStyle, fontWeight, fontSizePx, fontFamily);
59
+ this.ctx.font = (0, font_1.getFontString)(fontStyle, fontWeight, fontSizePx, fontFamily);
60
60
  var textureWidth = 0;
61
61
  // const fontSizePt = Math.ceil(fontSizePx * PX_TO_PT);
62
- var lineHeight = exports.measureTextHeight(fontSizePx);
62
+ var lineHeight = (0, exports.measureTextHeight)(fontSizePx);
63
63
  var extraLineHeight = lineHeight * (lineSpacing !== null && lineSpacing !== void 0 ? lineSpacing : 1.1);
64
64
  var textureHeight = lineHeight + padding.top + padding.bottom;
65
65
  for (var index = 0; index < text.length; index++) {
66
66
  var line = text[index];
67
- var lineWidth = exports.measureTextWidth(this.ctx, line) + padding.left + padding.right;
67
+ var lineWidth = (0, exports.measureTextWidth)(this.ctx, line) + padding.left + padding.right;
68
68
  if (lineWidth > textureWidth) {
69
69
  textureWidth = lineWidth;
70
70
  }
@@ -96,7 +96,7 @@ var TextureManager = /** @class */ (function () {
96
96
  for (var _i = 0, text_1 = text; _i < text_1.length; _i++) {
97
97
  var line = text_1[_i];
98
98
  if (alignment === LabelAlignment_1.ELabelAlignment.Center || alignment === LabelAlignment_1.ELabelAlignment.Right) {
99
- var lineWidth = exports.measureTextWidth(this.ctx, line);
99
+ var lineWidth = (0, exports.measureTextWidth)(this.ctx, line);
100
100
  x =
101
101
  alignment === LabelAlignment_1.ELabelAlignment.Right
102
102
  ? textureWidth - lineWidth - padding.right
@@ -118,9 +118,9 @@ var TextureManager = /** @class */ (function () {
118
118
  this.ctx.globalAlpha = opacity !== null && opacity !== void 0 ? opacity : 1;
119
119
  this.ctx.textBaseline = "top";
120
120
  this.ctx.clearRect(0, 0, this.canvas.width, this.canvas.height);
121
- this.ctx.font = font_1.getFontString(fontStyle, fontWeight, fontSizePx, fontFamily);
122
- var textureWidth = exports.measureTextWidth(this.ctx, text) + 4 * padding;
123
- var textureHeight = exports.measureTextHeight(fontSizePx) + 2 * padding;
121
+ this.ctx.font = (0, font_1.getFontString)(fontStyle, fontWeight, fontSizePx, fontFamily);
122
+ var textureWidth = (0, exports.measureTextWidth)(this.ctx, text) + 4 * padding;
123
+ var textureHeight = (0, exports.measureTextHeight)(fontSizePx) + 2 * padding;
124
124
  var _a = calcAxisMarkerTextureParams(textureHeight, textureWidth, text, axisAlignment), angle = _a.angle, alignmentLeft = _a.alignmentLeft, alignmentTop = _a.alignmentTop, finalTextureWidth = _a.finalTextureWidth, finalTextureHeight = _a.finalTextureHeight, halfHeight = _a.halfHeight;
125
125
  this.ctx.save();
126
126
  this.ctx.translate((textureWidth + halfHeight) / 2, textureHeight / 2);
@@ -178,13 +178,15 @@ var TextureManager = /** @class */ (function () {
178
178
  return this.ctx;
179
179
  };
180
180
  TextureManager.prototype.createTextureFromCtxBuffer = function (textureWidth, textureHeight) {
181
- // TODO: Michael cache the canvas, UIntVector, bitmapTexture unless size changed
182
- // Logger.log(`New Texture: Size is ${textureWidth}, ${textureHeight}`);
181
+ var imageData = this.ctx.getImageData(0, 0, textureWidth, textureHeight);
182
+ return this.createTextureFromImageData(imageData, textureWidth, textureHeight);
183
+ };
184
+ TextureManager.prototype.createTextureFromImageData = function (imageData, textureWidth, textureHeight) {
183
185
  var textureFormat = this.webAssemblyContext.eTSRTextureFormat.TSR_TEXTUREFORMAT_A8B8G8R8;
184
186
  var bitmapTexture = this.webAssemblyContext.SCRTCreateBitmapTexture(textureWidth, textureHeight, textureFormat);
185
187
  var buffer;
186
188
  try {
187
- var imageData = this.ctx.getImageData(0, 0, textureWidth, textureHeight);
189
+ // const imageData = this.ctx.getImageData(0, 0, textureWidth, textureHeight);
188
190
  var clampedCharArray = imageData.data;
189
191
  /// because plain c functions were receiving the object pointer as null, this is the way around that...
190
192
  this.webAssemblyContext.SCRTSetActiveTexture(bitmapTexture);
@@ -258,11 +260,13 @@ var TextureManager = /** @class */ (function () {
258
260
  return TextureManager;
259
261
  }());
260
262
  exports.TextureManager = TextureManager;
261
- exports.measureTextHeight = function (fontSizePx) { return fontSizePx; };
262
- exports.measureTextWidth = function (ctx, text) {
263
+ var measureTextHeight = function (fontSizePx) { return fontSizePx; };
264
+ exports.measureTextHeight = measureTextHeight;
265
+ var measureTextWidth = function (ctx, text) {
263
266
  var textMeasure = ctx.measureText(text);
264
267
  return Math.ceil(textMeasure.width);
265
268
  };
269
+ exports.measureTextWidth = measureTextWidth;
266
270
  /** @ignore */
267
271
  var calcAxisMarkerTextureParams = function (textureHeight, textureWidth, text, axisAlignment) {
268
272
  var halfHeight = Math.ceil(textureHeight / 2);
@@ -56,7 +56,7 @@ var sciChartMaster = {
56
56
  /** @ignore */
57
57
  var sciChartMasterPromise;
58
58
  /** @ignore */
59
- exports.createMultichart = function (divElementId, options) { return __awaiter(void 0, void 0, void 0, function () {
59
+ var createMultichart = function (divElementId, options) { return __awaiter(void 0, void 0, void 0, function () {
60
60
  var canvases, loader, loaderDiv, master, createChildSurface, wasmContext, sciChartSurface;
61
61
  var _a, _b, _c;
62
62
  return __generator(this, function (_d) {
@@ -90,6 +90,7 @@ exports.createMultichart = function (divElementId, options) { return __awaiter(v
90
90
  }
91
91
  });
92
92
  }); };
93
+ exports.createMultichart = createMultichart;
93
94
  /** @ignore */
94
95
  var monitorWebGL = function (master) {
95
96
  var wasmContext = sciChartMaster.wasmContext, getChildSurfaces = sciChartMaster.getChildSurfaces;
@@ -134,7 +135,7 @@ var createMaster = function () {
134
135
  return sciChartSurface;
135
136
  };
136
137
  var addDestination = function (wasmContext, canvasElementId, sciChartSurface, width, height, chartInitObj) {
137
- var newDestination = SciChartSurfaceBase_1.createChartDestination(canvasElementId);
138
+ var newDestination = (0, SciChartSurfaceBase_1.createChartDestination)(canvasElementId);
138
139
  if (!newDestination) {
139
140
  sciChartSurface.delete();
140
141
  return;
@@ -146,8 +147,8 @@ var createMaster = function () {
146
147
  };
147
148
  return new Promise(function (resolve) {
148
149
  // make sure canvas has event listener for context creation error
149
- var canvas = SciChartSurfaceBase_1.getMasterCanvas();
150
- var locateFile = SciChartSurfaceBase_1.getLocateFile(SciChartSurface_1.sciChartConfig);
150
+ var canvas = (0, SciChartSurfaceBase_1.getMasterCanvas)();
151
+ var locateFile = (0, SciChartSurfaceBase_1.getLocateFile)(SciChartSurface_1.sciChartConfig);
151
152
  // @ts-ignore
152
153
  new WasmModule2D({ locateFile: locateFile, noInitialRun: true }).then(function (wasmContext) {
153
154
  var getChildSurfaces = function () { return exports.sciChartDestinations.map(function (el) { return el.sciChartSurface; }); };
@@ -198,7 +199,7 @@ var createMaster = function () {
198
199
  wasmContext.SCRTSetGlobalSampleChartInterface(chartInitObj);
199
200
  /// create an object that native side can trigger the copy to from...
200
201
  var canvasCopyObj = wasmContext.SCRTCopyToDestinationInterface.implement({
201
- CopyToDestination: SciChartSurfaceBase_1.copyToCanvas(SciChartSurfaceBase_1.SciChartSurfaceBase.domMasterCanvas)
202
+ CopyToDestination: (0, SciChartSurfaceBase_1.copyToCanvas)(SciChartSurfaceBase_1.SciChartSurfaceBase.domMasterCanvas)
202
203
  });
203
204
  wasmContext.SCRTSetGlobalCopyToDestinationInterface(canvasCopyObj);
204
205
  wasmContext.TSRSetDrawRequestsEnabled(true);
@@ -14,7 +14,7 @@ var SciChartSurfaceBase_1 = require("./SciChartSurfaceBase");
14
14
  // Global variables
15
15
  exports.sciChartSingleDestinations = [];
16
16
  /** @ignore */
17
- exports.createSingleInternal = function (divElementId, options) {
17
+ var createSingleInternal = function (divElementId, options) {
18
18
  return new Promise(function (resolve) {
19
19
  var _a;
20
20
  var canvases = sciChartInitCommon_1.default.initCanvas(divElementId, options === null || options === void 0 ? void 0 : options.widthAspect, options === null || options === void 0 ? void 0 : options.heightAspect);
@@ -23,13 +23,13 @@ exports.createSingleInternal = function (divElementId, options) {
23
23
  var webGLSupport = WebGlHelper_1.WebGlHelper.getWebGlSupport();
24
24
  // console.log("webGLSupport", webGLSupport);
25
25
  if (webGLSupport === WebGlHelper_1.EWebGLSupport.WebGL2 || webGLSupport === WebGlHelper_1.EWebGLSupport.WebGL1) {
26
- var locateFile = SciChartSurfaceBase_1.getLocateFile(SciChartSurface_1.sciChartConfig);
26
+ var locateFile = (0, SciChartSurfaceBase_1.getLocateFile)(SciChartSurface_1.sciChartConfig);
27
27
  // @ts-ignore
28
28
  new WasmModule2D({ locateFile: locateFile, noInitialRun: true }).then(function (wasmContext) {
29
29
  loader.removeChartLoader(canvases.domDivContainer, loaderDiv);
30
30
  // @ts-ignore
31
31
  wasmContext.doNotCaptureKeyboard = true;
32
- exports.initDrawEngineSingleChart(wasmContext, canvases, resolve, options === null || options === void 0 ? void 0 : options.theme);
32
+ (0, exports.initDrawEngineSingleChart)(wasmContext, canvases, resolve, options === null || options === void 0 ? void 0 : options.theme);
33
33
  });
34
34
  }
35
35
  else {
@@ -37,8 +37,9 @@ exports.createSingleInternal = function (divElementId, options) {
37
37
  }
38
38
  });
39
39
  };
40
+ exports.createSingleInternal = createSingleInternal;
40
41
  /** @ignore */
41
- exports.initDrawEngineSingleChart = function (wasmContext, canvases, resolve, theme) {
42
+ var initDrawEngineSingleChart = function (wasmContext, canvases, resolve, theme) {
42
43
  Guard_1.Guard.notNull(theme, "theme");
43
44
  var width = canvases.domCanvas2D.width;
44
45
  var height = canvases.domCanvas2D.height;
@@ -81,3 +82,4 @@ exports.initDrawEngineSingleChart = function (wasmContext, canvases, resolve, th
81
82
  // @ts-ignore
82
83
  wasmContext.callMain();
83
84
  };
85
+ exports.initDrawEngineSingleChart = initDrawEngineSingleChart;