scichart 2.2.2416 → 3.0.0-beta.224

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 (394) hide show
  1. package/Builder/buildDataSeries.d.ts +16 -1
  2. package/Builder/buildDataSeries.js +24 -1
  3. package/Builder/buildSeries.d.ts +60 -3
  4. package/Builder/buildSeries.js +28 -1
  5. package/Builder/buildSurface.d.ts +28 -2
  6. package/Builder/buildSurface.js +53 -31
  7. package/Builder/chartBuilder.d.ts +20 -7
  8. package/Builder/chartBuilder.js +37 -3
  9. package/Charting/ChartModifiers/ChartModifierBase.d.ts +21 -0
  10. package/Charting/ChartModifiers/ChartModifierBase.js +12 -0
  11. package/Charting/ChartModifiers/ChartModifierBase2D.js +2 -1
  12. package/Charting/ChartModifiers/CursorModifier.d.ts +83 -10
  13. package/Charting/ChartModifiers/CursorModifier.js +147 -58
  14. package/Charting/ChartModifiers/DataPointSelectionModifier.js +2 -1
  15. package/Charting/ChartModifiers/LegendModifier.js +2 -1
  16. package/Charting/ChartModifiers/ModifierMouseArgs.d.ts +6 -1
  17. package/Charting/ChartModifiers/ModifierMouseArgs.js +13 -3
  18. package/Charting/ChartModifiers/MouseWheelZoomModifier.d.ts +2 -2
  19. package/Charting/ChartModifiers/MouseWheelZoomModifier.js +16 -4
  20. package/Charting/ChartModifiers/OverviewRangeSelectionModifier.d.ts +2 -1
  21. package/Charting/ChartModifiers/OverviewRangeSelectionModifier.js +8 -4
  22. package/Charting/ChartModifiers/PinchZoomModifier.js +2 -1
  23. package/Charting/ChartModifiers/RolloverModifier.d.ts +40 -0
  24. package/Charting/ChartModifiers/RolloverModifier.js +40 -3
  25. package/Charting/ChartModifiers/RubberBandXyZoomModifier.js +2 -1
  26. package/Charting/ChartModifiers/SeriesSelectionModifier.js +2 -1
  27. package/Charting/ChartModifiers/XAxisDragModifier.d.ts +1 -1
  28. package/Charting/ChartModifiers/XAxisDragModifier.js +2 -1
  29. package/Charting/ChartModifiers/YAxisDragModifier.d.ts +1 -1
  30. package/Charting/ChartModifiers/YAxisDragModifier.js +2 -1
  31. package/Charting/ChartModifiers/ZoomExtentsModifier.js +2 -1
  32. package/Charting/ChartModifiers/ZoomPanModifier.js +2 -1
  33. package/Charting/ChartModifiers/constants.d.ts +3 -1
  34. package/Charting/ChartModifiers/constants.js +2 -0
  35. package/Charting/Drawing/BatchRenderContext.d.ts +6 -0
  36. package/Charting/Drawing/BatchRenderContext.js +40 -0
  37. package/Charting/Drawing/RenderSurface.d.ts +2 -1
  38. package/Charting/Drawing/RenderSurface.js +3 -2
  39. package/Charting/Drawing/WebGlRenderContext2D.d.ts +19 -4
  40. package/Charting/Drawing/WebGlRenderContext2D.js +70 -41
  41. package/Charting/LayoutManager/BaseCenteredAxisLayoutStrategy.js +2 -1
  42. package/Charting/LayoutManager/BottomAlignedInnerAxisLayoutStrategy.js +1 -1
  43. package/Charting/LayoutManager/CentralAxesLayoutManager.js +2 -1
  44. package/Charting/LayoutManager/LayoutManager.d.ts +2 -1
  45. package/Charting/LayoutManager/LayoutManager.js +6 -5
  46. package/Charting/LayoutManager/LeftAlignedInnerAxisLayoutStrategy.js +1 -1
  47. package/Charting/LayoutManager/RightAlignedInnerAxisLayoutStrategy.js +1 -1
  48. package/Charting/LayoutManager/TopAlignedInnerAxisLayoutStrategy.js +1 -1
  49. package/Charting/Model/BaseDataSeries.d.ts +10 -1
  50. package/Charting/Model/BaseDataSeries.js +9 -8
  51. package/Charting/Model/BaseHeatmapDataSeries.d.ts +18 -5
  52. package/Charting/Model/BaseHeatmapDataSeries.js +21 -13
  53. package/Charting/Model/ChartData/SeriesInfo.d.ts +6 -0
  54. package/Charting/Model/ChartData/SeriesInfo.js +5 -0
  55. package/Charting/Model/ChartData/XyySeriesInfo.d.ts +2 -0
  56. package/Charting/Model/ChartData/XyySeriesInfo.js +2 -0
  57. package/Charting/Model/DataDistributionCalculator/DataDistributionCalculator.js +4 -3
  58. package/Charting/Model/Filters/HlcCustomFilter.js +12 -9
  59. package/Charting/Model/Filters/HlcFilterBase.js +2 -1
  60. package/Charting/Model/Filters/HlcScaleOffsetFilter.js +2 -1
  61. package/Charting/Model/Filters/OhlcCustomFilter.js +12 -9
  62. package/Charting/Model/Filters/OhlcScaleOffsetFilter.js +2 -1
  63. package/Charting/Model/Filters/XyCustomFilter.js +12 -9
  64. package/Charting/Model/Filters/XyFilterBase.d.ts +14 -5
  65. package/Charting/Model/Filters/XyFilterBase.js +47 -15
  66. package/Charting/Model/Filters/XyMovingAverageFilter.js +2 -1
  67. package/Charting/Model/Filters/XyRatioFilter.js +2 -1
  68. package/Charting/Model/Filters/XyScaleOffsetFilter.js +2 -1
  69. package/Charting/Model/Filters/XyyCustomFilter.js +12 -9
  70. package/Charting/Model/Filters/XyyFilterBase.js +2 -1
  71. package/Charting/Model/Filters/XyyScaleOffsetFilter.js +2 -1
  72. package/Charting/Model/Filters/XyzCustomFilter.js +12 -9
  73. package/Charting/Model/Filters/XyzFilterBase.js +2 -1
  74. package/Charting/Model/Filters/XyzScaleOffsetFilter.js +2 -1
  75. package/Charting/Model/IDataSeries.d.ts +9 -1
  76. package/Charting/Model/IDataSeries.js +8 -0
  77. package/Charting/Model/NonUniformHeatmapDataSeries.d.ts +112 -0
  78. package/Charting/Model/NonUniformHeatmapDataSeries.js +261 -0
  79. package/Charting/Model/PaletteFactory.d.ts +40 -4
  80. package/Charting/Model/PaletteFactory.js +37 -11
  81. package/Charting/Model/XyTextDataSeries.d.ts +121 -0
  82. package/Charting/Model/XyTextDataSeries.js +274 -0
  83. package/Charting/Numerics/CoordinateCalculators/CoordinateCalculatorBase.d.ts +1 -1
  84. package/Charting/Numerics/Resamplers/ExtremeResamplerHelper.js +1 -1
  85. package/Charting/Services/RenderPassData.d.ts +15 -5
  86. package/Charting/Services/RenderPassData.js +27 -5
  87. package/Charting/Services/SciChartRenderer.d.ts +2 -1
  88. package/Charting/Services/SciChartRenderer.js +92 -29
  89. package/Charting/Themes/IThemeProvider.d.ts +61 -0
  90. package/Charting/Themes/IThemeProvider.js +67 -1
  91. package/Charting/Themes/SciChartJSDarkTheme.d.ts +4 -0
  92. package/Charting/Themes/SciChartJSDarkTheme.js +6 -2
  93. package/Charting/Themes/SciChartJSDarkv2Theme.js +3 -0
  94. package/Charting/Themes/SciChartJSLightTheme.d.ts +8 -0
  95. package/Charting/Themes/SciChartJSLightTheme.js +8 -0
  96. package/Charting/Themes/SciChartJsNavyTheme.d.ts +10 -0
  97. package/Charting/Themes/SciChartJsNavyTheme.js +49 -0
  98. package/Charting/Visuals/Annotations/AdornerLayer.js +4 -8
  99. package/Charting/Visuals/Annotations/AnnotationBase.d.ts +80 -7
  100. package/Charting/Visuals/Annotations/AnnotationBase.js +238 -28
  101. package/Charting/Visuals/Annotations/AnnotationClickEventArgs.d.ts +11 -0
  102. package/Charting/Visuals/Annotations/AnnotationClickEventArgs.js +12 -0
  103. package/Charting/Visuals/Annotations/AxisMarkerAnnotation.d.ts +1 -0
  104. package/Charting/Visuals/Annotations/AxisMarkerAnnotation.js +18 -19
  105. package/Charting/Visuals/Annotations/BoxAnnotation.d.ts +1 -0
  106. package/Charting/Visuals/Annotations/BoxAnnotation.js +69 -67
  107. package/Charting/Visuals/Annotations/CursorTooltipSvgAnnotation.d.ts +2 -2
  108. package/Charting/Visuals/Annotations/CursorTooltipSvgAnnotation.js +20 -20
  109. package/Charting/Visuals/Annotations/CustomAnnotation.d.ts +1 -1
  110. package/Charting/Visuals/Annotations/CustomAnnotation.js +3 -2
  111. package/Charting/Visuals/Annotations/HorizontalLineAnnotation.js +6 -3
  112. package/Charting/Visuals/Annotations/IAdornerProvider.d.ts +12 -0
  113. package/Charting/Visuals/Annotations/IAnnotation.d.ts +9 -0
  114. package/Charting/Visuals/Annotations/IAnnotation.js +9 -0
  115. package/Charting/Visuals/Annotations/LineAnnotation.d.ts +1 -0
  116. package/Charting/Visuals/Annotations/LineAnnotation.js +29 -35
  117. package/Charting/Visuals/Annotations/NativeTextAnnotation.d.ts +193 -0
  118. package/Charting/Visuals/Annotations/NativeTextAnnotation.js +536 -0
  119. package/Charting/Visuals/Annotations/OverviewCustomResizableAnnotation.d.ts +4 -2
  120. package/Charting/Visuals/Annotations/OverviewCustomResizableAnnotation.js +19 -14
  121. package/Charting/Visuals/Annotations/RolloverLegendSvgAnnotation.d.ts +2 -2
  122. package/Charting/Visuals/Annotations/RolloverLegendSvgAnnotation.js +9 -8
  123. package/Charting/Visuals/Annotations/RolloverMarkerSvgAnnotation.d.ts +2 -2
  124. package/Charting/Visuals/Annotations/RolloverMarkerSvgAnnotation.js +6 -6
  125. package/Charting/Visuals/Annotations/RolloverTooltipSvgAnnotation.d.ts +2 -2
  126. package/Charting/Visuals/Annotations/RolloverTooltipSvgAnnotation.js +16 -17
  127. package/Charting/Visuals/Annotations/SvgAnnotationBase.d.ts +13 -2
  128. package/Charting/Visuals/Annotations/SvgAnnotationBase.js +34 -42
  129. package/Charting/Visuals/Annotations/TextAnnotation.d.ts +2 -2
  130. package/Charting/Visuals/Annotations/TextAnnotation.js +41 -22
  131. package/Charting/Visuals/Annotations/VerticalLineAnnotation.js +6 -3
  132. package/Charting/Visuals/Annotations/annotationHelpers.d.ts +6 -6
  133. package/Charting/Visuals/Annotations/annotationHelpers.js +7 -6
  134. package/Charting/Visuals/Annotations/constants.d.ts +13 -1
  135. package/Charting/Visuals/Annotations/constants.js +12 -0
  136. package/Charting/Visuals/Axis/AxisBase2D.d.ts +24 -4
  137. package/Charting/Visuals/Axis/AxisBase2D.js +115 -38
  138. package/Charting/Visuals/Axis/AxisCore.d.ts +10 -5
  139. package/Charting/Visuals/Axis/AxisCore.js +11 -10
  140. package/Charting/Visuals/Axis/AxisRenderer.js +114 -20
  141. package/Charting/Visuals/Axis/CategoryAxis.js +2 -1
  142. package/Charting/Visuals/Axis/CategoryAxisBase.d.ts +15 -15
  143. package/Charting/Visuals/Axis/CategoryAxisBase.js +14 -12
  144. package/Charting/Visuals/Axis/DateTimeNumericAxis.js +2 -1
  145. package/Charting/Visuals/Axis/DeltaCalculator/DateTimeDeltaCalculator.js +2 -1
  146. package/Charting/Visuals/Axis/LabelProvider/DateLabelProvider.js +2 -1
  147. package/Charting/Visuals/Axis/LabelProvider/LabelCache.js +2 -0
  148. package/Charting/Visuals/Axis/LabelProvider/LabelProviderBase2D.d.ts +14 -0
  149. package/Charting/Visuals/Axis/LabelProvider/LabelProviderBase2D.js +140 -33
  150. package/Charting/Visuals/Axis/LabelProvider/LogarithmicLabelProvider.js +2 -1
  151. package/Charting/Visuals/Axis/LabelProvider/NumericLabelProvider.js +2 -1
  152. package/Charting/Visuals/Axis/LabelProvider/PieLabelProvider.js +2 -1
  153. package/Charting/Visuals/Axis/LabelProvider/SmartDateLabelProvider.d.ts +31 -1
  154. package/Charting/Visuals/Axis/LabelProvider/SmartDateLabelProvider.js +64 -42
  155. package/Charting/Visuals/Axis/LabelProvider/TextLabelProvider.d.ts +2 -2
  156. package/Charting/Visuals/Axis/LabelProvider/TextLabelProvider.js +16 -19
  157. package/Charting/Visuals/Axis/LogarithmicAxis.js +9 -6
  158. package/Charting/Visuals/Axis/NumericAxis.js +3 -3
  159. package/Charting/Visuals/Axis/constants.d.ts +1 -0
  160. package/Charting/Visuals/Axis/constants.js +1 -0
  161. package/Charting/Visuals/HeatmapLegend.d.ts +95 -0
  162. package/Charting/Visuals/HeatmapLegend.js +192 -0
  163. package/Charting/Visuals/Helpers/NativeObject.d.ts +15 -2
  164. package/Charting/Visuals/Helpers/NativeObject.js +72 -6
  165. package/Charting/Visuals/I2DSurfaceOptions.d.ts +46 -0
  166. package/Charting/Visuals/PointMarkers/BasePointMarker.d.ts +5 -0
  167. package/Charting/Visuals/PointMarkers/BasePointMarker.js +28 -0
  168. package/Charting/Visuals/PointMarkers/IPointMarker.d.ts +8 -0
  169. package/Charting/Visuals/RenderableSeries/Animations/BandAnimation.js +2 -1
  170. package/Charting/Visuals/RenderableSeries/Animations/BandAnimationStyle.js +2 -1
  171. package/Charting/Visuals/RenderableSeries/Animations/BubbleAnimation.js +2 -1
  172. package/Charting/Visuals/RenderableSeries/Animations/CandlestickAnimation.js +2 -1
  173. package/Charting/Visuals/RenderableSeries/Animations/CandlestickAnimationStyle.js +2 -1
  174. package/Charting/Visuals/RenderableSeries/Animations/ColumnAnimation.js +2 -1
  175. package/Charting/Visuals/RenderableSeries/Animations/ColumnAnimationStyle.js +2 -1
  176. package/Charting/Visuals/RenderableSeries/Animations/CustomPointMarkerStyle.js +2 -1
  177. package/Charting/Visuals/RenderableSeries/Animations/FadeAnimation.js +2 -1
  178. package/Charting/Visuals/RenderableSeries/Animations/LineAnimation.js +2 -1
  179. package/Charting/Visuals/RenderableSeries/Animations/MountainAnimation.js +2 -1
  180. package/Charting/Visuals/RenderableSeries/Animations/MountainAnimationStyle.js +2 -1
  181. package/Charting/Visuals/RenderableSeries/Animations/OhlcAnimation.js +2 -1
  182. package/Charting/Visuals/RenderableSeries/Animations/OhlcAnimationStyle.js +2 -1
  183. package/Charting/Visuals/RenderableSeries/Animations/PointMarkerStyle.js +2 -1
  184. package/Charting/Visuals/RenderableSeries/Animations/ScaleAnimation.js +2 -1
  185. package/Charting/Visuals/RenderableSeries/Animations/ScatterAnimation.js +2 -1
  186. package/Charting/Visuals/RenderableSeries/Animations/SeriesAnimation.d.ts +8 -2
  187. package/Charting/Visuals/RenderableSeries/Animations/SeriesAnimation.js +3 -3
  188. package/Charting/Visuals/RenderableSeries/Animations/WaveAnimation.js +2 -1
  189. package/Charting/Visuals/RenderableSeries/BaseBandRenderableSeries.d.ts +7 -0
  190. package/Charting/Visuals/RenderableSeries/BaseBandRenderableSeries.js +42 -10
  191. package/Charting/Visuals/RenderableSeries/BaseHeatmapRenderableSeries.d.ts +128 -0
  192. package/Charting/Visuals/RenderableSeries/BaseHeatmapRenderableSeries.js +201 -0
  193. package/Charting/Visuals/RenderableSeries/BaseLineRenderableSeries.d.ts +26 -0
  194. package/Charting/Visuals/RenderableSeries/BaseLineRenderableSeries.js +39 -3
  195. package/Charting/Visuals/RenderableSeries/BaseMountainRenderableSeries.d.ts +7 -0
  196. package/Charting/Visuals/RenderableSeries/BaseMountainRenderableSeries.js +17 -2
  197. package/Charting/Visuals/RenderableSeries/BaseOhlcRenderableSeries.d.ts +2 -0
  198. package/Charting/Visuals/RenderableSeries/BaseOhlcRenderableSeries.js +15 -2
  199. package/Charting/Visuals/RenderableSeries/BaseRenderableSeries.d.ts +10 -0
  200. package/Charting/Visuals/RenderableSeries/BaseRenderableSeries.js +93 -17
  201. package/Charting/Visuals/RenderableSeries/BaseStackedCollection.d.ts +8 -1
  202. package/Charting/Visuals/RenderableSeries/BaseStackedCollection.js +21 -1
  203. package/Charting/Visuals/RenderableSeries/BaseStackedRenderableSeries.d.ts +1 -0
  204. package/Charting/Visuals/RenderableSeries/BaseStackedRenderableSeries.js +4 -0
  205. package/Charting/Visuals/RenderableSeries/DataLabels/BandSeriesDataLabelProvider.d.ts +43 -0
  206. package/Charting/Visuals/RenderableSeries/DataLabels/BandSeriesDataLabelProvider.js +142 -0
  207. package/Charting/Visuals/RenderableSeries/DataLabels/BaseDataLabelProvider.d.ts +92 -0
  208. package/Charting/Visuals/RenderableSeries/DataLabels/BaseDataLabelProvider.js +129 -0
  209. package/Charting/Visuals/RenderableSeries/DataLabels/BubbleSeriesDataLabelProvider.d.ts +17 -0
  210. package/Charting/Visuals/RenderableSeries/DataLabels/BubbleSeriesDataLabelProvider.js +62 -0
  211. package/Charting/Visuals/RenderableSeries/DataLabels/ColumnSeriesDataLabelProvider.d.ts +47 -0
  212. package/Charting/Visuals/RenderableSeries/DataLabels/ColumnSeriesDataLabelProvider.js +125 -0
  213. package/Charting/Visuals/RenderableSeries/DataLabels/ContoursDataLabelProvider.d.ts +71 -0
  214. package/Charting/Visuals/RenderableSeries/DataLabels/ContoursDataLabelProvider.js +221 -0
  215. package/Charting/Visuals/RenderableSeries/DataLabels/DataLabelLayoutManager.d.ts +5 -0
  216. package/Charting/Visuals/RenderableSeries/DataLabels/DataLabelLayoutManager.js +2 -0
  217. package/Charting/Visuals/RenderableSeries/DataLabels/DataLabelProvider.d.ts +208 -0
  218. package/Charting/Visuals/RenderableSeries/DataLabels/DataLabelProvider.js +410 -0
  219. package/Charting/Visuals/RenderableSeries/DataLabels/DataLabelState.d.ts +40 -0
  220. package/Charting/Visuals/RenderableSeries/DataLabels/DataLabelState.js +141 -0
  221. package/Charting/Visuals/RenderableSeries/DataLabels/HeatMapDataLabelProvider.d.ts +63 -0
  222. package/Charting/Visuals/RenderableSeries/DataLabels/HeatMapDataLabelProvider.js +198 -0
  223. package/Charting/Visuals/RenderableSeries/DataLabels/LineSeriesDataLabelProvider.d.ts +35 -0
  224. package/Charting/Visuals/RenderableSeries/DataLabels/LineSeriesDataLabelProvider.js +92 -0
  225. package/Charting/Visuals/RenderableSeries/DataLabels/NonUniformHeatmapDataLabelProvider.d.ts +12 -0
  226. package/Charting/Visuals/RenderableSeries/DataLabels/NonUniformHeatmapDataLabelProvider.js +134 -0
  227. package/Charting/Visuals/RenderableSeries/DataLabels/TextDataLabelProvider.d.ts +56 -0
  228. package/Charting/Visuals/RenderableSeries/DataLabels/TextDataLabelProvider.js +167 -0
  229. package/Charting/Visuals/RenderableSeries/DrawingProviders/BandSeriesDrawingProvider.d.ts +0 -1
  230. package/Charting/Visuals/RenderableSeries/DrawingProviders/BandSeriesDrawingProvider.js +1 -2
  231. package/Charting/Visuals/RenderableSeries/DrawingProviders/BaseSeriesDrawingProvider.d.ts +5 -2
  232. package/Charting/Visuals/RenderableSeries/DrawingProviders/BaseSeriesDrawingProvider.js +47 -40
  233. package/Charting/Visuals/RenderableSeries/DrawingProviders/BubbleSeriesDrawingProvider.js +1 -1
  234. package/Charting/Visuals/RenderableSeries/DrawingProviders/ColumnSeriesDrawingProvider.d.ts +1 -0
  235. package/Charting/Visuals/RenderableSeries/DrawingProviders/ColumnSeriesDrawingProvider.js +18 -5
  236. package/Charting/Visuals/RenderableSeries/DrawingProviders/ErrorSeriesDrawingProvider.d.ts +0 -1
  237. package/Charting/Visuals/RenderableSeries/DrawingProviders/ErrorSeriesDrawingProvider.js +14 -27
  238. package/Charting/Visuals/RenderableSeries/DrawingProviders/LineSeriesDrawingProvider.d.ts +17 -4
  239. package/Charting/Visuals/RenderableSeries/DrawingProviders/LineSeriesDrawingProvider.js +34 -11
  240. package/Charting/Visuals/RenderableSeries/DrawingProviders/NonUniformHeatmapDrawingProvider.d.ts +36 -0
  241. package/Charting/Visuals/RenderableSeries/DrawingProviders/NonUniformHeatmapDrawingProvider.js +493 -0
  242. package/Charting/Visuals/RenderableSeries/DrawingProviders/PointMarkerDrawingProvider.d.ts +5 -2
  243. package/Charting/Visuals/RenderableSeries/DrawingProviders/PointMarkerDrawingProvider.js +8 -5
  244. package/Charting/Visuals/RenderableSeries/DrawingProviders/UniformContoursDrawingProvider.js +4 -4
  245. package/Charting/Visuals/RenderableSeries/DrawingProviders/UniformHeatmapDrawingProvider.d.ts +3 -0
  246. package/Charting/Visuals/RenderableSeries/DrawingProviders/UniformHeatmapDrawingProvider.js +15 -4
  247. package/Charting/Visuals/RenderableSeries/FastBandRenderableSeries.js +2 -1
  248. package/Charting/Visuals/RenderableSeries/FastBubbleRenderableSeries.d.ts +21 -0
  249. package/Charting/Visuals/RenderableSeries/FastBubbleRenderableSeries.js +40 -4
  250. package/Charting/Visuals/RenderableSeries/FastCandlestickRenderableSeries.d.ts +2 -0
  251. package/Charting/Visuals/RenderableSeries/FastCandlestickRenderableSeries.js +18 -3
  252. package/Charting/Visuals/RenderableSeries/FastColumnRenderableSeries.d.ts +36 -2
  253. package/Charting/Visuals/RenderableSeries/FastColumnRenderableSeries.js +77 -8
  254. package/Charting/Visuals/RenderableSeries/FastErrorBarsRenderableSeries.js +2 -1
  255. package/Charting/Visuals/RenderableSeries/FastImpulseRenderableSeries.d.ts +7 -0
  256. package/Charting/Visuals/RenderableSeries/FastImpulseRenderableSeries.js +16 -4
  257. package/Charting/Visuals/RenderableSeries/FastLineRenderableSeries.js +2 -1
  258. package/Charting/Visuals/RenderableSeries/FastMountainRenderableSeries.js +2 -1
  259. package/Charting/Visuals/RenderableSeries/FastOhlcRenderableSeries.js +2 -1
  260. package/Charting/Visuals/RenderableSeries/FastTextRenderableSeries.d.ts +17 -0
  261. package/Charting/Visuals/RenderableSeries/FastTextRenderableSeries.js +45 -0
  262. package/Charting/Visuals/RenderableSeries/HeatmapColorMap.js +3 -2
  263. package/Charting/Visuals/RenderableSeries/HitTest/BandSeriesHitTestProvider.js +35 -5
  264. package/Charting/Visuals/RenderableSeries/HitTest/BaseHitTestProvider.js +17 -1
  265. package/Charting/Visuals/RenderableSeries/HitTest/HitTestInfo.d.ts +8 -0
  266. package/Charting/Visuals/RenderableSeries/HitTest/MountainSeriesHitTestProvider.js +7 -1
  267. package/Charting/Visuals/RenderableSeries/HitTest/NonUniformHeatmapHitTestProvider.d.ts +20 -0
  268. package/Charting/Visuals/RenderableSeries/HitTest/NonUniformHeatmapHitTestProvider.js +86 -0
  269. package/Charting/Visuals/RenderableSeries/HitTest/TextSeriesHitTestProvider.d.ts +6 -0
  270. package/Charting/Visuals/RenderableSeries/HitTest/TextSeriesHitTestProvider.js +56 -0
  271. package/Charting/Visuals/RenderableSeries/HitTest/UniformHeatmapHitTestProvider.js +1 -1
  272. package/Charting/Visuals/RenderableSeries/HitTest/hitTestHelpers.d.ts +7 -1
  273. package/Charting/Visuals/RenderableSeries/HitTest/hitTestHelpers.js +34 -2
  274. package/Charting/Visuals/RenderableSeries/IBaseRenderableSeriesOptions.d.ts +6 -1
  275. package/Charting/Visuals/RenderableSeries/IRenderableSeries.d.ts +12 -0
  276. package/Charting/Visuals/RenderableSeries/ISpline.d.ts +2 -0
  277. package/Charting/Visuals/RenderableSeries/NonUniformHeatmapRenderableSeries.d.ts +74 -0
  278. package/Charting/Visuals/RenderableSeries/NonUniformHeatmapRenderableSeries.js +99 -0
  279. package/Charting/Visuals/RenderableSeries/ShaderEffect.js +2 -2
  280. package/Charting/Visuals/RenderableSeries/SplineBandRenderableSeries.d.ts +5 -0
  281. package/Charting/Visuals/RenderableSeries/SplineBandRenderableSeries.js +29 -10
  282. package/Charting/Visuals/RenderableSeries/SplineLineRenderableSeries.d.ts +7 -3
  283. package/Charting/Visuals/RenderableSeries/SplineLineRenderableSeries.js +28 -8
  284. package/Charting/Visuals/RenderableSeries/SplineMountainRenderableSeries.d.ts +5 -0
  285. package/Charting/Visuals/RenderableSeries/SplineMountainRenderableSeries.js +28 -8
  286. package/Charting/Visuals/RenderableSeries/StackedColumnCollection.js +2 -1
  287. package/Charting/Visuals/RenderableSeries/StackedColumnRenderableSeries.d.ts +3 -0
  288. package/Charting/Visuals/RenderableSeries/StackedColumnRenderableSeries.js +13 -2
  289. package/Charting/Visuals/RenderableSeries/StackedMountainCollection.js +4 -1
  290. package/Charting/Visuals/RenderableSeries/StackedMountainRenderableSeries.d.ts +7 -0
  291. package/Charting/Visuals/RenderableSeries/StackedMountainRenderableSeries.js +33 -9
  292. package/Charting/Visuals/RenderableSeries/UniformContoursRenderableSeries.d.ts +5 -0
  293. package/Charting/Visuals/RenderableSeries/UniformContoursRenderableSeries.js +7 -1
  294. package/Charting/Visuals/RenderableSeries/UniformHeatmapRenderableSeries.d.ts +2 -75
  295. package/Charting/Visuals/RenderableSeries/UniformHeatmapRenderableSeries.js +8 -130
  296. package/Charting/Visuals/RenderableSeries/XyScatterRenderableSeries.d.ts +5 -0
  297. package/Charting/Visuals/RenderableSeries/XyScatterRenderableSeries.js +7 -1
  298. package/Charting/Visuals/RenderableSeries/constants.d.ts +5 -1
  299. package/Charting/Visuals/RenderableSeries/constants.js +4 -0
  300. package/Charting/Visuals/RubberBandSvgRect/RubberBandSvgRect.js +3 -3
  301. package/Charting/Visuals/SciChartDefaults.d.ts +4 -0
  302. package/Charting/Visuals/SciChartDefaults.js +4 -0
  303. package/Charting/Visuals/SciChartOverview.js +5 -3
  304. package/Charting/Visuals/SciChartPieSurface/PieSegment/IPieSegment.d.ts +4 -0
  305. package/Charting/Visuals/SciChartPieSurface/PieSegment/PieSegment.d.ts +13 -0
  306. package/Charting/Visuals/SciChartPieSurface/PieSegment/PieSegment.js +22 -4
  307. package/Charting/Visuals/SciChartPieSurface/PieSegment/constants.d.ts +2 -1
  308. package/Charting/Visuals/SciChartPieSurface/PieSegment/constants.js +1 -0
  309. package/Charting/Visuals/SciChartPieSurface/SciChartPieSurface.d.ts +5 -0
  310. package/Charting/Visuals/SciChartPieSurface/SciChartPieSurface.js +17 -19
  311. package/Charting/Visuals/SciChartSurface.d.ts +225 -7
  312. package/Charting/Visuals/SciChartSurface.js +782 -28
  313. package/Charting/Visuals/SciChartSurfaceBase.d.ts +16 -1
  314. package/Charting/Visuals/SciChartSurfaceBase.js +34 -2
  315. package/Charting/Visuals/TextureManager/CanvasTexture.js +1 -1
  316. package/Charting/Visuals/TextureManager/DpiHelper.js +3 -7
  317. package/Charting/Visuals/TextureManager/TextureManager.d.ts +11 -0
  318. package/Charting/Visuals/TextureManager/TextureManager.js +37 -1
  319. package/Charting/Visuals/createMaster.js +7 -10
  320. package/Charting/Visuals/createSingle.js +2 -0
  321. package/Charting/Visuals/licenseManager2D.js +9 -9
  322. package/Charting/Visuals/sciChartInitCommon.js +16 -12
  323. package/Charting3D/CameraController.d.ts +5 -0
  324. package/Charting3D/CameraController.js +6 -0
  325. package/Charting3D/ChartModifiers/ResetCamera3DModifier.js +2 -1
  326. package/Charting3D/Visuals/Axis/AxisBase3D.js +7 -5
  327. package/Charting3D/Visuals/Axis/NumericAxis3D.js +2 -1
  328. package/Charting3D/Visuals/Primitives/ScatterPointsSceneEntity.d.ts +4 -0
  329. package/Charting3D/Visuals/Primitives/ScatterPointsSceneEntity.js +7 -0
  330. package/Charting3D/Visuals/Primitives/SurfaceMeshSceneEntity.js +6 -4
  331. package/Charting3D/Visuals/RenderableSeries/BaseRenderableSeries3D.d.ts +7 -2
  332. package/Charting3D/Visuals/RenderableSeries/BaseRenderableSeries3D.js +3 -2
  333. package/Charting3D/Visuals/RenderableSeries/SurfaceMesh/SurfaceMeshRenderableSeries3D.d.ts +0 -5
  334. package/Charting3D/Visuals/RenderableSeries/SurfaceMesh/SurfaceMeshRenderableSeries3D.js +12 -11
  335. package/Charting3D/Visuals/SciChart3DSurface.d.ts +2 -2
  336. package/Charting3D/Visuals/SciChart3DSurface.js +18 -11
  337. package/Charting3D/Visuals/createMaster3d.js +10 -18
  338. package/Charting3D/Visuals/createSingle3d.js +12 -10
  339. package/Core/Animations/GenericAnimation.d.ts +2 -0
  340. package/Core/Animations/GenericAnimation.js +3 -0
  341. package/Core/Animations/NumberRangeAnimator.js +7 -2
  342. package/Core/BuildStamp.d.ts +1 -1
  343. package/Core/BuildStamp.js +2 -2
  344. package/Core/Mouse/MouseManager.d.ts +20 -0
  345. package/Core/Mouse/MouseManager.js +199 -30
  346. package/README.md +91 -403
  347. package/_wasm/scichart.browser.js +1 -1
  348. package/_wasm/scichart2d.data +0 -0
  349. package/_wasm/scichart2d.js +280 -267
  350. package/_wasm/scichart2d.wasm +0 -0
  351. package/_wasm/scichart3d.data +0 -0
  352. package/_wasm/scichart3d.js +280 -268
  353. package/_wasm/scichart3d.wasm +0 -0
  354. package/constants/performanceWarnings.d.ts +2 -0
  355. package/constants/performanceWarnings.js +3 -1
  356. package/package.json +2 -2
  357. package/types/AutoColorMode.d.ts +9 -0
  358. package/types/AutoColorMode.js +13 -0
  359. package/types/BaseType.d.ts +3 -1
  360. package/types/BaseType.js +2 -0
  361. package/types/DataLabelProviderType.d.ts +15 -0
  362. package/types/DataLabelProviderType.js +19 -0
  363. package/types/DataLabelSkipMode.d.ts +21 -0
  364. package/types/DataLabelSkipMode.js +25 -0
  365. package/types/DefaultRenderLayer.d.ts +10 -0
  366. package/types/DefaultRenderLayer.js +14 -0
  367. package/types/SeriesType.d.ts +7 -1
  368. package/types/SeriesType.js +6 -0
  369. package/types/SvgClippingMode.d.ts +17 -0
  370. package/types/SvgClippingMode.js +21 -0
  371. package/types/TDataLabelStyle.d.ts +16 -0
  372. package/types/TDataLabelStyle.js +2 -0
  373. package/types/TSciChart.d.ts +214 -118
  374. package/types/TSciChart3D.d.ts +104 -70
  375. package/types/TextPosition.d.ts +17 -0
  376. package/types/TextPosition.js +39 -0
  377. package/types/ThemeProviderType.d.ts +3 -1
  378. package/types/ThemeProviderType.js +2 -0
  379. package/utils/ccall/appendDoubleVectorFromJsArray.d.ts +10 -1
  380. package/utils/ccall/appendDoubleVectorFromJsArray.js +24 -1
  381. package/utils/copyVector.d.ts +2 -0
  382. package/utils/copyVector.js +10 -0
  383. package/utils/memoize.d.ts +1 -0
  384. package/utils/memoize.js +26 -0
  385. package/utils/number.d.ts +1 -0
  386. package/utils/number.js +5 -1
  387. package/utils/parseColor.d.ts +2 -0
  388. package/utils/parseColor.js +3 -3
  389. package/utils/text.d.ts +5 -0
  390. package/utils/text.js +48 -0
  391. package/utils/translate.d.ts +8 -0
  392. package/utils/translate.js +27 -5
  393. package/utils/zeroArray2D.d.ts +5 -0
  394. package/utils/zeroArray2D.js +5 -0
@@ -1,6 +1,7 @@
1
1
  import { TPointMarkerDefinition } from "../../../Builder/buildSeries";
2
2
  import { IDeletable } from "../../../Core/IDeletable";
3
3
  import { EPointMarkerType } from "../../../types/PointMarkerType";
4
+ import { IThemeProvider } from "../../Themes/IThemeProvider";
4
5
  import { BasePointMarkerStyle } from "../RenderableSeries/Animations/BasePointMarkerStyle";
5
6
  import { CanvasTexture } from "../TextureManager/CanvasTexture";
6
7
  import { INotifyOnDpiChanged } from "../TextureManager/DpiHelper";
@@ -87,6 +88,13 @@ export interface IPointMarker extends IDeletable, INotifyOnDpiChanged {
87
88
  * Resumes recreation of the PointMarker
88
89
  */
89
90
  resumeUpdates(): void;
91
+ /**
92
+ * Resolve colors marked AUTO_COLOR using the theme's strokePalette and fillPalette
93
+ * To do custom adjustments to the resolved colors, override the adjustAutoColor method
94
+ */
95
+ resolveAutoColors(index: number, maxSeries: number, theme: IThemeProvider): void;
96
+ /** Replace this to do custom adjustments to the auto color for a particular property */
97
+ adjustAutoColor(propertyName: string, color: string): string;
90
98
  /** Convert the object to a definition that can be serialized to JSON, or used directly with the builder api */
91
99
  toJSON(): TPointMarkerDefinition;
92
100
  }
@@ -24,8 +24,9 @@ var SeriesAnimation_1 = require("./SeriesAnimation");
24
24
  var BandAnimation = /** @class */ (function (_super) {
25
25
  __extends(BandAnimation, _super);
26
26
  function BandAnimation(options) {
27
+ var _this = this;
27
28
  var _a, _b;
28
- var _this = _super.call(this, options) || this;
29
+ _this = _super.call(this, options) || this;
29
30
  /** @inheritDoc */
30
31
  _this.type = AnimationType_1.EAnimationType.Style;
31
32
  _this.duration = (_a = options === null || options === void 0 ? void 0 : options.duration) !== null && _a !== void 0 ? _a : 1000;
@@ -21,8 +21,9 @@ var BaseAnimationStyle_1 = require("./BaseAnimationStyle");
21
21
  var BandAnimationStyle = /** @class */ (function (_super) {
22
22
  __extends(BandAnimationStyle, _super);
23
23
  function BandAnimationStyle(options) {
24
+ var _this = this;
24
25
  var _a, _b, _c;
25
- var _this = _super.call(this, options) || this;
26
+ _this = _super.call(this, options) || this;
26
27
  _this.strokeY1 = (_a = options === null || options === void 0 ? void 0 : options.strokeY1) !== null && _a !== void 0 ? _a : _this.strokeY1Property;
27
28
  _this.fill = (_b = options === null || options === void 0 ? void 0 : options.fill) !== null && _b !== void 0 ? _b : _this.fillProperty;
28
29
  _this.fillY1 = (_c = options === null || options === void 0 ? void 0 : options.fillY1) !== null && _c !== void 0 ? _c : _this.fillY1Property;
@@ -22,8 +22,9 @@ var BaseAnimationStyle_1 = require("./BaseAnimationStyle");
22
22
  var BubbleAnimation = /** @class */ (function (_super) {
23
23
  __extends(BubbleAnimation, _super);
24
24
  function BubbleAnimation(options) {
25
+ var _this = this;
25
26
  var _a, _b;
26
- var _this = _super.call(this, options) || this;
27
+ _this = _super.call(this, options) || this;
27
28
  /** @inheritDoc */
28
29
  _this.type = AnimationType_1.EAnimationType.Style;
29
30
  _this.duration = (_a = options === null || options === void 0 ? void 0 : options.duration) !== null && _a !== void 0 ? _a : 1000;
@@ -24,8 +24,9 @@ var OhlcAnimation_1 = require("./OhlcAnimation");
24
24
  var CandlestickAnimation = /** @class */ (function (_super) {
25
25
  __extends(CandlestickAnimation, _super);
26
26
  function CandlestickAnimation(options) {
27
+ var _this = this;
27
28
  var _a, _b;
28
- var _this = _super.call(this, options) || this;
29
+ _this = _super.call(this, options) || this;
29
30
  /** @inheritDoc */
30
31
  _this.type = AnimationType_1.EAnimationType.Style;
31
32
  _this.duration = (_a = options === null || options === void 0 ? void 0 : options.duration) !== null && _a !== void 0 ? _a : 1000;
@@ -21,8 +21,9 @@ var OhlcAnimationStyle_1 = require("./OhlcAnimationStyle");
21
21
  var CandlestickAnimationStyle = /** @class */ (function (_super) {
22
22
  __extends(CandlestickAnimationStyle, _super);
23
23
  function CandlestickAnimationStyle(options) {
24
+ var _this = this;
24
25
  var _a, _b;
25
- var _this = _super.call(this, options) || this;
26
+ _this = _super.call(this, options) || this;
26
27
  _this.brushUp = (_a = options === null || options === void 0 ? void 0 : options.brushUp) !== null && _a !== void 0 ? _a : _this.brushUpProperty;
27
28
  _this.brushDown = (_b = options === null || options === void 0 ? void 0 : options.brushDown) !== null && _b !== void 0 ? _b : _this.brushDownProperty;
28
29
  return _this;
@@ -25,8 +25,9 @@ var PointMarkerStyle_1 = require("./PointMarkerStyle");
25
25
  var ColumnAnimation = /** @class */ (function (_super) {
26
26
  __extends(ColumnAnimation, _super);
27
27
  function ColumnAnimation(options) {
28
+ var _this = this;
28
29
  var _a, _b;
29
- var _this = _super.call(this, options) || this;
30
+ _this = _super.call(this, options) || this;
30
31
  /** @inheritDoc */
31
32
  _this.type = AnimationType_1.EAnimationType.Style;
32
33
  _this.duration = (_a = options === null || options === void 0 ? void 0 : options.duration) !== null && _a !== void 0 ? _a : 1000;
@@ -21,8 +21,9 @@ var BaseAnimationStyle_1 = require("./BaseAnimationStyle");
21
21
  var ColumnAnimationStyle = /** @class */ (function (_super) {
22
22
  __extends(ColumnAnimationStyle, _super);
23
23
  function ColumnAnimationStyle(options) {
24
+ var _this = this;
24
25
  var _a, _b, _c;
25
- var _this = _super.call(this, options) || this;
26
+ _this = _super.call(this, options) || this;
26
27
  _this.fill = (_a = options === null || options === void 0 ? void 0 : options.fill) !== null && _a !== void 0 ? _a : _this.fillProperty;
27
28
  _this.zeroLineY = (_b = options === null || options === void 0 ? void 0 : options.zeroLineY) !== null && _b !== void 0 ? _b : _this.zeroLineY;
28
29
  _this.dataPointWidth = (_c = options === null || options === void 0 ? void 0 : options.dataPointWidth) !== null && _c !== void 0 ? _c : _this.dataPointWidth;
@@ -20,8 +20,9 @@ var BasePointMarkerStyle_1 = require("./BasePointMarkerStyle");
20
20
  var CustomPointMarkerStyle = /** @class */ (function (_super) {
21
21
  __extends(CustomPointMarkerStyle, _super);
22
22
  function CustomPointMarkerStyle(options) {
23
+ var _this = this;
23
24
  var _a;
24
- var _this = _super.call(this, options) || this;
25
+ _this = _super.call(this, options) || this;
25
26
  _this.image = (_a = options === null || options === void 0 ? void 0 : options.image) !== null && _a !== void 0 ? _a : _this.image;
26
27
  return _this;
27
28
  }
@@ -21,8 +21,9 @@ var SeriesAnimation_1 = require("./SeriesAnimation");
21
21
  var FadeAnimation = /** @class */ (function (_super) {
22
22
  __extends(FadeAnimation, _super);
23
23
  function FadeAnimation(options) {
24
+ var _this = this;
24
25
  var _a;
25
- var _this = _super.call(this, options) || this;
26
+ _this = _super.call(this, options) || this;
26
27
  /** @inheritDoc */
27
28
  _this.type = AnimationType_1.EAnimationType.Fade;
28
29
  _this.isFadeEffectAnimation = (_a = options === null || options === void 0 ? void 0 : options.fadeEffect) !== null && _a !== void 0 ? _a : true;
@@ -22,8 +22,9 @@ var BaseAnimationStyle_1 = require("./BaseAnimationStyle");
22
22
  var LineAnimation = /** @class */ (function (_super) {
23
23
  __extends(LineAnimation, _super);
24
24
  function LineAnimation(options) {
25
+ var _this = this;
25
26
  var _a, _b;
26
- var _this = _super.call(this, options) || this;
27
+ _this = _super.call(this, options) || this;
27
28
  /** @inheritDoc */
28
29
  _this.type = AnimationType_1.EAnimationType.Style;
29
30
  _this.duration = (_a = options === null || options === void 0 ? void 0 : options.duration) !== null && _a !== void 0 ? _a : 1000;
@@ -25,8 +25,9 @@ var PointMarkerStyle_1 = require("./PointMarkerStyle");
25
25
  var MountainAnimation = /** @class */ (function (_super) {
26
26
  __extends(MountainAnimation, _super);
27
27
  function MountainAnimation(options) {
28
+ var _this = this;
28
29
  var _a, _b;
29
- var _this = _super.call(this, options) || this;
30
+ _this = _super.call(this, options) || this;
30
31
  /** @inheritDoc */
31
32
  _this.type = AnimationType_1.EAnimationType.Style;
32
33
  _this.duration = (_a = options === null || options === void 0 ? void 0 : options.duration) !== null && _a !== void 0 ? _a : 1000;
@@ -21,8 +21,9 @@ var BaseAnimationStyle_1 = require("./BaseAnimationStyle");
21
21
  var MountainAnimationStyle = /** @class */ (function (_super) {
22
22
  __extends(MountainAnimationStyle, _super);
23
23
  function MountainAnimationStyle(options) {
24
+ var _this = this;
24
25
  var _a, _b;
25
- var _this = _super.call(this, options) || this;
26
+ _this = _super.call(this, options) || this;
26
27
  _this.fill = (_a = options === null || options === void 0 ? void 0 : options.fill) !== null && _a !== void 0 ? _a : _this.fillProperty;
27
28
  _this.zeroLineY = (_b = options === null || options === void 0 ? void 0 : options.zeroLineY) !== null && _b !== void 0 ? _b : _this.zeroLineY;
28
29
  return _this;
@@ -24,8 +24,9 @@ var OhlcAnimationStyle_1 = require("./OhlcAnimationStyle");
24
24
  var OhlcAnimation = /** @class */ (function (_super) {
25
25
  __extends(OhlcAnimation, _super);
26
26
  function OhlcAnimation(options) {
27
+ var _this = this;
27
28
  var _a, _b;
28
- var _this = _super.call(this, options) || this;
29
+ _this = _super.call(this, options) || this;
29
30
  /** @inheritDoc */
30
31
  _this.type = AnimationType_1.EAnimationType.Style;
31
32
  _this.duration = (_a = options === null || options === void 0 ? void 0 : options.duration) !== null && _a !== void 0 ? _a : 1000;
@@ -21,8 +21,9 @@ var BaseAnimationStyle_1 = require("./BaseAnimationStyle");
21
21
  var OhlcAnimationStyle = /** @class */ (function (_super) {
22
22
  __extends(OhlcAnimationStyle, _super);
23
23
  function OhlcAnimationStyle(options) {
24
+ var _this = this;
24
25
  var _a, _b, _c;
25
- var _this = _super.call(this, options) || this;
26
+ _this = _super.call(this, options) || this;
26
27
  _this.strokeUp = (_a = options === null || options === void 0 ? void 0 : options.strokeUp) !== null && _a !== void 0 ? _a : _this.strokeUpProperty;
27
28
  _this.strokeDown = (_b = options === null || options === void 0 ? void 0 : options.strokeDown) !== null && _b !== void 0 ? _b : _this.strokeDownProperty;
28
29
  _this.dataPointWidth = (_c = options === null || options === void 0 ? void 0 : options.dataPointWidth) !== null && _c !== void 0 ? _c : _this.dataPointWidth;
@@ -21,8 +21,9 @@ var BasePointMarkerStyle_1 = require("./BasePointMarkerStyle");
21
21
  var PointMarkerStyle = /** @class */ (function (_super) {
22
22
  __extends(PointMarkerStyle, _super);
23
23
  function PointMarkerStyle(options) {
24
+ var _this = this;
24
25
  var _a, _b, _c;
25
- var _this = _super.call(this, options) || this;
26
+ _this = _super.call(this, options) || this;
26
27
  _this.strokeThickness = 0;
27
28
  _this.strokeThickness = (_a = options === null || options === void 0 ? void 0 : options.strokeThickness) !== null && _a !== void 0 ? _a : _this.strokeThickness;
28
29
  _this.stroke = (_b = options === null || options === void 0 ? void 0 : options.stroke) !== null && _b !== void 0 ? _b : "#ffffff00";
@@ -21,8 +21,9 @@ var SeriesAnimation_1 = require("./SeriesAnimation");
21
21
  var ScaleAnimation = /** @class */ (function (_super) {
22
22
  __extends(ScaleAnimation, _super);
23
23
  function ScaleAnimation(options) {
24
+ var _this = this;
24
25
  var _a;
25
- var _this = _super.call(this, options) || this;
26
+ _this = _super.call(this, options) || this;
26
27
  /** @inheritDoc */
27
28
  _this.type = AnimationType_1.EAnimationType.Scale;
28
29
  /**
@@ -22,8 +22,9 @@ var BaseAnimationStyle_1 = require("./BaseAnimationStyle");
22
22
  var ScatterAnimation = /** @class */ (function (_super) {
23
23
  __extends(ScatterAnimation, _super);
24
24
  function ScatterAnimation(options) {
25
+ var _this = this;
25
26
  var _a, _b;
26
- var _this = _super.call(this, options) || this;
27
+ _this = _super.call(this, options) || this;
27
28
  /** @inheritDoc */
28
29
  _this.type = AnimationType_1.EAnimationType.Style;
29
30
  _this.duration = (_a = options === null || options === void 0 ? void 0 : options.duration) !== null && _a !== void 0 ? _a : 1000;
@@ -6,7 +6,13 @@ import { IDataSeries } from "../../../Model/IDataSeries";
6
6
  import { IRenderableSeries } from "../IRenderableSeries";
7
7
  import { BaseAnimationStyle } from "./BaseAnimationStyle";
8
8
  export interface IBaseAnimationOptions {
9
+ /**
10
+ * The animation delay in ms
11
+ */
9
12
  delay?: number;
13
+ /**
14
+ * The animation duration in ms
15
+ */
10
16
  duration?: number;
11
17
  fadeEffect?: boolean;
12
18
  ease?: TEasingFn | string;
@@ -23,11 +29,11 @@ export declare abstract class SeriesAnimation implements IAnimation {
23
29
  */
24
30
  abstract readonly type: EAnimationType;
25
31
  /**
26
- * The animation delay
32
+ * The animation delay in ms
27
33
  */
28
34
  delay: number;
29
35
  /**
30
- * The animation duration
36
+ * The animation duration in ms
31
37
  */
32
38
  duration: number;
33
39
  /**
@@ -16,11 +16,11 @@ var SeriesAnimation = /** @class */ (function () {
16
16
  function SeriesAnimation(options) {
17
17
  var _a, _b, _c, _d;
18
18
  /**
19
- * The animation delay
19
+ * The animation delay in ms
20
20
  */
21
21
  this.delay = 0;
22
22
  /**
23
- * The animation duration
23
+ * The animation duration in ms
24
24
  */
25
25
  this.duration = 3000;
26
26
  /**
@@ -76,7 +76,7 @@ var SeriesAnimation = /** @class */ (function () {
76
76
  SeriesAnimation.prototype.calculateDataSeriesAnimationValues = function (wasmContext, initialValues, finalValues, interpolatedValues, progress) {
77
77
  var size = initialValues.size();
78
78
  if (size !== finalValues.size()) {
79
- throw new Error("DoubleVectors with initialValues and initialValues must have the same length");
79
+ throw new Error("DoubleVectors with initialValues and finalValues must have the same length");
80
80
  }
81
81
  interpolatedValues.resize(size, 0);
82
82
  for (var i = 0; i < size; i++) {
@@ -21,8 +21,9 @@ var SeriesAnimation_1 = require("./SeriesAnimation");
21
21
  var WaveAnimation = /** @class */ (function (_super) {
22
22
  __extends(WaveAnimation, _super);
23
23
  function WaveAnimation(options) {
24
+ var _this = this;
24
25
  var _a, _b;
25
- var _this = _super.call(this, options) || this;
26
+ _this = _super.call(this, options) || this;
26
27
  /** @inheritDoc */
27
28
  _this.type = AnimationType_1.EAnimationType.Wave;
28
29
  /**
@@ -4,6 +4,7 @@ import { XyyPointSeriesResampled } from "../../Model/PointSeries/XyyPointSeriesR
4
4
  import { ResamplingParams } from "../../Numerics/Resamplers/ResamplingParams";
5
5
  import { IThemeProvider } from "../../Themes/IThemeProvider";
6
6
  import { BaseRenderableSeries } from "./BaseRenderableSeries";
7
+ import { IBandSeriesDataLabelProviderOptions } from "./DataLabels/BandSeriesDataLabelProvider";
7
8
  import { IHitTestProvider } from "./HitTest/IHitTestProvider";
8
9
  import { IBaseRenderableSeriesOptions } from "./IBaseRenderableSeriesOptions";
9
10
  /**
@@ -33,6 +34,10 @@ export interface IBaseBandRenderableSeriesOptions extends IBaseRenderableSeriesO
33
34
  * Accepts an array of values, e.g. [2,2] will have a line of length 2 and a gap of length 2.
34
35
  */
35
36
  strokeY1DashArray?: number[];
37
+ /**
38
+ * Options to pass to the {@link DataLabelProvider}. Set a style with font and size to enable per-point text for this series.
39
+ */
40
+ dataLabels?: IBandSeriesDataLabelProviderOptions;
36
41
  }
37
42
  export declare abstract class BaseBandRenderableSeries extends BaseRenderableSeries {
38
43
  protected pointSeries: XyyPointSeriesResampled;
@@ -104,5 +109,7 @@ export declare abstract class BaseBandRenderableSeries extends BaseRenderableSer
104
109
  /** @inheritDoc */
105
110
  toJSON(excludeData?: boolean): import("../../../Builder/buildSeries").TSeriesDefinition;
106
111
  /** @inheritDoc */
112
+ resolveAutoColors(index: number, maxSeries: number, theme: IThemeProvider): void;
113
+ /** @inheritDoc */
107
114
  protected newHitTestProvider(): IHitTestProvider;
108
115
  }
@@ -16,19 +16,23 @@ var __extends = (this && this.__extends) || (function () {
16
16
  })();
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
18
  exports.BaseBandRenderableSeries = void 0;
19
+ var Deleter_1 = require("../../../Core/Deleter");
19
20
  var XyyPointSeriesResampled_1 = require("../../Model/PointSeries/XyyPointSeriesResampled");
20
21
  var XyyPointSeriesWrapped_1 = require("../../Model/PointSeries/XyyPointSeriesWrapped");
22
+ var IThemeProvider_1 = require("../../Themes/IThemeProvider");
21
23
  var SciChartSurfaceBase_1 = require("../SciChartSurfaceBase");
22
24
  var BaseRenderableSeries_1 = require("./BaseRenderableSeries");
23
25
  var constants_1 = require("./constants");
26
+ var BandSeriesDataLabelProvider_1 = require("./DataLabels/BandSeriesDataLabelProvider");
24
27
  var BandSeriesDrawingProvider_1 = require("./DrawingProviders/BandSeriesDrawingProvider");
25
28
  var PointMarkerDrawingProvider_1 = require("./DrawingProviders/PointMarkerDrawingProvider");
26
29
  var BandSeriesHitTestProvider_1 = require("./HitTest/BandSeriesHitTestProvider");
27
30
  var BaseBandRenderableSeries = /** @class */ (function (_super) {
28
31
  __extends(BaseBandRenderableSeries, _super);
29
32
  function BaseBandRenderableSeries(webAssemblyContext, options) {
33
+ var _this = this;
30
34
  var _a, _b, _c, _d;
31
- var _this = _super.call(this, webAssemblyContext, options) || this;
35
+ _this = _super.call(this, webAssemblyContext, options) || this;
32
36
  _this.stroke = (_a = options === null || options === void 0 ? void 0 : options.stroke) !== null && _a !== void 0 ? _a : SciChartSurfaceBase_1.SciChartSurfaceBase.DEFAULT_THEME.downBandSeriesLineColor;
33
37
  _this.strokeY1Property = (_b = options === null || options === void 0 ? void 0 : options.strokeY1) !== null && _b !== void 0 ? _b : SciChartSurfaceBase_1.SciChartSurfaceBase.DEFAULT_THEME.upBandSeriesLineColor;
34
38
  _this.fillProperty = (_c = options === null || options === void 0 ? void 0 : options.fill) !== null && _c !== void 0 ? _c : SciChartSurfaceBase_1.SciChartSurfaceBase.DEFAULT_THEME.upBandSeriesFillColor;
@@ -38,6 +42,10 @@ var BaseBandRenderableSeries = /** @class */ (function (_super) {
38
42
  _this.drawingProviders.push(new BandSeriesDrawingProvider_1.BandSeriesDrawingProvider(webAssemblyContext, _this));
39
43
  _this.drawingProviders.push(new PointMarkerDrawingProvider_1.PointMarkerDrawingProvider(webAssemblyContext, _this));
40
44
  _this.drawingProviders.push(new PointMarkerDrawingProvider_1.PointMarkerDrawingProvider(webAssemblyContext, _this, function (ps) { return ps.y1Values; }, function (rs) { return rs.y1SplineValues; }));
45
+ if (!_this.dataLabelProviderProperty) {
46
+ _this.dataLabelProviderProperty = new BandSeriesDataLabelProvider_1.BandSeriesDataLabelProvider(options === null || options === void 0 ? void 0 : options.dataLabels);
47
+ _this.dataLabelProviderProperty.onAttach(_this.webAssemblyContext, _this);
48
+ }
41
49
  if (options === null || options === void 0 ? void 0 : options.animation) {
42
50
  _this.animationQueue.push(options.animation);
43
51
  }
@@ -67,14 +75,16 @@ var BaseBandRenderableSeries = /** @class */ (function (_super) {
67
75
  * Gets or sets the fill color for when Y is less than Y as an HTML Color code
68
76
  */
69
77
  get: function () {
70
- return this.fillProperty;
78
+ return (0, IThemeProvider_1.stripAutoColor)(this.fillProperty);
71
79
  },
72
80
  /**
73
81
  * Gets or sets the fill color for when Y is less than Y1 as an HTML Color code
74
82
  */
75
83
  set: function (fill) {
76
- this.fillProperty = fill;
77
- this.notifyPropertyChanged(constants_1.PROPERTY.FILL);
84
+ if (this.fillProperty !== fill) {
85
+ this.fillProperty = fill;
86
+ this.notifyPropertyChanged(constants_1.PROPERTY.FILL);
87
+ }
78
88
  },
79
89
  enumerable: false,
80
90
  configurable: true
@@ -85,15 +95,17 @@ var BaseBandRenderableSeries = /** @class */ (function (_super) {
85
95
  * See associated {@link XyyDataSeries} for further information
86
96
  */
87
97
  get: function () {
88
- return this.strokeY1Property;
98
+ return (0, IThemeProvider_1.stripAutoColor)(this.strokeY1Property);
89
99
  },
90
100
  /**
91
101
  * Gets or sets the stroke color the Y1 values in the data-series.
92
102
  * See associated {@link XyyDataSeries} for further information
93
103
  */
94
104
  set: function (strokeY1) {
95
- this.strokeY1Property = strokeY1;
96
- this.notifyPropertyChanged(constants_1.PROPERTY.STROKE_Y1);
105
+ if (this.strokeY1Property !== strokeY1) {
106
+ this.strokeY1Property = strokeY1;
107
+ this.notifyPropertyChanged(constants_1.PROPERTY.STROKE_Y1);
108
+ }
97
109
  },
98
110
  enumerable: false,
99
111
  configurable: true
@@ -103,14 +115,16 @@ var BaseBandRenderableSeries = /** @class */ (function (_super) {
103
115
  * Gets or sets the fill color for when Y1 is less than Y as an HTML Color code
104
116
  */
105
117
  get: function () {
106
- return this.fillY1Property;
118
+ return (0, IThemeProvider_1.stripAutoColor)(this.fillY1Property);
107
119
  },
108
120
  /**
109
121
  * Gets or sets the fill color for when Y1 is less than Y as an HTML Color code
110
122
  */
111
123
  set: function (fillY1) {
112
- this.fillY1Property = fillY1;
113
- this.notifyPropertyChanged(constants_1.PROPERTY.FILL_Y1);
124
+ if (this.fillY1Property !== fillY1) {
125
+ this.fillY1Property = fillY1;
126
+ this.notifyPropertyChanged(constants_1.PROPERTY.FILL_Y1);
127
+ }
114
128
  },
115
129
  enumerable: false,
116
130
  configurable: true
@@ -162,6 +176,7 @@ var BaseBandRenderableSeries = /** @class */ (function (_super) {
162
176
  /** @inheritDoc */
163
177
  BaseBandRenderableSeries.prototype.delete = function () {
164
178
  _super.prototype.delete.call(this);
179
+ this.xyyTempPointSeries = (0, Deleter_1.deleteSafe)(this.xyyTempPointSeries);
165
180
  };
166
181
  /** @inheritDoc */
167
182
  BaseBandRenderableSeries.prototype.toPointSeries = function (rp) {
@@ -220,6 +235,23 @@ var BaseBandRenderableSeries = /** @class */ (function (_super) {
220
235
  return json;
221
236
  };
222
237
  /** @inheritDoc */
238
+ BaseBandRenderableSeries.prototype.resolveAutoColors = function (index, maxSeries, theme) {
239
+ _super.prototype.resolveAutoColors.call(this, index, maxSeries, theme);
240
+ if (this.fillProperty.startsWith(IThemeProvider_1.AUTO_COLOR)) {
241
+ var color = theme.getFillColor(index, maxSeries, this.webAssemblyContext);
242
+ this.fill = IThemeProvider_1.AUTO_COLOR + this.adjustAutoColor("fill", color);
243
+ }
244
+ var y1Index = (index + Math.floor(maxSeries / 2)) % maxSeries;
245
+ if (this.strokeY1Property.startsWith(IThemeProvider_1.AUTO_COLOR)) {
246
+ var color = theme.getStrokeColor(y1Index, maxSeries, this.webAssemblyContext);
247
+ this.strokeY1 = IThemeProvider_1.AUTO_COLOR + this.adjustAutoColor("strokeY1", color);
248
+ }
249
+ if (this.fillY1Property.startsWith(IThemeProvider_1.AUTO_COLOR)) {
250
+ var color = theme.getFillColor(y1Index, maxSeries, this.webAssemblyContext);
251
+ this.fillY1 = IThemeProvider_1.AUTO_COLOR + this.adjustAutoColor("fillY1", color);
252
+ }
253
+ };
254
+ /** @inheritDoc */
223
255
  BaseBandRenderableSeries.prototype.newHitTestProvider = function () {
224
256
  return new BandSeriesHitTestProvider_1.BandSeriesHitTestProvider(this, this.webAssemblyContext);
225
257
  };
@@ -0,0 +1,128 @@
1
+ import { PropertyChangedEventArgs } from "../../../Core/PropertyChangedEventArgs";
2
+ import { TSciChart } from "../../../types/TSciChart";
3
+ import { BaseHeatmapDataSeries } from "../../Model/BaseHeatmapDataSeries";
4
+ import { IPointSeries } from "../../Model/PointSeries/IPointSeries";
5
+ import { ResamplingParams } from "../../Numerics/Resamplers/ResamplingParams";
6
+ import { LabelProvider } from "../Axis/LabelProvider/LabelProvider";
7
+ import { BaseRenderableSeries } from "./BaseRenderableSeries";
8
+ import { IHeatmapDataLabelProviderOptions } from "./DataLabels/HeatMapDataLabelProvider";
9
+ import { HeatmapColorMap, IHeatmapColorMapOptions } from "./HeatmapColorMap";
10
+ import { IBaseRenderableSeriesOptions } from "./IBaseRenderableSeriesOptions";
11
+ /**
12
+ * Optional parameters passed to {@link BaseHeatmapRenderableSeries} constructor
13
+ */
14
+ export interface IHeatmapRenderableSeriesOptions extends IBaseRenderableSeriesOptions {
15
+ /**
16
+ * The {@link HeatmapColorMap} instance, which maps heatmap z-values to colors
17
+ * or an {@link IHeatmapColorMapOptions} object which will be used to build a HeatmapColorMap
18
+ */
19
+ colorMap?: HeatmapColorMap | IHeatmapColorMapOptions;
20
+ /**
21
+ * The {@link BaseHeatmapDataSeries} instance containing 2-dimensional heatmap data
22
+ */
23
+ dataSeries?: BaseHeatmapDataSeries;
24
+ /**
25
+ * The flag whether to make the heatmap linearly interpolated or smoothed between cells. Default false
26
+ */
27
+ useLinearTextureFiltering?: boolean;
28
+ /**
29
+ * The flag whether to fill cells with edge color if its value is outside of {@link colorMap.minimum} to {@link colorMap.maximum} range
30
+ */
31
+ fillValuesOutOfRange?: boolean;
32
+ /**
33
+ * Options to pass to the DataLabelProvider. Set a style with font and size to enable per-point text for this series.
34
+ */
35
+ dataLabels?: IHeatmapDataLabelProviderOptions;
36
+ }
37
+ /** @ignore */
38
+ export declare const COLOR_MAP_PREFIX = "colorMap.";
39
+ /**
40
+ * @summary A JavaScript Heatmap chart type rendering a 2-dimensional array of data as color values between X,Y bounds in
41
+ * SciChart's High Performance Real-time {@link https://www.scichart.com/javascript-chart-features | JavaScript Chart Library}
42
+ * @description
43
+ * Heatmaps are 2-dimensional arrays of data, rendered as a color-map on the chart. The {@link UniformHeatmapRenderableSeries}
44
+ * assumes the cells are equal size, and spaced along the X,Y axis according to properties on the {@link UniformHeatmapDataSeries}.
45
+ *
46
+ * For a code sample how to initialize a uniform heatmap, see below
47
+ *
48
+ * ```ts
49
+ * // Create an empty 2D array using the helper function zeroArray2D
50
+ * const zValues: number[][] = zeroArray2D([height, width]);
51
+ * // todo: fill the zValues 2d array with values
52
+ *
53
+ * // Create a UniformHeatmapDataSeries passing in zValues
54
+ * const heatmapDataSeries = new UniformHeatmapDataSeries(wasmContext, 0, 1, 0, 1, zValues);
55
+ *
56
+ * // Create a Heatmap RenderableSeries with the color map. ColorMap.minimum/maximum defines the values in
57
+ * // HeatmapDataSeries which correspond to gradient stops at 0..1
58
+ * const heatmapSeries = new UniformHeatmapRenderableSeries(wasmContext, {
59
+ * dataSeries: heatmapDataSeries,
60
+ * colorMap: new HeatmapColorMap({
61
+ * minimum: 0,
62
+ * maximum: 200,
63
+ * gradientStops: [
64
+ * { offset: 0, color: "#00008B" },
65
+ * { offset: 0.2, color: "#6495ED" },
66
+ * { offset: 0.4, color: "#006400" },
67
+ * { offset: 0.6, color: "#7FFF00" },
68
+ * { offset: 0.8, color: "#FFFF00" },
69
+ * { offset: 1.0, color: "#FF0000" }
70
+ * ]
71
+ * })
72
+ * });
73
+ *
74
+ * // Add heatmap to the chart
75
+ * sciChartSurface.renderableSeries.add(heatmapSeries);
76
+ * ```
77
+ */
78
+ export declare abstract class BaseHeatmapRenderableSeries extends BaseRenderableSeries {
79
+ private colorMapProperty;
80
+ private useLinearTextureFilteringProperty;
81
+ private fillValuesOutOfRangeProperty;
82
+ private zLabelProviderProperty;
83
+ /**
84
+ * Creates an instance of the {@link UniformHeatmapRenderableSeries}
85
+ * @param webAssemblyContext The {@link TSciChart | SciChart WebAssembly Context} containing
86
+ * native methods and access to our WebGL2 WebAssembly Drawing Engine
87
+ * @param options optional parameters of type {@link IHeatmapRenderableSeriesOptions} applied when constructing the series type
88
+ */
89
+ constructor(webAssemblyContext: TSciChart, options?: IHeatmapRenderableSeriesOptions);
90
+ /**
91
+ * Gets or sets the {@link HeatmapColorMap}, which maps heatmap z-values to colors
92
+ */
93
+ get colorMap(): HeatmapColorMap;
94
+ /**
95
+ * Gets or sets the {@link HeatmapColorMap}, which maps heatmap z-values to colors
96
+ */
97
+ set colorMap(colorMap: HeatmapColorMap);
98
+ /**
99
+ * Gets or sets whether to make the heatmap linearly interpolated or smoothed between cells
100
+ */
101
+ get useLinearTextureFiltering(): boolean;
102
+ /**
103
+ * Gets or sets whether to make the heatmap linearly interpolated or smoothed between cells
104
+ */
105
+ set useLinearTextureFiltering(value: boolean);
106
+ /** @inheritDoc */
107
+ checkIsOutOfDataRange(xValue: number, yValue: number): boolean;
108
+ get zLabelProvider(): LabelProvider;
109
+ set zLabelProvider(labelProvider: LabelProvider);
110
+ /**
111
+ * Gets or sets whether to fill cells with edge color if its value is outside of {@link colorMap.minimum} to {@link colorMap.maximum} range
112
+ */
113
+ get fillValuesOutOfRange(): boolean;
114
+ /**
115
+ * Gets or sets whether to fill cells with edge color if its value is outside of {@link colorMap.minimum} to {@link colorMap.maximum} range
116
+ */
117
+ set fillValuesOutOfRange(value: boolean);
118
+ /** @inheritDoc */
119
+ toPointSeries(resamplingParams?: ResamplingParams): IPointSeries;
120
+ /** @inheritDoc */
121
+ toJSON(excludeData?: boolean): import("../../../Builder/buildSeries").TSeriesDefinition;
122
+ /**
123
+ * Called when a property changes on {@link HeatmapColorMap}, and notifies the parent {@link SciChartSurface}
124
+ * that a redraw is required.
125
+ * @param args
126
+ */
127
+ protected colorMapPropertyChanged(args: PropertyChangedEventArgs): void;
128
+ }