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
@@ -0,0 +1,427 @@
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
+ })();
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.adjustTooltipPosition3D = exports.TooltipModifier3D = void 0;
19
+ var CursorModifier_1 = require("../../Charting/ChartModifiers/CursorModifier");
20
+ var AnnotationBase_1 = require("../../Charting/Visuals/Annotations/AnnotationBase");
21
+ var Deleter_1 = require("../../Core/Deleter");
22
+ var ChartModifierType_1 = require("../../types/ChartModifierType");
23
+ var translate_1 = require("../../utils/translate");
24
+ var BaseDataSeries3D_1 = require("../Model/DataSeries/BaseDataSeries3D");
25
+ var TooltipSvgAnnotation3D_1 = require("../Visuals/Annotations/TooltipSvgAnnotation3D");
26
+ var CrosshairLinesSceneEntity_1 = require("../Visuals/Primitives/CrosshairLinesSceneEntity");
27
+ var ChartModifierBase3D_1 = require("./ChartModifierBase3D");
28
+ var TooltipModifier3D = /** @class */ (function (_super) {
29
+ __extends(TooltipModifier3D, _super);
30
+ function TooltipModifier3D(options) {
31
+ var _this = this;
32
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
33
+ _this = _super.call(this, options) || this;
34
+ /**
35
+ * @inheritDoc
36
+ */
37
+ _this.type = ChartModifierType_1.EChart3DModifierType.Tooltip;
38
+ /**
39
+ * Gets or sets whether we should display the tooltip. Default is true
40
+ */
41
+ _this.showTooltip = true;
42
+ _this.includedSeriesMap = new Map();
43
+ _this.tooltipSvgTemplateProperty = defaultTooltipTemplate3D;
44
+ _this.tooltipContainerBackgroundProperty = "#228B22";
45
+ _this.tooltipTextStrokeProperty = "#fff";
46
+ _this.tooltipDataTemplateProperty = defaultTooltipDataTemplate3D;
47
+ _this.crosshairStrokeProperty = (_a = options === null || options === void 0 ? void 0 : options.crosshairStroke) !== null && _a !== void 0 ? _a : "#FF6600";
48
+ _this.crosshairStrokeThicknessProperty = (_b = options === null || options === void 0 ? void 0 : options.crosshairStrokeThickness) !== null && _b !== void 0 ? _b : 2;
49
+ _this.isCrosshairVisibleProperty = (_c = options === null || options === void 0 ? void 0 : options.isCrosshairVisible) !== null && _c !== void 0 ? _c : true;
50
+ if (options === null || options === void 0 ? void 0 : options.tooltipSvgTemplate) {
51
+ if (typeof options.tooltipSvgTemplate === "string") {
52
+ _this.typeMap.set("tooltipSvgTemplate", options.tooltipSvgTemplate);
53
+ // @ts-ignore
54
+ options.tooltipSvgTemplate = getFunction(EBaseType.OptionFunction, options.tooltipSvgTemplate);
55
+ }
56
+ }
57
+ _this.tooltipSvgTemplateProperty =
58
+ (_d = options === null || options === void 0 ? void 0 : options.tooltipSvgTemplate) !== null && _d !== void 0 ? _d : _this.tooltipSvgTemplateProperty;
59
+ _this.tooltipContainerBackgroundProperty =
60
+ (_e = options === null || options === void 0 ? void 0 : options.tooltipContainerBackground) !== null && _e !== void 0 ? _e : _this.tooltipContainerBackgroundProperty;
61
+ _this.tooltipTextStrokeProperty = (_f = options === null || options === void 0 ? void 0 : options.tooltipTextStroke) !== null && _f !== void 0 ? _f : _this.tooltipTextStrokeProperty;
62
+ _this.showTooltip = (_g = options === null || options === void 0 ? void 0 : options.showTooltip) !== null && _g !== void 0 ? _g : _this.showTooltip;
63
+ _this.placementDivIdProperty = (_h = options === null || options === void 0 ? void 0 : options.placementDivId) !== null && _h !== void 0 ? _h : _this.placementDivIdProperty;
64
+ if (options === null || options === void 0 ? void 0 : options.tooltipLegendTemplate) {
65
+ if (typeof options.tooltipLegendTemplate === "string") {
66
+ _this.typeMap.set("tooltipLegendTemplate", options.tooltipLegendTemplate);
67
+ // @ts-ignore
68
+ options.tooltipLegendTemplate = getFunction(EBaseType.OptionFunction, options.tooltipLegendTemplate);
69
+ }
70
+ }
71
+ _this.tooltipLegendTemplateProperty =
72
+ (_j = options === null || options === void 0 ? void 0 : options.tooltipLegendTemplate) !== null && _j !== void 0 ? _j : _this.tooltipLegendTemplateProperty;
73
+ _this.tooltipLegendOffsetXProperty = (_k = options === null || options === void 0 ? void 0 : options.tooltipLegendOffsetX) !== null && _k !== void 0 ? _k : _this.tooltipLegendOffsetX;
74
+ _this.tooltipLegendOffsetYProperty = (_l = options === null || options === void 0 ? void 0 : options.tooltipLegendOffsetY) !== null && _l !== void 0 ? _l : _this.tooltipLegendOffsetY;
75
+ if (options === null || options === void 0 ? void 0 : options.tooltipDataTemplate) {
76
+ if (typeof options.tooltipDataTemplate === "string") {
77
+ _this.typeMap.set("tooltipDataTemplate", options.tooltipDataTemplate);
78
+ // @ts-ignore
79
+ options.tooltipDataTemplate = getFunction(EBaseType.OptionFunction, options.tooltipDataTemplate);
80
+ }
81
+ }
82
+ _this.tooltipDataTemplateProperty =
83
+ (_m = options === null || options === void 0 ? void 0 : options.tooltipDataTemplate) !== null && _m !== void 0 ? _m : _this.tooltipDataTemplateProperty;
84
+ return _this;
85
+ }
86
+ TooltipModifier3D.prototype.includeSeries = function (series, isIncluded) {
87
+ this.includedSeriesMap.set(series, isIncluded);
88
+ // this.tooltipAnnotation.seriesInfos = this.getSeriesInfos();
89
+ };
90
+ TooltipModifier3D.prototype.getIncludedSeries = function () {
91
+ var _this = this;
92
+ return this.parentSurface.renderableSeries
93
+ .asArray()
94
+ .filter(function (rs) { return rs.isVisible && _this.includedSeriesMap.get(rs) !== false; });
95
+ };
96
+ Object.defineProperty(TooltipModifier3D.prototype, "isCrosshairVisible", {
97
+ /**
98
+ * When true, a crosshair line will be displayed from the hovered point location to the far axis wall
99
+ * @param isVisible
100
+ */
101
+ get: function () {
102
+ return this.isCrosshairVisibleProperty;
103
+ },
104
+ /**
105
+ * When true, a crosshair line will be displayed from the hovered point location to the far axis wall
106
+ * @param isVisible
107
+ */
108
+ set: function (isVisible) {
109
+ var _a;
110
+ this.isCrosshairVisibleProperty = isVisible;
111
+ (_a = this.parentSurface) === null || _a === void 0 ? void 0 : _a.invalidateElement();
112
+ },
113
+ enumerable: false,
114
+ configurable: true
115
+ });
116
+ Object.defineProperty(TooltipModifier3D.prototype, "crosshairStroke", {
117
+ /**
118
+ * Gets or sets the stroke color of the crosshair as an HTML Color code
119
+ * @param stroke
120
+ */
121
+ get: function () {
122
+ return this.crosshairStrokeProperty;
123
+ },
124
+ /**
125
+ * Gets or sets the stroke color of the crosshair as an HTML Color code
126
+ * @param stroke
127
+ */
128
+ set: function (stroke) {
129
+ var _a;
130
+ this.crosshairStrokeProperty = stroke;
131
+ (_a = this.parentSurface) === null || _a === void 0 ? void 0 : _a.invalidateElement();
132
+ },
133
+ enumerable: false,
134
+ configurable: true
135
+ });
136
+ Object.defineProperty(TooltipModifier3D.prototype, "crosshairStrokeThickness", {
137
+ /**
138
+ * Gets or sets the strokethickness of the crosshair line
139
+ */
140
+ get: function () {
141
+ return this.crosshairStrokeThicknessProperty;
142
+ },
143
+ /**
144
+ * Gets or sets the strokethickness of the crosshair line
145
+ */
146
+ set: function (strokeThickness) {
147
+ var _a;
148
+ this.crosshairStrokeThicknessProperty = strokeThickness;
149
+ (_a = this.parentSurface) === null || _a === void 0 ? void 0 : _a.invalidateElement();
150
+ },
151
+ enumerable: false,
152
+ configurable: true
153
+ });
154
+ Object.defineProperty(TooltipModifier3D.prototype, "tooltipSvgTemplate", {
155
+ get: function () {
156
+ return this.tooltipSvgTemplateProperty;
157
+ },
158
+ set: function (value) {
159
+ this.tooltipSvgTemplateProperty = value;
160
+ if (this.tooltipAnnotation) {
161
+ this.tooltipAnnotation.tooltipSvgTemplate = value;
162
+ }
163
+ },
164
+ enumerable: false,
165
+ configurable: true
166
+ });
167
+ Object.defineProperty(TooltipModifier3D.prototype, "tooltipLegendTemplate", {
168
+ get: function () {
169
+ return this.tooltipLegendTemplateProperty;
170
+ },
171
+ set: function (value) {
172
+ this.tooltipLegendTemplateProperty = value;
173
+ if (this.tooltipAnnotation) {
174
+ this.tooltipAnnotation.tooltipLegendTemplate = value;
175
+ }
176
+ },
177
+ enumerable: false,
178
+ configurable: true
179
+ });
180
+ Object.defineProperty(TooltipModifier3D.prototype, "tooltipDataTemplate", {
181
+ get: function () {
182
+ return this.tooltipDataTemplateProperty;
183
+ },
184
+ set: function (value) {
185
+ this.tooltipDataTemplateProperty = value;
186
+ if (this.tooltipAnnotation) {
187
+ this.tooltipAnnotation.tooltipDataTemplate = value;
188
+ }
189
+ },
190
+ enumerable: false,
191
+ configurable: true
192
+ });
193
+ Object.defineProperty(TooltipModifier3D.prototype, "tooltipContainerBackground", {
194
+ get: function () {
195
+ return this.tooltipContainerBackgroundProperty;
196
+ },
197
+ set: function (value) {
198
+ if (this.tooltipContainerBackgroundProperty !== value) {
199
+ this.tooltipContainerBackgroundProperty = value;
200
+ if (this.tooltipAnnotation) {
201
+ this.tooltipAnnotation.containerBackground = value;
202
+ }
203
+ }
204
+ },
205
+ enumerable: false,
206
+ configurable: true
207
+ });
208
+ Object.defineProperty(TooltipModifier3D.prototype, "tooltipLegendOffsetX", {
209
+ get: function () {
210
+ return this.tooltipLegendOffsetXProperty;
211
+ },
212
+ set: function (value) {
213
+ if (this.tooltipLegendOffsetXProperty !== value) {
214
+ this.tooltipLegendOffsetXProperty = value;
215
+ if (this.tooltipAnnotation) {
216
+ this.tooltipAnnotation.tooltipLegendOffsetX = value;
217
+ }
218
+ }
219
+ },
220
+ enumerable: false,
221
+ configurable: true
222
+ });
223
+ Object.defineProperty(TooltipModifier3D.prototype, "tooltipLegendOffsetY", {
224
+ get: function () {
225
+ return this.tooltipLegendOffsetYProperty;
226
+ },
227
+ set: function (value) {
228
+ if (this.tooltipLegendOffsetYProperty !== value) {
229
+ this.tooltipLegendOffsetYProperty = value;
230
+ if (this.tooltipAnnotation) {
231
+ this.tooltipAnnotation.tooltipLegendOffsetY = value;
232
+ }
233
+ }
234
+ },
235
+ enumerable: false,
236
+ configurable: true
237
+ });
238
+ Object.defineProperty(TooltipModifier3D.prototype, "tooltipTextStroke", {
239
+ get: function () {
240
+ return this.tooltipTextStrokeProperty;
241
+ },
242
+ set: function (value) {
243
+ if (this.tooltipTextStrokeProperty !== value) {
244
+ this.tooltipTextStrokeProperty = value;
245
+ if (this.tooltipAnnotation) {
246
+ this.tooltipAnnotation.textStroke = value;
247
+ }
248
+ }
249
+ },
250
+ enumerable: false,
251
+ configurable: true
252
+ });
253
+ Object.defineProperty(TooltipModifier3D.prototype, "placementDivId", {
254
+ /**
255
+ * Gets or sets the parent div element reference or id for the Tooltip
256
+ */
257
+ get: function () {
258
+ return this.placementDivIdProperty;
259
+ },
260
+ /**
261
+ * Gets or sets the parent div element reference or id for the Tooltip
262
+ */
263
+ set: function (value) {
264
+ if (this.placementDivIdProperty !== value) {
265
+ this.placementDivIdProperty = value;
266
+ this.notifyPropertyChanged("PLACEMENT_DIV_ID");
267
+ }
268
+ },
269
+ enumerable: false,
270
+ configurable: true
271
+ });
272
+ /** @inheritDoc */
273
+ TooltipModifier3D.prototype.onAttach = function () {
274
+ _super.prototype.onAttach.call(this);
275
+ if (this.parentSurface) {
276
+ // Globally enable hit-test and selection pass (comes with a minor performance hit)
277
+ this.parentSurface.isHitTestEnabled = true;
278
+ // Create Crosshair entity and add to the scene
279
+ this.crosshairEntity = (0, Deleter_1.deleteSafe)(this.crosshairEntity);
280
+ this.crosshairEntity = new CrosshairLinesSceneEntity_1.CrosshairLinesSceneEntity(this.parentSurface.webAssemblyContext3D);
281
+ this.parentSurface.rootEntity.children.add(this.crosshairEntity);
282
+ this.tooltipAnnotation = new TooltipSvgAnnotation3D_1.TooltipSvgAnnotation3D({
283
+ xCoordinateMode: AnnotationBase_1.ECoordinateMode.Pixel,
284
+ yCoordinateMode: AnnotationBase_1.ECoordinateMode.Pixel,
285
+ tooltipSvgTemplate: this.tooltipSvgTemplate,
286
+ containerBackground: this.tooltipContainerBackground,
287
+ textStroke: this.tooltipTextStroke,
288
+ tooltipLegendTemplate: this.tooltipLegendTemplate,
289
+ tooltipLegendOffsetX: this.tooltipLegendOffsetX,
290
+ tooltipLegendOffsetY: this.tooltipLegendOffsetY,
291
+ placementDivId: this.placementDivId,
292
+ tooltipDataTemplate: this.tooltipDataTemplate
293
+ });
294
+ this.parentSurface.modifierAnnotations.add(this.tooltipAnnotation);
295
+ }
296
+ };
297
+ /** @inheritDoc */
298
+ TooltipModifier3D.prototype.onDetach = function () {
299
+ _super.prototype.onDetach.call(this);
300
+ if (this.parentSurface) {
301
+ this.parentSurface.rootEntity.children.remove(this.crosshairEntity);
302
+ this.tooltipAnnotation.delete();
303
+ this.parentSurface.modifierAnnotations.remove(this.tooltipAnnotation);
304
+ }
305
+ this.crosshairEntity = (0, Deleter_1.deleteSafe)(this.crosshairEntity);
306
+ };
307
+ /** @inheritDoc */
308
+ TooltipModifier3D.prototype.modifierMouseMove = function (args) {
309
+ this.activePointerEvents.set(args.pointerId, args);
310
+ _super.prototype.modifierMouseMove.call(this, args);
311
+ if (this.getIsActionAllowed(args)) {
312
+ this.update();
313
+ }
314
+ };
315
+ TooltipModifier3D.prototype.onParentSurfaceRendered = function () {
316
+ this.update();
317
+ };
318
+ TooltipModifier3D.prototype.update = function () {
319
+ var _this = this;
320
+ var _a, _b, _c, _d, _e;
321
+ if (!this.mousePoint)
322
+ return;
323
+ var _f = this.mousePoint, x = _f.x, y = _f.y;
324
+ var seriesInfo = this.getIncludedSeries()
325
+ .map(function (rs) { return rs.hitTest(_this.mousePoint); })
326
+ .find(function (result) { return result.isHit; });
327
+ if (seriesInfo === null || seriesInfo === void 0 ? void 0 : seriesInfo.isHit) {
328
+ // console.log(`TooltipModifier3D: HitTest at (${x}, ${y})`);
329
+ var xyzSeriesInfo = seriesInfo;
330
+ // if (xyzSeriesInfo.dataSeriesIndex) {
331
+ // console.log(`... XYZ Series hit = ${seriesInfo.dataSeriesName ?? "Unknown"}`);
332
+ // console.log(`... Index at ${xyzSeriesInfo.dataSeriesIndex}`);
333
+ // console.log(`... World coords at ${seriesInfo.hitWorldCoords.toString()}`);
334
+ // console.log(`... Data at ${seriesInfo.xValue}, ${seriesInfo.yValue}, ${seriesInfo.zValue}`);
335
+ // }
336
+ // const heightMapSeriesInfo = seriesInfo as SurfaceMeshSeriesInfo3D;
337
+ // if (heightMapSeriesInfo.xIndex && heightMapSeriesInfo.zIndex) {
338
+ // console.log(`... Mesh Series hit = ${seriesInfo.dataSeriesName ?? "Unknown"}`);
339
+ // console.log(`... X,Z index at ${heightMapSeriesInfo.xIndex}, ${heightMapSeriesInfo.zIndex}`);
340
+ // console.log(`... World coords at ${seriesInfo.hitWorldCoords.toString()}`);
341
+ // console.log(`... Data at ${seriesInfo.yValue}, ${seriesInfo.yValue}, ${seriesInfo.zValue}`);
342
+ // }
343
+ if (this.crosshairEntity && this.isCrosshairVisible) {
344
+ this.crosshairEntity.worldDimensions = (_a = this.parentSurface) === null || _a === void 0 ? void 0 : _a.worldDimensions;
345
+ this.crosshairEntity.cameraPosition = (_c = (_b = this.parentSurface) === null || _b === void 0 ? void 0 : _b.camera) === null || _c === void 0 ? void 0 : _c.position;
346
+ this.crosshairEntity.stroke = this.crosshairStroke;
347
+ this.crosshairEntity.strokeThickness = this.crosshairStrokeThickness;
348
+ this.crosshairEntity.location = seriesInfo.hitWorldCoords;
349
+ this.crosshairEntity.isVisible = this.isCrosshairVisible;
350
+ (_d = this.parentSurface) === null || _d === void 0 ? void 0 : _d.invalidateElement();
351
+ }
352
+ this.tooltipAnnotation.isHidden = !this.showTooltip;
353
+ if (this.showTooltip) {
354
+ var xt = (0, translate_1.translateToNotScaled)(x);
355
+ var yt = (0, translate_1.translateToNotScaled)(y);
356
+ this.tooltipAnnotation.x1 = xt;
357
+ this.tooltipAnnotation.y1 = yt;
358
+ }
359
+ if (this.showTooltip || this.tooltipLegendTemplate) {
360
+ this.tooltipAnnotation.seriesInfo = seriesInfo;
361
+ }
362
+ }
363
+ else {
364
+ this.tooltipAnnotation.seriesInfo = undefined;
365
+ this.crosshairEntity.isVisible = false;
366
+ this.tooltipAnnotation.isHidden = true;
367
+ (_e = this.parentSurface) === null || _e === void 0 ? void 0 : _e.invalidateElement();
368
+ }
369
+ };
370
+ return TooltipModifier3D;
371
+ }(ChartModifierBase3D_1.ChartModifierBase3D));
372
+ exports.TooltipModifier3D = TooltipModifier3D;
373
+ /** @ignore */
374
+ var defaultTooltipDataTemplate3D = function (seriesInfo, svgAnnotation) {
375
+ var valuesWithLabels = [];
376
+ if (svgAnnotation.title) {
377
+ valuesWithLabels.push(svgAnnotation.title);
378
+ }
379
+ if (seriesInfo && seriesInfo.isHit) {
380
+ if (seriesInfo.dataSeriesName) {
381
+ valuesWithLabels.push(seriesInfo.dataSeriesName);
382
+ }
383
+ if (seriesInfo.dataSeriesType === BaseDataSeries3D_1.EDataSeriesType3D.Xyz3D) {
384
+ valuesWithLabels.push("X: ".concat(seriesInfo.xValue));
385
+ valuesWithLabels.push("Y: ".concat(seriesInfo.yValue));
386
+ valuesWithLabels.push("Z: ".concat(seriesInfo.zValue));
387
+ }
388
+ else if (seriesInfo.dataSeriesType === BaseDataSeries3D_1.EDataSeriesType3D.UniformGrid3D) {
389
+ valuesWithLabels.push("X: ".concat(seriesInfo.xValue));
390
+ valuesWithLabels.push("Y: ".concat(seriesInfo.yValue));
391
+ valuesWithLabels.push("Z: ".concat(seriesInfo.zValue));
392
+ }
393
+ }
394
+ return valuesWithLabels;
395
+ };
396
+ /** @ignore */
397
+ var defaultTooltipTemplate3D = function (seriesInfos, svgAnnotation) {
398
+ var _a;
399
+ var id = "id_".concat(Date.now());
400
+ var tooltipDataTemplate = (_a = svgAnnotation.tooltipDataTemplate) !== null && _a !== void 0 ? _a : defaultTooltipDataTemplate3D;
401
+ var valuesWithLabels = tooltipDataTemplate(seriesInfos, svgAnnotation);
402
+ if (valuesWithLabels.length === 0) {
403
+ return "<svg></svg>";
404
+ }
405
+ // tooltip size
406
+ var _b = (0, CursorModifier_1.calcTooltipSize)(valuesWithLabels), width = _b.width, height = _b.height;
407
+ // adjust position
408
+ (0, exports.adjustTooltipPosition3D)(width, height, svgAnnotation);
409
+ var valuesBlock = "";
410
+ valuesWithLabels.forEach(function (val, index) {
411
+ valuesBlock += "<tspan x=\"8\" dy=\"1.2em\">".concat(val, "</tspan>");
412
+ });
413
+ var tooltipFill = svgAnnotation.containerBackground;
414
+ var tooltipStroke = svgAnnotation.textStroke;
415
+ return "<svg class=\"scichart__cursor-tooltip\" width=\"".concat(width, "\" height=\"").concat(height, "\">\n <defs>\n <filter id=\"").concat(id, "\" x=\"0\" y=\"0\" width=\"200%\" height=\"200%\">\n <feOffset result=\"offOut\" in=\"SourceAlpha\" dx=\"3\" dy=\"3\" />\n <feGaussianBlur result=\"blurOut\" in=\"offOut\" stdDeviation=\"3\" />\n <feBlend in=\"SourceGraphic\" in2=\"blurOut\" mode=\"normal\" />\n </filter>\n </defs>\n <rect rx=\"4\" ry=\"4\" width=\"95%\" height=\"90%\" fill=\"").concat(tooltipFill, "\" filter=\"url(#").concat(id, ")\" />\n <svg width=\"100%\">\n <text x=\"8\" y=\"3\" font-size=\"13\" font-family=\"Verdana\" dy=\"0\" fill=\"").concat(tooltipStroke, "\">").concat(valuesBlock, "</text>\n </svg>\n </svg>");
416
+ };
417
+ /** Relocate the tooltip so that it is always within the seriesViewRect */
418
+ var adjustTooltipPosition3D = function (width, height, svgAnnotation) {
419
+ var seriesViewRect = svgAnnotation.parentSurface.seriesViewRect;
420
+ var xCoord = svgAnnotation.x1;
421
+ var yCoord = svgAnnotation.y1;
422
+ var xCoordShift = (0, translate_1.translateToNotScaled)(seriesViewRect.width) - xCoord < width ? -width : 5;
423
+ var yCoordShift = (0, translate_1.translateToNotScaled)(seriesViewRect.height) - yCoord < height ? -height : 5;
424
+ svgAnnotation.xCoordShift = xCoordShift;
425
+ svgAnnotation.yCoordShift = yCoordShift;
426
+ };
427
+ exports.adjustTooltipPosition3D = adjustTooltipPosition3D;
@@ -0,0 +1,10 @@
1
+ import { ISurfaceOptionsBase } from "../Charting/Visuals/SciChartSurfaceBase";
2
+ import { ICameraOptions } from "./CameraController";
3
+ import { Vector3 } from "./Vector3";
4
+ /**
5
+ * Options passed to a {@link SciChart3DSurface} in the {@link SciChart3DSurface.create} function
6
+ */
7
+ export interface I3DSurfaceOptions extends ISurfaceOptionsBase {
8
+ cameraOptions?: ICameraOptions;
9
+ worldDimensions?: Vector3;
10
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,3 +1,4 @@
1
+ import { DeletableEntity } from "../../../Core/DeletableEntity";
1
2
  import { EventHandler } from "../../../Core/EventHandler";
2
3
  import { NumberRange } from "../../../Core/NumberRange";
3
4
  import { TSciChart3D } from "../../../types/TSciChart3D";
@@ -38,7 +39,7 @@ export interface IBaseDataSeries3DOptions {
38
39
  * See derived types of {@link BaseDataSeries3D} to find out what data-series are available.
39
40
  * See derived types of {@link IRenderableSeries3D} to find out what 3D JavaScript Chart types are available.
40
41
  */
41
- export declare abstract class BaseDataSeries3D implements IDataSeries3D {
42
+ export declare abstract class BaseDataSeries3D extends DeletableEntity implements IDataSeries3D {
42
43
  /**
43
44
  * @inheritDoc
44
45
  */
@@ -1,6 +1,22 @@
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
  Object.defineProperty(exports, "__esModule", { value: true });
3
18
  exports.BaseDataSeries3D = exports.EDataSeriesType3D = void 0;
19
+ var DeletableEntity_1 = require("../../../Core/DeletableEntity");
4
20
  var EventHandler_1 = require("../../../Core/EventHandler");
5
21
  /**
6
22
  * Defines {@link BaseDataSeries3D | DataSeries} types available within SciChart's
@@ -30,7 +46,8 @@ var EDataSeriesType3D;
30
46
  * See derived types of {@link BaseDataSeries3D} to find out what data-series are available.
31
47
  * See derived types of {@link IRenderableSeries3D} to find out what 3D JavaScript Chart types are available.
32
48
  */
33
- var BaseDataSeries3D = /** @class */ (function () {
49
+ var BaseDataSeries3D = /** @class */ (function (_super) {
50
+ __extends(BaseDataSeries3D, _super);
34
51
  /**
35
52
  * Creates an instance of the {@link BaseDataSeries3D}
36
53
  * @param webAssemblyContext the {@link TSciChart3D | SciChart WebAssembly Context} containing native methods
@@ -38,11 +55,14 @@ var BaseDataSeries3D = /** @class */ (function () {
38
55
  * @param options optional parameters of type {@link IBaseDataSeries3DOptions} to configure the series
39
56
  */
40
57
  function BaseDataSeries3D(webAssemblyContext, options) {
58
+ var _this = this;
41
59
  var _a;
42
- this.webAssemblyContext = webAssemblyContext;
43
- this.dataSeriesNameProperty = (_a = options === null || options === void 0 ? void 0 : options.dataSeriesName) !== null && _a !== void 0 ? _a : this.dataSeriesNameProperty;
44
- this.dataChanged = new EventHandler_1.EventHandler();
45
- this.isModifiedProperty = true;
60
+ _this = _super.call(this) || this;
61
+ _this.webAssemblyContext = webAssemblyContext;
62
+ _this.dataSeriesNameProperty = (_a = options === null || options === void 0 ? void 0 : options.dataSeriesName) !== null && _a !== void 0 ? _a : _this.dataSeriesNameProperty;
63
+ _this.dataChanged = new EventHandler_1.EventHandler();
64
+ _this.isModifiedProperty = true;
65
+ return _this;
46
66
  }
47
67
  Object.defineProperty(BaseDataSeries3D.prototype, "dataSeriesName", {
48
68
  /**
@@ -82,6 +102,7 @@ var BaseDataSeries3D = /** @class */ (function () {
82
102
  */
83
103
  BaseDataSeries3D.prototype.delete = function () {
84
104
  this.isDeleted = true;
105
+ this.webAssemblyContext = undefined;
85
106
  };
86
107
  /**
87
108
  * Call this method to notify subscribers of {@link dataChanged} that the data has changed
@@ -99,5 +120,5 @@ var BaseDataSeries3D = /** @class */ (function () {
99
120
  this.isModifiedProperty = false;
100
121
  };
101
122
  return BaseDataSeries3D;
102
- }());
123
+ }(DeletableEntity_1.DeletableEntity));
103
124
  exports.BaseDataSeries3D = BaseDataSeries3D;
@@ -116,7 +116,7 @@ export declare abstract class BaseGridDataSeries3D extends BaseDataSeries3D impl
116
116
  * @param xIndex the x-index from 0 to xSize
117
117
  * @param YValue the new Height-value
118
118
  */
119
- setYValue(yIndex: number, xIndex: number, zValue: number): void;
119
+ setYValue(zIndex: number, xIndex: number, yValue: number): void;
120
120
  /**
121
121
  * @inheritDoc
122
122
  */
@@ -144,8 +144,8 @@ var BaseGridDataSeries3D = /** @class */ (function (_super) {
144
144
  * @param xIndex the x-index from 0 to xSize
145
145
  * @param YValue the new Height-value
146
146
  */
147
- BaseGridDataSeries3D.prototype.setYValue = function (yIndex, xIndex, zValue) {
148
- this.yValuesProperty[yIndex][xIndex] = zValue;
147
+ BaseGridDataSeries3D.prototype.setYValue = function (zIndex, xIndex, yValue) {
148
+ this.yValuesProperty[zIndex][xIndex] = yValue;
149
149
  this.notifyDataChanged();
150
150
  };
151
151
  /**
@@ -5,11 +5,16 @@
5
5
  */
6
6
  export interface IPointMetadata3D {
7
7
  /**
8
- * Override the color for this particular point. Set=undefined for default
8
+ * @deprecated Property naming was wrong, we've updated it to vertexColor [SCJS-1566]
9
9
  */
10
10
  vertexColorAbgr?: number;
11
+ /**
12
+ * Override the color for this particular point. Set=undefined for default.
13
+ * Note: This is a 32-bit integer in ARGB format, e.g. 0xFFFF0000 is Red
14
+ */
15
+ vertexColor?: number;
11
16
  /**
12
17
  * Override the scale for this particular point. Set=1.0 for default
13
18
  */
14
- pointScale: number;
19
+ pointScale?: number;
15
20
  }
@@ -89,4 +89,12 @@ export declare class UniformGridDataSeries3D extends BaseGridDataSeries3D {
89
89
  * @inheritDoc
90
90
  */
91
91
  get zRange(): NumberRange;
92
+ /**
93
+ * @inheritDoc
94
+ */
95
+ getX(xIndex: number): number;
96
+ /**
97
+ * @inheritDoc
98
+ */
99
+ getZ(zIndex: number): number;
92
100
  }
@@ -137,6 +137,18 @@ var UniformGridDataSeries3D = /** @class */ (function (_super) {
137
137
  enumerable: false,
138
138
  configurable: true
139
139
  });
140
+ /**
141
+ * @inheritDoc
142
+ */
143
+ UniformGridDataSeries3D.prototype.getX = function (xIndex) {
144
+ return this.xStart + xIndex * this.xStep;
145
+ };
146
+ /**
147
+ * @inheritDoc
148
+ */
149
+ UniformGridDataSeries3D.prototype.getZ = function (zIndex) {
150
+ return this.zStart + zIndex * this.zStep;
151
+ };
140
152
  return UniformGridDataSeries3D;
141
153
  }(BaseGridDataSeries3D_1.BaseGridDataSeries3D));
142
154
  exports.UniformGridDataSeries3D = UniformGridDataSeries3D;
@@ -1,12 +1,12 @@
1
1
  import { NumberRange } from "../../../Core/NumberRange";
2
2
  import { SCRTDoubleVector } from "../../../types/TSciChart";
3
3
  import { TSciChart3D } from "../../../types/TSciChart3D";
4
- import { BaseDataSeries3D, EDataSeriesType3D } from "./BaseDataSeries3D";
4
+ import { BaseDataSeries3D, EDataSeriesType3D, IBaseDataSeries3DOptions } from "./BaseDataSeries3D";
5
5
  import { IPointMetadata3D } from "./IPointMetadata3D";
6
6
  /**
7
7
  * Optional parameters passed to the constructor of {@link XyzDataSeries3D}
8
8
  */
9
- export interface IXyzDataSeries3DOptions {
9
+ export interface IXyzDataSeries3DOptions extends IBaseDataSeries3DOptions {
10
10
  /**
11
11
  * The optional initial X-values array
12
12
  */
@@ -42,7 +42,7 @@ var XyzDataSeries3D = /** @class */ (function (_super) {
42
42
  * @param options the {@link IXyzDataSeries3DOptions} which can be passed to configure the DataSeries at construct time
43
43
  */
44
44
  function XyzDataSeries3D(webAssemblyContext, options) {
45
- var _this = _super.call(this, webAssemblyContext) || this;
45
+ var _this = _super.call(this, webAssemblyContext, options) || this;
46
46
  _this.type = BaseDataSeries3D_1.EDataSeriesType3D.Xyz3D;
47
47
  _this.xValues = new webAssemblyContext.SCRTDoubleVector();
48
48
  _this.yValues = new webAssemblyContext.SCRTDoubleVector();
@@ -83,6 +83,11 @@ export declare class Vector3 {
83
83
  * @returns A new vector with the multiply result
84
84
  */
85
85
  scalarMultiply(scalar: number): Vector3;
86
+ /**
87
+ * Performs vector dot product of this vector and another vector, returning the result as a scalar
88
+ * @param rhs the other vector to apply to the right hand side of the dot product
89
+ */
90
+ dotProduct(rhs: Vector3): number;
86
91
  /**
87
92
  * Performs vector cross product of this vector and another vector, returning the result in a new vector
88
93
  * @description
@@ -119,6 +119,13 @@ var Vector3 = /** @class */ (function () {
119
119
  Vector3.prototype.scalarMultiply = function (scalar) {
120
120
  return new Vector3(this.x * scalar, this.y * scalar, this.z * scalar);
121
121
  };
122
+ /**
123
+ * Performs vector dot product of this vector and another vector, returning the result as a scalar
124
+ * @param rhs the other vector to apply to the right hand side of the dot product
125
+ */
126
+ Vector3.prototype.dotProduct = function (rhs) {
127
+ return this.x * rhs.x + this.y * rhs.y + this.z * rhs.z;
128
+ };
122
129
  /**
123
130
  * Performs vector cross product of this vector and another vector, returning the result in a new vector
124
131
  * @description