scichart 3.1.348 → 3.2.0-beta
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Charting/ChartModifiers/ChartModifierBase.d.ts +15 -1
- package/Charting/ChartModifiers/ChartModifierBase.js +65 -7
- package/Charting/ChartModifiers/CursorModifier.js +13 -1
- package/Charting/ChartModifiers/LegendModifier.d.ts +1 -1
- package/Charting/ChartModifiers/LegendModifier.js +8 -6
- package/Charting/ChartModifiers/PinchZoomModifier.d.ts +38 -8
- package/Charting/ChartModifiers/PinchZoomModifier.js +103 -40
- package/Charting/ChartModifiers/RolloverModifier.js +10 -3
- package/Charting/ChartModifiers/RubberBandXyZoomModifier.d.ts +1 -1
- package/Charting/ChartModifiers/SeriesSelectionModifier.js +32 -24
- package/Charting/ChartModifiers/ZoomPanModifier.d.ts +13 -38
- package/Charting/ChartModifiers/ZoomPanModifier.js +54 -99
- package/Charting/Drawing/BaseCache.d.ts +2 -1
- package/Charting/Drawing/BaseCache.js +40 -7
- package/Charting/Drawing/RenderSurface.d.ts +1 -0
- package/Charting/Drawing/RenderSurface.js +5 -1
- package/Charting/Drawing/SolidBrushCache.d.ts +2 -1
- package/Charting/Drawing/SolidBrushCache.js +23 -3
- package/Charting/Drawing/WebGlBrush.d.ts +2 -1
- package/Charting/Drawing/WebGlBrush.js +22 -3
- package/Charting/Drawing/WebGlPen.d.ts +2 -1
- package/Charting/Drawing/WebGlPen.js +23 -4
- package/Charting/Drawing/WebGlRenderContext2D.d.ts +4 -3
- package/Charting/Drawing/WebGlRenderContext2D.js +26 -7
- package/Charting/Model/BaseDataSeries.d.ts +67 -2
- package/Charting/Model/BaseDataSeries.js +193 -42
- package/Charting/Model/BaseHeatmapDataSeries.js +1 -1
- package/Charting/Model/ChartData/SeriesInfo.d.ts +16 -0
- package/Charting/Model/ChartData/SeriesInfo.js +7 -0
- package/Charting/Model/ChartData/XyzSeriesInfo.d.ts +8 -0
- package/Charting/Model/ChartData/XyzSeriesInfo.js +36 -0
- package/Charting/Model/DoubleVectorProvider.d.ts +19 -0
- package/Charting/Model/DoubleVectorProvider.js +95 -0
- package/Charting/Model/HlcDataSeries.d.ts +3 -0
- package/Charting/Model/HlcDataSeries.js +44 -15
- package/Charting/Model/IDataSeries.d.ts +23 -0
- package/Charting/Model/NonUniformHeatmapDataSeries.js +2 -0
- package/Charting/Model/OhlcDataSeries.d.ts +3 -0
- package/Charting/Model/OhlcDataSeries.js +56 -24
- package/Charting/Model/PointSeries/BasePointSeriesResampled.d.ts +4 -5
- package/Charting/Model/PointSeries/BasePointSeriesResampled.js +29 -21
- package/Charting/Model/PointSeries/BasePointSeriesWrapped.d.ts +2 -0
- package/Charting/Model/PointSeries/BasePointSeriesWrapped.js +2 -0
- package/Charting/Model/PointSeries/IPointSeries.d.ts +2 -1
- package/Charting/Model/PointSeries/OhlcPointSeriesResampled.js +1 -1
- package/Charting/Model/PointSeries/XyPointSeriesWrapped.d.ts +2 -1
- package/Charting/Model/PointSeries/XyPointSeriesWrapped.js +2 -2
- package/Charting/Model/PointSeries/XyyPointSeriesResampled.js +1 -1
- package/Charting/Model/UniformHeatmapDataSeries.d.ts +31 -11
- package/Charting/Model/UniformHeatmapDataSeries.js +72 -4
- package/Charting/Model/XyDataSeries.d.ts +0 -8
- package/Charting/Model/XyDataSeries.js +21 -5
- package/Charting/Model/XyTextDataSeries.d.ts +2 -0
- package/Charting/Model/XyTextDataSeries.js +35 -4
- package/Charting/Model/XyyDataSeries.d.ts +2 -0
- package/Charting/Model/XyyDataSeries.js +35 -10
- package/Charting/Model/XyzDataSeries.d.ts +3 -0
- package/Charting/Model/XyzDataSeries.js +36 -10
- package/Charting/Numerics/CoordinateCalculators/CategoryCoordinateCalculator.d.ts +3 -5
- package/Charting/Numerics/CoordinateCalculators/CategoryCoordinateCalculator.js +5 -7
- package/Charting/Numerics/CoordinateCalculators/CoordinateCalculatorBase.d.ts +2 -1
- package/Charting/Numerics/CoordinateCalculators/CoordinateCalculatorBase.js +29 -9
- package/Charting/Numerics/CoordinateCalculators/FlippedCategoryCoordinateCalculator.d.ts +3 -5
- package/Charting/Numerics/CoordinateCalculators/FlippedCategoryCoordinateCalculator.js +5 -7
- package/Charting/Numerics/Resamplers/ExtremeResamplerHelper.d.ts +14 -10
- package/Charting/Numerics/Resamplers/ExtremeResamplerHelper.js +105 -69
- package/Charting/Numerics/Resamplers/ResamplingParams.d.ts +4 -2
- package/Charting/Numerics/Resamplers/ResamplingParams.js +12 -7
- package/Charting/Numerics/TickCoordinateProviders/TickCoordinatesProvider.d.ts +5 -0
- package/Charting/Numerics/TickCoordinateProviders/TickCoordinatesProvider.js +7 -0
- package/Charting/Numerics/TickProviders/NumericTickProvider.js +3 -4
- package/Charting/Numerics/TickProviders/TickProvider.d.ts +5 -0
- package/Charting/Numerics/TickProviders/TickProvider.js +7 -0
- package/Charting/Services/SciChartRenderer.js +15 -5
- package/Charting/Services/TitleRenderer.d.ts +2 -1
- package/Charting/Services/TitleRenderer.js +35 -14
- package/Charting/Visuals/Annotations/AdornerLayer.d.ts +1 -1
- package/Charting/Visuals/Annotations/AnnotationBase.d.ts +6 -6
- package/Charting/Visuals/Annotations/AnnotationBase.js +81 -61
- package/Charting/Visuals/Annotations/CursorTooltipSvgAnnotation.js +8 -0
- package/Charting/Visuals/Annotations/IAnnotation.d.ts +9 -4
- package/Charting/Visuals/Annotations/IAnnotation.js +6 -0
- package/Charting/Visuals/Annotations/LineAnnotation.js +3 -1
- package/Charting/Visuals/Annotations/RenderContextAnnotationBase.d.ts +5 -0
- package/Charting/Visuals/Annotations/RenderContextAnnotationBase.js +16 -0
- package/Charting/Visuals/Annotations/RolloverTooltipSvgAnnotation.js +6 -0
- package/Charting/Visuals/Annotations/constants.d.ts +1 -0
- package/Charting/Visuals/Annotations/constants.js +1 -0
- package/Charting/Visuals/Axis/AxisBase2D.d.ts +20 -5
- package/Charting/Visuals/Axis/AxisBase2D.js +46 -10
- package/Charting/Visuals/Axis/AxisCore.d.ts +4 -1
- package/Charting/Visuals/Axis/AxisCore.js +100 -54
- package/Charting/Visuals/Axis/AxisRenderer.d.ts +2 -1
- package/Charting/Visuals/Axis/AxisRenderer.js +40 -16
- package/Charting/Visuals/Axis/AxisTitleRenderer.d.ts +1 -0
- package/Charting/Visuals/Axis/AxisTitleRenderer.js +4 -0
- package/Charting/Visuals/Axis/CategoryAxisBase.js +4 -4
- package/Charting/Visuals/Axis/DeltaCalculator/DateTimeDeltaCalculator.js +14 -9
- package/Charting/Visuals/Axis/DeltaCalculator/DeltaCalculator.d.ts +5 -0
- package/Charting/Visuals/Axis/DeltaCalculator/DeltaCalculator.js +7 -0
- package/Charting/Visuals/Axis/LabelProvider/LabelCache.d.ts +2 -2
- package/Charting/Visuals/Axis/LabelProvider/LabelCache.js +8 -1
- package/Charting/Visuals/Axis/LabelProvider/LabelProvider.d.ts +7 -1
- package/Charting/Visuals/Axis/LabelProvider/LabelProvider.js +34 -8
- package/Charting/Visuals/Axis/LabelProvider/LabelProviderBase2D.d.ts +4 -2
- package/Charting/Visuals/Axis/LabelProvider/LabelProviderBase2D.js +8 -2
- package/Charting/Visuals/Axis/LabelProvider/PieLabelProvider.d.ts +1 -0
- package/Charting/Visuals/Axis/LabelProvider/PieLabelProvider.js +1 -0
- package/Charting/Visuals/HeatmapLegend.d.ts +3 -2
- package/Charting/Visuals/HeatmapLegend.js +33 -12
- package/Charting/Visuals/Helpers/NativeObject.d.ts +8 -5
- package/Charting/Visuals/Helpers/NativeObject.js +42 -21
- package/Charting/Visuals/Helpers/drawLabel.js +3 -1
- package/Charting/Visuals/I2DSurfaceOptions.d.ts +0 -15
- package/Charting/Visuals/Legend/SciChartLegendBase.d.ts +3 -1
- package/Charting/Visuals/Legend/SciChartLegendBase.js +35 -14
- package/Charting/Visuals/Legend/SciChartPieLegend.js +1 -1
- package/Charting/Visuals/PointMarkers/BasePointMarker.d.ts +13 -1
- package/Charting/Visuals/PointMarkers/BasePointMarker.js +72 -19
- package/Charting/Visuals/PointMarkers/Constants.d.ts +2 -1
- package/Charting/Visuals/PointMarkers/Constants.js +1 -0
- package/Charting/Visuals/PointMarkers/IPointMarker.d.ts +2 -0
- package/Charting/Visuals/RenderableSeries/Animations/SeriesAnimation.js +4 -1
- package/Charting/Visuals/RenderableSeries/Animations/animationHelpers.d.ts +1 -1
- package/Charting/Visuals/RenderableSeries/BaseBandRenderableSeries.js +8 -7
- package/Charting/Visuals/RenderableSeries/BaseHeatmapRenderableSeries.d.ts +1 -0
- package/Charting/Visuals/RenderableSeries/BaseHeatmapRenderableSeries.js +5 -0
- package/Charting/Visuals/RenderableSeries/BaseOhlcRenderableSeries.js +10 -9
- package/Charting/Visuals/RenderableSeries/BaseRenderableSeries.d.ts +2 -1
- package/Charting/Visuals/RenderableSeries/BaseRenderableSeries.js +101 -69
- package/Charting/Visuals/RenderableSeries/BaseStackedCollection.js +13 -4
- package/Charting/Visuals/RenderableSeries/BaseStackedRenderableSeries.js +12 -3
- package/Charting/Visuals/RenderableSeries/DataLabels/BaseDataLabelProvider.d.ts +2 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/BaseDataLabelProvider.js +5 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/DataLabelProvider.js +6 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/DataLabelState.d.ts +1 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/DataLabelState.js +18 -5
- package/Charting/Visuals/RenderableSeries/DataLabels/NonUniformHeatmapDataLabelProvider.js +0 -1
- package/Charting/Visuals/RenderableSeries/DataLabels/TextDataLabelProvider.js +8 -2
- package/Charting/Visuals/RenderableSeries/DrawingProviders/BandSeriesDrawingProvider.d.ts +1 -0
- package/Charting/Visuals/RenderableSeries/DrawingProviders/BandSeriesDrawingProvider.js +35 -16
- package/Charting/Visuals/RenderableSeries/DrawingProviders/BaseSeriesDrawingProvider.d.ts +2 -1
- package/Charting/Visuals/RenderableSeries/DrawingProviders/BaseSeriesDrawingProvider.js +62 -33
- package/Charting/Visuals/RenderableSeries/DrawingProviders/BubbleSeriesDrawingProvider.d.ts +1 -0
- package/Charting/Visuals/RenderableSeries/DrawingProviders/BubbleSeriesDrawingProvider.js +30 -9
- package/Charting/Visuals/RenderableSeries/DrawingProviders/ColumnSeriesDrawingProvider.d.ts +1 -0
- package/Charting/Visuals/RenderableSeries/DrawingProviders/ColumnSeriesDrawingProvider.js +37 -16
- package/Charting/Visuals/RenderableSeries/DrawingProviders/HeatmapHelpers.d.ts +47 -0
- package/Charting/Visuals/RenderableSeries/DrawingProviders/HeatmapHelpers.js +258 -0
- package/Charting/Visuals/RenderableSeries/DrawingProviders/LineSeriesDrawingProvider.js +26 -2
- package/Charting/Visuals/RenderableSeries/DrawingProviders/MountainSeriesDrawingProvider.d.ts +1 -0
- package/Charting/Visuals/RenderableSeries/DrawingProviders/MountainSeriesDrawingProvider.js +34 -15
- package/Charting/Visuals/RenderableSeries/DrawingProviders/NonUniformHeatmapDrawingProvider.js +5 -230
- package/Charting/Visuals/RenderableSeries/DrawingProviders/OhlcSeriesDrawingProvider.d.ts +1 -0
- package/Charting/Visuals/RenderableSeries/DrawingProviders/OhlcSeriesDrawingProvider.js +62 -37
- package/Charting/Visuals/RenderableSeries/DrawingProviders/PointMarkerDrawingProvider.js +30 -3
- package/Charting/Visuals/RenderableSeries/DrawingProviders/UniformHeatmapDrawingProvider.d.ts +1 -0
- package/Charting/Visuals/RenderableSeries/DrawingProviders/UniformHeatmapDrawingProvider.js +4 -1
- package/Charting/Visuals/RenderableSeries/FastBubbleRenderableSeries.d.ts +0 -2
- package/Charting/Visuals/RenderableSeries/FastBubbleRenderableSeries.js +0 -4
- package/Charting/Visuals/RenderableSeries/FastTextRenderableSeries.d.ts +3 -0
- package/Charting/Visuals/RenderableSeries/FastTextRenderableSeries.js +10 -0
- package/Charting/Visuals/RenderableSeries/HitTest/BubbleSeriesHitTestProvider.d.ts +4 -0
- package/Charting/Visuals/RenderableSeries/HitTest/BubbleSeriesHitTestProvider.js +7 -0
- package/Charting/Visuals/RenderableSeries/HitTest/HitTestInfo.d.ts +4 -0
- package/Charting/Visuals/RenderableSeries/HitTest/HitTestInfo.js +9 -0
- package/Charting/Visuals/RenderableSeries/ShaderEffect.d.ts +3 -2
- package/Charting/Visuals/RenderableSeries/ShaderEffect.js +29 -9
- package/Charting/Visuals/RenderableSeries/SplineBandRenderableSeries.js +7 -0
- package/Charting/Visuals/RenderableSeries/SplineLineRenderableSeries.js +7 -0
- package/Charting/Visuals/RenderableSeries/SplineMountainRenderableSeries.js +7 -0
- package/Charting/Visuals/RenderableSeries/StackedColumnCollection.js +3 -0
- package/Charting/Visuals/RenderableSeries/StackedMountainCollection.d.ts +0 -2
- package/Charting/Visuals/RenderableSeries/StackedMountainCollection.js +4 -4
- package/Charting/Visuals/RenderableSeries/StackedMountainRenderableSeries.d.ts +1 -0
- package/Charting/Visuals/RenderableSeries/StackedMountainRenderableSeries.js +8 -0
- package/Charting/Visuals/RenderableSeries/XyScatterRenderableSeries.d.ts +1 -2
- package/Charting/Visuals/RenderableSeries/XyScatterRenderableSeries.js +8 -3
- package/Charting/Visuals/RubberBandSvgRect/RubberBandSvgRect.d.ts +3 -1
- package/Charting/Visuals/RubberBandSvgRect/RubberBandSvgRect.js +30 -10
- package/Charting/Visuals/SciChartDefaults.d.ts +10 -0
- package/Charting/Visuals/SciChartDefaults.js +10 -0
- package/Charting/Visuals/SciChartOverview.d.ts +2 -1
- package/Charting/Visuals/SciChartOverview.js +28 -8
- package/Charting/Visuals/SciChartPieSurface/SciChartPieSurface.d.ts +10 -3
- package/Charting/Visuals/SciChartPieSurface/SciChartPieSurface.js +118 -60
- package/Charting/Visuals/SciChartSurface.d.ts +4 -36
- package/Charting/Visuals/SciChartSurface.js +48 -61
- package/Charting/Visuals/SciChartSurfaceBase.d.ts +99 -13
- package/Charting/Visuals/SciChartSurfaceBase.js +155 -32
- package/Charting/Visuals/TextureManager/CanvasTexture.d.ts +2 -1
- package/Charting/Visuals/TextureManager/CanvasTexture.js +37 -17
- package/Charting/Visuals/TextureManager/TextureManager.d.ts +2 -1
- package/Charting/Visuals/TextureManager/TextureManager.js +27 -7
- package/Charting/Visuals/createMaster.d.ts +4 -2
- package/Charting/Visuals/createMaster.js +92 -28
- package/Charting/Visuals/createSingle.d.ts +0 -2
- package/Charting/Visuals/createSingle.js +44 -9
- package/Charting/Visuals/licenseManager2D.d.ts +7 -5
- package/Charting/Visuals/licenseManager2D.js +105 -53
- package/Charting/Visuals/loader.js +3 -1
- package/Charting/Visuals/sciChartInitCommon.d.ts +1 -1
- package/Charting/Visuals/sciChartInitCommon.js +5 -1
- package/Charting3D/CameraController.d.ts +1 -1
- package/Charting3D/CameraController.js +21 -7
- package/Charting3D/ChartModifiers/ChartModifierBase3D.d.ts +1 -0
- package/Charting3D/ChartModifiers/ChartModifierBase3D.js +4 -1
- package/Charting3D/ChartModifiers/OrbitModifier3D.d.ts +17 -5
- package/Charting3D/ChartModifiers/OrbitModifier3D.js +62 -26
- package/Charting3D/ChartModifiers/PinchZoomModifier3D.d.ts +81 -0
- package/Charting3D/ChartModifiers/PinchZoomModifier3D.js +164 -0
- package/Charting3D/ChartModifiers/TooltipModifier3D.d.ts +87 -0
- package/Charting3D/ChartModifiers/TooltipModifier3D.js +391 -0
- package/Charting3D/I3DSurfaceOptions.d.ts +10 -0
- package/Charting3D/I3DSurfaceOptions.js +2 -0
- package/Charting3D/Model/DataSeries/BaseDataSeries3D.d.ts +2 -1
- package/Charting3D/Model/DataSeries/BaseDataSeries3D.js +27 -6
- package/Charting3D/Model/DataSeries/UniformGridDataSeries3D.d.ts +8 -0
- package/Charting3D/Model/DataSeries/UniformGridDataSeries3D.js +12 -0
- package/Charting3D/Model/DataSeries/XyzDataSeries3D.d.ts +2 -2
- package/Charting3D/Model/DataSeries/XyzDataSeries3D.js +1 -1
- package/Charting3D/Vector3.d.ts +5 -0
- package/Charting3D/Vector3.js +7 -0
- package/Charting3D/Visuals/Annotations/TooltipSvgAnnotation3D.d.ts +88 -0
- package/Charting3D/Visuals/Annotations/TooltipSvgAnnotation3D.js +291 -0
- package/Charting3D/Visuals/Axis/AxisBase3D.d.ts +21 -2
- package/Charting3D/Visuals/Axis/AxisBase3D.js +48 -18
- package/Charting3D/Visuals/Axis/AxisBase3DLabelStyle.js +2 -1
- package/Charting3D/Visuals/Axis/AxisCubeEntity.d.ts +0 -4
- package/Charting3D/Visuals/Axis/AxisCubeEntity.js +3 -6
- package/Charting3D/Visuals/Axis/IAxisDescriptor.d.ts +2 -2
- package/Charting3D/Visuals/Axis/IAxisDescriptor.js +2 -2
- package/Charting3D/Visuals/Primitives/BaseSceneEntity3D.d.ts +41 -30
- package/Charting3D/Visuals/Primitives/BaseSceneEntity3D.js +78 -26
- package/Charting3D/Visuals/Primitives/CrosshairLinesSceneEntity.d.ts +47 -0
- package/Charting3D/Visuals/Primitives/CrosshairLinesSceneEntity.js +106 -0
- package/Charting3D/Visuals/Primitives/EntityIdProvider.d.ts +29 -0
- package/Charting3D/Visuals/Primitives/EntityIdProvider.js +28 -0
- package/Charting3D/Visuals/Primitives/PointLine3DSceneEntity.d.ts +51 -0
- package/Charting3D/Visuals/Primitives/PointLine3DSceneEntity.js +188 -0
- package/Charting3D/Visuals/Primitives/RenderableSeriesSceneEntity.d.ts +12 -0
- package/Charting3D/Visuals/Primitives/RenderableSeriesSceneEntity.js +14 -0
- package/Charting3D/Visuals/Primitives/ScatterPointsSceneEntity.d.ts +11 -0
- package/Charting3D/Visuals/Primitives/ScatterPointsSceneEntity.js +18 -0
- package/Charting3D/Visuals/Primitives/SurfaceMeshSceneEntity.d.ts +3 -0
- package/Charting3D/Visuals/Primitives/SurfaceMeshSceneEntity.js +15 -0
- package/Charting3D/Visuals/RenderableSeries/BaseRenderableSeries3D.d.ts +16 -1
- package/Charting3D/Visuals/RenderableSeries/BaseRenderableSeries3D.js +64 -12
- package/Charting3D/Visuals/RenderableSeries/Constants.d.ts +2 -0
- package/Charting3D/Visuals/RenderableSeries/Constants.js +2 -0
- package/Charting3D/Visuals/RenderableSeries/ESeriesType.d.ts +2 -1
- package/Charting3D/Visuals/RenderableSeries/ESeriesType.js +1 -0
- package/Charting3D/Visuals/RenderableSeries/HitTestInfo3D.d.ts +37 -0
- package/Charting3D/Visuals/RenderableSeries/HitTestInfo3D.js +22 -0
- package/Charting3D/Visuals/RenderableSeries/PointLineRenderableSeries3D.d.ts +64 -0
- package/Charting3D/Visuals/RenderableSeries/PointLineRenderableSeries3D.js +105 -0
- package/Charting3D/Visuals/RenderableSeries/SeriesInfo3D.d.ts +51 -0
- package/Charting3D/Visuals/RenderableSeries/SeriesInfo3D.js +32 -0
- package/Charting3D/Visuals/RenderableSeries/SurfaceMeshSeriesInfo3D.d.ts +15 -0
- package/Charting3D/Visuals/RenderableSeries/SurfaceMeshSeriesInfo3D.js +112 -0
- package/Charting3D/Visuals/RenderableSeries/XyzSeriesInfo3D.d.ts +20 -0
- package/Charting3D/Visuals/RenderableSeries/XyzSeriesInfo3D.js +60 -0
- package/Charting3D/Visuals/RootSceneEntity.d.ts +0 -4
- package/Charting3D/Visuals/RootSceneEntity.js +3 -8
- package/Charting3D/Visuals/SciChart3DRenderer.d.ts +2 -0
- package/Charting3D/Visuals/SciChart3DRenderer.js +49 -0
- package/Charting3D/Visuals/SciChart3DSurface.d.ts +44 -3
- package/Charting3D/Visuals/SciChart3DSurface.js +103 -9
- package/Charting3D/Visuals/ViewportManager3DBase.d.ts +4 -0
- package/Charting3D/Visuals/ViewportManager3DBase.js +7 -1
- package/Charting3D/Visuals/createMaster3d.d.ts +1 -2
- package/Charting3D/Visuals/createMaster3d.js +76 -14
- package/Charting3D/Visuals/createSingle3d.js +34 -4
- package/Charting3D/Visuals/licenseManager3D.js +29 -25
- package/Core/BuildStamp.d.ts +1 -1
- package/Core/BuildStamp.js +2 -2
- package/Core/DeletableEntity.d.ts +28 -0
- package/Core/DeletableEntity.js +141 -0
- package/Core/Globals.d.ts +11 -0
- package/Core/Globals.js +13 -0
- package/Core/Guard.d.ts +6 -0
- package/Core/Guard.js +10 -0
- package/Core/Mouse/MouseManager.d.ts +23 -0
- package/Core/Mouse/MouseManager.js +47 -0
- package/Core/Telemetry.js +4 -6
- package/_wasm/scichart.browser.js +1 -1
- package/_wasm/scichart2d.data +0 -0
- package/_wasm/scichart2d.js +4 -294
- package/_wasm/scichart2d.wasm +0 -0
- package/_wasm/scichart3d.data +0 -0
- package/_wasm/scichart3d.js +4 -294
- package/_wasm/scichart3d.wasm +0 -0
- package/index.d.ts +43 -2
- package/index.js +89 -27
- package/index.min.js +1 -1
- package/package.json +3 -4
- package/types/ChartModifierType.d.ts +2 -0
- package/types/ChartModifierType.js +2 -0
- package/types/DefaultRenderLayer.d.ts +9 -8
- package/types/DefaultRenderLayer.js +9 -8
- package/types/NumberArray.d.ts +1 -0
- package/types/NumberArray.js +12 -1
- package/types/SceneEntityType.d.ts +13 -5
- package/types/SceneEntityType.js +13 -5
- package/types/TSciChart.d.ts +37 -8
- package/types/TSciChart3D.d.ts +126 -7
- package/types/licensingClasses.d.ts +2 -1
- package/types/licensingClasses.js +1 -0
- package/utils/MemoryUsageHelper.d.ts +45 -0
- package/utils/MemoryUsageHelper.js +171 -0
- package/utils/array.d.ts +8 -0
- package/utils/array.js +58 -1
- package/utils/logger.d.ts +2 -0
- package/utils/logger.js +11 -0
|
@@ -33,6 +33,7 @@ import { SeriesSelectedArgs } from "./SeriesSelectedArgs";
|
|
|
33
33
|
import { SeriesVisibleChangedArgs } from "./SeriesVisibleChangedArgs";
|
|
34
34
|
import { ShaderEffect } from "./ShaderEffect";
|
|
35
35
|
import { BaseDataLabelProvider } from "./DataLabels/BaseDataLabelProvider";
|
|
36
|
+
import { DeletableEntity } from "../../../Core/DeletableEntity";
|
|
36
37
|
/**
|
|
37
38
|
* @summary Defines the base class to a Render Series (or Chart Type) in SciChart's High Performance Real-time
|
|
38
39
|
* {@link https://www.scichart.com/javascript-chart-features | JavaScript Charts}
|
|
@@ -43,7 +44,7 @@ import { BaseDataLabelProvider } from "./DataLabels/BaseDataLabelProvider";
|
|
|
43
44
|
* See derived types of {@link BaseDataSeries} to find out what data-series are available.
|
|
44
45
|
* See derived types of {@link IRenderableSeries} to find out what 2D JavaScript Chart types are available.
|
|
45
46
|
*/
|
|
46
|
-
export declare abstract class BaseRenderableSeries implements IRenderableSeries {
|
|
47
|
+
export declare abstract class BaseRenderableSeries extends DeletableEntity implements IRenderableSeries {
|
|
47
48
|
/** @inheritDoc */
|
|
48
49
|
abstract readonly type: ESeriesType;
|
|
49
50
|
/** @inheritDoc */
|
|
@@ -1,4 +1,19 @@
|
|
|
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.getDelta = exports.getDataPointWidth = exports.BaseRenderableSeries = void 0;
|
|
4
19
|
var classFactory_1 = require("../../../Builder/classFactory");
|
|
@@ -35,6 +50,8 @@ var SeriesHoveredArgs_1 = require("./SeriesHoveredArgs");
|
|
|
35
50
|
var SeriesSelectedArgs_1 = require("./SeriesSelectedArgs");
|
|
36
51
|
var SeriesVisibleChangedArgs_1 = require("./SeriesVisibleChangedArgs");
|
|
37
52
|
var DataLabelProviderType_1 = require("../../../types/DataLabelProviderType");
|
|
53
|
+
var DeletableEntity_1 = require("../../../Core/DeletableEntity");
|
|
54
|
+
var XyzSeriesInfo_1 = require("../../Model/ChartData/XyzSeriesInfo");
|
|
38
55
|
/**
|
|
39
56
|
* @summary Defines the base class to a Render Series (or Chart Type) in SciChart's High Performance Real-time
|
|
40
57
|
* {@link https://www.scichart.com/javascript-chart-features | JavaScript Charts}
|
|
@@ -45,7 +62,8 @@ var DataLabelProviderType_1 = require("../../../types/DataLabelProviderType");
|
|
|
45
62
|
* See derived types of {@link BaseDataSeries} to find out what data-series are available.
|
|
46
63
|
* See derived types of {@link IRenderableSeries} to find out what 2D JavaScript Chart types are available.
|
|
47
64
|
*/
|
|
48
|
-
var BaseRenderableSeries = /** @class */ (function () {
|
|
65
|
+
var BaseRenderableSeries = /** @class */ (function (_super) {
|
|
66
|
+
__extends(BaseRenderableSeries, _super);
|
|
49
67
|
/**
|
|
50
68
|
* Creates an instance of the {@link BaseRenderableSeries}
|
|
51
69
|
* @param webAssemblyContext The {@link TSciChart | SciChart WebAssembly Context} containing
|
|
@@ -53,46 +71,48 @@ var BaseRenderableSeries = /** @class */ (function () {
|
|
|
53
71
|
* @param options optional parameters of type {@link IBaseRenderableSeriesOptions} applied when constructing the series type
|
|
54
72
|
*/
|
|
55
73
|
function BaseRenderableSeries(webAssemblyContext, options) {
|
|
74
|
+
var _this = this;
|
|
56
75
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
|
|
76
|
+
_this = _super.call(this) || this;
|
|
57
77
|
/** @inheritDoc */
|
|
58
|
-
|
|
78
|
+
_this.rolloverModifierProps = new RolloverModifierRenderableSeriesProps_1.RolloverModifierRenderableSeriesProps(_this);
|
|
59
79
|
/** @inheritDoc */
|
|
60
|
-
|
|
80
|
+
_this.rolloverModifierProps1 = new RolloverModifierRenderableSeriesProps_1.RolloverModifierRenderableSeriesProps(_this, true);
|
|
61
81
|
/** @inheritDoc */
|
|
62
|
-
|
|
82
|
+
_this.selected = new EventHandler_1.EventHandler();
|
|
63
83
|
/** @inheritDoc */
|
|
64
|
-
|
|
84
|
+
_this.hovered = new EventHandler_1.EventHandler();
|
|
65
85
|
/** @inheritDoc */
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
86
|
+
_this.isVisibleChanged = new EventHandler_1.EventHandler();
|
|
87
|
+
_this.animationQueue = [];
|
|
88
|
+
_this.paletteProviderProperty = IPaletteProvider_1.DefaultPaletteProvider.createEmpty();
|
|
69
89
|
// used to track if registered types were used for function properties, so they can be serialized
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
90
|
+
_this.typeMap = new Map();
|
|
91
|
+
_this.opacityProperty = 1;
|
|
92
|
+
_this.drawingProvidersProperty = [];
|
|
93
|
+
_this.xAxisIdProperty = AxisCore_1.AxisCore.DEFAULT_AXIS_ID;
|
|
94
|
+
_this.yAxisIdProperty = AxisCore_1.AxisCore.DEFAULT_AXIS_ID;
|
|
95
|
+
_this.strokeThicknessProperty = 2;
|
|
96
|
+
_this.strokeProperty = SciChartSurfaceBase_1.SciChartSurfaceBase.DEFAULT_THEME.lineSeriesColor;
|
|
97
|
+
_this.drawNaNAsProperty = WebGlRenderContext2D_1.ELineDrawMode.DiscontinuousLine;
|
|
98
|
+
_this.isVisibleProperty = true;
|
|
99
|
+
_this.isDigitalLineProperty = false;
|
|
100
|
+
_this.resamplingModeProperty = ResamplingMode_1.EResamplingMode.Auto;
|
|
101
|
+
_this.resamplingPrecisionProperty = 0;
|
|
102
|
+
_this.isStacked = false;
|
|
103
|
+
_this.webAssemblyContext = webAssemblyContext;
|
|
104
|
+
_this.id = (_a = options === null || options === void 0 ? void 0 : options.id) !== null && _a !== void 0 ? _a : (0, guid_1.generateGuid)();
|
|
85
105
|
// It is very important to add bind(this) first line in constructor,
|
|
86
106
|
// otherwise dataSeries passed through the options does not work!
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
107
|
+
_this.dataSeriesDataChanged = _this.dataSeriesDataChanged.bind(_this);
|
|
108
|
+
_this.effectPropertyChanged = _this.effectPropertyChanged.bind(_this);
|
|
109
|
+
_this.invalidateParent = _this.invalidateParent.bind(_this);
|
|
110
|
+
_this.getDataPointWidth = _this.getDataPointWidth.bind(_this);
|
|
111
|
+
_this.updateAnimationProperties = _this.updateAnimationProperties.bind(_this);
|
|
112
|
+
_this.beforeAnimationStart = _this.beforeAnimationStart.bind(_this);
|
|
113
|
+
_this.afterAnimationComplete = _this.afterAnimationComplete.bind(_this);
|
|
94
114
|
// Need to set dataSeries (not just dataSeriesProperty) because of dataChanged.subscribe
|
|
95
|
-
|
|
115
|
+
_this.dataSeries = (_b = options === null || options === void 0 ? void 0 : options.dataSeries) !== null && _b !== void 0 ? _b : _this.dataSeriesProperty;
|
|
96
116
|
if (options === null || options === void 0 ? void 0 : options.pointMarker) {
|
|
97
117
|
if (!("drawSprite" in options.pointMarker)) {
|
|
98
118
|
if (options.pointMarker.type === PointMarkerType_1.EPointMarkerType.Custom) {
|
|
@@ -103,22 +123,22 @@ var BaseRenderableSeries = /** @class */ (function () {
|
|
|
103
123
|
}
|
|
104
124
|
}
|
|
105
125
|
}
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
126
|
+
_this.pointMarkerProperty = (_c = options === null || options === void 0 ? void 0 : options.pointMarker) !== null && _c !== void 0 ? _c : _this.pointMarkerProperty;
|
|
127
|
+
_this.strokeProperty = (_d = options === null || options === void 0 ? void 0 : options.stroke) !== null && _d !== void 0 ? _d : _this.strokeProperty;
|
|
128
|
+
_this.strokeThicknessProperty = (_e = options === null || options === void 0 ? void 0 : options.strokeThickness) !== null && _e !== void 0 ? _e : _this.strokeThicknessProperty;
|
|
129
|
+
_this.opacityProperty = (_f = options === null || options === void 0 ? void 0 : options.opacity) !== null && _f !== void 0 ? _f : _this.opacityProperty;
|
|
130
|
+
_this.xAxisIdProperty = (_g = options === null || options === void 0 ? void 0 : options.xAxisId) !== null && _g !== void 0 ? _g : _this.xAxisIdProperty;
|
|
131
|
+
_this.yAxisIdProperty = (_h = options === null || options === void 0 ? void 0 : options.yAxisId) !== null && _h !== void 0 ? _h : _this.yAxisIdProperty;
|
|
132
|
+
_this.isVisibleProperty = (_j = options === null || options === void 0 ? void 0 : options.isVisible) !== null && _j !== void 0 ? _j : _this.isVisibleProperty;
|
|
133
|
+
_this.isDigitalLineProperty = (_k = options === null || options === void 0 ? void 0 : options.isDigitalLine) !== null && _k !== void 0 ? _k : _this.isDigitalLineProperty;
|
|
134
|
+
_this.resamplingModeProperty = (_l = options === null || options === void 0 ? void 0 : options.resamplingMode) !== null && _l !== void 0 ? _l : _this.resamplingModeProperty;
|
|
135
|
+
_this.resamplingPrecisionProperty = (_m = options === null || options === void 0 ? void 0 : options.resamplingPrecision) !== null && _m !== void 0 ? _m : _this.resamplingPrecisionProperty;
|
|
116
136
|
if (options === null || options === void 0 ? void 0 : options.effect) {
|
|
117
137
|
if (!("getNativeEffect" in options.effect)) {
|
|
118
138
|
options.effect = (0, classFactory_1.createType)(BaseType_1.EBaseType.ShaderEffect, options.effect.type, webAssemblyContext, options.effect.options);
|
|
119
139
|
}
|
|
120
140
|
}
|
|
121
|
-
|
|
141
|
+
_this.effectProperty = options === null || options === void 0 ? void 0 : options.effect;
|
|
122
142
|
if (options === null || options === void 0 ? void 0 : options.paletteProvider) {
|
|
123
143
|
if (!("onAttached" in options.paletteProvider)) {
|
|
124
144
|
if (options.paletteProvider.type === PaletteProviderType_1.EPaletteProviderType.Custom) {
|
|
@@ -129,51 +149,51 @@ var BaseRenderableSeries = /** @class */ (function () {
|
|
|
129
149
|
}
|
|
130
150
|
}
|
|
131
151
|
}
|
|
132
|
-
|
|
152
|
+
_this.paletteProviderProperty = (_o = options === null || options === void 0 ? void 0 : options.paletteProvider) !== null && _o !== void 0 ? _o : _this.paletteProviderProperty;
|
|
133
153
|
// PaletteProvider.onAttached must be called by the top level series, as the series type is not available here
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
154
|
+
_this.drawNaNAsProperty = (_p = options === null || options === void 0 ? void 0 : options.drawNaNAs) !== null && _p !== void 0 ? _p : _this.drawNaNAsProperty;
|
|
155
|
+
_this.hitTestProvider = _this.newHitTestProvider();
|
|
156
|
+
_this.isSelected = (_q = options === null || options === void 0 ? void 0 : options.isSelected) !== null && _q !== void 0 ? _q : false;
|
|
157
|
+
_this.isHovered = (_r = options === null || options === void 0 ? void 0 : options.isHovered) !== null && _r !== void 0 ? _r : false;
|
|
138
158
|
if (options === null || options === void 0 ? void 0 : options.onIsVisibleChanged) {
|
|
139
159
|
if (typeof options.onIsVisibleChanged === "string") {
|
|
140
|
-
|
|
160
|
+
_this.typeMap.set("onIsVisibleChanged", options.onIsVisibleChanged);
|
|
141
161
|
var visibleChanged_1 = (0, classFactory_1.getFunction)(BaseType_1.EBaseType.OptionFunction, options.onIsVisibleChanged);
|
|
142
|
-
|
|
162
|
+
_this.isVisibleChanged.subscribe(function (args) {
|
|
143
163
|
return visibleChanged_1(args.sourceSeries, args.isVisible);
|
|
144
164
|
});
|
|
145
165
|
}
|
|
146
166
|
else {
|
|
147
167
|
var onIsVisibleChangedCallback_1 = options === null || options === void 0 ? void 0 : options.onIsVisibleChanged;
|
|
148
|
-
|
|
168
|
+
_this.isVisibleChanged.subscribe(function (args) {
|
|
149
169
|
return onIsVisibleChangedCallback_1(args.sourceSeries, args.isVisible);
|
|
150
170
|
});
|
|
151
171
|
}
|
|
152
172
|
}
|
|
153
173
|
if (options === null || options === void 0 ? void 0 : options.onSelectedChanged) {
|
|
154
174
|
if (typeof options.onSelectedChanged === "string") {
|
|
155
|
-
|
|
175
|
+
_this.typeMap.set("onSelectedChanged", options.onSelectedChanged);
|
|
156
176
|
var selectionChanged_1 = (0, classFactory_1.getFunction)(BaseType_1.EBaseType.OptionFunction, options.onSelectedChanged);
|
|
157
|
-
|
|
177
|
+
_this.selected.subscribe(function (args) {
|
|
158
178
|
return selectionChanged_1(args.sourceSeries, args.isSelected);
|
|
159
179
|
});
|
|
160
180
|
}
|
|
161
181
|
else {
|
|
162
182
|
var onSelectedChangedCallback_1 = options === null || options === void 0 ? void 0 : options.onSelectedChanged;
|
|
163
|
-
|
|
183
|
+
_this.selected.subscribe(function (args) {
|
|
164
184
|
return onSelectedChangedCallback_1(args.sourceSeries, args.isSelected);
|
|
165
185
|
});
|
|
166
186
|
}
|
|
167
187
|
}
|
|
168
188
|
if (options === null || options === void 0 ? void 0 : options.onHoveredChanged) {
|
|
169
189
|
if (typeof options.onHoveredChanged === "string") {
|
|
170
|
-
|
|
190
|
+
_this.typeMap.set("onHoveredChanged", options.onHoveredChanged);
|
|
171
191
|
var hoveredChanged_1 = (0, classFactory_1.getFunction)(BaseType_1.EBaseType.OptionFunction, options.onHoveredChanged);
|
|
172
|
-
|
|
192
|
+
_this.hovered.subscribe(function (args) { return hoveredChanged_1(args.sourceSeries, args.hovered); });
|
|
173
193
|
}
|
|
174
194
|
else {
|
|
175
195
|
var hoveredChanged_2 = options === null || options === void 0 ? void 0 : options.onHoveredChanged;
|
|
176
|
-
|
|
196
|
+
_this.hovered.subscribe(function (args) { return hoveredChanged_2(args.sourceSeries, args.hovered); });
|
|
177
197
|
}
|
|
178
198
|
}
|
|
179
199
|
if (options === null || options === void 0 ? void 0 : options.animation) {
|
|
@@ -186,8 +206,8 @@ var BaseRenderableSeries = /** @class */ (function () {
|
|
|
186
206
|
}
|
|
187
207
|
}
|
|
188
208
|
}
|
|
189
|
-
|
|
190
|
-
|
|
209
|
+
_this.onDpiChanged = _this.onDpiChanged.bind(_this);
|
|
210
|
+
_this.resamplerHelper = new ExtremeResamplerHelper_1.ExtremeResamplerHelper(webAssemblyContext);
|
|
191
211
|
if (options === null || options === void 0 ? void 0 : options.dataLabelProvider) {
|
|
192
212
|
if (!("draw" in options.dataLabelProvider)) {
|
|
193
213
|
if (options.dataLabelProvider.type === DataLabelProviderType_1.EDataLabelProviderType.Custom) {
|
|
@@ -198,10 +218,11 @@ var BaseRenderableSeries = /** @class */ (function () {
|
|
|
198
218
|
}
|
|
199
219
|
}
|
|
200
220
|
}
|
|
201
|
-
|
|
202
|
-
if (
|
|
203
|
-
|
|
221
|
+
_this.dataLabelProviderProperty = options === null || options === void 0 ? void 0 : options.dataLabelProvider;
|
|
222
|
+
if (_this.dataLabelProviderProperty) {
|
|
223
|
+
_this.dataLabelProviderProperty.onAttach(webAssemblyContext, _this);
|
|
204
224
|
}
|
|
225
|
+
return _this;
|
|
205
226
|
}
|
|
206
227
|
/** @inheritDoc */
|
|
207
228
|
BaseRenderableSeries.prototype.applyTheme = function (themeProvider) {
|
|
@@ -583,14 +604,14 @@ var BaseRenderableSeries = /** @class */ (function () {
|
|
|
583
604
|
};
|
|
584
605
|
/** @inheritDoc */
|
|
585
606
|
BaseRenderableSeries.prototype.delete = function () {
|
|
586
|
-
var _a;
|
|
587
607
|
this.drawingProviders.forEach(function (dp) { return dp.delete(); });
|
|
588
608
|
this.drawingProviders = [];
|
|
589
609
|
this.dataSeries = (0, Deleter_1.deleteSafe)(this.dataSeries);
|
|
590
610
|
this.effect = (0, Deleter_1.deleteSafe)(this.effect);
|
|
591
|
-
|
|
611
|
+
this.pointMarker = (0, Deleter_1.deleteSafe)(this.pointMarker);
|
|
592
612
|
this.resamplerHelper = (0, Deleter_1.deleteSafe)(this.resamplerHelper);
|
|
593
613
|
this.pointSeries = (0, Deleter_1.deleteSafe)(this.pointSeries);
|
|
614
|
+
this.dataLabelProviderProperty = (0, Deleter_1.deleteSafe)(this.dataLabelProvider);
|
|
594
615
|
};
|
|
595
616
|
/** @inheritDoc */
|
|
596
617
|
BaseRenderableSeries.prototype.getXRange = function () {
|
|
@@ -701,6 +722,8 @@ var BaseRenderableSeries = /** @class */ (function () {
|
|
|
701
722
|
return new OhlcSeriesInfo_1.OhlcSeriesInfo(this, hitTestInfo);
|
|
702
723
|
case IDataSeries_1.EDataSeriesType.Xyy:
|
|
703
724
|
return new XyySeriesInfo_1.XyySeriesInfo(this, hitTestInfo);
|
|
725
|
+
case IDataSeries_1.EDataSeriesType.Xyz:
|
|
726
|
+
return new XyzSeriesInfo_1.XyzSeriesInfo(this, hitTestInfo);
|
|
704
727
|
case IDataSeries_1.EDataSeriesType.HeatmapUniform:
|
|
705
728
|
return new HeatmapSeriesInfo_1.HeatmapSeriesInfo(this, hitTestInfo);
|
|
706
729
|
case IDataSeries_1.EDataSeriesType.Hlc:
|
|
@@ -851,14 +874,17 @@ var BaseRenderableSeries = /** @class */ (function () {
|
|
|
851
874
|
else {
|
|
852
875
|
this.pointSeries.xRange = rp.xVisibleRange;
|
|
853
876
|
}
|
|
854
|
-
this.resamplerHelper.resampleIntoPointSeries(this.webAssemblyContext, rp, this.dataSeries.getNativeXValues(), this.dataSeries.getNativeYValues(), this.pointSeries.intIndexes, this.pointSeries.xValues, this.pointSeries.yValues, false);
|
|
855
|
-
|
|
856
|
-
|
|
877
|
+
var result = this.resamplerHelper.resampleIntoPointSeries(this.webAssemblyContext, rp, this.dataSeries.getNativeXValues(), this.dataSeries.getNativeYValues(), this.pointSeries.intIndexes, this.pointSeries.indexes, this.pointSeries.xValues, this.pointSeries.yValues, false);
|
|
878
|
+
this.pointSeries.fifoStartIndex = result.OutputSplitIndex;
|
|
879
|
+
// This is now done in the resampling above
|
|
880
|
+
//this.pointSeries.updateIndexes();
|
|
857
881
|
this.pointSeries.clearIntIndexes();
|
|
882
|
+
//console.log("resampling ", this.type, this.pointSeries.count);
|
|
858
883
|
// this.pointSeries.debugOutputForUnitTests();
|
|
859
884
|
return this.pointSeries;
|
|
860
885
|
}
|
|
861
886
|
else {
|
|
887
|
+
//console.log("NOT resampling ", this.type, this.dataSeries.count());
|
|
862
888
|
return new XyPointSeriesWrapped_1.XyPointSeriesWrapped(this.dataSeries);
|
|
863
889
|
}
|
|
864
890
|
};
|
|
@@ -879,7 +905,8 @@ var BaseRenderableSeries = /** @class */ (function () {
|
|
|
879
905
|
SeriesType_1.ESeriesType.UniformContoursSeries,
|
|
880
906
|
SeriesType_1.ESeriesType.UniformHeatmapSeries,
|
|
881
907
|
SeriesType_1.ESeriesType.NonUniformHeatmapSeries,
|
|
882
|
-
SeriesType_1.ESeriesType.
|
|
908
|
+
SeriesType_1.ESeriesType.BubbleSeries,
|
|
909
|
+
// ESeriesType.ScatterSeries,
|
|
883
910
|
SeriesType_1.ESeriesType.ErrorBarsSeries
|
|
884
911
|
].includes(this.type);
|
|
885
912
|
return (seriesTypeSupportsResampling &&
|
|
@@ -888,7 +915,9 @@ var BaseRenderableSeries = /** @class */ (function () {
|
|
|
888
915
|
!this.isStacked &&
|
|
889
916
|
this.dataSeries &&
|
|
890
917
|
this.dataSeries.count() > 0 &&
|
|
891
|
-
this.dataSeries.dataDistributionCalculator.isSortedAscending)
|
|
918
|
+
(this.dataSeries.dataDistributionCalculator.isSortedAscending || this.xAxis.isCategoryAxis)
|
|
919
|
+
//!this.dataSeries.fifoSweeping
|
|
920
|
+
);
|
|
892
921
|
},
|
|
893
922
|
enumerable: false,
|
|
894
923
|
configurable: true
|
|
@@ -938,6 +967,9 @@ var BaseRenderableSeries = /** @class */ (function () {
|
|
|
938
967
|
*/
|
|
939
968
|
BaseRenderableSeries.prototype.setAnimationVectors = function (animation) {
|
|
940
969
|
var ds = this.dataSeries;
|
|
970
|
+
if (!ds.xInitialAnimationValues) {
|
|
971
|
+
ds.createAnimationVectors();
|
|
972
|
+
}
|
|
941
973
|
if (animation.isOnStartAnimation) {
|
|
942
974
|
ds.setFinalAnimationVectors(ds);
|
|
943
975
|
}
|
|
@@ -1027,7 +1059,7 @@ var BaseRenderableSeries = /** @class */ (function () {
|
|
|
1027
1059
|
configurable: true
|
|
1028
1060
|
});
|
|
1029
1061
|
return BaseRenderableSeries;
|
|
1030
|
-
}());
|
|
1062
|
+
}(DeletableEntity_1.DeletableEntity));
|
|
1031
1063
|
exports.BaseRenderableSeries = BaseRenderableSeries;
|
|
1032
1064
|
/** @ignore */
|
|
1033
1065
|
var getDataPointWidth = function (xValues, xCoordCalc, seriesViewRectWidth, widthFraction, isCategoryAxis, wasmContext) {
|
|
@@ -17,10 +17,12 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
exports.BaseStackedCollection = void 0;
|
|
19
19
|
var AnimationFiniteStateMachine_1 = require("../../../Core/Animations/AnimationFiniteStateMachine");
|
|
20
|
+
var DeletableEntity_1 = require("../../../Core/DeletableEntity");
|
|
20
21
|
var Deleter_1 = require("../../../Core/Deleter");
|
|
21
22
|
var NumberRange_1 = require("../../../Core/NumberRange");
|
|
22
23
|
var ObservableArray_1 = require("../../../Core/ObservableArray");
|
|
23
24
|
var guid_1 = require("../../../utils/guid");
|
|
25
|
+
var MemoryUsageHelper_1 = require("../../../utils/MemoryUsageHelper");
|
|
24
26
|
var BaseDataSeries_1 = require("../../Model/BaseDataSeries");
|
|
25
27
|
var AxisCore_1 = require("../Axis/AxisCore");
|
|
26
28
|
var animationHelpers_1 = require("./Animations/animationHelpers");
|
|
@@ -71,6 +73,11 @@ var BaseStackedCollection = /** @class */ (function (_super) {
|
|
|
71
73
|
_this.updateAnimationProperties = _this.updateAnimationProperties.bind(_this);
|
|
72
74
|
_this.accumulatedValues0 = new _this.webAssemblyContext.SCRTDoubleVector();
|
|
73
75
|
_this.accumulatedFinalAnimationValues0 = new _this.webAssemblyContext.SCRTDoubleVector();
|
|
76
|
+
if (process.env.NODE_ENV !== "production") {
|
|
77
|
+
if (MemoryUsageHelper_1.MemoryUsageHelper.isMemoryUsageDebugEnabled) {
|
|
78
|
+
return new Proxy(_this, new DeletableEntity_1.DeletableEntityProxyHandler(_this));
|
|
79
|
+
}
|
|
80
|
+
}
|
|
74
81
|
return _this;
|
|
75
82
|
}
|
|
76
83
|
Object.defineProperty(BaseStackedCollection.prototype, "isVisibleChanged", {
|
|
@@ -104,7 +111,7 @@ var BaseStackedCollection = /** @class */ (function (_super) {
|
|
|
104
111
|
},
|
|
105
112
|
/** @inheritDoc */
|
|
106
113
|
set: function (isSelected) {
|
|
107
|
-
throw new Error("Setting
|
|
114
|
+
throw new Error("Setting isSelected is not supported for BaseStackedCollection");
|
|
108
115
|
},
|
|
109
116
|
enumerable: false,
|
|
110
117
|
configurable: true
|
|
@@ -112,11 +119,11 @@ var BaseStackedCollection = /** @class */ (function (_super) {
|
|
|
112
119
|
Object.defineProperty(BaseStackedCollection.prototype, "isHovered", {
|
|
113
120
|
/** @inheritDoc */
|
|
114
121
|
get: function () {
|
|
115
|
-
|
|
122
|
+
return false;
|
|
116
123
|
},
|
|
117
124
|
/** @inheritDoc */
|
|
118
125
|
set: function (isHovered) {
|
|
119
|
-
throw new Error("Setting
|
|
126
|
+
throw new Error("Setting isHovered is not supported for BaseStackedCollection");
|
|
120
127
|
},
|
|
121
128
|
enumerable: false,
|
|
122
129
|
configurable: true
|
|
@@ -458,6 +465,9 @@ var BaseStackedCollection = /** @class */ (function (_super) {
|
|
|
458
465
|
BaseStackedCollection.prototype.delete = function () {
|
|
459
466
|
this.accumulatedValues0 = (0, Deleter_1.deleteSafe)(this.accumulatedValues0);
|
|
460
467
|
this.accumulatedFinalAnimationValues0 = (0, Deleter_1.deleteSafe)(this.accumulatedFinalAnimationValues0);
|
|
468
|
+
this.asArray().forEach(function (series) {
|
|
469
|
+
series.delete();
|
|
470
|
+
});
|
|
461
471
|
};
|
|
462
472
|
/** @inheritDoc */
|
|
463
473
|
BaseStackedCollection.prototype.notifyPropertyChanged = function (propertyName) {
|
|
@@ -543,7 +553,6 @@ var BaseStackedCollection = /** @class */ (function (_super) {
|
|
|
543
553
|
BaseStackedCollection.prototype.onDetach = function () {
|
|
544
554
|
this.invalidateParentCallback = undefined;
|
|
545
555
|
this.parentSurface = undefined;
|
|
546
|
-
this.delete();
|
|
547
556
|
};
|
|
548
557
|
/**
|
|
549
558
|
* Gets visible renderable series array
|
|
@@ -61,14 +61,22 @@ var BaseStackedRenderableSeries = /** @class */ (function (_super) {
|
|
|
61
61
|
* @inheritDoc
|
|
62
62
|
*/
|
|
63
63
|
BaseStackedRenderableSeries.prototype.delete = function () {
|
|
64
|
-
_super.prototype.delete.call(this);
|
|
65
64
|
this.accumulatedValues = (0, Deleter_1.deleteSafe)(this.accumulatedValues);
|
|
66
65
|
this.accumulatedFinalAnimationValues = (0, Deleter_1.deleteSafe)(this.accumulatedFinalAnimationValues);
|
|
66
|
+
// TODO refactor StackedColumnSeries to fix thrown errors
|
|
67
|
+
// super.delete();
|
|
68
|
+
this.dataSeries = (0, Deleter_1.deleteSafe)(this.dataSeries);
|
|
69
|
+
// this.effect = deleteSafe(this.effect);
|
|
70
|
+
this.pointMarker = (0, Deleter_1.deleteSafe)(this.pointMarker);
|
|
71
|
+
this.resamplerHelper = (0, Deleter_1.deleteSafe)(this.resamplerHelper);
|
|
72
|
+
this.pointSeries = (0, Deleter_1.deleteSafe)(this.pointSeries);
|
|
73
|
+
this.dataLabelProviderProperty = (0, Deleter_1.deleteSafe)(this.dataLabelProvider);
|
|
67
74
|
};
|
|
68
75
|
/**
|
|
69
76
|
* Called when the {@link BaseStackedRenderableSeries} is detached from its parent {@link BaseStackedCollection}
|
|
70
77
|
*/
|
|
71
78
|
BaseStackedRenderableSeries.prototype.onDetachFromParentCollection = function () {
|
|
79
|
+
console.log("onDetachFromParentCollection");
|
|
72
80
|
this.parentCollection = undefined;
|
|
73
81
|
this.getParentSurfaceFn = undefined;
|
|
74
82
|
this.notifyParentPropertyChangedFn = undefined;
|
|
@@ -309,14 +317,15 @@ var BaseStackedRenderableSeries = /** @class */ (function (_super) {
|
|
|
309
317
|
* instead set on the {@link StackedColumnCollection} or {@link StackedMountainCollection}
|
|
310
318
|
*/
|
|
311
319
|
get: function () {
|
|
312
|
-
|
|
320
|
+
var _a;
|
|
321
|
+
return (_a = this.parentCollection) === null || _a === void 0 ? void 0 : _a.xAxisId;
|
|
313
322
|
},
|
|
314
323
|
/**
|
|
315
324
|
* xAxisId property is not supported for BaseStackedRenderableSeries,
|
|
316
325
|
* instead set on the {@link StackedColumnCollection} or {@link StackedMountainCollection}
|
|
317
326
|
*/
|
|
318
327
|
set: function (value) {
|
|
319
|
-
throw Error("xAxisId property is not supported for BaseStackedRenderableSeries");
|
|
328
|
+
throw Error("Setting xAxisId property is not supported for BaseStackedRenderableSeries");
|
|
320
329
|
},
|
|
321
330
|
enumerable: false,
|
|
322
331
|
configurable: true
|
|
@@ -57,6 +57,8 @@ export declare abstract class BaseDataLabelProvider {
|
|
|
57
57
|
* @param parentSeries
|
|
58
58
|
*/
|
|
59
59
|
onAttach(webAssemblyContext: TSciChart, parentSeries: IRenderableSeries): void;
|
|
60
|
+
onDetach(): void;
|
|
61
|
+
delete(): void;
|
|
60
62
|
/**
|
|
61
63
|
* Gets or sets the text style used for data labels. The style must be set, with fontFamily and fontSize set, in order for text to be drawn.
|
|
62
64
|
*/
|
|
@@ -41,6 +41,11 @@ var BaseDataLabelProvider = /** @class */ (function () {
|
|
|
41
41
|
this.webAssemblyContext = webAssemblyContext;
|
|
42
42
|
this.parentSeries = parentSeries;
|
|
43
43
|
};
|
|
44
|
+
BaseDataLabelProvider.prototype.onDetach = function () {
|
|
45
|
+
this.webAssemblyContext = undefined;
|
|
46
|
+
this.parentSeries = undefined;
|
|
47
|
+
};
|
|
48
|
+
BaseDataLabelProvider.prototype.delete = function () { };
|
|
44
49
|
Object.defineProperty(BaseDataLabelProvider.prototype, "style", {
|
|
45
50
|
/**
|
|
46
51
|
* Gets or sets the text style used for data labels. The style must be set, with fontFamily and fontSize set, in order for text to be drawn.
|
|
@@ -325,6 +325,7 @@ var DataLabelProvider = /** @class */ (function (_super) {
|
|
|
325
325
|
// renderPassData.pointSeries.xRange,
|
|
326
326
|
// renderPassData.pointSeries.indexes.size()
|
|
327
327
|
// );
|
|
328
|
+
var _c = this.parentSeries.dataSeries, fifoCapacity = _c.fifoCapacity, fifoSweeping = _c.fifoSweeping, fifoSweepingGap = _c.fifoSweepingGap, fifoStartIndex = _c.fifoStartIndex;
|
|
328
329
|
var bounds = (0, NativeObject_1.getTextBounds)(this.webAssemblyContext);
|
|
329
330
|
if (!this.shouldGenerate(this.state))
|
|
330
331
|
return;
|
|
@@ -335,6 +336,11 @@ var DataLabelProvider = /** @class */ (function (_super) {
|
|
|
335
336
|
this.skipModeProperty === DataLabelSkipMode_1.EDataLabelSkipMode.SkipIfOverlapNext
|
|
336
337
|
? this.state.indexEnd - (i - this.state.indexStart)
|
|
337
338
|
: i;
|
|
339
|
+
if (fifoSweeping &&
|
|
340
|
+
this.state.pointCount === fifoCapacity &&
|
|
341
|
+
this.state.index >= fifoStartIndex &&
|
|
342
|
+
this.state.index < fifoStartIndex + fifoSweepingGap)
|
|
343
|
+
continue;
|
|
338
344
|
var text = this.getText(this.state);
|
|
339
345
|
if (!text)
|
|
340
346
|
continue;
|
|
@@ -27,10 +27,10 @@ var DataLabelState = /** @class */ (function () {
|
|
|
27
27
|
? this.renderPassData.xCoordinateCalculator
|
|
28
28
|
: this.renderPassData.yCoordinateCalculator).hasFlippedCoordinates;
|
|
29
29
|
if (!renderPassData.indexRange) {
|
|
30
|
-
var indicesRange = this.parentSeries.
|
|
30
|
+
var indicesRange = this.parentSeries.getIndicesRange(new NumberRange_1.NumberRange(renderPassData.xCoordinateCalculator.visibleMin, renderPassData.xCoordinateCalculator.visibleMax), isCategoryAxis);
|
|
31
31
|
this.indexStart = indicesRange.min;
|
|
32
32
|
this.indexEnd = indicesRange.max;
|
|
33
|
-
this.pointCount = indicesRange.diff;
|
|
33
|
+
this.pointCount = indicesRange.diff + 1;
|
|
34
34
|
if (this.pointCount > 1)
|
|
35
35
|
this.pointGap = Math.abs(this.xCoord(this.indexStart) - this.xCoord(this.indexEnd)) / this.pointCount;
|
|
36
36
|
else
|
|
@@ -46,6 +46,7 @@ var DataLabelState = /** @class */ (function () {
|
|
|
46
46
|
this.font = renderContext.getFont(this.style);
|
|
47
47
|
this.xPadding = ((_c = (_b = this.style.padding) === null || _b === void 0 ? void 0 : _b.left) !== null && _c !== void 0 ? _c : 0) + ((_e = (_d = this.style.padding) === null || _d === void 0 ? void 0 : _d.right) !== null && _e !== void 0 ? _e : 0);
|
|
48
48
|
this.yPadding = ((_g = (_f = this.style.padding) === null || _f === void 0 ? void 0 : _f.top) !== null && _g !== void 0 ? _g : 0) + ((_j = (_h = this.style.padding) === null || _h === void 0 ? void 0 : _h.bottom) !== null && _j !== void 0 ? _j : 0);
|
|
49
|
+
this.fifoSweeping = parentSeries.dataSeries.fifoSweeping;
|
|
49
50
|
}
|
|
50
51
|
Object.defineProperty(DataLabelState.prototype, "index", {
|
|
51
52
|
get: function () {
|
|
@@ -64,14 +65,26 @@ var DataLabelState = /** @class */ (function () {
|
|
|
64
65
|
if (!this.isXFlipped) {
|
|
65
66
|
i = this.indexEnd - (i - this.indexStart);
|
|
66
67
|
}
|
|
67
|
-
|
|
68
|
+
// @ts-ignore
|
|
69
|
+
if (!this.fifoSweeping || !this.xValues.getRaw) {
|
|
70
|
+
return this.xValues.get(i);
|
|
71
|
+
}
|
|
72
|
+
else {
|
|
73
|
+
return this.xValues.getRaw(i);
|
|
74
|
+
}
|
|
68
75
|
};
|
|
69
76
|
DataLabelState.prototype.yVal = function (index) {
|
|
70
77
|
var i = index !== null && index !== void 0 ? index : this.indexProperty;
|
|
71
78
|
if (!this.isXFlipped) {
|
|
72
79
|
i = this.indexEnd - (i - this.indexStart);
|
|
73
80
|
}
|
|
74
|
-
|
|
81
|
+
// @ts-ignore
|
|
82
|
+
if (!this.fifoSweeping || !this.yValues.getRaw) {
|
|
83
|
+
return this.yValues.get(i);
|
|
84
|
+
}
|
|
85
|
+
else {
|
|
86
|
+
return this.yValues.getRaw(i);
|
|
87
|
+
}
|
|
75
88
|
};
|
|
76
89
|
DataLabelState.prototype.yValAfterAnimation = function (index) {
|
|
77
90
|
if (!this.yFinalValues)
|
|
@@ -115,7 +128,7 @@ var DataLabelState = /** @class */ (function () {
|
|
|
115
128
|
});
|
|
116
129
|
DataLabelState.prototype.getMetaData = function () {
|
|
117
130
|
var index = this.renderPassData.pointSeries.indexes.get(this.index);
|
|
118
|
-
return this.parentSeries.dataSeries.getMetadataAt(index);
|
|
131
|
+
return this.parentSeries.dataSeries.getMetadataAt(index, this.fifoSweeping);
|
|
119
132
|
};
|
|
120
133
|
Object.defineProperty(DataLabelState.prototype, "isVerticalChart", {
|
|
121
134
|
get: function () {
|
|
@@ -98,7 +98,6 @@ var NonUniformHeatMapDataLabelProvider = /** @class */ (function (_super) {
|
|
|
98
98
|
}
|
|
99
99
|
var xVal = this.dataSeries.getXValue(xIndex);
|
|
100
100
|
var xValNext = this.dataSeries.xCellOffsets[xIndex + 1];
|
|
101
|
-
console.log(xIndex, xVal, xValNext, renderPassData.xCoordinateCalculator.visibleMax);
|
|
102
101
|
if (renderPassData.xCoordinateCalculator.visibleMin > xVal ||
|
|
103
102
|
renderPassData.xCoordinateCalculator.visibleMax < xValNext) {
|
|
104
103
|
continue;
|
|
@@ -129,16 +129,22 @@ var TextDataLabelProvider = /** @class */ (function (_super) {
|
|
|
129
129
|
}
|
|
130
130
|
var state = new DataLabelState_1.DataLabelState(renderContext, renderPassData, this.style, this.color, renderPassData.pointSeries.yValues, this.parentSeries);
|
|
131
131
|
var bounds = (0, NativeObject_1.getTextBounds)(this.webAssemblyContext);
|
|
132
|
+
var _f = this.parentSeries.dataSeries, fifoCapacity = _f.fifoCapacity, fifoSweeping = _f.fifoSweeping, fifoSweepingGap = _f.fifoSweepingGap, fifoStartIndex = _f.fifoStartIndex;
|
|
132
133
|
var indexes = renderPassData.pointSeries.indexes;
|
|
133
134
|
var calcBounds = this.verticalTextPosition !== TextPosition_1.EVerticalTextPosition.Above ||
|
|
134
135
|
this.horizontalTextPosition !== TextPosition_1.EHorizontalTextPosition.Right ||
|
|
135
136
|
this.calculateTextBounds;
|
|
136
137
|
if (textSeries) {
|
|
137
|
-
state.font.CalculateStringBounds((_a = textSeries.
|
|
138
|
+
state.font.CalculateStringBounds((_a = textSeries.getTextValue(0)) !== null && _a !== void 0 ? _a : "", bounds, (_c = (_b = this.style) === null || _b === void 0 ? void 0 : _b.lineSpacing) !== null && _c !== void 0 ? _c : 2);
|
|
138
139
|
for (var i = 0; i < indexes.size(); i++) {
|
|
139
140
|
state.index = i;
|
|
140
141
|
var index = indexes.get(state.index);
|
|
141
|
-
|
|
142
|
+
if (fifoSweeping &&
|
|
143
|
+
state.pointCount === fifoCapacity &&
|
|
144
|
+
state.index >= fifoStartIndex &&
|
|
145
|
+
state.index < fifoStartIndex + fifoSweepingGap)
|
|
146
|
+
continue;
|
|
147
|
+
var text = textSeries.getTextValue(index);
|
|
142
148
|
if (calcBounds) {
|
|
143
149
|
state.font.CalculateStringBounds(text !== null && text !== void 0 ? text : "", bounds, (_e = (_d = this.style) === null || _d === void 0 ? void 0 : _d.lineSpacing) !== null && _e !== void 0 ? _e : 2);
|
|
144
150
|
}
|
|
@@ -16,6 +16,7 @@ export declare class BandSeriesDrawingProvider extends BaseSeriesDrawingProvider
|
|
|
16
16
|
private fillBrushCache;
|
|
17
17
|
private fillBrushY1Cache;
|
|
18
18
|
private y1Selector;
|
|
19
|
+
private args;
|
|
19
20
|
/**
|
|
20
21
|
* Creates an instance of the {@link BandSeriesDrawingProvider}
|
|
21
22
|
* @param webAssemblyContext The {@link TSciChart | SciChart 2D WebAssembly Context} containing native methods and
|