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
|
@@ -1,6 +1,22 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
2
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
18
|
exports.CoordinateCalculatorBase = void 0;
|
|
19
|
+
var DeletableEntity_1 = require("../../../Core/DeletableEntity");
|
|
4
20
|
var NumberRange_1 = require("../../../Core/NumberRange");
|
|
5
21
|
/**
|
|
6
22
|
* The CoordinateCalculatorBase class provides methods for converting between Pixel and Data coordinates
|
|
@@ -22,7 +38,8 @@ var NumberRange_1 = require("../../../Core/NumberRange");
|
|
|
22
38
|
*
|
|
23
39
|
* Use the Coordinate calculators when drawing, placing markers, annotations or if you want to place a tooltip over the chart.
|
|
24
40
|
*/
|
|
25
|
-
var CoordinateCalculatorBase = /** @class */ (function () {
|
|
41
|
+
var CoordinateCalculatorBase = /** @class */ (function (_super) {
|
|
42
|
+
__extends(CoordinateCalculatorBase, _super);
|
|
26
43
|
/**
|
|
27
44
|
* Creates an instance of the CoordinateCalculatorBase
|
|
28
45
|
* @param webAssemblyContext The {@link TSciChart | SciChart 2D WebAssembly Context} or {@link TSciChart2D | SciChart 2D WebAssembly Context}
|
|
@@ -37,13 +54,15 @@ var CoordinateCalculatorBase = /** @class */ (function () {
|
|
|
37
54
|
*/
|
|
38
55
|
function CoordinateCalculatorBase(webAssemblyContext, viewportDimension, visibleMin, visibleMax, offset, hasFlippedCoordinates, isCategoryCoordinateCalculator) {
|
|
39
56
|
if (isCategoryCoordinateCalculator === void 0) { isCategoryCoordinateCalculator = false; }
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
57
|
+
var _this = _super.call(this) || this;
|
|
58
|
+
_this.webAssemblyContext = webAssemblyContext;
|
|
59
|
+
_this.visibleMax = visibleMax;
|
|
60
|
+
_this.visibleMin = visibleMin;
|
|
61
|
+
_this.viewportDimension = viewportDimension;
|
|
62
|
+
_this.offset = offset;
|
|
63
|
+
_this.hasFlippedCoordinates = hasFlippedCoordinates;
|
|
64
|
+
_this.isCategoryCoordinateCalculator = isCategoryCoordinateCalculator;
|
|
65
|
+
return _this;
|
|
47
66
|
}
|
|
48
67
|
/**
|
|
49
68
|
* Converts the Data-value to a pixel coordinate
|
|
@@ -95,7 +114,8 @@ var CoordinateCalculatorBase = /** @class */ (function () {
|
|
|
95
114
|
var _a;
|
|
96
115
|
(_a = this.nativeCalculator) === null || _a === void 0 ? void 0 : _a.delete();
|
|
97
116
|
this.nativeCalculator = undefined;
|
|
117
|
+
this.webAssemblyContext = undefined;
|
|
98
118
|
};
|
|
99
119
|
return CoordinateCalculatorBase;
|
|
100
|
-
}());
|
|
120
|
+
}(DeletableEntity_1.DeletableEntity));
|
|
101
121
|
exports.CoordinateCalculatorBase = CoordinateCalculatorBase;
|
|
@@ -41,13 +41,11 @@ export declare class FlippedCategoryCoordinateCalculator extends CoordinateCalcu
|
|
|
41
41
|
* @param webAssemblyContext The {@link TSciChart | SciChart 2D WebAssembly Context} or {@link TSciChart2D | SciChart 2D WebAssembly Context}
|
|
42
42
|
* containing native methods and access to our WebGL2 Engine and WebAssembly numerical methods
|
|
43
43
|
* @param viewportDimension The size of the associated {@link AxisCore | Axis} at the time of drawing
|
|
44
|
-
* @param visibleMin The
|
|
45
|
-
* @param visibleMax The
|
|
46
|
-
* @param indexMin The {@link CategoryAxis.visibleRange}.min at the time of drawing, corresponding to the minimum data-index visible
|
|
47
|
-
* @param indexMax The {@link CategoryAxis.visibleRange}.max at the time of drawing, corresponding to the maximum data-index visible
|
|
44
|
+
* @param visibleMin The {@link CategoryAxis.visibleRange}.min at the time of drawing, corresponding to the minimum data-index visible
|
|
45
|
+
* @param visibleMax The {@link CategoryAxis.visibleRange}.max at the time of drawing, corresponding to the maximum data-index visible
|
|
48
46
|
* @param offset A constant pixel offset used in coordinate calculations
|
|
49
47
|
*/
|
|
50
|
-
constructor(webAssemblyContext: TSciChart, viewportDimension: number, visibleMin: number, visibleMax: number,
|
|
48
|
+
constructor(webAssemblyContext: TSciChart, viewportDimension: number, visibleMin: number, visibleMax: number, offset?: number);
|
|
51
49
|
/**
|
|
52
50
|
* Transforms an Index to a Data-value, with extrapolation and interpolation for values found outside of
|
|
53
51
|
* {@link baseXValues | the Primary Chart series X-Values}
|
|
@@ -47,17 +47,15 @@ var FlippedCategoryCoordinateCalculator = /** @class */ (function (_super) {
|
|
|
47
47
|
* @param webAssemblyContext The {@link TSciChart | SciChart 2D WebAssembly Context} or {@link TSciChart2D | SciChart 2D WebAssembly Context}
|
|
48
48
|
* containing native methods and access to our WebGL2 Engine and WebAssembly numerical methods
|
|
49
49
|
* @param viewportDimension The size of the associated {@link AxisCore | Axis} at the time of drawing
|
|
50
|
-
* @param visibleMin The
|
|
51
|
-
* @param visibleMax The
|
|
52
|
-
* @param indexMin The {@link CategoryAxis.visibleRange}.min at the time of drawing, corresponding to the minimum data-index visible
|
|
53
|
-
* @param indexMax The {@link CategoryAxis.visibleRange}.max at the time of drawing, corresponding to the maximum data-index visible
|
|
50
|
+
* @param visibleMin The {@link CategoryAxis.visibleRange}.min at the time of drawing, corresponding to the minimum data-index visible
|
|
51
|
+
* @param visibleMax The {@link CategoryAxis.visibleRange}.max at the time of drawing, corresponding to the maximum data-index visible
|
|
54
52
|
* @param offset A constant pixel offset used in coordinate calculations
|
|
55
53
|
*/
|
|
56
|
-
function FlippedCategoryCoordinateCalculator(webAssemblyContext, viewportDimension, visibleMin, visibleMax,
|
|
54
|
+
function FlippedCategoryCoordinateCalculator(webAssemblyContext, viewportDimension, visibleMin, visibleMax, offset) {
|
|
57
55
|
if (offset === void 0) { offset = 0; }
|
|
58
56
|
var _this = _super.call(this, webAssemblyContext, viewportDimension, visibleMin, visibleMax, offset, false, true) || this;
|
|
59
|
-
_this.indexMin =
|
|
60
|
-
_this.indexMax =
|
|
57
|
+
_this.indexMin = visibleMin;
|
|
58
|
+
_this.indexMax = visibleMax;
|
|
61
59
|
_this.nativeCalculator = new webAssemblyContext.FlippedCategoryCoordinateCalculatorDouble(_this.viewportDimension, _this.visibleMin, _this.visibleMax, -1, _this.offset, _this.indexMin, _this.indexMax);
|
|
62
60
|
return _this;
|
|
63
61
|
}
|
|
@@ -1,12 +1,14 @@
|
|
|
1
|
+
import { DeletableEntity } from "../../../Core/DeletableEntity";
|
|
1
2
|
import { IDeletable } from "../../../Core/IDeletable";
|
|
2
|
-
import { IntVector, SCRTDoubleResamplerMergeIndicesParams, SCRTDoubleVector, TSciChart } from "../../../types/TSciChart";
|
|
3
|
+
import { IntVector, ResamplingMode, SCRTDoubleResamplerMergeIndicesParams, SCRTDoubleVector, TSciChart } from "../../../types/TSciChart";
|
|
4
|
+
import { EResamplingMode } from "./ResamplingMode";
|
|
3
5
|
import { ResamplingParams } from "./ResamplingParams";
|
|
4
6
|
/**
|
|
5
7
|
* Helper class for functions which optimise drawing
|
|
6
8
|
*/
|
|
7
|
-
export declare class ExtremeResamplerHelper implements IDeletable {
|
|
9
|
+
export declare class ExtremeResamplerHelper extends DeletableEntity implements IDeletable {
|
|
8
10
|
readonly nativeMergeIndexParams: SCRTDoubleResamplerMergeIndicesParams;
|
|
9
|
-
private
|
|
11
|
+
private wasmContext;
|
|
10
12
|
private readonly nativeResampler;
|
|
11
13
|
private readonly xInput;
|
|
12
14
|
private readonly nativeArgs;
|
|
@@ -36,19 +38,21 @@ export declare class ExtremeResamplerHelper implements IDeletable {
|
|
|
36
38
|
* you can set it to False if {@link needsResampling()} was called before this method
|
|
37
39
|
* @returns indicesVector The resampled vector of indices
|
|
38
40
|
*/
|
|
39
|
-
resampleIntoPointSeries(wasmContext: TSciChart, rp: ResamplingParams, xOriginalValues: SCRTDoubleVector, yOriginalValues: SCRTDoubleVector, indexesOut: IntVector, xResampledValuesOut: SCRTDoubleVector, yResampledValuesOut: SCRTDoubleVector, fillBasicNativeArgs?: boolean):
|
|
41
|
+
resampleIntoPointSeries(wasmContext: TSciChart, rp: ResamplingParams, xOriginalValues: SCRTDoubleVector, yOriginalValues: SCRTDoubleVector, indexesOut: IntVector, indexesResampledOut: SCRTDoubleVector, xResampledValuesOut: SCRTDoubleVector, yResampledValuesOut: SCRTDoubleVector, fillBasicNativeArgs?: boolean): {
|
|
42
|
+
OutputSplitIndex: number;
|
|
43
|
+
};
|
|
40
44
|
mergeIndexes(indices: IntVector, size1: number, size2: number, mergedIndicesOut: IntVector): number;
|
|
41
|
-
copyValuesByIndexes(indices: IntVector, xValues: SCRTDoubleVector, yValues: SCRTDoubleVector, y1Values: SCRTDoubleVector, count: number, isCategoryAxis: boolean, xValuesOut: SCRTDoubleVector, yValuesOut: SCRTDoubleVector, y1ValuesOut: SCRTDoubleVector, y1Offset?: number): void;
|
|
45
|
+
copyValuesByIndexes(indices: IntVector, xValues: SCRTDoubleVector, yValues: SCRTDoubleVector, y1Values: SCRTDoubleVector, count: number, isCategoryAxis: boolean, isFifoSweeping: boolean, indicesOut: SCRTDoubleVector, xValuesOut: SCRTDoubleVector, yValuesOut: SCRTDoubleVector, y1ValuesOut: SCRTDoubleVector, y1Offset?: number): void;
|
|
42
46
|
/** @inheritDoc */
|
|
43
47
|
delete(): void;
|
|
48
|
+
getNativeResamplingMode(resamplingMode: EResamplingMode): ResamplingMode;
|
|
49
|
+
/**
|
|
50
|
+
* Fills basic native args needed for {@link needsResampling()} and {@link resampleIntoPointSeries} methods
|
|
51
|
+
*/
|
|
52
|
+
resetAndFillBasicNativeArgs(rp: ResamplingParams, xOriginalValues: SCRTDoubleVector): void;
|
|
44
53
|
private debugParameters;
|
|
45
54
|
private debugRect;
|
|
46
55
|
private debugResamplingDataEnum;
|
|
47
56
|
private debugResamplingModeEnum;
|
|
48
57
|
private getDataDistribution;
|
|
49
|
-
private getNativeResamplingMode;
|
|
50
|
-
/**
|
|
51
|
-
* Fills basic native args needed for {@link needsResampling()} and {@link resampleIntoPointSeries} methods
|
|
52
|
-
*/
|
|
53
|
-
private resetAndFillBasicNativeArgs;
|
|
54
58
|
}
|
|
@@ -1,21 +1,40 @@
|
|
|
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.ExtremeResamplerHelper = void 0;
|
|
19
|
+
var DeletableEntity_1 = require("../../../Core/DeletableEntity");
|
|
4
20
|
var Deleter_1 = require("../../../Core/Deleter");
|
|
5
21
|
var Guard_1 = require("../../../Core/Guard");
|
|
6
22
|
var ResamplingMode_1 = require("./ResamplingMode");
|
|
7
23
|
/**
|
|
8
24
|
* Helper class for functions which optimise drawing
|
|
9
25
|
*/
|
|
10
|
-
var ExtremeResamplerHelper = /** @class */ (function () {
|
|
26
|
+
var ExtremeResamplerHelper = /** @class */ (function (_super) {
|
|
27
|
+
__extends(ExtremeResamplerHelper, _super);
|
|
11
28
|
function ExtremeResamplerHelper(wasmContext) {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
29
|
+
var _this = _super.call(this) || this;
|
|
30
|
+
_this.isDeleted = false;
|
|
31
|
+
_this.nativeMergeIndexParams = new wasmContext.SCRTDoubleResamplerMergeIndicesParams();
|
|
32
|
+
_this.wasmContext = wasmContext;
|
|
33
|
+
_this.nativeResampler = new _this.wasmContext.SCRTDoubleResampler();
|
|
34
|
+
_this.xInput = new _this.wasmContext.SCRTXvaluesProvider();
|
|
35
|
+
_this.nativeArgs = new _this.wasmContext.ResamplingArgs();
|
|
36
|
+
_this.output = new _this.wasmContext.SCRTDoubleArraysXyResampleOutput();
|
|
37
|
+
return _this;
|
|
19
38
|
}
|
|
20
39
|
/**
|
|
21
40
|
* Calls native RequiresReduction method to calculate if resampling is needed
|
|
@@ -29,8 +48,9 @@ var ExtremeResamplerHelper = /** @class */ (function () {
|
|
|
29
48
|
if (updateResamplingMode === void 0) { updateResamplingMode = false; }
|
|
30
49
|
if (fillBasicNativeArgs)
|
|
31
50
|
this.resetAndFillBasicNativeArgs(rp, xOriginalValues);
|
|
32
|
-
var
|
|
33
|
-
|
|
51
|
+
var requiresReduction = this.nativeResampler.RequiresReduction(this.nativeArgs);
|
|
52
|
+
var needsResampling = rp.dataIsFifo || requiresReduction;
|
|
53
|
+
if ((updateResamplingMode && !needsResampling) || (needsResampling && !requiresReduction)) {
|
|
34
54
|
this.nativeArgs.Resampling = this.getNativeResamplingMode(ResamplingMode_1.EResamplingMode.None);
|
|
35
55
|
}
|
|
36
56
|
return needsResampling;
|
|
@@ -50,7 +70,7 @@ var ExtremeResamplerHelper = /** @class */ (function () {
|
|
|
50
70
|
* you can set it to False if {@link needsResampling()} was called before this method
|
|
51
71
|
* @returns indicesVector The resampled vector of indices
|
|
52
72
|
*/
|
|
53
|
-
ExtremeResamplerHelper.prototype.resampleIntoPointSeries = function (wasmContext, rp, xOriginalValues, yOriginalValues, indexesOut, xResampledValuesOut, yResampledValuesOut, fillBasicNativeArgs) {
|
|
73
|
+
ExtremeResamplerHelper.prototype.resampleIntoPointSeries = function (wasmContext, rp, xOriginalValues, yOriginalValues, indexesOut, indexesResampledOut, xResampledValuesOut, yResampledValuesOut, fillBasicNativeArgs) {
|
|
54
74
|
if (fillBasicNativeArgs === void 0) { fillBasicNativeArgs = true; }
|
|
55
75
|
if (this.isDeleted) {
|
|
56
76
|
throw new Error("should not call resampleIntoPointSeries() if deleted");
|
|
@@ -64,9 +84,6 @@ var ExtremeResamplerHelper = /** @class */ (function () {
|
|
|
64
84
|
this.resetAndFillBasicNativeArgs(rp, xOriginalValues);
|
|
65
85
|
// Set X Values
|
|
66
86
|
this.xInput.SetInput(xOriginalValues);
|
|
67
|
-
this.nativeArgs.FifoCapacity = rp.fifoCapacity;
|
|
68
|
-
this.nativeArgs.HasNaN = rp.dataHasNaN;
|
|
69
|
-
this.nativeArgs.IsFifo = rp.dataIsFifo;
|
|
70
87
|
this.nativeArgs.ResamplingPrecision = rp.precision;
|
|
71
88
|
this.nativeArgs.ZeroLineY = rp.zeroLineY;
|
|
72
89
|
this.nativeArgs.NewDataPointCount = -1;
|
|
@@ -78,29 +95,43 @@ var ExtremeResamplerHelper = /** @class */ (function () {
|
|
|
78
95
|
var requestedSize = this.nativeResampler.UpdateIndices(indexesOut, this.xInput, yOriginalValues, this.nativeArgs.Resampling, this.nativeArgs);
|
|
79
96
|
// SC-5145 Adds +1 to be sure that reserved Capacity is not less than the actual resampled count,
|
|
80
97
|
// otherwise resampledXValues and resampledYValues will be recreated with default 0.0 values
|
|
98
|
+
if (indexesResampledOut) {
|
|
99
|
+
indexesResampledOut.resizeFast(requestedSize + 1);
|
|
100
|
+
}
|
|
81
101
|
xResampledValuesOut.resizeFast(requestedSize + 1);
|
|
82
102
|
yResampledValuesOut.resizeFast(requestedSize + 1);
|
|
83
|
-
|
|
103
|
+
if (indexesResampledOut) {
|
|
104
|
+
this.output.ResetWithIndices(indexesResampledOut, xResampledValuesOut, yResampledValuesOut);
|
|
105
|
+
}
|
|
106
|
+
else {
|
|
107
|
+
this.output.Reset(xResampledValuesOut, yResampledValuesOut);
|
|
108
|
+
}
|
|
84
109
|
// Execute resampling and update indexesOut vector
|
|
85
110
|
this.nativeResampler.Execute(this.xInput, yOriginalValues, this.output, indexesOut, this.nativeArgs.Resampling, this.nativeArgs);
|
|
86
111
|
var resultCount = indexesOut.size();
|
|
112
|
+
//console.log("indexes from rs",resultCount, indexesOut.get(resultCount - 2), indexesOut.get(resultCount - 1));
|
|
113
|
+
if (indexesResampledOut) {
|
|
114
|
+
indexesResampledOut.resizeFast(resultCount);
|
|
115
|
+
}
|
|
87
116
|
xResampledValuesOut.resizeFast(resultCount);
|
|
88
117
|
yResampledValuesOut.resizeFast(resultCount);
|
|
118
|
+
return { OutputSplitIndex: this.output.OutputSplitIndex || this.nativeArgs.OutputSplitIndex };
|
|
89
119
|
};
|
|
90
120
|
ExtremeResamplerHelper.prototype.mergeIndexes = function (indices, size1, size2, mergedIndicesOut) {
|
|
91
121
|
return this.nativeResampler.MergeIndices(indices, size1, size2, mergedIndicesOut);
|
|
92
122
|
};
|
|
93
|
-
ExtremeResamplerHelper.prototype.copyValuesByIndexes = function (indices, xValues, yValues, y1Values, count, isCategoryAxis, xValuesOut, yValuesOut, y1ValuesOut, y1Offset) {
|
|
123
|
+
ExtremeResamplerHelper.prototype.copyValuesByIndexes = function (indices, xValues, yValues, y1Values, count, isCategoryAxis, isFifoSweeping, indicesOut, xValuesOut, yValuesOut, y1ValuesOut, y1Offset) {
|
|
94
124
|
if (y1Offset === void 0) { y1Offset = 0; }
|
|
95
125
|
var mp = this.nativeMergeIndexParams;
|
|
96
126
|
mp.SetIndices(indices);
|
|
97
|
-
|
|
98
|
-
mp.SetXInput(this.xInput);
|
|
127
|
+
mp.SetXInput(xValues);
|
|
99
128
|
mp.SetYInput(yValues);
|
|
100
129
|
mp.SetY1Input(y1Values);
|
|
101
130
|
mp.SetY1Offset(y1Offset);
|
|
102
131
|
mp.count = count;
|
|
103
132
|
mp.isCategoryData = isCategoryAxis;
|
|
133
|
+
mp.isFifoSweeping = isFifoSweeping;
|
|
134
|
+
mp.SetIndicesOut(indicesOut);
|
|
104
135
|
mp.SetXOut(xValuesOut);
|
|
105
136
|
mp.SetYOut(yValuesOut);
|
|
106
137
|
mp.SetY1Out(y1ValuesOut);
|
|
@@ -115,6 +146,61 @@ var ExtremeResamplerHelper = /** @class */ (function () {
|
|
|
115
146
|
(0, Deleter_1.deleteSafe)(this.output);
|
|
116
147
|
(0, Deleter_1.deleteSafe)(this.nativeMergeIndexParams);
|
|
117
148
|
this.isDeleted = true;
|
|
149
|
+
this.wasmContext = undefined;
|
|
150
|
+
}
|
|
151
|
+
};
|
|
152
|
+
ExtremeResamplerHelper.prototype.getNativeResamplingMode = function (resamplingMode) {
|
|
153
|
+
switch (resamplingMode) {
|
|
154
|
+
case ResamplingMode_1.EResamplingMode.Auto:
|
|
155
|
+
return this.wasmContext.ResamplingMode.Auto;
|
|
156
|
+
case ResamplingMode_1.EResamplingMode.Max:
|
|
157
|
+
return this.wasmContext.ResamplingMode.Max;
|
|
158
|
+
case ResamplingMode_1.EResamplingMode.Mid:
|
|
159
|
+
return this.wasmContext.ResamplingMode.Mid;
|
|
160
|
+
case ResamplingMode_1.EResamplingMode.Min:
|
|
161
|
+
return this.wasmContext.ResamplingMode.Min;
|
|
162
|
+
case ResamplingMode_1.EResamplingMode.MinMax:
|
|
163
|
+
return this.wasmContext.ResamplingMode.MinMax;
|
|
164
|
+
case ResamplingMode_1.EResamplingMode.MinOrMax:
|
|
165
|
+
return this.wasmContext.ResamplingMode.MinOrMax;
|
|
166
|
+
case ResamplingMode_1.EResamplingMode.None:
|
|
167
|
+
return this.wasmContext.ResamplingMode.None;
|
|
168
|
+
default:
|
|
169
|
+
throw new Error("Unknown resamplingMode ".concat(resamplingMode));
|
|
170
|
+
}
|
|
171
|
+
};
|
|
172
|
+
/**
|
|
173
|
+
* Fills basic native args needed for {@link needsResampling()} and {@link resampleIntoPointSeries} methods
|
|
174
|
+
*/
|
|
175
|
+
ExtremeResamplerHelper.prototype.resetAndFillBasicNativeArgs = function (rp, xOriginalValues) {
|
|
176
|
+
this.nativeArgs.Reset();
|
|
177
|
+
this.nativeArgs.Data = this.getDataDistribution(rp.dataEvenlySpaced, rp.isCategoryAxis);
|
|
178
|
+
this.nativeArgs.StartIndex = rp.indexesRange.min;
|
|
179
|
+
this.nativeArgs.EndIndex = rp.indexesRange.max;
|
|
180
|
+
this.nativeArgs.MaxXInclusive = rp.xVisibleRange.max;
|
|
181
|
+
this.nativeArgs.MinXInclusive = rp.xVisibleRange.min;
|
|
182
|
+
this.nativeArgs.Resampling = this.getNativeResamplingMode(rp.resamplingMode);
|
|
183
|
+
this.nativeArgs.ViewportWidth = rp.viewportRect.width;
|
|
184
|
+
this.nativeArgs.FifoCapacity = rp.fifoCapacity || 0;
|
|
185
|
+
this.nativeArgs.HasNaN = rp.dataHasNaN;
|
|
186
|
+
this.nativeArgs.IsFifo = rp.dataIsFifo;
|
|
187
|
+
this.nativeArgs.InputBaseIndex = rp.fifoStartIndex || 0;
|
|
188
|
+
if (rp.isCategoryAxis) {
|
|
189
|
+
this.nativeArgs.MinXInclusive = rp.indexesRange.min;
|
|
190
|
+
this.nativeArgs.MaxXInclusive = rp.indexesRange.max;
|
|
191
|
+
}
|
|
192
|
+
else if (rp.fifoCapacity && !rp.dataIsFifo) {
|
|
193
|
+
// Sweeping on numeric axis, which requires x values to be sorted wrt the raw data, eg x % fifoCapactiy
|
|
194
|
+
var firstPoint = xOriginalValues.getRaw(rp.indexesRange.min);
|
|
195
|
+
var lastPoint = xOriginalValues.getRaw(rp.indexesRange.max);
|
|
196
|
+
this.nativeArgs.MinXInclusive = Math.max(firstPoint, rp.xVisibleRange.min);
|
|
197
|
+
this.nativeArgs.MaxXInclusive = Math.min(lastPoint, rp.xVisibleRange.max);
|
|
198
|
+
}
|
|
199
|
+
else {
|
|
200
|
+
var firstPoint = xOriginalValues.get(rp.indexesRange.min);
|
|
201
|
+
var lastPoint = xOriginalValues.get(rp.indexesRange.max);
|
|
202
|
+
this.nativeArgs.MinXInclusive = Math.max(firstPoint, rp.xVisibleRange.min);
|
|
203
|
+
this.nativeArgs.MaxXInclusive = Math.min(lastPoint, rp.xVisibleRange.max);
|
|
118
204
|
}
|
|
119
205
|
};
|
|
120
206
|
ExtremeResamplerHelper.prototype.debugParameters = function (rp, nativeArgs) {
|
|
@@ -179,56 +265,6 @@ var ExtremeResamplerHelper = /** @class */ (function () {
|
|
|
179
265
|
? this.wasmContext.ResamplingData.LinearData
|
|
180
266
|
: this.wasmContext.ResamplingData.UnevenlySpacedData;
|
|
181
267
|
};
|
|
182
|
-
// A different requireReduction method
|
|
183
|
-
// private requireReduction(resamplingMode: EResamplingMode, indicesRange: NumberRange, viewportWidth: number) {
|
|
184
|
-
// const setLength = indicesRange.max - indicesRange.min + 1;
|
|
185
|
-
// const resampledLength = 4 * viewportWidth;
|
|
186
|
-
//
|
|
187
|
-
// return resamplingMode !== EResamplingMode.None && setLength > resampledLength;
|
|
188
|
-
// }
|
|
189
|
-
ExtremeResamplerHelper.prototype.getNativeResamplingMode = function (resamplingMode) {
|
|
190
|
-
switch (resamplingMode) {
|
|
191
|
-
case ResamplingMode_1.EResamplingMode.Auto:
|
|
192
|
-
return this.wasmContext.ResamplingMode.Auto;
|
|
193
|
-
case ResamplingMode_1.EResamplingMode.Max:
|
|
194
|
-
return this.wasmContext.ResamplingMode.Max;
|
|
195
|
-
case ResamplingMode_1.EResamplingMode.Mid:
|
|
196
|
-
return this.wasmContext.ResamplingMode.Mid;
|
|
197
|
-
case ResamplingMode_1.EResamplingMode.Min:
|
|
198
|
-
return this.wasmContext.ResamplingMode.Min;
|
|
199
|
-
case ResamplingMode_1.EResamplingMode.MinMax:
|
|
200
|
-
return this.wasmContext.ResamplingMode.MinMax;
|
|
201
|
-
case ResamplingMode_1.EResamplingMode.MinOrMax:
|
|
202
|
-
return this.wasmContext.ResamplingMode.MinOrMax;
|
|
203
|
-
case ResamplingMode_1.EResamplingMode.None:
|
|
204
|
-
return this.wasmContext.ResamplingMode.None;
|
|
205
|
-
default:
|
|
206
|
-
throw new Error("Unknown resamplingMode ".concat(resamplingMode));
|
|
207
|
-
}
|
|
208
|
-
};
|
|
209
|
-
/**
|
|
210
|
-
* Fills basic native args needed for {@link needsResampling()} and {@link resampleIntoPointSeries} methods
|
|
211
|
-
*/
|
|
212
|
-
ExtremeResamplerHelper.prototype.resetAndFillBasicNativeArgs = function (rp, xOriginalValues) {
|
|
213
|
-
this.nativeArgs.Reset();
|
|
214
|
-
this.nativeArgs.Data = this.getDataDistribution(rp.dataEvenlySpaced, rp.isCategoryAxis);
|
|
215
|
-
this.nativeArgs.StartIndex = rp.indexesRange.min;
|
|
216
|
-
this.nativeArgs.EndIndex = rp.indexesRange.max;
|
|
217
|
-
this.nativeArgs.MaxXInclusive = rp.xVisibleRange.max;
|
|
218
|
-
this.nativeArgs.MinXInclusive = rp.xVisibleRange.min;
|
|
219
|
-
this.nativeArgs.Resampling = this.getNativeResamplingMode(rp.resamplingMode);
|
|
220
|
-
this.nativeArgs.ViewportWidth = rp.viewportRect.width;
|
|
221
|
-
if (rp.isCategoryAxis) {
|
|
222
|
-
this.nativeArgs.MinXInclusive = rp.indexesRange.min;
|
|
223
|
-
this.nativeArgs.MaxXInclusive = rp.indexesRange.max;
|
|
224
|
-
}
|
|
225
|
-
else {
|
|
226
|
-
var firstPoint = xOriginalValues.get(rp.indexesRange.min);
|
|
227
|
-
var lastPoint = xOriginalValues.get(rp.indexesRange.max);
|
|
228
|
-
this.nativeArgs.MinXInclusive = Math.max(firstPoint, rp.xVisibleRange.min);
|
|
229
|
-
this.nativeArgs.MaxXInclusive = Math.min(lastPoint, rp.xVisibleRange.max);
|
|
230
|
-
}
|
|
231
|
-
};
|
|
232
268
|
return ExtremeResamplerHelper;
|
|
233
|
-
}());
|
|
269
|
+
}(DeletableEntity_1.DeletableEntity));
|
|
234
270
|
exports.ExtremeResamplerHelper = ExtremeResamplerHelper;
|
|
@@ -17,6 +17,7 @@ export interface IResamplingParamsCloneOptions {
|
|
|
17
17
|
dataHasNaN?: boolean;
|
|
18
18
|
dataIsFifo?: boolean;
|
|
19
19
|
fifoCapacity?: number;
|
|
20
|
+
fifoStartIndex?: number;
|
|
20
21
|
dataEvenlySpaced?: boolean;
|
|
21
22
|
}
|
|
22
23
|
export declare class ResamplingParams {
|
|
@@ -31,9 +32,10 @@ export declare class ResamplingParams {
|
|
|
31
32
|
renderableSeriesHash: number;
|
|
32
33
|
enableExperimentalResampling: boolean;
|
|
33
34
|
dataHasNaN: boolean;
|
|
34
|
-
dataIsFifo: boolean;
|
|
35
35
|
fifoCapacity: number;
|
|
36
|
+
fifoStartIndex: number;
|
|
36
37
|
dataEvenlySpaced: boolean;
|
|
38
|
+
dataIsFifo: boolean;
|
|
37
39
|
constructor(seriesViewRect: Rect, rs: IRenderableSeries, xAxis: AxisBase2D);
|
|
38
|
-
clone(options
|
|
40
|
+
clone(options?: IResamplingParamsCloneOptions): ResamplingParams;
|
|
39
41
|
}
|
|
@@ -7,8 +7,8 @@ var ResamplingParams = /** @class */ (function () {
|
|
|
7
7
|
this.zeroLineY = 0;
|
|
8
8
|
this.precision = 0;
|
|
9
9
|
this.enableExperimentalResampling = false;
|
|
10
|
-
this.dataIsFifo = false;
|
|
11
10
|
this.fifoCapacity = 0;
|
|
11
|
+
this.fifoStartIndex = 0;
|
|
12
12
|
this.viewportRect = seriesViewRect;
|
|
13
13
|
if (rs) {
|
|
14
14
|
var dataSeries = rs.dataSeries;
|
|
@@ -16,8 +16,8 @@ var ResamplingParams = /** @class */ (function () {
|
|
|
16
16
|
this.precision = rs.resamplingPrecision;
|
|
17
17
|
if (xAxis) {
|
|
18
18
|
this.indexesRange = rs.getIndicesRange(xAxis.visibleRange, xAxis.isCategoryAxis);
|
|
19
|
-
//
|
|
20
|
-
//
|
|
19
|
+
//console.log("visible range", xAxis.visibleRange.min, xAxis.visibleRange.max);
|
|
20
|
+
//console.log("indexes range", this.indexesRange.min, this.indexesRange.max);
|
|
21
21
|
this.isCategoryAxis = xAxis.isCategoryAxis;
|
|
22
22
|
this.isXAxisAutoRanged = xAxis.autoRange === AutoRange_1.EAutoRange.Always;
|
|
23
23
|
this.xVisibleRange = xAxis.visibleRange;
|
|
@@ -25,11 +25,15 @@ var ResamplingParams = /** @class */ (function () {
|
|
|
25
25
|
if (dataSeries) {
|
|
26
26
|
this.dataHasNaN = dataSeries === null || dataSeries === void 0 ? void 0 : dataSeries.dataDistributionCalculator.containsNaN;
|
|
27
27
|
this.dataEvenlySpaced = dataSeries === null || dataSeries === void 0 ? void 0 : dataSeries.isEvenlySpaced;
|
|
28
|
+
this.fifoCapacity = dataSeries.fifoCapacity;
|
|
29
|
+
this.fifoStartIndex = dataSeries.fifoStartIndex;
|
|
30
|
+
// Disabling fifo for sweeping nearly works, but is very unreliable.
|
|
31
|
+
this.dataIsFifo = dataSeries.fifoCapacity > 0 && !dataSeries.fifoSweeping;
|
|
28
32
|
}
|
|
29
33
|
}
|
|
30
34
|
}
|
|
31
35
|
ResamplingParams.prototype.clone = function (options) {
|
|
32
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
36
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
33
37
|
var rp = new ResamplingParams(undefined, undefined, undefined);
|
|
34
38
|
rp.zeroLineY = (_a = options === null || options === void 0 ? void 0 : options.zeroLineY) !== null && _a !== void 0 ? _a : this.zeroLineY;
|
|
35
39
|
rp.precision = (_b = options === null || options === void 0 ? void 0 : options.precision) !== null && _b !== void 0 ? _b : this.precision;
|
|
@@ -42,9 +46,10 @@ var ResamplingParams = /** @class */ (function () {
|
|
|
42
46
|
rp.renderableSeriesHash = (_j = options === null || options === void 0 ? void 0 : options.renderableSeriesHash) !== null && _j !== void 0 ? _j : this.renderableSeriesHash;
|
|
43
47
|
rp.enableExperimentalResampling = (_k = options === null || options === void 0 ? void 0 : options.enableExperimentalResampling) !== null && _k !== void 0 ? _k : this.enableExperimentalResampling;
|
|
44
48
|
rp.dataHasNaN = (_l = options === null || options === void 0 ? void 0 : options.dataHasNaN) !== null && _l !== void 0 ? _l : this.dataHasNaN;
|
|
45
|
-
rp.
|
|
46
|
-
rp.fifoCapacity = (_o = options
|
|
47
|
-
rp.
|
|
49
|
+
rp.dataEvenlySpaced = (_m = options === null || options === void 0 ? void 0 : options.dataEvenlySpaced) !== null && _m !== void 0 ? _m : this.dataEvenlySpaced;
|
|
50
|
+
rp.fifoCapacity = (_o = options.fifoCapacity) !== null && _o !== void 0 ? _o : this.fifoCapacity;
|
|
51
|
+
rp.fifoStartIndex = (_p = options.fifoStartIndex) !== null && _p !== void 0 ? _p : this.fifoStartIndex;
|
|
52
|
+
rp.dataIsFifo = (_q = options.dataIsFifo) !== null && _q !== void 0 ? _q : this.dataIsFifo;
|
|
48
53
|
return rp;
|
|
49
54
|
};
|
|
50
55
|
return ResamplingParams;
|
|
@@ -12,6 +12,11 @@ export declare abstract class TickCoordinatesProvider {
|
|
|
12
12
|
* @param axis The Axis we are attached to.
|
|
13
13
|
*/
|
|
14
14
|
attachedToAxis(axis: AxisCore): void;
|
|
15
|
+
/**
|
|
16
|
+
* Called when the {@link TickCoordinatesProvider} is detached from an {@link AxisCore | Axis}
|
|
17
|
+
* @param axis The Axis we are attached to.
|
|
18
|
+
*/
|
|
19
|
+
detachedFromAxis(): void;
|
|
15
20
|
/**
|
|
16
21
|
* Converts arrays of major and minor ticks (data values) into structure containing pixel coordinates
|
|
17
22
|
* @param minorTicks
|
|
@@ -14,6 +14,13 @@ var TickCoordinatesProvider = /** @class */ (function () {
|
|
|
14
14
|
TickCoordinatesProvider.prototype.attachedToAxis = function (axis) {
|
|
15
15
|
this.parentAxis = axis;
|
|
16
16
|
};
|
|
17
|
+
/**
|
|
18
|
+
* Called when the {@link TickCoordinatesProvider} is detached from an {@link AxisCore | Axis}
|
|
19
|
+
* @param axis The Axis we are attached to.
|
|
20
|
+
*/
|
|
21
|
+
TickCoordinatesProvider.prototype.detachedFromAxis = function () {
|
|
22
|
+
this.parentAxis = undefined;
|
|
23
|
+
};
|
|
17
24
|
return TickCoordinatesProvider;
|
|
18
25
|
}());
|
|
19
26
|
exports.TickCoordinatesProvider = TickCoordinatesProvider;
|
|
@@ -92,12 +92,11 @@ var NumericTickProvider = /** @class */ (function (_super) {
|
|
|
92
92
|
var results = [];
|
|
93
93
|
var min = visibleRange.min;
|
|
94
94
|
var max = visibleRange.max;
|
|
95
|
-
var current = min;
|
|
96
95
|
var calcMajorTicks = delta === majorDelta;
|
|
97
96
|
var numberUtil = this.webAssemblyContext.NumberUtil;
|
|
98
|
-
if
|
|
99
|
-
|
|
100
|
-
|
|
97
|
+
// Skip the divisiblity check here as it can return true if the min is within epsilon of being divisible,
|
|
98
|
+
// but false for min + delta, leading to only one tick being output.
|
|
99
|
+
var current = numberUtil.RoundUp(min, delta);
|
|
101
100
|
var start = current;
|
|
102
101
|
var tickCount = 0;
|
|
103
102
|
while (current <= max) {
|
|
@@ -23,6 +23,11 @@ export declare abstract class TickProvider {
|
|
|
23
23
|
* @param axis
|
|
24
24
|
*/
|
|
25
25
|
attachedToAxis(axis: AxisCore): void;
|
|
26
|
+
/**
|
|
27
|
+
* Called when the TickProvider is attached from an {@link AxisCore | Axis}
|
|
28
|
+
* @param axis
|
|
29
|
+
*/
|
|
30
|
+
detachedFromAxis(): void;
|
|
26
31
|
/**
|
|
27
32
|
* @summary Gets an array of major ticks (data-values values where SciChart will place labels and major gridlines).
|
|
28
33
|
* @description Major ticks are data-values where we will place the major gridlines and labels. For example. if the {@link AxisCore | Axis}
|
|
@@ -24,6 +24,13 @@ var TickProvider = /** @class */ (function () {
|
|
|
24
24
|
TickProvider.prototype.attachedToAxis = function (axis) {
|
|
25
25
|
this.parentAxis = axis;
|
|
26
26
|
};
|
|
27
|
+
/**
|
|
28
|
+
* Called when the TickProvider is attached from an {@link AxisCore | Axis}
|
|
29
|
+
* @param axis
|
|
30
|
+
*/
|
|
31
|
+
TickProvider.prototype.detachedFromAxis = function () {
|
|
32
|
+
this.parentAxis = undefined;
|
|
33
|
+
};
|
|
27
34
|
return TickProvider;
|
|
28
35
|
}());
|
|
29
36
|
exports.TickProvider = TickProvider;
|
|
@@ -58,7 +58,7 @@ var SciChartRenderer = /** @class */ (function () {
|
|
|
58
58
|
return {
|
|
59
59
|
pointSeries: rs.toPointSeries(),
|
|
60
60
|
renderableSeries: rs,
|
|
61
|
-
indicesRange: undefined,
|
|
61
|
+
indicesRange: rs.isStacked ? undefined : rs.getIndicesRange(xAxis.visibleRange, xAxis.isCategoryAxis),
|
|
62
62
|
resamplingHash: undefined
|
|
63
63
|
};
|
|
64
64
|
var rp = new ResamplingParams_1.ResamplingParams(seriesViewRect, rs, xAxis);
|
|
@@ -66,7 +66,7 @@ var SciChartRenderer = /** @class */ (function () {
|
|
|
66
66
|
return {
|
|
67
67
|
pointSeries: rs.toPointSeries(),
|
|
68
68
|
renderableSeries: rs,
|
|
69
|
-
indicesRange:
|
|
69
|
+
indicesRange: rp.indexesRange,
|
|
70
70
|
resamplingHash: undefined
|
|
71
71
|
};
|
|
72
72
|
var resamplingHash = SciChartRenderer.calculateResamplingHash(rs, rp);
|
|
@@ -110,7 +110,7 @@ var SciChartRenderer = /** @class */ (function () {
|
|
|
110
110
|
if (this.sciChartSurface.isDeleted) {
|
|
111
111
|
return;
|
|
112
112
|
}
|
|
113
|
-
//
|
|
113
|
+
//console.log("render start");
|
|
114
114
|
var nativeContext = renderContext.getNativeContext();
|
|
115
115
|
var wasmContext = this.sciChartSurface.webAssemblyContext2D;
|
|
116
116
|
var oldBlendMode;
|
|
@@ -126,7 +126,7 @@ var SciChartRenderer = /** @class */ (function () {
|
|
|
126
126
|
this.sciChartSurface.onAnimate(timeElapsed);
|
|
127
127
|
renderContext.enqueueLayeredDraw(function () {
|
|
128
128
|
_this.sciChartSurface.updateBackground();
|
|
129
|
-
}, this.getAbsoluteLayer(DefaultRenderLayer_1.EDefaultRenderLayer.
|
|
129
|
+
}, this.getAbsoluteLayer(DefaultRenderLayer_1.EDefaultRenderLayer.Background));
|
|
130
130
|
// Step 2 autorange
|
|
131
131
|
this.sciChartSurface.updateStackedCollectionAccumulatedVectors();
|
|
132
132
|
this.sciChartSurface.xAxes.asArray().forEach(function (axis) { return _this.tryPerformAutoRangeOn(axis, _this.sciChartSurface); });
|
|
@@ -164,6 +164,11 @@ var SciChartRenderer = /** @class */ (function () {
|
|
|
164
164
|
el.type === IAnnotation_1.EAnnotationType.RenderContextAxisMarkerAnnotation ||
|
|
165
165
|
el.type === IAnnotation_1.EAnnotationType.RenderContextNativeTextAnnotation);
|
|
166
166
|
});
|
|
167
|
+
// Draw annotations before axis
|
|
168
|
+
var annotationsLayerBelowAxis = this.getAbsoluteLayer(DefaultRenderLayer_1.EDefaultRenderLayer.Background);
|
|
169
|
+
renderContext.enqueueLayeredDraw(function () {
|
|
170
|
+
_this.drawRenderContextAnnotations(renderContextAnnotations, xAxesById, yAxesById, IAnnotation_1.EAnnotationLayer.Background, renderContext, seriesViewRect);
|
|
171
|
+
}, annotationsLayerBelowAxis);
|
|
167
172
|
var annotationsBelowLayer = this.getAbsoluteLayer(DefaultRenderLayer_1.EDefaultRenderLayer.AnnotationsBelowSeriesLayer);
|
|
168
173
|
renderContext.enqueueLayeredDraw(function () {
|
|
169
174
|
_this.drawRenderContextAnnotations(renderContextAnnotations, xAxesById, yAxesById, IAnnotation_1.EAnnotationLayer.BelowChart, renderContext, seriesViewRect);
|
|
@@ -373,7 +378,12 @@ var SciChartRenderer = /** @class */ (function () {
|
|
|
373
378
|
nativeContext.SetClipRect(viewRect.x, viewRect.y, viewRect.width, viewRect.height);
|
|
374
379
|
// Draw unselected series first
|
|
375
380
|
renderableSeriesArray.forEach(function (rs, index) {
|
|
376
|
-
if (rs.isVisible && !rs.isSelected)
|
|
381
|
+
if (rs.isVisible && !rs.isSelected && !rs.isHovered)
|
|
382
|
+
drawSeriesImpl(index);
|
|
383
|
+
});
|
|
384
|
+
// Draw hovered series next
|
|
385
|
+
renderableSeriesArray.forEach(function (rs, index) {
|
|
386
|
+
if (rs.isVisible && rs.isHovered)
|
|
377
387
|
drawSeriesImpl(index);
|
|
378
388
|
});
|
|
379
389
|
// Draw selected series at higher z-index
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { DeletableEntity } from "../../Core/DeletableEntity";
|
|
1
2
|
import { ICacheable } from "../../Core/ICacheable";
|
|
2
3
|
import { IDeletable } from "../../Core/IDeletable";
|
|
3
4
|
import { Rect } from "../../Core/Rect";
|
|
@@ -18,7 +19,7 @@ export interface IChartTitleRenderer extends ITitleRenderer {
|
|
|
18
19
|
titleOffset: Thickness;
|
|
19
20
|
measure(title: string | string[], originalTextStyle: Required<TChartTitleStyle>, renderContext: WebGlRenderContext2D): void;
|
|
20
21
|
}
|
|
21
|
-
export declare class TitleRendererBase<TextStyleType extends TAxisTitleStyle | TChartTitleStyle> implements ITitleRenderer {
|
|
22
|
+
export declare class TitleRendererBase<TextStyleType extends TAxisTitleStyle | TChartTitleStyle> extends DeletableEntity implements ITitleRenderer {
|
|
22
23
|
/**
|
|
23
24
|
* Defines a bounding {@link Rect} containing the title text
|
|
24
25
|
*/
|