scichart 3.1.348 → 3.2.434
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Builder/buildSurface.d.ts +2 -2
- package/Builder/chartBuilder.d.ts +4 -4
- package/Charting/ChartModifiers/ChartModifierBase.d.ts +19 -5
- package/Charting/ChartModifiers/ChartModifierBase.js +64 -7
- package/Charting/ChartModifiers/CursorModifier.d.ts +9 -9
- package/Charting/ChartModifiers/CursorModifier.js +13 -1
- package/Charting/ChartModifiers/DataPointSelectionModifier.d.ts +1 -0
- package/Charting/ChartModifiers/DataPointSelectionModifier.js +6 -1
- package/Charting/ChartModifiers/LegendModifier.d.ts +10 -25
- package/Charting/ChartModifiers/LegendModifier.js +10 -20
- package/Charting/ChartModifiers/MouseWheelZoomModifier.js +20 -11
- package/Charting/ChartModifiers/OverviewRangeSelectionModifier.d.ts +5 -5
- 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 +4 -7
- package/Charting/ChartModifiers/RubberBandXyZoomModifier.js +6 -8
- package/Charting/ChartModifiers/SeriesSelectionModifier.js +39 -29
- package/Charting/ChartModifiers/XAxisDragModifier.d.ts +1 -1
- package/Charting/ChartModifiers/XAxisDragModifier.js +3 -3
- package/Charting/ChartModifiers/YAxisDragModifier.d.ts +2 -4
- package/Charting/ChartModifiers/YAxisDragModifier.js +7 -8
- 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 +45 -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/Filters/HlcFilterBase.d.ts +6 -2
- package/Charting/Model/Filters/HlcFilterBase.js +17 -1
- package/Charting/Model/Filters/IFilterBase.d.ts +24 -0
- package/Charting/Model/Filters/IFilterBase.js +2 -0
- package/Charting/Model/Filters/OhlcFilterBase.d.ts +6 -2
- package/Charting/Model/Filters/OhlcFilterBase.js +17 -1
- package/Charting/Model/Filters/XyFilterBase.d.ts +6 -5
- package/Charting/Model/Filters/XyFilterBase.js +17 -1
- package/Charting/Model/Filters/XyyFilterBase.d.ts +6 -2
- package/Charting/Model/Filters/XyyFilterBase.js +17 -1
- package/Charting/Model/Filters/XyzFilterBase.d.ts +6 -2
- package/Charting/Model/Filters/XyzFilterBase.js +17 -1
- 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 +50 -26
- 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 +4 -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/NativeTextAnnotation.js +4 -0
- 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 +23 -8
- package/Charting/Visuals/Axis/AxisBase2D.js +46 -10
- package/Charting/Visuals/Axis/AxisCore.d.ts +6 -3
- 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/ManualLegend.d.ts +56 -0
- package/Charting/Visuals/Legend/ManualLegend.js +138 -0
- package/Charting/Visuals/Legend/SciChartLegend.js +4 -3
- package/Charting/Visuals/Legend/SciChartLegendBase.d.ts +65 -4
- package/Charting/Visuals/Legend/SciChartLegendBase.js +111 -23
- package/Charting/Visuals/Legend/SciChartPieLegend.js +1 -1
- package/Charting/Visuals/PointMarkers/BasePointMarker.d.ts +13 -1
- package/Charting/Visuals/PointMarkers/BasePointMarker.js +77 -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 +3 -2
- package/Charting/Visuals/RenderableSeries/BaseRenderableSeries.js +101 -69
- package/Charting/Visuals/RenderableSeries/BaseStackedCollection.js +18 -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 +5 -4
- package/Charting/Visuals/RenderableSeries/DrawingProviders/BaseSeriesDrawingProvider.js +70 -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/HoveredChangedArgs.d.ts +6 -1
- package/Charting/Visuals/RenderableSeries/HoveredChangedArgs.js +2 -1
- package/Charting/Visuals/RenderableSeries/IRenderableSeries.d.ts +1 -1
- package/Charting/Visuals/RenderableSeries/SelectionChangedArgs.d.ts +6 -1
- package/Charting/Visuals/RenderableSeries/SelectionChangedArgs.js +2 -1
- package/Charting/Visuals/RenderableSeries/ShaderEffect.d.ts +3 -2
- package/Charting/Visuals/RenderableSeries/ShaderEffect.js +29 -9
- package/Charting/Visuals/RenderableSeries/SplineBandRenderableSeries.js +50 -1
- package/Charting/Visuals/RenderableSeries/SplineLineRenderableSeries.js +13 -1
- package/Charting/Visuals/RenderableSeries/SplineMountainRenderableSeries.js +13 -1
- 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 +7 -1
- package/Charting/Visuals/RubberBandSvgRect/RubberBandSvgRect.js +38 -12
- 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 +16 -3
- package/Charting/Visuals/SciChartPieSurface/SciChartPieSurface.js +125 -60
- package/Charting/Visuals/SciChartSurface.d.ts +4 -41
- package/Charting/Visuals/SciChartSurface.js +52 -66
- package/Charting/Visuals/SciChartSurfaceBase.d.ts +117 -13
- package/Charting/Visuals/SciChartSurfaceBase.js +177 -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 +7 -2
- package/Charting/Visuals/createMaster.js +140 -45
- package/Charting/Visuals/createSingle.d.ts +0 -2
- package/Charting/Visuals/createSingle.js +46 -11
- 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/ResetCamera3DModifier.d.ts +1 -1
- package/Charting3D/ChartModifiers/ResetCamera3DModifier.js +1 -2
- package/Charting3D/ChartModifiers/TooltipModifier3D.d.ts +122 -0
- package/Charting3D/ChartModifiers/TooltipModifier3D.js +427 -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/BaseGridDataSeries3D.d.ts +1 -1
- package/Charting3D/Model/DataSeries/BaseGridDataSeries3D.js +2 -2
- package/Charting3D/Model/DataSeries/IPointMetadata3D.d.ts +7 -2
- 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 +29 -3
- package/Charting3D/Visuals/Axis/AxisBase3D.js +46 -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/Axis/NumericAxis3D.d.ts +3 -2
- package/Charting3D/Visuals/Axis/NumericAxis3D.js +7 -3
- 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 +190 -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 +23 -2
- package/Charting3D/Visuals/Primitives/SurfaceMeshSceneEntity.d.ts +3 -0
- package/Charting3D/Visuals/Primitives/SurfaceMeshSceneEntity.js +17 -1
- package/Charting3D/Visuals/RenderableSeries/BaseRenderableSeries3D.d.ts +21 -1
- package/Charting3D/Visuals/RenderableSeries/BaseRenderableSeries3D.js +78 -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 +1 -0
- package/Charting3D/Visuals/SciChart3DRenderer.js +26 -0
- package/Charting3D/Visuals/SciChart3DSurface.d.ts +55 -7
- package/Charting3D/Visuals/SciChart3DSurface.js +136 -13
- 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 +81 -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 +34 -0
- package/Core/DeletableEntity.js +138 -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 +53 -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 +42 -2
- package/index.dev.js +68876 -0
- package/index.js +81 -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 +92 -0
- package/utils/MemoryUsageHelper.js +221 -0
- package/utils/array.d.ts +8 -0
- package/utils/array.js +58 -1
- package/utils/colorUtil.d.ts +7 -0
- package/utils/colorUtil.js +13 -1
- package/utils/logger.d.ts +2 -0
- package/utils/logger.js +11 -0
- package/utils/parseColor.js +19 -4
|
@@ -50,17 +50,19 @@ var HlcDataSeries = /** @class */ (function (_super) {
|
|
|
50
50
|
var _this = _super.call(this, webAssemblyContext, options) || this;
|
|
51
51
|
/** @inheritDoc */
|
|
52
52
|
_this.type = IDataSeries_1.EDataSeriesType.Hlc;
|
|
53
|
-
_this.highValues =
|
|
54
|
-
_this.lowValues =
|
|
55
|
-
_this.lInitialAnimationValues = new webAssemblyContext.SCRTDoubleVector();
|
|
56
|
-
_this.lFinalAnimationValues = new webAssemblyContext.SCRTDoubleVector();
|
|
57
|
-
_this.hInitialAnimationValues = new webAssemblyContext.SCRTDoubleVector();
|
|
58
|
-
_this.hFinalAnimationValues = new webAssemblyContext.SCRTDoubleVector();
|
|
53
|
+
_this.highValues = _this.doubleVectorProvider.getDoubleVector(webAssemblyContext);
|
|
54
|
+
_this.lowValues = _this.doubleVectorProvider.getDoubleVector(webAssemblyContext);
|
|
59
55
|
if (options === null || options === void 0 ? void 0 : options.xValues) {
|
|
60
56
|
Guard_1.Guard.notNull(options.yValues, "options.yValues");
|
|
61
57
|
Guard_1.Guard.notNull(options.highValues, "options.highValues");
|
|
62
58
|
Guard_1.Guard.notNull(options.lowValues, "options.lowValues");
|
|
63
59
|
_this.appendRange(options.xValues, options.yValues, options.highValues, options.lowValues, options.metadata);
|
|
60
|
+
if ((options === null || options === void 0 ? void 0 : options.fifoCapacity) && (options === null || options === void 0 ? void 0 : options.fifoStartIndex)) {
|
|
61
|
+
_this.xValues.notifyAppend(options === null || options === void 0 ? void 0 : options.fifoStartIndex);
|
|
62
|
+
_this.yValues.notifyAppend(options === null || options === void 0 ? void 0 : options.fifoStartIndex);
|
|
63
|
+
_this.highValues.notifyAppend(options === null || options === void 0 ? void 0 : options.fifoStartIndex);
|
|
64
|
+
_this.lowValues.notifyAppend(options === null || options === void 0 ? void 0 : options.fifoStartIndex);
|
|
65
|
+
}
|
|
64
66
|
}
|
|
65
67
|
return _this;
|
|
66
68
|
}
|
|
@@ -136,10 +138,10 @@ var HlcDataSeries = /** @class */ (function (_super) {
|
|
|
136
138
|
// Push metadata should be done before push x values
|
|
137
139
|
this.appendMetadataRange(metadata, xValues.length);
|
|
138
140
|
// New implementation passing array from JS
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
141
|
+
this.doubleVectorProvider.appendArray(this.webAssemblyContext, nativeX, xValues);
|
|
142
|
+
this.doubleVectorProvider.appendArray(this.webAssemblyContext, nativeY, yValues);
|
|
143
|
+
this.doubleVectorProvider.appendArray(this.webAssemblyContext, nativeH, hValues);
|
|
144
|
+
this.doubleVectorProvider.appendArray(this.webAssemblyContext, nativeL, lValues);
|
|
143
145
|
this.notifyDataChanged(IDataSeries_1.EDataChangeType.Append, null, xValues.length);
|
|
144
146
|
}
|
|
145
147
|
};
|
|
@@ -203,6 +205,7 @@ var HlcDataSeries = /** @class */ (function (_super) {
|
|
|
203
205
|
HlcDataSeries.prototype.insert = function (startIndex, x, y, h, l, metadata) {
|
|
204
206
|
if (!this.getIsDeleted()) {
|
|
205
207
|
this.validateIndex(startIndex, "Start index is out of range");
|
|
208
|
+
this.throwIfFifo("insert");
|
|
206
209
|
var nativeX = this.getNativeXValues();
|
|
207
210
|
var nativeY = this.getNativeYValues();
|
|
208
211
|
var nativeH = this.getNativeHighValues();
|
|
@@ -234,6 +237,7 @@ var HlcDataSeries = /** @class */ (function (_super) {
|
|
|
234
237
|
Guard_1.Guard.isTrue((0, NumberArray_1.isNumberArray)(hValues) || (0, NumberArray_1.isTypedArray)(hValues), "hValues must be an array of numbers");
|
|
235
238
|
Guard_1.Guard.isTrue((0, NumberArray_1.isNumberArray)(lValues) || (0, NumberArray_1.isTypedArray)(lValues), "lValues must be an array of numbers");
|
|
236
239
|
this.validateIndex(startIndex, "Start index is out of range");
|
|
240
|
+
this.throwIfFifo("insertRange");
|
|
237
241
|
Guard_1.Guard.arraysSameLengthArr([
|
|
238
242
|
{ arg: xValues, name: "xValues" },
|
|
239
243
|
{ arg: yValues, name: "yValues" },
|
|
@@ -262,6 +266,7 @@ var HlcDataSeries = /** @class */ (function (_super) {
|
|
|
262
266
|
HlcDataSeries.prototype.removeAt = function (index) {
|
|
263
267
|
if (!this.getIsDeleted()) {
|
|
264
268
|
this.validateIndex(index);
|
|
269
|
+
this.throwIfFifo("removeAt");
|
|
265
270
|
this.getNativeXValues().removeAt(index);
|
|
266
271
|
this.getNativeYValues().removeAt(index);
|
|
267
272
|
this.getNativeHighValues().removeAt(index);
|
|
@@ -279,6 +284,7 @@ var HlcDataSeries = /** @class */ (function (_super) {
|
|
|
279
284
|
HlcDataSeries.prototype.removeRange = function (startIndex, count) {
|
|
280
285
|
if (!this.getIsDeleted()) {
|
|
281
286
|
this.validateIndex(startIndex, "Start index is out of range");
|
|
287
|
+
this.throwIfFifo("removeRange");
|
|
282
288
|
this.getNativeXValues().removeRange(startIndex, count);
|
|
283
289
|
this.getNativeYValues().removeRange(startIndex, count);
|
|
284
290
|
this.getNativeHighValues().removeRange(startIndex, count);
|
|
@@ -460,6 +466,14 @@ var HlcDataSeries = /** @class */ (function (_super) {
|
|
|
460
466
|
_super.prototype.delete.call(this);
|
|
461
467
|
};
|
|
462
468
|
/** @inheritDoc */
|
|
469
|
+
HlcDataSeries.prototype.createAnimationVectors = function () {
|
|
470
|
+
_super.prototype.createAnimationVectors.call(this);
|
|
471
|
+
this.lInitialAnimationValues = this.doubleVectorProvider.getDoubleVector(this.webAssemblyContext);
|
|
472
|
+
this.lFinalAnimationValues = this.doubleVectorProvider.getDoubleVector(this.webAssemblyContext);
|
|
473
|
+
this.hInitialAnimationValues = this.doubleVectorProvider.getDoubleVector(this.webAssemblyContext);
|
|
474
|
+
this.hFinalAnimationValues = this.doubleVectorProvider.getDoubleVector(this.webAssemblyContext);
|
|
475
|
+
};
|
|
476
|
+
/** @inheritDoc */
|
|
463
477
|
HlcDataSeries.prototype.setInitialAnimationVectors = function (dataSeries) {
|
|
464
478
|
_super.prototype.setInitialAnimationVectors.call(this, dataSeries);
|
|
465
479
|
if (!dataSeries) {
|
|
@@ -513,11 +527,21 @@ var HlcDataSeries = /** @class */ (function (_super) {
|
|
|
513
527
|
var yValues = [];
|
|
514
528
|
var highValues = [];
|
|
515
529
|
var lowValues = [];
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
530
|
+
if (this.fifoCapacity && this.fifoSweeping) {
|
|
531
|
+
for (var i = 0; i < this.count(); i++) {
|
|
532
|
+
xValues.push(this.xValues.getRaw(i));
|
|
533
|
+
yValues.push(this.yValues.getRaw(i));
|
|
534
|
+
highValues.push(this.highValues.getRaw(i));
|
|
535
|
+
lowValues.push(this.lowValues.getRaw(i));
|
|
536
|
+
}
|
|
537
|
+
}
|
|
538
|
+
else {
|
|
539
|
+
for (var i = 0; i < this.count(); i++) {
|
|
540
|
+
xValues.push(this.xValues.get(i));
|
|
541
|
+
yValues.push(this.yValues.get(i));
|
|
542
|
+
highValues.push(this.highValues.get(i));
|
|
543
|
+
lowValues.push(this.lowValues.get(i));
|
|
544
|
+
}
|
|
521
545
|
}
|
|
522
546
|
var options = {
|
|
523
547
|
xValues: xValues,
|
|
@@ -529,6 +553,11 @@ var HlcDataSeries = /** @class */ (function (_super) {
|
|
|
529
553
|
}
|
|
530
554
|
return json;
|
|
531
555
|
};
|
|
556
|
+
HlcDataSeries.prototype.reserve = function (size) {
|
|
557
|
+
_super.prototype.reserve.call(this, size);
|
|
558
|
+
this.highValues.reserve(size);
|
|
559
|
+
this.lowValues.reserve(size);
|
|
560
|
+
};
|
|
532
561
|
HlcDataSeries.prototype.getHlcValues = function (dataSeriesValueType) {
|
|
533
562
|
var hValues;
|
|
534
563
|
var lValues;
|
|
@@ -153,6 +153,29 @@ export interface IDataSeries extends IDeletable {
|
|
|
153
153
|
* Set containsNaN = false for the performance optimization when the series has no NaNs
|
|
154
154
|
*/
|
|
155
155
|
containsNaN: boolean;
|
|
156
|
+
/**
|
|
157
|
+
* Gets the maximum size of the dataSeries in FIFO (First In First Out) mode. This can only be set in the constructor options.
|
|
158
|
+
* If set, the dataSeries supports only append, appendRange, update and clear. Any data that is appended once the dataSeries has reached fifoCapacity will cause
|
|
159
|
+
* the oldest data to be discarded. This is a much more efficient than appending and removing for achieving scrolling data.
|
|
160
|
+
* Spline series and Stacked series currently do not support fifo mode.
|
|
161
|
+
* To get the scrolling effect, you need to consider the behaviour of your X Axis. You can either
|
|
162
|
+
* Use a {@link CategoryAxis}
|
|
163
|
+
* Use a {@link NumericAxis} with increasing x values, and update the visibleRange (or use zoomExtents)
|
|
164
|
+
*/
|
|
165
|
+
fifoCapacity?: number;
|
|
166
|
+
/**
|
|
167
|
+
* Internal only - Get the starting offset when in fifo mode
|
|
168
|
+
*/
|
|
169
|
+
fifoStartIndex?: number;
|
|
170
|
+
/**
|
|
171
|
+
* If true, data in fifo mode will not be "unwrapped" before drawing, giving ecg style sweeping mode.
|
|
172
|
+
* To get the sweeping effect, you need to consider the behaviour of your X Axis. You can either
|
|
173
|
+
* Use a {@link CategoryAxis}
|
|
174
|
+
* Use a {@link NumericAxis} and make your x values an offset from the first value, eg by doing x % fifoCapcity
|
|
175
|
+
*/
|
|
176
|
+
fifoSweeping?: boolean;
|
|
177
|
+
/** In fifo sweeping mode, the number of earliest points to skip to create a gap between the latest and earliest data */
|
|
178
|
+
fifoSweepingGap?: number;
|
|
156
179
|
/**
|
|
157
180
|
* Gets the count of data-points in the DataSeries
|
|
158
181
|
*/
|
|
@@ -184,9 +184,11 @@ var NonUniformHeatmapDataSeries = /** @class */ (function (_super) {
|
|
|
184
184
|
// set offsets when zValues changes
|
|
185
185
|
if (this.xCellOffsetsGeneratorFunction) {
|
|
186
186
|
this.xCellOffsetsProperty = this.mapCellSizes(this.arrayWidth, this.xCellOffsetsGeneratorFunction);
|
|
187
|
+
this.xCellSizesProperty = this.calculateCellSizes(this.xCellOffsetsProperty);
|
|
187
188
|
}
|
|
188
189
|
if (this.yCellOffsetsGeneratorFunction) {
|
|
189
190
|
this.yCellOffsetsProperty = this.mapCellSizes(this.arrayHeight, this.yCellOffsetsGeneratorFunction);
|
|
191
|
+
this.yCellSizesProperty = this.calculateCellSizes(this.yCellOffsetsProperty);
|
|
190
192
|
}
|
|
191
193
|
this.nativeXOffsetsProperty.clear();
|
|
192
194
|
this.nativeYOffsetsProperty.clear();
|
|
@@ -201,6 +201,8 @@ export declare class OhlcDataSeries extends BaseDataSeries {
|
|
|
201
201
|
/** @inheritDoc */
|
|
202
202
|
getWindowedYRange(xRange: NumberRange, getPositiveRange: boolean, isXCategoryAxis?: boolean, dataSeriesValueType?: EDataSeriesValueType): NumberRange;
|
|
203
203
|
/** @inheritDoc */
|
|
204
|
+
createAnimationVectors(): void;
|
|
205
|
+
/** @inheritDoc */
|
|
204
206
|
setInitialAnimationVectors(dataSeries?: OhlcDataSeries): void;
|
|
205
207
|
/** @inheritDoc */
|
|
206
208
|
setFinalAnimationVectors(dataSeries?: OhlcDataSeries): void;
|
|
@@ -210,5 +212,6 @@ export declare class OhlcDataSeries extends BaseDataSeries {
|
|
|
210
212
|
updateAnimationProperties(progress: number, animation: SeriesAnimation): void;
|
|
211
213
|
/** @inheritDoc */
|
|
212
214
|
toJSON(excludeData?: boolean): any;
|
|
215
|
+
protected reserve(size: number): void;
|
|
213
216
|
private getOHLCValues;
|
|
214
217
|
}
|
|
@@ -50,17 +50,18 @@ var OhlcDataSeries = /** @class */ (function (_super) {
|
|
|
50
50
|
var _this = _super.call(this, webAssemblyContext, options) || this;
|
|
51
51
|
/** @inheritDoc */
|
|
52
52
|
_this.type = IDataSeries_1.EDataSeriesType.Ohlc;
|
|
53
|
-
_this.openValues =
|
|
54
|
-
_this.highValues =
|
|
55
|
-
_this.lowValues =
|
|
56
|
-
_this.openInitialAnimationValues = new webAssemblyContext.SCRTDoubleVector();
|
|
57
|
-
_this.highInitialAnimationValues = new webAssemblyContext.SCRTDoubleVector();
|
|
58
|
-
_this.lowInitialAnimationValues = new webAssemblyContext.SCRTDoubleVector();
|
|
59
|
-
_this.openFinalAnimationValues = new webAssemblyContext.SCRTDoubleVector();
|
|
60
|
-
_this.highFinalAnimationValues = new webAssemblyContext.SCRTDoubleVector();
|
|
61
|
-
_this.lowFinalAnimationValues = new webAssemblyContext.SCRTDoubleVector();
|
|
53
|
+
_this.openValues = _this.doubleVectorProvider.getDoubleVector(webAssemblyContext);
|
|
54
|
+
_this.highValues = _this.doubleVectorProvider.getDoubleVector(webAssemblyContext);
|
|
55
|
+
_this.lowValues = _this.doubleVectorProvider.getDoubleVector(webAssemblyContext);
|
|
62
56
|
if (options === null || options === void 0 ? void 0 : options.xValues) {
|
|
63
57
|
_this.appendRange(options.xValues, options.openValues, options.highValues, options.lowValues, options.closeValues, options.metadata);
|
|
58
|
+
if ((options === null || options === void 0 ? void 0 : options.fifoCapacity) && (options === null || options === void 0 ? void 0 : options.fifoStartIndex)) {
|
|
59
|
+
_this.xValues.notifyAppend(options === null || options === void 0 ? void 0 : options.fifoStartIndex);
|
|
60
|
+
_this.yValues.notifyAppend(options === null || options === void 0 ? void 0 : options.fifoStartIndex);
|
|
61
|
+
_this.openValues.notifyAppend(options === null || options === void 0 ? void 0 : options.fifoStartIndex);
|
|
62
|
+
_this.highValues.notifyAppend(options === null || options === void 0 ? void 0 : options.fifoStartIndex);
|
|
63
|
+
_this.lowValues.notifyAppend(options === null || options === void 0 ? void 0 : options.fifoStartIndex);
|
|
64
|
+
}
|
|
64
65
|
}
|
|
65
66
|
return _this;
|
|
66
67
|
}
|
|
@@ -157,11 +158,11 @@ var OhlcDataSeries = /** @class */ (function (_super) {
|
|
|
157
158
|
// Push metadata should be done before push x values
|
|
158
159
|
this.appendMetadataRange(metadata, xValues.length);
|
|
159
160
|
// New implementation passing array from JS
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
161
|
+
this.doubleVectorProvider.appendArray(this.webAssemblyContext, nativeX, xValues);
|
|
162
|
+
this.doubleVectorProvider.appendArray(this.webAssemblyContext, nativeOpen, openValues);
|
|
163
|
+
this.doubleVectorProvider.appendArray(this.webAssemblyContext, nativeHigh, highValues);
|
|
164
|
+
this.doubleVectorProvider.appendArray(this.webAssemblyContext, nativeLow, lowValues);
|
|
165
|
+
this.doubleVectorProvider.appendArray(this.webAssemblyContext, nativeClose, closeValues);
|
|
165
166
|
this.notifyDataChanged(IDataSeries_1.EDataChangeType.Append, null, xValues.length);
|
|
166
167
|
}
|
|
167
168
|
};
|
|
@@ -226,6 +227,7 @@ var OhlcDataSeries = /** @class */ (function (_super) {
|
|
|
226
227
|
OhlcDataSeries.prototype.insert = function (startIndex, x, open, high, low, close, metadata) {
|
|
227
228
|
if (!this.getIsDeleted()) {
|
|
228
229
|
this.validateIndex(startIndex, "Start index is out of range");
|
|
230
|
+
this.throwIfFifo("insert");
|
|
229
231
|
var nativeX = this.getNativeXValues();
|
|
230
232
|
this.dataDistributionCalculator.onInsert(this.isSorted, this.containsNaN, nativeX, [x], [close], startIndex);
|
|
231
233
|
nativeX.insertAt(startIndex, x);
|
|
@@ -256,6 +258,7 @@ var OhlcDataSeries = /** @class */ (function (_super) {
|
|
|
256
258
|
Guard_1.Guard.isTrue((0, NumberArray_1.isNumberArray)(lowValues) || (0, NumberArray_1.isTypedArray)(lowValues), "lowValues must be an array of numbers");
|
|
257
259
|
Guard_1.Guard.isTrue((0, NumberArray_1.isNumberArray)(closeValues) || (0, NumberArray_1.isTypedArray)(closeValues), "closeValues must be an array of numbers");
|
|
258
260
|
this.validateIndex(startIndex, "Start index is out of range");
|
|
261
|
+
this.throwIfFifo("insertRange");
|
|
259
262
|
Guard_1.Guard.arraysSameLengthArr([
|
|
260
263
|
{ arg: xValues, name: "xValues" },
|
|
261
264
|
{ arg: openValues, name: "openValues" },
|
|
@@ -286,6 +289,7 @@ var OhlcDataSeries = /** @class */ (function (_super) {
|
|
|
286
289
|
OhlcDataSeries.prototype.removeAt = function (index) {
|
|
287
290
|
if (!this.getIsDeleted()) {
|
|
288
291
|
this.validateIndex(index);
|
|
292
|
+
this.throwIfFifo("removeAt");
|
|
289
293
|
this.getNativeXValues().removeAt(index);
|
|
290
294
|
this.getNativeOpenValues().removeAt(index);
|
|
291
295
|
this.getNativeHighValues().removeAt(index);
|
|
@@ -304,6 +308,7 @@ var OhlcDataSeries = /** @class */ (function (_super) {
|
|
|
304
308
|
OhlcDataSeries.prototype.removeRange = function (startIndex, count) {
|
|
305
309
|
if (!this.getIsDeleted()) {
|
|
306
310
|
this.validateIndex(startIndex, "Start index is out of range");
|
|
311
|
+
this.throwIfFifo("removeRange");
|
|
307
312
|
this.getNativeXValues().removeRange(startIndex, count);
|
|
308
313
|
this.getNativeOpenValues().removeRange(startIndex, count);
|
|
309
314
|
this.getNativeHighValues().removeRange(startIndex, count);
|
|
@@ -339,11 +344,11 @@ var OhlcDataSeries = /** @class */ (function (_super) {
|
|
|
339
344
|
this.highValues = (0, Deleter_1.deleteSafe)(this.highValues);
|
|
340
345
|
this.lowValues = (0, Deleter_1.deleteSafe)(this.lowValues);
|
|
341
346
|
this.openInitialAnimationValues = (0, Deleter_1.deleteSafe)(this.openInitialAnimationValues);
|
|
342
|
-
this.
|
|
343
|
-
this.
|
|
344
|
-
this.openFinalAnimationValues = (0, Deleter_1.deleteSafe)(this.openFinalAnimationValues);
|
|
345
|
-
this.openFinalAnimationValues = (0, Deleter_1.deleteSafe)(this.openFinalAnimationValues);
|
|
347
|
+
this.highInitialAnimationValues = (0, Deleter_1.deleteSafe)(this.highInitialAnimationValues);
|
|
348
|
+
this.lowInitialAnimationValues = (0, Deleter_1.deleteSafe)(this.lowInitialAnimationValues);
|
|
346
349
|
this.openFinalAnimationValues = (0, Deleter_1.deleteSafe)(this.openFinalAnimationValues);
|
|
350
|
+
this.highFinalAnimationValues = (0, Deleter_1.deleteSafe)(this.highFinalAnimationValues);
|
|
351
|
+
this.lowFinalAnimationValues = (0, Deleter_1.deleteSafe)(this.lowFinalAnimationValues);
|
|
347
352
|
_super.prototype.delete.call(this);
|
|
348
353
|
};
|
|
349
354
|
/** @inheritDoc */
|
|
@@ -376,6 +381,16 @@ var OhlcDataSeries = /** @class */ (function (_super) {
|
|
|
376
381
|
return new NumberRange_1.NumberRange(yMin, yMax);
|
|
377
382
|
};
|
|
378
383
|
/** @inheritDoc */
|
|
384
|
+
OhlcDataSeries.prototype.createAnimationVectors = function () {
|
|
385
|
+
_super.prototype.createAnimationVectors.call(this);
|
|
386
|
+
this.openInitialAnimationValues = this.doubleVectorProvider.getDoubleVector(this.webAssemblyContext);
|
|
387
|
+
this.highInitialAnimationValues = this.doubleVectorProvider.getDoubleVector(this.webAssemblyContext);
|
|
388
|
+
this.lowInitialAnimationValues = this.doubleVectorProvider.getDoubleVector(this.webAssemblyContext);
|
|
389
|
+
this.openFinalAnimationValues = this.doubleVectorProvider.getDoubleVector(this.webAssemblyContext);
|
|
390
|
+
this.highFinalAnimationValues = this.doubleVectorProvider.getDoubleVector(this.webAssemblyContext);
|
|
391
|
+
this.lowFinalAnimationValues = this.doubleVectorProvider.getDoubleVector(this.webAssemblyContext);
|
|
392
|
+
};
|
|
393
|
+
/** @inheritDoc */
|
|
379
394
|
OhlcDataSeries.prototype.setInitialAnimationVectors = function (dataSeries) {
|
|
380
395
|
_super.prototype.setInitialAnimationVectors.call(this, dataSeries);
|
|
381
396
|
if (!dataSeries) {
|
|
@@ -440,12 +455,23 @@ var OhlcDataSeries = /** @class */ (function (_super) {
|
|
|
440
455
|
var highValues = [];
|
|
441
456
|
var lowValues = [];
|
|
442
457
|
var closeValues = [];
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
458
|
+
if (this.fifoCapacity && this.fifoSweeping) {
|
|
459
|
+
for (var i = 0; i < this.count(); i++) {
|
|
460
|
+
xValues.push(this.xValues.getRaw(i));
|
|
461
|
+
openValues.push(this.openValues.getRaw(i));
|
|
462
|
+
closeValues.push(this.yValues.getRaw(i));
|
|
463
|
+
highValues.push(this.highValues.getRaw(i));
|
|
464
|
+
lowValues.push(this.lowValues.getRaw(i));
|
|
465
|
+
}
|
|
466
|
+
}
|
|
467
|
+
else {
|
|
468
|
+
for (var i = 0; i < this.count(); i++) {
|
|
469
|
+
xValues.push(this.xValues.get(i));
|
|
470
|
+
openValues.push(this.openValues.get(i));
|
|
471
|
+
highValues.push(this.highValues.get(i));
|
|
472
|
+
lowValues.push(this.lowValues.get(i));
|
|
473
|
+
closeValues.push(this.yValues.get(i));
|
|
474
|
+
}
|
|
449
475
|
}
|
|
450
476
|
var options = {
|
|
451
477
|
xValues: xValues,
|
|
@@ -458,6 +484,12 @@ var OhlcDataSeries = /** @class */ (function (_super) {
|
|
|
458
484
|
}
|
|
459
485
|
return json;
|
|
460
486
|
};
|
|
487
|
+
OhlcDataSeries.prototype.reserve = function (size) {
|
|
488
|
+
_super.prototype.reserve.call(this, size);
|
|
489
|
+
this.openValues.reserve(size);
|
|
490
|
+
this.highValues.reserve(size);
|
|
491
|
+
this.lowValues.reserve(size);
|
|
492
|
+
};
|
|
461
493
|
OhlcDataSeries.prototype.getOHLCValues = function (dataSeriesValueType) {
|
|
462
494
|
var openValues;
|
|
463
495
|
var highValues;
|
|
@@ -1,21 +1,20 @@
|
|
|
1
|
+
import { DeletableEntity } from "../../../Core/DeletableEntity";
|
|
1
2
|
import { IDeletable } from "../../../Core/IDeletable";
|
|
2
3
|
import { NumberRange } from "../../../Core/NumberRange";
|
|
3
4
|
import { IntVector, SCRTDoubleVector, TSciChart } from "../../../types/TSciChart";
|
|
4
5
|
import { IPointSeries, IPointSeriesResampled } from "./IPointSeries";
|
|
5
|
-
export declare abstract class BasePointSeriesResampled implements IPointSeries, IPointSeriesResampled, IDeletable {
|
|
6
|
+
export declare abstract class BasePointSeriesResampled extends DeletableEntity implements IPointSeries, IPointSeriesResampled, IDeletable {
|
|
6
7
|
readonly intIndexes: IntVector;
|
|
7
8
|
readonly indexes: SCRTDoubleVector;
|
|
8
9
|
readonly xValues: SCRTDoubleVector;
|
|
9
10
|
readonly yValues: SCRTDoubleVector;
|
|
10
11
|
xRange: NumberRange;
|
|
12
|
+
readonly resampled = true;
|
|
13
|
+
fifoStartIndex: number;
|
|
11
14
|
protected wasmContext: TSciChart;
|
|
12
15
|
constructor(wasmContext: TSciChart, xRange: NumberRange);
|
|
13
16
|
get count(): number;
|
|
14
17
|
delete(): void;
|
|
15
|
-
/**
|
|
16
|
-
* Updates SCRTDoubleVector from IntVector
|
|
17
|
-
*/
|
|
18
|
-
updateIndexes(): void;
|
|
19
18
|
clearIntIndexes(): void;
|
|
20
19
|
debugOutputForUnitTests(): void;
|
|
21
20
|
}
|
|
@@ -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
|