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
|
@@ -1,14 +1,34 @@
|
|
|
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.BasePointSeriesResampled = void 0;
|
|
4
|
-
var
|
|
19
|
+
var DeletableEntity_1 = require("../../../Core/DeletableEntity");
|
|
20
|
+
var BasePointSeriesResampled = /** @class */ (function (_super) {
|
|
21
|
+
__extends(BasePointSeriesResampled, _super);
|
|
5
22
|
function BasePointSeriesResampled(wasmContext, xRange) {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
23
|
+
var _this = _super.call(this) || this;
|
|
24
|
+
_this.resampled = true;
|
|
25
|
+
_this.wasmContext = wasmContext;
|
|
26
|
+
_this.intIndexes = new wasmContext.IntVector();
|
|
27
|
+
_this.indexes = new wasmContext.SCRTDoubleVector();
|
|
28
|
+
_this.xValues = new wasmContext.SCRTDoubleVector();
|
|
29
|
+
_this.yValues = new wasmContext.SCRTDoubleVector();
|
|
30
|
+
_this.xRange = xRange;
|
|
31
|
+
return _this;
|
|
12
32
|
}
|
|
13
33
|
Object.defineProperty(BasePointSeriesResampled.prototype, "count", {
|
|
14
34
|
get: function () {
|
|
@@ -22,19 +42,7 @@ var BasePointSeriesResampled = /** @class */ (function () {
|
|
|
22
42
|
this.indexes.delete();
|
|
23
43
|
this.xValues.delete();
|
|
24
44
|
this.yValues.delete();
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* Updates SCRTDoubleVector from IntVector
|
|
28
|
-
*/
|
|
29
|
-
BasePointSeriesResampled.prototype.updateIndexes = function () {
|
|
30
|
-
var resultCount = this.count;
|
|
31
|
-
// console.log("resultCount", resultCount);
|
|
32
|
-
// console.log("this.indexes", this.indexes);
|
|
33
|
-
this.indexes.resizeFast(resultCount);
|
|
34
|
-
// TODO: Find an effective way to copy indexes
|
|
35
|
-
for (var i = 0; i < resultCount; i++) {
|
|
36
|
-
this.indexes.set(i, this.intIndexes.get(i));
|
|
37
|
-
}
|
|
45
|
+
this.wasmContext = undefined;
|
|
38
46
|
};
|
|
39
47
|
BasePointSeriesResampled.prototype.clearIntIndexes = function () {
|
|
40
48
|
this.intIndexes.clear();
|
|
@@ -52,5 +60,5 @@ var BasePointSeriesResampled = /** @class */ (function () {
|
|
|
52
60
|
console.log("yValues at end", this.yValues.get(end));
|
|
53
61
|
};
|
|
54
62
|
return BasePointSeriesResampled;
|
|
55
|
-
}());
|
|
63
|
+
}(DeletableEntity_1.DeletableEntity));
|
|
56
64
|
exports.BasePointSeriesResampled = BasePointSeriesResampled;
|
|
@@ -7,6 +7,8 @@ export declare class BasePointSeriesWrapped implements IPointSeries {
|
|
|
7
7
|
readonly xRange: NumberRange;
|
|
8
8
|
readonly xValues: SCRTDoubleVector;
|
|
9
9
|
readonly yValues: SCRTDoubleVector;
|
|
10
|
+
readonly resampled = false;
|
|
11
|
+
readonly fifoStartIndex: number;
|
|
10
12
|
protected dataSeries: IDataSeries;
|
|
11
13
|
protected indexesProperty: SCRTDoubleVector;
|
|
12
14
|
constructor(dataSeries: IDataSeries, yValues?: SCRTDoubleVector);
|
|
@@ -3,10 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.BasePointSeriesWrapped = void 0;
|
|
4
4
|
var BasePointSeriesWrapped = /** @class */ (function () {
|
|
5
5
|
function BasePointSeriesWrapped(dataSeries, yValues) {
|
|
6
|
+
this.resampled = false;
|
|
6
7
|
this.dataSeries = dataSeries;
|
|
7
8
|
this.count = dataSeries.count();
|
|
8
9
|
this.xValues = this.dataSeries.getNativeXValues();
|
|
9
10
|
this.yValues = yValues !== null && yValues !== void 0 ? yValues : this.dataSeries.getNativeYValues();
|
|
11
|
+
this.fifoStartIndex = dataSeries.fifoStartIndex;
|
|
10
12
|
}
|
|
11
13
|
Object.defineProperty(BasePointSeriesWrapped.prototype, "indexes", {
|
|
12
14
|
get: function () {
|
|
@@ -9,10 +9,11 @@ export interface IPointSeries {
|
|
|
9
9
|
readonly yValues: SCRTDoubleVector;
|
|
10
10
|
readonly count: number;
|
|
11
11
|
xRange: NumberRange;
|
|
12
|
+
readonly resampled: boolean;
|
|
13
|
+
fifoStartIndex: number;
|
|
12
14
|
}
|
|
13
15
|
export interface IPointSeriesResampled {
|
|
14
16
|
readonly intIndexes: IntVector;
|
|
15
|
-
updateIndexes(): void;
|
|
16
17
|
clearIntIndexes(): void;
|
|
17
18
|
}
|
|
18
19
|
export interface IXyPointSeries extends IPointSeries {
|
|
@@ -28,10 +28,10 @@ var OhlcPointSeriesResampled = /** @class */ (function (_super) {
|
|
|
28
28
|
return _this;
|
|
29
29
|
}
|
|
30
30
|
OhlcPointSeriesResampled.prototype.delete = function () {
|
|
31
|
-
_super.prototype.delete.call(this);
|
|
32
31
|
this.openValues.delete();
|
|
33
32
|
this.highValues.delete();
|
|
34
33
|
this.lowValues.delete();
|
|
34
|
+
_super.prototype.delete.call(this);
|
|
35
35
|
};
|
|
36
36
|
OhlcPointSeriesResampled.prototype.debugOutputForUnitTests = function () {
|
|
37
37
|
console.log("points count ".concat(this.count));
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { SCRTDoubleVector } from "../../../types/TSciChart";
|
|
1
2
|
import { IDataSeries } from "../IDataSeries";
|
|
2
3
|
import { BasePointSeriesWrapped } from "./BasePointSeriesWrapped";
|
|
3
4
|
import { IXyPointSeries } from "./IPointSeries";
|
|
4
5
|
export declare class XyPointSeriesWrapped extends BasePointSeriesWrapped implements IXyPointSeries {
|
|
5
|
-
constructor(dataSeries: IDataSeries);
|
|
6
|
+
constructor(dataSeries: IDataSeries, yValues?: SCRTDoubleVector);
|
|
6
7
|
}
|
|
@@ -19,8 +19,8 @@ exports.XyPointSeriesWrapped = void 0;
|
|
|
19
19
|
var BasePointSeriesWrapped_1 = require("./BasePointSeriesWrapped");
|
|
20
20
|
var XyPointSeriesWrapped = /** @class */ (function (_super) {
|
|
21
21
|
__extends(XyPointSeriesWrapped, _super);
|
|
22
|
-
function XyPointSeriesWrapped(dataSeries) {
|
|
23
|
-
return _super.call(this, dataSeries) || this;
|
|
22
|
+
function XyPointSeriesWrapped(dataSeries, yValues) {
|
|
23
|
+
return _super.call(this, dataSeries, yValues) || this;
|
|
24
24
|
}
|
|
25
25
|
return XyPointSeriesWrapped;
|
|
26
26
|
}(BasePointSeriesWrapped_1.BasePointSeriesWrapped));
|
|
@@ -25,8 +25,8 @@ var XyyPointSeriesResampled = /** @class */ (function (_super) {
|
|
|
25
25
|
return _this;
|
|
26
26
|
}
|
|
27
27
|
XyyPointSeriesResampled.prototype.delete = function () {
|
|
28
|
-
_super.prototype.delete.call(this);
|
|
29
28
|
this.y1Values.delete();
|
|
29
|
+
_super.prototype.delete.call(this);
|
|
30
30
|
};
|
|
31
31
|
XyyPointSeriesResampled.prototype.debugOutputForUnitTests = function () {
|
|
32
32
|
console.log("points count ".concat(this.count));
|
|
@@ -29,31 +29,51 @@ export declare class UniformHeatmapDataSeries extends BaseHeatmapDataSeries {
|
|
|
29
29
|
* @inheritDoc
|
|
30
30
|
*/
|
|
31
31
|
readonly type: EDataSeriesType;
|
|
32
|
+
private xRangeProperty;
|
|
33
|
+
private yRangeProperty;
|
|
34
|
+
private xStartProperty;
|
|
35
|
+
private xStepProperty;
|
|
36
|
+
private yStartProperty;
|
|
37
|
+
private yStepProperty;
|
|
38
|
+
/**
|
|
39
|
+
* Creates an instance of {@link UniformHeatmapDataSeries}
|
|
40
|
+
* @param webAssemblyContext the {@link TSciChart | SciChart WebAssembly Context} containing native methods
|
|
41
|
+
* and access to our underlying WebGL2 rendering engine
|
|
42
|
+
* @param options the {@link IUniformHeatmapSeriesOptions} which must be passed to configure the series
|
|
43
|
+
*/
|
|
44
|
+
constructor(webAssemblyContext: TSciChart, options: IUniformHeatmapSeriesOptions);
|
|
45
|
+
/**
|
|
46
|
+
* xStart defines the Start point on the {@link AxisBase2D| XAxis} where this heatmap will be drawn
|
|
47
|
+
*/
|
|
48
|
+
get xStart(): number;
|
|
32
49
|
/**
|
|
33
50
|
* xStart defines the Start point on the {@link AxisBase2D| XAxis} where this heatmap will be drawn
|
|
34
51
|
*/
|
|
35
|
-
|
|
52
|
+
set xStart(value: number);
|
|
53
|
+
/**
|
|
54
|
+
* xStep defines Step on the {@link AxisBase2D| XAxis} for each cell in the heatmap
|
|
55
|
+
*/
|
|
56
|
+
get xStep(): number;
|
|
36
57
|
/**
|
|
37
58
|
* xStep defines Step on the {@link AxisBase2D| XAxis} for each cell in the heatmap
|
|
38
59
|
*/
|
|
39
|
-
|
|
60
|
+
set xStep(value: number);
|
|
40
61
|
/**
|
|
41
62
|
* yStart defines the Start point on the {@link AxisBase2D| YAxis} where this heatmap will be drawn
|
|
42
63
|
*/
|
|
43
|
-
|
|
64
|
+
get yStart(): number;
|
|
65
|
+
/**
|
|
66
|
+
* yStart defines the Start point on the {@link AxisBase2D| YAxis} where this heatmap will be drawn
|
|
67
|
+
*/
|
|
68
|
+
set yStart(value: number);
|
|
44
69
|
/**
|
|
45
70
|
* yStep defines Step on the {@link AxisBase2D| YAxis} for each cell in the heatmap
|
|
46
71
|
*/
|
|
47
|
-
|
|
48
|
-
private xRangeProperty;
|
|
49
|
-
private yRangeProperty;
|
|
72
|
+
get yStep(): number;
|
|
50
73
|
/**
|
|
51
|
-
*
|
|
52
|
-
* @param webAssemblyContext the {@link TSciChart | SciChart WebAssembly Context} containing native methods
|
|
53
|
-
* and access to our underlying WebGL2 rendering engine
|
|
54
|
-
* @param options the {@link IUniformHeatmapSeriesOptions} which must be passed to configure the series
|
|
74
|
+
* yStep defines Step on the {@link AxisBase2D| YAxis} for each cell in the heatmap
|
|
55
75
|
*/
|
|
56
|
-
|
|
76
|
+
set yStep(value: number);
|
|
57
77
|
/**
|
|
58
78
|
* Gets the X-value at the specified index. This will be computed from constructor parameters xStep and xStart
|
|
59
79
|
* @param xIndex
|
|
@@ -33,14 +33,82 @@ var UniformHeatmapDataSeries = /** @class */ (function (_super) {
|
|
|
33
33
|
* @inheritDoc
|
|
34
34
|
*/
|
|
35
35
|
_this.type = IDataSeries_1.EDataSeriesType.HeatmapUniform;
|
|
36
|
-
_this.
|
|
37
|
-
_this.
|
|
38
|
-
_this.
|
|
39
|
-
_this.
|
|
36
|
+
_this.xStartProperty = options.xStart;
|
|
37
|
+
_this.xStepProperty = options.xStep;
|
|
38
|
+
_this.yStartProperty = options.yStart;
|
|
39
|
+
_this.yStepProperty = options.yStep;
|
|
40
40
|
_this.xRangeProperty = new NumberRange_1.NumberRange(_this.xStart, _this.getXValue(_this.arrayWidth));
|
|
41
41
|
_this.yRangeProperty = new NumberRange_1.NumberRange(_this.yStart, _this.getYValue(_this.arrayHeight));
|
|
42
42
|
return _this;
|
|
43
43
|
}
|
|
44
|
+
Object.defineProperty(UniformHeatmapDataSeries.prototype, "xStart", {
|
|
45
|
+
/**
|
|
46
|
+
* xStart defines the Start point on the {@link AxisBase2D| XAxis} where this heatmap will be drawn
|
|
47
|
+
*/
|
|
48
|
+
get: function () {
|
|
49
|
+
return this.xStartProperty;
|
|
50
|
+
},
|
|
51
|
+
/**
|
|
52
|
+
* xStart defines the Start point on the {@link AxisBase2D| XAxis} where this heatmap will be drawn
|
|
53
|
+
*/
|
|
54
|
+
set: function (value) {
|
|
55
|
+
this.xStartProperty = value;
|
|
56
|
+
this.notifyDataChanged(IDataSeries_1.EDataChangeType.Update);
|
|
57
|
+
},
|
|
58
|
+
enumerable: false,
|
|
59
|
+
configurable: true
|
|
60
|
+
});
|
|
61
|
+
Object.defineProperty(UniformHeatmapDataSeries.prototype, "xStep", {
|
|
62
|
+
/**
|
|
63
|
+
* xStep defines Step on the {@link AxisBase2D| XAxis} for each cell in the heatmap
|
|
64
|
+
*/
|
|
65
|
+
get: function () {
|
|
66
|
+
return this.xStepProperty;
|
|
67
|
+
},
|
|
68
|
+
/**
|
|
69
|
+
* xStep defines Step on the {@link AxisBase2D| XAxis} for each cell in the heatmap
|
|
70
|
+
*/
|
|
71
|
+
set: function (value) {
|
|
72
|
+
this.xStepProperty = value;
|
|
73
|
+
this.notifyDataChanged(IDataSeries_1.EDataChangeType.Update);
|
|
74
|
+
},
|
|
75
|
+
enumerable: false,
|
|
76
|
+
configurable: true
|
|
77
|
+
});
|
|
78
|
+
Object.defineProperty(UniformHeatmapDataSeries.prototype, "yStart", {
|
|
79
|
+
/**
|
|
80
|
+
* yStart defines the Start point on the {@link AxisBase2D| YAxis} where this heatmap will be drawn
|
|
81
|
+
*/
|
|
82
|
+
get: function () {
|
|
83
|
+
return this.yStartProperty;
|
|
84
|
+
},
|
|
85
|
+
/**
|
|
86
|
+
* yStart defines the Start point on the {@link AxisBase2D| YAxis} where this heatmap will be drawn
|
|
87
|
+
*/
|
|
88
|
+
set: function (value) {
|
|
89
|
+
this.yStartProperty = value;
|
|
90
|
+
this.notifyDataChanged(IDataSeries_1.EDataChangeType.Update);
|
|
91
|
+
},
|
|
92
|
+
enumerable: false,
|
|
93
|
+
configurable: true
|
|
94
|
+
});
|
|
95
|
+
Object.defineProperty(UniformHeatmapDataSeries.prototype, "yStep", {
|
|
96
|
+
/**
|
|
97
|
+
* yStep defines Step on the {@link AxisBase2D| YAxis} for each cell in the heatmap
|
|
98
|
+
*/
|
|
99
|
+
get: function () {
|
|
100
|
+
return this.yStepProperty;
|
|
101
|
+
},
|
|
102
|
+
/**
|
|
103
|
+
* yStep defines Step on the {@link AxisBase2D| YAxis} for each cell in the heatmap
|
|
104
|
+
*/
|
|
105
|
+
set: function (value) {
|
|
106
|
+
this.yStepProperty = value;
|
|
107
|
+
this.notifyDataChanged(IDataSeries_1.EDataChangeType.Update);
|
|
108
|
+
},
|
|
109
|
+
enumerable: false,
|
|
110
|
+
configurable: true
|
|
111
|
+
});
|
|
44
112
|
/**
|
|
45
113
|
* Gets the X-value at the specified index. This will be computed from constructor parameters xStep and xStart
|
|
46
114
|
* @param xIndex
|
|
@@ -7,14 +7,6 @@ import { IPointMetadata } from "./IPointMetadata";
|
|
|
7
7
|
* Options to pass to the {@link XyDataSeries} constructor
|
|
8
8
|
*/
|
|
9
9
|
export interface IXyDataSeriesOptions extends IBaseDataSeriesOptions {
|
|
10
|
-
/**
|
|
11
|
-
* The X-values array to pre-populate the {@link XyDataSeries}
|
|
12
|
-
*/
|
|
13
|
-
xValues?: NumberArray;
|
|
14
|
-
/**
|
|
15
|
-
* The Y-values array to pre-populate the {@link XyDataSeries}
|
|
16
|
-
*/
|
|
17
|
-
yValues?: NumberArray;
|
|
18
10
|
}
|
|
19
11
|
/**
|
|
20
12
|
* @summary XyDataSeries is a DataSeries for holding X, Y data in SciChart's 2D
|
|
@@ -64,6 +64,10 @@ var XyDataSeries = /** @class */ (function (_super) {
|
|
|
64
64
|
if (options === null || options === void 0 ? void 0 : options.xValues) {
|
|
65
65
|
Guard_1.Guard.notNull(options.yValues, "options.yValues");
|
|
66
66
|
_this.appendRange(options.xValues, options.yValues, options.metadata);
|
|
67
|
+
if ((options === null || options === void 0 ? void 0 : options.fifoCapacity) && (options === null || options === void 0 ? void 0 : options.fifoStartIndex)) {
|
|
68
|
+
_this.xValues.notifyAppend(options === null || options === void 0 ? void 0 : options.fifoStartIndex);
|
|
69
|
+
_this.yValues.notifyAppend(options === null || options === void 0 ? void 0 : options.fifoStartIndex);
|
|
70
|
+
}
|
|
67
71
|
}
|
|
68
72
|
return _this;
|
|
69
73
|
}
|
|
@@ -114,8 +118,8 @@ var XyDataSeries = /** @class */ (function (_super) {
|
|
|
114
118
|
this.appendMetadataRange(metadata, xValues.length);
|
|
115
119
|
// New implementation passing array from JS
|
|
116
120
|
// TODO: create indexValues from c++
|
|
117
|
-
|
|
118
|
-
|
|
121
|
+
this.doubleVectorProvider.appendArray(this.webAssemblyContext, nativeX, xValues);
|
|
122
|
+
this.doubleVectorProvider.appendArray(this.webAssemblyContext, nativeY, yValues);
|
|
119
123
|
this.notifyDataChanged(IDataSeries_1.EDataChangeType.Append, null, xValues.length);
|
|
120
124
|
}
|
|
121
125
|
};
|
|
@@ -168,6 +172,7 @@ var XyDataSeries = /** @class */ (function (_super) {
|
|
|
168
172
|
XyDataSeries.prototype.insert = function (startIndex, x, y, metadata) {
|
|
169
173
|
if (!this.getIsDeleted()) {
|
|
170
174
|
this.validateIndex(startIndex, "Start index is out of range");
|
|
175
|
+
this.throwIfFifo("insert");
|
|
171
176
|
var nativeX = this.getNativeXValues();
|
|
172
177
|
var nativeY = this.getNativeYValues();
|
|
173
178
|
this.dataDistributionCalculator.onInsert(this.isSorted, this.containsNaN, nativeX, [x], [y], startIndex);
|
|
@@ -192,6 +197,7 @@ var XyDataSeries = /** @class */ (function (_super) {
|
|
|
192
197
|
Guard_1.Guard.isTrue((0, NumberArray_1.isNumberArray)(yValues) || (0, NumberArray_1.isTypedArray)(yValues), "yValues must be an array of numbers");
|
|
193
198
|
this.validateIndex(startIndex, "Start index is out of range");
|
|
194
199
|
Guard_1.Guard.arraysSameLength(xValues, "xValues", yValues, "yValues");
|
|
200
|
+
this.throwIfFifo("insertRange");
|
|
195
201
|
if (metadata) {
|
|
196
202
|
Guard_1.Guard.isTrue(Array.isArray(metadata), "metadata must be an array of IPointMetadata");
|
|
197
203
|
Guard_1.Guard.arraysSameLength(xValues, "xValues", metadata, "metadata");
|
|
@@ -212,6 +218,7 @@ var XyDataSeries = /** @class */ (function (_super) {
|
|
|
212
218
|
XyDataSeries.prototype.removeAt = function (index) {
|
|
213
219
|
if (!this.getIsDeleted()) {
|
|
214
220
|
this.validateIndex(index);
|
|
221
|
+
this.throwIfFifo("removeAt");
|
|
215
222
|
this.getNativeXValues().removeAt(index);
|
|
216
223
|
this.getNativeYValues().removeAt(index);
|
|
217
224
|
this.removeMetadataAt(index);
|
|
@@ -227,6 +234,7 @@ var XyDataSeries = /** @class */ (function (_super) {
|
|
|
227
234
|
XyDataSeries.prototype.removeRange = function (startIndex, count) {
|
|
228
235
|
if (!this.getIsDeleted()) {
|
|
229
236
|
this.validateIndex(startIndex, "Start index is out of range");
|
|
237
|
+
this.throwIfFifo("removeRange");
|
|
230
238
|
this.getNativeXValues().removeRange(startIndex, count);
|
|
231
239
|
this.getNativeYValues().removeRange(startIndex, count);
|
|
232
240
|
this.removeMetadataRange(startIndex, count);
|
|
@@ -256,9 +264,17 @@ var XyDataSeries = /** @class */ (function (_super) {
|
|
|
256
264
|
if (!excludeData) {
|
|
257
265
|
var xValues = [];
|
|
258
266
|
var yValues = [];
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
267
|
+
if (this.fifoCapacity && this.fifoSweeping) {
|
|
268
|
+
for (var i = 0; i < this.count(); i++) {
|
|
269
|
+
xValues.push(this.xValues.getRaw(i));
|
|
270
|
+
yValues.push(this.yValues.getRaw(i));
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
else {
|
|
274
|
+
for (var i = 0; i < this.count(); i++) {
|
|
275
|
+
xValues.push(this.xValues.get(i));
|
|
276
|
+
yValues.push(this.yValues.get(i));
|
|
277
|
+
}
|
|
262
278
|
}
|
|
263
279
|
var options = {
|
|
264
280
|
xValues: xValues,
|
|
@@ -28,6 +28,8 @@ export declare class XyTextDataSeries extends BaseDataSeries {
|
|
|
28
28
|
constructor(webAssemblyContext: TSciChart, options?: IXyTextDataSeriesOptions);
|
|
29
29
|
/** The text values for this series. Manipulate using append, insert, update etc on the XyTextDataSeries */
|
|
30
30
|
get textValues(): readonly string[];
|
|
31
|
+
/** Get the text value at an index, unwrapping the fifo buffer if fifoCapacity is set */
|
|
32
|
+
getTextValue(index: number): string;
|
|
31
33
|
/**
|
|
32
34
|
* Appends a single X, Y, Text point to the DataSeries
|
|
33
35
|
* @remarks
|
|
@@ -18,6 +18,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
18
18
|
exports.XyTextDataSeries = void 0;
|
|
19
19
|
var Guard_1 = require("../../Core/Guard");
|
|
20
20
|
var NumberArray_1 = require("../../types/NumberArray");
|
|
21
|
+
var array_1 = require("../../utils/array");
|
|
21
22
|
var appendDoubleVectorFromJsArray_1 = require("../../utils/ccall/appendDoubleVectorFromJsArray");
|
|
22
23
|
var BaseDataSeries_1 = require("./BaseDataSeries");
|
|
23
24
|
var IDataSeries_1 = require("./IDataSeries");
|
|
@@ -50,6 +51,21 @@ var XyTextDataSeries = /** @class */ (function (_super) {
|
|
|
50
51
|
enumerable: false,
|
|
51
52
|
configurable: true
|
|
52
53
|
});
|
|
54
|
+
/** Get the text value at an index, unwrapping the fifo buffer if fifoCapacity is set */
|
|
55
|
+
XyTextDataSeries.prototype.getTextValue = function (index) {
|
|
56
|
+
if (!this.fifoCapacity)
|
|
57
|
+
return this.textValuesProperty[index];
|
|
58
|
+
if (!this.fifoSweeping) {
|
|
59
|
+
var fifoIndex = (this.xValues.getStartIndex() + index) % this.fifoCapacity;
|
|
60
|
+
return this.textValuesProperty[fifoIndex];
|
|
61
|
+
}
|
|
62
|
+
else {
|
|
63
|
+
if (this.fifoCapacity - index < this.fifoSweepingGap) {
|
|
64
|
+
return "";
|
|
65
|
+
}
|
|
66
|
+
return this.textValuesProperty[index];
|
|
67
|
+
}
|
|
68
|
+
};
|
|
53
69
|
/**
|
|
54
70
|
* Appends a single X, Y, Text point to the DataSeries
|
|
55
71
|
* @remarks
|
|
@@ -67,9 +83,15 @@ var XyTextDataSeries = /** @class */ (function (_super) {
|
|
|
67
83
|
this.dataDistributionCalculator.onAppend(this.isSorted, this.containsNaN, nativeX, [x], [y]);
|
|
68
84
|
// Push metadata should be done before push x values
|
|
69
85
|
this.appendMetadata(metadata);
|
|
86
|
+
// Fifo text also before values as startIndex gets updated by nativeX push
|
|
87
|
+
if (this.fifoCapacity && this.count() === this.fifoCapacity) {
|
|
88
|
+
this.textValuesProperty[this.xValues.getStartIndex()] = text;
|
|
89
|
+
}
|
|
90
|
+
else {
|
|
91
|
+
this.textValuesProperty.push(text);
|
|
92
|
+
}
|
|
70
93
|
nativeX.push_back(x);
|
|
71
94
|
this.getNativeYValues().push_back(y);
|
|
72
|
-
this.textValuesProperty.push(text);
|
|
73
95
|
this.notifyDataChanged(IDataSeries_1.EDataChangeType.Append, null, 1);
|
|
74
96
|
}
|
|
75
97
|
};
|
|
@@ -99,11 +121,16 @@ var XyTextDataSeries = /** @class */ (function (_super) {
|
|
|
99
121
|
this.dataDistributionCalculator.onAppend(this.isSorted, this.containsNaN, nativeX, xValues, yValues);
|
|
100
122
|
// Push metadata should be done before push x values
|
|
101
123
|
this.appendMetadataRange(metadata, xValues.length);
|
|
124
|
+
if (this.fifoCapacity) {
|
|
125
|
+
(0, array_1.appendRangeFifo)(textValues, this.textValuesProperty, this.fifoCapacity, this.xValues.getStartIndex());
|
|
126
|
+
}
|
|
127
|
+
else {
|
|
128
|
+
(_a = this.textValuesProperty).push.apply(_a, textValues);
|
|
129
|
+
}
|
|
102
130
|
// New implementation passing array from JS
|
|
103
131
|
// TODO: create indexValues from c++
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
(_a = this.textValuesProperty).push.apply(_a, textValues);
|
|
132
|
+
this.doubleVectorProvider.appendArray(this.webAssemblyContext, nativeX, xValues);
|
|
133
|
+
this.doubleVectorProvider.appendArray(this.webAssemblyContext, nativeY, yValues);
|
|
107
134
|
this.notifyDataChanged(IDataSeries_1.EDataChangeType.Append, null, xValues.length);
|
|
108
135
|
}
|
|
109
136
|
};
|
|
@@ -161,6 +188,7 @@ var XyTextDataSeries = /** @class */ (function (_super) {
|
|
|
161
188
|
XyTextDataSeries.prototype.insert = function (startIndex, x, y, text, metadata) {
|
|
162
189
|
if (!this.getIsDeleted()) {
|
|
163
190
|
this.validateIndex(startIndex, "Start index is out of range");
|
|
191
|
+
this.throwIfFifo("insert");
|
|
164
192
|
var nativeX = this.getNativeXValues();
|
|
165
193
|
var nativeY = this.getNativeYValues();
|
|
166
194
|
this.dataDistributionCalculator.onInsert(this.isSorted, this.containsNaN, nativeX, [x], [y], startIndex);
|
|
@@ -187,6 +215,7 @@ var XyTextDataSeries = /** @class */ (function (_super) {
|
|
|
187
215
|
Guard_1.Guard.isTrue((0, NumberArray_1.isNumberArray)(xValues) || (0, NumberArray_1.isTypedArray)(xValues), "xValues must be an array of numbers");
|
|
188
216
|
Guard_1.Guard.isTrue((0, NumberArray_1.isNumberArray)(yValues) || (0, NumberArray_1.isTypedArray)(yValues), "yValues must be an array of numbers");
|
|
189
217
|
this.validateIndex(startIndex, "Start index is out of range");
|
|
218
|
+
this.throwIfFifo("insertRange");
|
|
190
219
|
Guard_1.Guard.arraysSameLength(xValues, "xValues", yValues, "yValues");
|
|
191
220
|
if (metadata) {
|
|
192
221
|
Guard_1.Guard.isTrue(Array.isArray(metadata), "metadata must be an array of IPointMetadata");
|
|
@@ -209,6 +238,7 @@ var XyTextDataSeries = /** @class */ (function (_super) {
|
|
|
209
238
|
XyTextDataSeries.prototype.removeAt = function (index) {
|
|
210
239
|
if (!this.getIsDeleted()) {
|
|
211
240
|
this.validateIndex(index);
|
|
241
|
+
this.throwIfFifo("removeAt");
|
|
212
242
|
this.getNativeXValues().removeAt(index);
|
|
213
243
|
this.getNativeYValues().removeAt(index);
|
|
214
244
|
this.textValuesProperty.splice(index, 1);
|
|
@@ -225,6 +255,7 @@ var XyTextDataSeries = /** @class */ (function (_super) {
|
|
|
225
255
|
XyTextDataSeries.prototype.removeRange = function (startIndex, count) {
|
|
226
256
|
if (!this.getIsDeleted()) {
|
|
227
257
|
this.validateIndex(startIndex, "Start index is out of range");
|
|
258
|
+
this.throwIfFifo("removeRange");
|
|
228
259
|
this.getNativeXValues().removeRange(startIndex, count);
|
|
229
260
|
this.getNativeYValues().removeRange(startIndex, count);
|
|
230
261
|
this.textValuesProperty.splice(startIndex, count);
|
|
@@ -151,6 +151,7 @@ export declare class XyyDataSeries extends BaseDataSeries {
|
|
|
151
151
|
getWindowedYRange(xRange: NumberRange, getPositiveRange: boolean, isXCategoryAxis?: boolean, dataSeriesValueType?: EDataSeriesValueType): NumberRange;
|
|
152
152
|
/** @inheritDoc */
|
|
153
153
|
delete(): void;
|
|
154
|
+
createAnimationVectors(): void;
|
|
154
155
|
/** @inheritDoc */
|
|
155
156
|
setInitialAnimationVectors(dataSeries?: XyyDataSeries): void;
|
|
156
157
|
/** @inheritDoc */
|
|
@@ -161,5 +162,6 @@ export declare class XyyDataSeries extends BaseDataSeries {
|
|
|
161
162
|
updateAnimationProperties(progress: number, animation: SeriesAnimation): void;
|
|
162
163
|
/** @inheritDoc */
|
|
163
164
|
toJSON(excludeData?: boolean): any;
|
|
165
|
+
protected reserve(size: number): void;
|
|
164
166
|
private getYY1Values;
|
|
165
167
|
}
|
|
@@ -49,13 +49,16 @@ var XyyDataSeries = /** @class */ (function (_super) {
|
|
|
49
49
|
var _this = _super.call(this, webAssemblyContext, options) || this;
|
|
50
50
|
/** @inheritDoc */
|
|
51
51
|
_this.type = IDataSeries_1.EDataSeriesType.Xyy;
|
|
52
|
-
_this.y1Values =
|
|
53
|
-
_this.y1InitialAnimationValues = new webAssemblyContext.SCRTDoubleVector();
|
|
54
|
-
_this.y1FinalAnimationValues = new webAssemblyContext.SCRTDoubleVector();
|
|
52
|
+
_this.y1Values = _this.doubleVectorProvider.getDoubleVector(webAssemblyContext);
|
|
55
53
|
if (options === null || options === void 0 ? void 0 : options.xValues) {
|
|
56
54
|
Guard_1.Guard.notNull(options.yValues, "options.yValues");
|
|
57
55
|
Guard_1.Guard.notNull(options.y1Values, "options.y1Values");
|
|
58
56
|
_this.appendRange(options.xValues, options.yValues, options.y1Values, options.metadata);
|
|
57
|
+
if ((options === null || options === void 0 ? void 0 : options.fifoCapacity) && (options === null || options === void 0 ? void 0 : options.fifoStartIndex)) {
|
|
58
|
+
_this.xValues.notifyAppend(options === null || options === void 0 ? void 0 : options.fifoStartIndex);
|
|
59
|
+
_this.yValues.notifyAppend(options === null || options === void 0 ? void 0 : options.fifoStartIndex);
|
|
60
|
+
_this.y1Values.notifyAppend(options === null || options === void 0 ? void 0 : options.fifoStartIndex);
|
|
61
|
+
}
|
|
59
62
|
}
|
|
60
63
|
return _this;
|
|
61
64
|
}
|
|
@@ -126,9 +129,9 @@ var XyyDataSeries = /** @class */ (function (_super) {
|
|
|
126
129
|
// nativeY1.push_back(y1Values[i]);
|
|
127
130
|
// }
|
|
128
131
|
// New implementation passing array from JS
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
+
this.doubleVectorProvider.appendArray(this.webAssemblyContext, nativeX, xValues);
|
|
133
|
+
this.doubleVectorProvider.appendArray(this.webAssemblyContext, nativeY, yValues);
|
|
134
|
+
this.doubleVectorProvider.appendArray(this.webAssemblyContext, nativeY1, y1Values);
|
|
132
135
|
this.notifyDataChanged(IDataSeries_1.EDataChangeType.Append, null, xValues.length);
|
|
133
136
|
}
|
|
134
137
|
};
|
|
@@ -186,6 +189,7 @@ var XyyDataSeries = /** @class */ (function (_super) {
|
|
|
186
189
|
XyyDataSeries.prototype.insert = function (startIndex, x, y, y1, metadata) {
|
|
187
190
|
if (!this.getIsDeleted()) {
|
|
188
191
|
this.validateIndex(startIndex, "Start index is out of range");
|
|
192
|
+
this.throwIfFifo("insert");
|
|
189
193
|
var nativeX = this.getNativeXValues();
|
|
190
194
|
var nativeY = this.getNativeYValues();
|
|
191
195
|
var nativeY1 = this.getNativeY1Values();
|
|
@@ -213,6 +217,7 @@ var XyyDataSeries = /** @class */ (function (_super) {
|
|
|
213
217
|
Guard_1.Guard.isTrue((0, NumberArray_1.isNumberArray)(yValues) || (0, NumberArray_1.isTypedArray)(yValues), "yValues must be an array of numbers");
|
|
214
218
|
Guard_1.Guard.isTrue((0, NumberArray_1.isNumberArray)(y1Values) || (0, NumberArray_1.isTypedArray)(y1Values), "y1Values must be an array of numbers");
|
|
215
219
|
this.validateIndex(startIndex, "Start index is out of range");
|
|
220
|
+
this.throwIfFifo("insertRange");
|
|
216
221
|
Guard_1.Guard.arraysSameLengthArr([
|
|
217
222
|
{ arg: xValues, name: "xValues" },
|
|
218
223
|
{ arg: yValues, name: "yValues" },
|
|
@@ -239,6 +244,7 @@ var XyyDataSeries = /** @class */ (function (_super) {
|
|
|
239
244
|
XyyDataSeries.prototype.removeAt = function (index) {
|
|
240
245
|
if (!this.getIsDeleted()) {
|
|
241
246
|
this.validateIndex(index);
|
|
247
|
+
this.throwIfFifo("removeAt");
|
|
242
248
|
this.getNativeXValues().removeAt(index);
|
|
243
249
|
this.getNativeYValues().removeAt(index);
|
|
244
250
|
this.getNativeY1Values().removeAt(index);
|
|
@@ -255,6 +261,7 @@ var XyyDataSeries = /** @class */ (function (_super) {
|
|
|
255
261
|
XyyDataSeries.prototype.removeRange = function (startIndex, count) {
|
|
256
262
|
if (!this.getIsDeleted()) {
|
|
257
263
|
this.validateIndex(startIndex, "Start index is out of range");
|
|
264
|
+
this.throwIfFifo("removeRange");
|
|
258
265
|
this.getNativeXValues().removeRange(startIndex, count);
|
|
259
266
|
this.getNativeYValues().removeRange(startIndex, count);
|
|
260
267
|
this.getNativeY1Values().removeRange(startIndex, count);
|
|
@@ -325,6 +332,11 @@ var XyyDataSeries = /** @class */ (function (_super) {
|
|
|
325
332
|
this.y1FinalAnimationValues = (0, Deleter_1.deleteSafe)(this.y1FinalAnimationValues);
|
|
326
333
|
_super.prototype.delete.call(this);
|
|
327
334
|
};
|
|
335
|
+
XyyDataSeries.prototype.createAnimationVectors = function () {
|
|
336
|
+
_super.prototype.createAnimationVectors.call(this);
|
|
337
|
+
this.y1InitialAnimationValues = this.doubleVectorProvider.getDoubleVector(this.webAssemblyContext);
|
|
338
|
+
this.y1FinalAnimationValues = this.doubleVectorProvider.getDoubleVector(this.webAssemblyContext);
|
|
339
|
+
};
|
|
328
340
|
/** @inheritDoc */
|
|
329
341
|
XyyDataSeries.prototype.setInitialAnimationVectors = function (dataSeries) {
|
|
330
342
|
_super.prototype.setInitialAnimationVectors.call(this, dataSeries);
|
|
@@ -369,10 +381,19 @@ var XyyDataSeries = /** @class */ (function (_super) {
|
|
|
369
381
|
var xValues = [];
|
|
370
382
|
var yValues = [];
|
|
371
383
|
var y1Values = [];
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
384
|
+
if (this.fifoCapacity && this.fifoSweeping) {
|
|
385
|
+
for (var i = 0; i < this.count(); i++) {
|
|
386
|
+
xValues.push(this.xValues.getRaw(i));
|
|
387
|
+
yValues.push(this.yValues.getRaw(i));
|
|
388
|
+
y1Values.push(this.y1Values.getRaw(i));
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
else {
|
|
392
|
+
for (var i = 0; i < this.count(); i++) {
|
|
393
|
+
xValues.push(this.xValues.get(i));
|
|
394
|
+
yValues.push(this.yValues.get(i));
|
|
395
|
+
y1Values.push(this.y1Values.get(i));
|
|
396
|
+
}
|
|
376
397
|
}
|
|
377
398
|
var options = {
|
|
378
399
|
xValues: xValues,
|
|
@@ -383,6 +404,10 @@ var XyyDataSeries = /** @class */ (function (_super) {
|
|
|
383
404
|
}
|
|
384
405
|
return json;
|
|
385
406
|
};
|
|
407
|
+
XyyDataSeries.prototype.reserve = function (size) {
|
|
408
|
+
_super.prototype.reserve.call(this, size);
|
|
409
|
+
this.y1Values.reserve(size);
|
|
410
|
+
};
|
|
386
411
|
XyyDataSeries.prototype.getYY1Values = function (dataSeriesValueType) {
|
|
387
412
|
var yValues;
|
|
388
413
|
var y1Values;
|
|
@@ -149,6 +149,8 @@ export declare class XyzDataSeries extends BaseDataSeries {
|
|
|
149
149
|
/** @inheritDoc */
|
|
150
150
|
delete(): void;
|
|
151
151
|
/** @inheritDoc */
|
|
152
|
+
createAnimationVectors(): void;
|
|
153
|
+
/** @inheritDoc */
|
|
152
154
|
setInitialAnimationVectors(dataSeries?: XyzDataSeries): void;
|
|
153
155
|
/** @inheritDoc */
|
|
154
156
|
setFinalAnimationVectors(dataSeries?: XyzDataSeries): void;
|
|
@@ -158,5 +160,6 @@ export declare class XyzDataSeries extends BaseDataSeries {
|
|
|
158
160
|
updateAnimationProperties(progress: number, animation: SeriesAnimation): void;
|
|
159
161
|
/** @inheritDoc */
|
|
160
162
|
toJSON(excludeData?: boolean): any;
|
|
163
|
+
protected reserve(size: number): void;
|
|
161
164
|
private getYZValues;
|
|
162
165
|
}
|