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.
- package/Charting/ChartModifiers/ChartModifierBase.d.ts +15 -1
- package/Charting/ChartModifiers/ChartModifierBase.js +65 -7
- package/Charting/ChartModifiers/CursorModifier.js +13 -1
- package/Charting/ChartModifiers/LegendModifier.d.ts +1 -1
- package/Charting/ChartModifiers/LegendModifier.js +8 -6
- package/Charting/ChartModifiers/PinchZoomModifier.d.ts +38 -8
- package/Charting/ChartModifiers/PinchZoomModifier.js +103 -40
- package/Charting/ChartModifiers/RolloverModifier.js +10 -3
- package/Charting/ChartModifiers/RubberBandXyZoomModifier.d.ts +1 -1
- package/Charting/ChartModifiers/SeriesSelectionModifier.js +32 -24
- package/Charting/ChartModifiers/ZoomPanModifier.d.ts +13 -38
- package/Charting/ChartModifiers/ZoomPanModifier.js +54 -99
- package/Charting/Drawing/BaseCache.d.ts +2 -1
- package/Charting/Drawing/BaseCache.js +40 -7
- package/Charting/Drawing/RenderSurface.d.ts +1 -0
- package/Charting/Drawing/RenderSurface.js +5 -1
- package/Charting/Drawing/SolidBrushCache.d.ts +2 -1
- package/Charting/Drawing/SolidBrushCache.js +23 -3
- package/Charting/Drawing/WebGlBrush.d.ts +2 -1
- package/Charting/Drawing/WebGlBrush.js +22 -3
- package/Charting/Drawing/WebGlPen.d.ts +2 -1
- package/Charting/Drawing/WebGlPen.js +23 -4
- package/Charting/Drawing/WebGlRenderContext2D.d.ts +4 -3
- package/Charting/Drawing/WebGlRenderContext2D.js +26 -7
- package/Charting/Model/BaseDataSeries.d.ts +67 -2
- package/Charting/Model/BaseDataSeries.js +193 -42
- package/Charting/Model/BaseHeatmapDataSeries.js +1 -1
- package/Charting/Model/ChartData/SeriesInfo.d.ts +16 -0
- package/Charting/Model/ChartData/SeriesInfo.js +7 -0
- package/Charting/Model/ChartData/XyzSeriesInfo.d.ts +8 -0
- package/Charting/Model/ChartData/XyzSeriesInfo.js +36 -0
- package/Charting/Model/DoubleVectorProvider.d.ts +19 -0
- package/Charting/Model/DoubleVectorProvider.js +95 -0
- package/Charting/Model/HlcDataSeries.d.ts +3 -0
- package/Charting/Model/HlcDataSeries.js +44 -15
- package/Charting/Model/IDataSeries.d.ts +23 -0
- package/Charting/Model/NonUniformHeatmapDataSeries.js +2 -0
- package/Charting/Model/OhlcDataSeries.d.ts +3 -0
- package/Charting/Model/OhlcDataSeries.js +56 -24
- package/Charting/Model/PointSeries/BasePointSeriesResampled.d.ts +4 -5
- package/Charting/Model/PointSeries/BasePointSeriesResampled.js +29 -21
- package/Charting/Model/PointSeries/BasePointSeriesWrapped.d.ts +2 -0
- package/Charting/Model/PointSeries/BasePointSeriesWrapped.js +2 -0
- package/Charting/Model/PointSeries/IPointSeries.d.ts +2 -1
- package/Charting/Model/PointSeries/OhlcPointSeriesResampled.js +1 -1
- package/Charting/Model/PointSeries/XyPointSeriesWrapped.d.ts +2 -1
- package/Charting/Model/PointSeries/XyPointSeriesWrapped.js +2 -2
- package/Charting/Model/PointSeries/XyyPointSeriesResampled.js +1 -1
- package/Charting/Model/UniformHeatmapDataSeries.d.ts +31 -11
- package/Charting/Model/UniformHeatmapDataSeries.js +72 -4
- package/Charting/Model/XyDataSeries.d.ts +0 -8
- package/Charting/Model/XyDataSeries.js +21 -5
- package/Charting/Model/XyTextDataSeries.d.ts +2 -0
- package/Charting/Model/XyTextDataSeries.js +35 -4
- package/Charting/Model/XyyDataSeries.d.ts +2 -0
- package/Charting/Model/XyyDataSeries.js +35 -10
- package/Charting/Model/XyzDataSeries.d.ts +3 -0
- package/Charting/Model/XyzDataSeries.js +36 -10
- package/Charting/Numerics/CoordinateCalculators/CategoryCoordinateCalculator.d.ts +3 -5
- package/Charting/Numerics/CoordinateCalculators/CategoryCoordinateCalculator.js +5 -7
- package/Charting/Numerics/CoordinateCalculators/CoordinateCalculatorBase.d.ts +2 -1
- package/Charting/Numerics/CoordinateCalculators/CoordinateCalculatorBase.js +29 -9
- package/Charting/Numerics/CoordinateCalculators/FlippedCategoryCoordinateCalculator.d.ts +3 -5
- package/Charting/Numerics/CoordinateCalculators/FlippedCategoryCoordinateCalculator.js +5 -7
- package/Charting/Numerics/Resamplers/ExtremeResamplerHelper.d.ts +14 -10
- package/Charting/Numerics/Resamplers/ExtremeResamplerHelper.js +105 -69
- package/Charting/Numerics/Resamplers/ResamplingParams.d.ts +4 -2
- package/Charting/Numerics/Resamplers/ResamplingParams.js +12 -7
- package/Charting/Numerics/TickCoordinateProviders/TickCoordinatesProvider.d.ts +5 -0
- package/Charting/Numerics/TickCoordinateProviders/TickCoordinatesProvider.js +7 -0
- package/Charting/Numerics/TickProviders/NumericTickProvider.js +3 -4
- package/Charting/Numerics/TickProviders/TickProvider.d.ts +5 -0
- package/Charting/Numerics/TickProviders/TickProvider.js +7 -0
- package/Charting/Services/SciChartRenderer.js +15 -5
- package/Charting/Services/TitleRenderer.d.ts +2 -1
- package/Charting/Services/TitleRenderer.js +35 -14
- package/Charting/Visuals/Annotations/AdornerLayer.d.ts +1 -1
- package/Charting/Visuals/Annotations/AnnotationBase.d.ts +6 -6
- package/Charting/Visuals/Annotations/AnnotationBase.js +81 -61
- package/Charting/Visuals/Annotations/CursorTooltipSvgAnnotation.js +8 -0
- package/Charting/Visuals/Annotations/IAnnotation.d.ts +9 -4
- package/Charting/Visuals/Annotations/IAnnotation.js +6 -0
- package/Charting/Visuals/Annotations/LineAnnotation.js +3 -1
- package/Charting/Visuals/Annotations/RenderContextAnnotationBase.d.ts +5 -0
- package/Charting/Visuals/Annotations/RenderContextAnnotationBase.js +16 -0
- package/Charting/Visuals/Annotations/RolloverTooltipSvgAnnotation.js +6 -0
- package/Charting/Visuals/Annotations/constants.d.ts +1 -0
- package/Charting/Visuals/Annotations/constants.js +1 -0
- package/Charting/Visuals/Axis/AxisBase2D.d.ts +20 -5
- package/Charting/Visuals/Axis/AxisBase2D.js +46 -10
- package/Charting/Visuals/Axis/AxisCore.d.ts +4 -1
- package/Charting/Visuals/Axis/AxisCore.js +100 -54
- package/Charting/Visuals/Axis/AxisRenderer.d.ts +2 -1
- package/Charting/Visuals/Axis/AxisRenderer.js +40 -16
- package/Charting/Visuals/Axis/AxisTitleRenderer.d.ts +1 -0
- package/Charting/Visuals/Axis/AxisTitleRenderer.js +4 -0
- package/Charting/Visuals/Axis/CategoryAxisBase.js +4 -4
- package/Charting/Visuals/Axis/DeltaCalculator/DateTimeDeltaCalculator.js +14 -9
- package/Charting/Visuals/Axis/DeltaCalculator/DeltaCalculator.d.ts +5 -0
- package/Charting/Visuals/Axis/DeltaCalculator/DeltaCalculator.js +7 -0
- package/Charting/Visuals/Axis/LabelProvider/LabelCache.d.ts +2 -2
- package/Charting/Visuals/Axis/LabelProvider/LabelCache.js +8 -1
- package/Charting/Visuals/Axis/LabelProvider/LabelProvider.d.ts +7 -1
- package/Charting/Visuals/Axis/LabelProvider/LabelProvider.js +34 -8
- package/Charting/Visuals/Axis/LabelProvider/LabelProviderBase2D.d.ts +4 -2
- package/Charting/Visuals/Axis/LabelProvider/LabelProviderBase2D.js +8 -2
- package/Charting/Visuals/Axis/LabelProvider/PieLabelProvider.d.ts +1 -0
- package/Charting/Visuals/Axis/LabelProvider/PieLabelProvider.js +1 -0
- package/Charting/Visuals/HeatmapLegend.d.ts +3 -2
- package/Charting/Visuals/HeatmapLegend.js +33 -12
- package/Charting/Visuals/Helpers/NativeObject.d.ts +8 -5
- package/Charting/Visuals/Helpers/NativeObject.js +42 -21
- package/Charting/Visuals/Helpers/drawLabel.js +3 -1
- package/Charting/Visuals/I2DSurfaceOptions.d.ts +0 -15
- package/Charting/Visuals/Legend/SciChartLegendBase.d.ts +3 -1
- package/Charting/Visuals/Legend/SciChartLegendBase.js +35 -14
- package/Charting/Visuals/Legend/SciChartPieLegend.js +1 -1
- package/Charting/Visuals/PointMarkers/BasePointMarker.d.ts +13 -1
- package/Charting/Visuals/PointMarkers/BasePointMarker.js +72 -19
- package/Charting/Visuals/PointMarkers/Constants.d.ts +2 -1
- package/Charting/Visuals/PointMarkers/Constants.js +1 -0
- package/Charting/Visuals/PointMarkers/IPointMarker.d.ts +2 -0
- package/Charting/Visuals/RenderableSeries/Animations/SeriesAnimation.js +4 -1
- package/Charting/Visuals/RenderableSeries/Animations/animationHelpers.d.ts +1 -1
- package/Charting/Visuals/RenderableSeries/BaseBandRenderableSeries.js +8 -7
- package/Charting/Visuals/RenderableSeries/BaseHeatmapRenderableSeries.d.ts +1 -0
- package/Charting/Visuals/RenderableSeries/BaseHeatmapRenderableSeries.js +5 -0
- package/Charting/Visuals/RenderableSeries/BaseOhlcRenderableSeries.js +10 -9
- package/Charting/Visuals/RenderableSeries/BaseRenderableSeries.d.ts +2 -1
- package/Charting/Visuals/RenderableSeries/BaseRenderableSeries.js +101 -69
- package/Charting/Visuals/RenderableSeries/BaseStackedCollection.js +13 -4
- package/Charting/Visuals/RenderableSeries/BaseStackedRenderableSeries.js +12 -3
- package/Charting/Visuals/RenderableSeries/DataLabels/BaseDataLabelProvider.d.ts +2 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/BaseDataLabelProvider.js +5 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/DataLabelProvider.js +6 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/DataLabelState.d.ts +1 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/DataLabelState.js +18 -5
- package/Charting/Visuals/RenderableSeries/DataLabels/NonUniformHeatmapDataLabelProvider.js +0 -1
- package/Charting/Visuals/RenderableSeries/DataLabels/TextDataLabelProvider.js +8 -2
- package/Charting/Visuals/RenderableSeries/DrawingProviders/BandSeriesDrawingProvider.d.ts +1 -0
- package/Charting/Visuals/RenderableSeries/DrawingProviders/BandSeriesDrawingProvider.js +35 -16
- package/Charting/Visuals/RenderableSeries/DrawingProviders/BaseSeriesDrawingProvider.d.ts +2 -1
- package/Charting/Visuals/RenderableSeries/DrawingProviders/BaseSeriesDrawingProvider.js +62 -33
- package/Charting/Visuals/RenderableSeries/DrawingProviders/BubbleSeriesDrawingProvider.d.ts +1 -0
- package/Charting/Visuals/RenderableSeries/DrawingProviders/BubbleSeriesDrawingProvider.js +30 -9
- package/Charting/Visuals/RenderableSeries/DrawingProviders/ColumnSeriesDrawingProvider.d.ts +1 -0
- package/Charting/Visuals/RenderableSeries/DrawingProviders/ColumnSeriesDrawingProvider.js +37 -16
- package/Charting/Visuals/RenderableSeries/DrawingProviders/HeatmapHelpers.d.ts +47 -0
- package/Charting/Visuals/RenderableSeries/DrawingProviders/HeatmapHelpers.js +258 -0
- package/Charting/Visuals/RenderableSeries/DrawingProviders/LineSeriesDrawingProvider.js +26 -2
- package/Charting/Visuals/RenderableSeries/DrawingProviders/MountainSeriesDrawingProvider.d.ts +1 -0
- package/Charting/Visuals/RenderableSeries/DrawingProviders/MountainSeriesDrawingProvider.js +34 -15
- package/Charting/Visuals/RenderableSeries/DrawingProviders/NonUniformHeatmapDrawingProvider.js +5 -230
- package/Charting/Visuals/RenderableSeries/DrawingProviders/OhlcSeriesDrawingProvider.d.ts +1 -0
- package/Charting/Visuals/RenderableSeries/DrawingProviders/OhlcSeriesDrawingProvider.js +62 -37
- package/Charting/Visuals/RenderableSeries/DrawingProviders/PointMarkerDrawingProvider.js +30 -3
- package/Charting/Visuals/RenderableSeries/DrawingProviders/UniformHeatmapDrawingProvider.d.ts +1 -0
- package/Charting/Visuals/RenderableSeries/DrawingProviders/UniformHeatmapDrawingProvider.js +4 -1
- package/Charting/Visuals/RenderableSeries/FastBubbleRenderableSeries.d.ts +0 -2
- package/Charting/Visuals/RenderableSeries/FastBubbleRenderableSeries.js +0 -4
- package/Charting/Visuals/RenderableSeries/FastTextRenderableSeries.d.ts +3 -0
- package/Charting/Visuals/RenderableSeries/FastTextRenderableSeries.js +10 -0
- package/Charting/Visuals/RenderableSeries/HitTest/BubbleSeriesHitTestProvider.d.ts +4 -0
- package/Charting/Visuals/RenderableSeries/HitTest/BubbleSeriesHitTestProvider.js +7 -0
- package/Charting/Visuals/RenderableSeries/HitTest/HitTestInfo.d.ts +4 -0
- package/Charting/Visuals/RenderableSeries/HitTest/HitTestInfo.js +9 -0
- package/Charting/Visuals/RenderableSeries/ShaderEffect.d.ts +3 -2
- package/Charting/Visuals/RenderableSeries/ShaderEffect.js +29 -9
- package/Charting/Visuals/RenderableSeries/SplineBandRenderableSeries.js +7 -0
- package/Charting/Visuals/RenderableSeries/SplineLineRenderableSeries.js +7 -0
- package/Charting/Visuals/RenderableSeries/SplineMountainRenderableSeries.js +7 -0
- package/Charting/Visuals/RenderableSeries/StackedColumnCollection.js +3 -0
- package/Charting/Visuals/RenderableSeries/StackedMountainCollection.d.ts +0 -2
- package/Charting/Visuals/RenderableSeries/StackedMountainCollection.js +4 -4
- package/Charting/Visuals/RenderableSeries/StackedMountainRenderableSeries.d.ts +1 -0
- package/Charting/Visuals/RenderableSeries/StackedMountainRenderableSeries.js +8 -0
- package/Charting/Visuals/RenderableSeries/XyScatterRenderableSeries.d.ts +1 -2
- package/Charting/Visuals/RenderableSeries/XyScatterRenderableSeries.js +8 -3
- package/Charting/Visuals/RubberBandSvgRect/RubberBandSvgRect.d.ts +3 -1
- package/Charting/Visuals/RubberBandSvgRect/RubberBandSvgRect.js +30 -10
- package/Charting/Visuals/SciChartDefaults.d.ts +10 -0
- package/Charting/Visuals/SciChartDefaults.js +10 -0
- package/Charting/Visuals/SciChartOverview.d.ts +2 -1
- package/Charting/Visuals/SciChartOverview.js +28 -8
- package/Charting/Visuals/SciChartPieSurface/SciChartPieSurface.d.ts +10 -3
- package/Charting/Visuals/SciChartPieSurface/SciChartPieSurface.js +118 -60
- package/Charting/Visuals/SciChartSurface.d.ts +4 -36
- package/Charting/Visuals/SciChartSurface.js +48 -61
- package/Charting/Visuals/SciChartSurfaceBase.d.ts +99 -13
- package/Charting/Visuals/SciChartSurfaceBase.js +155 -32
- package/Charting/Visuals/TextureManager/CanvasTexture.d.ts +2 -1
- package/Charting/Visuals/TextureManager/CanvasTexture.js +37 -17
- package/Charting/Visuals/TextureManager/TextureManager.d.ts +2 -1
- package/Charting/Visuals/TextureManager/TextureManager.js +27 -7
- package/Charting/Visuals/createMaster.d.ts +4 -2
- package/Charting/Visuals/createMaster.js +92 -28
- package/Charting/Visuals/createSingle.d.ts +0 -2
- package/Charting/Visuals/createSingle.js +44 -9
- package/Charting/Visuals/licenseManager2D.d.ts +7 -5
- package/Charting/Visuals/licenseManager2D.js +105 -53
- package/Charting/Visuals/loader.js +3 -1
- package/Charting/Visuals/sciChartInitCommon.d.ts +1 -1
- package/Charting/Visuals/sciChartInitCommon.js +5 -1
- package/Charting3D/CameraController.d.ts +1 -1
- package/Charting3D/CameraController.js +21 -7
- package/Charting3D/ChartModifiers/ChartModifierBase3D.d.ts +1 -0
- package/Charting3D/ChartModifiers/ChartModifierBase3D.js +4 -1
- package/Charting3D/ChartModifiers/OrbitModifier3D.d.ts +17 -5
- package/Charting3D/ChartModifiers/OrbitModifier3D.js +62 -26
- package/Charting3D/ChartModifiers/PinchZoomModifier3D.d.ts +81 -0
- package/Charting3D/ChartModifiers/PinchZoomModifier3D.js +164 -0
- package/Charting3D/ChartModifiers/TooltipModifier3D.d.ts +87 -0
- package/Charting3D/ChartModifiers/TooltipModifier3D.js +391 -0
- package/Charting3D/I3DSurfaceOptions.d.ts +10 -0
- package/Charting3D/I3DSurfaceOptions.js +2 -0
- package/Charting3D/Model/DataSeries/BaseDataSeries3D.d.ts +2 -1
- package/Charting3D/Model/DataSeries/BaseDataSeries3D.js +27 -6
- package/Charting3D/Model/DataSeries/UniformGridDataSeries3D.d.ts +8 -0
- package/Charting3D/Model/DataSeries/UniformGridDataSeries3D.js +12 -0
- package/Charting3D/Model/DataSeries/XyzDataSeries3D.d.ts +2 -2
- package/Charting3D/Model/DataSeries/XyzDataSeries3D.js +1 -1
- package/Charting3D/Vector3.d.ts +5 -0
- package/Charting3D/Vector3.js +7 -0
- package/Charting3D/Visuals/Annotations/TooltipSvgAnnotation3D.d.ts +88 -0
- package/Charting3D/Visuals/Annotations/TooltipSvgAnnotation3D.js +291 -0
- package/Charting3D/Visuals/Axis/AxisBase3D.d.ts +21 -2
- package/Charting3D/Visuals/Axis/AxisBase3D.js +48 -18
- package/Charting3D/Visuals/Axis/AxisBase3DLabelStyle.js +2 -1
- package/Charting3D/Visuals/Axis/AxisCubeEntity.d.ts +0 -4
- package/Charting3D/Visuals/Axis/AxisCubeEntity.js +3 -6
- package/Charting3D/Visuals/Axis/IAxisDescriptor.d.ts +2 -2
- package/Charting3D/Visuals/Axis/IAxisDescriptor.js +2 -2
- package/Charting3D/Visuals/Primitives/BaseSceneEntity3D.d.ts +41 -30
- package/Charting3D/Visuals/Primitives/BaseSceneEntity3D.js +78 -26
- package/Charting3D/Visuals/Primitives/CrosshairLinesSceneEntity.d.ts +47 -0
- package/Charting3D/Visuals/Primitives/CrosshairLinesSceneEntity.js +106 -0
- package/Charting3D/Visuals/Primitives/EntityIdProvider.d.ts +29 -0
- package/Charting3D/Visuals/Primitives/EntityIdProvider.js +28 -0
- package/Charting3D/Visuals/Primitives/PointLine3DSceneEntity.d.ts +51 -0
- package/Charting3D/Visuals/Primitives/PointLine3DSceneEntity.js +188 -0
- package/Charting3D/Visuals/Primitives/RenderableSeriesSceneEntity.d.ts +12 -0
- package/Charting3D/Visuals/Primitives/RenderableSeriesSceneEntity.js +14 -0
- package/Charting3D/Visuals/Primitives/ScatterPointsSceneEntity.d.ts +11 -0
- package/Charting3D/Visuals/Primitives/ScatterPointsSceneEntity.js +18 -0
- package/Charting3D/Visuals/Primitives/SurfaceMeshSceneEntity.d.ts +3 -0
- package/Charting3D/Visuals/Primitives/SurfaceMeshSceneEntity.js +15 -0
- package/Charting3D/Visuals/RenderableSeries/BaseRenderableSeries3D.d.ts +16 -1
- package/Charting3D/Visuals/RenderableSeries/BaseRenderableSeries3D.js +64 -12
- package/Charting3D/Visuals/RenderableSeries/Constants.d.ts +2 -0
- package/Charting3D/Visuals/RenderableSeries/Constants.js +2 -0
- package/Charting3D/Visuals/RenderableSeries/ESeriesType.d.ts +2 -1
- package/Charting3D/Visuals/RenderableSeries/ESeriesType.js +1 -0
- package/Charting3D/Visuals/RenderableSeries/HitTestInfo3D.d.ts +37 -0
- package/Charting3D/Visuals/RenderableSeries/HitTestInfo3D.js +22 -0
- package/Charting3D/Visuals/RenderableSeries/PointLineRenderableSeries3D.d.ts +64 -0
- package/Charting3D/Visuals/RenderableSeries/PointLineRenderableSeries3D.js +105 -0
- package/Charting3D/Visuals/RenderableSeries/SeriesInfo3D.d.ts +51 -0
- package/Charting3D/Visuals/RenderableSeries/SeriesInfo3D.js +32 -0
- package/Charting3D/Visuals/RenderableSeries/SurfaceMeshSeriesInfo3D.d.ts +15 -0
- package/Charting3D/Visuals/RenderableSeries/SurfaceMeshSeriesInfo3D.js +112 -0
- package/Charting3D/Visuals/RenderableSeries/XyzSeriesInfo3D.d.ts +20 -0
- package/Charting3D/Visuals/RenderableSeries/XyzSeriesInfo3D.js +60 -0
- package/Charting3D/Visuals/RootSceneEntity.d.ts +0 -4
- package/Charting3D/Visuals/RootSceneEntity.js +3 -8
- package/Charting3D/Visuals/SciChart3DRenderer.d.ts +2 -0
- package/Charting3D/Visuals/SciChart3DRenderer.js +49 -0
- package/Charting3D/Visuals/SciChart3DSurface.d.ts +44 -3
- package/Charting3D/Visuals/SciChart3DSurface.js +103 -9
- package/Charting3D/Visuals/ViewportManager3DBase.d.ts +4 -0
- package/Charting3D/Visuals/ViewportManager3DBase.js +7 -1
- package/Charting3D/Visuals/createMaster3d.d.ts +1 -2
- package/Charting3D/Visuals/createMaster3d.js +76 -14
- package/Charting3D/Visuals/createSingle3d.js +34 -4
- package/Charting3D/Visuals/licenseManager3D.js +29 -25
- package/Core/BuildStamp.d.ts +1 -1
- package/Core/BuildStamp.js +2 -2
- package/Core/DeletableEntity.d.ts +28 -0
- package/Core/DeletableEntity.js +141 -0
- package/Core/Globals.d.ts +11 -0
- package/Core/Globals.js +13 -0
- package/Core/Guard.d.ts +6 -0
- package/Core/Guard.js +10 -0
- package/Core/Mouse/MouseManager.d.ts +23 -0
- package/Core/Mouse/MouseManager.js +47 -0
- package/Core/Telemetry.js +4 -6
- package/_wasm/scichart.browser.js +1 -1
- package/_wasm/scichart2d.data +0 -0
- package/_wasm/scichart2d.js +4 -294
- package/_wasm/scichart2d.wasm +0 -0
- package/_wasm/scichart3d.data +0 -0
- package/_wasm/scichart3d.js +4 -294
- package/_wasm/scichart3d.wasm +0 -0
- package/index.d.ts +43 -2
- package/index.js +89 -27
- package/index.min.js +1 -1
- package/package.json +3 -4
- package/types/ChartModifierType.d.ts +2 -0
- package/types/ChartModifierType.js +2 -0
- package/types/DefaultRenderLayer.d.ts +9 -8
- package/types/DefaultRenderLayer.js +9 -8
- package/types/NumberArray.d.ts +1 -0
- package/types/NumberArray.js +12 -1
- package/types/SceneEntityType.d.ts +13 -5
- package/types/SceneEntityType.js +13 -5
- package/types/TSciChart.d.ts +37 -8
- package/types/TSciChart3D.d.ts +126 -7
- package/types/licensingClasses.d.ts +2 -1
- package/types/licensingClasses.js +1 -0
- package/utils/MemoryUsageHelper.d.ts +45 -0
- package/utils/MemoryUsageHelper.js +171 -0
- package/utils/array.d.ts +8 -0
- package/utils/array.js +58 -1
- package/utils/logger.d.ts +2 -0
- package/utils/logger.js +11 -0
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
declare type TWeakRef = {
|
|
2
|
+
deref: () => any;
|
|
3
|
+
};
|
|
4
|
+
/** @ignore */
|
|
5
|
+
declare type TObjectEntryInfo = {
|
|
6
|
+
isWasmObject: boolean;
|
|
7
|
+
/** WeakRef for the original object */
|
|
8
|
+
objectRef: TWeakRef;
|
|
9
|
+
};
|
|
10
|
+
export declare class ObjectRegistry {
|
|
11
|
+
protected weakMapRegistry: WeakMap<object, any>;
|
|
12
|
+
protected undeletedObjectsMap: Map<string, TObjectEntryInfo>;
|
|
13
|
+
protected uncollectedObjectsMap: Map<string, TObjectEntryInfo>;
|
|
14
|
+
protected finalizationRegistry: any;
|
|
15
|
+
add(obj: any, id: string, isWasmObject?: boolean): void;
|
|
16
|
+
remove(id: string): boolean;
|
|
17
|
+
getObjectId(obj: any): any;
|
|
18
|
+
has(id: string): boolean;
|
|
19
|
+
deleteIDeletableObjects(): void;
|
|
20
|
+
deleteWasmObjects(): void;
|
|
21
|
+
log(): void;
|
|
22
|
+
generateCurrentState(): any;
|
|
23
|
+
protected deleteEntry(entry: TObjectEntryInfo, key: string): void;
|
|
24
|
+
protected onCollect(id: string): void;
|
|
25
|
+
}
|
|
26
|
+
/** @ignore */
|
|
27
|
+
export declare const generateIdentifier: (entity: any) => string;
|
|
28
|
+
export declare class MemoryUsageHelper {
|
|
29
|
+
protected static isMemoryUsageDebugEnabledProperty: boolean;
|
|
30
|
+
static objectRegistry: ObjectRegistry;
|
|
31
|
+
static get isMemoryUsageDebugEnabled(): boolean;
|
|
32
|
+
static set isMemoryUsageDebugEnabled(value: boolean);
|
|
33
|
+
/**
|
|
34
|
+
* Adds entity to the object registry to keep track of it being collected
|
|
35
|
+
* @param entity
|
|
36
|
+
* @param id optional custom ID of the entity
|
|
37
|
+
*/
|
|
38
|
+
static register(entity: any, id?: string): void;
|
|
39
|
+
static unregister(id: string): void;
|
|
40
|
+
static destroyMultiChart(): void;
|
|
41
|
+
static destroySingleCharts(): void;
|
|
42
|
+
static destroyPieCharts(): void;
|
|
43
|
+
static destroyAllCharts(): void;
|
|
44
|
+
}
|
|
45
|
+
export {};
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MemoryUsageHelper = exports.generateIdentifier = exports.ObjectRegistry = void 0;
|
|
4
|
+
var Globals_1 = require("../Core/Globals");
|
|
5
|
+
var guid_1 = require("./guid");
|
|
6
|
+
var ObjectRegistry = /** @class */ (function () {
|
|
7
|
+
function ObjectRegistry() {
|
|
8
|
+
var _this = this;
|
|
9
|
+
this.weakMapRegistry = new WeakMap();
|
|
10
|
+
// This structure is useful for tracking DeletableEntity or Native objects
|
|
11
|
+
// which were not disposed using delete method
|
|
12
|
+
this.undeletedObjectsMap = new Map();
|
|
13
|
+
this.uncollectedObjectsMap = new Map();
|
|
14
|
+
// @ts-ignore
|
|
15
|
+
this.finalizationRegistry = new FinalizationRegistry(function (id) {
|
|
16
|
+
_this.uncollectedObjectsMap.delete(id);
|
|
17
|
+
_this.onCollect(id);
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
ObjectRegistry.prototype.add = function (obj, id, isWasmObject) {
|
|
21
|
+
if (isWasmObject === void 0) { isWasmObject = false; }
|
|
22
|
+
if (this.weakMapRegistry.has(obj)) {
|
|
23
|
+
console.warn("Adding existing entry to the registry!", id);
|
|
24
|
+
}
|
|
25
|
+
if (this.undeletedObjectsMap.has(id)) {
|
|
26
|
+
console.warn("Adding existing entry id to the registry!", id);
|
|
27
|
+
}
|
|
28
|
+
this.finalizationRegistry.register(obj, id);
|
|
29
|
+
this.weakMapRegistry.set(obj, id);
|
|
30
|
+
// @ts-ignore WeakRef
|
|
31
|
+
var objectRef = new WeakRef(obj);
|
|
32
|
+
var objInfo = { isWasmObject: isWasmObject, objectRef: objectRef };
|
|
33
|
+
if (obj.delete) {
|
|
34
|
+
this.undeletedObjectsMap.set(id, objInfo);
|
|
35
|
+
}
|
|
36
|
+
this.uncollectedObjectsMap.set(id, objInfo);
|
|
37
|
+
};
|
|
38
|
+
ObjectRegistry.prototype.remove = function (id) {
|
|
39
|
+
if (!this.undeletedObjectsMap.has(id) && !this.uncollectedObjectsMap.has(id)) {
|
|
40
|
+
console.warn("".concat(id, " was not found in the ObjectRegistry!"));
|
|
41
|
+
}
|
|
42
|
+
return this.undeletedObjectsMap.delete(id);
|
|
43
|
+
};
|
|
44
|
+
ObjectRegistry.prototype.getObjectId = function (obj) {
|
|
45
|
+
return this.weakMapRegistry.get(obj);
|
|
46
|
+
};
|
|
47
|
+
ObjectRegistry.prototype.has = function (id) {
|
|
48
|
+
return this.undeletedObjectsMap.has(id);
|
|
49
|
+
};
|
|
50
|
+
ObjectRegistry.prototype.deleteIDeletableObjects = function () {
|
|
51
|
+
var _this = this;
|
|
52
|
+
this.undeletedObjectsMap.forEach(function (entry, key) {
|
|
53
|
+
if (!entry.isWasmObject) {
|
|
54
|
+
_this.deleteEntry(entry, key);
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
};
|
|
58
|
+
ObjectRegistry.prototype.deleteWasmObjects = function () {
|
|
59
|
+
var _this = this;
|
|
60
|
+
this.undeletedObjectsMap.forEach(function (entry, key) {
|
|
61
|
+
if (entry.isWasmObject) {
|
|
62
|
+
_this.deleteEntry(entry, key);
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
};
|
|
66
|
+
ObjectRegistry.prototype.log = function () {
|
|
67
|
+
var _this = this;
|
|
68
|
+
var undeletedObjectsIds = Array.from(this.undeletedObjectsMap.keys());
|
|
69
|
+
var uncollectedObjectsIds = Array.from(this.uncollectedObjectsMap.keys());
|
|
70
|
+
var collectedNotDeleted = undeletedObjectsIds.filter(function (id) { return !_this.uncollectedObjectsMap.has(id); });
|
|
71
|
+
var deletedNotCollected = uncollectedObjectsIds.filter(function (id) { return !_this.undeletedObjectsMap.has(id); });
|
|
72
|
+
console.log("Object Registry Log Start:");
|
|
73
|
+
console.log("undeletedObjectsMap", this.undeletedObjectsMap);
|
|
74
|
+
console.log("uncollectedObjectsMap", this.uncollectedObjectsMap);
|
|
75
|
+
console.log("collectedNotDeleted", collectedNotDeleted);
|
|
76
|
+
console.log("deletedNotCollected", deletedNotCollected);
|
|
77
|
+
console.log("weakMap", this.weakMapRegistry);
|
|
78
|
+
console.log("Object Registry Log End");
|
|
79
|
+
};
|
|
80
|
+
ObjectRegistry.prototype.generateCurrentState = function () {
|
|
81
|
+
var undeletedObjectsIds = Array.from(this.undeletedObjectsMap.keys());
|
|
82
|
+
var uncollectedObjectsIds = Array.from(this.uncollectedObjectsMap.keys());
|
|
83
|
+
var state = {};
|
|
84
|
+
if (undeletedObjectsIds.length) {
|
|
85
|
+
state.undeletedObjectsIds = undeletedObjectsIds;
|
|
86
|
+
}
|
|
87
|
+
if (uncollectedObjectsIds.length) {
|
|
88
|
+
state.uncollectedObjectsIds = uncollectedObjectsIds;
|
|
89
|
+
}
|
|
90
|
+
return state;
|
|
91
|
+
};
|
|
92
|
+
ObjectRegistry.prototype.deleteEntry = function (entry, key) {
|
|
93
|
+
var originalObject = entry.objectRef.deref();
|
|
94
|
+
if (originalObject) {
|
|
95
|
+
originalObject.delete();
|
|
96
|
+
this.remove(key);
|
|
97
|
+
}
|
|
98
|
+
else {
|
|
99
|
+
console.warn("Looks like the ".concat(key, " has already been garbage collected, thus the proper cleanup could not be executed!"));
|
|
100
|
+
}
|
|
101
|
+
};
|
|
102
|
+
ObjectRegistry.prototype.onCollect = function (id) {
|
|
103
|
+
// Override with custom behavior
|
|
104
|
+
};
|
|
105
|
+
return ObjectRegistry;
|
|
106
|
+
}());
|
|
107
|
+
exports.ObjectRegistry = ObjectRegistry;
|
|
108
|
+
/** @ignore */
|
|
109
|
+
var generateIdentifier = function (entity) {
|
|
110
|
+
return "".concat(entity === null || entity === void 0 ? void 0 : entity.constructor.name, "_").concat((0, guid_1.generateGuid)());
|
|
111
|
+
};
|
|
112
|
+
exports.generateIdentifier = generateIdentifier;
|
|
113
|
+
var MemoryUsageHelper = /** @class */ (function () {
|
|
114
|
+
function MemoryUsageHelper() {
|
|
115
|
+
}
|
|
116
|
+
Object.defineProperty(MemoryUsageHelper, "isMemoryUsageDebugEnabled", {
|
|
117
|
+
get: function () {
|
|
118
|
+
return this.isMemoryUsageDebugEnabledProperty;
|
|
119
|
+
},
|
|
120
|
+
set: function (value) {
|
|
121
|
+
this.isMemoryUsageDebugEnabledProperty = value;
|
|
122
|
+
if (process.env.NODE_ENV !== "production") {
|
|
123
|
+
if (value && !MemoryUsageHelper.objectRegistry) {
|
|
124
|
+
MemoryUsageHelper.objectRegistry = new ObjectRegistry();
|
|
125
|
+
}
|
|
126
|
+
return;
|
|
127
|
+
}
|
|
128
|
+
if (value) {
|
|
129
|
+
console.warn("Memory usage debug enabled! Consider disabling it for production build 'MemoryUsageHelper.isMemoryUsageDebugEnabled = false'.");
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
enumerable: false,
|
|
133
|
+
configurable: true
|
|
134
|
+
});
|
|
135
|
+
/**
|
|
136
|
+
* Adds entity to the object registry to keep track of it being collected
|
|
137
|
+
* @param entity
|
|
138
|
+
* @param id optional custom ID of the entity
|
|
139
|
+
*/
|
|
140
|
+
MemoryUsageHelper.register = function (entity, id) {
|
|
141
|
+
var _a;
|
|
142
|
+
if (!entity) {
|
|
143
|
+
console.warn("Registering invalid object \"".concat(entity, "\"!"));
|
|
144
|
+
return;
|
|
145
|
+
}
|
|
146
|
+
(_a = MemoryUsageHelper.objectRegistry) === null || _a === void 0 ? void 0 : _a.add(entity, id !== null && id !== void 0 ? id : (0, exports.generateIdentifier)(entity));
|
|
147
|
+
};
|
|
148
|
+
MemoryUsageHelper.unregister = function (id) {
|
|
149
|
+
var _a;
|
|
150
|
+
(_a = MemoryUsageHelper.objectRegistry) === null || _a === void 0 ? void 0 : _a.remove(id);
|
|
151
|
+
};
|
|
152
|
+
MemoryUsageHelper.destroyMultiChart = function () {
|
|
153
|
+
Globals_1.sciChartDestinations.forEach(function (destination) { return destination.sciChartSurface.delete(true); });
|
|
154
|
+
Globals_1.sciChart3DDestinations.forEach(function (destination) { return destination.sciChartSurface.delete(true); });
|
|
155
|
+
};
|
|
156
|
+
MemoryUsageHelper.destroySingleCharts = function () {
|
|
157
|
+
Globals_1.sciChartSingleDestinations.forEach(function (destination) { return destination.sciChartSurface.delete(true); });
|
|
158
|
+
Globals_1.sciChart3DSingleDestinations.forEach(function (destination) { return destination.sciChartSurface.delete(true); });
|
|
159
|
+
};
|
|
160
|
+
MemoryUsageHelper.destroyPieCharts = function () {
|
|
161
|
+
Globals_1.sciChartPieDestinations.forEach(function (destination) { return destination.sciChartSurface.delete(true); });
|
|
162
|
+
};
|
|
163
|
+
MemoryUsageHelper.destroyAllCharts = function () {
|
|
164
|
+
MemoryUsageHelper.destroyMultiChart();
|
|
165
|
+
MemoryUsageHelper.destroySingleCharts();
|
|
166
|
+
MemoryUsageHelper.destroyPieCharts();
|
|
167
|
+
};
|
|
168
|
+
MemoryUsageHelper.isMemoryUsageDebugEnabledProperty = false;
|
|
169
|
+
return MemoryUsageHelper;
|
|
170
|
+
}());
|
|
171
|
+
exports.MemoryUsageHelper = MemoryUsageHelper;
|
package/utils/array.d.ts
CHANGED
|
@@ -18,3 +18,11 @@ export declare function isArraySorted(arr: NumberArray, ascending?: boolean): bo
|
|
|
18
18
|
* @returns
|
|
19
19
|
*/
|
|
20
20
|
export declare function makeIncArray(length: number, multiplier?: number, map?: (n: number, index?: number) => number): number[];
|
|
21
|
+
/**
|
|
22
|
+
* Helper function to append an array to a target array, treating the target as a circular buffer
|
|
23
|
+
* @param source
|
|
24
|
+
* @param target
|
|
25
|
+
* @param fifoCapacity
|
|
26
|
+
* @param startIndex
|
|
27
|
+
*/
|
|
28
|
+
export declare function appendRangeFifo(source: any[], target: any[], fifoCapacity: number, startIndex: number): void;
|
package/utils/array.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.makeIncArray = exports.isArraySorted = exports.arrayRemove = exports.areArraysEqual = exports.countUnique = exports.getUniqueValues = void 0;
|
|
3
|
+
exports.appendRangeFifo = exports.makeIncArray = exports.isArraySorted = exports.arrayRemove = exports.areArraysEqual = exports.countUnique = exports.getUniqueValues = void 0;
|
|
4
4
|
function getUniqueValues(array) {
|
|
5
5
|
var onlyUnique = function (value, index, self) {
|
|
6
6
|
if (value === undefined || value === null)
|
|
@@ -77,3 +77,60 @@ function makeIncArray(length, multiplier, map) {
|
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
79
|
exports.makeIncArray = makeIncArray;
|
|
80
|
+
/**
|
|
81
|
+
* Helper function to append an array to a target array, treating the target as a circular buffer
|
|
82
|
+
* @param source
|
|
83
|
+
* @param target
|
|
84
|
+
* @param fifoCapacity
|
|
85
|
+
* @param startIndex
|
|
86
|
+
*/
|
|
87
|
+
function appendRangeFifo(source, target, fifoCapacity, startIndex) {
|
|
88
|
+
var targetSize = target.length;
|
|
89
|
+
var length = source.length;
|
|
90
|
+
//console.log("s,t ", source, target);
|
|
91
|
+
if (fifoCapacity >= targetSize + length) {
|
|
92
|
+
// Space to append all data. Use normal method
|
|
93
|
+
target.length += length;
|
|
94
|
+
// merge new values into the collection
|
|
95
|
+
for (var i = 0; i < length; ++i) {
|
|
96
|
+
target[targetSize + i] = source[i];
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
else if (length > fifoCapacity) {
|
|
100
|
+
// new data is larger than buffer. Replace buffer with end of data
|
|
101
|
+
var dataIndex = length - fifoCapacity;
|
|
102
|
+
var dataThatWillFit = source.slice(dataIndex);
|
|
103
|
+
target = dataThatWillFit;
|
|
104
|
+
}
|
|
105
|
+
else if (fifoCapacity > targetSize) {
|
|
106
|
+
// buffer not full yet, but new data will overflow
|
|
107
|
+
var remainingCap = fifoCapacity - targetSize;
|
|
108
|
+
target.length = fifoCapacity;
|
|
109
|
+
for (var i = 0; i < length; ++i) {
|
|
110
|
+
if (i < remainingCap) {
|
|
111
|
+
target[targetSize + i] = source[i];
|
|
112
|
+
}
|
|
113
|
+
else {
|
|
114
|
+
target[remainingCap - i] = source[i];
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
else {
|
|
119
|
+
// buffer already full
|
|
120
|
+
var remainingCap = length;
|
|
121
|
+
if (startIndex + length > fifoCapacity) {
|
|
122
|
+
// need to do two writes
|
|
123
|
+
remainingCap = fifoCapacity - startIndex;
|
|
124
|
+
}
|
|
125
|
+
for (var i = 0; i < length; ++i) {
|
|
126
|
+
if (i < remainingCap) {
|
|
127
|
+
target[startIndex + i] = source[i];
|
|
128
|
+
}
|
|
129
|
+
else {
|
|
130
|
+
target[remainingCap - i] = source[i];
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
//console.log("t: ", target);
|
|
135
|
+
}
|
|
136
|
+
exports.appendRangeFifo = appendRangeFifo;
|
package/utils/logger.d.ts
CHANGED
package/utils/logger.js
CHANGED
|
@@ -4,6 +4,7 @@ exports.Logger = void 0;
|
|
|
4
4
|
var Logger = /** @class */ (function () {
|
|
5
5
|
function Logger() {
|
|
6
6
|
}
|
|
7
|
+
// public static enableLog = false;
|
|
7
8
|
Logger.log = function (message) {
|
|
8
9
|
var optionalParameters = [];
|
|
9
10
|
for (var _i = 1; _i < arguments.length; _i++) {
|
|
@@ -11,6 +12,16 @@ var Logger = /** @class */ (function () {
|
|
|
11
12
|
}
|
|
12
13
|
console.log(message, optionalParameters);
|
|
13
14
|
};
|
|
15
|
+
Logger.debug = function (message) {
|
|
16
|
+
var optionalParameters = [];
|
|
17
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
18
|
+
optionalParameters[_i - 1] = arguments[_i];
|
|
19
|
+
}
|
|
20
|
+
if (Logger.enableDebug) {
|
|
21
|
+
console.debug(message, optionalParameters);
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
Logger.enableDebug = false;
|
|
14
25
|
return Logger;
|
|
15
26
|
}());
|
|
16
27
|
exports.Logger = Logger;
|