scichart 3.1.348 → 3.2.434

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (358) hide show
  1. package/Builder/buildSurface.d.ts +2 -2
  2. package/Builder/chartBuilder.d.ts +4 -4
  3. package/Charting/ChartModifiers/ChartModifierBase.d.ts +19 -5
  4. package/Charting/ChartModifiers/ChartModifierBase.js +64 -7
  5. package/Charting/ChartModifiers/CursorModifier.d.ts +9 -9
  6. package/Charting/ChartModifiers/CursorModifier.js +13 -1
  7. package/Charting/ChartModifiers/DataPointSelectionModifier.d.ts +1 -0
  8. package/Charting/ChartModifiers/DataPointSelectionModifier.js +6 -1
  9. package/Charting/ChartModifiers/LegendModifier.d.ts +10 -25
  10. package/Charting/ChartModifiers/LegendModifier.js +10 -20
  11. package/Charting/ChartModifiers/MouseWheelZoomModifier.js +20 -11
  12. package/Charting/ChartModifiers/OverviewRangeSelectionModifier.d.ts +5 -5
  13. package/Charting/ChartModifiers/PinchZoomModifier.d.ts +38 -8
  14. package/Charting/ChartModifiers/PinchZoomModifier.js +103 -40
  15. package/Charting/ChartModifiers/RolloverModifier.js +10 -3
  16. package/Charting/ChartModifiers/RubberBandXyZoomModifier.d.ts +4 -7
  17. package/Charting/ChartModifiers/RubberBandXyZoomModifier.js +6 -8
  18. package/Charting/ChartModifiers/SeriesSelectionModifier.js +39 -29
  19. package/Charting/ChartModifiers/XAxisDragModifier.d.ts +1 -1
  20. package/Charting/ChartModifiers/XAxisDragModifier.js +3 -3
  21. package/Charting/ChartModifiers/YAxisDragModifier.d.ts +2 -4
  22. package/Charting/ChartModifiers/YAxisDragModifier.js +7 -8
  23. package/Charting/ChartModifiers/ZoomPanModifier.d.ts +13 -38
  24. package/Charting/ChartModifiers/ZoomPanModifier.js +54 -99
  25. package/Charting/Drawing/BaseCache.d.ts +2 -1
  26. package/Charting/Drawing/BaseCache.js +45 -7
  27. package/Charting/Drawing/RenderSurface.d.ts +1 -0
  28. package/Charting/Drawing/RenderSurface.js +5 -1
  29. package/Charting/Drawing/SolidBrushCache.d.ts +2 -1
  30. package/Charting/Drawing/SolidBrushCache.js +23 -3
  31. package/Charting/Drawing/WebGlBrush.d.ts +2 -1
  32. package/Charting/Drawing/WebGlBrush.js +22 -3
  33. package/Charting/Drawing/WebGlPen.d.ts +2 -1
  34. package/Charting/Drawing/WebGlPen.js +23 -4
  35. package/Charting/Drawing/WebGlRenderContext2D.d.ts +4 -3
  36. package/Charting/Drawing/WebGlRenderContext2D.js +26 -7
  37. package/Charting/Model/BaseDataSeries.d.ts +67 -2
  38. package/Charting/Model/BaseDataSeries.js +193 -42
  39. package/Charting/Model/BaseHeatmapDataSeries.js +1 -1
  40. package/Charting/Model/ChartData/SeriesInfo.d.ts +16 -0
  41. package/Charting/Model/ChartData/SeriesInfo.js +7 -0
  42. package/Charting/Model/ChartData/XyzSeriesInfo.d.ts +8 -0
  43. package/Charting/Model/ChartData/XyzSeriesInfo.js +36 -0
  44. package/Charting/Model/DoubleVectorProvider.d.ts +19 -0
  45. package/Charting/Model/DoubleVectorProvider.js +95 -0
  46. package/Charting/Model/Filters/HlcFilterBase.d.ts +6 -2
  47. package/Charting/Model/Filters/HlcFilterBase.js +17 -1
  48. package/Charting/Model/Filters/IFilterBase.d.ts +24 -0
  49. package/Charting/Model/Filters/IFilterBase.js +2 -0
  50. package/Charting/Model/Filters/OhlcFilterBase.d.ts +6 -2
  51. package/Charting/Model/Filters/OhlcFilterBase.js +17 -1
  52. package/Charting/Model/Filters/XyFilterBase.d.ts +6 -5
  53. package/Charting/Model/Filters/XyFilterBase.js +17 -1
  54. package/Charting/Model/Filters/XyyFilterBase.d.ts +6 -2
  55. package/Charting/Model/Filters/XyyFilterBase.js +17 -1
  56. package/Charting/Model/Filters/XyzFilterBase.d.ts +6 -2
  57. package/Charting/Model/Filters/XyzFilterBase.js +17 -1
  58. package/Charting/Model/HlcDataSeries.d.ts +3 -0
  59. package/Charting/Model/HlcDataSeries.js +44 -15
  60. package/Charting/Model/IDataSeries.d.ts +23 -0
  61. package/Charting/Model/NonUniformHeatmapDataSeries.js +2 -0
  62. package/Charting/Model/OhlcDataSeries.d.ts +3 -0
  63. package/Charting/Model/OhlcDataSeries.js +56 -24
  64. package/Charting/Model/PointSeries/BasePointSeriesResampled.d.ts +4 -5
  65. package/Charting/Model/PointSeries/BasePointSeriesResampled.js +29 -21
  66. package/Charting/Model/PointSeries/BasePointSeriesWrapped.d.ts +2 -0
  67. package/Charting/Model/PointSeries/BasePointSeriesWrapped.js +2 -0
  68. package/Charting/Model/PointSeries/IPointSeries.d.ts +2 -1
  69. package/Charting/Model/PointSeries/OhlcPointSeriesResampled.js +1 -1
  70. package/Charting/Model/PointSeries/XyPointSeriesWrapped.d.ts +2 -1
  71. package/Charting/Model/PointSeries/XyPointSeriesWrapped.js +2 -2
  72. package/Charting/Model/PointSeries/XyyPointSeriesResampled.js +1 -1
  73. package/Charting/Model/UniformHeatmapDataSeries.d.ts +31 -11
  74. package/Charting/Model/UniformHeatmapDataSeries.js +72 -4
  75. package/Charting/Model/XyDataSeries.d.ts +0 -8
  76. package/Charting/Model/XyDataSeries.js +21 -5
  77. package/Charting/Model/XyTextDataSeries.d.ts +2 -0
  78. package/Charting/Model/XyTextDataSeries.js +35 -4
  79. package/Charting/Model/XyyDataSeries.d.ts +2 -0
  80. package/Charting/Model/XyyDataSeries.js +50 -26
  81. package/Charting/Model/XyzDataSeries.d.ts +3 -0
  82. package/Charting/Model/XyzDataSeries.js +36 -10
  83. package/Charting/Numerics/CoordinateCalculators/CategoryCoordinateCalculator.d.ts +3 -5
  84. package/Charting/Numerics/CoordinateCalculators/CategoryCoordinateCalculator.js +5 -7
  85. package/Charting/Numerics/CoordinateCalculators/CoordinateCalculatorBase.d.ts +2 -1
  86. package/Charting/Numerics/CoordinateCalculators/CoordinateCalculatorBase.js +29 -9
  87. package/Charting/Numerics/CoordinateCalculators/FlippedCategoryCoordinateCalculator.d.ts +3 -5
  88. package/Charting/Numerics/CoordinateCalculators/FlippedCategoryCoordinateCalculator.js +5 -7
  89. package/Charting/Numerics/Resamplers/ExtremeResamplerHelper.d.ts +14 -10
  90. package/Charting/Numerics/Resamplers/ExtremeResamplerHelper.js +105 -69
  91. package/Charting/Numerics/Resamplers/ResamplingParams.d.ts +4 -2
  92. package/Charting/Numerics/Resamplers/ResamplingParams.js +12 -7
  93. package/Charting/Numerics/TickCoordinateProviders/TickCoordinatesProvider.d.ts +5 -0
  94. package/Charting/Numerics/TickCoordinateProviders/TickCoordinatesProvider.js +7 -0
  95. package/Charting/Numerics/TickProviders/NumericTickProvider.js +3 -4
  96. package/Charting/Numerics/TickProviders/TickProvider.d.ts +5 -0
  97. package/Charting/Numerics/TickProviders/TickProvider.js +7 -0
  98. package/Charting/Services/SciChartRenderer.js +15 -5
  99. package/Charting/Services/TitleRenderer.d.ts +2 -1
  100. package/Charting/Services/TitleRenderer.js +35 -14
  101. package/Charting/Visuals/Annotations/AdornerLayer.d.ts +1 -1
  102. package/Charting/Visuals/Annotations/AnnotationBase.d.ts +6 -6
  103. package/Charting/Visuals/Annotations/AnnotationBase.js +81 -61
  104. package/Charting/Visuals/Annotations/CursorTooltipSvgAnnotation.js +4 -0
  105. package/Charting/Visuals/Annotations/IAnnotation.d.ts +9 -4
  106. package/Charting/Visuals/Annotations/IAnnotation.js +6 -0
  107. package/Charting/Visuals/Annotations/LineAnnotation.js +3 -1
  108. package/Charting/Visuals/Annotations/NativeTextAnnotation.js +4 -0
  109. package/Charting/Visuals/Annotations/RenderContextAnnotationBase.d.ts +5 -0
  110. package/Charting/Visuals/Annotations/RenderContextAnnotationBase.js +16 -0
  111. package/Charting/Visuals/Annotations/RolloverTooltipSvgAnnotation.js +6 -0
  112. package/Charting/Visuals/Annotations/constants.d.ts +1 -0
  113. package/Charting/Visuals/Annotations/constants.js +1 -0
  114. package/Charting/Visuals/Axis/AxisBase2D.d.ts +23 -8
  115. package/Charting/Visuals/Axis/AxisBase2D.js +46 -10
  116. package/Charting/Visuals/Axis/AxisCore.d.ts +6 -3
  117. package/Charting/Visuals/Axis/AxisCore.js +100 -54
  118. package/Charting/Visuals/Axis/AxisRenderer.d.ts +2 -1
  119. package/Charting/Visuals/Axis/AxisRenderer.js +40 -16
  120. package/Charting/Visuals/Axis/AxisTitleRenderer.d.ts +1 -0
  121. package/Charting/Visuals/Axis/AxisTitleRenderer.js +4 -0
  122. package/Charting/Visuals/Axis/CategoryAxisBase.js +4 -4
  123. package/Charting/Visuals/Axis/DeltaCalculator/DateTimeDeltaCalculator.js +14 -9
  124. package/Charting/Visuals/Axis/DeltaCalculator/DeltaCalculator.d.ts +5 -0
  125. package/Charting/Visuals/Axis/DeltaCalculator/DeltaCalculator.js +7 -0
  126. package/Charting/Visuals/Axis/LabelProvider/LabelCache.d.ts +2 -2
  127. package/Charting/Visuals/Axis/LabelProvider/LabelCache.js +8 -1
  128. package/Charting/Visuals/Axis/LabelProvider/LabelProvider.d.ts +7 -1
  129. package/Charting/Visuals/Axis/LabelProvider/LabelProvider.js +34 -8
  130. package/Charting/Visuals/Axis/LabelProvider/LabelProviderBase2D.d.ts +4 -2
  131. package/Charting/Visuals/Axis/LabelProvider/LabelProviderBase2D.js +8 -2
  132. package/Charting/Visuals/Axis/LabelProvider/PieLabelProvider.d.ts +1 -0
  133. package/Charting/Visuals/Axis/LabelProvider/PieLabelProvider.js +1 -0
  134. package/Charting/Visuals/HeatmapLegend.d.ts +3 -2
  135. package/Charting/Visuals/HeatmapLegend.js +33 -12
  136. package/Charting/Visuals/Helpers/NativeObject.d.ts +8 -5
  137. package/Charting/Visuals/Helpers/NativeObject.js +42 -21
  138. package/Charting/Visuals/Helpers/drawLabel.js +3 -1
  139. package/Charting/Visuals/I2DSurfaceOptions.d.ts +0 -15
  140. package/Charting/Visuals/Legend/ManualLegend.d.ts +56 -0
  141. package/Charting/Visuals/Legend/ManualLegend.js +138 -0
  142. package/Charting/Visuals/Legend/SciChartLegend.js +4 -3
  143. package/Charting/Visuals/Legend/SciChartLegendBase.d.ts +65 -4
  144. package/Charting/Visuals/Legend/SciChartLegendBase.js +111 -23
  145. package/Charting/Visuals/Legend/SciChartPieLegend.js +1 -1
  146. package/Charting/Visuals/PointMarkers/BasePointMarker.d.ts +13 -1
  147. package/Charting/Visuals/PointMarkers/BasePointMarker.js +77 -19
  148. package/Charting/Visuals/PointMarkers/Constants.d.ts +2 -1
  149. package/Charting/Visuals/PointMarkers/Constants.js +1 -0
  150. package/Charting/Visuals/PointMarkers/IPointMarker.d.ts +2 -0
  151. package/Charting/Visuals/RenderableSeries/Animations/SeriesAnimation.js +4 -1
  152. package/Charting/Visuals/RenderableSeries/Animations/animationHelpers.d.ts +1 -1
  153. package/Charting/Visuals/RenderableSeries/BaseBandRenderableSeries.js +8 -7
  154. package/Charting/Visuals/RenderableSeries/BaseHeatmapRenderableSeries.d.ts +1 -0
  155. package/Charting/Visuals/RenderableSeries/BaseHeatmapRenderableSeries.js +5 -0
  156. package/Charting/Visuals/RenderableSeries/BaseOhlcRenderableSeries.js +10 -9
  157. package/Charting/Visuals/RenderableSeries/BaseRenderableSeries.d.ts +3 -2
  158. package/Charting/Visuals/RenderableSeries/BaseRenderableSeries.js +101 -69
  159. package/Charting/Visuals/RenderableSeries/BaseStackedCollection.js +18 -4
  160. package/Charting/Visuals/RenderableSeries/BaseStackedRenderableSeries.js +12 -3
  161. package/Charting/Visuals/RenderableSeries/DataLabels/BaseDataLabelProvider.d.ts +2 -0
  162. package/Charting/Visuals/RenderableSeries/DataLabels/BaseDataLabelProvider.js +5 -0
  163. package/Charting/Visuals/RenderableSeries/DataLabels/DataLabelProvider.js +6 -0
  164. package/Charting/Visuals/RenderableSeries/DataLabels/DataLabelState.d.ts +1 -0
  165. package/Charting/Visuals/RenderableSeries/DataLabels/DataLabelState.js +18 -5
  166. package/Charting/Visuals/RenderableSeries/DataLabels/NonUniformHeatmapDataLabelProvider.js +0 -1
  167. package/Charting/Visuals/RenderableSeries/DataLabels/TextDataLabelProvider.js +8 -2
  168. package/Charting/Visuals/RenderableSeries/DrawingProviders/BandSeriesDrawingProvider.d.ts +1 -0
  169. package/Charting/Visuals/RenderableSeries/DrawingProviders/BandSeriesDrawingProvider.js +35 -16
  170. package/Charting/Visuals/RenderableSeries/DrawingProviders/BaseSeriesDrawingProvider.d.ts +5 -4
  171. package/Charting/Visuals/RenderableSeries/DrawingProviders/BaseSeriesDrawingProvider.js +70 -33
  172. package/Charting/Visuals/RenderableSeries/DrawingProviders/BubbleSeriesDrawingProvider.d.ts +1 -0
  173. package/Charting/Visuals/RenderableSeries/DrawingProviders/BubbleSeriesDrawingProvider.js +30 -9
  174. package/Charting/Visuals/RenderableSeries/DrawingProviders/ColumnSeriesDrawingProvider.d.ts +1 -0
  175. package/Charting/Visuals/RenderableSeries/DrawingProviders/ColumnSeriesDrawingProvider.js +37 -16
  176. package/Charting/Visuals/RenderableSeries/DrawingProviders/HeatmapHelpers.d.ts +47 -0
  177. package/Charting/Visuals/RenderableSeries/DrawingProviders/HeatmapHelpers.js +258 -0
  178. package/Charting/Visuals/RenderableSeries/DrawingProviders/LineSeriesDrawingProvider.js +26 -2
  179. package/Charting/Visuals/RenderableSeries/DrawingProviders/MountainSeriesDrawingProvider.d.ts +1 -0
  180. package/Charting/Visuals/RenderableSeries/DrawingProviders/MountainSeriesDrawingProvider.js +34 -15
  181. package/Charting/Visuals/RenderableSeries/DrawingProviders/NonUniformHeatmapDrawingProvider.js +5 -230
  182. package/Charting/Visuals/RenderableSeries/DrawingProviders/OhlcSeriesDrawingProvider.d.ts +1 -0
  183. package/Charting/Visuals/RenderableSeries/DrawingProviders/OhlcSeriesDrawingProvider.js +62 -37
  184. package/Charting/Visuals/RenderableSeries/DrawingProviders/PointMarkerDrawingProvider.js +30 -3
  185. package/Charting/Visuals/RenderableSeries/DrawingProviders/UniformHeatmapDrawingProvider.d.ts +1 -0
  186. package/Charting/Visuals/RenderableSeries/DrawingProviders/UniformHeatmapDrawingProvider.js +4 -1
  187. package/Charting/Visuals/RenderableSeries/FastBubbleRenderableSeries.d.ts +0 -2
  188. package/Charting/Visuals/RenderableSeries/FastBubbleRenderableSeries.js +0 -4
  189. package/Charting/Visuals/RenderableSeries/FastTextRenderableSeries.d.ts +3 -0
  190. package/Charting/Visuals/RenderableSeries/FastTextRenderableSeries.js +10 -0
  191. package/Charting/Visuals/RenderableSeries/HitTest/BubbleSeriesHitTestProvider.d.ts +4 -0
  192. package/Charting/Visuals/RenderableSeries/HitTest/BubbleSeriesHitTestProvider.js +7 -0
  193. package/Charting/Visuals/RenderableSeries/HitTest/HitTestInfo.d.ts +4 -0
  194. package/Charting/Visuals/RenderableSeries/HitTest/HitTestInfo.js +9 -0
  195. package/Charting/Visuals/RenderableSeries/HoveredChangedArgs.d.ts +6 -1
  196. package/Charting/Visuals/RenderableSeries/HoveredChangedArgs.js +2 -1
  197. package/Charting/Visuals/RenderableSeries/IRenderableSeries.d.ts +1 -1
  198. package/Charting/Visuals/RenderableSeries/SelectionChangedArgs.d.ts +6 -1
  199. package/Charting/Visuals/RenderableSeries/SelectionChangedArgs.js +2 -1
  200. package/Charting/Visuals/RenderableSeries/ShaderEffect.d.ts +3 -2
  201. package/Charting/Visuals/RenderableSeries/ShaderEffect.js +29 -9
  202. package/Charting/Visuals/RenderableSeries/SplineBandRenderableSeries.js +50 -1
  203. package/Charting/Visuals/RenderableSeries/SplineLineRenderableSeries.js +13 -1
  204. package/Charting/Visuals/RenderableSeries/SplineMountainRenderableSeries.js +13 -1
  205. package/Charting/Visuals/RenderableSeries/StackedColumnCollection.js +3 -0
  206. package/Charting/Visuals/RenderableSeries/StackedMountainCollection.d.ts +0 -2
  207. package/Charting/Visuals/RenderableSeries/StackedMountainCollection.js +4 -4
  208. package/Charting/Visuals/RenderableSeries/StackedMountainRenderableSeries.d.ts +1 -0
  209. package/Charting/Visuals/RenderableSeries/StackedMountainRenderableSeries.js +8 -0
  210. package/Charting/Visuals/RenderableSeries/XyScatterRenderableSeries.d.ts +1 -2
  211. package/Charting/Visuals/RenderableSeries/XyScatterRenderableSeries.js +8 -3
  212. package/Charting/Visuals/RubberBandSvgRect/RubberBandSvgRect.d.ts +7 -1
  213. package/Charting/Visuals/RubberBandSvgRect/RubberBandSvgRect.js +38 -12
  214. package/Charting/Visuals/SciChartDefaults.d.ts +10 -0
  215. package/Charting/Visuals/SciChartDefaults.js +10 -0
  216. package/Charting/Visuals/SciChartOverview.d.ts +2 -1
  217. package/Charting/Visuals/SciChartOverview.js +28 -8
  218. package/Charting/Visuals/SciChartPieSurface/SciChartPieSurface.d.ts +16 -3
  219. package/Charting/Visuals/SciChartPieSurface/SciChartPieSurface.js +125 -60
  220. package/Charting/Visuals/SciChartSurface.d.ts +4 -41
  221. package/Charting/Visuals/SciChartSurface.js +52 -66
  222. package/Charting/Visuals/SciChartSurfaceBase.d.ts +117 -13
  223. package/Charting/Visuals/SciChartSurfaceBase.js +177 -32
  224. package/Charting/Visuals/TextureManager/CanvasTexture.d.ts +2 -1
  225. package/Charting/Visuals/TextureManager/CanvasTexture.js +37 -17
  226. package/Charting/Visuals/TextureManager/TextureManager.d.ts +2 -1
  227. package/Charting/Visuals/TextureManager/TextureManager.js +27 -7
  228. package/Charting/Visuals/createMaster.d.ts +7 -2
  229. package/Charting/Visuals/createMaster.js +140 -45
  230. package/Charting/Visuals/createSingle.d.ts +0 -2
  231. package/Charting/Visuals/createSingle.js +46 -11
  232. package/Charting/Visuals/licenseManager2D.d.ts +7 -5
  233. package/Charting/Visuals/licenseManager2D.js +105 -53
  234. package/Charting/Visuals/loader.js +3 -1
  235. package/Charting/Visuals/sciChartInitCommon.d.ts +1 -1
  236. package/Charting/Visuals/sciChartInitCommon.js +5 -1
  237. package/Charting3D/CameraController.d.ts +1 -1
  238. package/Charting3D/CameraController.js +21 -7
  239. package/Charting3D/ChartModifiers/ChartModifierBase3D.d.ts +1 -0
  240. package/Charting3D/ChartModifiers/ChartModifierBase3D.js +4 -1
  241. package/Charting3D/ChartModifiers/OrbitModifier3D.d.ts +17 -5
  242. package/Charting3D/ChartModifiers/OrbitModifier3D.js +62 -26
  243. package/Charting3D/ChartModifiers/PinchZoomModifier3D.d.ts +81 -0
  244. package/Charting3D/ChartModifiers/PinchZoomModifier3D.js +164 -0
  245. package/Charting3D/ChartModifiers/ResetCamera3DModifier.d.ts +1 -1
  246. package/Charting3D/ChartModifiers/ResetCamera3DModifier.js +1 -2
  247. package/Charting3D/ChartModifiers/TooltipModifier3D.d.ts +122 -0
  248. package/Charting3D/ChartModifiers/TooltipModifier3D.js +427 -0
  249. package/Charting3D/I3DSurfaceOptions.d.ts +10 -0
  250. package/Charting3D/I3DSurfaceOptions.js +2 -0
  251. package/Charting3D/Model/DataSeries/BaseDataSeries3D.d.ts +2 -1
  252. package/Charting3D/Model/DataSeries/BaseDataSeries3D.js +27 -6
  253. package/Charting3D/Model/DataSeries/BaseGridDataSeries3D.d.ts +1 -1
  254. package/Charting3D/Model/DataSeries/BaseGridDataSeries3D.js +2 -2
  255. package/Charting3D/Model/DataSeries/IPointMetadata3D.d.ts +7 -2
  256. package/Charting3D/Model/DataSeries/UniformGridDataSeries3D.d.ts +8 -0
  257. package/Charting3D/Model/DataSeries/UniformGridDataSeries3D.js +12 -0
  258. package/Charting3D/Model/DataSeries/XyzDataSeries3D.d.ts +2 -2
  259. package/Charting3D/Model/DataSeries/XyzDataSeries3D.js +1 -1
  260. package/Charting3D/Vector3.d.ts +5 -0
  261. package/Charting3D/Vector3.js +7 -0
  262. package/Charting3D/Visuals/Annotations/TooltipSvgAnnotation3D.d.ts +88 -0
  263. package/Charting3D/Visuals/Annotations/TooltipSvgAnnotation3D.js +291 -0
  264. package/Charting3D/Visuals/Axis/AxisBase3D.d.ts +29 -3
  265. package/Charting3D/Visuals/Axis/AxisBase3D.js +46 -18
  266. package/Charting3D/Visuals/Axis/AxisBase3DLabelStyle.js +2 -1
  267. package/Charting3D/Visuals/Axis/AxisCubeEntity.d.ts +0 -4
  268. package/Charting3D/Visuals/Axis/AxisCubeEntity.js +3 -6
  269. package/Charting3D/Visuals/Axis/IAxisDescriptor.d.ts +2 -2
  270. package/Charting3D/Visuals/Axis/IAxisDescriptor.js +2 -2
  271. package/Charting3D/Visuals/Axis/NumericAxis3D.d.ts +3 -2
  272. package/Charting3D/Visuals/Axis/NumericAxis3D.js +7 -3
  273. package/Charting3D/Visuals/Primitives/BaseSceneEntity3D.d.ts +41 -30
  274. package/Charting3D/Visuals/Primitives/BaseSceneEntity3D.js +78 -26
  275. package/Charting3D/Visuals/Primitives/CrosshairLinesSceneEntity.d.ts +47 -0
  276. package/Charting3D/Visuals/Primitives/CrosshairLinesSceneEntity.js +106 -0
  277. package/Charting3D/Visuals/Primitives/EntityIdProvider.d.ts +29 -0
  278. package/Charting3D/Visuals/Primitives/EntityIdProvider.js +28 -0
  279. package/Charting3D/Visuals/Primitives/PointLine3DSceneEntity.d.ts +51 -0
  280. package/Charting3D/Visuals/Primitives/PointLine3DSceneEntity.js +190 -0
  281. package/Charting3D/Visuals/Primitives/RenderableSeriesSceneEntity.d.ts +12 -0
  282. package/Charting3D/Visuals/Primitives/RenderableSeriesSceneEntity.js +14 -0
  283. package/Charting3D/Visuals/Primitives/ScatterPointsSceneEntity.d.ts +11 -0
  284. package/Charting3D/Visuals/Primitives/ScatterPointsSceneEntity.js +23 -2
  285. package/Charting3D/Visuals/Primitives/SurfaceMeshSceneEntity.d.ts +3 -0
  286. package/Charting3D/Visuals/Primitives/SurfaceMeshSceneEntity.js +17 -1
  287. package/Charting3D/Visuals/RenderableSeries/BaseRenderableSeries3D.d.ts +21 -1
  288. package/Charting3D/Visuals/RenderableSeries/BaseRenderableSeries3D.js +78 -12
  289. package/Charting3D/Visuals/RenderableSeries/Constants.d.ts +2 -0
  290. package/Charting3D/Visuals/RenderableSeries/Constants.js +2 -0
  291. package/Charting3D/Visuals/RenderableSeries/ESeriesType.d.ts +2 -1
  292. package/Charting3D/Visuals/RenderableSeries/ESeriesType.js +1 -0
  293. package/Charting3D/Visuals/RenderableSeries/HitTestInfo3D.d.ts +37 -0
  294. package/Charting3D/Visuals/RenderableSeries/HitTestInfo3D.js +22 -0
  295. package/Charting3D/Visuals/RenderableSeries/PointLineRenderableSeries3D.d.ts +64 -0
  296. package/Charting3D/Visuals/RenderableSeries/PointLineRenderableSeries3D.js +105 -0
  297. package/Charting3D/Visuals/RenderableSeries/SeriesInfo3D.d.ts +51 -0
  298. package/Charting3D/Visuals/RenderableSeries/SeriesInfo3D.js +32 -0
  299. package/Charting3D/Visuals/RenderableSeries/SurfaceMeshSeriesInfo3D.d.ts +15 -0
  300. package/Charting3D/Visuals/RenderableSeries/SurfaceMeshSeriesInfo3D.js +112 -0
  301. package/Charting3D/Visuals/RenderableSeries/XyzSeriesInfo3D.d.ts +20 -0
  302. package/Charting3D/Visuals/RenderableSeries/XyzSeriesInfo3D.js +60 -0
  303. package/Charting3D/Visuals/RootSceneEntity.d.ts +0 -4
  304. package/Charting3D/Visuals/RootSceneEntity.js +3 -8
  305. package/Charting3D/Visuals/SciChart3DRenderer.d.ts +1 -0
  306. package/Charting3D/Visuals/SciChart3DRenderer.js +26 -0
  307. package/Charting3D/Visuals/SciChart3DSurface.d.ts +55 -7
  308. package/Charting3D/Visuals/SciChart3DSurface.js +136 -13
  309. package/Charting3D/Visuals/ViewportManager3DBase.d.ts +4 -0
  310. package/Charting3D/Visuals/ViewportManager3DBase.js +7 -1
  311. package/Charting3D/Visuals/createMaster3d.d.ts +1 -2
  312. package/Charting3D/Visuals/createMaster3d.js +81 -14
  313. package/Charting3D/Visuals/createSingle3d.js +34 -4
  314. package/Charting3D/Visuals/licenseManager3D.js +29 -25
  315. package/Core/BuildStamp.d.ts +1 -1
  316. package/Core/BuildStamp.js +2 -2
  317. package/Core/DeletableEntity.d.ts +34 -0
  318. package/Core/DeletableEntity.js +138 -0
  319. package/Core/Globals.d.ts +11 -0
  320. package/Core/Globals.js +13 -0
  321. package/Core/Guard.d.ts +6 -0
  322. package/Core/Guard.js +10 -0
  323. package/Core/Mouse/MouseManager.d.ts +23 -0
  324. package/Core/Mouse/MouseManager.js +53 -0
  325. package/Core/Telemetry.js +4 -6
  326. package/_wasm/scichart.browser.js +1 -1
  327. package/_wasm/scichart2d.data +0 -0
  328. package/_wasm/scichart2d.js +4 -294
  329. package/_wasm/scichart2d.wasm +0 -0
  330. package/_wasm/scichart3d.data +0 -0
  331. package/_wasm/scichart3d.js +4 -294
  332. package/_wasm/scichart3d.wasm +0 -0
  333. package/index.d.ts +42 -2
  334. package/index.dev.js +68876 -0
  335. package/index.js +81 -27
  336. package/index.min.js +1 -1
  337. package/package.json +3 -4
  338. package/types/ChartModifierType.d.ts +2 -0
  339. package/types/ChartModifierType.js +2 -0
  340. package/types/DefaultRenderLayer.d.ts +9 -8
  341. package/types/DefaultRenderLayer.js +9 -8
  342. package/types/NumberArray.d.ts +1 -0
  343. package/types/NumberArray.js +12 -1
  344. package/types/SceneEntityType.d.ts +13 -5
  345. package/types/SceneEntityType.js +13 -5
  346. package/types/TSciChart.d.ts +37 -8
  347. package/types/TSciChart3D.d.ts +126 -7
  348. package/types/licensingClasses.d.ts +2 -1
  349. package/types/licensingClasses.js +1 -0
  350. package/utils/MemoryUsageHelper.d.ts +92 -0
  351. package/utils/MemoryUsageHelper.js +221 -0
  352. package/utils/array.d.ts +8 -0
  353. package/utils/array.js +58 -1
  354. package/utils/colorUtil.d.ts +7 -0
  355. package/utils/colorUtil.js +13 -1
  356. package/utils/logger.d.ts +2 -0
  357. package/utils/logger.js +11 -0
  358. package/utils/parseColor.js +19 -4
@@ -128,6 +128,7 @@ var AxisBase2D = /** @class */ (function (_super) {
128
128
  border: 0
129
129
  };
130
130
  _this.offsetProperty = 0;
131
+ _this.offsetOverrideProperty = undefined;
131
132
  _this.tickCache = undefined;
132
133
  _this.webAssemblyContext2D = webAssemblyContext;
133
134
  _this.penCacheForMajorGridLines = new Pen2DCache_1.Pen2DCache(webAssemblyContext);
@@ -161,19 +162,24 @@ var AxisBase2D = /** @class */ (function (_super) {
161
162
  }
162
163
  _this.autoRangeAnimationProperty = options === null || options === void 0 ? void 0 : options.autoRangeAnimation;
163
164
  _this.backgroundColor = (_k = options === null || options === void 0 ? void 0 : options.backgroundColor) !== null && _k !== void 0 ? _k : _this.backgroundColor;
165
+ _this.offsetOverrideProperty = options === null || options === void 0 ? void 0 : options.overrideOffset; // undefined if not set
164
166
  return _this;
165
167
  }
166
168
  Object.defineProperty(AxisBase2D.prototype, "labelProvider", {
167
169
  /**
168
- * Gets or sets a {@link LabelProvider} - a class which is responsible for formatting axis labels and cursor labels from numeric values
170
+ * Gets or sets a {@link LabelProviderBase2D} - a class which is responsible for formatting axis labels and cursor labels from numeric values
169
171
  */
170
172
  get: function () {
171
173
  return this.labelProviderProperty;
172
174
  },
173
175
  /**
174
- * Gets or sets a {@link LabelProvider} - a class which is responsible for formatting axis labels and cursor labels from numeric values
176
+ * Gets or sets a {@link LabelProviderBase2D} - a class which is responsible for formatting axis labels and cursor labels from numeric values
175
177
  */
176
178
  set: function (labelProvider) {
179
+ var _a;
180
+ // TODO This duplicates logic in AxisCore.
181
+ // Probably we could consider proper generics used for the inheritance to omit the duplication
182
+ (_a = this.labelProviderProperty) === null || _a === void 0 ? void 0 : _a.detachedFromAxis();
177
183
  this.labelProviderProperty = labelProvider;
178
184
  this.notifyPropertyChanged(constants_1.PROPERTY.LABEL_PROVIDER);
179
185
  },
@@ -437,21 +443,35 @@ var AxisBase2D = /** @class */ (function (_super) {
437
443
  * Defines a position of the axis along the layout flow.
438
444
  */
439
445
  get: function () {
440
- return this.offsetProperty;
446
+ var _a;
447
+ return (_a = this.offsetOverrideProperty) !== null && _a !== void 0 ? _a : this.offsetProperty;
441
448
  },
442
449
  /**
443
- * Gets or sets the offset of the axis position
450
+ * Called internally by layout strategies when switching between stacked and non-stacked axes.
451
+ * If you want to set a manual offset, call {@link overrideOffset}
444
452
  */
445
453
  set: function (value) {
446
454
  if (this.offsetProperty !== value) {
447
- this.clearCoordCalcCache();
448
455
  this.offsetProperty = value;
449
- this.notifyPropertyChanged(constants_1.PROPERTY.OFFSET);
456
+ if (this.offsetOverrideProperty === undefined) {
457
+ this.clearCoordCalcCache();
458
+ this.notifyPropertyChanged(constants_1.PROPERTY.OFFSET);
459
+ }
450
460
  }
451
461
  },
452
462
  enumerable: false,
453
463
  configurable: true
454
464
  });
465
+ /**
466
+ * set an offset value that overrides the one used by layout calculation
467
+ */
468
+ AxisBase2D.prototype.overrideOffset = function (value) {
469
+ if (this.offsetOverrideProperty !== value) {
470
+ this.offsetOverrideProperty = value;
471
+ this.clearCoordCalcCache();
472
+ this.notifyPropertyChanged(constants_1.PROPERTY.OFFSET);
473
+ }
474
+ };
455
475
  Object.defineProperty(AxisBase2D.prototype, "isVerticalChart", {
456
476
  /**
457
477
  * Gets whether the parent {@link SciChartSurface} is a vertical chart, when the XAxis is on the Left or Right,
@@ -573,6 +593,14 @@ var AxisBase2D = /** @class */ (function (_super) {
573
593
  this.setIsXAxis(isXAxis);
574
594
  this.isPrimaryAxisProperty = isPrimaryAxis;
575
595
  };
596
+ /**
597
+ * Called when the {@link AxisBase2D} is detached from an {@link SciChartSurface}
598
+ */
599
+ AxisBase2D.prototype.onDetach = function () {
600
+ this.parentSurface = undefined;
601
+ this.isPrimaryAxisProperty = false;
602
+ this.invalidateParentCallback = undefined;
603
+ };
576
604
  /**
577
605
  * Called internally - measures the axis as part of the layout phase
578
606
  */
@@ -899,7 +927,6 @@ var AxisBase2D = /** @class */ (function (_super) {
899
927
  * @inheritDoc
900
928
  */
901
929
  AxisBase2D.prototype.delete = function () {
902
- _super.prototype.delete.call(this);
903
930
  this.penCacheForMajorGridLines = (0, Deleter_1.deleteSafe)(this.penCacheForMajorGridLines);
904
931
  this.penCacheForMinorGridLines = (0, Deleter_1.deleteSafe)(this.penCacheForMinorGridLines);
905
932
  this.penCacheForMajorTickLines = (0, Deleter_1.deleteSafe)(this.penCacheForMajorTickLines);
@@ -907,8 +934,11 @@ var AxisBase2D = /** @class */ (function (_super) {
907
934
  this.solidBrushCacheBorder = (0, Deleter_1.deleteSafe)(this.solidBrushCacheBorder);
908
935
  this.solidBrushCacheAxisBands = (0, Deleter_1.deleteSafe)(this.solidBrushCacheAxisBands);
909
936
  this.solidBrushCacheAxisBackground = (0, Deleter_1.deleteSafe)(this.solidBrushCacheAxisBackground);
910
- this.labelProviderProperty = (0, Deleter_1.deleteSafe)(this.labelProvider);
911
937
  this.axisRendererProperty = (0, Deleter_1.deleteSafe)(this.axisRenderer);
938
+ this.axisTitleRenderer = (0, Deleter_1.deleteSafe)(this.axisTitleRenderer);
939
+ this.webAssemblyContext2D = undefined;
940
+ this.parentSurface = undefined;
941
+ _super.prototype.delete.call(this);
912
942
  };
913
943
  AxisBase2D.prototype.toJSON = function () {
914
944
  var options = {
@@ -1192,11 +1222,17 @@ var AxisBase2D = /** @class */ (function (_super) {
1192
1222
  AxisBase2D.prototype.applyVisibleRangeSizeLimit = function (visibleRange) {
1193
1223
  if (!visibleRange)
1194
1224
  return undefined;
1225
+ var minDiff = Math.abs(visibleRange.min) / Math.pow(10, 14);
1226
+ // Prevent axis becoming invalid due to loss of precision
1227
+ var currentSize = visibleRange.diff;
1228
+ if (currentSize < minDiff) {
1229
+ var middleValue = visibleRange.min + currentSize / 2;
1230
+ return new NumberRange_1.NumberRange(middleValue - minDiff / 2, middleValue + minDiff / 2);
1231
+ }
1195
1232
  if (!this.visibleRangeSizeLimit)
1196
1233
  return visibleRange;
1197
- var currentSize = visibleRange.max - visibleRange.min;
1198
1234
  if (currentSize < 0) {
1199
- console.warn("Can not apply applyVisibleRangeSizeLimit for the ".concat(this.isXAxis ? "xAxis" : "yAxis", " with ID ").concat(this.id));
1235
+ console.warn("Can not apply visibleRangeSizeLimit for the ".concat(this.isXAxis ? "xAxis" : "yAxis", " with ID ").concat(this.id));
1200
1236
  return visibleRange;
1201
1237
  }
1202
1238
  else {
@@ -1,5 +1,6 @@
1
1
  import { TEasingFn } from "../../../Core/Animations/EasingFunctions";
2
2
  import { IGenericAnimation } from "../../../Core/Animations/GenericAnimation";
3
+ import { DeletableEntity } from "../../../Core/DeletableEntity";
3
4
  import { EventHandler } from "../../../Core/EventHandler";
4
5
  import { IDeletable } from "../../../Core/IDeletable";
5
6
  import { NumberRange } from "../../../Core/NumberRange";
@@ -123,7 +124,7 @@ export interface IAxisParams {
123
124
  * Set axis on the {@link SciChartSurface.xAxes} or {@link SciChartSurface.yAxes} collections in 2D Charts.
124
125
  * Set axis on the {@link SciChart3DSurface.xAxis}, {@link SciChart3DSurface.yAxis} or {@link SciChart3DSurface.zAxis} collections in 3D Charts.
125
126
  */
126
- export declare abstract class AxisCore implements IAxisParams, IDeletable {
127
+ export declare abstract class AxisCore extends DeletableEntity implements IAxisParams, IDeletable {
127
128
  /**
128
129
  * The Default {@link AxisCore.id}
129
130
  * @description
@@ -164,7 +165,7 @@ export declare abstract class AxisCore implements IAxisParams, IDeletable {
164
165
  /**
165
166
  * Internal backing property for {@link AxisCore.growBy}. To fire {@link AxisCore.invalidateParentCallback}, set the public property
166
167
  */
167
- protected growByProperty: NumberRange;
168
+ protected growByProperty: NumberRange | undefined;
168
169
  /**
169
170
  * Internal backing property for {@link AxisCore.visibleRange}. To fire {@link AxisCore.invalidateParentCallback}, set the public property
170
171
  */
@@ -397,7 +398,7 @@ export declare abstract class AxisCore implements IAxisParams, IDeletable {
397
398
  * axis.growBy = new NumberRange(0.1, 0.2);
398
399
  * ```
399
400
  */
400
- set growBy(growBy: NumberRange);
401
+ set growBy(growBy: NumberRange | undefined);
401
402
  /**
402
403
  * The VisibleRange is the range of the Axis (min to max).
403
404
  * @description
@@ -773,6 +774,8 @@ export declare abstract class AxisCore implements IAxisParams, IDeletable {
773
774
  * @param range The range
774
775
  */
775
776
  isValidRange(range: NumberRange): boolean;
777
+ get isVerticalChart(): boolean;
778
+ get isHorizontalAxis(): boolean;
776
779
  /**
777
780
  * Creates new {@link CoordinateCalculatorBase} instance. Valid for this render-pass only, the coordinate-calculator
778
781
  * allows you to transform between pixel and data coordinates (and vice versa)
@@ -1,4 +1,19 @@
1
1
  "use strict";
2
+ var __extends = (this && this.__extends) || (function () {
3
+ var extendStatics = function (d, b) {
4
+ extendStatics = Object.setPrototypeOf ||
5
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
+ return extendStatics(d, b);
8
+ };
9
+ return function (d, b) {
10
+ if (typeof b !== "function" && b !== null)
11
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
+ extendStatics(d, b);
13
+ function __() { this.constructor = d; }
14
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
+ };
16
+ })();
2
17
  var __assign = (this && this.__assign) || function () {
3
18
  __assign = Object.assign || function(t) {
4
19
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -12,6 +27,7 @@ var __assign = (this && this.__assign) || function () {
12
27
  };
13
28
  Object.defineProperty(exports, "__esModule", { value: true });
14
29
  exports.AxisCore = void 0;
30
+ var DeletableEntity_1 = require("../../../Core/DeletableEntity");
15
31
  var Deleter_1 = require("../../../Core/Deleter");
16
32
  var EventHandler_1 = require("../../../Core/EventHandler");
17
33
  var Guard_1 = require("../../../Core/Guard");
@@ -36,78 +52,81 @@ var VisibleRangeChangedArgs_1 = require("./VisibleRangeChangedArgs");
36
52
  * Set axis on the {@link SciChartSurface.xAxes} or {@link SciChartSurface.yAxes} collections in 2D Charts.
37
53
  * Set axis on the {@link SciChart3DSurface.xAxis}, {@link SciChart3DSurface.yAxis} or {@link SciChart3DSurface.zAxis} collections in 3D Charts.
38
54
  */
39
- var AxisCore = /** @class */ (function () {
55
+ var AxisCore = /** @class */ (function (_super) {
56
+ __extends(AxisCore, _super);
40
57
  /**
41
58
  * Creates an instance of an {@link AxisCore}
42
59
  * @param options Optional parameters of type {@link IAxisCoreOptions} used to define properties at instantiation time
43
60
  */
44
61
  function AxisCore(options) {
62
+ var _this = this;
45
63
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z;
64
+ _this = _super.call(this) || this;
46
65
  /**
47
66
  * An {@link EventHandler} which fires a callback when the {@link AxisCore.visibleRange} property changes.
48
67
  * @desc
49
68
  */
50
- this.visibleRangeChanged = new EventHandler_1.EventHandler();
69
+ _this.visibleRangeChanged = new EventHandler_1.EventHandler();
51
70
  /** A flag to indicate if measure has been called this frame. Properties updated after measure must trigger a redraw */
52
- this.isMeasured = false;
71
+ _this.isMeasured = false;
53
72
  /** If the diff of the visibleRange is 0, this growby fraction will be applied */
54
- this.ZeroRangeGrowBy = 0.01;
73
+ _this.ZeroRangeGrowBy = 0.01;
55
74
  /**
56
75
  * Internal backing property for {@link AxisCore.id}. To fire {@link AxisCore.invalidateParentCallback}, set the public property
57
76
  */
58
- this.idProperty = AxisCore.DEFAULT_AXIS_ID;
77
+ _this.idProperty = AxisCore.DEFAULT_AXIS_ID;
59
78
  /**
60
79
  * Internal backing property for {@link AxisCore.isAxis}. To fire {@link AxisCore.invalidateParentCallback}, set the public property
61
80
  */
62
- this.isXAxisProperty = true;
81
+ _this.isXAxisProperty = true;
63
82
  /**
64
83
  * Internal backing property for {@link AxisCore.minorsPerMajor}. To fire {@link AxisCore.invalidateParentCallback}, set the public property
65
84
  */
66
- this.minorsPerMajorProperty = 5;
85
+ _this.minorsPerMajorProperty = 5;
67
86
  /**
68
87
  * Internal backing property for {@link AxisCore.drawMajorGridLines}. To fire {@link AxisCore.invalidateParentCallback}, set the public property
69
88
  */
70
- this.drawMajorGridLinesProperty = true;
89
+ _this.drawMajorGridLinesProperty = true;
71
90
  /**
72
91
  * Internal backing property for {@link AxisCore.drawMinorGridLines}. To fire {@link AxisCore.invalidateParentCallback}, set the public property
73
92
  */
74
- this.drawMinorGridLinesProperty = true;
93
+ _this.drawMinorGridLinesProperty = true;
75
94
  /**
76
95
  * Internal backing property for {@link AxisCore.drawMajorTickLines}. To fire {@link AxisCore.invalidateParentCallback}, set the public property
77
96
  */
78
- this.drawMajorTickLinesProperty = true;
97
+ _this.drawMajorTickLinesProperty = true;
79
98
  /**
80
99
  * Internal backing property for {@link AxisCore.drawMinorTickLines}. To fire {@link AxisCore.invalidateParentCallback}, set the public property
81
100
  */
82
- this.drawMinorTickLinesProperty = true;
101
+ _this.drawMinorTickLinesProperty = true;
83
102
  /**
84
103
  * Internal backing property for {@link AxisCore.drawMajorBands}. To fire {@link AxisCore.invalidateParentCallback}, set the public property
85
104
  */
86
- this.drawMajorBandsProperty = true;
105
+ _this.drawMajorBandsProperty = true;
87
106
  /**
88
107
  * Internal backing property for {@link AxisCore.drawLabels}. To fire {@link AxisCore.invalidateParentCallback}, set the public property
89
108
  */
90
- this.drawLabelsProperty = true;
109
+ _this.drawLabelsProperty = true;
91
110
  /**
92
111
  * Internal backing property for {@link AxisCore.flippedCoordinates}. To fire {@link AxisCore.invalidateParentCallback}, set the public property
93
112
  */
94
- this.flippedCoordinatesProperty = false;
113
+ _this.flippedCoordinatesProperty = false;
95
114
  /**
96
115
  * Internal backing property for {@link AxisCore.tickTextBrush}. To fire {@link AxisCore.invalidateParentCallback}, set the public property
97
116
  */
98
- this.tickTextBrushProperty = SciChartSurfaceBase_1.SciChartSurfaceBase.DEFAULT_THEME.tickTextBrush;
117
+ _this.tickTextBrushProperty = SciChartSurfaceBase_1.SciChartSurfaceBase.DEFAULT_THEME.tickTextBrush;
99
118
  /**
100
119
  * Internal backing property for {@link AxisCore.axisBandsFill}. To fire {@link AxisCore.invalidateParentCallback}, set the public property
101
120
  */
102
- this.axisBandsFillProperty = SciChartSurfaceBase_1.SciChartSurfaceBase.DEFAULT_THEME.axisBandsFill;
121
+ _this.axisBandsFillProperty = SciChartSurfaceBase_1.SciChartSurfaceBase.DEFAULT_THEME.axisBandsFill;
103
122
  /**
104
123
  * Internal backing property for {@link AxisCore.autoRange}. To fire {@link AxisCore.invalidateParentCallback}, set the public property
105
124
  */
106
- this.autoRangeProperty = AutoRange_1.EAutoRange.Once;
125
+ _this.autoRangeProperty = AutoRange_1.EAutoRange.Once;
107
126
  /**
108
127
  * Internal backing property for {@link AxisCore.majorTickLineStyle}. To fire {@link AxisCore.invalidateParentCallback}, set the public property
109
128
  */
110
- this.majorTickLineStyleProperty = {
129
+ _this.majorTickLineStyleProperty = {
111
130
  tickSize: 5,
112
131
  strokeThickness: 1,
113
132
  color: SciChartSurfaceBase_1.SciChartSurfaceBase.DEFAULT_THEME.majorGridLineBrush
@@ -115,7 +134,7 @@ var AxisCore = /** @class */ (function () {
115
134
  /**
116
135
  * Internal backing property for {@link AxisCore.minorTickLineStyle}. To fire {@link AxisCore.invalidateParentCallback}, set the public property
117
136
  */
118
- this.minorTickLineStyleProperty = {
137
+ _this.minorTickLineStyleProperty = {
119
138
  tickSize: 3,
120
139
  strokeThickness: 1,
121
140
  color: SciChartSurfaceBase_1.SciChartSurfaceBase.DEFAULT_THEME.minorGridLineBrush
@@ -123,7 +142,7 @@ var AxisCore = /** @class */ (function () {
123
142
  /**
124
143
  * Internal backing property for {@link AxisCore.majorGridLineStyle}. To fire {@link AxisCore.invalidateParentCallback}, set the public property
125
144
  */
126
- this.majorGridLineStyleProperty = {
145
+ _this.majorGridLineStyleProperty = {
127
146
  strokeThickness: 1,
128
147
  color: SciChartSurfaceBase_1.SciChartSurfaceBase.DEFAULT_THEME.majorGridLineBrush,
129
148
  strokeDashArray: undefined
@@ -131,7 +150,7 @@ var AxisCore = /** @class */ (function () {
131
150
  /**
132
151
  * Internal backing property for {@link AxisCore.minorGridLineStyle}. To fire {@link AxisCore.invalidateParentCallback}, set the public property
133
152
  */
134
- this.minorGridLineStyleProperty = {
153
+ _this.minorGridLineStyleProperty = {
135
154
  strokeThickness: 1,
136
155
  color: SciChartSurfaceBase_1.SciChartSurfaceBase.DEFAULT_THEME.minorGridLineBrush,
137
156
  strokeDashArray: undefined
@@ -139,7 +158,7 @@ var AxisCore = /** @class */ (function () {
139
158
  /**
140
159
  * Internal backing property for {@link AxisCore.axisTitleStyle}. To fire {@link AxisCore.invalidateParentCallback}, set the public property
141
160
  */
142
- this.axisTitleStyleProperty = {
161
+ _this.axisTitleStyleProperty = {
143
162
  fontSize: 24,
144
163
  fontFamily: "Arial",
145
164
  color: SciChartSurfaceBase_1.SciChartSurfaceBase.DEFAULT_THEME.axisTitleColor,
@@ -151,43 +170,44 @@ var AxisCore = /** @class */ (function () {
151
170
  /**
152
171
  * Internal backing property for {@link AxisCore.isVisible}. To fire {@link AxisCore.invalidateParentCallback}, set the public property
153
172
  */
154
- this.isVisibleProperty = true;
173
+ _this.isVisibleProperty = true;
155
174
  /**
156
175
  * Internal backing property for {@link AxisCore.autoTicks}. To fire {@link AxisCore.invalidateParentCallback}, set the public property
157
176
  */
158
- this.autoTicksProperty = true;
177
+ _this.autoTicksProperty = true;
159
178
  /**
160
179
  * Internal backing property for {@link AxisCore.maxAutoTicks}. To fire {@link AxisCore.invalidateParentCallback}, set the public property
161
180
  */
162
- this.maxAutoTicksProperty = 10;
163
- this.defaultVisibleRange = new NumberRange_1.NumberRange(0, 10);
164
- this.allowFastMathProperty = false;
165
- this.visibleRange = (options === null || options === void 0 ? void 0 : options.visibleRange) || this.defaultVisibleRange;
166
- this.id = (_a = options === null || options === void 0 ? void 0 : options.id) !== null && _a !== void 0 ? _a : this.id;
167
- this.growBy = (_b = options === null || options === void 0 ? void 0 : options.growBy) !== null && _b !== void 0 ? _b : this.growBy;
168
- this.autoRange = (_c = options === null || options === void 0 ? void 0 : options.autoRange) !== null && _c !== void 0 ? _c : this.autoRange;
169
- this.isVisible = (_d = options === null || options === void 0 ? void 0 : options.isVisible) !== null && _d !== void 0 ? _d : this.isVisible;
170
- this.axisTitle = (_e = options === null || options === void 0 ? void 0 : options.axisTitle) !== null && _e !== void 0 ? _e : this.axisTitle;
171
- this.axisTitleStyle = (_f = options === null || options === void 0 ? void 0 : options.axisTitleStyle) !== null && _f !== void 0 ? _f : this.axisTitleStyle;
172
- this.allowFastMath = (_g = options === null || options === void 0 ? void 0 : options.allowFastMath) !== null && _g !== void 0 ? _g : this.allowFastMathProperty;
173
- this.autoTicksProperty = (_h = options === null || options === void 0 ? void 0 : options.autoTicks) !== null && _h !== void 0 ? _h : this.autoTicksProperty;
174
- this.maxAutoTicksProperty = (_j = options === null || options === void 0 ? void 0 : options.maxAutoTicks) !== null && _j !== void 0 ? _j : this.maxAutoTicksProperty;
175
- this.minorsPerMajorProperty = (_k = options === null || options === void 0 ? void 0 : options.minorsPerMajor) !== null && _k !== void 0 ? _k : this.minorsPerMajorProperty;
176
- this.majorDeltaProperty = (_l = options === null || options === void 0 ? void 0 : options.majorDelta) !== null && _l !== void 0 ? _l : this.majorDeltaProperty;
177
- this.minorDeltaProperty = (_m = options === null || options === void 0 ? void 0 : options.minorDelta) !== null && _m !== void 0 ? _m : this.minorDeltaProperty;
178
- this.drawLabelsProperty = (_o = options === null || options === void 0 ? void 0 : options.drawLabels) !== null && _o !== void 0 ? _o : this.drawLabelsProperty;
179
- this.drawMajorTickLinesProperty = (_p = options === null || options === void 0 ? void 0 : options.drawMajorTickLines) !== null && _p !== void 0 ? _p : this.drawMajorTickLinesProperty;
180
- this.drawMinorTickLinesProperty = (_q = options === null || options === void 0 ? void 0 : options.drawMinorTickLines) !== null && _q !== void 0 ? _q : this.drawMinorTickLinesProperty;
181
- this.drawMinorGridLinesProperty = (_r = options === null || options === void 0 ? void 0 : options.drawMinorGridLines) !== null && _r !== void 0 ? _r : this.drawMinorGridLinesProperty;
182
- this.drawMajorGridLinesProperty = (_s = options === null || options === void 0 ? void 0 : options.drawMajorGridLines) !== null && _s !== void 0 ? _s : this.drawMajorGridLinesProperty;
183
- this.majorGridLineStyleProperty = (_t = options === null || options === void 0 ? void 0 : options.majorGridLineStyle) !== null && _t !== void 0 ? _t : this.majorGridLineStyleProperty;
184
- this.minorGridLineStyleProperty = (_u = options === null || options === void 0 ? void 0 : options.minorGridLineStyle) !== null && _u !== void 0 ? _u : this.minorGridLineStyleProperty;
185
- this.majorTickLineStyleProperty = (_v = options === null || options === void 0 ? void 0 : options.majorTickLineStyle) !== null && _v !== void 0 ? _v : this.majorTickLineStyleProperty;
186
- this.minorTickLineStyleProperty = (_w = options === null || options === void 0 ? void 0 : options.minorTickLineStyle) !== null && _w !== void 0 ? _w : this.minorTickLineStyleProperty;
187
- this.drawMajorBandsProperty = (_x = options === null || options === void 0 ? void 0 : options.drawMajorBands) !== null && _x !== void 0 ? _x : this.drawMajorBandsProperty;
188
- this.axisBandsFillProperty = (_y = options === null || options === void 0 ? void 0 : options.axisBandsFill) !== null && _y !== void 0 ? _y : this.axisBandsFillProperty;
189
- this.flippedCoordinatesProperty = (_z = options === null || options === void 0 ? void 0 : options.flippedCoordinates) !== null && _z !== void 0 ? _z : this.flippedCoordinatesProperty;
190
- this.getCurrentCoordinateCalculator = this.getCurrentCoordinateCalculator.bind(this);
181
+ _this.maxAutoTicksProperty = 10;
182
+ _this.defaultVisibleRange = new NumberRange_1.NumberRange(0, 10);
183
+ _this.allowFastMathProperty = false;
184
+ _this.visibleRange = (options === null || options === void 0 ? void 0 : options.visibleRange) || _this.defaultVisibleRange;
185
+ _this.id = (_a = options === null || options === void 0 ? void 0 : options.id) !== null && _a !== void 0 ? _a : _this.id;
186
+ _this.growBy = (_b = options === null || options === void 0 ? void 0 : options.growBy) !== null && _b !== void 0 ? _b : _this.growBy;
187
+ _this.autoRange = (_c = options === null || options === void 0 ? void 0 : options.autoRange) !== null && _c !== void 0 ? _c : _this.autoRange;
188
+ _this.isVisible = (_d = options === null || options === void 0 ? void 0 : options.isVisible) !== null && _d !== void 0 ? _d : _this.isVisible;
189
+ _this.axisTitle = (_e = options === null || options === void 0 ? void 0 : options.axisTitle) !== null && _e !== void 0 ? _e : _this.axisTitle;
190
+ _this.axisTitleStyle = (_f = options === null || options === void 0 ? void 0 : options.axisTitleStyle) !== null && _f !== void 0 ? _f : _this.axisTitleStyle;
191
+ _this.allowFastMath = (_g = options === null || options === void 0 ? void 0 : options.allowFastMath) !== null && _g !== void 0 ? _g : _this.allowFastMathProperty;
192
+ _this.autoTicksProperty = (_h = options === null || options === void 0 ? void 0 : options.autoTicks) !== null && _h !== void 0 ? _h : _this.autoTicksProperty;
193
+ _this.maxAutoTicksProperty = (_j = options === null || options === void 0 ? void 0 : options.maxAutoTicks) !== null && _j !== void 0 ? _j : _this.maxAutoTicksProperty;
194
+ _this.minorsPerMajorProperty = (_k = options === null || options === void 0 ? void 0 : options.minorsPerMajor) !== null && _k !== void 0 ? _k : _this.minorsPerMajorProperty;
195
+ _this.majorDeltaProperty = (_l = options === null || options === void 0 ? void 0 : options.majorDelta) !== null && _l !== void 0 ? _l : _this.majorDeltaProperty;
196
+ _this.minorDeltaProperty = (_m = options === null || options === void 0 ? void 0 : options.minorDelta) !== null && _m !== void 0 ? _m : _this.minorDeltaProperty;
197
+ _this.drawLabelsProperty = (_o = options === null || options === void 0 ? void 0 : options.drawLabels) !== null && _o !== void 0 ? _o : _this.drawLabelsProperty;
198
+ _this.drawMajorTickLinesProperty = (_p = options === null || options === void 0 ? void 0 : options.drawMajorTickLines) !== null && _p !== void 0 ? _p : _this.drawMajorTickLinesProperty;
199
+ _this.drawMinorTickLinesProperty = (_q = options === null || options === void 0 ? void 0 : options.drawMinorTickLines) !== null && _q !== void 0 ? _q : _this.drawMinorTickLinesProperty;
200
+ _this.drawMinorGridLinesProperty = (_r = options === null || options === void 0 ? void 0 : options.drawMinorGridLines) !== null && _r !== void 0 ? _r : _this.drawMinorGridLinesProperty;
201
+ _this.drawMajorGridLinesProperty = (_s = options === null || options === void 0 ? void 0 : options.drawMajorGridLines) !== null && _s !== void 0 ? _s : _this.drawMajorGridLinesProperty;
202
+ _this.majorGridLineStyleProperty = (_t = options === null || options === void 0 ? void 0 : options.majorGridLineStyle) !== null && _t !== void 0 ? _t : _this.majorGridLineStyleProperty;
203
+ _this.minorGridLineStyleProperty = (_u = options === null || options === void 0 ? void 0 : options.minorGridLineStyle) !== null && _u !== void 0 ? _u : _this.minorGridLineStyleProperty;
204
+ _this.majorTickLineStyleProperty = (_v = options === null || options === void 0 ? void 0 : options.majorTickLineStyle) !== null && _v !== void 0 ? _v : _this.majorTickLineStyleProperty;
205
+ _this.minorTickLineStyleProperty = (_w = options === null || options === void 0 ? void 0 : options.minorTickLineStyle) !== null && _w !== void 0 ? _w : _this.minorTickLineStyleProperty;
206
+ _this.drawMajorBandsProperty = (_x = options === null || options === void 0 ? void 0 : options.drawMajorBands) !== null && _x !== void 0 ? _x : _this.drawMajorBandsProperty;
207
+ _this.axisBandsFillProperty = (_y = options === null || options === void 0 ? void 0 : options.axisBandsFill) !== null && _y !== void 0 ? _y : _this.axisBandsFillProperty;
208
+ _this.flippedCoordinatesProperty = (_z = options === null || options === void 0 ? void 0 : options.flippedCoordinates) !== null && _z !== void 0 ? _z : _this.flippedCoordinatesProperty;
209
+ _this.getCurrentCoordinateCalculator = _this.getCurrentCoordinateCalculator.bind(_this);
210
+ return _this;
191
211
  }
192
212
  Object.defineProperty(AxisCore.prototype, "isCategoryAxis", {
193
213
  /**
@@ -864,6 +884,8 @@ var AxisCore = /** @class */ (function () {
864
884
  * @param tickProvider
865
885
  */
866
886
  set: function (tickProvider) {
887
+ var _a;
888
+ (_a = this.tickProviderProperty) === null || _a === void 0 ? void 0 : _a.detachedFromAxis();
867
889
  this.tickProviderProperty = tickProvider;
868
890
  this.notifyPropertyChanged(constants_1.PROPERTY.TICK_PROVIDER);
869
891
  },
@@ -881,6 +903,8 @@ var AxisCore = /** @class */ (function () {
881
903
  * Gets or sets a {@link LabelProvider} - a class which is responsible for formatting axis labels and cursor labels from numeric values
882
904
  */
883
905
  set: function (labelProvider) {
906
+ var _a;
907
+ (_a = this.labelProviderProperty) === null || _a === void 0 ? void 0 : _a.detachedFromAxis();
884
908
  this.labelProviderProperty = labelProvider;
885
909
  this.notifyPropertyChanged(constants_1.PROPERTY.LABEL_PROVIDER);
886
910
  },
@@ -900,6 +924,8 @@ var AxisCore = /** @class */ (function () {
900
924
  * which are used for gridline spacing
901
925
  */
902
926
  set: function (deltaCalculator) {
927
+ var _a;
928
+ (_a = this.deltaCalculator) === null || _a === void 0 ? void 0 : _a.detachedFromAxis();
903
929
  this.deltaCalculatorProperty = deltaCalculator;
904
930
  this.notifyPropertyChanged(constants_1.PROPERTY.DELTA_CALCULATOR);
905
931
  },
@@ -917,6 +943,8 @@ var AxisCore = /** @class */ (function () {
917
943
  * Gets or sets a {@link TickCoordinatesProvider} - a class which is responsible for converting tick values to pixel coordinates
918
944
  */
919
945
  set: function (tickCoordinatesProvider) {
946
+ var _a;
947
+ (_a = this.tickCoordinatesProviderProperty) === null || _a === void 0 ? void 0 : _a.detachedFromAxis();
920
948
  this.tickCoordinatesProviderProperty = tickCoordinatesProvider;
921
949
  this.notifyPropertyChanged(constants_1.PROPERTY.TICK_COORDINATES_CALCULATOR);
922
950
  },
@@ -984,6 +1012,10 @@ var AxisCore = /** @class */ (function () {
984
1012
  * @inheritDoc
985
1013
  */
986
1014
  AxisCore.prototype.delete = function () {
1015
+ this.deltaCalculator = undefined;
1016
+ this.tickProvider = undefined;
1017
+ this.tickCoordinatesProvider = undefined;
1018
+ this.labelProviderProperty = (0, Deleter_1.deleteSafe)(this.labelProvider);
987
1019
  this.coordCalcCache = (0, Deleter_1.deleteSafe)(this.coordCalcCache);
988
1020
  };
989
1021
  /**
@@ -994,6 +1026,20 @@ var AxisCore = /** @class */ (function () {
994
1026
  var isInvalid = !range || !range.isDefined() || range.min > range.max;
995
1027
  return !isInvalid;
996
1028
  };
1029
+ Object.defineProperty(AxisCore.prototype, "isVerticalChart", {
1030
+ get: function () {
1031
+ return false;
1032
+ },
1033
+ enumerable: false,
1034
+ configurable: true
1035
+ });
1036
+ Object.defineProperty(AxisCore.prototype, "isHorizontalAxis", {
1037
+ get: function () {
1038
+ return this.isXAxis;
1039
+ },
1040
+ enumerable: false,
1041
+ configurable: true
1042
+ });
997
1043
  /**
998
1044
  * SET INTERNALLY. Sets whether this axis is an XAxis or not
999
1045
  * @remarks
@@ -1054,5 +1100,5 @@ var AxisCore = /** @class */ (function () {
1054
1100
  */
1055
1101
  AxisCore.DEFAULT_AXIS_ID = "DefaultAxisId";
1056
1102
  return AxisCore;
1057
- }());
1103
+ }(DeletableEntity_1.DeletableEntity));
1058
1104
  exports.AxisCore = AxisCore;
@@ -1,3 +1,4 @@
1
+ import { DeletableEntity } from "../../../Core/DeletableEntity";
1
2
  import { IDeletable } from "../../../Core/IDeletable";
2
3
  import { Rect } from "../../../Core/Rect";
3
4
  import { EAxisAlignment } from "../../../types/AxisAlignment";
@@ -11,7 +12,7 @@ import { LabelProviderBase2D } from "./LabelProvider/LabelProviderBase2D";
11
12
  /**
12
13
  * Draws an axis using our WebGL Rendering engine
13
14
  */
14
- export declare class AxisRenderer implements IDeletable {
15
+ export declare class AxisRenderer extends DeletableEntity implements IDeletable {
15
16
  viewRect: Rect;
16
17
  drawDebug: boolean;
17
18
  textureManager: TextureManager;
@@ -1,4 +1,19 @@
1
1
  "use strict";
2
+ var __extends = (this && this.__extends) || (function () {
3
+ var extendStatics = function (d, b) {
4
+ extendStatics = Object.setPrototypeOf ||
5
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
+ return extendStatics(d, b);
8
+ };
9
+ return function (d, b) {
10
+ if (typeof b !== "function" && b !== null)
11
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
+ extendStatics(d, b);
13
+ function __() { this.constructor = d; }
14
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
+ };
16
+ })();
2
17
  var __assign = (this && this.__assign) || function () {
3
18
  __assign = Object.assign || function(t) {
4
19
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -13,11 +28,13 @@ var __assign = (this && this.__assign) || function () {
13
28
  Object.defineProperty(exports, "__esModule", { value: true });
14
29
  exports.layoutLabelsHelper = exports.AxisRenderer = void 0;
15
30
  var app_1 = require("../../../constants/app");
31
+ var DeletableEntity_1 = require("../../../Core/DeletableEntity");
16
32
  var Deleter_1 = require("../../../Core/Deleter");
17
33
  var Rect_1 = require("../../../Core/Rect");
18
34
  var Thickness_1 = require("../../../Core/Thickness");
19
35
  var AxisAlignment_1 = require("../../../types/AxisAlignment");
20
36
  var LabelAlignment_1 = require("../../../types/LabelAlignment");
37
+ var logger_1 = require("../../../utils/logger");
21
38
  var parseColor_1 = require("../../../utils/parseColor");
22
39
  var WebGlRenderContext2D_1 = require("../../Drawing/WebGlRenderContext2D");
23
40
  var createNativeRect_1 = require("../Helpers/createNativeRect");
@@ -28,33 +45,38 @@ var TextureManager_1 = require("../TextureManager/TextureManager");
28
45
  /**
29
46
  * Draws an axis using our WebGL Rendering engine
30
47
  */
31
- var AxisRenderer = /** @class */ (function () {
48
+ var AxisRenderer = /** @class */ (function (_super) {
49
+ __extends(AxisRenderer, _super);
32
50
  /**
33
51
  * Creates an instance of a {@link AxisRenderer}
34
52
  * @param webAssemblyContext The {@link TSciChart | SciChart 2D WebAssembly Context} containing native methods and
35
53
  * access to our WebGL2 Engine and WebAssembly numerical methods
36
54
  */
37
55
  function AxisRenderer(webAssemblyContext) {
38
- this.viewRect = Rect_1.Rect.createZero();
39
- this.drawDebug = false;
40
- this.desiredLabelsSize = 0;
41
- this.desiredTicksSize = 0;
42
- this.desiredHeightProperty = 0;
43
- this.desiredWidthProperty = 0;
44
- this.axisThicknessProperty = 0;
45
- this.keepLabelsWithinAxisProperty = true;
46
- this.hideOverlappingLabelsProperty = true;
47
- this.webAssemblyContext = webAssemblyContext;
48
- this.textureManager = new TextureManager_1.TextureManager(webAssemblyContext);
56
+ var _this = _super.call(this) || this;
57
+ _this.viewRect = Rect_1.Rect.createZero();
58
+ _this.drawDebug = false;
59
+ _this.desiredLabelsSize = 0;
60
+ _this.desiredTicksSize = 0;
61
+ _this.desiredHeightProperty = 0;
62
+ _this.desiredWidthProperty = 0;
63
+ _this.axisThicknessProperty = 0;
64
+ _this.keepLabelsWithinAxisProperty = true;
65
+ _this.hideOverlappingLabelsProperty = true;
66
+ _this.webAssemblyContext = webAssemblyContext;
67
+ _this.textureManager = new TextureManager_1.TextureManager(webAssemblyContext);
49
68
  if (!app_1.IS_TEST_ENV) {
50
- this.measureTextCanvas = document.createElement("canvas");
51
- this.measureTextCanvas.width = 1;
52
- this.measureTextCanvas.height = 1;
69
+ _this.measureTextCanvas = document.createElement("canvas");
70
+ _this.measureTextCanvas.width = 1;
71
+ _this.measureTextCanvas.height = 1;
53
72
  }
73
+ return _this;
54
74
  }
55
75
  /** @inheritDoc */
56
76
  AxisRenderer.prototype.delete = function () {
77
+ this.webAssemblyContext = undefined;
57
78
  this.measureTextCanvas = undefined;
79
+ this.parentAxis = undefined;
58
80
  this.textureManager = (0, Deleter_1.deleteSafe)(this.textureManager);
59
81
  };
60
82
  /**
@@ -290,6 +312,7 @@ var AxisRenderer = /** @class */ (function () {
290
312
  }
291
313
  }
292
314
  catch (err) {
315
+ logger_1.Logger.debug(err);
293
316
  // webgl context probably lost. Clear the label cache
294
317
  labelProvider.delete();
295
318
  }
@@ -337,6 +360,7 @@ var AxisRenderer = /** @class */ (function () {
337
360
  }
338
361
  }
339
362
  catch (err) {
363
+ logger_1.Logger.debug(err);
340
364
  // webgl context probably lost. Clear the label cache
341
365
  labelProvider.delete();
342
366
  }
@@ -525,7 +549,7 @@ var AxisRenderer = /** @class */ (function () {
525
549
  brush.delete();
526
550
  };
527
551
  return AxisRenderer;
528
- }());
552
+ }(DeletableEntity_1.DeletableEntity));
529
553
  exports.AxisRenderer = AxisRenderer;
530
554
  /** @ignore */
531
555
  var layoutLabelsHelper = function (keepLabelsWithinAxis, hideOverlappingLabels, size, tickCoords, labelSizes, isFlippedCoordinates) {
@@ -25,4 +25,5 @@ export declare class AxisTitleRenderer extends TitleRendererBase<TAxisTitleStyle
25
25
  layout(rect: Rect): void;
26
26
  protected getTitleTexture(): import("../TextureManager/TextureManager").TTextureObject;
27
27
  draw(renderContext: WebGlRenderContext2D): void;
28
+ delete(): void;
28
29
  }
@@ -107,6 +107,10 @@ var AxisTitleRenderer = /** @class */ (function (_super) {
107
107
  AxisTitleRenderer.prototype.draw = function (renderContext) {
108
108
  return this.drawInternal(renderContext, this.useNativeText, this.titlePosition);
109
109
  };
110
+ AxisTitleRenderer.prototype.delete = function () {
111
+ this.parentSurface = undefined;
112
+ _super.prototype.delete.call(this);
113
+ };
110
114
  return AxisTitleRenderer;
111
115
  }(TitleRenderer_1.TitleRendererBase));
112
116
  exports.AxisTitleRenderer = AxisTitleRenderer;