scichart 3.1.348 → 3.2.0-beta

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 (314) hide show
  1. package/Charting/ChartModifiers/ChartModifierBase.d.ts +15 -1
  2. package/Charting/ChartModifiers/ChartModifierBase.js +65 -7
  3. package/Charting/ChartModifiers/CursorModifier.js +13 -1
  4. package/Charting/ChartModifiers/LegendModifier.d.ts +1 -1
  5. package/Charting/ChartModifiers/LegendModifier.js +8 -6
  6. package/Charting/ChartModifiers/PinchZoomModifier.d.ts +38 -8
  7. package/Charting/ChartModifiers/PinchZoomModifier.js +103 -40
  8. package/Charting/ChartModifiers/RolloverModifier.js +10 -3
  9. package/Charting/ChartModifiers/RubberBandXyZoomModifier.d.ts +1 -1
  10. package/Charting/ChartModifiers/SeriesSelectionModifier.js +32 -24
  11. package/Charting/ChartModifiers/ZoomPanModifier.d.ts +13 -38
  12. package/Charting/ChartModifiers/ZoomPanModifier.js +54 -99
  13. package/Charting/Drawing/BaseCache.d.ts +2 -1
  14. package/Charting/Drawing/BaseCache.js +40 -7
  15. package/Charting/Drawing/RenderSurface.d.ts +1 -0
  16. package/Charting/Drawing/RenderSurface.js +5 -1
  17. package/Charting/Drawing/SolidBrushCache.d.ts +2 -1
  18. package/Charting/Drawing/SolidBrushCache.js +23 -3
  19. package/Charting/Drawing/WebGlBrush.d.ts +2 -1
  20. package/Charting/Drawing/WebGlBrush.js +22 -3
  21. package/Charting/Drawing/WebGlPen.d.ts +2 -1
  22. package/Charting/Drawing/WebGlPen.js +23 -4
  23. package/Charting/Drawing/WebGlRenderContext2D.d.ts +4 -3
  24. package/Charting/Drawing/WebGlRenderContext2D.js +26 -7
  25. package/Charting/Model/BaseDataSeries.d.ts +67 -2
  26. package/Charting/Model/BaseDataSeries.js +193 -42
  27. package/Charting/Model/BaseHeatmapDataSeries.js +1 -1
  28. package/Charting/Model/ChartData/SeriesInfo.d.ts +16 -0
  29. package/Charting/Model/ChartData/SeriesInfo.js +7 -0
  30. package/Charting/Model/ChartData/XyzSeriesInfo.d.ts +8 -0
  31. package/Charting/Model/ChartData/XyzSeriesInfo.js +36 -0
  32. package/Charting/Model/DoubleVectorProvider.d.ts +19 -0
  33. package/Charting/Model/DoubleVectorProvider.js +95 -0
  34. package/Charting/Model/HlcDataSeries.d.ts +3 -0
  35. package/Charting/Model/HlcDataSeries.js +44 -15
  36. package/Charting/Model/IDataSeries.d.ts +23 -0
  37. package/Charting/Model/NonUniformHeatmapDataSeries.js +2 -0
  38. package/Charting/Model/OhlcDataSeries.d.ts +3 -0
  39. package/Charting/Model/OhlcDataSeries.js +56 -24
  40. package/Charting/Model/PointSeries/BasePointSeriesResampled.d.ts +4 -5
  41. package/Charting/Model/PointSeries/BasePointSeriesResampled.js +29 -21
  42. package/Charting/Model/PointSeries/BasePointSeriesWrapped.d.ts +2 -0
  43. package/Charting/Model/PointSeries/BasePointSeriesWrapped.js +2 -0
  44. package/Charting/Model/PointSeries/IPointSeries.d.ts +2 -1
  45. package/Charting/Model/PointSeries/OhlcPointSeriesResampled.js +1 -1
  46. package/Charting/Model/PointSeries/XyPointSeriesWrapped.d.ts +2 -1
  47. package/Charting/Model/PointSeries/XyPointSeriesWrapped.js +2 -2
  48. package/Charting/Model/PointSeries/XyyPointSeriesResampled.js +1 -1
  49. package/Charting/Model/UniformHeatmapDataSeries.d.ts +31 -11
  50. package/Charting/Model/UniformHeatmapDataSeries.js +72 -4
  51. package/Charting/Model/XyDataSeries.d.ts +0 -8
  52. package/Charting/Model/XyDataSeries.js +21 -5
  53. package/Charting/Model/XyTextDataSeries.d.ts +2 -0
  54. package/Charting/Model/XyTextDataSeries.js +35 -4
  55. package/Charting/Model/XyyDataSeries.d.ts +2 -0
  56. package/Charting/Model/XyyDataSeries.js +35 -10
  57. package/Charting/Model/XyzDataSeries.d.ts +3 -0
  58. package/Charting/Model/XyzDataSeries.js +36 -10
  59. package/Charting/Numerics/CoordinateCalculators/CategoryCoordinateCalculator.d.ts +3 -5
  60. package/Charting/Numerics/CoordinateCalculators/CategoryCoordinateCalculator.js +5 -7
  61. package/Charting/Numerics/CoordinateCalculators/CoordinateCalculatorBase.d.ts +2 -1
  62. package/Charting/Numerics/CoordinateCalculators/CoordinateCalculatorBase.js +29 -9
  63. package/Charting/Numerics/CoordinateCalculators/FlippedCategoryCoordinateCalculator.d.ts +3 -5
  64. package/Charting/Numerics/CoordinateCalculators/FlippedCategoryCoordinateCalculator.js +5 -7
  65. package/Charting/Numerics/Resamplers/ExtremeResamplerHelper.d.ts +14 -10
  66. package/Charting/Numerics/Resamplers/ExtremeResamplerHelper.js +105 -69
  67. package/Charting/Numerics/Resamplers/ResamplingParams.d.ts +4 -2
  68. package/Charting/Numerics/Resamplers/ResamplingParams.js +12 -7
  69. package/Charting/Numerics/TickCoordinateProviders/TickCoordinatesProvider.d.ts +5 -0
  70. package/Charting/Numerics/TickCoordinateProviders/TickCoordinatesProvider.js +7 -0
  71. package/Charting/Numerics/TickProviders/NumericTickProvider.js +3 -4
  72. package/Charting/Numerics/TickProviders/TickProvider.d.ts +5 -0
  73. package/Charting/Numerics/TickProviders/TickProvider.js +7 -0
  74. package/Charting/Services/SciChartRenderer.js +15 -5
  75. package/Charting/Services/TitleRenderer.d.ts +2 -1
  76. package/Charting/Services/TitleRenderer.js +35 -14
  77. package/Charting/Visuals/Annotations/AdornerLayer.d.ts +1 -1
  78. package/Charting/Visuals/Annotations/AnnotationBase.d.ts +6 -6
  79. package/Charting/Visuals/Annotations/AnnotationBase.js +81 -61
  80. package/Charting/Visuals/Annotations/CursorTooltipSvgAnnotation.js +8 -0
  81. package/Charting/Visuals/Annotations/IAnnotation.d.ts +9 -4
  82. package/Charting/Visuals/Annotations/IAnnotation.js +6 -0
  83. package/Charting/Visuals/Annotations/LineAnnotation.js +3 -1
  84. package/Charting/Visuals/Annotations/RenderContextAnnotationBase.d.ts +5 -0
  85. package/Charting/Visuals/Annotations/RenderContextAnnotationBase.js +16 -0
  86. package/Charting/Visuals/Annotations/RolloverTooltipSvgAnnotation.js +6 -0
  87. package/Charting/Visuals/Annotations/constants.d.ts +1 -0
  88. package/Charting/Visuals/Annotations/constants.js +1 -0
  89. package/Charting/Visuals/Axis/AxisBase2D.d.ts +20 -5
  90. package/Charting/Visuals/Axis/AxisBase2D.js +46 -10
  91. package/Charting/Visuals/Axis/AxisCore.d.ts +4 -1
  92. package/Charting/Visuals/Axis/AxisCore.js +100 -54
  93. package/Charting/Visuals/Axis/AxisRenderer.d.ts +2 -1
  94. package/Charting/Visuals/Axis/AxisRenderer.js +40 -16
  95. package/Charting/Visuals/Axis/AxisTitleRenderer.d.ts +1 -0
  96. package/Charting/Visuals/Axis/AxisTitleRenderer.js +4 -0
  97. package/Charting/Visuals/Axis/CategoryAxisBase.js +4 -4
  98. package/Charting/Visuals/Axis/DeltaCalculator/DateTimeDeltaCalculator.js +14 -9
  99. package/Charting/Visuals/Axis/DeltaCalculator/DeltaCalculator.d.ts +5 -0
  100. package/Charting/Visuals/Axis/DeltaCalculator/DeltaCalculator.js +7 -0
  101. package/Charting/Visuals/Axis/LabelProvider/LabelCache.d.ts +2 -2
  102. package/Charting/Visuals/Axis/LabelProvider/LabelCache.js +8 -1
  103. package/Charting/Visuals/Axis/LabelProvider/LabelProvider.d.ts +7 -1
  104. package/Charting/Visuals/Axis/LabelProvider/LabelProvider.js +34 -8
  105. package/Charting/Visuals/Axis/LabelProvider/LabelProviderBase2D.d.ts +4 -2
  106. package/Charting/Visuals/Axis/LabelProvider/LabelProviderBase2D.js +8 -2
  107. package/Charting/Visuals/Axis/LabelProvider/PieLabelProvider.d.ts +1 -0
  108. package/Charting/Visuals/Axis/LabelProvider/PieLabelProvider.js +1 -0
  109. package/Charting/Visuals/HeatmapLegend.d.ts +3 -2
  110. package/Charting/Visuals/HeatmapLegend.js +33 -12
  111. package/Charting/Visuals/Helpers/NativeObject.d.ts +8 -5
  112. package/Charting/Visuals/Helpers/NativeObject.js +42 -21
  113. package/Charting/Visuals/Helpers/drawLabel.js +3 -1
  114. package/Charting/Visuals/I2DSurfaceOptions.d.ts +0 -15
  115. package/Charting/Visuals/Legend/SciChartLegendBase.d.ts +3 -1
  116. package/Charting/Visuals/Legend/SciChartLegendBase.js +35 -14
  117. package/Charting/Visuals/Legend/SciChartPieLegend.js +1 -1
  118. package/Charting/Visuals/PointMarkers/BasePointMarker.d.ts +13 -1
  119. package/Charting/Visuals/PointMarkers/BasePointMarker.js +72 -19
  120. package/Charting/Visuals/PointMarkers/Constants.d.ts +2 -1
  121. package/Charting/Visuals/PointMarkers/Constants.js +1 -0
  122. package/Charting/Visuals/PointMarkers/IPointMarker.d.ts +2 -0
  123. package/Charting/Visuals/RenderableSeries/Animations/SeriesAnimation.js +4 -1
  124. package/Charting/Visuals/RenderableSeries/Animations/animationHelpers.d.ts +1 -1
  125. package/Charting/Visuals/RenderableSeries/BaseBandRenderableSeries.js +8 -7
  126. package/Charting/Visuals/RenderableSeries/BaseHeatmapRenderableSeries.d.ts +1 -0
  127. package/Charting/Visuals/RenderableSeries/BaseHeatmapRenderableSeries.js +5 -0
  128. package/Charting/Visuals/RenderableSeries/BaseOhlcRenderableSeries.js +10 -9
  129. package/Charting/Visuals/RenderableSeries/BaseRenderableSeries.d.ts +2 -1
  130. package/Charting/Visuals/RenderableSeries/BaseRenderableSeries.js +101 -69
  131. package/Charting/Visuals/RenderableSeries/BaseStackedCollection.js +13 -4
  132. package/Charting/Visuals/RenderableSeries/BaseStackedRenderableSeries.js +12 -3
  133. package/Charting/Visuals/RenderableSeries/DataLabels/BaseDataLabelProvider.d.ts +2 -0
  134. package/Charting/Visuals/RenderableSeries/DataLabels/BaseDataLabelProvider.js +5 -0
  135. package/Charting/Visuals/RenderableSeries/DataLabels/DataLabelProvider.js +6 -0
  136. package/Charting/Visuals/RenderableSeries/DataLabels/DataLabelState.d.ts +1 -0
  137. package/Charting/Visuals/RenderableSeries/DataLabels/DataLabelState.js +18 -5
  138. package/Charting/Visuals/RenderableSeries/DataLabels/NonUniformHeatmapDataLabelProvider.js +0 -1
  139. package/Charting/Visuals/RenderableSeries/DataLabels/TextDataLabelProvider.js +8 -2
  140. package/Charting/Visuals/RenderableSeries/DrawingProviders/BandSeriesDrawingProvider.d.ts +1 -0
  141. package/Charting/Visuals/RenderableSeries/DrawingProviders/BandSeriesDrawingProvider.js +35 -16
  142. package/Charting/Visuals/RenderableSeries/DrawingProviders/BaseSeriesDrawingProvider.d.ts +2 -1
  143. package/Charting/Visuals/RenderableSeries/DrawingProviders/BaseSeriesDrawingProvider.js +62 -33
  144. package/Charting/Visuals/RenderableSeries/DrawingProviders/BubbleSeriesDrawingProvider.d.ts +1 -0
  145. package/Charting/Visuals/RenderableSeries/DrawingProviders/BubbleSeriesDrawingProvider.js +30 -9
  146. package/Charting/Visuals/RenderableSeries/DrawingProviders/ColumnSeriesDrawingProvider.d.ts +1 -0
  147. package/Charting/Visuals/RenderableSeries/DrawingProviders/ColumnSeriesDrawingProvider.js +37 -16
  148. package/Charting/Visuals/RenderableSeries/DrawingProviders/HeatmapHelpers.d.ts +47 -0
  149. package/Charting/Visuals/RenderableSeries/DrawingProviders/HeatmapHelpers.js +258 -0
  150. package/Charting/Visuals/RenderableSeries/DrawingProviders/LineSeriesDrawingProvider.js +26 -2
  151. package/Charting/Visuals/RenderableSeries/DrawingProviders/MountainSeriesDrawingProvider.d.ts +1 -0
  152. package/Charting/Visuals/RenderableSeries/DrawingProviders/MountainSeriesDrawingProvider.js +34 -15
  153. package/Charting/Visuals/RenderableSeries/DrawingProviders/NonUniformHeatmapDrawingProvider.js +5 -230
  154. package/Charting/Visuals/RenderableSeries/DrawingProviders/OhlcSeriesDrawingProvider.d.ts +1 -0
  155. package/Charting/Visuals/RenderableSeries/DrawingProviders/OhlcSeriesDrawingProvider.js +62 -37
  156. package/Charting/Visuals/RenderableSeries/DrawingProviders/PointMarkerDrawingProvider.js +30 -3
  157. package/Charting/Visuals/RenderableSeries/DrawingProviders/UniformHeatmapDrawingProvider.d.ts +1 -0
  158. package/Charting/Visuals/RenderableSeries/DrawingProviders/UniformHeatmapDrawingProvider.js +4 -1
  159. package/Charting/Visuals/RenderableSeries/FastBubbleRenderableSeries.d.ts +0 -2
  160. package/Charting/Visuals/RenderableSeries/FastBubbleRenderableSeries.js +0 -4
  161. package/Charting/Visuals/RenderableSeries/FastTextRenderableSeries.d.ts +3 -0
  162. package/Charting/Visuals/RenderableSeries/FastTextRenderableSeries.js +10 -0
  163. package/Charting/Visuals/RenderableSeries/HitTest/BubbleSeriesHitTestProvider.d.ts +4 -0
  164. package/Charting/Visuals/RenderableSeries/HitTest/BubbleSeriesHitTestProvider.js +7 -0
  165. package/Charting/Visuals/RenderableSeries/HitTest/HitTestInfo.d.ts +4 -0
  166. package/Charting/Visuals/RenderableSeries/HitTest/HitTestInfo.js +9 -0
  167. package/Charting/Visuals/RenderableSeries/ShaderEffect.d.ts +3 -2
  168. package/Charting/Visuals/RenderableSeries/ShaderEffect.js +29 -9
  169. package/Charting/Visuals/RenderableSeries/SplineBandRenderableSeries.js +7 -0
  170. package/Charting/Visuals/RenderableSeries/SplineLineRenderableSeries.js +7 -0
  171. package/Charting/Visuals/RenderableSeries/SplineMountainRenderableSeries.js +7 -0
  172. package/Charting/Visuals/RenderableSeries/StackedColumnCollection.js +3 -0
  173. package/Charting/Visuals/RenderableSeries/StackedMountainCollection.d.ts +0 -2
  174. package/Charting/Visuals/RenderableSeries/StackedMountainCollection.js +4 -4
  175. package/Charting/Visuals/RenderableSeries/StackedMountainRenderableSeries.d.ts +1 -0
  176. package/Charting/Visuals/RenderableSeries/StackedMountainRenderableSeries.js +8 -0
  177. package/Charting/Visuals/RenderableSeries/XyScatterRenderableSeries.d.ts +1 -2
  178. package/Charting/Visuals/RenderableSeries/XyScatterRenderableSeries.js +8 -3
  179. package/Charting/Visuals/RubberBandSvgRect/RubberBandSvgRect.d.ts +3 -1
  180. package/Charting/Visuals/RubberBandSvgRect/RubberBandSvgRect.js +30 -10
  181. package/Charting/Visuals/SciChartDefaults.d.ts +10 -0
  182. package/Charting/Visuals/SciChartDefaults.js +10 -0
  183. package/Charting/Visuals/SciChartOverview.d.ts +2 -1
  184. package/Charting/Visuals/SciChartOverview.js +28 -8
  185. package/Charting/Visuals/SciChartPieSurface/SciChartPieSurface.d.ts +10 -3
  186. package/Charting/Visuals/SciChartPieSurface/SciChartPieSurface.js +118 -60
  187. package/Charting/Visuals/SciChartSurface.d.ts +4 -36
  188. package/Charting/Visuals/SciChartSurface.js +48 -61
  189. package/Charting/Visuals/SciChartSurfaceBase.d.ts +99 -13
  190. package/Charting/Visuals/SciChartSurfaceBase.js +155 -32
  191. package/Charting/Visuals/TextureManager/CanvasTexture.d.ts +2 -1
  192. package/Charting/Visuals/TextureManager/CanvasTexture.js +37 -17
  193. package/Charting/Visuals/TextureManager/TextureManager.d.ts +2 -1
  194. package/Charting/Visuals/TextureManager/TextureManager.js +27 -7
  195. package/Charting/Visuals/createMaster.d.ts +4 -2
  196. package/Charting/Visuals/createMaster.js +92 -28
  197. package/Charting/Visuals/createSingle.d.ts +0 -2
  198. package/Charting/Visuals/createSingle.js +44 -9
  199. package/Charting/Visuals/licenseManager2D.d.ts +7 -5
  200. package/Charting/Visuals/licenseManager2D.js +105 -53
  201. package/Charting/Visuals/loader.js +3 -1
  202. package/Charting/Visuals/sciChartInitCommon.d.ts +1 -1
  203. package/Charting/Visuals/sciChartInitCommon.js +5 -1
  204. package/Charting3D/CameraController.d.ts +1 -1
  205. package/Charting3D/CameraController.js +21 -7
  206. package/Charting3D/ChartModifiers/ChartModifierBase3D.d.ts +1 -0
  207. package/Charting3D/ChartModifiers/ChartModifierBase3D.js +4 -1
  208. package/Charting3D/ChartModifiers/OrbitModifier3D.d.ts +17 -5
  209. package/Charting3D/ChartModifiers/OrbitModifier3D.js +62 -26
  210. package/Charting3D/ChartModifiers/PinchZoomModifier3D.d.ts +81 -0
  211. package/Charting3D/ChartModifiers/PinchZoomModifier3D.js +164 -0
  212. package/Charting3D/ChartModifiers/TooltipModifier3D.d.ts +87 -0
  213. package/Charting3D/ChartModifiers/TooltipModifier3D.js +391 -0
  214. package/Charting3D/I3DSurfaceOptions.d.ts +10 -0
  215. package/Charting3D/I3DSurfaceOptions.js +2 -0
  216. package/Charting3D/Model/DataSeries/BaseDataSeries3D.d.ts +2 -1
  217. package/Charting3D/Model/DataSeries/BaseDataSeries3D.js +27 -6
  218. package/Charting3D/Model/DataSeries/UniformGridDataSeries3D.d.ts +8 -0
  219. package/Charting3D/Model/DataSeries/UniformGridDataSeries3D.js +12 -0
  220. package/Charting3D/Model/DataSeries/XyzDataSeries3D.d.ts +2 -2
  221. package/Charting3D/Model/DataSeries/XyzDataSeries3D.js +1 -1
  222. package/Charting3D/Vector3.d.ts +5 -0
  223. package/Charting3D/Vector3.js +7 -0
  224. package/Charting3D/Visuals/Annotations/TooltipSvgAnnotation3D.d.ts +88 -0
  225. package/Charting3D/Visuals/Annotations/TooltipSvgAnnotation3D.js +291 -0
  226. package/Charting3D/Visuals/Axis/AxisBase3D.d.ts +21 -2
  227. package/Charting3D/Visuals/Axis/AxisBase3D.js +48 -18
  228. package/Charting3D/Visuals/Axis/AxisBase3DLabelStyle.js +2 -1
  229. package/Charting3D/Visuals/Axis/AxisCubeEntity.d.ts +0 -4
  230. package/Charting3D/Visuals/Axis/AxisCubeEntity.js +3 -6
  231. package/Charting3D/Visuals/Axis/IAxisDescriptor.d.ts +2 -2
  232. package/Charting3D/Visuals/Axis/IAxisDescriptor.js +2 -2
  233. package/Charting3D/Visuals/Primitives/BaseSceneEntity3D.d.ts +41 -30
  234. package/Charting3D/Visuals/Primitives/BaseSceneEntity3D.js +78 -26
  235. package/Charting3D/Visuals/Primitives/CrosshairLinesSceneEntity.d.ts +47 -0
  236. package/Charting3D/Visuals/Primitives/CrosshairLinesSceneEntity.js +106 -0
  237. package/Charting3D/Visuals/Primitives/EntityIdProvider.d.ts +29 -0
  238. package/Charting3D/Visuals/Primitives/EntityIdProvider.js +28 -0
  239. package/Charting3D/Visuals/Primitives/PointLine3DSceneEntity.d.ts +51 -0
  240. package/Charting3D/Visuals/Primitives/PointLine3DSceneEntity.js +188 -0
  241. package/Charting3D/Visuals/Primitives/RenderableSeriesSceneEntity.d.ts +12 -0
  242. package/Charting3D/Visuals/Primitives/RenderableSeriesSceneEntity.js +14 -0
  243. package/Charting3D/Visuals/Primitives/ScatterPointsSceneEntity.d.ts +11 -0
  244. package/Charting3D/Visuals/Primitives/ScatterPointsSceneEntity.js +18 -0
  245. package/Charting3D/Visuals/Primitives/SurfaceMeshSceneEntity.d.ts +3 -0
  246. package/Charting3D/Visuals/Primitives/SurfaceMeshSceneEntity.js +15 -0
  247. package/Charting3D/Visuals/RenderableSeries/BaseRenderableSeries3D.d.ts +16 -1
  248. package/Charting3D/Visuals/RenderableSeries/BaseRenderableSeries3D.js +64 -12
  249. package/Charting3D/Visuals/RenderableSeries/Constants.d.ts +2 -0
  250. package/Charting3D/Visuals/RenderableSeries/Constants.js +2 -0
  251. package/Charting3D/Visuals/RenderableSeries/ESeriesType.d.ts +2 -1
  252. package/Charting3D/Visuals/RenderableSeries/ESeriesType.js +1 -0
  253. package/Charting3D/Visuals/RenderableSeries/HitTestInfo3D.d.ts +37 -0
  254. package/Charting3D/Visuals/RenderableSeries/HitTestInfo3D.js +22 -0
  255. package/Charting3D/Visuals/RenderableSeries/PointLineRenderableSeries3D.d.ts +64 -0
  256. package/Charting3D/Visuals/RenderableSeries/PointLineRenderableSeries3D.js +105 -0
  257. package/Charting3D/Visuals/RenderableSeries/SeriesInfo3D.d.ts +51 -0
  258. package/Charting3D/Visuals/RenderableSeries/SeriesInfo3D.js +32 -0
  259. package/Charting3D/Visuals/RenderableSeries/SurfaceMeshSeriesInfo3D.d.ts +15 -0
  260. package/Charting3D/Visuals/RenderableSeries/SurfaceMeshSeriesInfo3D.js +112 -0
  261. package/Charting3D/Visuals/RenderableSeries/XyzSeriesInfo3D.d.ts +20 -0
  262. package/Charting3D/Visuals/RenderableSeries/XyzSeriesInfo3D.js +60 -0
  263. package/Charting3D/Visuals/RootSceneEntity.d.ts +0 -4
  264. package/Charting3D/Visuals/RootSceneEntity.js +3 -8
  265. package/Charting3D/Visuals/SciChart3DRenderer.d.ts +2 -0
  266. package/Charting3D/Visuals/SciChart3DRenderer.js +49 -0
  267. package/Charting3D/Visuals/SciChart3DSurface.d.ts +44 -3
  268. package/Charting3D/Visuals/SciChart3DSurface.js +103 -9
  269. package/Charting3D/Visuals/ViewportManager3DBase.d.ts +4 -0
  270. package/Charting3D/Visuals/ViewportManager3DBase.js +7 -1
  271. package/Charting3D/Visuals/createMaster3d.d.ts +1 -2
  272. package/Charting3D/Visuals/createMaster3d.js +76 -14
  273. package/Charting3D/Visuals/createSingle3d.js +34 -4
  274. package/Charting3D/Visuals/licenseManager3D.js +29 -25
  275. package/Core/BuildStamp.d.ts +1 -1
  276. package/Core/BuildStamp.js +2 -2
  277. package/Core/DeletableEntity.d.ts +28 -0
  278. package/Core/DeletableEntity.js +141 -0
  279. package/Core/Globals.d.ts +11 -0
  280. package/Core/Globals.js +13 -0
  281. package/Core/Guard.d.ts +6 -0
  282. package/Core/Guard.js +10 -0
  283. package/Core/Mouse/MouseManager.d.ts +23 -0
  284. package/Core/Mouse/MouseManager.js +47 -0
  285. package/Core/Telemetry.js +4 -6
  286. package/_wasm/scichart.browser.js +1 -1
  287. package/_wasm/scichart2d.data +0 -0
  288. package/_wasm/scichart2d.js +4 -294
  289. package/_wasm/scichart2d.wasm +0 -0
  290. package/_wasm/scichart3d.data +0 -0
  291. package/_wasm/scichart3d.js +4 -294
  292. package/_wasm/scichart3d.wasm +0 -0
  293. package/index.d.ts +43 -2
  294. package/index.js +89 -27
  295. package/index.min.js +1 -1
  296. package/package.json +3 -4
  297. package/types/ChartModifierType.d.ts +2 -0
  298. package/types/ChartModifierType.js +2 -0
  299. package/types/DefaultRenderLayer.d.ts +9 -8
  300. package/types/DefaultRenderLayer.js +9 -8
  301. package/types/NumberArray.d.ts +1 -0
  302. package/types/NumberArray.js +12 -1
  303. package/types/SceneEntityType.d.ts +13 -5
  304. package/types/SceneEntityType.js +13 -5
  305. package/types/TSciChart.d.ts +37 -8
  306. package/types/TSciChart3D.d.ts +126 -7
  307. package/types/licensingClasses.d.ts +2 -1
  308. package/types/licensingClasses.js +1 -0
  309. package/utils/MemoryUsageHelper.d.ts +45 -0
  310. package/utils/MemoryUsageHelper.js +171 -0
  311. package/utils/array.d.ts +8 -0
  312. package/utils/array.js +58 -1
  313. package/utils/logger.d.ts +2 -0
  314. package/utils/logger.js +11 -0
@@ -0,0 +1,391 @@
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
+ get: function () {
98
+ return this.isCrosshairVisibleProperty;
99
+ },
100
+ set: function (isVisible) {
101
+ var _a;
102
+ this.isCrosshairVisibleProperty = isVisible;
103
+ (_a = this.parentSurface) === null || _a === void 0 ? void 0 : _a.invalidateElement();
104
+ },
105
+ enumerable: false,
106
+ configurable: true
107
+ });
108
+ Object.defineProperty(TooltipModifier3D.prototype, "crosshairStroke", {
109
+ get: function () {
110
+ return this.crosshairStrokeProperty;
111
+ },
112
+ set: function (stroke) {
113
+ var _a;
114
+ this.crosshairStrokeProperty = stroke;
115
+ (_a = this.parentSurface) === null || _a === void 0 ? void 0 : _a.invalidateElement();
116
+ },
117
+ enumerable: false,
118
+ configurable: true
119
+ });
120
+ Object.defineProperty(TooltipModifier3D.prototype, "crosshairStrokeThickness", {
121
+ get: function () {
122
+ return this.crosshairStrokeThicknessProperty;
123
+ },
124
+ set: function (strokeThickness) {
125
+ var _a;
126
+ this.crosshairStrokeThicknessProperty = strokeThickness;
127
+ (_a = this.parentSurface) === null || _a === void 0 ? void 0 : _a.invalidateElement();
128
+ },
129
+ enumerable: false,
130
+ configurable: true
131
+ });
132
+ Object.defineProperty(TooltipModifier3D.prototype, "tooltipSvgTemplate", {
133
+ get: function () {
134
+ return this.tooltipSvgTemplateProperty;
135
+ },
136
+ set: function (value) {
137
+ this.tooltipSvgTemplateProperty = value;
138
+ if (this.tooltipAnnotation) {
139
+ this.tooltipAnnotation.tooltipSvgTemplate = value;
140
+ }
141
+ },
142
+ enumerable: false,
143
+ configurable: true
144
+ });
145
+ Object.defineProperty(TooltipModifier3D.prototype, "tooltipLegendTemplate", {
146
+ get: function () {
147
+ return this.tooltipLegendTemplateProperty;
148
+ },
149
+ set: function (value) {
150
+ this.tooltipLegendTemplateProperty = value;
151
+ if (this.tooltipAnnotation) {
152
+ this.tooltipAnnotation.tooltipLegendTemplate = value;
153
+ }
154
+ },
155
+ enumerable: false,
156
+ configurable: true
157
+ });
158
+ Object.defineProperty(TooltipModifier3D.prototype, "tooltipDataTemplate", {
159
+ get: function () {
160
+ return this.tooltipDataTemplateProperty;
161
+ },
162
+ set: function (value) {
163
+ this.tooltipDataTemplateProperty = value;
164
+ if (this.tooltipAnnotation) {
165
+ this.tooltipAnnotation.tooltipDataTemplate = value;
166
+ }
167
+ },
168
+ enumerable: false,
169
+ configurable: true
170
+ });
171
+ Object.defineProperty(TooltipModifier3D.prototype, "tooltipContainerBackground", {
172
+ get: function () {
173
+ return this.tooltipContainerBackgroundProperty;
174
+ },
175
+ set: function (value) {
176
+ if (this.tooltipContainerBackgroundProperty !== value) {
177
+ this.tooltipContainerBackgroundProperty = value;
178
+ if (this.tooltipAnnotation) {
179
+ this.tooltipAnnotation.containerBackground = value;
180
+ }
181
+ }
182
+ },
183
+ enumerable: false,
184
+ configurable: true
185
+ });
186
+ Object.defineProperty(TooltipModifier3D.prototype, "tooltipLegendOffsetX", {
187
+ get: function () {
188
+ return this.tooltipLegendOffsetXProperty;
189
+ },
190
+ set: function (value) {
191
+ if (this.tooltipLegendOffsetXProperty !== value) {
192
+ this.tooltipLegendOffsetXProperty = value;
193
+ if (this.tooltipAnnotation) {
194
+ this.tooltipAnnotation.tooltipLegendOffsetX = value;
195
+ }
196
+ }
197
+ },
198
+ enumerable: false,
199
+ configurable: true
200
+ });
201
+ Object.defineProperty(TooltipModifier3D.prototype, "tooltipLegendOffsetY", {
202
+ get: function () {
203
+ return this.tooltipLegendOffsetYProperty;
204
+ },
205
+ set: function (value) {
206
+ if (this.tooltipLegendOffsetYProperty !== value) {
207
+ this.tooltipLegendOffsetYProperty = value;
208
+ if (this.tooltipAnnotation) {
209
+ this.tooltipAnnotation.tooltipLegendOffsetY = value;
210
+ }
211
+ }
212
+ },
213
+ enumerable: false,
214
+ configurable: true
215
+ });
216
+ Object.defineProperty(TooltipModifier3D.prototype, "tooltipTextStroke", {
217
+ get: function () {
218
+ return this.tooltipTextStrokeProperty;
219
+ },
220
+ set: function (value) {
221
+ if (this.tooltipTextStrokeProperty !== value) {
222
+ this.tooltipTextStrokeProperty = value;
223
+ if (this.tooltipAnnotation) {
224
+ this.tooltipAnnotation.textStroke = value;
225
+ }
226
+ }
227
+ },
228
+ enumerable: false,
229
+ configurable: true
230
+ });
231
+ Object.defineProperty(TooltipModifier3D.prototype, "placementDivId", {
232
+ /**
233
+ * Gets or sets the parent div element reference or id for the Tooltip
234
+ */
235
+ get: function () {
236
+ return this.placementDivIdProperty;
237
+ },
238
+ /**
239
+ * Gets or sets the parent div element reference or id for the Tooltip
240
+ */
241
+ set: function (value) {
242
+ if (this.placementDivIdProperty !== value) {
243
+ this.placementDivIdProperty = value;
244
+ this.notifyPropertyChanged("PLACEMENT_DIV_ID");
245
+ }
246
+ },
247
+ enumerable: false,
248
+ configurable: true
249
+ });
250
+ /** @inheritDoc */
251
+ TooltipModifier3D.prototype.onAttach = function () {
252
+ _super.prototype.onAttach.call(this);
253
+ if (this.parentSurface) {
254
+ // Globally enable hit-test and selection pass (comes with a minor performance hit)
255
+ this.parentSurface.isHitTestEnabled = true;
256
+ // Create Crosshair entity and add to the scene
257
+ this.crosshairEntity = (0, Deleter_1.deleteSafe)(this.crosshairEntity);
258
+ this.crosshairEntity = new CrosshairLinesSceneEntity_1.CrosshairLinesSceneEntity(this.parentSurface.webAssemblyContext3D);
259
+ this.parentSurface.rootEntity.children.add(this.crosshairEntity);
260
+ this.tooltipAnnotation = new TooltipSvgAnnotation3D_1.TooltipSvgAnnotation3D({
261
+ xCoordinateMode: AnnotationBase_1.ECoordinateMode.Pixel,
262
+ yCoordinateMode: AnnotationBase_1.ECoordinateMode.Pixel,
263
+ tooltipSvgTemplate: this.tooltipSvgTemplate,
264
+ containerBackground: this.tooltipContainerBackground,
265
+ textStroke: this.tooltipTextStroke,
266
+ tooltipLegendTemplate: this.tooltipLegendTemplate,
267
+ tooltipLegendOffsetX: this.tooltipLegendOffsetX,
268
+ tooltipLegendOffsetY: this.tooltipLegendOffsetY,
269
+ placementDivId: this.placementDivId,
270
+ tooltipDataTemplate: this.tooltipDataTemplate
271
+ });
272
+ this.parentSurface.modifierAnnotations.add(this.tooltipAnnotation);
273
+ }
274
+ };
275
+ /** @inheritDoc */
276
+ TooltipModifier3D.prototype.onDetach = function () {
277
+ _super.prototype.onDetach.call(this);
278
+ if (this.parentSurface) {
279
+ this.parentSurface.rootEntity.children.remove(this.crosshairEntity);
280
+ this.tooltipAnnotation.delete();
281
+ this.parentSurface.modifierAnnotations.remove(this.tooltipAnnotation);
282
+ }
283
+ this.crosshairEntity = (0, Deleter_1.deleteSafe)(this.crosshairEntity);
284
+ };
285
+ /** @inheritDoc */
286
+ TooltipModifier3D.prototype.modifierMouseMove = function (args) {
287
+ var _a, _b, _c, _d, _e;
288
+ _super.prototype.modifierMouseMove.call(this, args);
289
+ var _f = args.mousePoint, x = _f.x, y = _f.y;
290
+ var seriesInfo = this.getIncludedSeries()
291
+ .map(function (rs) { return rs.hitTest(args.mousePoint); })
292
+ .find(function (result) { return result.isHit; });
293
+ if (seriesInfo === null || seriesInfo === void 0 ? void 0 : seriesInfo.isHit) {
294
+ // console.log(`TooltipModifier3D: HitTest at (${x}, ${y})`);
295
+ var xyzSeriesInfo = seriesInfo;
296
+ // if (xyzSeriesInfo.dataSeriesIndex) {
297
+ // console.log(`... XYZ Series hit = ${seriesInfo.dataSeriesName ?? "Unknown"}`);
298
+ // console.log(`... Index at ${xyzSeriesInfo.dataSeriesIndex}`);
299
+ // console.log(`... World coords at ${seriesInfo.hitWorldCoords.toString()}`);
300
+ // console.log(`... Data at ${seriesInfo.xValue}, ${seriesInfo.yValue}, ${seriesInfo.zValue}`);
301
+ // }
302
+ // const heightMapSeriesInfo = seriesInfo as SurfaceMeshSeriesInfo3D;
303
+ // if (heightMapSeriesInfo.xIndex && heightMapSeriesInfo.zIndex) {
304
+ // console.log(`... Mesh Series hit = ${seriesInfo.dataSeriesName ?? "Unknown"}`);
305
+ // console.log(`... X,Z index at ${heightMapSeriesInfo.xIndex}, ${heightMapSeriesInfo.zIndex}`);
306
+ // console.log(`... World coords at ${seriesInfo.hitWorldCoords.toString()}`);
307
+ // console.log(`... Data at ${seriesInfo.yValue}, ${seriesInfo.yValue}, ${seriesInfo.zValue}`);
308
+ // }
309
+ if (this.crosshairEntity && this.isCrosshairVisible) {
310
+ this.crosshairEntity.worldDimensions = (_a = this.parentSurface) === null || _a === void 0 ? void 0 : _a.worldDimensions;
311
+ this.crosshairEntity.cameraPosition = (_c = (_b = this.parentSurface) === null || _b === void 0 ? void 0 : _b.camera) === null || _c === void 0 ? void 0 : _c.position;
312
+ this.crosshairEntity.stroke = this.crosshairStroke;
313
+ this.crosshairEntity.strokeThickness = this.crosshairStrokeThickness;
314
+ this.crosshairEntity.location = seriesInfo.hitWorldCoords;
315
+ this.crosshairEntity.isVisible = this.isCrosshairVisible;
316
+ (_d = this.parentSurface) === null || _d === void 0 ? void 0 : _d.invalidateElement();
317
+ }
318
+ this.tooltipAnnotation.isHidden = !this.showTooltip;
319
+ if (this.showTooltip) {
320
+ this.tooltipAnnotation.x1 = x;
321
+ this.tooltipAnnotation.y1 = y;
322
+ }
323
+ if (this.showTooltip || this.tooltipLegendTemplate) {
324
+ this.tooltipAnnotation.seriesInfo = seriesInfo;
325
+ }
326
+ }
327
+ else {
328
+ this.tooltipAnnotation.seriesInfo = undefined;
329
+ this.crosshairEntity.isVisible = false;
330
+ this.tooltipAnnotation.isHidden = true;
331
+ (_e = this.parentSurface) === null || _e === void 0 ? void 0 : _e.invalidateElement();
332
+ }
333
+ };
334
+ return TooltipModifier3D;
335
+ }(ChartModifierBase3D_1.ChartModifierBase3D));
336
+ exports.TooltipModifier3D = TooltipModifier3D;
337
+ /** @ignore */
338
+ var defaultTooltipDataTemplate3D = function (seriesInfo, svgAnnotation) {
339
+ var valuesWithLabels = [];
340
+ if (svgAnnotation.title) {
341
+ valuesWithLabels.push(svgAnnotation.title);
342
+ }
343
+ if (seriesInfo && seriesInfo.isHit) {
344
+ if (seriesInfo.dataSeriesName) {
345
+ valuesWithLabels.push(seriesInfo.dataSeriesName);
346
+ }
347
+ if (seriesInfo.dataSeriesType === BaseDataSeries3D_1.EDataSeriesType3D.Xyz3D) {
348
+ valuesWithLabels.push("X: ".concat(seriesInfo.xValue));
349
+ valuesWithLabels.push("Y: ".concat(seriesInfo.yValue));
350
+ valuesWithLabels.push("Z: ".concat(seriesInfo.zValue));
351
+ }
352
+ else if (seriesInfo.dataSeriesType === BaseDataSeries3D_1.EDataSeriesType3D.UniformGrid3D) {
353
+ valuesWithLabels.push("X: ".concat(seriesInfo.xValue));
354
+ valuesWithLabels.push("Y: ".concat(seriesInfo.yValue));
355
+ valuesWithLabels.push("Z: ".concat(seriesInfo.zValue));
356
+ }
357
+ }
358
+ return valuesWithLabels;
359
+ };
360
+ /** @ignore */
361
+ var defaultTooltipTemplate3D = function (seriesInfos, svgAnnotation) {
362
+ var _a;
363
+ var id = "id_".concat(Date.now());
364
+ var tooltipDataTemplate = (_a = svgAnnotation.tooltipDataTemplate) !== null && _a !== void 0 ? _a : defaultTooltipDataTemplate3D;
365
+ var valuesWithLabels = tooltipDataTemplate(seriesInfos, svgAnnotation);
366
+ if (valuesWithLabels.length === 0) {
367
+ return "<svg></svg>";
368
+ }
369
+ // tooltip size
370
+ var _b = (0, CursorModifier_1.calcTooltipSize)(valuesWithLabels), width = _b.width, height = _b.height;
371
+ // adjust position
372
+ (0, exports.adjustTooltipPosition3D)(width, height, svgAnnotation);
373
+ var valuesBlock = "";
374
+ valuesWithLabels.forEach(function (val, index) {
375
+ valuesBlock += "<tspan x=\"8\" dy=\"1.2em\">".concat(val, "</tspan>");
376
+ });
377
+ var tooltipFill = svgAnnotation.containerBackground;
378
+ var tooltipStroke = svgAnnotation.textStroke;
379
+ 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>");
380
+ };
381
+ /** Relocate the tooltip so that it is always within the seriesViewRect */
382
+ var adjustTooltipPosition3D = function (width, height, svgAnnotation) {
383
+ var seriesViewRect = svgAnnotation.parentSurface.seriesViewRect;
384
+ var xCoord = svgAnnotation.x1;
385
+ var yCoord = svgAnnotation.y1;
386
+ var xCoordShift = (0, translate_1.translateToNotScaled)(seriesViewRect.width) - xCoord < width ? -width : 5;
387
+ var yCoordShift = (0, translate_1.translateToNotScaled)(seriesViewRect.height) - yCoord < height ? -height : 5;
388
+ svgAnnotation.xCoordShift = xCoordShift;
389
+ svgAnnotation.yCoordShift = yCoordShift;
390
+ };
391
+ 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;
@@ -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
@@ -0,0 +1,88 @@
1
+ import { CoordinateCalculatorBase } from "../../../Charting/Numerics/CoordinateCalculators/CoordinateCalculatorBase";
2
+ import { EAnnotationType } from "../../../Charting/Visuals/Annotations/IAnnotation";
3
+ import { ISvgAnnotationBaseOptions, SvgAnnotationBase } from "../../../Charting/Visuals/Annotations/SvgAnnotationBase";
4
+ import { SeriesInfo3D } from "../RenderableSeries/SeriesInfo3D";
5
+ export declare type TTooltip3DSvgTemplate = (seriesInfo: SeriesInfo3D, svgAnnotation: TooltipSvgAnnotation3D) => string;
6
+ export declare type TTooltip3DDataTemplate = (seriesInfo: SeriesInfo3D, svgAnnotation: TooltipSvgAnnotation3D) => string[];
7
+ export interface ITooltipSvgAnnotation3DOptions extends ISvgAnnotationBaseOptions {
8
+ title?: string;
9
+ tooltipSvgTemplate?: TTooltip3DSvgTemplate;
10
+ containerBackground?: string;
11
+ textStroke?: string;
12
+ tooltipLegendTemplate?: TTooltip3DSvgTemplate;
13
+ tooltipLegendOffsetX?: number;
14
+ tooltipLegendOffsetY?: number;
15
+ placementDivId?: string;
16
+ tooltipDataTemplate?: TTooltip3DDataTemplate;
17
+ }
18
+ /**
19
+ * A Tooltip Annotation which provides an SVG tooltip over the chart. Used by the {@link TooltipModifier3D}
20
+ */
21
+ export declare class TooltipSvgAnnotation3D extends SvgAnnotationBase {
22
+ /** @inheritDoc */
23
+ readonly type = EAnnotationType.SVG;
24
+ private titleProperty;
25
+ private tooltipSvgTemplateProperty;
26
+ private seriesInfoProperty;
27
+ private containerBackgroundProperty;
28
+ private textStrokeProperty;
29
+ private tooltipLegendTemplateProperty;
30
+ private tooltipLegendOffsetXProperty;
31
+ private tooltipLegendOffsetYProperty;
32
+ private tooltipDataTemplateProperty;
33
+ private svgLegend;
34
+ private isDirty;
35
+ private placementDivIdProperty?;
36
+ private svgDivRoot?;
37
+ /**
38
+ * Creates an instance of the {@link CursorTooltipSvgAnnotation}
39
+ * @param options
40
+ */
41
+ constructor(options: ITooltipSvgAnnotation3DOptions);
42
+ /**
43
+ * Gets or sets seriesInfos {@link SeriesInfo} value on the tooltip
44
+ */
45
+ get seriesInfo(): SeriesInfo3D;
46
+ /**
47
+ * Gets or sets seriesInfos {@link SeriesInfo} value on the tooltip
48
+ */
49
+ set seriesInfo(newSeriesInfo: SeriesInfo3D);
50
+ get title(): string;
51
+ set title(value: string);
52
+ get tooltipSvgTemplate(): TTooltip3DSvgTemplate;
53
+ set tooltipSvgTemplate(value: TTooltip3DSvgTemplate);
54
+ get tooltipLegendTemplate(): TTooltip3DSvgTemplate;
55
+ set tooltipLegendTemplate(value: TTooltip3DSvgTemplate);
56
+ get tooltipDataTemplate(): TTooltip3DDataTemplate;
57
+ set tooltipDataTemplate(value: TTooltip3DDataTemplate);
58
+ get containerBackground(): string;
59
+ set containerBackground(value: string);
60
+ get tooltipLegendOffsetX(): number;
61
+ set tooltipLegendOffsetX(value: number);
62
+ get tooltipLegendOffsetY(): number;
63
+ set tooltipLegendOffsetY(value: number);
64
+ get textStroke(): string;
65
+ set textStroke(value: string);
66
+ /**
67
+ * Gets or sets the parent div element reference or id for the Tooltip
68
+ */
69
+ get placementDivId(): string;
70
+ /**
71
+ * Gets or sets the parent div element reference or id for the Tooltip
72
+ */
73
+ set placementDivId(value: string);
74
+ /**
75
+ * @inheritDoc
76
+ */
77
+ update(xCalc: CoordinateCalculatorBase, yCalc: CoordinateCalculatorBase, xCoordSvgTrans: number, yCoordSvgTrans: number): void;
78
+ /** @inheritDoc */
79
+ delete(): void;
80
+ protected notifyPropertyChanged(propertyName: string): void;
81
+ /**
82
+ * @inheritDoc
83
+ */
84
+ protected create(xCalc: CoordinateCalculatorBase, yCalc: CoordinateCalculatorBase, xCoordSvgTrans: number, yCoordSvgTrans: number): void;
85
+ private updateTooltip;
86
+ private updateLegendTooltip;
87
+ private updateExternalLegendTooltip;
88
+ }