scichart 3.1.348 → 3.2.434
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Builder/buildSurface.d.ts +2 -2
- package/Builder/chartBuilder.d.ts +4 -4
- package/Charting/ChartModifiers/ChartModifierBase.d.ts +19 -5
- package/Charting/ChartModifiers/ChartModifierBase.js +64 -7
- package/Charting/ChartModifiers/CursorModifier.d.ts +9 -9
- package/Charting/ChartModifiers/CursorModifier.js +13 -1
- package/Charting/ChartModifiers/DataPointSelectionModifier.d.ts +1 -0
- package/Charting/ChartModifiers/DataPointSelectionModifier.js +6 -1
- package/Charting/ChartModifiers/LegendModifier.d.ts +10 -25
- package/Charting/ChartModifiers/LegendModifier.js +10 -20
- package/Charting/ChartModifiers/MouseWheelZoomModifier.js +20 -11
- package/Charting/ChartModifiers/OverviewRangeSelectionModifier.d.ts +5 -5
- package/Charting/ChartModifiers/PinchZoomModifier.d.ts +38 -8
- package/Charting/ChartModifiers/PinchZoomModifier.js +103 -40
- package/Charting/ChartModifiers/RolloverModifier.js +10 -3
- package/Charting/ChartModifiers/RubberBandXyZoomModifier.d.ts +4 -7
- package/Charting/ChartModifiers/RubberBandXyZoomModifier.js +6 -8
- package/Charting/ChartModifiers/SeriesSelectionModifier.js +39 -29
- package/Charting/ChartModifiers/XAxisDragModifier.d.ts +1 -1
- package/Charting/ChartModifiers/XAxisDragModifier.js +3 -3
- package/Charting/ChartModifiers/YAxisDragModifier.d.ts +2 -4
- package/Charting/ChartModifiers/YAxisDragModifier.js +7 -8
- package/Charting/ChartModifiers/ZoomPanModifier.d.ts +13 -38
- package/Charting/ChartModifiers/ZoomPanModifier.js +54 -99
- package/Charting/Drawing/BaseCache.d.ts +2 -1
- package/Charting/Drawing/BaseCache.js +45 -7
- package/Charting/Drawing/RenderSurface.d.ts +1 -0
- package/Charting/Drawing/RenderSurface.js +5 -1
- package/Charting/Drawing/SolidBrushCache.d.ts +2 -1
- package/Charting/Drawing/SolidBrushCache.js +23 -3
- package/Charting/Drawing/WebGlBrush.d.ts +2 -1
- package/Charting/Drawing/WebGlBrush.js +22 -3
- package/Charting/Drawing/WebGlPen.d.ts +2 -1
- package/Charting/Drawing/WebGlPen.js +23 -4
- package/Charting/Drawing/WebGlRenderContext2D.d.ts +4 -3
- package/Charting/Drawing/WebGlRenderContext2D.js +26 -7
- package/Charting/Model/BaseDataSeries.d.ts +67 -2
- package/Charting/Model/BaseDataSeries.js +193 -42
- package/Charting/Model/BaseHeatmapDataSeries.js +1 -1
- package/Charting/Model/ChartData/SeriesInfo.d.ts +16 -0
- package/Charting/Model/ChartData/SeriesInfo.js +7 -0
- package/Charting/Model/ChartData/XyzSeriesInfo.d.ts +8 -0
- package/Charting/Model/ChartData/XyzSeriesInfo.js +36 -0
- package/Charting/Model/DoubleVectorProvider.d.ts +19 -0
- package/Charting/Model/DoubleVectorProvider.js +95 -0
- package/Charting/Model/Filters/HlcFilterBase.d.ts +6 -2
- package/Charting/Model/Filters/HlcFilterBase.js +17 -1
- package/Charting/Model/Filters/IFilterBase.d.ts +24 -0
- package/Charting/Model/Filters/IFilterBase.js +2 -0
- package/Charting/Model/Filters/OhlcFilterBase.d.ts +6 -2
- package/Charting/Model/Filters/OhlcFilterBase.js +17 -1
- package/Charting/Model/Filters/XyFilterBase.d.ts +6 -5
- package/Charting/Model/Filters/XyFilterBase.js +17 -1
- package/Charting/Model/Filters/XyyFilterBase.d.ts +6 -2
- package/Charting/Model/Filters/XyyFilterBase.js +17 -1
- package/Charting/Model/Filters/XyzFilterBase.d.ts +6 -2
- package/Charting/Model/Filters/XyzFilterBase.js +17 -1
- package/Charting/Model/HlcDataSeries.d.ts +3 -0
- package/Charting/Model/HlcDataSeries.js +44 -15
- package/Charting/Model/IDataSeries.d.ts +23 -0
- package/Charting/Model/NonUniformHeatmapDataSeries.js +2 -0
- package/Charting/Model/OhlcDataSeries.d.ts +3 -0
- package/Charting/Model/OhlcDataSeries.js +56 -24
- package/Charting/Model/PointSeries/BasePointSeriesResampled.d.ts +4 -5
- package/Charting/Model/PointSeries/BasePointSeriesResampled.js +29 -21
- package/Charting/Model/PointSeries/BasePointSeriesWrapped.d.ts +2 -0
- package/Charting/Model/PointSeries/BasePointSeriesWrapped.js +2 -0
- package/Charting/Model/PointSeries/IPointSeries.d.ts +2 -1
- package/Charting/Model/PointSeries/OhlcPointSeriesResampled.js +1 -1
- package/Charting/Model/PointSeries/XyPointSeriesWrapped.d.ts +2 -1
- package/Charting/Model/PointSeries/XyPointSeriesWrapped.js +2 -2
- package/Charting/Model/PointSeries/XyyPointSeriesResampled.js +1 -1
- package/Charting/Model/UniformHeatmapDataSeries.d.ts +31 -11
- package/Charting/Model/UniformHeatmapDataSeries.js +72 -4
- package/Charting/Model/XyDataSeries.d.ts +0 -8
- package/Charting/Model/XyDataSeries.js +21 -5
- package/Charting/Model/XyTextDataSeries.d.ts +2 -0
- package/Charting/Model/XyTextDataSeries.js +35 -4
- package/Charting/Model/XyyDataSeries.d.ts +2 -0
- package/Charting/Model/XyyDataSeries.js +50 -26
- package/Charting/Model/XyzDataSeries.d.ts +3 -0
- package/Charting/Model/XyzDataSeries.js +36 -10
- package/Charting/Numerics/CoordinateCalculators/CategoryCoordinateCalculator.d.ts +3 -5
- package/Charting/Numerics/CoordinateCalculators/CategoryCoordinateCalculator.js +5 -7
- package/Charting/Numerics/CoordinateCalculators/CoordinateCalculatorBase.d.ts +2 -1
- package/Charting/Numerics/CoordinateCalculators/CoordinateCalculatorBase.js +29 -9
- package/Charting/Numerics/CoordinateCalculators/FlippedCategoryCoordinateCalculator.d.ts +3 -5
- package/Charting/Numerics/CoordinateCalculators/FlippedCategoryCoordinateCalculator.js +5 -7
- package/Charting/Numerics/Resamplers/ExtremeResamplerHelper.d.ts +14 -10
- package/Charting/Numerics/Resamplers/ExtremeResamplerHelper.js +105 -69
- package/Charting/Numerics/Resamplers/ResamplingParams.d.ts +4 -2
- package/Charting/Numerics/Resamplers/ResamplingParams.js +12 -7
- package/Charting/Numerics/TickCoordinateProviders/TickCoordinatesProvider.d.ts +5 -0
- package/Charting/Numerics/TickCoordinateProviders/TickCoordinatesProvider.js +7 -0
- package/Charting/Numerics/TickProviders/NumericTickProvider.js +3 -4
- package/Charting/Numerics/TickProviders/TickProvider.d.ts +5 -0
- package/Charting/Numerics/TickProviders/TickProvider.js +7 -0
- package/Charting/Services/SciChartRenderer.js +15 -5
- package/Charting/Services/TitleRenderer.d.ts +2 -1
- package/Charting/Services/TitleRenderer.js +35 -14
- package/Charting/Visuals/Annotations/AdornerLayer.d.ts +1 -1
- package/Charting/Visuals/Annotations/AnnotationBase.d.ts +6 -6
- package/Charting/Visuals/Annotations/AnnotationBase.js +81 -61
- package/Charting/Visuals/Annotations/CursorTooltipSvgAnnotation.js +4 -0
- package/Charting/Visuals/Annotations/IAnnotation.d.ts +9 -4
- package/Charting/Visuals/Annotations/IAnnotation.js +6 -0
- package/Charting/Visuals/Annotations/LineAnnotation.js +3 -1
- package/Charting/Visuals/Annotations/NativeTextAnnotation.js +4 -0
- package/Charting/Visuals/Annotations/RenderContextAnnotationBase.d.ts +5 -0
- package/Charting/Visuals/Annotations/RenderContextAnnotationBase.js +16 -0
- package/Charting/Visuals/Annotations/RolloverTooltipSvgAnnotation.js +6 -0
- package/Charting/Visuals/Annotations/constants.d.ts +1 -0
- package/Charting/Visuals/Annotations/constants.js +1 -0
- package/Charting/Visuals/Axis/AxisBase2D.d.ts +23 -8
- package/Charting/Visuals/Axis/AxisBase2D.js +46 -10
- package/Charting/Visuals/Axis/AxisCore.d.ts +6 -3
- package/Charting/Visuals/Axis/AxisCore.js +100 -54
- package/Charting/Visuals/Axis/AxisRenderer.d.ts +2 -1
- package/Charting/Visuals/Axis/AxisRenderer.js +40 -16
- package/Charting/Visuals/Axis/AxisTitleRenderer.d.ts +1 -0
- package/Charting/Visuals/Axis/AxisTitleRenderer.js +4 -0
- package/Charting/Visuals/Axis/CategoryAxisBase.js +4 -4
- package/Charting/Visuals/Axis/DeltaCalculator/DateTimeDeltaCalculator.js +14 -9
- package/Charting/Visuals/Axis/DeltaCalculator/DeltaCalculator.d.ts +5 -0
- package/Charting/Visuals/Axis/DeltaCalculator/DeltaCalculator.js +7 -0
- package/Charting/Visuals/Axis/LabelProvider/LabelCache.d.ts +2 -2
- package/Charting/Visuals/Axis/LabelProvider/LabelCache.js +8 -1
- package/Charting/Visuals/Axis/LabelProvider/LabelProvider.d.ts +7 -1
- package/Charting/Visuals/Axis/LabelProvider/LabelProvider.js +34 -8
- package/Charting/Visuals/Axis/LabelProvider/LabelProviderBase2D.d.ts +4 -2
- package/Charting/Visuals/Axis/LabelProvider/LabelProviderBase2D.js +8 -2
- package/Charting/Visuals/Axis/LabelProvider/PieLabelProvider.d.ts +1 -0
- package/Charting/Visuals/Axis/LabelProvider/PieLabelProvider.js +1 -0
- package/Charting/Visuals/HeatmapLegend.d.ts +3 -2
- package/Charting/Visuals/HeatmapLegend.js +33 -12
- package/Charting/Visuals/Helpers/NativeObject.d.ts +8 -5
- package/Charting/Visuals/Helpers/NativeObject.js +42 -21
- package/Charting/Visuals/Helpers/drawLabel.js +3 -1
- package/Charting/Visuals/I2DSurfaceOptions.d.ts +0 -15
- package/Charting/Visuals/Legend/ManualLegend.d.ts +56 -0
- package/Charting/Visuals/Legend/ManualLegend.js +138 -0
- package/Charting/Visuals/Legend/SciChartLegend.js +4 -3
- package/Charting/Visuals/Legend/SciChartLegendBase.d.ts +65 -4
- package/Charting/Visuals/Legend/SciChartLegendBase.js +111 -23
- package/Charting/Visuals/Legend/SciChartPieLegend.js +1 -1
- package/Charting/Visuals/PointMarkers/BasePointMarker.d.ts +13 -1
- package/Charting/Visuals/PointMarkers/BasePointMarker.js +77 -19
- package/Charting/Visuals/PointMarkers/Constants.d.ts +2 -1
- package/Charting/Visuals/PointMarkers/Constants.js +1 -0
- package/Charting/Visuals/PointMarkers/IPointMarker.d.ts +2 -0
- package/Charting/Visuals/RenderableSeries/Animations/SeriesAnimation.js +4 -1
- package/Charting/Visuals/RenderableSeries/Animations/animationHelpers.d.ts +1 -1
- package/Charting/Visuals/RenderableSeries/BaseBandRenderableSeries.js +8 -7
- package/Charting/Visuals/RenderableSeries/BaseHeatmapRenderableSeries.d.ts +1 -0
- package/Charting/Visuals/RenderableSeries/BaseHeatmapRenderableSeries.js +5 -0
- package/Charting/Visuals/RenderableSeries/BaseOhlcRenderableSeries.js +10 -9
- package/Charting/Visuals/RenderableSeries/BaseRenderableSeries.d.ts +3 -2
- package/Charting/Visuals/RenderableSeries/BaseRenderableSeries.js +101 -69
- package/Charting/Visuals/RenderableSeries/BaseStackedCollection.js +18 -4
- package/Charting/Visuals/RenderableSeries/BaseStackedRenderableSeries.js +12 -3
- package/Charting/Visuals/RenderableSeries/DataLabels/BaseDataLabelProvider.d.ts +2 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/BaseDataLabelProvider.js +5 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/DataLabelProvider.js +6 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/DataLabelState.d.ts +1 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/DataLabelState.js +18 -5
- package/Charting/Visuals/RenderableSeries/DataLabels/NonUniformHeatmapDataLabelProvider.js +0 -1
- package/Charting/Visuals/RenderableSeries/DataLabels/TextDataLabelProvider.js +8 -2
- package/Charting/Visuals/RenderableSeries/DrawingProviders/BandSeriesDrawingProvider.d.ts +1 -0
- package/Charting/Visuals/RenderableSeries/DrawingProviders/BandSeriesDrawingProvider.js +35 -16
- package/Charting/Visuals/RenderableSeries/DrawingProviders/BaseSeriesDrawingProvider.d.ts +5 -4
- package/Charting/Visuals/RenderableSeries/DrawingProviders/BaseSeriesDrawingProvider.js +70 -33
- package/Charting/Visuals/RenderableSeries/DrawingProviders/BubbleSeriesDrawingProvider.d.ts +1 -0
- package/Charting/Visuals/RenderableSeries/DrawingProviders/BubbleSeriesDrawingProvider.js +30 -9
- package/Charting/Visuals/RenderableSeries/DrawingProviders/ColumnSeriesDrawingProvider.d.ts +1 -0
- package/Charting/Visuals/RenderableSeries/DrawingProviders/ColumnSeriesDrawingProvider.js +37 -16
- package/Charting/Visuals/RenderableSeries/DrawingProviders/HeatmapHelpers.d.ts +47 -0
- package/Charting/Visuals/RenderableSeries/DrawingProviders/HeatmapHelpers.js +258 -0
- package/Charting/Visuals/RenderableSeries/DrawingProviders/LineSeriesDrawingProvider.js +26 -2
- package/Charting/Visuals/RenderableSeries/DrawingProviders/MountainSeriesDrawingProvider.d.ts +1 -0
- package/Charting/Visuals/RenderableSeries/DrawingProviders/MountainSeriesDrawingProvider.js +34 -15
- package/Charting/Visuals/RenderableSeries/DrawingProviders/NonUniformHeatmapDrawingProvider.js +5 -230
- package/Charting/Visuals/RenderableSeries/DrawingProviders/OhlcSeriesDrawingProvider.d.ts +1 -0
- package/Charting/Visuals/RenderableSeries/DrawingProviders/OhlcSeriesDrawingProvider.js +62 -37
- package/Charting/Visuals/RenderableSeries/DrawingProviders/PointMarkerDrawingProvider.js +30 -3
- package/Charting/Visuals/RenderableSeries/DrawingProviders/UniformHeatmapDrawingProvider.d.ts +1 -0
- package/Charting/Visuals/RenderableSeries/DrawingProviders/UniformHeatmapDrawingProvider.js +4 -1
- package/Charting/Visuals/RenderableSeries/FastBubbleRenderableSeries.d.ts +0 -2
- package/Charting/Visuals/RenderableSeries/FastBubbleRenderableSeries.js +0 -4
- package/Charting/Visuals/RenderableSeries/FastTextRenderableSeries.d.ts +3 -0
- package/Charting/Visuals/RenderableSeries/FastTextRenderableSeries.js +10 -0
- package/Charting/Visuals/RenderableSeries/HitTest/BubbleSeriesHitTestProvider.d.ts +4 -0
- package/Charting/Visuals/RenderableSeries/HitTest/BubbleSeriesHitTestProvider.js +7 -0
- package/Charting/Visuals/RenderableSeries/HitTest/HitTestInfo.d.ts +4 -0
- package/Charting/Visuals/RenderableSeries/HitTest/HitTestInfo.js +9 -0
- package/Charting/Visuals/RenderableSeries/HoveredChangedArgs.d.ts +6 -1
- package/Charting/Visuals/RenderableSeries/HoveredChangedArgs.js +2 -1
- package/Charting/Visuals/RenderableSeries/IRenderableSeries.d.ts +1 -1
- package/Charting/Visuals/RenderableSeries/SelectionChangedArgs.d.ts +6 -1
- package/Charting/Visuals/RenderableSeries/SelectionChangedArgs.js +2 -1
- package/Charting/Visuals/RenderableSeries/ShaderEffect.d.ts +3 -2
- package/Charting/Visuals/RenderableSeries/ShaderEffect.js +29 -9
- package/Charting/Visuals/RenderableSeries/SplineBandRenderableSeries.js +50 -1
- package/Charting/Visuals/RenderableSeries/SplineLineRenderableSeries.js +13 -1
- package/Charting/Visuals/RenderableSeries/SplineMountainRenderableSeries.js +13 -1
- package/Charting/Visuals/RenderableSeries/StackedColumnCollection.js +3 -0
- package/Charting/Visuals/RenderableSeries/StackedMountainCollection.d.ts +0 -2
- package/Charting/Visuals/RenderableSeries/StackedMountainCollection.js +4 -4
- package/Charting/Visuals/RenderableSeries/StackedMountainRenderableSeries.d.ts +1 -0
- package/Charting/Visuals/RenderableSeries/StackedMountainRenderableSeries.js +8 -0
- package/Charting/Visuals/RenderableSeries/XyScatterRenderableSeries.d.ts +1 -2
- package/Charting/Visuals/RenderableSeries/XyScatterRenderableSeries.js +8 -3
- package/Charting/Visuals/RubberBandSvgRect/RubberBandSvgRect.d.ts +7 -1
- package/Charting/Visuals/RubberBandSvgRect/RubberBandSvgRect.js +38 -12
- package/Charting/Visuals/SciChartDefaults.d.ts +10 -0
- package/Charting/Visuals/SciChartDefaults.js +10 -0
- package/Charting/Visuals/SciChartOverview.d.ts +2 -1
- package/Charting/Visuals/SciChartOverview.js +28 -8
- package/Charting/Visuals/SciChartPieSurface/SciChartPieSurface.d.ts +16 -3
- package/Charting/Visuals/SciChartPieSurface/SciChartPieSurface.js +125 -60
- package/Charting/Visuals/SciChartSurface.d.ts +4 -41
- package/Charting/Visuals/SciChartSurface.js +52 -66
- package/Charting/Visuals/SciChartSurfaceBase.d.ts +117 -13
- package/Charting/Visuals/SciChartSurfaceBase.js +177 -32
- package/Charting/Visuals/TextureManager/CanvasTexture.d.ts +2 -1
- package/Charting/Visuals/TextureManager/CanvasTexture.js +37 -17
- package/Charting/Visuals/TextureManager/TextureManager.d.ts +2 -1
- package/Charting/Visuals/TextureManager/TextureManager.js +27 -7
- package/Charting/Visuals/createMaster.d.ts +7 -2
- package/Charting/Visuals/createMaster.js +140 -45
- package/Charting/Visuals/createSingle.d.ts +0 -2
- package/Charting/Visuals/createSingle.js +46 -11
- package/Charting/Visuals/licenseManager2D.d.ts +7 -5
- package/Charting/Visuals/licenseManager2D.js +105 -53
- package/Charting/Visuals/loader.js +3 -1
- package/Charting/Visuals/sciChartInitCommon.d.ts +1 -1
- package/Charting/Visuals/sciChartInitCommon.js +5 -1
- package/Charting3D/CameraController.d.ts +1 -1
- package/Charting3D/CameraController.js +21 -7
- package/Charting3D/ChartModifiers/ChartModifierBase3D.d.ts +1 -0
- package/Charting3D/ChartModifiers/ChartModifierBase3D.js +4 -1
- package/Charting3D/ChartModifiers/OrbitModifier3D.d.ts +17 -5
- package/Charting3D/ChartModifiers/OrbitModifier3D.js +62 -26
- package/Charting3D/ChartModifiers/PinchZoomModifier3D.d.ts +81 -0
- package/Charting3D/ChartModifiers/PinchZoomModifier3D.js +164 -0
- package/Charting3D/ChartModifiers/ResetCamera3DModifier.d.ts +1 -1
- package/Charting3D/ChartModifiers/ResetCamera3DModifier.js +1 -2
- package/Charting3D/ChartModifiers/TooltipModifier3D.d.ts +122 -0
- package/Charting3D/ChartModifiers/TooltipModifier3D.js +427 -0
- package/Charting3D/I3DSurfaceOptions.d.ts +10 -0
- package/Charting3D/I3DSurfaceOptions.js +2 -0
- package/Charting3D/Model/DataSeries/BaseDataSeries3D.d.ts +2 -1
- package/Charting3D/Model/DataSeries/BaseDataSeries3D.js +27 -6
- package/Charting3D/Model/DataSeries/BaseGridDataSeries3D.d.ts +1 -1
- package/Charting3D/Model/DataSeries/BaseGridDataSeries3D.js +2 -2
- package/Charting3D/Model/DataSeries/IPointMetadata3D.d.ts +7 -2
- package/Charting3D/Model/DataSeries/UniformGridDataSeries3D.d.ts +8 -0
- package/Charting3D/Model/DataSeries/UniformGridDataSeries3D.js +12 -0
- package/Charting3D/Model/DataSeries/XyzDataSeries3D.d.ts +2 -2
- package/Charting3D/Model/DataSeries/XyzDataSeries3D.js +1 -1
- package/Charting3D/Vector3.d.ts +5 -0
- package/Charting3D/Vector3.js +7 -0
- package/Charting3D/Visuals/Annotations/TooltipSvgAnnotation3D.d.ts +88 -0
- package/Charting3D/Visuals/Annotations/TooltipSvgAnnotation3D.js +291 -0
- package/Charting3D/Visuals/Axis/AxisBase3D.d.ts +29 -3
- package/Charting3D/Visuals/Axis/AxisBase3D.js +46 -18
- package/Charting3D/Visuals/Axis/AxisBase3DLabelStyle.js +2 -1
- package/Charting3D/Visuals/Axis/AxisCubeEntity.d.ts +0 -4
- package/Charting3D/Visuals/Axis/AxisCubeEntity.js +3 -6
- package/Charting3D/Visuals/Axis/IAxisDescriptor.d.ts +2 -2
- package/Charting3D/Visuals/Axis/IAxisDescriptor.js +2 -2
- package/Charting3D/Visuals/Axis/NumericAxis3D.d.ts +3 -2
- package/Charting3D/Visuals/Axis/NumericAxis3D.js +7 -3
- package/Charting3D/Visuals/Primitives/BaseSceneEntity3D.d.ts +41 -30
- package/Charting3D/Visuals/Primitives/BaseSceneEntity3D.js +78 -26
- package/Charting3D/Visuals/Primitives/CrosshairLinesSceneEntity.d.ts +47 -0
- package/Charting3D/Visuals/Primitives/CrosshairLinesSceneEntity.js +106 -0
- package/Charting3D/Visuals/Primitives/EntityIdProvider.d.ts +29 -0
- package/Charting3D/Visuals/Primitives/EntityIdProvider.js +28 -0
- package/Charting3D/Visuals/Primitives/PointLine3DSceneEntity.d.ts +51 -0
- package/Charting3D/Visuals/Primitives/PointLine3DSceneEntity.js +190 -0
- package/Charting3D/Visuals/Primitives/RenderableSeriesSceneEntity.d.ts +12 -0
- package/Charting3D/Visuals/Primitives/RenderableSeriesSceneEntity.js +14 -0
- package/Charting3D/Visuals/Primitives/ScatterPointsSceneEntity.d.ts +11 -0
- package/Charting3D/Visuals/Primitives/ScatterPointsSceneEntity.js +23 -2
- package/Charting3D/Visuals/Primitives/SurfaceMeshSceneEntity.d.ts +3 -0
- package/Charting3D/Visuals/Primitives/SurfaceMeshSceneEntity.js +17 -1
- package/Charting3D/Visuals/RenderableSeries/BaseRenderableSeries3D.d.ts +21 -1
- package/Charting3D/Visuals/RenderableSeries/BaseRenderableSeries3D.js +78 -12
- package/Charting3D/Visuals/RenderableSeries/Constants.d.ts +2 -0
- package/Charting3D/Visuals/RenderableSeries/Constants.js +2 -0
- package/Charting3D/Visuals/RenderableSeries/ESeriesType.d.ts +2 -1
- package/Charting3D/Visuals/RenderableSeries/ESeriesType.js +1 -0
- package/Charting3D/Visuals/RenderableSeries/HitTestInfo3D.d.ts +37 -0
- package/Charting3D/Visuals/RenderableSeries/HitTestInfo3D.js +22 -0
- package/Charting3D/Visuals/RenderableSeries/PointLineRenderableSeries3D.d.ts +64 -0
- package/Charting3D/Visuals/RenderableSeries/PointLineRenderableSeries3D.js +105 -0
- package/Charting3D/Visuals/RenderableSeries/SeriesInfo3D.d.ts +51 -0
- package/Charting3D/Visuals/RenderableSeries/SeriesInfo3D.js +32 -0
- package/Charting3D/Visuals/RenderableSeries/SurfaceMeshSeriesInfo3D.d.ts +15 -0
- package/Charting3D/Visuals/RenderableSeries/SurfaceMeshSeriesInfo3D.js +112 -0
- package/Charting3D/Visuals/RenderableSeries/XyzSeriesInfo3D.d.ts +20 -0
- package/Charting3D/Visuals/RenderableSeries/XyzSeriesInfo3D.js +60 -0
- package/Charting3D/Visuals/RootSceneEntity.d.ts +0 -4
- package/Charting3D/Visuals/RootSceneEntity.js +3 -8
- package/Charting3D/Visuals/SciChart3DRenderer.d.ts +1 -0
- package/Charting3D/Visuals/SciChart3DRenderer.js +26 -0
- package/Charting3D/Visuals/SciChart3DSurface.d.ts +55 -7
- package/Charting3D/Visuals/SciChart3DSurface.js +136 -13
- package/Charting3D/Visuals/ViewportManager3DBase.d.ts +4 -0
- package/Charting3D/Visuals/ViewportManager3DBase.js +7 -1
- package/Charting3D/Visuals/createMaster3d.d.ts +1 -2
- package/Charting3D/Visuals/createMaster3d.js +81 -14
- package/Charting3D/Visuals/createSingle3d.js +34 -4
- package/Charting3D/Visuals/licenseManager3D.js +29 -25
- package/Core/BuildStamp.d.ts +1 -1
- package/Core/BuildStamp.js +2 -2
- package/Core/DeletableEntity.d.ts +34 -0
- package/Core/DeletableEntity.js +138 -0
- package/Core/Globals.d.ts +11 -0
- package/Core/Globals.js +13 -0
- package/Core/Guard.d.ts +6 -0
- package/Core/Guard.js +10 -0
- package/Core/Mouse/MouseManager.d.ts +23 -0
- package/Core/Mouse/MouseManager.js +53 -0
- package/Core/Telemetry.js +4 -6
- package/_wasm/scichart.browser.js +1 -1
- package/_wasm/scichart2d.data +0 -0
- package/_wasm/scichart2d.js +4 -294
- package/_wasm/scichart2d.wasm +0 -0
- package/_wasm/scichart3d.data +0 -0
- package/_wasm/scichart3d.js +4 -294
- package/_wasm/scichart3d.wasm +0 -0
- package/index.d.ts +42 -2
- package/index.dev.js +68876 -0
- package/index.js +81 -27
- package/index.min.js +1 -1
- package/package.json +3 -4
- package/types/ChartModifierType.d.ts +2 -0
- package/types/ChartModifierType.js +2 -0
- package/types/DefaultRenderLayer.d.ts +9 -8
- package/types/DefaultRenderLayer.js +9 -8
- package/types/NumberArray.d.ts +1 -0
- package/types/NumberArray.js +12 -1
- package/types/SceneEntityType.d.ts +13 -5
- package/types/SceneEntityType.js +13 -5
- package/types/TSciChart.d.ts +37 -8
- package/types/TSciChart3D.d.ts +126 -7
- package/types/licensingClasses.d.ts +2 -1
- package/types/licensingClasses.js +1 -0
- package/utils/MemoryUsageHelper.d.ts +92 -0
- package/utils/MemoryUsageHelper.js +221 -0
- package/utils/array.d.ts +8 -0
- package/utils/array.js +58 -1
- package/utils/colorUtil.d.ts +7 -0
- package/utils/colorUtil.js +13 -1
- package/utils/logger.d.ts +2 -0
- package/utils/logger.js +11 -0
- package/utils/parseColor.js +19 -4
|
@@ -1,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++) {
|
|
@@ -49,6 +64,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
49
64
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
50
65
|
exports.SciChartOverview = void 0;
|
|
51
66
|
var buildSeries_1 = require("../../Builder/buildSeries");
|
|
67
|
+
var DeletableEntity_1 = require("../../Core/DeletableEntity");
|
|
52
68
|
var NumberRange_1 = require("../../Core/NumberRange");
|
|
53
69
|
var AutoRange_1 = require("../../types/AutoRange");
|
|
54
70
|
var AxisType_1 = require("../../types/AxisType");
|
|
@@ -66,14 +82,17 @@ var SciChartSurface_1 = require("./SciChartSurface");
|
|
|
66
82
|
* @remarks
|
|
67
83
|
* It is possible to specify options to customize style and behavior of the component.
|
|
68
84
|
*/
|
|
69
|
-
var SciChartOverview = /** @class */ (function () {
|
|
85
|
+
var SciChartOverview = /** @class */ (function (_super) {
|
|
86
|
+
__extends(SciChartOverview, _super);
|
|
70
87
|
function SciChartOverview(parentSciChartSurface, overviewSciChartSurface, wasmContext, rangeSelectionModifier, overviewXAxis, overviewYAxis) {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
88
|
+
var _this = _super.call(this) || this;
|
|
89
|
+
_this.overviewXAxisProperty = overviewXAxis;
|
|
90
|
+
_this.overviewYAxisProperty = overviewYAxis;
|
|
91
|
+
_this.rangeSelectionModifierProperty = rangeSelectionModifier;
|
|
92
|
+
_this.parentSciChartSurfaceProperty = parentSciChartSurface;
|
|
93
|
+
_this.overviewSciChartSurfaceProperty = overviewSciChartSurface;
|
|
94
|
+
_this.overviewWasmContext = wasmContext;
|
|
95
|
+
return _this;
|
|
77
96
|
}
|
|
78
97
|
/**
|
|
79
98
|
* Creates a {@link SciChartOverview} and {@link TSciChart | WebAssembly Context} to occupy the div by element ID in your DOM.
|
|
@@ -153,9 +172,10 @@ var SciChartOverview = /** @class */ (function () {
|
|
|
153
172
|
SciChartOverview.prototype.delete = function () {
|
|
154
173
|
var _a;
|
|
155
174
|
(_a = this.overviewSciChartSurface) === null || _a === void 0 ? void 0 : _a.delete();
|
|
175
|
+
this.overviewWasmContext = undefined;
|
|
156
176
|
};
|
|
157
177
|
return SciChartOverview;
|
|
158
|
-
}());
|
|
178
|
+
}(DeletableEntity_1.DeletableEntity));
|
|
159
179
|
exports.SciChartOverview = SciChartOverview;
|
|
160
180
|
/** @ignore */
|
|
161
181
|
var createSciChartOverview = function (originalSciChartSurface, overviewRootElement, options) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { ISciChartPieDefinition } from "../../../Builder/buildSurface";
|
|
2
|
+
import { DeletableEntity } from "../../../Core/DeletableEntity";
|
|
3
|
+
import { EventHandler } from "../../../Core/EventHandler";
|
|
2
4
|
import { IDeletable } from "../../../Core/IDeletable";
|
|
3
5
|
import { ObservableArray } from "../../../Core/ObservableArray";
|
|
4
6
|
import { Thickness } from "../../../Core/Thickness";
|
|
@@ -10,7 +12,7 @@ import { TTextStyle } from "../Axis/AxisCore";
|
|
|
10
12
|
import { PieLabelProvider } from "../Axis/LabelProvider/PieLabelProvider";
|
|
11
13
|
import { IEventSubscriptionItem } from "../Legend/SciChartLegendBase";
|
|
12
14
|
import { SciChartPieLegend } from "../Legend/SciChartPieLegend";
|
|
13
|
-
import { ISciChartSurfaceBase } from "../SciChartSurfaceBase";
|
|
15
|
+
import { ISciChartSurfaceBase, TSciChartDestination } from "../SciChartSurfaceBase";
|
|
14
16
|
import { IPieSurfaceOptions } from "./IPieSurfaceOptions";
|
|
15
17
|
import { IPieSegment } from "./PieSegment/IPieSegment";
|
|
16
18
|
export declare enum ESizingMode {
|
|
@@ -46,7 +48,7 @@ export declare enum EPieValueMode {
|
|
|
46
48
|
* It is possible to have more than one {@link SciChartPieSurface} on screen at the same time.
|
|
47
49
|
* {@link SciChartPieSurface | SciChartPieSurfaces} scale to fit the parent DIV where they are hosted. Use CSS to position the DIV.
|
|
48
50
|
*/
|
|
49
|
-
export declare class SciChartPieSurface implements ISciChartSurfaceBase {
|
|
51
|
+
export declare class SciChartPieSurface extends DeletableEntity implements ISciChartSurfaceBase {
|
|
50
52
|
/**
|
|
51
53
|
* Creates a {@link SciChartPieSurface} to occupy the div by element ID in your DOM.
|
|
52
54
|
* @remarks This method is async and must be awaited
|
|
@@ -75,9 +77,17 @@ export declare class SciChartPieSurface implements ISciChartSurfaceBase {
|
|
|
75
77
|
*/
|
|
76
78
|
legend: SciChartPieLegend;
|
|
77
79
|
onCreatedName: string;
|
|
80
|
+
id: string;
|
|
81
|
+
/**
|
|
82
|
+
* An event handler which notifies its subscribers when a render operation has finished. Use this
|
|
83
|
+
* to time render performance, or to update elements of the chart or your UI on redraw.
|
|
84
|
+
*/
|
|
85
|
+
rendered: EventHandler<void>;
|
|
78
86
|
protected widthAspect: number;
|
|
79
87
|
protected heightAspect: number;
|
|
80
88
|
protected labelProviderProperty: PieLabelProvider;
|
|
89
|
+
protected isDeletedProperty: boolean;
|
|
90
|
+
protected destinations: TSciChartDestination[];
|
|
81
91
|
private pieTypeProperty;
|
|
82
92
|
private holeRadiusProperty;
|
|
83
93
|
private holeRadiusSizingModeProperty;
|
|
@@ -97,6 +107,7 @@ export declare class SciChartPieSurface implements ISciChartSurfaceBase {
|
|
|
97
107
|
private labelStyleProperty;
|
|
98
108
|
private resizeSubscriptionToken;
|
|
99
109
|
constructor(canvases?: TSciChartSurfaceCanvases, options?: IPieSurfaceOptions);
|
|
110
|
+
get isDeleted(): boolean;
|
|
100
111
|
/**
|
|
101
112
|
* Gets or sets a {@link LabelProvider} - a class which is responsible for formatting axis labels and cursor labels from numeric values
|
|
102
113
|
*/
|
|
@@ -125,6 +136,8 @@ export declare class SciChartPieSurface implements ISciChartSurfaceBase {
|
|
|
125
136
|
* Used internally - gets the previous {@link IThemeProvider}
|
|
126
137
|
*/
|
|
127
138
|
get previousThemeProvider(): IThemeProvider;
|
|
139
|
+
setDestinations(destinations: TSciChartDestination[]): void;
|
|
140
|
+
get otherSurfaces(): ISciChartSurfaceBase[];
|
|
128
141
|
/**
|
|
129
142
|
* Call invalidateElement() to trigger a redraw of the {@link SciChartPieSurface}. SciChart's rendering
|
|
130
143
|
* engine will schedule a redraw a the next time the renderer is free.
|
|
@@ -137,7 +150,7 @@ export declare class SciChartPieSurface implements ISciChartSurfaceBase {
|
|
|
137
150
|
/**
|
|
138
151
|
* @inheritDoc
|
|
139
152
|
*/
|
|
140
|
-
delete(
|
|
153
|
+
delete(): void;
|
|
141
154
|
/**
|
|
142
155
|
* Used Internally. Cleans up the chart internal parts, subscriptions, etc.
|
|
143
156
|
*/
|
|
@@ -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++) {
|
|
@@ -23,19 +38,20 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
23
38
|
exports.addEventListenerToPieSegment = exports.SciChartPieSurface = exports.EPieValueMode = exports.EPieType = exports.ESizingMode = void 0;
|
|
24
39
|
var chartBuilder_1 = require("../../../Builder/chartBuilder");
|
|
25
40
|
var classFactory_1 = require("../../../Builder/classFactory");
|
|
26
|
-
var createMaster3d_1 = require("../../../Charting3D/Visuals/createMaster3d");
|
|
27
41
|
var app_1 = require("../../../constants/app");
|
|
28
42
|
var EasingFunctions_1 = require("../../../Core/Animations/EasingFunctions");
|
|
43
|
+
var DeletableEntity_1 = require("../../../Core/DeletableEntity");
|
|
29
44
|
var Deleter_1 = require("../../../Core/Deleter");
|
|
45
|
+
var EventHandler_1 = require("../../../Core/EventHandler");
|
|
46
|
+
var Globals_1 = require("../../../Core/Globals");
|
|
30
47
|
var ObservableArray_1 = require("../../../Core/ObservableArray");
|
|
31
48
|
var Rect_1 = require("../../../Core/Rect");
|
|
32
49
|
var BaseType_1 = require("../../../types/BaseType");
|
|
33
50
|
var SciChartSurfaceType_1 = require("../../../types/SciChartSurfaceType");
|
|
51
|
+
var guid_1 = require("../../../utils/guid");
|
|
34
52
|
var SciChartJSDarkTheme_1 = require("../../Themes/SciChartJSDarkTheme");
|
|
35
53
|
var annotationHelpers_1 = require("../Annotations/annotationHelpers");
|
|
36
54
|
var PieLabelProvider_1 = require("../Axis/LabelProvider/PieLabelProvider");
|
|
37
|
-
var createMaster_1 = require("../createMaster");
|
|
38
|
-
var createSingle_1 = require("../createSingle");
|
|
39
55
|
var SciChartPieLegend_1 = require("../Legend/SciChartPieLegend");
|
|
40
56
|
var sciChartInitCommon_1 = require("../sciChartInitCommon");
|
|
41
57
|
var SciChartSurfaceBase_1 = require("../SciChartSurfaceBase");
|
|
@@ -81,79 +97,88 @@ var EPieValueMode;
|
|
|
81
97
|
* It is possible to have more than one {@link SciChartPieSurface} on screen at the same time.
|
|
82
98
|
* {@link SciChartPieSurface | SciChartPieSurfaces} scale to fit the parent DIV where they are hosted. Use CSS to position the DIV.
|
|
83
99
|
*/
|
|
84
|
-
var SciChartPieSurface = /** @class */ (function () {
|
|
100
|
+
var SciChartPieSurface = /** @class */ (function (_super) {
|
|
101
|
+
__extends(SciChartPieSurface, _super);
|
|
85
102
|
function SciChartPieSurface(canvases, options) {
|
|
86
103
|
if (canvases === void 0) { canvases = {}; }
|
|
87
104
|
var _this = this;
|
|
88
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
89
|
-
|
|
105
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
106
|
+
_this = _super.call(this) || this;
|
|
107
|
+
_this.animate = true;
|
|
90
108
|
/* The number of frames for the animation. Default 30. A frame will be trigged every 20ms. */
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
109
|
+
_this.animationFrames = 30;
|
|
110
|
+
/**
|
|
111
|
+
* An event handler which notifies its subscribers when a render operation has finished. Use this
|
|
112
|
+
* to time render performance, or to update elements of the chart or your UI on redraw.
|
|
113
|
+
*/
|
|
114
|
+
_this.rendered = new EventHandler_1.EventHandler();
|
|
115
|
+
_this.pieTypeProperty = EPieType.Pie;
|
|
116
|
+
_this.holeRadiusProperty = 0.5;
|
|
117
|
+
_this.holeRadiusSizingModeProperty = ESizingMode.Relative;
|
|
118
|
+
_this.seriesSpacingProperty = 0;
|
|
119
|
+
_this.labelRadiusProperty = 1;
|
|
120
|
+
_this.titleDivs = [];
|
|
121
|
+
_this.sweepAnimationDone = false;
|
|
122
|
+
_this.suspendUpdate = false;
|
|
123
|
+
_this.themeProviderProperty = new SciChartJSDarkTheme_1.SciChartJSDarkTheme();
|
|
124
|
+
_this.previousThemeProviderProperty = new SciChartJSDarkTheme_1.SciChartJSDarkTheme();
|
|
125
|
+
_this.deletables = [];
|
|
126
|
+
_this.valueModeProperty = EPieValueMode.Percentage;
|
|
127
|
+
_this.labelStyleProperty = {
|
|
105
128
|
fontSize: 14,
|
|
106
129
|
fontFamily: "Arial",
|
|
107
130
|
color: "#1e323d",
|
|
108
131
|
fontWeight: "bold"
|
|
109
132
|
};
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
var
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
133
|
+
_this.id = (_a = options === null || options === void 0 ? void 0 : options.id) !== null && _a !== void 0 ? _a : (0, guid_1.generateGuid)();
|
|
134
|
+
_this.domChartRoot = canvases.domChartRoot;
|
|
135
|
+
_this.domCanvas2D = canvases.domCanvas2D;
|
|
136
|
+
_this.domSvgContainer = canvases.domSvgContainer;
|
|
137
|
+
_this.domSvgAdornerLayer = canvases.domSvgAdornerLayer;
|
|
138
|
+
_this.domDivContainer = canvases.domDivContainer;
|
|
139
|
+
var width = _this.domCanvas2D.width;
|
|
140
|
+
var height = _this.domCanvas2D.height;
|
|
141
|
+
_this.viewRect = new Rect_1.Rect(0, 0, width, height);
|
|
142
|
+
_this.resizeSubscriptionToken = sciChartInitCommon_1.default.subscribeToResize(canvases.domChartRoot, canvases.aspect, _this);
|
|
143
|
+
_this.drawChart = _this.drawChart.bind(_this);
|
|
144
|
+
_this.deleteInternals = _this.deleteInternals.bind(_this);
|
|
145
|
+
_this.invalidateElement = _this.invalidateElement.bind(_this);
|
|
146
|
+
_this.detachPieSegment = _this.detachPieSegment.bind(_this);
|
|
147
|
+
_this.attachPieSegment = _this.attachPieSegment.bind(_this);
|
|
148
|
+
_this.pieSegments = new ObservableArray_1.ObservableArray();
|
|
149
|
+
_this.pieSegments.collectionChanged.subscribe(function (args) {
|
|
126
150
|
var _a, _b;
|
|
127
151
|
(_a = args.getOldItems()) === null || _a === void 0 ? void 0 : _a.forEach(_this.detachPieSegment);
|
|
128
152
|
(_b = args.getNewItems()) === null || _b === void 0 ? void 0 : _b.forEach(_this.attachPieSegment);
|
|
129
153
|
// Do this only after all changes have been processed
|
|
130
154
|
_this.invalidateElement();
|
|
131
155
|
});
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
156
|
+
_this.applySciChartBackground(SciChartSurfaceBase_1.SciChartSurfaceBase.DEFAULT_THEME.sciChartBackground);
|
|
157
|
+
_this.legend = new SciChartPieLegend_1.SciChartPieLegend();
|
|
158
|
+
_this.legend.setRootDiv(_this.domDivContainer);
|
|
159
|
+
_this.legend.setPieSegmentArray(_this.pieSegments.asArray());
|
|
160
|
+
_this.legend.setInvalidateParentSurface(_this.invalidateElement);
|
|
161
|
+
_this.legend.setParentSurface(_this);
|
|
162
|
+
_this.heightAspect = (_b = options === null || options === void 0 ? void 0 : options.heightAspect) !== null && _b !== void 0 ? _b : 0;
|
|
163
|
+
_this.widthAspect = (_c = options === null || options === void 0 ? void 0 : options.widthAspect) !== null && _c !== void 0 ? _c : 0;
|
|
164
|
+
_this.pieTypeProperty = (_d = options === null || options === void 0 ? void 0 : options.pieType) !== null && _d !== void 0 ? _d : _this.pieType;
|
|
165
|
+
_this.holeRadiusProperty = (_e = options === null || options === void 0 ? void 0 : options.holeRadius) !== null && _e !== void 0 ? _e : _this.holeRadius;
|
|
166
|
+
_this.animate = (_f = options === null || options === void 0 ? void 0 : options.animate) !== null && _f !== void 0 ? _f : _this.animate;
|
|
167
|
+
_this.holeRadiusSizingModeProperty = (_g = options === null || options === void 0 ? void 0 : options.holeRadiusSizingMode) !== null && _g !== void 0 ? _g : _this.holeRadiusSizingModeProperty;
|
|
168
|
+
_this.seriesSpacingProperty = (_h = options === null || options === void 0 ? void 0 : options.seriesSpacing) !== null && _h !== void 0 ? _h : _this.seriesSpacingProperty;
|
|
169
|
+
_this.legend.showLegend = (_j = options === null || options === void 0 ? void 0 : options.showLegend) !== null && _j !== void 0 ? _j : _this.legend.showLegend;
|
|
170
|
+
_this.legend.animate = (_k = options === null || options === void 0 ? void 0 : options.animateLegend) !== null && _k !== void 0 ? _k : _this.legend.animate;
|
|
171
|
+
_this.legend.showCheckboxes = (_l = options === null || options === void 0 ? void 0 : options.showLegendCheckBoxes) !== null && _l !== void 0 ? _l : _this.legend.showCheckboxes;
|
|
172
|
+
_this.legend.showSeriesMarkers = (_m = options === null || options === void 0 ? void 0 : options.showLegendSeriesMarkers) !== null && _m !== void 0 ? _m : _this.legend.showSeriesMarkers;
|
|
173
|
+
_this.paddingProperty = (_o = options === null || options === void 0 ? void 0 : options.padding) !== null && _o !== void 0 ? _o : _this.paddingProperty;
|
|
150
174
|
if (options === null || options === void 0 ? void 0 : options.labelProvider) {
|
|
151
175
|
if (!("getSegmentText" in (options === null || options === void 0 ? void 0 : options.labelProvider))) {
|
|
152
176
|
options.labelProvider = (0, classFactory_1.createType)(BaseType_1.EBaseType.LabelProvider, options.labelProvider.type, undefined, options.labelProvider.options);
|
|
153
177
|
}
|
|
154
178
|
}
|
|
155
|
-
|
|
156
|
-
|
|
179
|
+
_this.labelProvider = (_p = options === null || options === void 0 ? void 0 : options.labelProvider) !== null && _p !== void 0 ? _p : new PieLabelProvider_1.PieLabelProvider();
|
|
180
|
+
_this.valueModeProperty = (_q = options === null || options === void 0 ? void 0 : options.valueMode) !== null && _q !== void 0 ? _q : _this.valueModeProperty;
|
|
181
|
+
return _this;
|
|
157
182
|
}
|
|
158
183
|
/**
|
|
159
184
|
* Creates a {@link SciChartPieSurface} to occupy the div by element ID in your DOM.
|
|
@@ -165,17 +190,32 @@ var SciChartPieSurface = /** @class */ (function () {
|
|
|
165
190
|
SciChartPieSurface.create = function (divElement, options) {
|
|
166
191
|
var _a, _b;
|
|
167
192
|
(0, chartBuilder_1.ensureRegistrations)();
|
|
168
|
-
var canvases = sciChartInitCommon_1.default.initCanvas(divElement, (_a = options === null || options === void 0 ? void 0 : options.widthAspect) !== null && _a !== void 0 ? _a : 0, (_b = options === null || options === void 0 ? void 0 : options.heightAspect) !== null && _b !== void 0 ? _b : 0, sciChartInitCommon_1.default.ECanvasType.svg);
|
|
193
|
+
var canvases = sciChartInitCommon_1.default.initCanvas(divElement, (_a = options === null || options === void 0 ? void 0 : options.widthAspect) !== null && _a !== void 0 ? _a : 0, (_b = options === null || options === void 0 ? void 0 : options.heightAspect) !== null && _b !== void 0 ? _b : 0, sciChartInitCommon_1.default.ECanvasType.svg, undefined, options === null || options === void 0 ? void 0 : options.touchAction);
|
|
169
194
|
return new Promise(function (resolve) {
|
|
170
|
-
var
|
|
195
|
+
var _a, _b, _c;
|
|
196
|
+
var conflictingRenderContextDestinations = __spreadArray(__spreadArray(__spreadArray(__spreadArray([], Globals_1.sciChartDestinations, true), Globals_1.sciChart3DDestinations, true), Globals_1.sciChartSingleDestinations, true), Globals_1.sciChartPieDestinations, true).filter(function (destination) { return destination.sciChartSurface.domChartRoot.id === canvases.domChartRoot.id; });
|
|
171
197
|
conflictingRenderContextDestinations.forEach(function (destination) { return destination.sciChartSurface.delete(); });
|
|
172
198
|
options = SciChartSurfaceBase_1.SciChartSurfaceBase.resolveOptions(options);
|
|
173
199
|
var scps = new SciChartPieSurface(canvases, options);
|
|
174
200
|
scps.applyTheme(options === null || options === void 0 ? void 0 : options.theme);
|
|
201
|
+
Globals_1.sciChartPieDestinations.push({
|
|
202
|
+
canvasElementId: (_a = canvases.domCanvas2D) === null || _a === void 0 ? void 0 : _a.id,
|
|
203
|
+
sciChartSurface: scps,
|
|
204
|
+
width: (_b = canvases.domCanvas2D) === null || _b === void 0 ? void 0 : _b.width,
|
|
205
|
+
height: (_c = canvases.domCanvas2D) === null || _c === void 0 ? void 0 : _c.height
|
|
206
|
+
});
|
|
207
|
+
scps.setDestinations(Globals_1.sciChartPieDestinations);
|
|
175
208
|
// setTimeout is used to make function async like createSciChartSurface, to have a consistent API
|
|
176
209
|
setTimeout(function () { return resolve(scps); }, 0);
|
|
177
210
|
});
|
|
178
211
|
};
|
|
212
|
+
Object.defineProperty(SciChartPieSurface.prototype, "isDeleted", {
|
|
213
|
+
get: function () {
|
|
214
|
+
return this.isDeletedProperty;
|
|
215
|
+
},
|
|
216
|
+
enumerable: false,
|
|
217
|
+
configurable: true
|
|
218
|
+
});
|
|
179
219
|
Object.defineProperty(SciChartPieSurface.prototype, "labelProvider", {
|
|
180
220
|
/**
|
|
181
221
|
* Gets or sets a {@link LabelProvider} - a class which is responsible for formatting axis labels and cursor labels from numeric values
|
|
@@ -244,6 +284,20 @@ var SciChartPieSurface = /** @class */ (function () {
|
|
|
244
284
|
enumerable: false,
|
|
245
285
|
configurable: true
|
|
246
286
|
});
|
|
287
|
+
SciChartPieSurface.prototype.setDestinations = function (destinations) {
|
|
288
|
+
this.destinations = destinations;
|
|
289
|
+
};
|
|
290
|
+
Object.defineProperty(SciChartPieSurface.prototype, "otherSurfaces", {
|
|
291
|
+
get: function () {
|
|
292
|
+
var _this = this;
|
|
293
|
+
if (!this.destinations) {
|
|
294
|
+
return [];
|
|
295
|
+
}
|
|
296
|
+
return this.destinations.map(function (el) { return el.sciChartSurface; }).filter(function (el2) { return el2 !== _this; });
|
|
297
|
+
},
|
|
298
|
+
enumerable: false,
|
|
299
|
+
configurable: true
|
|
300
|
+
});
|
|
247
301
|
/**
|
|
248
302
|
* Call invalidateElement() to trigger a redraw of the {@link SciChartPieSurface}. SciChart's rendering
|
|
249
303
|
* engine will schedule a redraw a the next time the renderer is free.
|
|
@@ -269,9 +323,19 @@ var SciChartPieSurface = /** @class */ (function () {
|
|
|
269
323
|
/**
|
|
270
324
|
* @inheritDoc
|
|
271
325
|
*/
|
|
272
|
-
SciChartPieSurface.prototype.delete = function (
|
|
326
|
+
SciChartPieSurface.prototype.delete = function () {
|
|
327
|
+
var _this = this;
|
|
328
|
+
var _a;
|
|
273
329
|
this.deleteInternals();
|
|
330
|
+
this.legend = (0, Deleter_1.deleteSafe)(this.legend);
|
|
331
|
+
this.labelProvider = (0, Deleter_1.deleteSafe)(this.labelProvider);
|
|
274
332
|
this.resizeSubscriptionToken = (0, Deleter_1.deleteSafe)(this.resizeSubscriptionToken);
|
|
333
|
+
// TODO probably this should be moved outside for Proxy === this comparison issue exists
|
|
334
|
+
var currentSurfaceIndex = (_a = this.destinations) === null || _a === void 0 ? void 0 : _a.findIndex(function (dest) { return dest.sciChartSurface.id === _this.id; });
|
|
335
|
+
if (currentSurfaceIndex >= 0) {
|
|
336
|
+
this.destinations.splice(currentSurfaceIndex, 1);
|
|
337
|
+
}
|
|
338
|
+
this.isDeletedProperty = true;
|
|
275
339
|
};
|
|
276
340
|
/**
|
|
277
341
|
* Used Internally. Cleans up the chart internal parts, subscriptions, etc.
|
|
@@ -632,6 +696,7 @@ var SciChartPieSurface = /** @class */ (function () {
|
|
|
632
696
|
}
|
|
633
697
|
});
|
|
634
698
|
}
|
|
699
|
+
this.rendered.raiseEvent();
|
|
635
700
|
};
|
|
636
701
|
/**
|
|
637
702
|
* @description Draws pie chart itself
|
|
@@ -801,7 +866,7 @@ var SciChartPieSurface = /** @class */ (function () {
|
|
|
801
866
|
this.domCanvas2D.style.background = htmlColor;
|
|
802
867
|
};
|
|
803
868
|
return SciChartPieSurface;
|
|
804
|
-
}());
|
|
869
|
+
}(DeletableEntity_1.DeletableEntity));
|
|
805
870
|
exports.SciChartPieSurface = SciChartPieSurface;
|
|
806
871
|
/**
|
|
807
872
|
* @ignore
|
|
@@ -13,14 +13,11 @@ import { TSciChart as TWasmContext } from "../../types/TSciChart";
|
|
|
13
13
|
import { TSciChartSurfaceCanvases } from "../../types/TSciChartSurfaceCanvases";
|
|
14
14
|
import { EZoomState } from "../../types/ZoomState";
|
|
15
15
|
import { IChartModifierBase } from "../ChartModifiers/ChartModifierBase";
|
|
16
|
-
import { RenderContext2D } from "../Drawing/RenderContext2D";
|
|
17
16
|
import { RenderSurface } from "../Drawing/RenderSurface";
|
|
18
17
|
import { WebGlRenderContext2D } from "../Drawing/WebGlRenderContext2D";
|
|
19
18
|
import { LayoutManager } from "../LayoutManager/LayoutManager";
|
|
20
19
|
import { IThemeProvider } from "../Themes/IThemeProvider";
|
|
21
|
-
import { AdornerLayer } from "./Annotations/AdornerLayer";
|
|
22
20
|
import { ECoordinateMode } from "./Annotations/AnnotationBase";
|
|
23
|
-
import { IAnnotation } from "./Annotations/IAnnotation";
|
|
24
21
|
import { AxisBase2D } from "./Axis/AxisBase2D";
|
|
25
22
|
import { I2DSubSurfaceOptions, I2DSurfaceOptions } from "./I2DSurfaceOptions";
|
|
26
23
|
import { IDataLabelLayoutManager } from "./RenderableSeries/DataLabels/DataLabelLayoutManager";
|
|
@@ -67,6 +64,7 @@ export declare class SciChartSurface extends SciChartSurfaceBase {
|
|
|
67
64
|
* @param options Optional - Optional parameters for chart creation. See {@link I2DSurfaceOptions} for more details
|
|
68
65
|
*/
|
|
69
66
|
static create(divElement: string | HTMLDivElement, options?: I2DSurfaceOptions): Promise<TWebAssemblyChart>;
|
|
67
|
+
static disposeSharedWasmContext(): void;
|
|
70
68
|
/**
|
|
71
69
|
* Performs a similar operation to {@link SciChartSurface.create} but uses a dedicated WebAssembly context for this chart, and draws directly to the target canvas
|
|
72
70
|
* This provides better performance for a single chart, but there is a limit (16) to how many you can have on one page.
|
|
@@ -101,7 +99,7 @@ export declare class SciChartSurface extends SciChartSurfaceBase {
|
|
|
101
99
|
static useWasmLocal(): void;
|
|
102
100
|
static isSubSurface(surface: SciChartSurface): surface is SciChartSubSurface;
|
|
103
101
|
private static createTest;
|
|
104
|
-
|
|
102
|
+
renderSurface: RenderSurface;
|
|
105
103
|
/**
|
|
106
104
|
* @summary Gets the collection of {@link IRenderableSeries} - the chart types or series on this {@link SciChartSurface}
|
|
107
105
|
* @description A {@link SciChartSurface} can have zero to many {@link IRenderableSeries | RenderableSeries}.
|
|
@@ -116,32 +114,6 @@ export declare class SciChartSurface extends SciChartSurfaceBase {
|
|
|
116
114
|
* {@link AxisCore.autoRange} or call {@link SciChartSurface.zoomExtents}
|
|
117
115
|
*/
|
|
118
116
|
readonly renderableSeries: ObservableArray<IRenderableSeries>;
|
|
119
|
-
/**
|
|
120
|
-
* @summary Gets the collection of {@link IAnnotation} - annotations, markers or shapes drawn over the top of a {@link SciChartSurface}
|
|
121
|
-
* @description A {@link SciChartSurface} can have zero to many {@link IAnnotation | Annotations}.
|
|
122
|
-
*
|
|
123
|
-
* The Annotations are drawn using our WebGL / WebAssembly rendering engine, but some use SVG for maximum configurability.
|
|
124
|
-
* See derived types of {@link IAnnotation} such as {@link BoxAnnotation}, {@link LineAnnotation} etc...
|
|
125
|
-
*
|
|
126
|
-
* Use this collection to add and remove Annotations to the chart.
|
|
127
|
-
* @remarks
|
|
128
|
-
* Adding an Annotation to the chart causes it to automatically redraw. Note that annotations do not pariticpate in autoranging,
|
|
129
|
-
* meaning a chart will zoom to fit data and chart series but not annotations
|
|
130
|
-
*/
|
|
131
|
-
readonly annotations: ObservableArray<IAnnotation>;
|
|
132
|
-
/**
|
|
133
|
-
* @summary Gets the collection of {@link IAnnotation} - modifier annotations, markers or shapes drawn over the top of a {@link SciChartSurface}
|
|
134
|
-
* @description A {@link SciChartSurface} can have zero to many {@link IAnnotation | Annotations}.
|
|
135
|
-
*
|
|
136
|
-
* The Annotations are drawn using our WebGL / WebAssembly rendering engine, but some use SVG for maximum configurability.
|
|
137
|
-
* See derived types of {@link IAnnotation} such as {@link BoxAnnotation}, {@link LineAnnotation} etc...
|
|
138
|
-
*
|
|
139
|
-
* Use this collection to add and remove Modifier Annotations to the chart.
|
|
140
|
-
* @remarks
|
|
141
|
-
* Adding an Modifier Annotation to the chart causes it to automatically redraw. Note that annotations do not pariticpate in autoranging,
|
|
142
|
-
* meaning a chart will zoom to fit data and chart series but not annotations
|
|
143
|
-
*/
|
|
144
|
-
readonly modifierAnnotations: ObservableArray<IAnnotation>;
|
|
145
117
|
/**
|
|
146
118
|
* @summary Gets the collection of {@link AxisBase2D} - the X Axis on a {@link SciChartSurface}
|
|
147
119
|
* @description A {@link SciChartSurface} can have one to many {@link AxisBase2D | XAxes}.
|
|
@@ -187,12 +159,6 @@ export declare class SciChartSurface extends SciChartSurfaceBase {
|
|
|
187
159
|
/**
|
|
188
160
|
* Used internally - the {@link RenderContext2D} for drawing
|
|
189
161
|
*/
|
|
190
|
-
renderContext2D: RenderContext2D;
|
|
191
|
-
/**
|
|
192
|
-
* An event handler which notifies its subscribers when a render operation has finished. Use this
|
|
193
|
-
* to time render performance, or to update elements of the chart or your UI on redraw.
|
|
194
|
-
*/
|
|
195
|
-
rendered: EventHandler<void>;
|
|
196
162
|
/**
|
|
197
163
|
* An event handler which notifies its subscribers when a render operation starts. Use this
|
|
198
164
|
* to update elements of the chart for the current render. Any updates made here will not trigger a subsequent render.
|
|
@@ -201,7 +167,6 @@ export declare class SciChartSurface extends SciChartSurfaceBase {
|
|
|
201
167
|
layersOffset: number;
|
|
202
168
|
stepBetweenLayers: number;
|
|
203
169
|
readonly isSubSurface: boolean;
|
|
204
|
-
readonly adornerLayer: AdornerLayer;
|
|
205
170
|
/**
|
|
206
171
|
* Sets / Gets the clipping mode for SVG Annotations
|
|
207
172
|
*/
|
|
@@ -226,7 +191,7 @@ export declare class SciChartSurface extends SciChartSurfaceBase {
|
|
|
226
191
|
protected chartTitleRendererProperty: IChartTitleRenderer;
|
|
227
192
|
protected paddingProperty: Thickness;
|
|
228
193
|
protected currentWebGlRenderContextProperty: WebGlRenderContext2D;
|
|
229
|
-
private
|
|
194
|
+
private sciChartRenderer;
|
|
230
195
|
private layoutManagerProperty;
|
|
231
196
|
private dataLabelLayoutManagerProperty;
|
|
232
197
|
private zoomStateProperty;
|
|
@@ -303,7 +268,7 @@ export declare class SciChartSurface extends SciChartSurfaceBase {
|
|
|
303
268
|
/**
|
|
304
269
|
* Gets or sets the title text style and placement for the SciChartSurface as {@link TChartTitleStyle}
|
|
305
270
|
*/
|
|
306
|
-
get titleStyle():
|
|
271
|
+
get titleStyle(): TChartTitleStyle;
|
|
307
272
|
/**
|
|
308
273
|
* Gets or sets the title text style and placement for the SciChartSurface as {@link TChartTitleStyle}
|
|
309
274
|
* @remarks if updating, should be set as an object (or partial object) of type {@link TChartTitleStyle},
|
|
@@ -544,8 +509,6 @@ export declare class SciChartSurface extends SciChartSurfaceBase {
|
|
|
544
509
|
private attachSeries;
|
|
545
510
|
private detachAxis;
|
|
546
511
|
private attachAxis;
|
|
547
|
-
private detachAnnotation;
|
|
548
|
-
private attachAnnotation;
|
|
549
512
|
protected onAttachSubSurface(subSurface: SciChartSubSurface): void;
|
|
550
513
|
protected onDetachSubSurface(subSurface: SciChartSubSurface): void;
|
|
551
514
|
/**
|