scichart 3.1.348 → 3.2.434
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Builder/buildSurface.d.ts +2 -2
- package/Builder/chartBuilder.d.ts +4 -4
- package/Charting/ChartModifiers/ChartModifierBase.d.ts +19 -5
- package/Charting/ChartModifiers/ChartModifierBase.js +64 -7
- package/Charting/ChartModifiers/CursorModifier.d.ts +9 -9
- package/Charting/ChartModifiers/CursorModifier.js +13 -1
- package/Charting/ChartModifiers/DataPointSelectionModifier.d.ts +1 -0
- package/Charting/ChartModifiers/DataPointSelectionModifier.js +6 -1
- package/Charting/ChartModifiers/LegendModifier.d.ts +10 -25
- package/Charting/ChartModifiers/LegendModifier.js +10 -20
- package/Charting/ChartModifiers/MouseWheelZoomModifier.js +20 -11
- package/Charting/ChartModifiers/OverviewRangeSelectionModifier.d.ts +5 -5
- package/Charting/ChartModifiers/PinchZoomModifier.d.ts +38 -8
- package/Charting/ChartModifiers/PinchZoomModifier.js +103 -40
- package/Charting/ChartModifiers/RolloverModifier.js +10 -3
- package/Charting/ChartModifiers/RubberBandXyZoomModifier.d.ts +4 -7
- package/Charting/ChartModifiers/RubberBandXyZoomModifier.js +6 -8
- package/Charting/ChartModifiers/SeriesSelectionModifier.js +39 -29
- package/Charting/ChartModifiers/XAxisDragModifier.d.ts +1 -1
- package/Charting/ChartModifiers/XAxisDragModifier.js +3 -3
- package/Charting/ChartModifiers/YAxisDragModifier.d.ts +2 -4
- package/Charting/ChartModifiers/YAxisDragModifier.js +7 -8
- package/Charting/ChartModifiers/ZoomPanModifier.d.ts +13 -38
- package/Charting/ChartModifiers/ZoomPanModifier.js +54 -99
- package/Charting/Drawing/BaseCache.d.ts +2 -1
- package/Charting/Drawing/BaseCache.js +45 -7
- package/Charting/Drawing/RenderSurface.d.ts +1 -0
- package/Charting/Drawing/RenderSurface.js +5 -1
- package/Charting/Drawing/SolidBrushCache.d.ts +2 -1
- package/Charting/Drawing/SolidBrushCache.js +23 -3
- package/Charting/Drawing/WebGlBrush.d.ts +2 -1
- package/Charting/Drawing/WebGlBrush.js +22 -3
- package/Charting/Drawing/WebGlPen.d.ts +2 -1
- package/Charting/Drawing/WebGlPen.js +23 -4
- package/Charting/Drawing/WebGlRenderContext2D.d.ts +4 -3
- package/Charting/Drawing/WebGlRenderContext2D.js +26 -7
- package/Charting/Model/BaseDataSeries.d.ts +67 -2
- package/Charting/Model/BaseDataSeries.js +193 -42
- package/Charting/Model/BaseHeatmapDataSeries.js +1 -1
- package/Charting/Model/ChartData/SeriesInfo.d.ts +16 -0
- package/Charting/Model/ChartData/SeriesInfo.js +7 -0
- package/Charting/Model/ChartData/XyzSeriesInfo.d.ts +8 -0
- package/Charting/Model/ChartData/XyzSeriesInfo.js +36 -0
- package/Charting/Model/DoubleVectorProvider.d.ts +19 -0
- package/Charting/Model/DoubleVectorProvider.js +95 -0
- package/Charting/Model/Filters/HlcFilterBase.d.ts +6 -2
- package/Charting/Model/Filters/HlcFilterBase.js +17 -1
- package/Charting/Model/Filters/IFilterBase.d.ts +24 -0
- package/Charting/Model/Filters/IFilterBase.js +2 -0
- package/Charting/Model/Filters/OhlcFilterBase.d.ts +6 -2
- package/Charting/Model/Filters/OhlcFilterBase.js +17 -1
- package/Charting/Model/Filters/XyFilterBase.d.ts +6 -5
- package/Charting/Model/Filters/XyFilterBase.js +17 -1
- package/Charting/Model/Filters/XyyFilterBase.d.ts +6 -2
- package/Charting/Model/Filters/XyyFilterBase.js +17 -1
- package/Charting/Model/Filters/XyzFilterBase.d.ts +6 -2
- package/Charting/Model/Filters/XyzFilterBase.js +17 -1
- package/Charting/Model/HlcDataSeries.d.ts +3 -0
- package/Charting/Model/HlcDataSeries.js +44 -15
- package/Charting/Model/IDataSeries.d.ts +23 -0
- package/Charting/Model/NonUniformHeatmapDataSeries.js +2 -0
- package/Charting/Model/OhlcDataSeries.d.ts +3 -0
- package/Charting/Model/OhlcDataSeries.js +56 -24
- package/Charting/Model/PointSeries/BasePointSeriesResampled.d.ts +4 -5
- package/Charting/Model/PointSeries/BasePointSeriesResampled.js +29 -21
- package/Charting/Model/PointSeries/BasePointSeriesWrapped.d.ts +2 -0
- package/Charting/Model/PointSeries/BasePointSeriesWrapped.js +2 -0
- package/Charting/Model/PointSeries/IPointSeries.d.ts +2 -1
- package/Charting/Model/PointSeries/OhlcPointSeriesResampled.js +1 -1
- package/Charting/Model/PointSeries/XyPointSeriesWrapped.d.ts +2 -1
- package/Charting/Model/PointSeries/XyPointSeriesWrapped.js +2 -2
- package/Charting/Model/PointSeries/XyyPointSeriesResampled.js +1 -1
- package/Charting/Model/UniformHeatmapDataSeries.d.ts +31 -11
- package/Charting/Model/UniformHeatmapDataSeries.js +72 -4
- package/Charting/Model/XyDataSeries.d.ts +0 -8
- package/Charting/Model/XyDataSeries.js +21 -5
- package/Charting/Model/XyTextDataSeries.d.ts +2 -0
- package/Charting/Model/XyTextDataSeries.js +35 -4
- package/Charting/Model/XyyDataSeries.d.ts +2 -0
- package/Charting/Model/XyyDataSeries.js +50 -26
- package/Charting/Model/XyzDataSeries.d.ts +3 -0
- package/Charting/Model/XyzDataSeries.js +36 -10
- package/Charting/Numerics/CoordinateCalculators/CategoryCoordinateCalculator.d.ts +3 -5
- package/Charting/Numerics/CoordinateCalculators/CategoryCoordinateCalculator.js +5 -7
- package/Charting/Numerics/CoordinateCalculators/CoordinateCalculatorBase.d.ts +2 -1
- package/Charting/Numerics/CoordinateCalculators/CoordinateCalculatorBase.js +29 -9
- package/Charting/Numerics/CoordinateCalculators/FlippedCategoryCoordinateCalculator.d.ts +3 -5
- package/Charting/Numerics/CoordinateCalculators/FlippedCategoryCoordinateCalculator.js +5 -7
- package/Charting/Numerics/Resamplers/ExtremeResamplerHelper.d.ts +14 -10
- package/Charting/Numerics/Resamplers/ExtremeResamplerHelper.js +105 -69
- package/Charting/Numerics/Resamplers/ResamplingParams.d.ts +4 -2
- package/Charting/Numerics/Resamplers/ResamplingParams.js +12 -7
- package/Charting/Numerics/TickCoordinateProviders/TickCoordinatesProvider.d.ts +5 -0
- package/Charting/Numerics/TickCoordinateProviders/TickCoordinatesProvider.js +7 -0
- package/Charting/Numerics/TickProviders/NumericTickProvider.js +3 -4
- package/Charting/Numerics/TickProviders/TickProvider.d.ts +5 -0
- package/Charting/Numerics/TickProviders/TickProvider.js +7 -0
- package/Charting/Services/SciChartRenderer.js +15 -5
- package/Charting/Services/TitleRenderer.d.ts +2 -1
- package/Charting/Services/TitleRenderer.js +35 -14
- package/Charting/Visuals/Annotations/AdornerLayer.d.ts +1 -1
- package/Charting/Visuals/Annotations/AnnotationBase.d.ts +6 -6
- package/Charting/Visuals/Annotations/AnnotationBase.js +81 -61
- package/Charting/Visuals/Annotations/CursorTooltipSvgAnnotation.js +4 -0
- package/Charting/Visuals/Annotations/IAnnotation.d.ts +9 -4
- package/Charting/Visuals/Annotations/IAnnotation.js +6 -0
- package/Charting/Visuals/Annotations/LineAnnotation.js +3 -1
- package/Charting/Visuals/Annotations/NativeTextAnnotation.js +4 -0
- package/Charting/Visuals/Annotations/RenderContextAnnotationBase.d.ts +5 -0
- package/Charting/Visuals/Annotations/RenderContextAnnotationBase.js +16 -0
- package/Charting/Visuals/Annotations/RolloverTooltipSvgAnnotation.js +6 -0
- package/Charting/Visuals/Annotations/constants.d.ts +1 -0
- package/Charting/Visuals/Annotations/constants.js +1 -0
- package/Charting/Visuals/Axis/AxisBase2D.d.ts +23 -8
- package/Charting/Visuals/Axis/AxisBase2D.js +46 -10
- package/Charting/Visuals/Axis/AxisCore.d.ts +6 -3
- package/Charting/Visuals/Axis/AxisCore.js +100 -54
- package/Charting/Visuals/Axis/AxisRenderer.d.ts +2 -1
- package/Charting/Visuals/Axis/AxisRenderer.js +40 -16
- package/Charting/Visuals/Axis/AxisTitleRenderer.d.ts +1 -0
- package/Charting/Visuals/Axis/AxisTitleRenderer.js +4 -0
- package/Charting/Visuals/Axis/CategoryAxisBase.js +4 -4
- package/Charting/Visuals/Axis/DeltaCalculator/DateTimeDeltaCalculator.js +14 -9
- package/Charting/Visuals/Axis/DeltaCalculator/DeltaCalculator.d.ts +5 -0
- package/Charting/Visuals/Axis/DeltaCalculator/DeltaCalculator.js +7 -0
- package/Charting/Visuals/Axis/LabelProvider/LabelCache.d.ts +2 -2
- package/Charting/Visuals/Axis/LabelProvider/LabelCache.js +8 -1
- package/Charting/Visuals/Axis/LabelProvider/LabelProvider.d.ts +7 -1
- package/Charting/Visuals/Axis/LabelProvider/LabelProvider.js +34 -8
- package/Charting/Visuals/Axis/LabelProvider/LabelProviderBase2D.d.ts +4 -2
- package/Charting/Visuals/Axis/LabelProvider/LabelProviderBase2D.js +8 -2
- package/Charting/Visuals/Axis/LabelProvider/PieLabelProvider.d.ts +1 -0
- package/Charting/Visuals/Axis/LabelProvider/PieLabelProvider.js +1 -0
- package/Charting/Visuals/HeatmapLegend.d.ts +3 -2
- package/Charting/Visuals/HeatmapLegend.js +33 -12
- package/Charting/Visuals/Helpers/NativeObject.d.ts +8 -5
- package/Charting/Visuals/Helpers/NativeObject.js +42 -21
- package/Charting/Visuals/Helpers/drawLabel.js +3 -1
- package/Charting/Visuals/I2DSurfaceOptions.d.ts +0 -15
- package/Charting/Visuals/Legend/ManualLegend.d.ts +56 -0
- package/Charting/Visuals/Legend/ManualLegend.js +138 -0
- package/Charting/Visuals/Legend/SciChartLegend.js +4 -3
- package/Charting/Visuals/Legend/SciChartLegendBase.d.ts +65 -4
- package/Charting/Visuals/Legend/SciChartLegendBase.js +111 -23
- package/Charting/Visuals/Legend/SciChartPieLegend.js +1 -1
- package/Charting/Visuals/PointMarkers/BasePointMarker.d.ts +13 -1
- package/Charting/Visuals/PointMarkers/BasePointMarker.js +77 -19
- package/Charting/Visuals/PointMarkers/Constants.d.ts +2 -1
- package/Charting/Visuals/PointMarkers/Constants.js +1 -0
- package/Charting/Visuals/PointMarkers/IPointMarker.d.ts +2 -0
- package/Charting/Visuals/RenderableSeries/Animations/SeriesAnimation.js +4 -1
- package/Charting/Visuals/RenderableSeries/Animations/animationHelpers.d.ts +1 -1
- package/Charting/Visuals/RenderableSeries/BaseBandRenderableSeries.js +8 -7
- package/Charting/Visuals/RenderableSeries/BaseHeatmapRenderableSeries.d.ts +1 -0
- package/Charting/Visuals/RenderableSeries/BaseHeatmapRenderableSeries.js +5 -0
- package/Charting/Visuals/RenderableSeries/BaseOhlcRenderableSeries.js +10 -9
- package/Charting/Visuals/RenderableSeries/BaseRenderableSeries.d.ts +3 -2
- package/Charting/Visuals/RenderableSeries/BaseRenderableSeries.js +101 -69
- package/Charting/Visuals/RenderableSeries/BaseStackedCollection.js +18 -4
- package/Charting/Visuals/RenderableSeries/BaseStackedRenderableSeries.js +12 -3
- package/Charting/Visuals/RenderableSeries/DataLabels/BaseDataLabelProvider.d.ts +2 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/BaseDataLabelProvider.js +5 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/DataLabelProvider.js +6 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/DataLabelState.d.ts +1 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/DataLabelState.js +18 -5
- package/Charting/Visuals/RenderableSeries/DataLabels/NonUniformHeatmapDataLabelProvider.js +0 -1
- package/Charting/Visuals/RenderableSeries/DataLabels/TextDataLabelProvider.js +8 -2
- package/Charting/Visuals/RenderableSeries/DrawingProviders/BandSeriesDrawingProvider.d.ts +1 -0
- package/Charting/Visuals/RenderableSeries/DrawingProviders/BandSeriesDrawingProvider.js +35 -16
- package/Charting/Visuals/RenderableSeries/DrawingProviders/BaseSeriesDrawingProvider.d.ts +5 -4
- package/Charting/Visuals/RenderableSeries/DrawingProviders/BaseSeriesDrawingProvider.js +70 -33
- package/Charting/Visuals/RenderableSeries/DrawingProviders/BubbleSeriesDrawingProvider.d.ts +1 -0
- package/Charting/Visuals/RenderableSeries/DrawingProviders/BubbleSeriesDrawingProvider.js +30 -9
- package/Charting/Visuals/RenderableSeries/DrawingProviders/ColumnSeriesDrawingProvider.d.ts +1 -0
- package/Charting/Visuals/RenderableSeries/DrawingProviders/ColumnSeriesDrawingProvider.js +37 -16
- package/Charting/Visuals/RenderableSeries/DrawingProviders/HeatmapHelpers.d.ts +47 -0
- package/Charting/Visuals/RenderableSeries/DrawingProviders/HeatmapHelpers.js +258 -0
- package/Charting/Visuals/RenderableSeries/DrawingProviders/LineSeriesDrawingProvider.js +26 -2
- package/Charting/Visuals/RenderableSeries/DrawingProviders/MountainSeriesDrawingProvider.d.ts +1 -0
- package/Charting/Visuals/RenderableSeries/DrawingProviders/MountainSeriesDrawingProvider.js +34 -15
- package/Charting/Visuals/RenderableSeries/DrawingProviders/NonUniformHeatmapDrawingProvider.js +5 -230
- package/Charting/Visuals/RenderableSeries/DrawingProviders/OhlcSeriesDrawingProvider.d.ts +1 -0
- package/Charting/Visuals/RenderableSeries/DrawingProviders/OhlcSeriesDrawingProvider.js +62 -37
- package/Charting/Visuals/RenderableSeries/DrawingProviders/PointMarkerDrawingProvider.js +30 -3
- package/Charting/Visuals/RenderableSeries/DrawingProviders/UniformHeatmapDrawingProvider.d.ts +1 -0
- package/Charting/Visuals/RenderableSeries/DrawingProviders/UniformHeatmapDrawingProvider.js +4 -1
- package/Charting/Visuals/RenderableSeries/FastBubbleRenderableSeries.d.ts +0 -2
- package/Charting/Visuals/RenderableSeries/FastBubbleRenderableSeries.js +0 -4
- package/Charting/Visuals/RenderableSeries/FastTextRenderableSeries.d.ts +3 -0
- package/Charting/Visuals/RenderableSeries/FastTextRenderableSeries.js +10 -0
- package/Charting/Visuals/RenderableSeries/HitTest/BubbleSeriesHitTestProvider.d.ts +4 -0
- package/Charting/Visuals/RenderableSeries/HitTest/BubbleSeriesHitTestProvider.js +7 -0
- package/Charting/Visuals/RenderableSeries/HitTest/HitTestInfo.d.ts +4 -0
- package/Charting/Visuals/RenderableSeries/HitTest/HitTestInfo.js +9 -0
- package/Charting/Visuals/RenderableSeries/HoveredChangedArgs.d.ts +6 -1
- package/Charting/Visuals/RenderableSeries/HoveredChangedArgs.js +2 -1
- package/Charting/Visuals/RenderableSeries/IRenderableSeries.d.ts +1 -1
- package/Charting/Visuals/RenderableSeries/SelectionChangedArgs.d.ts +6 -1
- package/Charting/Visuals/RenderableSeries/SelectionChangedArgs.js +2 -1
- package/Charting/Visuals/RenderableSeries/ShaderEffect.d.ts +3 -2
- package/Charting/Visuals/RenderableSeries/ShaderEffect.js +29 -9
- package/Charting/Visuals/RenderableSeries/SplineBandRenderableSeries.js +50 -1
- package/Charting/Visuals/RenderableSeries/SplineLineRenderableSeries.js +13 -1
- package/Charting/Visuals/RenderableSeries/SplineMountainRenderableSeries.js +13 -1
- package/Charting/Visuals/RenderableSeries/StackedColumnCollection.js +3 -0
- package/Charting/Visuals/RenderableSeries/StackedMountainCollection.d.ts +0 -2
- package/Charting/Visuals/RenderableSeries/StackedMountainCollection.js +4 -4
- package/Charting/Visuals/RenderableSeries/StackedMountainRenderableSeries.d.ts +1 -0
- package/Charting/Visuals/RenderableSeries/StackedMountainRenderableSeries.js +8 -0
- package/Charting/Visuals/RenderableSeries/XyScatterRenderableSeries.d.ts +1 -2
- package/Charting/Visuals/RenderableSeries/XyScatterRenderableSeries.js +8 -3
- package/Charting/Visuals/RubberBandSvgRect/RubberBandSvgRect.d.ts +7 -1
- package/Charting/Visuals/RubberBandSvgRect/RubberBandSvgRect.js +38 -12
- package/Charting/Visuals/SciChartDefaults.d.ts +10 -0
- package/Charting/Visuals/SciChartDefaults.js +10 -0
- package/Charting/Visuals/SciChartOverview.d.ts +2 -1
- package/Charting/Visuals/SciChartOverview.js +28 -8
- package/Charting/Visuals/SciChartPieSurface/SciChartPieSurface.d.ts +16 -3
- package/Charting/Visuals/SciChartPieSurface/SciChartPieSurface.js +125 -60
- package/Charting/Visuals/SciChartSurface.d.ts +4 -41
- package/Charting/Visuals/SciChartSurface.js +52 -66
- package/Charting/Visuals/SciChartSurfaceBase.d.ts +117 -13
- package/Charting/Visuals/SciChartSurfaceBase.js +177 -32
- package/Charting/Visuals/TextureManager/CanvasTexture.d.ts +2 -1
- package/Charting/Visuals/TextureManager/CanvasTexture.js +37 -17
- package/Charting/Visuals/TextureManager/TextureManager.d.ts +2 -1
- package/Charting/Visuals/TextureManager/TextureManager.js +27 -7
- package/Charting/Visuals/createMaster.d.ts +7 -2
- package/Charting/Visuals/createMaster.js +140 -45
- package/Charting/Visuals/createSingle.d.ts +0 -2
- package/Charting/Visuals/createSingle.js +46 -11
- package/Charting/Visuals/licenseManager2D.d.ts +7 -5
- package/Charting/Visuals/licenseManager2D.js +105 -53
- package/Charting/Visuals/loader.js +3 -1
- package/Charting/Visuals/sciChartInitCommon.d.ts +1 -1
- package/Charting/Visuals/sciChartInitCommon.js +5 -1
- package/Charting3D/CameraController.d.ts +1 -1
- package/Charting3D/CameraController.js +21 -7
- package/Charting3D/ChartModifiers/ChartModifierBase3D.d.ts +1 -0
- package/Charting3D/ChartModifiers/ChartModifierBase3D.js +4 -1
- package/Charting3D/ChartModifiers/OrbitModifier3D.d.ts +17 -5
- package/Charting3D/ChartModifiers/OrbitModifier3D.js +62 -26
- package/Charting3D/ChartModifiers/PinchZoomModifier3D.d.ts +81 -0
- package/Charting3D/ChartModifiers/PinchZoomModifier3D.js +164 -0
- package/Charting3D/ChartModifiers/ResetCamera3DModifier.d.ts +1 -1
- package/Charting3D/ChartModifiers/ResetCamera3DModifier.js +1 -2
- package/Charting3D/ChartModifiers/TooltipModifier3D.d.ts +122 -0
- package/Charting3D/ChartModifiers/TooltipModifier3D.js +427 -0
- package/Charting3D/I3DSurfaceOptions.d.ts +10 -0
- package/Charting3D/I3DSurfaceOptions.js +2 -0
- package/Charting3D/Model/DataSeries/BaseDataSeries3D.d.ts +2 -1
- package/Charting3D/Model/DataSeries/BaseDataSeries3D.js +27 -6
- package/Charting3D/Model/DataSeries/BaseGridDataSeries3D.d.ts +1 -1
- package/Charting3D/Model/DataSeries/BaseGridDataSeries3D.js +2 -2
- package/Charting3D/Model/DataSeries/IPointMetadata3D.d.ts +7 -2
- package/Charting3D/Model/DataSeries/UniformGridDataSeries3D.d.ts +8 -0
- package/Charting3D/Model/DataSeries/UniformGridDataSeries3D.js +12 -0
- package/Charting3D/Model/DataSeries/XyzDataSeries3D.d.ts +2 -2
- package/Charting3D/Model/DataSeries/XyzDataSeries3D.js +1 -1
- package/Charting3D/Vector3.d.ts +5 -0
- package/Charting3D/Vector3.js +7 -0
- package/Charting3D/Visuals/Annotations/TooltipSvgAnnotation3D.d.ts +88 -0
- package/Charting3D/Visuals/Annotations/TooltipSvgAnnotation3D.js +291 -0
- package/Charting3D/Visuals/Axis/AxisBase3D.d.ts +29 -3
- package/Charting3D/Visuals/Axis/AxisBase3D.js +46 -18
- package/Charting3D/Visuals/Axis/AxisBase3DLabelStyle.js +2 -1
- package/Charting3D/Visuals/Axis/AxisCubeEntity.d.ts +0 -4
- package/Charting3D/Visuals/Axis/AxisCubeEntity.js +3 -6
- package/Charting3D/Visuals/Axis/IAxisDescriptor.d.ts +2 -2
- package/Charting3D/Visuals/Axis/IAxisDescriptor.js +2 -2
- package/Charting3D/Visuals/Axis/NumericAxis3D.d.ts +3 -2
- package/Charting3D/Visuals/Axis/NumericAxis3D.js +7 -3
- package/Charting3D/Visuals/Primitives/BaseSceneEntity3D.d.ts +41 -30
- package/Charting3D/Visuals/Primitives/BaseSceneEntity3D.js +78 -26
- package/Charting3D/Visuals/Primitives/CrosshairLinesSceneEntity.d.ts +47 -0
- package/Charting3D/Visuals/Primitives/CrosshairLinesSceneEntity.js +106 -0
- package/Charting3D/Visuals/Primitives/EntityIdProvider.d.ts +29 -0
- package/Charting3D/Visuals/Primitives/EntityIdProvider.js +28 -0
- package/Charting3D/Visuals/Primitives/PointLine3DSceneEntity.d.ts +51 -0
- package/Charting3D/Visuals/Primitives/PointLine3DSceneEntity.js +190 -0
- package/Charting3D/Visuals/Primitives/RenderableSeriesSceneEntity.d.ts +12 -0
- package/Charting3D/Visuals/Primitives/RenderableSeriesSceneEntity.js +14 -0
- package/Charting3D/Visuals/Primitives/ScatterPointsSceneEntity.d.ts +11 -0
- package/Charting3D/Visuals/Primitives/ScatterPointsSceneEntity.js +23 -2
- package/Charting3D/Visuals/Primitives/SurfaceMeshSceneEntity.d.ts +3 -0
- package/Charting3D/Visuals/Primitives/SurfaceMeshSceneEntity.js +17 -1
- package/Charting3D/Visuals/RenderableSeries/BaseRenderableSeries3D.d.ts +21 -1
- package/Charting3D/Visuals/RenderableSeries/BaseRenderableSeries3D.js +78 -12
- package/Charting3D/Visuals/RenderableSeries/Constants.d.ts +2 -0
- package/Charting3D/Visuals/RenderableSeries/Constants.js +2 -0
- package/Charting3D/Visuals/RenderableSeries/ESeriesType.d.ts +2 -1
- package/Charting3D/Visuals/RenderableSeries/ESeriesType.js +1 -0
- package/Charting3D/Visuals/RenderableSeries/HitTestInfo3D.d.ts +37 -0
- package/Charting3D/Visuals/RenderableSeries/HitTestInfo3D.js +22 -0
- package/Charting3D/Visuals/RenderableSeries/PointLineRenderableSeries3D.d.ts +64 -0
- package/Charting3D/Visuals/RenderableSeries/PointLineRenderableSeries3D.js +105 -0
- package/Charting3D/Visuals/RenderableSeries/SeriesInfo3D.d.ts +51 -0
- package/Charting3D/Visuals/RenderableSeries/SeriesInfo3D.js +32 -0
- package/Charting3D/Visuals/RenderableSeries/SurfaceMeshSeriesInfo3D.d.ts +15 -0
- package/Charting3D/Visuals/RenderableSeries/SurfaceMeshSeriesInfo3D.js +112 -0
- package/Charting3D/Visuals/RenderableSeries/XyzSeriesInfo3D.d.ts +20 -0
- package/Charting3D/Visuals/RenderableSeries/XyzSeriesInfo3D.js +60 -0
- package/Charting3D/Visuals/RootSceneEntity.d.ts +0 -4
- package/Charting3D/Visuals/RootSceneEntity.js +3 -8
- package/Charting3D/Visuals/SciChart3DRenderer.d.ts +1 -0
- package/Charting3D/Visuals/SciChart3DRenderer.js +26 -0
- package/Charting3D/Visuals/SciChart3DSurface.d.ts +55 -7
- package/Charting3D/Visuals/SciChart3DSurface.js +136 -13
- package/Charting3D/Visuals/ViewportManager3DBase.d.ts +4 -0
- package/Charting3D/Visuals/ViewportManager3DBase.js +7 -1
- package/Charting3D/Visuals/createMaster3d.d.ts +1 -2
- package/Charting3D/Visuals/createMaster3d.js +81 -14
- package/Charting3D/Visuals/createSingle3d.js +34 -4
- package/Charting3D/Visuals/licenseManager3D.js +29 -25
- package/Core/BuildStamp.d.ts +1 -1
- package/Core/BuildStamp.js +2 -2
- package/Core/DeletableEntity.d.ts +34 -0
- package/Core/DeletableEntity.js +138 -0
- package/Core/Globals.d.ts +11 -0
- package/Core/Globals.js +13 -0
- package/Core/Guard.d.ts +6 -0
- package/Core/Guard.js +10 -0
- package/Core/Mouse/MouseManager.d.ts +23 -0
- package/Core/Mouse/MouseManager.js +53 -0
- package/Core/Telemetry.js +4 -6
- package/_wasm/scichart.browser.js +1 -1
- package/_wasm/scichart2d.data +0 -0
- package/_wasm/scichart2d.js +4 -294
- package/_wasm/scichart2d.wasm +0 -0
- package/_wasm/scichart3d.data +0 -0
- package/_wasm/scichart3d.js +4 -294
- package/_wasm/scichart3d.wasm +0 -0
- package/index.d.ts +42 -2
- package/index.dev.js +68876 -0
- package/index.js +81 -27
- package/index.min.js +1 -1
- package/package.json +3 -4
- package/types/ChartModifierType.d.ts +2 -0
- package/types/ChartModifierType.js +2 -0
- package/types/DefaultRenderLayer.d.ts +9 -8
- package/types/DefaultRenderLayer.js +9 -8
- package/types/NumberArray.d.ts +1 -0
- package/types/NumberArray.js +12 -1
- package/types/SceneEntityType.d.ts +13 -5
- package/types/SceneEntityType.js +13 -5
- package/types/TSciChart.d.ts +37 -8
- package/types/TSciChart3D.d.ts +126 -7
- package/types/licensingClasses.d.ts +2 -1
- package/types/licensingClasses.js +1 -0
- package/utils/MemoryUsageHelper.d.ts +92 -0
- package/utils/MemoryUsageHelper.js +221 -0
- package/utils/array.d.ts +8 -0
- package/utils/array.js +58 -1
- package/utils/colorUtil.d.ts +7 -0
- package/utils/colorUtil.js +13 -1
- package/utils/logger.d.ts +2 -0
- package/utils/logger.js +11 -0
- package/utils/parseColor.js +19 -4
|
@@ -86,9 +86,9 @@ var translate_1 = require("../../utils/translate");
|
|
|
86
86
|
var ChartModifierBase_1 = require("../ChartModifiers/ChartModifierBase");
|
|
87
87
|
var BatchRenderContext_1 = require("../Drawing/BatchRenderContext");
|
|
88
88
|
var BrushCache_1 = require("../Drawing/BrushCache");
|
|
89
|
-
var RenderContext2D_1 = require("../Drawing/RenderContext2D");
|
|
90
89
|
var RenderSurface_1 = require("../Drawing/RenderSurface");
|
|
91
90
|
var SolidBrushCache_1 = require("../Drawing/SolidBrushCache");
|
|
91
|
+
var WebGlRenderContext2D_1 = require("../Drawing/WebGlRenderContext2D");
|
|
92
92
|
var LayoutManager_1 = require("../LayoutManager/LayoutManager");
|
|
93
93
|
var SciChartRenderer_1 = require("../Services/SciChartRenderer");
|
|
94
94
|
var AdornerLayer_1 = require("./Annotations/AdornerLayer");
|
|
@@ -111,6 +111,8 @@ var SciChartDefaults_1 = require("./SciChartDefaults");
|
|
|
111
111
|
var ChartTitleRenderer_1 = require("../Services/ChartTitleRenderer");
|
|
112
112
|
var TextStyle_1 = require("../../types/TextStyle");
|
|
113
113
|
var TextPosition_1 = require("../../types/TextPosition");
|
|
114
|
+
var Globals_1 = require("../../Core/Globals");
|
|
115
|
+
var createMaster3d_1 = require("../../Charting3D/Visuals/createMaster3d");
|
|
114
116
|
exports.sciChartConfig = {};
|
|
115
117
|
/**
|
|
116
118
|
* @summary The {@link SciChartSurface} is the root 2D Chart control in SciChart's High Performance Real-time
|
|
@@ -143,10 +145,9 @@ var SciChartSurface = /** @class */ (function (_super) {
|
|
|
143
145
|
var _a, _b, _c, _d, _e;
|
|
144
146
|
_this = _super.call(this, webAssemblyContext, options === null || options === void 0 ? void 0 : options.canvases) || this;
|
|
145
147
|
/**
|
|
146
|
-
*
|
|
147
|
-
* to time render performance, or to update elements of the chart or your UI on redraw.
|
|
148
|
+
* Used internally - the {@link RenderContext2D} for drawing
|
|
148
149
|
*/
|
|
149
|
-
|
|
150
|
+
//public renderContext2D: RenderContext2D;
|
|
150
151
|
/**
|
|
151
152
|
* An event handler which notifies its subscribers when a render operation starts. Use this
|
|
152
153
|
* to update elements of the chart for the current render. Any updates made here will not trigger a subsequent render.
|
|
@@ -234,9 +235,9 @@ var SciChartSurface = /** @class */ (function (_super) {
|
|
|
234
235
|
_this.chartTitleRendererProperty = new ChartTitleRenderer_1.ChartTitleRenderer(_this.webAssemblyContext2D);
|
|
235
236
|
_this.layoutManager = new LayoutManager_1.LayoutManager();
|
|
236
237
|
// TODO: remove this
|
|
237
|
-
if (
|
|
238
|
-
|
|
239
|
-
}
|
|
238
|
+
//if (this.domCanvas2D) {
|
|
239
|
+
// this.renderContext2D = new RenderContext2D(this.domCanvas2D);
|
|
240
|
+
//}
|
|
240
241
|
// Setup series
|
|
241
242
|
_this.detachSeries = _this.detachSeries.bind(_this);
|
|
242
243
|
_this.attachSeries = _this.attachSeries.bind(_this);
|
|
@@ -261,21 +262,6 @@ var SciChartSurface = /** @class */ (function (_super) {
|
|
|
261
262
|
};
|
|
262
263
|
_this.xAxes.collectionChanged.subscribe(function (arg) { return handler(arg, true); });
|
|
263
264
|
_this.yAxes.collectionChanged.subscribe(function (arg) { return handler(arg, false); });
|
|
264
|
-
// Setup annotations
|
|
265
|
-
_this.detachAnnotation = _this.detachAnnotation.bind(_this);
|
|
266
|
-
_this.attachAnnotation = _this.attachAnnotation.bind(_this);
|
|
267
|
-
_this.annotations = new ObservableArray_1.ObservableArray();
|
|
268
|
-
_this.modifierAnnotations = new ObservableArray_1.ObservableArray();
|
|
269
|
-
_this.annotations.collectionChanged.subscribe(function (arg) {
|
|
270
|
-
var _a, _b;
|
|
271
|
-
(_a = arg.getOldItems()) === null || _a === void 0 ? void 0 : _a.forEach(function (a) { return _this.detachAnnotation(a); });
|
|
272
|
-
(_b = arg.getNewItems()) === null || _b === void 0 ? void 0 : _b.forEach(function (a) { return _this.attachAnnotation(a); });
|
|
273
|
-
});
|
|
274
|
-
_this.modifierAnnotations.collectionChanged.subscribe(function (arg) {
|
|
275
|
-
var _a, _b;
|
|
276
|
-
(_a = arg.getOldItems()) === null || _a === void 0 ? void 0 : _a.forEach(function (a) { return _this.detachAnnotation(a); });
|
|
277
|
-
(_b = arg.getNewItems()) === null || _b === void 0 ? void 0 : _b.forEach(function (a) { return _this.attachAnnotation(a); });
|
|
278
|
-
});
|
|
279
265
|
_this.adornerLayer = new AdornerLayer_1.AdornerLayer(_this);
|
|
280
266
|
_this.solidBrushCacheViewportBorder = new SolidBrushCache_1.SolidBrushCache(webAssemblyContext);
|
|
281
267
|
_this.solidBrushCacheCanvasBorder = new SolidBrushCache_1.SolidBrushCache(webAssemblyContext);
|
|
@@ -308,6 +294,13 @@ var SciChartSurface = /** @class */ (function (_super) {
|
|
|
308
294
|
});
|
|
309
295
|
}
|
|
310
296
|
};
|
|
297
|
+
SciChartSurface.disposeSharedWasmContext = function () {
|
|
298
|
+
if (Globals_1.sciChart3DDestinations.length === 0 && Globals_1.sciChartDestinations.length === 0) {
|
|
299
|
+
(0, createMaster_1.disposeMultiChart)();
|
|
300
|
+
(0, createMaster3d_1.disposeMultiChart3d)();
|
|
301
|
+
}
|
|
302
|
+
_super.disposeSharedWasmContext.call(this);
|
|
303
|
+
};
|
|
311
304
|
/**
|
|
312
305
|
* Performs a similar operation to {@link SciChartSurface.create} but uses a dedicated WebAssembly context for this chart, and draws directly to the target canvas
|
|
313
306
|
* This provides better performance for a single chart, but there is a limit (16) to how many you can have on one page.
|
|
@@ -641,7 +634,7 @@ var SciChartSurface = /** @class */ (function (_super) {
|
|
|
641
634
|
* @inheritDoc
|
|
642
635
|
*/
|
|
643
636
|
SciChartSurface.prototype.changeViewportSize = function (pixelWidth, pixelHeight) {
|
|
644
|
-
if (!pixelWidth || !pixelHeight) {
|
|
637
|
+
if (!pixelWidth || !pixelHeight || this.isDeleted) {
|
|
645
638
|
return;
|
|
646
639
|
}
|
|
647
640
|
// Changing the viewportSize
|
|
@@ -675,7 +668,7 @@ var SciChartSurface = /** @class */ (function (_super) {
|
|
|
675
668
|
*/
|
|
676
669
|
SciChartSurface.prototype.invalidateElement = function () {
|
|
677
670
|
// When isSuspended (see suspendUpdates() function) ignore drawing
|
|
678
|
-
if (this.isSuspended) {
|
|
671
|
+
if (this.isSuspended || this.isDeleted) {
|
|
679
672
|
// Logger.log("SciChartSurface.isSuspended = true. Ignoring invalidateElement() call");
|
|
680
673
|
return;
|
|
681
674
|
}
|
|
@@ -685,6 +678,8 @@ var SciChartSurface = /** @class */ (function (_super) {
|
|
|
685
678
|
};
|
|
686
679
|
// Step_5: Get context and pass drawing to SciChartRenderer
|
|
687
680
|
SciChartSurface.prototype.doDrawingLoop = function (context) {
|
|
681
|
+
if (this.isDeleted)
|
|
682
|
+
return;
|
|
688
683
|
context = context !== null && context !== void 0 ? context : this.renderSurface.getRenderContext();
|
|
689
684
|
this.currentWebGlRenderContextProperty = context;
|
|
690
685
|
try {
|
|
@@ -701,6 +696,9 @@ var SciChartSurface = /** @class */ (function (_super) {
|
|
|
701
696
|
this.preRender.raiseEvent(context);
|
|
702
697
|
}
|
|
703
698
|
catch (err) {
|
|
699
|
+
if (err === null || err === void 0 ? void 0 : err.message) {
|
|
700
|
+
console.error(err === null || err === void 0 ? void 0 : err.message);
|
|
701
|
+
}
|
|
704
702
|
console.error(err);
|
|
705
703
|
}
|
|
706
704
|
finally {
|
|
@@ -716,52 +714,50 @@ var SciChartSurface = /** @class */ (function (_super) {
|
|
|
716
714
|
(0, NativeObject_1.freeCache)(this.webAssemblyContext2D).delete();
|
|
717
715
|
}
|
|
718
716
|
else if (this.domChartRoot) {
|
|
719
|
-
console.error("Error from chart in div ".concat(this.domChartRoot.id), err);
|
|
717
|
+
console.error("Error from chart in div ".concat(this.domChartRoot.id, ":"), err);
|
|
720
718
|
}
|
|
721
719
|
else {
|
|
722
720
|
// Surface the error for tests
|
|
723
721
|
throw err;
|
|
724
722
|
}
|
|
725
723
|
}
|
|
726
|
-
this.currentWebGlRenderContextProperty = undefined;
|
|
727
724
|
};
|
|
728
725
|
/**
|
|
729
726
|
* @inheritDoc
|
|
730
727
|
*/
|
|
731
728
|
SciChartSurface.prototype.delete = function (clearHtml) {
|
|
732
729
|
if (clearHtml === void 0) { clearHtml = true; }
|
|
733
|
-
|
|
730
|
+
if (this.isDeleted) {
|
|
731
|
+
try {
|
|
732
|
+
if (process.env.NODE_ENV !== "production") {
|
|
733
|
+
console.warn("Trying to delete the surface with ID = \"".concat(this.id, ")\", which has already been deleted!"));
|
|
734
|
+
}
|
|
735
|
+
}
|
|
736
|
+
catch (err) {
|
|
737
|
+
console.warn(err);
|
|
738
|
+
}
|
|
739
|
+
return;
|
|
740
|
+
}
|
|
734
741
|
for (var _i = 0, _a = this.subChartsProperty; _i < _a.length; _i++) {
|
|
735
742
|
var chart = _a[_i];
|
|
736
743
|
chart.delete();
|
|
737
744
|
}
|
|
738
745
|
this.subChartsProperty = [];
|
|
746
|
+
this.layoutManagerProperty.sciChartSurface = undefined;
|
|
747
|
+
this.layoutManagerProperty = undefined;
|
|
739
748
|
this.renderableSeries.asArray().forEach(function (rs) { return rs.delete(); });
|
|
740
749
|
this.renderableSeries.clear();
|
|
741
750
|
this.xAxes.asArray().forEach(function (xAxis) { return xAxis.delete(); });
|
|
742
751
|
this.yAxes.asArray().forEach(function (yAxis) { return yAxis.delete(); });
|
|
743
|
-
this.modifierAnnotations.asArray().forEach(function (annotation) { return annotation.delete(); });
|
|
744
|
-
this.annotations.asArray().forEach(function (annotation) { return annotation.delete(); });
|
|
745
752
|
this.solidBrushCacheViewportBorder = (0, Deleter_1.deleteSafe)(this.solidBrushCacheViewportBorder);
|
|
746
753
|
this.solidBrushCacheCanvasBorder = (0, Deleter_1.deleteSafe)(this.solidBrushCacheCanvasBorder);
|
|
747
754
|
this.watermarkProperties = (0, Deleter_1.deleteSafe)(this.watermarkProperties);
|
|
748
755
|
this.watermarkPropertyPosition = (0, Deleter_1.deleteSafe)(this.watermarkPropertyPosition);
|
|
749
|
-
this.chartModifiers.asArray().forEach(function (chm) { return chm.delete(); });
|
|
750
756
|
this.chartTitleRendererProperty = (0, Deleter_1.deleteSafe)(this.chartTitleRenderer);
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
style.position = "";
|
|
756
|
-
}
|
|
757
|
-
if (this.domChartRoot.hasOwnProperty("replaceChildren")) {
|
|
758
|
-
// @ts-ignore
|
|
759
|
-
this.domChartRoot.replaceChildren();
|
|
760
|
-
}
|
|
761
|
-
else {
|
|
762
|
-
this.domChartRoot.innerHTML = "";
|
|
763
|
-
}
|
|
764
|
-
}
|
|
757
|
+
this.sciChartRenderer = undefined;
|
|
758
|
+
this.renderSurface = undefined;
|
|
759
|
+
this.clearRootElement(clearHtml);
|
|
760
|
+
_super.prototype.delete.call(this);
|
|
765
761
|
};
|
|
766
762
|
/**
|
|
767
763
|
* @inheritDoc
|
|
@@ -769,8 +765,6 @@ var SciChartSurface = /** @class */ (function (_super) {
|
|
|
769
765
|
SciChartSurface.prototype.onDpiChanged = function (args) {
|
|
770
766
|
var _a, _b;
|
|
771
767
|
this.renderableSeries.asArray().forEach(function (rs) { return rs.onDpiChanged(args); });
|
|
772
|
-
this.annotations.asArray().forEach(function (a) { return a.onDpiChanged(args); });
|
|
773
|
-
this.modifierAnnotations.asArray().forEach(function (a) { return a.onDpiChanged(args); });
|
|
774
768
|
this.xAxes.asArray().forEach(function (a) { return a.onDpiChanged(); });
|
|
775
769
|
this.yAxes.asArray().forEach(function (a) { return a.onDpiChanged(); });
|
|
776
770
|
// Force a viewport size change as size-changed may not fire when parent div has width, height
|
|
@@ -1196,7 +1190,8 @@ var SciChartSurface = /** @class */ (function (_super) {
|
|
|
1196
1190
|
loader: this.loaderJson,
|
|
1197
1191
|
drawSeriesBehindAxis: this.drawSeriesBehindAxis,
|
|
1198
1192
|
disableAspect: this.disableAspect,
|
|
1199
|
-
autoColorMode: this.autoColorMode
|
|
1193
|
+
autoColorMode: this.autoColorMode,
|
|
1194
|
+
touchAction: this.touchActionProperty
|
|
1200
1195
|
};
|
|
1201
1196
|
var definition = {
|
|
1202
1197
|
surface: options,
|
|
@@ -1244,6 +1239,9 @@ var SciChartSurface = /** @class */ (function (_super) {
|
|
|
1244
1239
|
if (options === null || options === void 0 ? void 0 : options.titleStyle) {
|
|
1245
1240
|
this.titleStyle = options.titleStyle;
|
|
1246
1241
|
}
|
|
1242
|
+
if (options === null || options === void 0 ? void 0 : options.touchAction) {
|
|
1243
|
+
this.touchActionProperty = options.touchAction;
|
|
1244
|
+
}
|
|
1247
1245
|
};
|
|
1248
1246
|
/**
|
|
1249
1247
|
* @inheritDoc
|
|
@@ -1338,6 +1336,7 @@ var SciChartSurface = /** @class */ (function (_super) {
|
|
|
1338
1336
|
else {
|
|
1339
1337
|
this.doDrawingLoop();
|
|
1340
1338
|
}
|
|
1339
|
+
this.currentWebGlRenderContextProperty = (0, Deleter_1.deleteSafe)(this.currentWebGlRenderContext);
|
|
1341
1340
|
};
|
|
1342
1341
|
SciChartSurface.prototype.detachSeries = function (renderableSeries) {
|
|
1343
1342
|
if (renderableSeries.type === SeriesType_1.ESeriesType.StackedColumnSeries ||
|
|
@@ -1396,8 +1395,7 @@ var SciChartSurface = /** @class */ (function (_super) {
|
|
|
1396
1395
|
this.invalidateElement();
|
|
1397
1396
|
};
|
|
1398
1397
|
SciChartSurface.prototype.detachAxis = function (axis) {
|
|
1399
|
-
axis.
|
|
1400
|
-
axis.parentSurface = undefined;
|
|
1398
|
+
axis.onDetach();
|
|
1401
1399
|
this.invalidateElement();
|
|
1402
1400
|
};
|
|
1403
1401
|
SciChartSurface.prototype.attachAxis = function (axis, isXAxis) {
|
|
@@ -1418,21 +1416,6 @@ var SciChartSurface = /** @class */ (function (_super) {
|
|
|
1418
1416
|
axis.invalidateParentCallback = this.invalidateElement;
|
|
1419
1417
|
this.invalidateElement();
|
|
1420
1418
|
};
|
|
1421
|
-
SciChartSurface.prototype.detachAnnotation = function (annotation) {
|
|
1422
|
-
annotation.onDetach();
|
|
1423
|
-
annotation.invalidateParentCallback = undefined;
|
|
1424
|
-
annotation.parentSurface = undefined;
|
|
1425
|
-
this.invalidateElement();
|
|
1426
|
-
};
|
|
1427
|
-
SciChartSurface.prototype.attachAnnotation = function (annotation) {
|
|
1428
|
-
if (annotation.invalidateParentCallback) {
|
|
1429
|
-
throw new Error("Invalid operation in sciChartSurface.attachAnnotation, this annotation has already been attached to a SciChartSurface. Please detach it from a SciChartSurface before attaching to another");
|
|
1430
|
-
}
|
|
1431
|
-
annotation.parentSurface = this;
|
|
1432
|
-
annotation.invalidateParentCallback = this.invalidateElement;
|
|
1433
|
-
annotation.onAttach(this);
|
|
1434
|
-
this.invalidateElement();
|
|
1435
|
-
};
|
|
1436
1419
|
SciChartSurface.prototype.onAttachSubSurface = function (subSurface) {
|
|
1437
1420
|
this.chartModifiers.asArray().forEach(function (modifier) {
|
|
1438
1421
|
modifier.onAttachSubSurface(subSurface);
|
|
@@ -1730,11 +1713,11 @@ var SciChartSubSurface = /** @class */ (function (_super) {
|
|
|
1730
1713
|
SciChartSubSurface.prototype.delete = function (clearHtml) {
|
|
1731
1714
|
if (clearHtml === void 0) { clearHtml = true; }
|
|
1732
1715
|
// Don't ever clear html on the parent here as it kills the drawing for all subcharts.
|
|
1733
|
-
_super.prototype.delete.call(this, false);
|
|
1734
1716
|
if (clearHtml && this.domChartRoot.contains(this.domSvgContainer)) {
|
|
1735
1717
|
this.domChartRoot.removeChild(this.domSvgContainer);
|
|
1736
1718
|
}
|
|
1737
1719
|
this.backgroundFillBrushCache = (0, Deleter_1.deleteSafe)(this.backgroundFillBrushCache);
|
|
1720
|
+
_super.prototype.delete.call(this, false);
|
|
1738
1721
|
};
|
|
1739
1722
|
SciChartSubSurface.prototype.toJSON = function (excludeData) {
|
|
1740
1723
|
var _a;
|
|
@@ -1822,7 +1805,9 @@ var SciChartSubSurface = /** @class */ (function (_super) {
|
|
|
1822
1805
|
if (alphaEnabled === void 0) { alphaEnabled = true; }
|
|
1823
1806
|
this.backgroundProperty = background;
|
|
1824
1807
|
if (!this.isTransparent) {
|
|
1825
|
-
|
|
1808
|
+
// const renderContext = this.renderSurface.getRenderContext();
|
|
1809
|
+
// This is probably an unnecessary change, and mostly here to prevent a memory usage debug warning
|
|
1810
|
+
var renderContext = new WebGlRenderContext2D_1.WebGlRenderContext2D(this.webAssemblyContext2D, this.renderSurface.viewportSize, this.renderSurface.canvasId);
|
|
1826
1811
|
var nativeContext = renderContext.getNativeContext();
|
|
1827
1812
|
var _a = this.parentSurface.renderSurface.viewportSize, width = _a.width, height = _a.height;
|
|
1828
1813
|
nativeContext.SetClipRect(this.adjustedPadding.left, this.adjustedPadding.top, width - this.adjustedPadding.right - this.adjustedPadding.left, height - this.adjustedPadding.bottom - this.adjustedPadding.top);
|
|
@@ -1840,6 +1825,7 @@ var SciChartSubSurface = /** @class */ (function (_super) {
|
|
|
1840
1825
|
catch (error) {
|
|
1841
1826
|
performanceWarnings_1.performanceWarnings.subchartBackgroundNotSimpleColor.warn();
|
|
1842
1827
|
}
|
|
1828
|
+
renderContext.delete();
|
|
1843
1829
|
}
|
|
1844
1830
|
};
|
|
1845
1831
|
SciChartSubSurface.prototype.updateWrapper = function (subChartPosition) {
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
+
import { DeletableEntity } from "../../Core/DeletableEntity";
|
|
1
2
|
import { EventHandler } from "../../Core/EventHandler";
|
|
2
3
|
import { IDeletable } from "../../Core/IDeletable";
|
|
3
4
|
import { MouseManager } from "../../Core/Mouse/MouseManager";
|
|
4
5
|
import { ObservableArray } from "../../Core/ObservableArray";
|
|
5
6
|
import { PropertyChangedEventArgs } from "../../Core/PropertyChangedEventArgs";
|
|
6
7
|
import { Rect } from "../../Core/Rect";
|
|
8
|
+
import { Thickness } from "../../Core/Thickness";
|
|
7
9
|
import { EThemeProviderType } from "../../types/ThemeProviderType";
|
|
8
10
|
import { TSciChart } from "../../types/TSciChart";
|
|
9
11
|
import { TSciChart3D } from "../../types/TSciChart3D";
|
|
@@ -11,7 +13,9 @@ import { TSciChartSurfaceCanvases } from "../../types/TSciChartSurfaceCanvases";
|
|
|
11
13
|
import { IChartModifierBase } from "../ChartModifiers/ChartModifierBase";
|
|
12
14
|
import { IThemeable } from "../Themes/IThemeable";
|
|
13
15
|
import { IThemePartial, IThemeProvider } from "../Themes/IThemeProvider";
|
|
14
|
-
import {
|
|
16
|
+
import { AdornerLayer } from "./Annotations/AdornerLayer";
|
|
17
|
+
import { IAnnotation } from "./Annotations/IAnnotation";
|
|
18
|
+
import { AxisCore } from "./Axis/AxisCore";
|
|
15
19
|
import { ISciChartLoader } from "./loader";
|
|
16
20
|
import { INotifyOnDpiChanged, TDpiChangedEventArgs } from "./TextureManager/DpiHelper";
|
|
17
21
|
import { ISuspendable, IUpdateSuspender } from "./UpdateSuspender";
|
|
@@ -19,7 +23,7 @@ export declare type TSciChartDestination = {
|
|
|
19
23
|
canvasElementId: string;
|
|
20
24
|
width: number;
|
|
21
25
|
height: number;
|
|
22
|
-
sciChartSurface:
|
|
26
|
+
sciChartSurface: ISciChartSurfaceBase;
|
|
23
27
|
};
|
|
24
28
|
export declare type TSciChartConfig = {
|
|
25
29
|
wasmUrl?: string;
|
|
@@ -34,7 +38,7 @@ export interface ISurfaceOptionsBase {
|
|
|
34
38
|
*/
|
|
35
39
|
id?: string;
|
|
36
40
|
/**
|
|
37
|
-
* Optional - The theme applied to the {@link
|
|
41
|
+
* Optional - The theme applied to the {@link SciChartSurfaceBase} on startup
|
|
38
42
|
* @remarks see {@link IThemeProvider} for properties which can affect SciChart theme. Two default
|
|
39
43
|
* themes are included out of the box {@link SciChartJSLightTheme} and {@link SciChartJSDarkTheme}.
|
|
40
44
|
* Custom themes may be created by implementing {@link IThemeProvider}
|
|
@@ -50,6 +54,29 @@ export interface ISurfaceOptionsBase {
|
|
|
50
54
|
type: string;
|
|
51
55
|
options?: any;
|
|
52
56
|
};
|
|
57
|
+
/**
|
|
58
|
+
* Sets a `touch-action` property to the canvas style.
|
|
59
|
+
* Useful if touch interactions in browser should be configured.
|
|
60
|
+
* https://developer.mozilla.org/en-US/docs/Web/CSS/touch-action
|
|
61
|
+
*
|
|
62
|
+
* @remarks By default a chart will use `touch-action: none` to prevent the default browser behavior.
|
|
63
|
+
*/
|
|
64
|
+
touchAction?: string;
|
|
65
|
+
/**
|
|
66
|
+
* Optional - the width aspect ratio of the {@link SciChartSurfaceBase}. By default SciChart will scale to fit the parent Div.
|
|
67
|
+
* However if height of the div is not provided it will use width/height aspect ratio to calculate the height. The default ratio is 3/2.
|
|
68
|
+
*/
|
|
69
|
+
widthAspect?: number;
|
|
70
|
+
/**
|
|
71
|
+
* Optional - the height aspect ratio of the {@link SciChartSurfaceBase}. By default SciChart will scale to fit the parent Div.
|
|
72
|
+
* However if height of the div is not provided it will use width/height aspect ratio to calculate the height. The default ratio is 3/2.
|
|
73
|
+
*/
|
|
74
|
+
heightAspect?: number;
|
|
75
|
+
/**
|
|
76
|
+
* Optional - the option of disabling / enabling scaling of the {@link SciChartSurfaceBase}.
|
|
77
|
+
* If false - the {@link SciChartSurfaceBase} will take the height and width of parent div without scaling.
|
|
78
|
+
*/
|
|
79
|
+
disableAspect?: boolean;
|
|
53
80
|
}
|
|
54
81
|
export declare const DebugForDpi: boolean;
|
|
55
82
|
/**
|
|
@@ -60,8 +87,13 @@ export declare const DebugForDpi: boolean;
|
|
|
60
87
|
* to use the SciChartSurface and create a 2D or 3D {@link https://www.scichart.com/javascript-chart-features | JavaScript Chart}
|
|
61
88
|
*/
|
|
62
89
|
export interface ISciChartSurfaceBase extends IDeletable, IThemeable {
|
|
90
|
+
readonly id: string;
|
|
91
|
+
readonly domChartRoot: HTMLDivElement;
|
|
92
|
+
readonly domDivContainer: HTMLDivElement;
|
|
63
93
|
readonly domCanvas2D: HTMLCanvasElement;
|
|
64
94
|
readonly themeProvider: IThemeProvider;
|
|
95
|
+
readonly isDeleted: boolean;
|
|
96
|
+
readonly otherSurfaces: ISciChartSurfaceBase[];
|
|
65
97
|
/**
|
|
66
98
|
* Changes the Viewport Size of the {@link SciChartSurfaceBase}
|
|
67
99
|
* @param width
|
|
@@ -72,6 +104,13 @@ export interface ISciChartSurfaceBase extends IDeletable, IThemeable {
|
|
|
72
104
|
* Add an IDeleteable object to the surface which will have its delete method called when the surface is deleted
|
|
73
105
|
*/
|
|
74
106
|
addDeletable(deletable: IDeletable): void;
|
|
107
|
+
invalidateElement(): void;
|
|
108
|
+
delete(clearHtml?: boolean): void;
|
|
109
|
+
/**
|
|
110
|
+
* An event handler which notifies its subscribers when a render operation has finished. Use this
|
|
111
|
+
* to time render performance, or to update elements of the chart or your UI on redraw.
|
|
112
|
+
*/
|
|
113
|
+
rendered: EventHandler<void>;
|
|
75
114
|
}
|
|
76
115
|
/**
|
|
77
116
|
* Enum constants to specify SciChartSurface type
|
|
@@ -93,7 +132,7 @@ export declare enum ESurfaceType {
|
|
|
93
132
|
* See derived types {@link SciChartSurface} (2D Charts) and {@link SciChart3DSurface} (3D Charts) for more specific instructions on how
|
|
94
133
|
* to use the SciChartSurface and create a 2D or 3D {@link https://www.scichart.com/javascript-chart-features | JavaScript Chart}
|
|
95
134
|
*/
|
|
96
|
-
export declare abstract class SciChartSurfaceBase implements ISciChartSurfaceBase, ISuspendable, INotifyOnDpiChanged {
|
|
135
|
+
export declare abstract class SciChartSurfaceBase extends DeletableEntity implements ISciChartSurfaceBase, ISuspendable, INotifyOnDpiChanged {
|
|
97
136
|
/**
|
|
98
137
|
* Gets or sets the application-wide default theme. See {@link IThemeProvider} for details
|
|
99
138
|
*/
|
|
@@ -110,11 +149,28 @@ export declare abstract class SciChartSurfaceBase implements ISciChartSurfaceBas
|
|
|
110
149
|
* chart parts are automatically anti-aliased
|
|
111
150
|
*/
|
|
112
151
|
static AntiAliasWebGlBackbuffer: boolean;
|
|
152
|
+
/**
|
|
153
|
+
* Defines a delay of the shared wasmContext auto-dispose if {@link autoDisposeWasmContext} is enabled.
|
|
154
|
+
*/
|
|
155
|
+
static wasmContextDisposeTimeout: number;
|
|
156
|
+
/**
|
|
157
|
+
* Defines if the shared wasmContext ({@link TSciChart | WebAssembly Context}) should be deleted after all of the surfaces that use it are deleted.
|
|
158
|
+
*/
|
|
159
|
+
static autoDisposeWasmContext: boolean;
|
|
160
|
+
/**
|
|
161
|
+
* Deletes the shared wasmContext ({@link TSciChart | WebAssembly Context}) used by the charts instantiated with {@link SciChartSurface.create} or {@link SciChart3DSurface.create}.
|
|
162
|
+
*/
|
|
163
|
+
static disposeSharedWasmContext(): void;
|
|
113
164
|
/**
|
|
114
165
|
* Sets the runtime license key. Use for full licenses or trials only, not developer licenses.
|
|
115
166
|
* @param keyCode
|
|
116
167
|
*/
|
|
117
168
|
static setRuntimeLicenseKey(keyCode: string): void;
|
|
169
|
+
/**
|
|
170
|
+
* Causes SciChart to always use its built in community non-commercial license. This stops it attempting to look for the license wizard
|
|
171
|
+
* Usage of the community license constitutes acceptace of the EULA at https://scichart.com/JSCommunityEULA
|
|
172
|
+
*/
|
|
173
|
+
static UseCommunityLicense(): void;
|
|
118
174
|
/**
|
|
119
175
|
* Sets the endpoint for validating a runtime license key with the server. Must be a relative path.
|
|
120
176
|
* @default api/license
|
|
@@ -144,36 +200,68 @@ export declare abstract class SciChartSurfaceBase implements ISciChartSurfaceBas
|
|
|
144
200
|
/**
|
|
145
201
|
* The {@link HTMLDivElement} which is the dom chart root
|
|
146
202
|
*/
|
|
147
|
-
|
|
203
|
+
domChartRoot: HTMLDivElement;
|
|
148
204
|
/**
|
|
149
205
|
* The {@link HTMLCanvasElement} which is the WebGL canvas that SciChart draws to
|
|
150
206
|
*/
|
|
151
|
-
|
|
207
|
+
domCanvasWebGL: HTMLCanvasElement;
|
|
152
208
|
/**
|
|
153
209
|
* The {@link HTMLCanvasElement} which is the HTML5 canvas which SciChart draws overlays (cursors, tooltips) to
|
|
154
210
|
*/
|
|
155
|
-
|
|
211
|
+
domCanvas2D: HTMLCanvasElement;
|
|
156
212
|
/**
|
|
157
213
|
* The {@link SVGSVGElement} which is the SVG canvas which SciChart adds elements (tooltips, annotations) to
|
|
158
214
|
*/
|
|
159
|
-
|
|
215
|
+
domSvgContainer: SVGSVGElement;
|
|
160
216
|
/**
|
|
161
217
|
* The {@link SVGSVGElement} which is the SVG adorner layer canvas, is used for annotation adorners
|
|
162
218
|
*/
|
|
163
|
-
|
|
219
|
+
domSvgAdornerLayer: SVGSVGElement;
|
|
164
220
|
/**
|
|
165
221
|
* The inner {@link HTMLDivElement} div element
|
|
166
222
|
*/
|
|
167
|
-
|
|
223
|
+
domDivContainer: HTMLDivElement;
|
|
168
224
|
/**
|
|
169
225
|
* The {@link MouseManager} subscribes to mouse events on the {@link domChartRoot} and routes them to components within SciChart
|
|
170
226
|
*/
|
|
171
|
-
|
|
227
|
+
mouseManager: MouseManager;
|
|
172
228
|
/**
|
|
173
229
|
* The {@link IThemeProvider} provides colors, brushes and theme information for the current {@link SciChartSurfaceBase}
|
|
174
230
|
*/
|
|
175
231
|
/** For serialization Only. The name of the onCreated function applied by the builder api */
|
|
176
232
|
onCreatedName: string;
|
|
233
|
+
/**
|
|
234
|
+
* @summary Gets the collection of {@link IAnnotation} - annotations, markers or shapes drawn over the top of a {@link SciChartSurface}
|
|
235
|
+
* @description A {@link SciChartSurface} can have zero to many {@link IAnnotation | Annotations}.
|
|
236
|
+
*
|
|
237
|
+
* The Annotations are drawn using our WebGL / WebAssembly rendering engine, but some use SVG for maximum configurability.
|
|
238
|
+
* See derived types of {@link IAnnotation} such as {@link BoxAnnotation}, {@link LineAnnotation} etc...
|
|
239
|
+
*
|
|
240
|
+
* Use this collection to add and remove Annotations to the chart.
|
|
241
|
+
* @remarks
|
|
242
|
+
* Adding an Annotation to the chart causes it to automatically redraw. Note that annotations do not pariticpate in autoranging,
|
|
243
|
+
* meaning a chart will zoom to fit data and chart series but not annotations
|
|
244
|
+
*/
|
|
245
|
+
readonly annotations: ObservableArray<IAnnotation>;
|
|
246
|
+
/**
|
|
247
|
+
* @summary Gets the collection of {@link IAnnotation} - modifier annotations, markers or shapes drawn over the top of a {@link SciChartSurface}
|
|
248
|
+
* @description A {@link SciChartSurface} can have zero to many {@link IAnnotation | Annotations}.
|
|
249
|
+
*
|
|
250
|
+
* The Annotations are drawn using our WebGL / WebAssembly rendering engine, but some use SVG for maximum configurability.
|
|
251
|
+
* See derived types of {@link IAnnotation} such as {@link BoxAnnotation}, {@link LineAnnotation} etc...
|
|
252
|
+
*
|
|
253
|
+
* Use this collection to add and remove Modifier Annotations to the chart.
|
|
254
|
+
* @remarks
|
|
255
|
+
* Adding an Modifier Annotation to the chart causes it to automatically redraw. Note that annotations do not pariticpate in autoranging,
|
|
256
|
+
* meaning a chart will zoom to fit data and chart series but not annotations
|
|
257
|
+
*/
|
|
258
|
+
readonly modifierAnnotations: ObservableArray<IAnnotation>;
|
|
259
|
+
adornerLayer: AdornerLayer;
|
|
260
|
+
/**
|
|
261
|
+
* An event handler which notifies its subscribers when a render operation has finished. Use this
|
|
262
|
+
* to time render performance, or to update elements of the chart or your UI on redraw.
|
|
263
|
+
*/
|
|
264
|
+
rendered: EventHandler<void>;
|
|
177
265
|
protected destinations: TSciChartDestination[];
|
|
178
266
|
protected themeProviderProperty: IThemeProvider;
|
|
179
267
|
protected previousThemeProviderProperty: IThemeProvider;
|
|
@@ -181,11 +269,12 @@ export declare abstract class SciChartSurfaceBase implements ISciChartSurfaceBas
|
|
|
181
269
|
protected isDeletedProperty: boolean;
|
|
182
270
|
protected backgroundProperty: string;
|
|
183
271
|
protected idProperty: string;
|
|
272
|
+
protected touchActionProperty: string;
|
|
184
273
|
protected widthAspect: number;
|
|
185
274
|
protected heightAspect: number;
|
|
186
275
|
protected disableAspect: boolean;
|
|
187
276
|
protected loaderJson: any;
|
|
188
|
-
private
|
|
277
|
+
private sharedWasmContext;
|
|
189
278
|
private readonly suspendableIdProperty;
|
|
190
279
|
private seriesViewRectProperty;
|
|
191
280
|
private isAlphaEnabledProperty;
|
|
@@ -280,12 +369,23 @@ export declare abstract class SciChartSurfaceBase implements ISciChartSurfaceBas
|
|
|
280
369
|
* engine will schedule a redraw a the next time the renderer is free.
|
|
281
370
|
*/
|
|
282
371
|
abstract invalidateElement(): void;
|
|
372
|
+
abstract getSeriesViewRectPadding(scaled: boolean): Thickness;
|
|
283
373
|
getMainCanvas(): HTMLCanvasElement;
|
|
284
374
|
/**
|
|
285
375
|
* Sets the Series View {@link Rect}, a rectangle relative to the entire size of the {@link SciChartSurfaceBase}
|
|
286
376
|
* @param seriesViewRect a {@link Rect} which defines the portion of the view for drawing series
|
|
287
377
|
*/
|
|
288
378
|
setSeriesViewRect(seriesViewRect: Rect): void;
|
|
379
|
+
/**
|
|
380
|
+
* Gets the {@link AxisCore | XAxis} which matches the axisId. Returns undefined if not axis found
|
|
381
|
+
* @param axisId The AxisId to search for
|
|
382
|
+
*/
|
|
383
|
+
abstract getXAxisById(axisId: string): AxisCore;
|
|
384
|
+
/**
|
|
385
|
+
* Gets the {@link AxisCore | YAxis} which matches the axisId. Returns undefined if not axis found
|
|
386
|
+
* @param axisId The AxisId to search for
|
|
387
|
+
*/
|
|
388
|
+
abstract getYAxisById(axisId: string): AxisCore;
|
|
289
389
|
/**
|
|
290
390
|
* Changes the Viewport Size of the {@link SciChartSurfaceBase}
|
|
291
391
|
* @param width
|
|
@@ -309,7 +409,8 @@ export declare abstract class SciChartSurfaceBase implements ISciChartSurfaceBas
|
|
|
309
409
|
*/
|
|
310
410
|
onDpiChanged(args: TDpiChangedEventArgs): void;
|
|
311
411
|
get chartModifierGroups(): string[];
|
|
312
|
-
protected
|
|
412
|
+
protected clearRootElement(clearHtml: boolean): void;
|
|
413
|
+
protected applyOptions(options: ISurfaceOptionsBase): void;
|
|
313
414
|
/**
|
|
314
415
|
* Detaches a {@link ChartModifierBase2D} from the {@link SciChartSurfaceBase}
|
|
315
416
|
* @param chartModifier
|
|
@@ -339,6 +440,8 @@ export declare abstract class SciChartSurfaceBase implements ISciChartSurfaceBas
|
|
|
339
440
|
protected abstract applySciChartBackground(htmlColor: string, alphaEnabled?: boolean): void;
|
|
340
441
|
protected changeMasterCanvasViewportSize(wasmContext: TSciChart | TSciChart3D, pixelWidth: number, pixelHeight: number): void;
|
|
341
442
|
protected changeWebGLCanvasViewportSize(wasmContext: TSciChart | TSciChart3D, pixelWidth: number, pixelHeight: number): void;
|
|
443
|
+
private detachAnnotation;
|
|
444
|
+
private attachAnnotation;
|
|
342
445
|
}
|
|
343
446
|
export declare const createChartDestination: (canvas: HTMLCanvasElement) => {
|
|
344
447
|
canvas: HTMLCanvasElement;
|
|
@@ -346,6 +449,7 @@ export declare const createChartDestination: (canvas: HTMLCanvasElement) => {
|
|
|
346
449
|
GetWidth(): any;
|
|
347
450
|
GetID(): any;
|
|
348
451
|
};
|
|
452
|
+
/** @ignore */
|
|
349
453
|
export declare const getMasterCanvas: () => HTMLCanvasElement;
|
|
350
454
|
export declare type TGetDestinationFn = (destinationId: string) => TSciChartDestination;
|
|
351
455
|
export declare const copyToCanvas: (sourceCanvas: HTMLCanvasElement, getDestinationById: TGetDestinationFn) => (destinationId: string) => void;
|