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
|
@@ -33,14 +33,82 @@ var UniformHeatmapDataSeries = /** @class */ (function (_super) {
|
|
|
33
33
|
* @inheritDoc
|
|
34
34
|
*/
|
|
35
35
|
_this.type = IDataSeries_1.EDataSeriesType.HeatmapUniform;
|
|
36
|
-
_this.
|
|
37
|
-
_this.
|
|
38
|
-
_this.
|
|
39
|
-
_this.
|
|
36
|
+
_this.xStartProperty = options.xStart;
|
|
37
|
+
_this.xStepProperty = options.xStep;
|
|
38
|
+
_this.yStartProperty = options.yStart;
|
|
39
|
+
_this.yStepProperty = options.yStep;
|
|
40
40
|
_this.xRangeProperty = new NumberRange_1.NumberRange(_this.xStart, _this.getXValue(_this.arrayWidth));
|
|
41
41
|
_this.yRangeProperty = new NumberRange_1.NumberRange(_this.yStart, _this.getYValue(_this.arrayHeight));
|
|
42
42
|
return _this;
|
|
43
43
|
}
|
|
44
|
+
Object.defineProperty(UniformHeatmapDataSeries.prototype, "xStart", {
|
|
45
|
+
/**
|
|
46
|
+
* xStart defines the Start point on the {@link AxisBase2D| XAxis} where this heatmap will be drawn
|
|
47
|
+
*/
|
|
48
|
+
get: function () {
|
|
49
|
+
return this.xStartProperty;
|
|
50
|
+
},
|
|
51
|
+
/**
|
|
52
|
+
* xStart defines the Start point on the {@link AxisBase2D| XAxis} where this heatmap will be drawn
|
|
53
|
+
*/
|
|
54
|
+
set: function (value) {
|
|
55
|
+
this.xStartProperty = value;
|
|
56
|
+
this.notifyDataChanged(IDataSeries_1.EDataChangeType.Update);
|
|
57
|
+
},
|
|
58
|
+
enumerable: false,
|
|
59
|
+
configurable: true
|
|
60
|
+
});
|
|
61
|
+
Object.defineProperty(UniformHeatmapDataSeries.prototype, "xStep", {
|
|
62
|
+
/**
|
|
63
|
+
* xStep defines Step on the {@link AxisBase2D| XAxis} for each cell in the heatmap
|
|
64
|
+
*/
|
|
65
|
+
get: function () {
|
|
66
|
+
return this.xStepProperty;
|
|
67
|
+
},
|
|
68
|
+
/**
|
|
69
|
+
* xStep defines Step on the {@link AxisBase2D| XAxis} for each cell in the heatmap
|
|
70
|
+
*/
|
|
71
|
+
set: function (value) {
|
|
72
|
+
this.xStepProperty = value;
|
|
73
|
+
this.notifyDataChanged(IDataSeries_1.EDataChangeType.Update);
|
|
74
|
+
},
|
|
75
|
+
enumerable: false,
|
|
76
|
+
configurable: true
|
|
77
|
+
});
|
|
78
|
+
Object.defineProperty(UniformHeatmapDataSeries.prototype, "yStart", {
|
|
79
|
+
/**
|
|
80
|
+
* yStart defines the Start point on the {@link AxisBase2D| YAxis} where this heatmap will be drawn
|
|
81
|
+
*/
|
|
82
|
+
get: function () {
|
|
83
|
+
return this.yStartProperty;
|
|
84
|
+
},
|
|
85
|
+
/**
|
|
86
|
+
* yStart defines the Start point on the {@link AxisBase2D| YAxis} where this heatmap will be drawn
|
|
87
|
+
*/
|
|
88
|
+
set: function (value) {
|
|
89
|
+
this.yStartProperty = value;
|
|
90
|
+
this.notifyDataChanged(IDataSeries_1.EDataChangeType.Update);
|
|
91
|
+
},
|
|
92
|
+
enumerable: false,
|
|
93
|
+
configurable: true
|
|
94
|
+
});
|
|
95
|
+
Object.defineProperty(UniformHeatmapDataSeries.prototype, "yStep", {
|
|
96
|
+
/**
|
|
97
|
+
* yStep defines Step on the {@link AxisBase2D| YAxis} for each cell in the heatmap
|
|
98
|
+
*/
|
|
99
|
+
get: function () {
|
|
100
|
+
return this.yStepProperty;
|
|
101
|
+
},
|
|
102
|
+
/**
|
|
103
|
+
* yStep defines Step on the {@link AxisBase2D| YAxis} for each cell in the heatmap
|
|
104
|
+
*/
|
|
105
|
+
set: function (value) {
|
|
106
|
+
this.yStepProperty = value;
|
|
107
|
+
this.notifyDataChanged(IDataSeries_1.EDataChangeType.Update);
|
|
108
|
+
},
|
|
109
|
+
enumerable: false,
|
|
110
|
+
configurable: true
|
|
111
|
+
});
|
|
44
112
|
/**
|
|
45
113
|
* Gets the X-value at the specified index. This will be computed from constructor parameters xStep and xStart
|
|
46
114
|
* @param xIndex
|
|
@@ -7,14 +7,6 @@ import { IPointMetadata } from "./IPointMetadata";
|
|
|
7
7
|
* Options to pass to the {@link XyDataSeries} constructor
|
|
8
8
|
*/
|
|
9
9
|
export interface IXyDataSeriesOptions extends IBaseDataSeriesOptions {
|
|
10
|
-
/**
|
|
11
|
-
* The X-values array to pre-populate the {@link XyDataSeries}
|
|
12
|
-
*/
|
|
13
|
-
xValues?: NumberArray;
|
|
14
|
-
/**
|
|
15
|
-
* The Y-values array to pre-populate the {@link XyDataSeries}
|
|
16
|
-
*/
|
|
17
|
-
yValues?: NumberArray;
|
|
18
10
|
}
|
|
19
11
|
/**
|
|
20
12
|
* @summary XyDataSeries is a DataSeries for holding X, Y data in SciChart's 2D
|
|
@@ -64,6 +64,10 @@ var XyDataSeries = /** @class */ (function (_super) {
|
|
|
64
64
|
if (options === null || options === void 0 ? void 0 : options.xValues) {
|
|
65
65
|
Guard_1.Guard.notNull(options.yValues, "options.yValues");
|
|
66
66
|
_this.appendRange(options.xValues, options.yValues, options.metadata);
|
|
67
|
+
if ((options === null || options === void 0 ? void 0 : options.fifoCapacity) && (options === null || options === void 0 ? void 0 : options.fifoStartIndex)) {
|
|
68
|
+
_this.xValues.notifyAppend(options === null || options === void 0 ? void 0 : options.fifoStartIndex);
|
|
69
|
+
_this.yValues.notifyAppend(options === null || options === void 0 ? void 0 : options.fifoStartIndex);
|
|
70
|
+
}
|
|
67
71
|
}
|
|
68
72
|
return _this;
|
|
69
73
|
}
|
|
@@ -114,8 +118,8 @@ var XyDataSeries = /** @class */ (function (_super) {
|
|
|
114
118
|
this.appendMetadataRange(metadata, xValues.length);
|
|
115
119
|
// New implementation passing array from JS
|
|
116
120
|
// TODO: create indexValues from c++
|
|
117
|
-
|
|
118
|
-
|
|
121
|
+
this.doubleVectorProvider.appendArray(this.webAssemblyContext, nativeX, xValues);
|
|
122
|
+
this.doubleVectorProvider.appendArray(this.webAssemblyContext, nativeY, yValues);
|
|
119
123
|
this.notifyDataChanged(IDataSeries_1.EDataChangeType.Append, null, xValues.length);
|
|
120
124
|
}
|
|
121
125
|
};
|
|
@@ -168,6 +172,7 @@ var XyDataSeries = /** @class */ (function (_super) {
|
|
|
168
172
|
XyDataSeries.prototype.insert = function (startIndex, x, y, metadata) {
|
|
169
173
|
if (!this.getIsDeleted()) {
|
|
170
174
|
this.validateIndex(startIndex, "Start index is out of range");
|
|
175
|
+
this.throwIfFifo("insert");
|
|
171
176
|
var nativeX = this.getNativeXValues();
|
|
172
177
|
var nativeY = this.getNativeYValues();
|
|
173
178
|
this.dataDistributionCalculator.onInsert(this.isSorted, this.containsNaN, nativeX, [x], [y], startIndex);
|
|
@@ -192,6 +197,7 @@ var XyDataSeries = /** @class */ (function (_super) {
|
|
|
192
197
|
Guard_1.Guard.isTrue((0, NumberArray_1.isNumberArray)(yValues) || (0, NumberArray_1.isTypedArray)(yValues), "yValues must be an array of numbers");
|
|
193
198
|
this.validateIndex(startIndex, "Start index is out of range");
|
|
194
199
|
Guard_1.Guard.arraysSameLength(xValues, "xValues", yValues, "yValues");
|
|
200
|
+
this.throwIfFifo("insertRange");
|
|
195
201
|
if (metadata) {
|
|
196
202
|
Guard_1.Guard.isTrue(Array.isArray(metadata), "metadata must be an array of IPointMetadata");
|
|
197
203
|
Guard_1.Guard.arraysSameLength(xValues, "xValues", metadata, "metadata");
|
|
@@ -212,6 +218,7 @@ var XyDataSeries = /** @class */ (function (_super) {
|
|
|
212
218
|
XyDataSeries.prototype.removeAt = function (index) {
|
|
213
219
|
if (!this.getIsDeleted()) {
|
|
214
220
|
this.validateIndex(index);
|
|
221
|
+
this.throwIfFifo("removeAt");
|
|
215
222
|
this.getNativeXValues().removeAt(index);
|
|
216
223
|
this.getNativeYValues().removeAt(index);
|
|
217
224
|
this.removeMetadataAt(index);
|
|
@@ -227,6 +234,7 @@ var XyDataSeries = /** @class */ (function (_super) {
|
|
|
227
234
|
XyDataSeries.prototype.removeRange = function (startIndex, count) {
|
|
228
235
|
if (!this.getIsDeleted()) {
|
|
229
236
|
this.validateIndex(startIndex, "Start index is out of range");
|
|
237
|
+
this.throwIfFifo("removeRange");
|
|
230
238
|
this.getNativeXValues().removeRange(startIndex, count);
|
|
231
239
|
this.getNativeYValues().removeRange(startIndex, count);
|
|
232
240
|
this.removeMetadataRange(startIndex, count);
|
|
@@ -256,9 +264,17 @@ var XyDataSeries = /** @class */ (function (_super) {
|
|
|
256
264
|
if (!excludeData) {
|
|
257
265
|
var xValues = [];
|
|
258
266
|
var yValues = [];
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
267
|
+
if (this.fifoCapacity && this.fifoSweeping) {
|
|
268
|
+
for (var i = 0; i < this.count(); i++) {
|
|
269
|
+
xValues.push(this.xValues.getRaw(i));
|
|
270
|
+
yValues.push(this.yValues.getRaw(i));
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
else {
|
|
274
|
+
for (var i = 0; i < this.count(); i++) {
|
|
275
|
+
xValues.push(this.xValues.get(i));
|
|
276
|
+
yValues.push(this.yValues.get(i));
|
|
277
|
+
}
|
|
262
278
|
}
|
|
263
279
|
var options = {
|
|
264
280
|
xValues: xValues,
|
|
@@ -28,6 +28,8 @@ export declare class XyTextDataSeries extends BaseDataSeries {
|
|
|
28
28
|
constructor(webAssemblyContext: TSciChart, options?: IXyTextDataSeriesOptions);
|
|
29
29
|
/** The text values for this series. Manipulate using append, insert, update etc on the XyTextDataSeries */
|
|
30
30
|
get textValues(): readonly string[];
|
|
31
|
+
/** Get the text value at an index, unwrapping the fifo buffer if fifoCapacity is set */
|
|
32
|
+
getTextValue(index: number): string;
|
|
31
33
|
/**
|
|
32
34
|
* Appends a single X, Y, Text point to the DataSeries
|
|
33
35
|
* @remarks
|
|
@@ -18,6 +18,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
18
18
|
exports.XyTextDataSeries = void 0;
|
|
19
19
|
var Guard_1 = require("../../Core/Guard");
|
|
20
20
|
var NumberArray_1 = require("../../types/NumberArray");
|
|
21
|
+
var array_1 = require("../../utils/array");
|
|
21
22
|
var appendDoubleVectorFromJsArray_1 = require("../../utils/ccall/appendDoubleVectorFromJsArray");
|
|
22
23
|
var BaseDataSeries_1 = require("./BaseDataSeries");
|
|
23
24
|
var IDataSeries_1 = require("./IDataSeries");
|
|
@@ -50,6 +51,21 @@ var XyTextDataSeries = /** @class */ (function (_super) {
|
|
|
50
51
|
enumerable: false,
|
|
51
52
|
configurable: true
|
|
52
53
|
});
|
|
54
|
+
/** Get the text value at an index, unwrapping the fifo buffer if fifoCapacity is set */
|
|
55
|
+
XyTextDataSeries.prototype.getTextValue = function (index) {
|
|
56
|
+
if (!this.fifoCapacity)
|
|
57
|
+
return this.textValuesProperty[index];
|
|
58
|
+
if (!this.fifoSweeping) {
|
|
59
|
+
var fifoIndex = (this.xValues.getStartIndex() + index) % this.fifoCapacity;
|
|
60
|
+
return this.textValuesProperty[fifoIndex];
|
|
61
|
+
}
|
|
62
|
+
else {
|
|
63
|
+
if (this.fifoCapacity - index < this.fifoSweepingGap) {
|
|
64
|
+
return "";
|
|
65
|
+
}
|
|
66
|
+
return this.textValuesProperty[index];
|
|
67
|
+
}
|
|
68
|
+
};
|
|
53
69
|
/**
|
|
54
70
|
* Appends a single X, Y, Text point to the DataSeries
|
|
55
71
|
* @remarks
|
|
@@ -67,9 +83,15 @@ var XyTextDataSeries = /** @class */ (function (_super) {
|
|
|
67
83
|
this.dataDistributionCalculator.onAppend(this.isSorted, this.containsNaN, nativeX, [x], [y]);
|
|
68
84
|
// Push metadata should be done before push x values
|
|
69
85
|
this.appendMetadata(metadata);
|
|
86
|
+
// Fifo text also before values as startIndex gets updated by nativeX push
|
|
87
|
+
if (this.fifoCapacity && this.count() === this.fifoCapacity) {
|
|
88
|
+
this.textValuesProperty[this.xValues.getStartIndex()] = text;
|
|
89
|
+
}
|
|
90
|
+
else {
|
|
91
|
+
this.textValuesProperty.push(text);
|
|
92
|
+
}
|
|
70
93
|
nativeX.push_back(x);
|
|
71
94
|
this.getNativeYValues().push_back(y);
|
|
72
|
-
this.textValuesProperty.push(text);
|
|
73
95
|
this.notifyDataChanged(IDataSeries_1.EDataChangeType.Append, null, 1);
|
|
74
96
|
}
|
|
75
97
|
};
|
|
@@ -99,11 +121,16 @@ var XyTextDataSeries = /** @class */ (function (_super) {
|
|
|
99
121
|
this.dataDistributionCalculator.onAppend(this.isSorted, this.containsNaN, nativeX, xValues, yValues);
|
|
100
122
|
// Push metadata should be done before push x values
|
|
101
123
|
this.appendMetadataRange(metadata, xValues.length);
|
|
124
|
+
if (this.fifoCapacity) {
|
|
125
|
+
(0, array_1.appendRangeFifo)(textValues, this.textValuesProperty, this.fifoCapacity, this.xValues.getStartIndex());
|
|
126
|
+
}
|
|
127
|
+
else {
|
|
128
|
+
(_a = this.textValuesProperty).push.apply(_a, textValues);
|
|
129
|
+
}
|
|
102
130
|
// New implementation passing array from JS
|
|
103
131
|
// TODO: create indexValues from c++
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
(_a = this.textValuesProperty).push.apply(_a, textValues);
|
|
132
|
+
this.doubleVectorProvider.appendArray(this.webAssemblyContext, nativeX, xValues);
|
|
133
|
+
this.doubleVectorProvider.appendArray(this.webAssemblyContext, nativeY, yValues);
|
|
107
134
|
this.notifyDataChanged(IDataSeries_1.EDataChangeType.Append, null, xValues.length);
|
|
108
135
|
}
|
|
109
136
|
};
|
|
@@ -161,6 +188,7 @@ var XyTextDataSeries = /** @class */ (function (_super) {
|
|
|
161
188
|
XyTextDataSeries.prototype.insert = function (startIndex, x, y, text, metadata) {
|
|
162
189
|
if (!this.getIsDeleted()) {
|
|
163
190
|
this.validateIndex(startIndex, "Start index is out of range");
|
|
191
|
+
this.throwIfFifo("insert");
|
|
164
192
|
var nativeX = this.getNativeXValues();
|
|
165
193
|
var nativeY = this.getNativeYValues();
|
|
166
194
|
this.dataDistributionCalculator.onInsert(this.isSorted, this.containsNaN, nativeX, [x], [y], startIndex);
|
|
@@ -187,6 +215,7 @@ var XyTextDataSeries = /** @class */ (function (_super) {
|
|
|
187
215
|
Guard_1.Guard.isTrue((0, NumberArray_1.isNumberArray)(xValues) || (0, NumberArray_1.isTypedArray)(xValues), "xValues must be an array of numbers");
|
|
188
216
|
Guard_1.Guard.isTrue((0, NumberArray_1.isNumberArray)(yValues) || (0, NumberArray_1.isTypedArray)(yValues), "yValues must be an array of numbers");
|
|
189
217
|
this.validateIndex(startIndex, "Start index is out of range");
|
|
218
|
+
this.throwIfFifo("insertRange");
|
|
190
219
|
Guard_1.Guard.arraysSameLength(xValues, "xValues", yValues, "yValues");
|
|
191
220
|
if (metadata) {
|
|
192
221
|
Guard_1.Guard.isTrue(Array.isArray(metadata), "metadata must be an array of IPointMetadata");
|
|
@@ -209,6 +238,7 @@ var XyTextDataSeries = /** @class */ (function (_super) {
|
|
|
209
238
|
XyTextDataSeries.prototype.removeAt = function (index) {
|
|
210
239
|
if (!this.getIsDeleted()) {
|
|
211
240
|
this.validateIndex(index);
|
|
241
|
+
this.throwIfFifo("removeAt");
|
|
212
242
|
this.getNativeXValues().removeAt(index);
|
|
213
243
|
this.getNativeYValues().removeAt(index);
|
|
214
244
|
this.textValuesProperty.splice(index, 1);
|
|
@@ -225,6 +255,7 @@ var XyTextDataSeries = /** @class */ (function (_super) {
|
|
|
225
255
|
XyTextDataSeries.prototype.removeRange = function (startIndex, count) {
|
|
226
256
|
if (!this.getIsDeleted()) {
|
|
227
257
|
this.validateIndex(startIndex, "Start index is out of range");
|
|
258
|
+
this.throwIfFifo("removeRange");
|
|
228
259
|
this.getNativeXValues().removeRange(startIndex, count);
|
|
229
260
|
this.getNativeYValues().removeRange(startIndex, count);
|
|
230
261
|
this.textValuesProperty.splice(startIndex, count);
|
|
@@ -151,6 +151,7 @@ export declare class XyyDataSeries extends BaseDataSeries {
|
|
|
151
151
|
getWindowedYRange(xRange: NumberRange, getPositiveRange: boolean, isXCategoryAxis?: boolean, dataSeriesValueType?: EDataSeriesValueType): NumberRange;
|
|
152
152
|
/** @inheritDoc */
|
|
153
153
|
delete(): void;
|
|
154
|
+
createAnimationVectors(): void;
|
|
154
155
|
/** @inheritDoc */
|
|
155
156
|
setInitialAnimationVectors(dataSeries?: XyyDataSeries): void;
|
|
156
157
|
/** @inheritDoc */
|
|
@@ -161,5 +162,6 @@ export declare class XyyDataSeries extends BaseDataSeries {
|
|
|
161
162
|
updateAnimationProperties(progress: number, animation: SeriesAnimation): void;
|
|
162
163
|
/** @inheritDoc */
|
|
163
164
|
toJSON(excludeData?: boolean): any;
|
|
165
|
+
protected reserve(size: number): void;
|
|
164
166
|
private getYY1Values;
|
|
165
167
|
}
|
|
@@ -21,6 +21,7 @@ var Guard_1 = require("../../Core/Guard");
|
|
|
21
21
|
var NumberRange_1 = require("../../Core/NumberRange");
|
|
22
22
|
var NumberArray_1 = require("../../types/NumberArray");
|
|
23
23
|
var appendDoubleVectorFromJsArray_1 = require("../../utils/ccall/appendDoubleVectorFromJsArray");
|
|
24
|
+
var isRealNumber_1 = require("../../utils/isRealNumber");
|
|
24
25
|
var animationHelpers_1 = require("../Visuals/RenderableSeries/Animations/animationHelpers");
|
|
25
26
|
var BaseDataSeries_1 = require("./BaseDataSeries");
|
|
26
27
|
var IDataSeries_1 = require("./IDataSeries");
|
|
@@ -49,13 +50,16 @@ var XyyDataSeries = /** @class */ (function (_super) {
|
|
|
49
50
|
var _this = _super.call(this, webAssemblyContext, options) || this;
|
|
50
51
|
/** @inheritDoc */
|
|
51
52
|
_this.type = IDataSeries_1.EDataSeriesType.Xyy;
|
|
52
|
-
_this.y1Values =
|
|
53
|
-
_this.y1InitialAnimationValues = new webAssemblyContext.SCRTDoubleVector();
|
|
54
|
-
_this.y1FinalAnimationValues = new webAssemblyContext.SCRTDoubleVector();
|
|
53
|
+
_this.y1Values = _this.doubleVectorProvider.getDoubleVector(webAssemblyContext);
|
|
55
54
|
if (options === null || options === void 0 ? void 0 : options.xValues) {
|
|
56
55
|
Guard_1.Guard.notNull(options.yValues, "options.yValues");
|
|
57
56
|
Guard_1.Guard.notNull(options.y1Values, "options.y1Values");
|
|
58
57
|
_this.appendRange(options.xValues, options.yValues, options.y1Values, 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.y1Values.notifyAppend(options === null || options === void 0 ? void 0 : options.fifoStartIndex);
|
|
62
|
+
}
|
|
59
63
|
}
|
|
60
64
|
return _this;
|
|
61
65
|
}
|
|
@@ -126,9 +130,9 @@ var XyyDataSeries = /** @class */ (function (_super) {
|
|
|
126
130
|
// nativeY1.push_back(y1Values[i]);
|
|
127
131
|
// }
|
|
128
132
|
// New implementation passing array from JS
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
133
|
+
this.doubleVectorProvider.appendArray(this.webAssemblyContext, nativeX, xValues);
|
|
134
|
+
this.doubleVectorProvider.appendArray(this.webAssemblyContext, nativeY, yValues);
|
|
135
|
+
this.doubleVectorProvider.appendArray(this.webAssemblyContext, nativeY1, y1Values);
|
|
132
136
|
this.notifyDataChanged(IDataSeries_1.EDataChangeType.Append, null, xValues.length);
|
|
133
137
|
}
|
|
134
138
|
};
|
|
@@ -186,6 +190,7 @@ var XyyDataSeries = /** @class */ (function (_super) {
|
|
|
186
190
|
XyyDataSeries.prototype.insert = function (startIndex, x, y, y1, metadata) {
|
|
187
191
|
if (!this.getIsDeleted()) {
|
|
188
192
|
this.validateIndex(startIndex, "Start index is out of range");
|
|
193
|
+
this.throwIfFifo("insert");
|
|
189
194
|
var nativeX = this.getNativeXValues();
|
|
190
195
|
var nativeY = this.getNativeYValues();
|
|
191
196
|
var nativeY1 = this.getNativeY1Values();
|
|
@@ -213,6 +218,7 @@ var XyyDataSeries = /** @class */ (function (_super) {
|
|
|
213
218
|
Guard_1.Guard.isTrue((0, NumberArray_1.isNumberArray)(yValues) || (0, NumberArray_1.isTypedArray)(yValues), "yValues must be an array of numbers");
|
|
214
219
|
Guard_1.Guard.isTrue((0, NumberArray_1.isNumberArray)(y1Values) || (0, NumberArray_1.isTypedArray)(y1Values), "y1Values must be an array of numbers");
|
|
215
220
|
this.validateIndex(startIndex, "Start index is out of range");
|
|
221
|
+
this.throwIfFifo("insertRange");
|
|
216
222
|
Guard_1.Guard.arraysSameLengthArr([
|
|
217
223
|
{ arg: xValues, name: "xValues" },
|
|
218
224
|
{ arg: yValues, name: "yValues" },
|
|
@@ -239,6 +245,7 @@ var XyyDataSeries = /** @class */ (function (_super) {
|
|
|
239
245
|
XyyDataSeries.prototype.removeAt = function (index) {
|
|
240
246
|
if (!this.getIsDeleted()) {
|
|
241
247
|
this.validateIndex(index);
|
|
248
|
+
this.throwIfFifo("removeAt");
|
|
242
249
|
this.getNativeXValues().removeAt(index);
|
|
243
250
|
this.getNativeYValues().removeAt(index);
|
|
244
251
|
this.getNativeY1Values().removeAt(index);
|
|
@@ -255,6 +262,7 @@ var XyyDataSeries = /** @class */ (function (_super) {
|
|
|
255
262
|
XyyDataSeries.prototype.removeRange = function (startIndex, count) {
|
|
256
263
|
if (!this.getIsDeleted()) {
|
|
257
264
|
this.validateIndex(startIndex, "Start index is out of range");
|
|
265
|
+
this.throwIfFifo("removeRange");
|
|
258
266
|
this.getNativeXValues().removeRange(startIndex, count);
|
|
259
267
|
this.getNativeYValues().removeRange(startIndex, count);
|
|
260
268
|
this.getNativeY1Values().removeRange(startIndex, count);
|
|
@@ -293,30 +301,28 @@ var XyyDataSeries = /** @class */ (function (_super) {
|
|
|
293
301
|
return new NumberRange_1.NumberRange(min, max);
|
|
294
302
|
}
|
|
295
303
|
var indicesRange = isXCategoryAxis ? xRange : this.getIndicesRange(xRange);
|
|
296
|
-
var yMin = Number.MAX_VALUE;
|
|
297
|
-
var yMax = Number.MIN_VALUE;
|
|
298
304
|
var iMin = Math.max(Math.floor(indicesRange.min), 0);
|
|
299
305
|
var iMax = Math.min(Math.ceil(indicesRange.max), this.count() - 1);
|
|
300
306
|
if (iMax < iMin) {
|
|
301
307
|
return undefined;
|
|
302
308
|
}
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
yMax = yVal;
|
|
309
|
+
var minMax;
|
|
310
|
+
var minMaxy1;
|
|
311
|
+
try {
|
|
312
|
+
minMax = this.webAssemblyContext.NumberUtil.MinMaxWithIndex(yValues, iMin, iMax - iMin + 1);
|
|
313
|
+
if (!(0, isRealNumber_1.isRealNumber)(minMax.minD) || !(0, isRealNumber_1.isRealNumber)(minMax.maxD)) {
|
|
314
|
+
return undefined;
|
|
310
315
|
}
|
|
311
|
-
|
|
312
|
-
if (
|
|
313
|
-
|
|
314
|
-
}
|
|
315
|
-
if (y1Val > yMax) {
|
|
316
|
-
yMax = y1Val;
|
|
316
|
+
minMaxy1 = this.webAssemblyContext.NumberUtil.MinMaxWithIndex(y1Values, iMin, iMax - iMin + 1);
|
|
317
|
+
if (!(0, isRealNumber_1.isRealNumber)(minMaxy1.minD) || !(0, isRealNumber_1.isRealNumber)(minMaxy1.maxD)) {
|
|
318
|
+
return undefined;
|
|
317
319
|
}
|
|
320
|
+
return new NumberRange_1.NumberRange(Math.min(minMax.minD, minMaxy1.minD), Math.max(minMax.maxD, minMaxy1.maxD));
|
|
321
|
+
}
|
|
322
|
+
finally {
|
|
323
|
+
(0, Deleter_1.deleteSafe)(minMax);
|
|
324
|
+
(0, Deleter_1.deleteSafe)(minMaxy1);
|
|
318
325
|
}
|
|
319
|
-
return new NumberRange_1.NumberRange(yMin, yMax);
|
|
320
326
|
};
|
|
321
327
|
/** @inheritDoc */
|
|
322
328
|
XyyDataSeries.prototype.delete = function () {
|
|
@@ -325,6 +331,11 @@ var XyyDataSeries = /** @class */ (function (_super) {
|
|
|
325
331
|
this.y1FinalAnimationValues = (0, Deleter_1.deleteSafe)(this.y1FinalAnimationValues);
|
|
326
332
|
_super.prototype.delete.call(this);
|
|
327
333
|
};
|
|
334
|
+
XyyDataSeries.prototype.createAnimationVectors = function () {
|
|
335
|
+
_super.prototype.createAnimationVectors.call(this);
|
|
336
|
+
this.y1InitialAnimationValues = this.doubleVectorProvider.getDoubleVector(this.webAssemblyContext);
|
|
337
|
+
this.y1FinalAnimationValues = this.doubleVectorProvider.getDoubleVector(this.webAssemblyContext);
|
|
338
|
+
};
|
|
328
339
|
/** @inheritDoc */
|
|
329
340
|
XyyDataSeries.prototype.setInitialAnimationVectors = function (dataSeries) {
|
|
330
341
|
_super.prototype.setInitialAnimationVectors.call(this, dataSeries);
|
|
@@ -369,10 +380,19 @@ var XyyDataSeries = /** @class */ (function (_super) {
|
|
|
369
380
|
var xValues = [];
|
|
370
381
|
var yValues = [];
|
|
371
382
|
var y1Values = [];
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
383
|
+
if (this.fifoCapacity && this.fifoSweeping) {
|
|
384
|
+
for (var i = 0; i < this.count(); i++) {
|
|
385
|
+
xValues.push(this.xValues.getRaw(i));
|
|
386
|
+
yValues.push(this.yValues.getRaw(i));
|
|
387
|
+
y1Values.push(this.y1Values.getRaw(i));
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
else {
|
|
391
|
+
for (var i = 0; i < this.count(); i++) {
|
|
392
|
+
xValues.push(this.xValues.get(i));
|
|
393
|
+
yValues.push(this.yValues.get(i));
|
|
394
|
+
y1Values.push(this.y1Values.get(i));
|
|
395
|
+
}
|
|
376
396
|
}
|
|
377
397
|
var options = {
|
|
378
398
|
xValues: xValues,
|
|
@@ -383,6 +403,10 @@ var XyyDataSeries = /** @class */ (function (_super) {
|
|
|
383
403
|
}
|
|
384
404
|
return json;
|
|
385
405
|
};
|
|
406
|
+
XyyDataSeries.prototype.reserve = function (size) {
|
|
407
|
+
_super.prototype.reserve.call(this, size);
|
|
408
|
+
this.y1Values.reserve(size);
|
|
409
|
+
};
|
|
386
410
|
XyyDataSeries.prototype.getYY1Values = function (dataSeriesValueType) {
|
|
387
411
|
var yValues;
|
|
388
412
|
var y1Values;
|
|
@@ -149,6 +149,8 @@ export declare class XyzDataSeries extends BaseDataSeries {
|
|
|
149
149
|
/** @inheritDoc */
|
|
150
150
|
delete(): void;
|
|
151
151
|
/** @inheritDoc */
|
|
152
|
+
createAnimationVectors(): void;
|
|
153
|
+
/** @inheritDoc */
|
|
152
154
|
setInitialAnimationVectors(dataSeries?: XyzDataSeries): void;
|
|
153
155
|
/** @inheritDoc */
|
|
154
156
|
setFinalAnimationVectors(dataSeries?: XyzDataSeries): void;
|
|
@@ -158,5 +160,6 @@ export declare class XyzDataSeries extends BaseDataSeries {
|
|
|
158
160
|
updateAnimationProperties(progress: number, animation: SeriesAnimation): void;
|
|
159
161
|
/** @inheritDoc */
|
|
160
162
|
toJSON(excludeData?: boolean): any;
|
|
163
|
+
protected reserve(size: number): void;
|
|
161
164
|
private getYZValues;
|
|
162
165
|
}
|
|
@@ -48,13 +48,16 @@ var XyzDataSeries = /** @class */ (function (_super) {
|
|
|
48
48
|
var _this = _super.call(this, webAssemblyContext, options) || this;
|
|
49
49
|
/** @inheritDoc */
|
|
50
50
|
_this.type = IDataSeries_1.EDataSeriesType.Xyz;
|
|
51
|
-
_this.zValues =
|
|
52
|
-
_this.zInitialAnimationValues = new webAssemblyContext.SCRTDoubleVector();
|
|
53
|
-
_this.zFinalAnimationValues = new webAssemblyContext.SCRTDoubleVector();
|
|
51
|
+
_this.zValues = _this.doubleVectorProvider.getDoubleVector(webAssemblyContext);
|
|
54
52
|
if (options === null || options === void 0 ? void 0 : options.xValues) {
|
|
55
53
|
Guard_1.Guard.notNull(options.yValues, "options.yValues");
|
|
56
54
|
Guard_1.Guard.notNull(options.zValues, "options.zValues");
|
|
57
55
|
_this.appendRange(options.xValues, options.yValues, options.zValues, options.metadata);
|
|
56
|
+
if ((options === null || options === void 0 ? void 0 : options.fifoCapacity) && (options === null || options === void 0 ? void 0 : options.fifoStartIndex)) {
|
|
57
|
+
_this.xValues.notifyAppend(options === null || options === void 0 ? void 0 : options.fifoStartIndex);
|
|
58
|
+
_this.yValues.notifyAppend(options === null || options === void 0 ? void 0 : options.fifoStartIndex);
|
|
59
|
+
_this.zValues.notifyAppend(options === null || options === void 0 ? void 0 : options.fifoStartIndex);
|
|
60
|
+
}
|
|
58
61
|
}
|
|
59
62
|
return _this;
|
|
60
63
|
}
|
|
@@ -118,9 +121,9 @@ var XyzDataSeries = /** @class */ (function (_super) {
|
|
|
118
121
|
this.dataDistributionCalculator.onAppend(this.isSorted, this.containsNaN, nativeX, xValues, yValues);
|
|
119
122
|
// Push metadata should be done before push x values
|
|
120
123
|
this.appendMetadataRange(metadata, xValues.length);
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
+
this.doubleVectorProvider.appendArray(this.webAssemblyContext, nativeX, xValues);
|
|
125
|
+
this.doubleVectorProvider.appendArray(this.webAssemblyContext, nativeY, yValues);
|
|
126
|
+
this.doubleVectorProvider.appendArray(this.webAssemblyContext, nativeZ, zValues);
|
|
124
127
|
this.notifyDataChanged(IDataSeries_1.EDataChangeType.Append, null, xValues.length);
|
|
125
128
|
}
|
|
126
129
|
};
|
|
@@ -178,6 +181,7 @@ var XyzDataSeries = /** @class */ (function (_super) {
|
|
|
178
181
|
XyzDataSeries.prototype.insert = function (startIndex, x, y, z, metadata) {
|
|
179
182
|
if (!this.getIsDeleted()) {
|
|
180
183
|
this.validateIndex(startIndex, "Start index is out of range");
|
|
184
|
+
this.throwIfFifo("insert");
|
|
181
185
|
var nativeX = this.getNativeXValues();
|
|
182
186
|
var nativeY = this.getNativeYValues();
|
|
183
187
|
var nativeZ = this.getNativeZValues();
|
|
@@ -205,6 +209,7 @@ var XyzDataSeries = /** @class */ (function (_super) {
|
|
|
205
209
|
Guard_1.Guard.isTrue((0, NumberArray_1.isNumberArray)(yValues) || (0, NumberArray_1.isTypedArray)(yValues), "yValues must be an array of numbers");
|
|
206
210
|
Guard_1.Guard.isTrue((0, NumberArray_1.isNumberArray)(zValues) || (0, NumberArray_1.isTypedArray)(zValues), "zValues must be an array of numbers");
|
|
207
211
|
this.validateIndex(startIndex, "Start index is out of range");
|
|
212
|
+
this.throwIfFifo("insertRange");
|
|
208
213
|
Guard_1.Guard.arraysSameLengthArr([
|
|
209
214
|
{ arg: xValues, name: "xValues" },
|
|
210
215
|
{ arg: yValues, name: "yValues" },
|
|
@@ -231,6 +236,7 @@ var XyzDataSeries = /** @class */ (function (_super) {
|
|
|
231
236
|
XyzDataSeries.prototype.removeAt = function (index) {
|
|
232
237
|
if (!this.getIsDeleted()) {
|
|
233
238
|
this.validateIndex(index);
|
|
239
|
+
this.throwIfFifo("removeAt");
|
|
234
240
|
this.getNativeXValues().removeAt(index);
|
|
235
241
|
this.getNativeYValues().removeAt(index);
|
|
236
242
|
this.getNativeZValues().removeAt(index);
|
|
@@ -247,6 +253,7 @@ var XyzDataSeries = /** @class */ (function (_super) {
|
|
|
247
253
|
XyzDataSeries.prototype.removeRange = function (startIndex, count) {
|
|
248
254
|
if (!this.getIsDeleted()) {
|
|
249
255
|
this.validateIndex(startIndex, "Start index is out of range");
|
|
256
|
+
this.throwIfFifo("removeRange");
|
|
250
257
|
this.getNativeXValues().removeRange(startIndex, count);
|
|
251
258
|
this.getNativeYValues().removeRange(startIndex, count);
|
|
252
259
|
this.getNativeZValues().removeRange(startIndex, count);
|
|
@@ -280,6 +287,12 @@ var XyzDataSeries = /** @class */ (function (_super) {
|
|
|
280
287
|
_super.prototype.delete.call(this);
|
|
281
288
|
};
|
|
282
289
|
/** @inheritDoc */
|
|
290
|
+
XyzDataSeries.prototype.createAnimationVectors = function () {
|
|
291
|
+
_super.prototype.createAnimationVectors.call(this);
|
|
292
|
+
this.zInitialAnimationValues = this.doubleVectorProvider.getDoubleVector(this.webAssemblyContext);
|
|
293
|
+
this.zFinalAnimationValues = this.doubleVectorProvider.getDoubleVector(this.webAssemblyContext);
|
|
294
|
+
};
|
|
295
|
+
/** @inheritDoc */
|
|
283
296
|
XyzDataSeries.prototype.setInitialAnimationVectors = function (dataSeries) {
|
|
284
297
|
_super.prototype.setInitialAnimationVectors.call(this, dataSeries);
|
|
285
298
|
if (!dataSeries) {
|
|
@@ -323,10 +336,19 @@ var XyzDataSeries = /** @class */ (function (_super) {
|
|
|
323
336
|
var xValues = [];
|
|
324
337
|
var yValues = [];
|
|
325
338
|
var zValues = [];
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
339
|
+
if (this.fifoCapacity && this.fifoSweeping) {
|
|
340
|
+
for (var i = 0; i < this.count(); i++) {
|
|
341
|
+
xValues.push(this.xValues.getRaw(i));
|
|
342
|
+
yValues.push(this.yValues.getRaw(i));
|
|
343
|
+
zValues.push(this.zValues.getRaw(i));
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
else {
|
|
347
|
+
for (var i = 0; i < this.count(); i++) {
|
|
348
|
+
xValues.push(this.xValues.get(i));
|
|
349
|
+
yValues.push(this.yValues.get(i));
|
|
350
|
+
zValues.push(this.zValues.get(i));
|
|
351
|
+
}
|
|
330
352
|
}
|
|
331
353
|
var options = {
|
|
332
354
|
xValues: xValues,
|
|
@@ -337,6 +359,10 @@ var XyzDataSeries = /** @class */ (function (_super) {
|
|
|
337
359
|
}
|
|
338
360
|
return json;
|
|
339
361
|
};
|
|
362
|
+
XyzDataSeries.prototype.reserve = function (size) {
|
|
363
|
+
_super.prototype.reserve.call(this, size);
|
|
364
|
+
this.zValues.reserve(size);
|
|
365
|
+
};
|
|
340
366
|
XyzDataSeries.prototype.getYZValues = function (dataSeriesValueType) {
|
|
341
367
|
var yValues;
|
|
342
368
|
var zValues;
|
|
@@ -40,13 +40,11 @@ export declare class CategoryCoordinateCalculator extends CoordinateCalculatorBa
|
|
|
40
40
|
* @param webAssemblyContext The {@link TSciChart | SciChart 2D WebAssembly Context} or {@link TSciChart2D | SciChart 2D WebAssembly Context}
|
|
41
41
|
* containing native methods and access to our WebGL2 Engine and WebAssembly numerical methods
|
|
42
42
|
* @param viewportDimension The size of the associated {@link AxisCore | Axis} at the time of drawing
|
|
43
|
-
* @param visibleMin The
|
|
44
|
-
* @param visibleMax The
|
|
45
|
-
* @param indexMin The {@link CategoryAxis.visibleRange}.min at the time of drawing, corresponding to the minimum data-index visible
|
|
46
|
-
* @param indexMax The {@link CategoryAxis.visibleRange}.max at the time of drawing, corresponding to the maximum data-index visible
|
|
43
|
+
* @param visibleMin The {@link CategoryAxis.visibleRange}.min at the time of drawing, corresponding to the minimum data-index visible
|
|
44
|
+
* @param visibleMax The {@link CategoryAxis.visibleRange}.max at the time of drawing, corresponding to the maximum data-index visible
|
|
47
45
|
* @param offset A constant pixel offset used in coordinate calculations
|
|
48
46
|
*/
|
|
49
|
-
constructor(webAssemblyContext: TSciChart, viewportDimension: number, visibleMin: number, visibleMax: number,
|
|
47
|
+
constructor(webAssemblyContext: TSciChart, viewportDimension: number, visibleMin: number, visibleMax: number, offset?: number);
|
|
50
48
|
/**
|
|
51
49
|
* Transforms an Index to a Data-value, with extrapolation and interpolation for values found outside of
|
|
52
50
|
* {@link baseXValues | the Primary Chart series X-Values}
|
|
@@ -46,17 +46,15 @@ var CategoryCoordinateCalculator = /** @class */ (function (_super) {
|
|
|
46
46
|
* @param webAssemblyContext The {@link TSciChart | SciChart 2D WebAssembly Context} or {@link TSciChart2D | SciChart 2D WebAssembly Context}
|
|
47
47
|
* containing native methods and access to our WebGL2 Engine and WebAssembly numerical methods
|
|
48
48
|
* @param viewportDimension The size of the associated {@link AxisCore | Axis} at the time of drawing
|
|
49
|
-
* @param visibleMin The
|
|
50
|
-
* @param visibleMax The
|
|
51
|
-
* @param indexMin The {@link CategoryAxis.visibleRange}.min at the time of drawing, corresponding to the minimum data-index visible
|
|
52
|
-
* @param indexMax The {@link CategoryAxis.visibleRange}.max at the time of drawing, corresponding to the maximum data-index visible
|
|
49
|
+
* @param visibleMin The {@link CategoryAxis.visibleRange}.min at the time of drawing, corresponding to the minimum data-index visible
|
|
50
|
+
* @param visibleMax The {@link CategoryAxis.visibleRange}.max at the time of drawing, corresponding to the maximum data-index visible
|
|
53
51
|
* @param offset A constant pixel offset used in coordinate calculations
|
|
54
52
|
*/
|
|
55
|
-
function CategoryCoordinateCalculator(webAssemblyContext, viewportDimension, visibleMin, visibleMax,
|
|
53
|
+
function CategoryCoordinateCalculator(webAssemblyContext, viewportDimension, visibleMin, visibleMax, offset) {
|
|
56
54
|
if (offset === void 0) { offset = 0; }
|
|
57
55
|
var _this = _super.call(this, webAssemblyContext, viewportDimension, visibleMin, visibleMax, offset, true, true) || this;
|
|
58
|
-
_this.indexMin =
|
|
59
|
-
_this.indexMax =
|
|
56
|
+
_this.indexMin = visibleMin;
|
|
57
|
+
_this.indexMax = visibleMax;
|
|
60
58
|
_this.nativeCalculator = new webAssemblyContext.CategoryCoordinateCalculatorDouble(_this.viewportDimension, _this.visibleMin, _this.visibleMax, -1, _this.offset, _this.indexMin, _this.indexMax);
|
|
61
59
|
return _this;
|
|
62
60
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { DeletableEntity } from "../../../Core/DeletableEntity";
|
|
1
2
|
import { IDeletable } from "../../../Core/IDeletable";
|
|
2
3
|
import { NumberRange } from "../../../Core/NumberRange";
|
|
3
4
|
import { CoordinateCalculator, TSciChart } from "../../../types/TSciChart";
|
|
@@ -22,7 +23,7 @@ import { TSciChart3D } from "../../../types/TSciChart3D";
|
|
|
22
23
|
*
|
|
23
24
|
* Use the Coordinate calculators when drawing, placing markers, annotations or if you want to place a tooltip over the chart.
|
|
24
25
|
*/
|
|
25
|
-
export declare abstract class CoordinateCalculatorBase implements IDeletable {
|
|
26
|
+
export declare abstract class CoordinateCalculatorBase extends DeletableEntity implements IDeletable {
|
|
26
27
|
/**
|
|
27
28
|
* Gets or sets the Visible minimum value, corresponding to {@link AxisCore.visibleRange}.min at the time of drawing
|
|
28
29
|
*/
|