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
|
@@ -281,7 +281,9 @@ var LineAnnotation = /** @class */ (function (_super) {
|
|
|
281
281
|
var borderY1 = this.getY1Coordinate(xCalc, yCalc);
|
|
282
282
|
var borderY2 = this.getY2Coordinate(xCalc, yCalc);
|
|
283
283
|
this.setAnnotationBorders(borderX1, borderX2, borderY1, borderY2);
|
|
284
|
-
|
|
284
|
+
if (strokePen) {
|
|
285
|
+
renderContext.drawLine(borderX1, borderY1, borderX2, borderY2, strokePen, viewRect);
|
|
286
|
+
}
|
|
285
287
|
// This code is a bit silly, but I'm leaving it just in case anyone is currently relying on it.
|
|
286
288
|
// It will get sorted in the big annotation refactor
|
|
287
289
|
if (this.showLabel) {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Rect } from "../../../Core/Rect";
|
|
2
2
|
import { IRenderContext2D } from "../../Drawing/IRenderContext2D";
|
|
3
3
|
import { CoordinateCalculatorBase } from "../../Numerics/CoordinateCalculators/CoordinateCalculatorBase";
|
|
4
|
+
import { SciChartSurface } from "../SciChartSurface";
|
|
4
5
|
import { AnnotationBase, IAnnotationBaseOptions } from "./AnnotationBase";
|
|
5
6
|
/**
|
|
6
7
|
* The Base class for an {@link AnnotationBase | Annotation} which draws using SciChart's built-in WebGL2
|
|
@@ -15,6 +16,10 @@ export declare abstract class RenderContextAnnotationBase extends AnnotationBase
|
|
|
15
16
|
* @param options optional parameters of type {@link IAnnotationBaseOptions} which configure the annotation at construction time
|
|
16
17
|
*/
|
|
17
18
|
protected constructor(options?: IAnnotationBaseOptions);
|
|
19
|
+
/** @inheritDoc */
|
|
20
|
+
get parentSurface(): SciChartSurface;
|
|
21
|
+
/** @inheritDoc */
|
|
22
|
+
set parentSurface(parentSurface: SciChartSurface);
|
|
18
23
|
/**
|
|
19
24
|
* @description draws the annotation with RenderContext.
|
|
20
25
|
* May be overriden in derived classes for fast drawing direct on render surface
|
|
@@ -17,6 +17,7 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
exports.RenderContextAnnotationBase = void 0;
|
|
19
19
|
var AnnotationBase_1 = require("./AnnotationBase");
|
|
20
|
+
var constants_1 = require("./constants");
|
|
20
21
|
/**
|
|
21
22
|
* The Base class for an {@link AnnotationBase | Annotation} which draws using SciChart's built-in WebGL2
|
|
22
23
|
* WebAssembly {@link WebGL2RenderingContext | RenderContext}, enabling fast drawing at expense of
|
|
@@ -34,6 +35,21 @@ var RenderContextAnnotationBase = /** @class */ (function (_super) {
|
|
|
34
35
|
_this.isSvgAnnotation = false;
|
|
35
36
|
return _this;
|
|
36
37
|
}
|
|
38
|
+
Object.defineProperty(RenderContextAnnotationBase.prototype, "parentSurface", {
|
|
39
|
+
/** @inheritDoc */
|
|
40
|
+
get: function () {
|
|
41
|
+
return this.parentSurfaceProperty;
|
|
42
|
+
},
|
|
43
|
+
/** @inheritDoc */
|
|
44
|
+
set: function (parentSurface) {
|
|
45
|
+
if (this.parentSurfaceProperty !== parentSurface) {
|
|
46
|
+
this.parentSurfaceProperty = parentSurface;
|
|
47
|
+
this.notifyPropertyChanged(constants_1.PROPERTY.PARENT_SURFACE);
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
enumerable: false,
|
|
51
|
+
configurable: true
|
|
52
|
+
});
|
|
37
53
|
return RenderContextAnnotationBase;
|
|
38
54
|
}(AnnotationBase_1.AnnotationBase));
|
|
39
55
|
exports.RenderContextAnnotationBase = RenderContextAnnotationBase;
|
|
@@ -221,6 +221,12 @@ var defaultTooltipDataTemplate = function (seriesInfo, tooltipTitle, tooltipLabe
|
|
|
221
221
|
}
|
|
222
222
|
valuesWithLabels.push("Z: ".concat(heatmapSeriesInfo.formattedZValue));
|
|
223
223
|
}
|
|
224
|
+
else if (seriesInfo.dataSeriesType === IDataSeries_1.EDataSeriesType.Xyz) {
|
|
225
|
+
// Bubble Series
|
|
226
|
+
var xyzSeriesInfo = seriesInfo;
|
|
227
|
+
addValueWithLabel(valuesWithLabels, xyzSeriesInfo.formattedXValue, xyzSeriesInfo.formattedYValue, tooltipLabelX, tooltipLabelY);
|
|
228
|
+
valuesWithLabels.push("Z: ".concat(xyzSeriesInfo.formattedZValue));
|
|
229
|
+
}
|
|
224
230
|
else {
|
|
225
231
|
// Line Series
|
|
226
232
|
var xySeriesInfo = seriesInfo;
|
|
@@ -41,6 +41,7 @@ export declare enum PROPERTY {
|
|
|
41
41
|
TOOLTIP_LEGEND_OFFSET_X = "TOOLTIP_LEGEND_OFFSET_X",
|
|
42
42
|
TOOLTIP_LEGEND_OFFSET_Y = "TOOLTIP_LEGEND_OFFSET_Y",
|
|
43
43
|
TOOLTIP_LEGEND_TEMPLATE = "TOOLTIP_LEGEND_TEMPLATE",
|
|
44
|
+
TOOLTIP_DATA_TEMPLATE = "TOOLTIP_DATA_TEMPLATE",
|
|
44
45
|
TOOLTIP_SVG_TEMPLATE = "TOOLTIP_SVG_TEMPLATE",
|
|
45
46
|
VERTICAL_ANCHOR_POINT = "VERTICAL_ANCHOR_POINT",
|
|
46
47
|
X1 = "X1",
|
|
@@ -45,6 +45,7 @@ var PROPERTY;
|
|
|
45
45
|
PROPERTY["TOOLTIP_LEGEND_OFFSET_X"] = "TOOLTIP_LEGEND_OFFSET_X";
|
|
46
46
|
PROPERTY["TOOLTIP_LEGEND_OFFSET_Y"] = "TOOLTIP_LEGEND_OFFSET_Y";
|
|
47
47
|
PROPERTY["TOOLTIP_LEGEND_TEMPLATE"] = "TOOLTIP_LEGEND_TEMPLATE";
|
|
48
|
+
PROPERTY["TOOLTIP_DATA_TEMPLATE"] = "TOOLTIP_DATA_TEMPLATE";
|
|
48
49
|
PROPERTY["TOOLTIP_SVG_TEMPLATE"] = "TOOLTIP_SVG_TEMPLATE";
|
|
49
50
|
PROPERTY["VERTICAL_ANCHOR_POINT"] = "VERTICAL_ANCHOR_POINT";
|
|
50
51
|
PROPERTY["X1"] = "X1";
|
|
@@ -151,6 +151,11 @@ export interface IAxisBase2dOptions extends IAxisCoreOptions {
|
|
|
151
151
|
*/
|
|
152
152
|
axisThickness?: number;
|
|
153
153
|
backgroundColor?: string;
|
|
154
|
+
/**
|
|
155
|
+
* Sets the offset from the seriesViewRect in the direction of the axis. This overrides the value set internally during layout,
|
|
156
|
+
* which is 0 for normal axes, but is used to position stacked axes.
|
|
157
|
+
*/
|
|
158
|
+
overrideOffset?: number;
|
|
154
159
|
}
|
|
155
160
|
/**
|
|
156
161
|
* The base class for 2D Chart Axis within SciChart - High Performance {@link https://www.scichart.com/javascript-chart-features | JavaScript Charts}.
|
|
@@ -164,11 +169,11 @@ export interface IAxisBase2dOptions extends IAxisCoreOptions {
|
|
|
164
169
|
*/
|
|
165
170
|
export declare abstract class AxisBase2D extends AxisCore implements IThemeable {
|
|
166
171
|
/**
|
|
167
|
-
* Gets or sets a {@link
|
|
172
|
+
* Gets or sets a {@link LabelProviderBase2D} - a class which is responsible for formatting axis labels and cursor labels from numeric values
|
|
168
173
|
*/
|
|
169
174
|
get labelProvider(): LabelProviderBase2D;
|
|
170
175
|
/**
|
|
171
|
-
* Gets or sets a {@link
|
|
176
|
+
* Gets or sets a {@link LabelProviderBase2D} - a class which is responsible for formatting axis labels and cursor labels from numeric values
|
|
172
177
|
*/
|
|
173
178
|
set labelProvider(labelProvider: LabelProviderBase2D);
|
|
174
179
|
/**
|
|
@@ -277,7 +282,12 @@ export declare abstract class AxisBase2D extends AxisCore implements IThemeable
|
|
|
277
282
|
*/
|
|
278
283
|
get offset(): number;
|
|
279
284
|
/**
|
|
280
|
-
*
|
|
285
|
+
* set an offset value that overrides the one used by layout calculation
|
|
286
|
+
*/
|
|
287
|
+
overrideOffset(value: number): void;
|
|
288
|
+
/**
|
|
289
|
+
* Called internally by layout strategies when switching between stacked and non-stacked axes.
|
|
290
|
+
* If you want to set a manual offset, call {@link overrideOffset}
|
|
281
291
|
*/
|
|
282
292
|
set offset(value: number);
|
|
283
293
|
/**
|
|
@@ -321,7 +331,7 @@ export declare abstract class AxisBase2D extends AxisCore implements IThemeable
|
|
|
321
331
|
/**
|
|
322
332
|
* Gets the {@link AxisTitleRenderer} instance responsible for drawing the axis title
|
|
323
333
|
*/
|
|
324
|
-
|
|
334
|
+
axisTitleRenderer: AxisTitleRenderer;
|
|
325
335
|
/**
|
|
326
336
|
* Gets the {@link AxisLayoutState} class which manages layout
|
|
327
337
|
*/
|
|
@@ -334,7 +344,7 @@ export declare abstract class AxisBase2D extends AxisCore implements IThemeable
|
|
|
334
344
|
* The {@link TSciChart | SciChart 2D WebAssembly Context} containing native methods and
|
|
335
345
|
* access to our WebGL2 Engine and WebAssembly numerical methods
|
|
336
346
|
*/
|
|
337
|
-
protected
|
|
347
|
+
protected webAssemblyContext2D: TSciChart;
|
|
338
348
|
protected axisRendererProperty: AxisRenderer;
|
|
339
349
|
protected autoRangeAnimationProperty: IAutoRangeAnimationOptions;
|
|
340
350
|
private labelStyleProperty;
|
|
@@ -355,6 +365,7 @@ export declare abstract class AxisBase2D extends AxisCore implements IThemeable
|
|
|
355
365
|
private solidBrushCacheBorder;
|
|
356
366
|
private axisLengthProperty;
|
|
357
367
|
private offsetProperty;
|
|
368
|
+
private offsetOverrideProperty;
|
|
358
369
|
private tickCache;
|
|
359
370
|
private backgroundColorProperty;
|
|
360
371
|
private dpiAdjustedLabelStyleCache;
|
|
@@ -371,6 +382,10 @@ export declare abstract class AxisBase2D extends AxisCore implements IThemeable
|
|
|
371
382
|
* Called when the {@link AxisBase2D} is attached to an {@link SciChartSurface}
|
|
372
383
|
*/
|
|
373
384
|
onAttach(parentSurface: SciChartSurface, isXAxis: boolean, isPrimaryAxis: boolean): void;
|
|
385
|
+
/**
|
|
386
|
+
* Called when the {@link AxisBase2D} is detached from an {@link SciChartSurface}
|
|
387
|
+
*/
|
|
388
|
+
onDetach(): void;
|
|
374
389
|
/**
|
|
375
390
|
* Called internally - measures the axis as part of the layout phase
|
|
376
391
|
*/
|
|
@@ -128,6 +128,7 @@ var AxisBase2D = /** @class */ (function (_super) {
|
|
|
128
128
|
border: 0
|
|
129
129
|
};
|
|
130
130
|
_this.offsetProperty = 0;
|
|
131
|
+
_this.offsetOverrideProperty = undefined;
|
|
131
132
|
_this.tickCache = undefined;
|
|
132
133
|
_this.webAssemblyContext2D = webAssemblyContext;
|
|
133
134
|
_this.penCacheForMajorGridLines = new Pen2DCache_1.Pen2DCache(webAssemblyContext);
|
|
@@ -161,19 +162,24 @@ var AxisBase2D = /** @class */ (function (_super) {
|
|
|
161
162
|
}
|
|
162
163
|
_this.autoRangeAnimationProperty = options === null || options === void 0 ? void 0 : options.autoRangeAnimation;
|
|
163
164
|
_this.backgroundColor = (_k = options === null || options === void 0 ? void 0 : options.backgroundColor) !== null && _k !== void 0 ? _k : _this.backgroundColor;
|
|
165
|
+
_this.offsetOverrideProperty = options === null || options === void 0 ? void 0 : options.overrideOffset; // undefined if not set
|
|
164
166
|
return _this;
|
|
165
167
|
}
|
|
166
168
|
Object.defineProperty(AxisBase2D.prototype, "labelProvider", {
|
|
167
169
|
/**
|
|
168
|
-
* Gets or sets a {@link
|
|
170
|
+
* Gets or sets a {@link LabelProviderBase2D} - a class which is responsible for formatting axis labels and cursor labels from numeric values
|
|
169
171
|
*/
|
|
170
172
|
get: function () {
|
|
171
173
|
return this.labelProviderProperty;
|
|
172
174
|
},
|
|
173
175
|
/**
|
|
174
|
-
* Gets or sets a {@link
|
|
176
|
+
* Gets or sets a {@link LabelProviderBase2D} - a class which is responsible for formatting axis labels and cursor labels from numeric values
|
|
175
177
|
*/
|
|
176
178
|
set: function (labelProvider) {
|
|
179
|
+
var _a;
|
|
180
|
+
// TODO This duplicates logic in AxisCore.
|
|
181
|
+
// Probably we could consider proper generics used for the inheritance to omit the duplication
|
|
182
|
+
(_a = this.labelProviderProperty) === null || _a === void 0 ? void 0 : _a.detachedFromAxis();
|
|
177
183
|
this.labelProviderProperty = labelProvider;
|
|
178
184
|
this.notifyPropertyChanged(constants_1.PROPERTY.LABEL_PROVIDER);
|
|
179
185
|
},
|
|
@@ -437,21 +443,35 @@ var AxisBase2D = /** @class */ (function (_super) {
|
|
|
437
443
|
* Defines a position of the axis along the layout flow.
|
|
438
444
|
*/
|
|
439
445
|
get: function () {
|
|
440
|
-
|
|
446
|
+
var _a;
|
|
447
|
+
return (_a = this.offsetOverrideProperty) !== null && _a !== void 0 ? _a : this.offsetProperty;
|
|
441
448
|
},
|
|
442
449
|
/**
|
|
443
|
-
*
|
|
450
|
+
* Called internally by layout strategies when switching between stacked and non-stacked axes.
|
|
451
|
+
* If you want to set a manual offset, call {@link overrideOffset}
|
|
444
452
|
*/
|
|
445
453
|
set: function (value) {
|
|
446
454
|
if (this.offsetProperty !== value) {
|
|
447
|
-
this.clearCoordCalcCache();
|
|
448
455
|
this.offsetProperty = value;
|
|
449
|
-
this.
|
|
456
|
+
if (this.offsetOverrideProperty === undefined) {
|
|
457
|
+
this.clearCoordCalcCache();
|
|
458
|
+
this.notifyPropertyChanged(constants_1.PROPERTY.OFFSET);
|
|
459
|
+
}
|
|
450
460
|
}
|
|
451
461
|
},
|
|
452
462
|
enumerable: false,
|
|
453
463
|
configurable: true
|
|
454
464
|
});
|
|
465
|
+
/**
|
|
466
|
+
* set an offset value that overrides the one used by layout calculation
|
|
467
|
+
*/
|
|
468
|
+
AxisBase2D.prototype.overrideOffset = function (value) {
|
|
469
|
+
if (this.offsetOverrideProperty !== value) {
|
|
470
|
+
this.offsetOverrideProperty = value;
|
|
471
|
+
this.clearCoordCalcCache();
|
|
472
|
+
this.notifyPropertyChanged(constants_1.PROPERTY.OFFSET);
|
|
473
|
+
}
|
|
474
|
+
};
|
|
455
475
|
Object.defineProperty(AxisBase2D.prototype, "isVerticalChart", {
|
|
456
476
|
/**
|
|
457
477
|
* Gets whether the parent {@link SciChartSurface} is a vertical chart, when the XAxis is on the Left or Right,
|
|
@@ -573,6 +593,14 @@ var AxisBase2D = /** @class */ (function (_super) {
|
|
|
573
593
|
this.setIsXAxis(isXAxis);
|
|
574
594
|
this.isPrimaryAxisProperty = isPrimaryAxis;
|
|
575
595
|
};
|
|
596
|
+
/**
|
|
597
|
+
* Called when the {@link AxisBase2D} is detached from an {@link SciChartSurface}
|
|
598
|
+
*/
|
|
599
|
+
AxisBase2D.prototype.onDetach = function () {
|
|
600
|
+
this.parentSurface = undefined;
|
|
601
|
+
this.isPrimaryAxisProperty = false;
|
|
602
|
+
this.invalidateParentCallback = undefined;
|
|
603
|
+
};
|
|
576
604
|
/**
|
|
577
605
|
* Called internally - measures the axis as part of the layout phase
|
|
578
606
|
*/
|
|
@@ -899,7 +927,6 @@ var AxisBase2D = /** @class */ (function (_super) {
|
|
|
899
927
|
* @inheritDoc
|
|
900
928
|
*/
|
|
901
929
|
AxisBase2D.prototype.delete = function () {
|
|
902
|
-
_super.prototype.delete.call(this);
|
|
903
930
|
this.penCacheForMajorGridLines = (0, Deleter_1.deleteSafe)(this.penCacheForMajorGridLines);
|
|
904
931
|
this.penCacheForMinorGridLines = (0, Deleter_1.deleteSafe)(this.penCacheForMinorGridLines);
|
|
905
932
|
this.penCacheForMajorTickLines = (0, Deleter_1.deleteSafe)(this.penCacheForMajorTickLines);
|
|
@@ -907,8 +934,11 @@ var AxisBase2D = /** @class */ (function (_super) {
|
|
|
907
934
|
this.solidBrushCacheBorder = (0, Deleter_1.deleteSafe)(this.solidBrushCacheBorder);
|
|
908
935
|
this.solidBrushCacheAxisBands = (0, Deleter_1.deleteSafe)(this.solidBrushCacheAxisBands);
|
|
909
936
|
this.solidBrushCacheAxisBackground = (0, Deleter_1.deleteSafe)(this.solidBrushCacheAxisBackground);
|
|
910
|
-
this.labelProviderProperty = (0, Deleter_1.deleteSafe)(this.labelProvider);
|
|
911
937
|
this.axisRendererProperty = (0, Deleter_1.deleteSafe)(this.axisRenderer);
|
|
938
|
+
this.axisTitleRenderer = (0, Deleter_1.deleteSafe)(this.axisTitleRenderer);
|
|
939
|
+
this.webAssemblyContext2D = undefined;
|
|
940
|
+
this.parentSurface = undefined;
|
|
941
|
+
_super.prototype.delete.call(this);
|
|
912
942
|
};
|
|
913
943
|
AxisBase2D.prototype.toJSON = function () {
|
|
914
944
|
var options = {
|
|
@@ -1192,11 +1222,17 @@ var AxisBase2D = /** @class */ (function (_super) {
|
|
|
1192
1222
|
AxisBase2D.prototype.applyVisibleRangeSizeLimit = function (visibleRange) {
|
|
1193
1223
|
if (!visibleRange)
|
|
1194
1224
|
return undefined;
|
|
1225
|
+
var minDiff = Math.abs(visibleRange.min) / Math.pow(10, 14);
|
|
1226
|
+
// Prevent axis becoming invalid due to loss of precision
|
|
1227
|
+
var currentSize = visibleRange.diff;
|
|
1228
|
+
if (currentSize < minDiff) {
|
|
1229
|
+
var middleValue = visibleRange.min + currentSize / 2;
|
|
1230
|
+
return new NumberRange_1.NumberRange(middleValue - minDiff / 2, middleValue + minDiff / 2);
|
|
1231
|
+
}
|
|
1195
1232
|
if (!this.visibleRangeSizeLimit)
|
|
1196
1233
|
return visibleRange;
|
|
1197
|
-
var currentSize = visibleRange.max - visibleRange.min;
|
|
1198
1234
|
if (currentSize < 0) {
|
|
1199
|
-
console.warn("Can not apply
|
|
1235
|
+
console.warn("Can not apply visibleRangeSizeLimit for the ".concat(this.isXAxis ? "xAxis" : "yAxis", " with ID ").concat(this.id));
|
|
1200
1236
|
return visibleRange;
|
|
1201
1237
|
}
|
|
1202
1238
|
else {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { TEasingFn } from "../../../Core/Animations/EasingFunctions";
|
|
2
2
|
import { IGenericAnimation } from "../../../Core/Animations/GenericAnimation";
|
|
3
|
+
import { DeletableEntity } from "../../../Core/DeletableEntity";
|
|
3
4
|
import { EventHandler } from "../../../Core/EventHandler";
|
|
4
5
|
import { IDeletable } from "../../../Core/IDeletable";
|
|
5
6
|
import { NumberRange } from "../../../Core/NumberRange";
|
|
@@ -123,7 +124,7 @@ export interface IAxisParams {
|
|
|
123
124
|
* Set axis on the {@link SciChartSurface.xAxes} or {@link SciChartSurface.yAxes} collections in 2D Charts.
|
|
124
125
|
* Set axis on the {@link SciChart3DSurface.xAxis}, {@link SciChart3DSurface.yAxis} or {@link SciChart3DSurface.zAxis} collections in 3D Charts.
|
|
125
126
|
*/
|
|
126
|
-
export declare abstract class AxisCore implements IAxisParams, IDeletable {
|
|
127
|
+
export declare abstract class AxisCore extends DeletableEntity implements IAxisParams, IDeletable {
|
|
127
128
|
/**
|
|
128
129
|
* The Default {@link AxisCore.id}
|
|
129
130
|
* @description
|
|
@@ -773,6 +774,8 @@ export declare abstract class AxisCore implements IAxisParams, IDeletable {
|
|
|
773
774
|
* @param range The range
|
|
774
775
|
*/
|
|
775
776
|
isValidRange(range: NumberRange): boolean;
|
|
777
|
+
get isVerticalChart(): boolean;
|
|
778
|
+
get isHorizontalAxis(): boolean;
|
|
776
779
|
/**
|
|
777
780
|
* Creates new {@link CoordinateCalculatorBase} instance. Valid for this render-pass only, the coordinate-calculator
|
|
778
781
|
* allows you to transform between pixel and data coordinates (and vice versa)
|
|
@@ -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
|
var __assign = (this && this.__assign) || function () {
|
|
3
18
|
__assign = Object.assign || function(t) {
|
|
4
19
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -12,6 +27,7 @@ var __assign = (this && this.__assign) || function () {
|
|
|
12
27
|
};
|
|
13
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
29
|
exports.AxisCore = void 0;
|
|
30
|
+
var DeletableEntity_1 = require("../../../Core/DeletableEntity");
|
|
15
31
|
var Deleter_1 = require("../../../Core/Deleter");
|
|
16
32
|
var EventHandler_1 = require("../../../Core/EventHandler");
|
|
17
33
|
var Guard_1 = require("../../../Core/Guard");
|
|
@@ -36,78 +52,81 @@ var VisibleRangeChangedArgs_1 = require("./VisibleRangeChangedArgs");
|
|
|
36
52
|
* Set axis on the {@link SciChartSurface.xAxes} or {@link SciChartSurface.yAxes} collections in 2D Charts.
|
|
37
53
|
* Set axis on the {@link SciChart3DSurface.xAxis}, {@link SciChart3DSurface.yAxis} or {@link SciChart3DSurface.zAxis} collections in 3D Charts.
|
|
38
54
|
*/
|
|
39
|
-
var AxisCore = /** @class */ (function () {
|
|
55
|
+
var AxisCore = /** @class */ (function (_super) {
|
|
56
|
+
__extends(AxisCore, _super);
|
|
40
57
|
/**
|
|
41
58
|
* Creates an instance of an {@link AxisCore}
|
|
42
59
|
* @param options Optional parameters of type {@link IAxisCoreOptions} used to define properties at instantiation time
|
|
43
60
|
*/
|
|
44
61
|
function AxisCore(options) {
|
|
62
|
+
var _this = this;
|
|
45
63
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z;
|
|
64
|
+
_this = _super.call(this) || this;
|
|
46
65
|
/**
|
|
47
66
|
* An {@link EventHandler} which fires a callback when the {@link AxisCore.visibleRange} property changes.
|
|
48
67
|
* @desc
|
|
49
68
|
*/
|
|
50
|
-
|
|
69
|
+
_this.visibleRangeChanged = new EventHandler_1.EventHandler();
|
|
51
70
|
/** A flag to indicate if measure has been called this frame. Properties updated after measure must trigger a redraw */
|
|
52
|
-
|
|
71
|
+
_this.isMeasured = false;
|
|
53
72
|
/** If the diff of the visibleRange is 0, this growby fraction will be applied */
|
|
54
|
-
|
|
73
|
+
_this.ZeroRangeGrowBy = 0.01;
|
|
55
74
|
/**
|
|
56
75
|
* Internal backing property for {@link AxisCore.id}. To fire {@link AxisCore.invalidateParentCallback}, set the public property
|
|
57
76
|
*/
|
|
58
|
-
|
|
77
|
+
_this.idProperty = AxisCore.DEFAULT_AXIS_ID;
|
|
59
78
|
/**
|
|
60
79
|
* Internal backing property for {@link AxisCore.isAxis}. To fire {@link AxisCore.invalidateParentCallback}, set the public property
|
|
61
80
|
*/
|
|
62
|
-
|
|
81
|
+
_this.isXAxisProperty = true;
|
|
63
82
|
/**
|
|
64
83
|
* Internal backing property for {@link AxisCore.minorsPerMajor}. To fire {@link AxisCore.invalidateParentCallback}, set the public property
|
|
65
84
|
*/
|
|
66
|
-
|
|
85
|
+
_this.minorsPerMajorProperty = 5;
|
|
67
86
|
/**
|
|
68
87
|
* Internal backing property for {@link AxisCore.drawMajorGridLines}. To fire {@link AxisCore.invalidateParentCallback}, set the public property
|
|
69
88
|
*/
|
|
70
|
-
|
|
89
|
+
_this.drawMajorGridLinesProperty = true;
|
|
71
90
|
/**
|
|
72
91
|
* Internal backing property for {@link AxisCore.drawMinorGridLines}. To fire {@link AxisCore.invalidateParentCallback}, set the public property
|
|
73
92
|
*/
|
|
74
|
-
|
|
93
|
+
_this.drawMinorGridLinesProperty = true;
|
|
75
94
|
/**
|
|
76
95
|
* Internal backing property for {@link AxisCore.drawMajorTickLines}. To fire {@link AxisCore.invalidateParentCallback}, set the public property
|
|
77
96
|
*/
|
|
78
|
-
|
|
97
|
+
_this.drawMajorTickLinesProperty = true;
|
|
79
98
|
/**
|
|
80
99
|
* Internal backing property for {@link AxisCore.drawMinorTickLines}. To fire {@link AxisCore.invalidateParentCallback}, set the public property
|
|
81
100
|
*/
|
|
82
|
-
|
|
101
|
+
_this.drawMinorTickLinesProperty = true;
|
|
83
102
|
/**
|
|
84
103
|
* Internal backing property for {@link AxisCore.drawMajorBands}. To fire {@link AxisCore.invalidateParentCallback}, set the public property
|
|
85
104
|
*/
|
|
86
|
-
|
|
105
|
+
_this.drawMajorBandsProperty = true;
|
|
87
106
|
/**
|
|
88
107
|
* Internal backing property for {@link AxisCore.drawLabels}. To fire {@link AxisCore.invalidateParentCallback}, set the public property
|
|
89
108
|
*/
|
|
90
|
-
|
|
109
|
+
_this.drawLabelsProperty = true;
|
|
91
110
|
/**
|
|
92
111
|
* Internal backing property for {@link AxisCore.flippedCoordinates}. To fire {@link AxisCore.invalidateParentCallback}, set the public property
|
|
93
112
|
*/
|
|
94
|
-
|
|
113
|
+
_this.flippedCoordinatesProperty = false;
|
|
95
114
|
/**
|
|
96
115
|
* Internal backing property for {@link AxisCore.tickTextBrush}. To fire {@link AxisCore.invalidateParentCallback}, set the public property
|
|
97
116
|
*/
|
|
98
|
-
|
|
117
|
+
_this.tickTextBrushProperty = SciChartSurfaceBase_1.SciChartSurfaceBase.DEFAULT_THEME.tickTextBrush;
|
|
99
118
|
/**
|
|
100
119
|
* Internal backing property for {@link AxisCore.axisBandsFill}. To fire {@link AxisCore.invalidateParentCallback}, set the public property
|
|
101
120
|
*/
|
|
102
|
-
|
|
121
|
+
_this.axisBandsFillProperty = SciChartSurfaceBase_1.SciChartSurfaceBase.DEFAULT_THEME.axisBandsFill;
|
|
103
122
|
/**
|
|
104
123
|
* Internal backing property for {@link AxisCore.autoRange}. To fire {@link AxisCore.invalidateParentCallback}, set the public property
|
|
105
124
|
*/
|
|
106
|
-
|
|
125
|
+
_this.autoRangeProperty = AutoRange_1.EAutoRange.Once;
|
|
107
126
|
/**
|
|
108
127
|
* Internal backing property for {@link AxisCore.majorTickLineStyle}. To fire {@link AxisCore.invalidateParentCallback}, set the public property
|
|
109
128
|
*/
|
|
110
|
-
|
|
129
|
+
_this.majorTickLineStyleProperty = {
|
|
111
130
|
tickSize: 5,
|
|
112
131
|
strokeThickness: 1,
|
|
113
132
|
color: SciChartSurfaceBase_1.SciChartSurfaceBase.DEFAULT_THEME.majorGridLineBrush
|
|
@@ -115,7 +134,7 @@ var AxisCore = /** @class */ (function () {
|
|
|
115
134
|
/**
|
|
116
135
|
* Internal backing property for {@link AxisCore.minorTickLineStyle}. To fire {@link AxisCore.invalidateParentCallback}, set the public property
|
|
117
136
|
*/
|
|
118
|
-
|
|
137
|
+
_this.minorTickLineStyleProperty = {
|
|
119
138
|
tickSize: 3,
|
|
120
139
|
strokeThickness: 1,
|
|
121
140
|
color: SciChartSurfaceBase_1.SciChartSurfaceBase.DEFAULT_THEME.minorGridLineBrush
|
|
@@ -123,7 +142,7 @@ var AxisCore = /** @class */ (function () {
|
|
|
123
142
|
/**
|
|
124
143
|
* Internal backing property for {@link AxisCore.majorGridLineStyle}. To fire {@link AxisCore.invalidateParentCallback}, set the public property
|
|
125
144
|
*/
|
|
126
|
-
|
|
145
|
+
_this.majorGridLineStyleProperty = {
|
|
127
146
|
strokeThickness: 1,
|
|
128
147
|
color: SciChartSurfaceBase_1.SciChartSurfaceBase.DEFAULT_THEME.majorGridLineBrush,
|
|
129
148
|
strokeDashArray: undefined
|
|
@@ -131,7 +150,7 @@ var AxisCore = /** @class */ (function () {
|
|
|
131
150
|
/**
|
|
132
151
|
* Internal backing property for {@link AxisCore.minorGridLineStyle}. To fire {@link AxisCore.invalidateParentCallback}, set the public property
|
|
133
152
|
*/
|
|
134
|
-
|
|
153
|
+
_this.minorGridLineStyleProperty = {
|
|
135
154
|
strokeThickness: 1,
|
|
136
155
|
color: SciChartSurfaceBase_1.SciChartSurfaceBase.DEFAULT_THEME.minorGridLineBrush,
|
|
137
156
|
strokeDashArray: undefined
|
|
@@ -139,7 +158,7 @@ var AxisCore = /** @class */ (function () {
|
|
|
139
158
|
/**
|
|
140
159
|
* Internal backing property for {@link AxisCore.axisTitleStyle}. To fire {@link AxisCore.invalidateParentCallback}, set the public property
|
|
141
160
|
*/
|
|
142
|
-
|
|
161
|
+
_this.axisTitleStyleProperty = {
|
|
143
162
|
fontSize: 24,
|
|
144
163
|
fontFamily: "Arial",
|
|
145
164
|
color: SciChartSurfaceBase_1.SciChartSurfaceBase.DEFAULT_THEME.axisTitleColor,
|
|
@@ -151,43 +170,44 @@ var AxisCore = /** @class */ (function () {
|
|
|
151
170
|
/**
|
|
152
171
|
* Internal backing property for {@link AxisCore.isVisible}. To fire {@link AxisCore.invalidateParentCallback}, set the public property
|
|
153
172
|
*/
|
|
154
|
-
|
|
173
|
+
_this.isVisibleProperty = true;
|
|
155
174
|
/**
|
|
156
175
|
* Internal backing property for {@link AxisCore.autoTicks}. To fire {@link AxisCore.invalidateParentCallback}, set the public property
|
|
157
176
|
*/
|
|
158
|
-
|
|
177
|
+
_this.autoTicksProperty = true;
|
|
159
178
|
/**
|
|
160
179
|
* Internal backing property for {@link AxisCore.maxAutoTicks}. To fire {@link AxisCore.invalidateParentCallback}, set the public property
|
|
161
180
|
*/
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
181
|
+
_this.maxAutoTicksProperty = 10;
|
|
182
|
+
_this.defaultVisibleRange = new NumberRange_1.NumberRange(0, 10);
|
|
183
|
+
_this.allowFastMathProperty = false;
|
|
184
|
+
_this.visibleRange = (options === null || options === void 0 ? void 0 : options.visibleRange) || _this.defaultVisibleRange;
|
|
185
|
+
_this.id = (_a = options === null || options === void 0 ? void 0 : options.id) !== null && _a !== void 0 ? _a : _this.id;
|
|
186
|
+
_this.growBy = (_b = options === null || options === void 0 ? void 0 : options.growBy) !== null && _b !== void 0 ? _b : _this.growBy;
|
|
187
|
+
_this.autoRange = (_c = options === null || options === void 0 ? void 0 : options.autoRange) !== null && _c !== void 0 ? _c : _this.autoRange;
|
|
188
|
+
_this.isVisible = (_d = options === null || options === void 0 ? void 0 : options.isVisible) !== null && _d !== void 0 ? _d : _this.isVisible;
|
|
189
|
+
_this.axisTitle = (_e = options === null || options === void 0 ? void 0 : options.axisTitle) !== null && _e !== void 0 ? _e : _this.axisTitle;
|
|
190
|
+
_this.axisTitleStyle = (_f = options === null || options === void 0 ? void 0 : options.axisTitleStyle) !== null && _f !== void 0 ? _f : _this.axisTitleStyle;
|
|
191
|
+
_this.allowFastMath = (_g = options === null || options === void 0 ? void 0 : options.allowFastMath) !== null && _g !== void 0 ? _g : _this.allowFastMathProperty;
|
|
192
|
+
_this.autoTicksProperty = (_h = options === null || options === void 0 ? void 0 : options.autoTicks) !== null && _h !== void 0 ? _h : _this.autoTicksProperty;
|
|
193
|
+
_this.maxAutoTicksProperty = (_j = options === null || options === void 0 ? void 0 : options.maxAutoTicks) !== null && _j !== void 0 ? _j : _this.maxAutoTicksProperty;
|
|
194
|
+
_this.minorsPerMajorProperty = (_k = options === null || options === void 0 ? void 0 : options.minorsPerMajor) !== null && _k !== void 0 ? _k : _this.minorsPerMajorProperty;
|
|
195
|
+
_this.majorDeltaProperty = (_l = options === null || options === void 0 ? void 0 : options.majorDelta) !== null && _l !== void 0 ? _l : _this.majorDeltaProperty;
|
|
196
|
+
_this.minorDeltaProperty = (_m = options === null || options === void 0 ? void 0 : options.minorDelta) !== null && _m !== void 0 ? _m : _this.minorDeltaProperty;
|
|
197
|
+
_this.drawLabelsProperty = (_o = options === null || options === void 0 ? void 0 : options.drawLabels) !== null && _o !== void 0 ? _o : _this.drawLabelsProperty;
|
|
198
|
+
_this.drawMajorTickLinesProperty = (_p = options === null || options === void 0 ? void 0 : options.drawMajorTickLines) !== null && _p !== void 0 ? _p : _this.drawMajorTickLinesProperty;
|
|
199
|
+
_this.drawMinorTickLinesProperty = (_q = options === null || options === void 0 ? void 0 : options.drawMinorTickLines) !== null && _q !== void 0 ? _q : _this.drawMinorTickLinesProperty;
|
|
200
|
+
_this.drawMinorGridLinesProperty = (_r = options === null || options === void 0 ? void 0 : options.drawMinorGridLines) !== null && _r !== void 0 ? _r : _this.drawMinorGridLinesProperty;
|
|
201
|
+
_this.drawMajorGridLinesProperty = (_s = options === null || options === void 0 ? void 0 : options.drawMajorGridLines) !== null && _s !== void 0 ? _s : _this.drawMajorGridLinesProperty;
|
|
202
|
+
_this.majorGridLineStyleProperty = (_t = options === null || options === void 0 ? void 0 : options.majorGridLineStyle) !== null && _t !== void 0 ? _t : _this.majorGridLineStyleProperty;
|
|
203
|
+
_this.minorGridLineStyleProperty = (_u = options === null || options === void 0 ? void 0 : options.minorGridLineStyle) !== null && _u !== void 0 ? _u : _this.minorGridLineStyleProperty;
|
|
204
|
+
_this.majorTickLineStyleProperty = (_v = options === null || options === void 0 ? void 0 : options.majorTickLineStyle) !== null && _v !== void 0 ? _v : _this.majorTickLineStyleProperty;
|
|
205
|
+
_this.minorTickLineStyleProperty = (_w = options === null || options === void 0 ? void 0 : options.minorTickLineStyle) !== null && _w !== void 0 ? _w : _this.minorTickLineStyleProperty;
|
|
206
|
+
_this.drawMajorBandsProperty = (_x = options === null || options === void 0 ? void 0 : options.drawMajorBands) !== null && _x !== void 0 ? _x : _this.drawMajorBandsProperty;
|
|
207
|
+
_this.axisBandsFillProperty = (_y = options === null || options === void 0 ? void 0 : options.axisBandsFill) !== null && _y !== void 0 ? _y : _this.axisBandsFillProperty;
|
|
208
|
+
_this.flippedCoordinatesProperty = (_z = options === null || options === void 0 ? void 0 : options.flippedCoordinates) !== null && _z !== void 0 ? _z : _this.flippedCoordinatesProperty;
|
|
209
|
+
_this.getCurrentCoordinateCalculator = _this.getCurrentCoordinateCalculator.bind(_this);
|
|
210
|
+
return _this;
|
|
191
211
|
}
|
|
192
212
|
Object.defineProperty(AxisCore.prototype, "isCategoryAxis", {
|
|
193
213
|
/**
|
|
@@ -864,6 +884,8 @@ var AxisCore = /** @class */ (function () {
|
|
|
864
884
|
* @param tickProvider
|
|
865
885
|
*/
|
|
866
886
|
set: function (tickProvider) {
|
|
887
|
+
var _a;
|
|
888
|
+
(_a = this.tickProviderProperty) === null || _a === void 0 ? void 0 : _a.detachedFromAxis();
|
|
867
889
|
this.tickProviderProperty = tickProvider;
|
|
868
890
|
this.notifyPropertyChanged(constants_1.PROPERTY.TICK_PROVIDER);
|
|
869
891
|
},
|
|
@@ -881,6 +903,8 @@ var AxisCore = /** @class */ (function () {
|
|
|
881
903
|
* Gets or sets a {@link LabelProvider} - a class which is responsible for formatting axis labels and cursor labels from numeric values
|
|
882
904
|
*/
|
|
883
905
|
set: function (labelProvider) {
|
|
906
|
+
var _a;
|
|
907
|
+
(_a = this.labelProviderProperty) === null || _a === void 0 ? void 0 : _a.detachedFromAxis();
|
|
884
908
|
this.labelProviderProperty = labelProvider;
|
|
885
909
|
this.notifyPropertyChanged(constants_1.PROPERTY.LABEL_PROVIDER);
|
|
886
910
|
},
|
|
@@ -900,6 +924,8 @@ var AxisCore = /** @class */ (function () {
|
|
|
900
924
|
* which are used for gridline spacing
|
|
901
925
|
*/
|
|
902
926
|
set: function (deltaCalculator) {
|
|
927
|
+
var _a;
|
|
928
|
+
(_a = this.deltaCalculator) === null || _a === void 0 ? void 0 : _a.detachedFromAxis();
|
|
903
929
|
this.deltaCalculatorProperty = deltaCalculator;
|
|
904
930
|
this.notifyPropertyChanged(constants_1.PROPERTY.DELTA_CALCULATOR);
|
|
905
931
|
},
|
|
@@ -917,6 +943,8 @@ var AxisCore = /** @class */ (function () {
|
|
|
917
943
|
* Gets or sets a {@link TickCoordinatesProvider} - a class which is responsible for converting tick values to pixel coordinates
|
|
918
944
|
*/
|
|
919
945
|
set: function (tickCoordinatesProvider) {
|
|
946
|
+
var _a;
|
|
947
|
+
(_a = this.tickCoordinatesProviderProperty) === null || _a === void 0 ? void 0 : _a.detachedFromAxis();
|
|
920
948
|
this.tickCoordinatesProviderProperty = tickCoordinatesProvider;
|
|
921
949
|
this.notifyPropertyChanged(constants_1.PROPERTY.TICK_COORDINATES_CALCULATOR);
|
|
922
950
|
},
|
|
@@ -984,6 +1012,10 @@ var AxisCore = /** @class */ (function () {
|
|
|
984
1012
|
* @inheritDoc
|
|
985
1013
|
*/
|
|
986
1014
|
AxisCore.prototype.delete = function () {
|
|
1015
|
+
this.deltaCalculator = undefined;
|
|
1016
|
+
this.tickProvider = undefined;
|
|
1017
|
+
this.tickCoordinatesProvider = undefined;
|
|
1018
|
+
this.labelProviderProperty = (0, Deleter_1.deleteSafe)(this.labelProvider);
|
|
987
1019
|
this.coordCalcCache = (0, Deleter_1.deleteSafe)(this.coordCalcCache);
|
|
988
1020
|
};
|
|
989
1021
|
/**
|
|
@@ -994,6 +1026,20 @@ var AxisCore = /** @class */ (function () {
|
|
|
994
1026
|
var isInvalid = !range || !range.isDefined() || range.min > range.max;
|
|
995
1027
|
return !isInvalid;
|
|
996
1028
|
};
|
|
1029
|
+
Object.defineProperty(AxisCore.prototype, "isVerticalChart", {
|
|
1030
|
+
get: function () {
|
|
1031
|
+
return false;
|
|
1032
|
+
},
|
|
1033
|
+
enumerable: false,
|
|
1034
|
+
configurable: true
|
|
1035
|
+
});
|
|
1036
|
+
Object.defineProperty(AxisCore.prototype, "isHorizontalAxis", {
|
|
1037
|
+
get: function () {
|
|
1038
|
+
return this.isXAxis;
|
|
1039
|
+
},
|
|
1040
|
+
enumerable: false,
|
|
1041
|
+
configurable: true
|
|
1042
|
+
});
|
|
997
1043
|
/**
|
|
998
1044
|
* SET INTERNALLY. Sets whether this axis is an XAxis or not
|
|
999
1045
|
* @remarks
|
|
@@ -1054,5 +1100,5 @@ var AxisCore = /** @class */ (function () {
|
|
|
1054
1100
|
*/
|
|
1055
1101
|
AxisCore.DEFAULT_AXIS_ID = "DefaultAxisId";
|
|
1056
1102
|
return AxisCore;
|
|
1057
|
-
}());
|
|
1103
|
+
}(DeletableEntity_1.DeletableEntity));
|
|
1058
1104
|
exports.AxisCore = AxisCore;
|