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,7 +1,23 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
2
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
18
|
exports.getAdjustedRotation = exports.TitleRendererBase = void 0;
|
|
4
19
|
var app_1 = require("../../constants/app");
|
|
20
|
+
var DeletableEntity_1 = require("../../Core/DeletableEntity");
|
|
5
21
|
var Deleter_1 = require("../../Core/Deleter");
|
|
6
22
|
var Rect_1 = require("../../Core/Rect");
|
|
7
23
|
var TextPosition_1 = require("../../types/TextPosition");
|
|
@@ -12,32 +28,35 @@ var createNativeRect_1 = require("../Visuals/Helpers/createNativeRect");
|
|
|
12
28
|
var NativeObject_1 = require("../Visuals/Helpers/NativeObject");
|
|
13
29
|
var DpiHelper_1 = require("../Visuals/TextureManager/DpiHelper");
|
|
14
30
|
var TextureManager_1 = require("../Visuals/TextureManager/TextureManager");
|
|
15
|
-
var TitleRendererBase = /** @class */ (function () {
|
|
31
|
+
var TitleRendererBase = /** @class */ (function (_super) {
|
|
32
|
+
__extends(TitleRendererBase, _super);
|
|
16
33
|
function TitleRendererBase(webAssemblyContext) {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
34
|
+
var _this = _super.call(this) || this;
|
|
35
|
+
_this.drawDebug = false;
|
|
36
|
+
_this.useCache = true;
|
|
37
|
+
_this.viewRectProperty = Rect_1.Rect.createZero();
|
|
20
38
|
/**
|
|
21
39
|
* The height taken by the text with normal(horizontal) orientation including padding
|
|
22
40
|
*/
|
|
23
|
-
|
|
41
|
+
_this.textHeight = 0;
|
|
24
42
|
/**
|
|
25
43
|
* The width taken by the text with normal(horizontal) orientation including padding
|
|
26
44
|
*/
|
|
27
|
-
|
|
45
|
+
_this.textWidth = 0;
|
|
28
46
|
/**
|
|
29
47
|
* The height taken by the text considering current orientation orientation including padding
|
|
30
48
|
*/
|
|
31
|
-
|
|
49
|
+
_this.desiredHeightProperty = 0;
|
|
32
50
|
/**
|
|
33
51
|
* The width taken by the text considering current orientation orientation including padding
|
|
34
52
|
*/
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
DpiHelper_1.DpiHelper.dpiChanged.subscribe(
|
|
53
|
+
_this.desiredWidthProperty = 0;
|
|
54
|
+
_this.useNativeTextProperty = false;
|
|
55
|
+
_this.webAssemblyContext = webAssemblyContext;
|
|
56
|
+
_this.textureManager = new TextureManager_1.TextureManager(webAssemblyContext);
|
|
57
|
+
_this.onDpiChanged = _this.onDpiChanged.bind(_this);
|
|
58
|
+
DpiHelper_1.DpiHelper.dpiChanged.subscribe(_this.onDpiChanged);
|
|
59
|
+
return _this;
|
|
41
60
|
}
|
|
42
61
|
Object.defineProperty(TitleRendererBase.prototype, "viewRect", {
|
|
43
62
|
/**
|
|
@@ -65,6 +84,8 @@ var TitleRendererBase = /** @class */ (function () {
|
|
|
65
84
|
};
|
|
66
85
|
TitleRendererBase.prototype.delete = function () {
|
|
67
86
|
this.resetCache();
|
|
87
|
+
this.textureManager = (0, Deleter_1.deleteSafe)(this.textureManager);
|
|
88
|
+
this.webAssemblyContext = undefined;
|
|
68
89
|
DpiHelper_1.DpiHelper.dpiChanged.unsubscribe(this.onDpiChanged);
|
|
69
90
|
};
|
|
70
91
|
TitleRendererBase.prototype.resetCache = function () {
|
|
@@ -236,7 +257,7 @@ var TitleRendererBase = /** @class */ (function () {
|
|
|
236
257
|
}
|
|
237
258
|
};
|
|
238
259
|
return TitleRendererBase;
|
|
239
|
-
}());
|
|
260
|
+
}(DeletableEntity_1.DeletableEntity));
|
|
240
261
|
exports.TitleRendererBase = TitleRendererBase;
|
|
241
262
|
var getAdjustedRotation = function (rotation, position) {
|
|
242
263
|
if (rotation !== undefined) {
|
|
@@ -3,7 +3,7 @@ import { SciChartSurface } from "../SciChartSurface";
|
|
|
3
3
|
import { AnnotationBase } from "./AnnotationBase";
|
|
4
4
|
import { IAnnotation } from "./IAnnotation";
|
|
5
5
|
export declare class AdornerLayer {
|
|
6
|
-
|
|
6
|
+
parentSurface: SciChartSurface;
|
|
7
7
|
private selectedAnnotationProperty;
|
|
8
8
|
constructor(scs: SciChartSurface);
|
|
9
9
|
selectAnnotation(args: ModifierMouseArgs): boolean;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { DeletableEntity } from "../../../Core/DeletableEntity";
|
|
1
2
|
import { EventHandler } from "../../../Core/EventHandler";
|
|
2
3
|
import { Point } from "../../../Core/Point";
|
|
3
4
|
import { EXyDirection } from "../../../types/XyDirection";
|
|
4
5
|
import { ModifierMouseArgs } from "../../ChartModifiers/ModifierMouseArgs";
|
|
5
6
|
import { CoordinateCalculatorBase } from "../../Numerics/CoordinateCalculators/CoordinateCalculatorBase";
|
|
6
|
-
import { SciChartSurface } from "../SciChartSurface";
|
|
7
7
|
import { SciChartSurfaceBase } from "../SciChartSurfaceBase";
|
|
8
8
|
import { TDpiChangedEventArgs } from "../TextureManager/DpiHelper";
|
|
9
9
|
import { AnnotationClickEventArgs } from "./AnnotationClickEventArgs";
|
|
@@ -222,7 +222,7 @@ export declare enum ECoordinateMode {
|
|
|
222
222
|
/**
|
|
223
223
|
* Defines the base class to an Annotation - a type of marker, text label, line or custom UI overlay on a 2D Cartesian {@link SciChartSurface}
|
|
224
224
|
*/
|
|
225
|
-
export declare abstract class AnnotationBase implements IAnnotation, IAdornerProvider {
|
|
225
|
+
export declare abstract class AnnotationBase extends DeletableEntity implements IAnnotation, IAdornerProvider {
|
|
226
226
|
dragStarted: EventHandler<void>;
|
|
227
227
|
dragEnded: EventHandler<void>;
|
|
228
228
|
dragDelta: EventHandler<AnnotationDragDeltaEventArgs>;
|
|
@@ -260,10 +260,10 @@ export declare abstract class AnnotationBase implements IAnnotation, IAdornerPro
|
|
|
260
260
|
protected selectionBoxDeltaProperty: number;
|
|
261
261
|
protected selectionBoxThicknessProperty: number;
|
|
262
262
|
protected dragPointsProperty: readonly EDraggingGripPoint[];
|
|
263
|
+
protected parentSurfaceProperty: SciChartSurfaceBase;
|
|
263
264
|
private opacityProperty;
|
|
264
265
|
private annotationLayerProperty;
|
|
265
266
|
private isEditableProperty;
|
|
266
|
-
private parentSurfaceProperty;
|
|
267
267
|
private x1Property;
|
|
268
268
|
private x2Property;
|
|
269
269
|
private y1Property;
|
|
@@ -287,11 +287,11 @@ export declare abstract class AnnotationBase implements IAnnotation, IAdornerPro
|
|
|
287
287
|
/**
|
|
288
288
|
* Gets or sets current {@link EDraggingGripPoint}
|
|
289
289
|
*/
|
|
290
|
-
|
|
290
|
+
set adornerDraggingPoint(value: EDraggingGripPoint);
|
|
291
291
|
/** @inheritDoc */
|
|
292
|
-
get parentSurface():
|
|
292
|
+
get parentSurface(): SciChartSurfaceBase;
|
|
293
293
|
/** @inheritDoc */
|
|
294
|
-
set parentSurface(parentSurface:
|
|
294
|
+
set parentSurface(parentSurface: SciChartSurfaceBase);
|
|
295
295
|
/** @inheritDoc */
|
|
296
296
|
get isEditable(): boolean;
|
|
297
297
|
/** @inheritDoc */
|
|
@@ -1,7 +1,23 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
2
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
18
|
exports.AnnotationBase = exports.ECoordinateMode = exports.EDraggingGripPoint = void 0;
|
|
4
19
|
var classFactory_1 = require("../../../Builder/classFactory");
|
|
20
|
+
var DeletableEntity_1 = require("../../../Core/DeletableEntity");
|
|
5
21
|
var EventHandler_1 = require("../../../Core/EventHandler");
|
|
6
22
|
var Guard_1 = require("../../../Core/Guard");
|
|
7
23
|
var Point_1 = require("../../../Core/Point");
|
|
@@ -62,108 +78,112 @@ var ECoordinateMode;
|
|
|
62
78
|
/**
|
|
63
79
|
* Defines the base class to an Annotation - a type of marker, text label, line or custom UI overlay on a 2D Cartesian {@link SciChartSurface}
|
|
64
80
|
*/
|
|
65
|
-
var AnnotationBase = /** @class */ (function () {
|
|
81
|
+
var AnnotationBase = /** @class */ (function (_super) {
|
|
82
|
+
__extends(AnnotationBase, _super);
|
|
66
83
|
/**
|
|
67
84
|
* Creates an instance of the Annotation
|
|
68
85
|
* @param options optional parameters of type {@link IAnnotationBaseOptions} used to configure the annotation at construct time
|
|
69
86
|
*/
|
|
70
87
|
function AnnotationBase(options) {
|
|
88
|
+
var _this = this;
|
|
71
89
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x;
|
|
72
|
-
|
|
73
|
-
|
|
90
|
+
_this = _super.call(this) || this;
|
|
91
|
+
_this.showWarning = true;
|
|
92
|
+
_this.prevIsSelected = true;
|
|
74
93
|
/** the annotation absolute coordinates */
|
|
75
|
-
|
|
94
|
+
_this.annotationBorders = {
|
|
76
95
|
x1: 0,
|
|
77
96
|
x2: 0,
|
|
78
97
|
y1: 0,
|
|
79
98
|
y2: 0
|
|
80
99
|
};
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
100
|
+
_this.typeMap = new Map();
|
|
101
|
+
_this.isHiddenProperty = false;
|
|
102
|
+
_this.annotationsGripsStrokeProperty = SciChartSurfaceBase_1.SciChartSurfaceBase.DEFAULT_THEME.annotationsGripsBorderBrush;
|
|
103
|
+
_this.annotationsGripsFillProperty = SciChartSurfaceBase_1.SciChartSurfaceBase.DEFAULT_THEME.annotationsGripsBackroundBrush;
|
|
104
|
+
_this.annotationsGripsRadiusProperty = constants_1.ADORNER_GRIP_RADIUS;
|
|
105
|
+
_this.selectionBoxStrokeProperty = SciChartSurfaceBase_1.SciChartSurfaceBase.DEFAULT_THEME.annotationSelectionStroke;
|
|
106
|
+
_this.selectionBoxDeltaProperty = 1.5;
|
|
107
|
+
_this.selectionBoxThicknessProperty = 6;
|
|
108
|
+
_this.dragPointsProperty = [
|
|
90
109
|
EDraggingGripPoint.Body,
|
|
91
110
|
EDraggingGripPoint.x1y1,
|
|
92
111
|
EDraggingGripPoint.x2y2,
|
|
93
112
|
EDraggingGripPoint.x2y1,
|
|
94
113
|
EDraggingGripPoint.x1y2
|
|
95
114
|
];
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
115
|
+
_this.annotationLayerProperty = IAnnotation_1.EAnnotationLayer.AboveChart;
|
|
116
|
+
_this.isEditableProperty = false;
|
|
117
|
+
_this.xAxisIdProperty = AxisCore_1.AxisCore.DEFAULT_AXIS_ID;
|
|
118
|
+
_this.yAxisIdProperty = AxisCore_1.AxisCore.DEFAULT_AXIS_ID;
|
|
119
|
+
_this.xCoordinateModeProperty = ECoordinateMode.DataValue;
|
|
120
|
+
_this.yCoordinateModeProperty = ECoordinateMode.DataValue;
|
|
121
|
+
_this.isSelectedProperty = false;
|
|
122
|
+
_this.resizeDirectionsProperty = XyDirection_1.EXyDirection.XyDirection;
|
|
123
|
+
_this.id = (_a = options === null || options === void 0 ? void 0 : options.id) !== null && _a !== void 0 ? _a : (0, guid_1.generateGuid)();
|
|
124
|
+
_this.dragStarted = new EventHandler_1.EventHandler();
|
|
125
|
+
_this.dragEnded = new EventHandler_1.EventHandler();
|
|
126
|
+
_this.dragDelta = new EventHandler_1.EventHandler();
|
|
127
|
+
_this.selectedChanged = new EventHandler_1.EventHandler();
|
|
128
|
+
_this.clicked = new EventHandler_1.EventHandler();
|
|
129
|
+
_this.annotationLayerProperty = (_b = options === null || options === void 0 ? void 0 : options.annotationLayer) !== null && _b !== void 0 ? _b : _this.annotationLayerProperty;
|
|
130
|
+
_this.resizeDirectionsProperty = (_c = options === null || options === void 0 ? void 0 : options.resizeDirections) !== null && _c !== void 0 ? _c : _this.resizeDirectionsProperty;
|
|
131
|
+
_this.isEditableProperty = (_d = options === null || options === void 0 ? void 0 : options.isEditable) !== null && _d !== void 0 ? _d : _this.isEditableProperty;
|
|
132
|
+
_this.isHiddenProperty = (_e = options === null || options === void 0 ? void 0 : options.isHidden) !== null && _e !== void 0 ? _e : _this.isHiddenProperty;
|
|
133
|
+
_this.x1Property = (_f = options === null || options === void 0 ? void 0 : options.x1) !== null && _f !== void 0 ? _f : _this.x1Property;
|
|
134
|
+
_this.y1Property = (_g = options === null || options === void 0 ? void 0 : options.y1) !== null && _g !== void 0 ? _g : _this.y1Property;
|
|
135
|
+
_this.x2Property = (_h = options === null || options === void 0 ? void 0 : options.x2) !== null && _h !== void 0 ? _h : _this.x2Property;
|
|
136
|
+
_this.y2Property = (_j = options === null || options === void 0 ? void 0 : options.y2) !== null && _j !== void 0 ? _j : _this.y2Property;
|
|
137
|
+
_this.xAxisIdProperty = (_k = options === null || options === void 0 ? void 0 : options.xAxisId) !== null && _k !== void 0 ? _k : _this.xAxisIdProperty;
|
|
138
|
+
_this.yAxisIdProperty = (_l = options === null || options === void 0 ? void 0 : options.yAxisId) !== null && _l !== void 0 ? _l : _this.yAxisIdProperty;
|
|
139
|
+
_this.xCoordinateModeProperty = (_m = options === null || options === void 0 ? void 0 : options.xCoordinateMode) !== null && _m !== void 0 ? _m : _this.xCoordinateModeProperty;
|
|
140
|
+
_this.yCoordinateModeProperty = (_o = options === null || options === void 0 ? void 0 : options.yCoordinateMode) !== null && _o !== void 0 ? _o : _this.yCoordinateModeProperty;
|
|
141
|
+
_this.isSelectedProperty = (_p = options === null || options === void 0 ? void 0 : options.isSelected) !== null && _p !== void 0 ? _p : _this.isSelectedProperty;
|
|
142
|
+
_this.opacityProperty = (_q = options === null || options === void 0 ? void 0 : options.opacity) !== null && _q !== void 0 ? _q : 1.0;
|
|
143
|
+
_this.annotationsGripsStrokeProperty = (_r = options === null || options === void 0 ? void 0 : options.annotationsGripsStroke) !== null && _r !== void 0 ? _r : _this.annotationsGripsStrokeProperty;
|
|
144
|
+
_this.annotationsGripsFillProperty = (_s = options === null || options === void 0 ? void 0 : options.annotationsGripsFill) !== null && _s !== void 0 ? _s : _this.annotationsGripsFillProperty;
|
|
145
|
+
_this.annotationsGripsRadiusProperty = (_t = options === null || options === void 0 ? void 0 : options.annotationsGripsRadius) !== null && _t !== void 0 ? _t : _this.annotationsGripsRadius;
|
|
146
|
+
_this.selectionBoxStroke = (_u = options === null || options === void 0 ? void 0 : options.selectionBoxStroke) !== null && _u !== void 0 ? _u : _this.selectionBoxStrokeProperty;
|
|
147
|
+
_this.selectionBoxDelta = (_v = options === null || options === void 0 ? void 0 : options.selectionBoxDelta) !== null && _v !== void 0 ? _v : _this.selectionBoxDeltaProperty;
|
|
148
|
+
_this.selectionBoxThickness = (_w = options === null || options === void 0 ? void 0 : options.selectionBoxThickness) !== null && _w !== void 0 ? _w : _this.selectionBoxThicknessProperty;
|
|
149
|
+
_this.dragPointsProperty = (_x = options === null || options === void 0 ? void 0 : options.dragPoints) !== null && _x !== void 0 ? _x : _this.dragPointsProperty;
|
|
131
150
|
if (options === null || options === void 0 ? void 0 : options.onDragStarted) {
|
|
132
151
|
if (typeof options.onDragStarted === "string") {
|
|
133
|
-
|
|
134
|
-
|
|
152
|
+
_this.typeMap.set("onDragStarted", options.onDragStarted);
|
|
153
|
+
_this.dragStarted.subscribe((0, classFactory_1.getFunction)(BaseType_1.EBaseType.OptionFunction, options.onDragStarted));
|
|
135
154
|
}
|
|
136
155
|
else {
|
|
137
|
-
|
|
156
|
+
_this.dragStarted.subscribe(options.onDragStarted);
|
|
138
157
|
}
|
|
139
158
|
}
|
|
140
159
|
if (options === null || options === void 0 ? void 0 : options.onDragEnded) {
|
|
141
160
|
if (typeof options.onDragEnded === "string") {
|
|
142
|
-
|
|
143
|
-
|
|
161
|
+
_this.typeMap.set("onDragEnded", options.onDragEnded);
|
|
162
|
+
_this.dragEnded.subscribe((0, classFactory_1.getFunction)(BaseType_1.EBaseType.OptionFunction, options.onDragEnded));
|
|
144
163
|
}
|
|
145
164
|
else {
|
|
146
|
-
|
|
165
|
+
_this.dragEnded.subscribe(options.onDragEnded);
|
|
147
166
|
}
|
|
148
167
|
}
|
|
149
168
|
if (options === null || options === void 0 ? void 0 : options.onDrag) {
|
|
150
169
|
if (typeof options.onDrag === "string") {
|
|
151
|
-
|
|
152
|
-
|
|
170
|
+
_this.typeMap.set("onDrag", options.onDrag);
|
|
171
|
+
_this.dragDelta.subscribe((0, classFactory_1.getFunction)(BaseType_1.EBaseType.OptionFunction, options.onDrag));
|
|
153
172
|
}
|
|
154
173
|
else {
|
|
155
|
-
|
|
174
|
+
_this.dragDelta.subscribe(options.onDrag);
|
|
156
175
|
}
|
|
157
176
|
}
|
|
158
177
|
if (options === null || options === void 0 ? void 0 : options.onClick) {
|
|
159
178
|
if (typeof options.onClick === "string") {
|
|
160
|
-
|
|
161
|
-
|
|
179
|
+
_this.typeMap.set("onClick", options.onClick);
|
|
180
|
+
_this.clicked.subscribe((0, classFactory_1.getFunction)(BaseType_1.EBaseType.OptionFunction, options.onClick));
|
|
162
181
|
}
|
|
163
182
|
else {
|
|
164
|
-
|
|
183
|
+
_this.clicked.subscribe(options.onClick);
|
|
165
184
|
}
|
|
166
185
|
}
|
|
186
|
+
return _this;
|
|
167
187
|
}
|
|
168
188
|
Object.defineProperty(AnnotationBase.prototype, "annotationLayer", {
|
|
169
189
|
/** @inheritDoc */
|
|
@@ -991,5 +1011,5 @@ var AnnotationBase = /** @class */ (function () {
|
|
|
991
1011
|
};
|
|
992
1012
|
};
|
|
993
1013
|
return AnnotationBase;
|
|
994
|
-
}());
|
|
1014
|
+
}(DeletableEntity_1.DeletableEntity));
|
|
995
1015
|
exports.AnnotationBase = AnnotationBase;
|
|
@@ -201,6 +201,10 @@ var CursorTooltipSvgAnnotation = /** @class */ (function (_super) {
|
|
|
201
201
|
this.svgRoot.removeChild(this.svg);
|
|
202
202
|
}
|
|
203
203
|
this.setSvg(undefined);
|
|
204
|
+
if (this.svgLegend) {
|
|
205
|
+
this.svgRoot.removeChild(this.svgLegend);
|
|
206
|
+
this.svgLegend = undefined;
|
|
207
|
+
}
|
|
204
208
|
};
|
|
205
209
|
/**
|
|
206
210
|
* @inheritDoc
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { IDeletable } from "../../../Core/IDeletable";
|
|
2
|
-
import { SciChartSurface } from "../SciChartSurface";
|
|
3
2
|
import { SciChartSurfaceBase } from "../SciChartSurfaceBase";
|
|
4
3
|
import { INotifyOnDpiChanged } from "../TextureManager/DpiHelper";
|
|
5
4
|
import { ECoordinateMode } from "./AnnotationBase";
|
|
@@ -21,7 +20,13 @@ export declare enum EAnnotationLayer {
|
|
|
21
20
|
* The Grid lines and Axis Bands will show over the annotation,
|
|
22
21
|
* so consider setting {@link AxisCore.axisBandsFill} to a semi-transparent color to avoid this.
|
|
23
22
|
*/
|
|
24
|
-
BelowChart = "BelowChart"
|
|
23
|
+
BelowChart = "BelowChart",
|
|
24
|
+
/**
|
|
25
|
+
* The {@link IAnnotation | Annotation} will be displayed below the chart grid lines, bands, and axes.
|
|
26
|
+
* @remarks
|
|
27
|
+
* Use this for custom background behind the chart.
|
|
28
|
+
*/
|
|
29
|
+
Background = "Background"
|
|
25
30
|
}
|
|
26
31
|
/**
|
|
27
32
|
* Defines the type of {@link IAnnotation | Annotation}.
|
|
@@ -249,9 +254,9 @@ export interface IAnnotation extends IDeletable, INotifyOnDpiChanged {
|
|
|
249
254
|
*/
|
|
250
255
|
isHidden: boolean;
|
|
251
256
|
/**
|
|
252
|
-
* @description the parent
|
|
257
|
+
* @description the parent SciChartSurfaceBase for this annotation
|
|
253
258
|
*/
|
|
254
|
-
parentSurface:
|
|
259
|
+
parentSurface: SciChartSurfaceBase;
|
|
255
260
|
/**
|
|
256
261
|
* @description if true, the chart is vertical
|
|
257
262
|
*/
|
|
@@ -21,6 +21,12 @@ var EAnnotationLayer;
|
|
|
21
21
|
* so consider setting {@link AxisCore.axisBandsFill} to a semi-transparent color to avoid this.
|
|
22
22
|
*/
|
|
23
23
|
EAnnotationLayer["BelowChart"] = "BelowChart";
|
|
24
|
+
/**
|
|
25
|
+
* The {@link IAnnotation | Annotation} will be displayed below the chart grid lines, bands, and axes.
|
|
26
|
+
* @remarks
|
|
27
|
+
* Use this for custom background behind the chart.
|
|
28
|
+
*/
|
|
29
|
+
EAnnotationLayer["Background"] = "Background";
|
|
24
30
|
})(EAnnotationLayer = exports.EAnnotationLayer || (exports.EAnnotationLayer = {}));
|
|
25
31
|
/**
|
|
26
32
|
* Defines the type of {@link IAnnotation | Annotation}.
|
|
@@ -281,7 +281,9 @@ var LineAnnotation = /** @class */ (function (_super) {
|
|
|
281
281
|
var borderY1 = this.getY1Coordinate(xCalc, yCalc);
|
|
282
282
|
var borderY2 = this.getY2Coordinate(xCalc, yCalc);
|
|
283
283
|
this.setAnnotationBorders(borderX1, borderX2, borderY1, borderY2);
|
|
284
|
-
|
|
284
|
+
if (strokePen) {
|
|
285
|
+
renderContext.drawLine(borderX1, borderY1, borderX2, borderY2, strokePen, viewRect);
|
|
286
|
+
}
|
|
285
287
|
// This code is a bit silly, but I'm leaving it just in case anyone is currently relying on it.
|
|
286
288
|
// It will get sorted in the big annotation refactor
|
|
287
289
|
if (this.showLabel) {
|
|
@@ -407,6 +407,10 @@ var NativeTextAnnotation = /** @class */ (function (_super) {
|
|
|
407
407
|
if (scaleChanged) {
|
|
408
408
|
font.SetScale(oldScale);
|
|
409
409
|
}
|
|
410
|
+
if (this.annotationLayer !== IAnnotation_1.EAnnotationLayer.AboveChart) {
|
|
411
|
+
// If the annotation needs to be drawn below anything, draw it now, as by default fonts are all ended at the end of the render cycle
|
|
412
|
+
font.End();
|
|
413
|
+
}
|
|
410
414
|
this.updateAdornerInner();
|
|
411
415
|
};
|
|
412
416
|
NativeTextAnnotation.prototype.onDragStarted = function (args) {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Rect } from "../../../Core/Rect";
|
|
2
2
|
import { IRenderContext2D } from "../../Drawing/IRenderContext2D";
|
|
3
3
|
import { CoordinateCalculatorBase } from "../../Numerics/CoordinateCalculators/CoordinateCalculatorBase";
|
|
4
|
+
import { SciChartSurface } from "../SciChartSurface";
|
|
4
5
|
import { AnnotationBase, IAnnotationBaseOptions } from "./AnnotationBase";
|
|
5
6
|
/**
|
|
6
7
|
* The Base class for an {@link AnnotationBase | Annotation} which draws using SciChart's built-in WebGL2
|
|
@@ -15,6 +16,10 @@ export declare abstract class RenderContextAnnotationBase extends AnnotationBase
|
|
|
15
16
|
* @param options optional parameters of type {@link IAnnotationBaseOptions} which configure the annotation at construction time
|
|
16
17
|
*/
|
|
17
18
|
protected constructor(options?: IAnnotationBaseOptions);
|
|
19
|
+
/** @inheritDoc */
|
|
20
|
+
get parentSurface(): SciChartSurface;
|
|
21
|
+
/** @inheritDoc */
|
|
22
|
+
set parentSurface(parentSurface: SciChartSurface);
|
|
18
23
|
/**
|
|
19
24
|
* @description draws the annotation with RenderContext.
|
|
20
25
|
* May be overriden in derived classes for fast drawing direct on render surface
|
|
@@ -17,6 +17,7 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
exports.RenderContextAnnotationBase = void 0;
|
|
19
19
|
var AnnotationBase_1 = require("./AnnotationBase");
|
|
20
|
+
var constants_1 = require("./constants");
|
|
20
21
|
/**
|
|
21
22
|
* The Base class for an {@link AnnotationBase | Annotation} which draws using SciChart's built-in WebGL2
|
|
22
23
|
* WebAssembly {@link WebGL2RenderingContext | RenderContext}, enabling fast drawing at expense of
|
|
@@ -34,6 +35,21 @@ var RenderContextAnnotationBase = /** @class */ (function (_super) {
|
|
|
34
35
|
_this.isSvgAnnotation = false;
|
|
35
36
|
return _this;
|
|
36
37
|
}
|
|
38
|
+
Object.defineProperty(RenderContextAnnotationBase.prototype, "parentSurface", {
|
|
39
|
+
/** @inheritDoc */
|
|
40
|
+
get: function () {
|
|
41
|
+
return this.parentSurfaceProperty;
|
|
42
|
+
},
|
|
43
|
+
/** @inheritDoc */
|
|
44
|
+
set: function (parentSurface) {
|
|
45
|
+
if (this.parentSurfaceProperty !== parentSurface) {
|
|
46
|
+
this.parentSurfaceProperty = parentSurface;
|
|
47
|
+
this.notifyPropertyChanged(constants_1.PROPERTY.PARENT_SURFACE);
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
enumerable: false,
|
|
51
|
+
configurable: true
|
|
52
|
+
});
|
|
37
53
|
return RenderContextAnnotationBase;
|
|
38
54
|
}(AnnotationBase_1.AnnotationBase));
|
|
39
55
|
exports.RenderContextAnnotationBase = RenderContextAnnotationBase;
|
|
@@ -221,6 +221,12 @@ var defaultTooltipDataTemplate = function (seriesInfo, tooltipTitle, tooltipLabe
|
|
|
221
221
|
}
|
|
222
222
|
valuesWithLabels.push("Z: ".concat(heatmapSeriesInfo.formattedZValue));
|
|
223
223
|
}
|
|
224
|
+
else if (seriesInfo.dataSeriesType === IDataSeries_1.EDataSeriesType.Xyz) {
|
|
225
|
+
// Bubble Series
|
|
226
|
+
var xyzSeriesInfo = seriesInfo;
|
|
227
|
+
addValueWithLabel(valuesWithLabels, xyzSeriesInfo.formattedXValue, xyzSeriesInfo.formattedYValue, tooltipLabelX, tooltipLabelY);
|
|
228
|
+
valuesWithLabels.push("Z: ".concat(xyzSeriesInfo.formattedZValue));
|
|
229
|
+
}
|
|
224
230
|
else {
|
|
225
231
|
// Line Series
|
|
226
232
|
var xySeriesInfo = seriesInfo;
|
|
@@ -41,6 +41,7 @@ export declare enum PROPERTY {
|
|
|
41
41
|
TOOLTIP_LEGEND_OFFSET_X = "TOOLTIP_LEGEND_OFFSET_X",
|
|
42
42
|
TOOLTIP_LEGEND_OFFSET_Y = "TOOLTIP_LEGEND_OFFSET_Y",
|
|
43
43
|
TOOLTIP_LEGEND_TEMPLATE = "TOOLTIP_LEGEND_TEMPLATE",
|
|
44
|
+
TOOLTIP_DATA_TEMPLATE = "TOOLTIP_DATA_TEMPLATE",
|
|
44
45
|
TOOLTIP_SVG_TEMPLATE = "TOOLTIP_SVG_TEMPLATE",
|
|
45
46
|
VERTICAL_ANCHOR_POINT = "VERTICAL_ANCHOR_POINT",
|
|
46
47
|
X1 = "X1",
|
|
@@ -45,6 +45,7 @@ var PROPERTY;
|
|
|
45
45
|
PROPERTY["TOOLTIP_LEGEND_OFFSET_X"] = "TOOLTIP_LEGEND_OFFSET_X";
|
|
46
46
|
PROPERTY["TOOLTIP_LEGEND_OFFSET_Y"] = "TOOLTIP_LEGEND_OFFSET_Y";
|
|
47
47
|
PROPERTY["TOOLTIP_LEGEND_TEMPLATE"] = "TOOLTIP_LEGEND_TEMPLATE";
|
|
48
|
+
PROPERTY["TOOLTIP_DATA_TEMPLATE"] = "TOOLTIP_DATA_TEMPLATE";
|
|
48
49
|
PROPERTY["TOOLTIP_SVG_TEMPLATE"] = "TOOLTIP_SVG_TEMPLATE";
|
|
49
50
|
PROPERTY["VERTICAL_ANCHOR_POINT"] = "VERTICAL_ANCHOR_POINT";
|
|
50
51
|
PROPERTY["X1"] = "X1";
|
|
@@ -151,6 +151,11 @@ export interface IAxisBase2dOptions extends IAxisCoreOptions {
|
|
|
151
151
|
*/
|
|
152
152
|
axisThickness?: number;
|
|
153
153
|
backgroundColor?: string;
|
|
154
|
+
/**
|
|
155
|
+
* Sets the offset from the seriesViewRect in the direction of the axis. This overrides the value set internally during layout,
|
|
156
|
+
* which is 0 for normal axes, but is used to position stacked axes.
|
|
157
|
+
*/
|
|
158
|
+
overrideOffset?: number;
|
|
154
159
|
}
|
|
155
160
|
/**
|
|
156
161
|
* The base class for 2D Chart Axis within SciChart - High Performance {@link https://www.scichart.com/javascript-chart-features | JavaScript Charts}.
|
|
@@ -164,11 +169,11 @@ export interface IAxisBase2dOptions extends IAxisCoreOptions {
|
|
|
164
169
|
*/
|
|
165
170
|
export declare abstract class AxisBase2D extends AxisCore implements IThemeable {
|
|
166
171
|
/**
|
|
167
|
-
* Gets or sets a {@link
|
|
172
|
+
* Gets or sets a {@link LabelProviderBase2D} - a class which is responsible for formatting axis labels and cursor labels from numeric values
|
|
168
173
|
*/
|
|
169
174
|
get labelProvider(): LabelProviderBase2D;
|
|
170
175
|
/**
|
|
171
|
-
* Gets or sets a {@link
|
|
176
|
+
* Gets or sets a {@link LabelProviderBase2D} - a class which is responsible for formatting axis labels and cursor labels from numeric values
|
|
172
177
|
*/
|
|
173
178
|
set labelProvider(labelProvider: LabelProviderBase2D);
|
|
174
179
|
/**
|
|
@@ -258,14 +263,14 @@ export declare abstract class AxisBase2D extends AxisCore implements IThemeable
|
|
|
258
263
|
* Stacked axes without a defined length will have the remaining unreserved spaced split between them.
|
|
259
264
|
* @remarks The axis length doesn't include border sizes
|
|
260
265
|
*/
|
|
261
|
-
get stackedAxisLength(): TStackedAxisLength;
|
|
266
|
+
get stackedAxisLength(): TStackedAxisLength | undefined;
|
|
262
267
|
/** Gets or sets the length of a stacked axis as an absolute number or percentage, e.g. 100, or "30%".
|
|
263
268
|
* A plain number will be interpreted as a number of pixels.
|
|
264
269
|
* A number with % will take that percentage of the total length.
|
|
265
270
|
* Stacked axes without a defined length will have the remaining unreserved spaced split between them.
|
|
266
271
|
* @remarks The axis length doesn't include border sizes
|
|
267
272
|
*/
|
|
268
|
-
set stackedAxisLength(value: TStackedAxisLength);
|
|
273
|
+
set stackedAxisLength(value: TStackedAxisLength | undefined);
|
|
269
274
|
/**
|
|
270
275
|
* Called internally - Gets or sets the length the current Axis. E.g. width of horizontal axis or height of vertical axis.
|
|
271
276
|
*/
|
|
@@ -277,7 +282,12 @@ export declare abstract class AxisBase2D extends AxisCore implements IThemeable
|
|
|
277
282
|
*/
|
|
278
283
|
get offset(): number;
|
|
279
284
|
/**
|
|
280
|
-
*
|
|
285
|
+
* set an offset value that overrides the one used by layout calculation
|
|
286
|
+
*/
|
|
287
|
+
overrideOffset(value: number): void;
|
|
288
|
+
/**
|
|
289
|
+
* Called internally by layout strategies when switching between stacked and non-stacked axes.
|
|
290
|
+
* If you want to set a manual offset, call {@link overrideOffset}
|
|
281
291
|
*/
|
|
282
292
|
set offset(value: number);
|
|
283
293
|
/**
|
|
@@ -321,7 +331,7 @@ export declare abstract class AxisBase2D extends AxisCore implements IThemeable
|
|
|
321
331
|
/**
|
|
322
332
|
* Gets the {@link AxisTitleRenderer} instance responsible for drawing the axis title
|
|
323
333
|
*/
|
|
324
|
-
|
|
334
|
+
axisTitleRenderer: AxisTitleRenderer;
|
|
325
335
|
/**
|
|
326
336
|
* Gets the {@link AxisLayoutState} class which manages layout
|
|
327
337
|
*/
|
|
@@ -334,7 +344,7 @@ export declare abstract class AxisBase2D extends AxisCore implements IThemeable
|
|
|
334
344
|
* The {@link TSciChart | SciChart 2D WebAssembly Context} containing native methods and
|
|
335
345
|
* access to our WebGL2 Engine and WebAssembly numerical methods
|
|
336
346
|
*/
|
|
337
|
-
protected
|
|
347
|
+
protected webAssemblyContext2D: TSciChart;
|
|
338
348
|
protected axisRendererProperty: AxisRenderer;
|
|
339
349
|
protected autoRangeAnimationProperty: IAutoRangeAnimationOptions;
|
|
340
350
|
private labelStyleProperty;
|
|
@@ -355,6 +365,7 @@ export declare abstract class AxisBase2D extends AxisCore implements IThemeable
|
|
|
355
365
|
private solidBrushCacheBorder;
|
|
356
366
|
private axisLengthProperty;
|
|
357
367
|
private offsetProperty;
|
|
368
|
+
private offsetOverrideProperty;
|
|
358
369
|
private tickCache;
|
|
359
370
|
private backgroundColorProperty;
|
|
360
371
|
private dpiAdjustedLabelStyleCache;
|
|
@@ -371,6 +382,10 @@ export declare abstract class AxisBase2D extends AxisCore implements IThemeable
|
|
|
371
382
|
* Called when the {@link AxisBase2D} is attached to an {@link SciChartSurface}
|
|
372
383
|
*/
|
|
373
384
|
onAttach(parentSurface: SciChartSurface, isXAxis: boolean, isPrimaryAxis: boolean): void;
|
|
385
|
+
/**
|
|
386
|
+
* Called when the {@link AxisBase2D} is detached from an {@link SciChartSurface}
|
|
387
|
+
*/
|
|
388
|
+
onDetach(): void;
|
|
374
389
|
/**
|
|
375
390
|
* Called internally - measures the axis as part of the layout phase
|
|
376
391
|
*/
|
|
@@ -410,7 +425,7 @@ export declare abstract class AxisBase2D extends AxisCore implements IThemeable
|
|
|
410
425
|
* @param xRanges (optional) if provided, we use previously calculated XAxis ranges
|
|
411
426
|
* keyed by AxisId rather than calculate them again
|
|
412
427
|
*/
|
|
413
|
-
getWindowedYRange(xRanges: Dictionary<NumberRange>): NumberRange;
|
|
428
|
+
getWindowedYRange(xRanges: Dictionary<NumberRange> | undefined): NumberRange;
|
|
414
429
|
/**
|
|
415
430
|
* Programmatically scrolls the axis by a number of pixels
|
|
416
431
|
* @param pixelsToScroll The number of pixels to scroll
|