scichart 2.2.2417 → 3.0.0-beta.230
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/buildDataSeries.d.ts +16 -1
- package/Builder/buildDataSeries.js +24 -1
- package/Builder/buildSeries.d.ts +60 -3
- package/Builder/buildSeries.js +28 -1
- package/Builder/buildSurface.d.ts +28 -2
- package/Builder/buildSurface.js +53 -31
- package/Builder/chartBuilder.d.ts +20 -7
- package/Builder/chartBuilder.js +37 -3
- package/Charting/ChartModifiers/ChartModifierBase.d.ts +21 -0
- package/Charting/ChartModifiers/ChartModifierBase.js +12 -0
- package/Charting/ChartModifiers/ChartModifierBase2D.js +2 -1
- package/Charting/ChartModifiers/CursorModifier.d.ts +92 -19
- package/Charting/ChartModifiers/CursorModifier.js +147 -58
- package/Charting/ChartModifiers/DataPointSelectionModifier.js +2 -1
- package/Charting/ChartModifiers/LegendModifier.js +2 -1
- package/Charting/ChartModifiers/ModifierMouseArgs.d.ts +6 -1
- package/Charting/ChartModifiers/ModifierMouseArgs.js +13 -3
- package/Charting/ChartModifiers/MouseWheelZoomModifier.d.ts +2 -2
- package/Charting/ChartModifiers/MouseWheelZoomModifier.js +16 -4
- package/Charting/ChartModifiers/OverviewRangeSelectionModifier.d.ts +2 -1
- package/Charting/ChartModifiers/OverviewRangeSelectionModifier.js +8 -4
- package/Charting/ChartModifiers/PinchZoomModifier.js +2 -1
- package/Charting/ChartModifiers/RolloverModifier.d.ts +43 -21
- package/Charting/ChartModifiers/RolloverModifier.js +48 -29
- package/Charting/ChartModifiers/RubberBandXyZoomModifier.d.ts +9 -6
- package/Charting/ChartModifiers/RubberBandXyZoomModifier.js +10 -8
- package/Charting/ChartModifiers/SeriesSelectionModifier.js +2 -1
- package/Charting/ChartModifiers/XAxisDragModifier.d.ts +1 -1
- package/Charting/ChartModifiers/XAxisDragModifier.js +2 -1
- package/Charting/ChartModifiers/YAxisDragModifier.d.ts +1 -1
- package/Charting/ChartModifiers/YAxisDragModifier.js +2 -1
- package/Charting/ChartModifiers/ZoomExtentsModifier.js +2 -1
- package/Charting/ChartModifiers/ZoomPanModifier.js +2 -1
- package/Charting/ChartModifiers/constants.d.ts +3 -1
- package/Charting/ChartModifiers/constants.js +2 -0
- package/Charting/Drawing/BatchRenderContext.d.ts +6 -0
- package/Charting/Drawing/BatchRenderContext.js +40 -0
- package/Charting/Drawing/RenderSurface.d.ts +2 -1
- package/Charting/Drawing/RenderSurface.js +3 -2
- package/Charting/Drawing/WebGlRenderContext2D.d.ts +19 -4
- package/Charting/Drawing/WebGlRenderContext2D.js +70 -41
- package/Charting/LayoutManager/BaseCenteredAxisLayoutStrategy.js +2 -1
- package/Charting/LayoutManager/BottomAlignedInnerAxisLayoutStrategy.js +1 -1
- package/Charting/LayoutManager/CentralAxesLayoutManager.js +2 -1
- package/Charting/LayoutManager/LayoutManager.d.ts +2 -1
- package/Charting/LayoutManager/LayoutManager.js +6 -5
- package/Charting/LayoutManager/LeftAlignedInnerAxisLayoutStrategy.js +1 -1
- package/Charting/LayoutManager/RightAlignedInnerAxisLayoutStrategy.js +1 -1
- package/Charting/LayoutManager/TopAlignedInnerAxisLayoutStrategy.js +1 -1
- package/Charting/Model/BaseDataSeries.d.ts +10 -1
- package/Charting/Model/BaseDataSeries.js +9 -8
- package/Charting/Model/BaseHeatmapDataSeries.d.ts +18 -5
- package/Charting/Model/BaseHeatmapDataSeries.js +21 -13
- package/Charting/Model/ChartData/SeriesInfo.d.ts +6 -0
- package/Charting/Model/ChartData/SeriesInfo.js +5 -0
- package/Charting/Model/ChartData/XyySeriesInfo.d.ts +2 -0
- package/Charting/Model/ChartData/XyySeriesInfo.js +2 -0
- package/Charting/Model/DataDistributionCalculator/DataDistributionCalculator.js +4 -3
- package/Charting/Model/Filters/HlcCustomFilter.js +12 -9
- package/Charting/Model/Filters/HlcFilterBase.js +2 -1
- package/Charting/Model/Filters/HlcScaleOffsetFilter.js +2 -1
- package/Charting/Model/Filters/OhlcCustomFilter.js +12 -9
- package/Charting/Model/Filters/OhlcScaleOffsetFilter.js +2 -1
- package/Charting/Model/Filters/XyCustomFilter.js +12 -9
- package/Charting/Model/Filters/XyFilterBase.d.ts +14 -5
- package/Charting/Model/Filters/XyFilterBase.js +47 -15
- package/Charting/Model/Filters/XyMovingAverageFilter.js +2 -1
- package/Charting/Model/Filters/XyRatioFilter.js +2 -1
- package/Charting/Model/Filters/XyScaleOffsetFilter.js +2 -1
- package/Charting/Model/Filters/XyyCustomFilter.js +12 -9
- package/Charting/Model/Filters/XyyFilterBase.js +2 -1
- package/Charting/Model/Filters/XyyScaleOffsetFilter.js +2 -1
- package/Charting/Model/Filters/XyzCustomFilter.js +12 -9
- package/Charting/Model/Filters/XyzFilterBase.js +2 -1
- package/Charting/Model/Filters/XyzScaleOffsetFilter.js +2 -1
- package/Charting/Model/IDataSeries.d.ts +9 -1
- package/Charting/Model/IDataSeries.js +8 -0
- package/Charting/Model/NonUniformHeatmapDataSeries.d.ts +112 -0
- package/Charting/Model/NonUniformHeatmapDataSeries.js +261 -0
- package/Charting/Model/PaletteFactory.d.ts +40 -4
- package/Charting/Model/PaletteFactory.js +37 -11
- package/Charting/Model/XyTextDataSeries.d.ts +121 -0
- package/Charting/Model/XyTextDataSeries.js +274 -0
- package/Charting/Numerics/CoordinateCalculators/CoordinateCalculatorBase.d.ts +1 -1
- package/Charting/Numerics/Resamplers/ExtremeResamplerHelper.js +1 -1
- package/Charting/Services/RenderPassData.d.ts +15 -5
- package/Charting/Services/RenderPassData.js +27 -5
- package/Charting/Services/SciChartRenderer.d.ts +2 -1
- package/Charting/Services/SciChartRenderer.js +91 -29
- package/Charting/Themes/IThemeProvider.d.ts +61 -0
- package/Charting/Themes/IThemeProvider.js +67 -1
- package/Charting/Themes/SciChartJSDarkTheme.d.ts +4 -0
- package/Charting/Themes/SciChartJSDarkTheme.js +6 -2
- package/Charting/Themes/SciChartJSDarkv2Theme.js +3 -0
- package/Charting/Themes/SciChartJSLightTheme.d.ts +8 -0
- package/Charting/Themes/SciChartJSLightTheme.js +8 -0
- package/Charting/Themes/SciChartJsNavyTheme.d.ts +10 -0
- package/Charting/Themes/SciChartJsNavyTheme.js +49 -0
- package/Charting/Visuals/Annotations/AdornerLayer.js +4 -8
- package/Charting/Visuals/Annotations/AnnotationBase.d.ts +80 -7
- package/Charting/Visuals/Annotations/AnnotationBase.js +238 -28
- package/Charting/Visuals/Annotations/AnnotationClickEventArgs.d.ts +11 -0
- package/Charting/Visuals/Annotations/AnnotationClickEventArgs.js +12 -0
- package/Charting/Visuals/Annotations/AxisMarkerAnnotation.d.ts +1 -0
- package/Charting/Visuals/Annotations/AxisMarkerAnnotation.js +18 -19
- package/Charting/Visuals/Annotations/BoxAnnotation.d.ts +1 -0
- package/Charting/Visuals/Annotations/BoxAnnotation.js +69 -67
- package/Charting/Visuals/Annotations/CursorTooltipSvgAnnotation.d.ts +2 -2
- package/Charting/Visuals/Annotations/CursorTooltipSvgAnnotation.js +20 -20
- package/Charting/Visuals/Annotations/CustomAnnotation.d.ts +1 -1
- package/Charting/Visuals/Annotations/CustomAnnotation.js +3 -2
- package/Charting/Visuals/Annotations/HorizontalLineAnnotation.js +6 -3
- package/Charting/Visuals/Annotations/IAdornerProvider.d.ts +12 -0
- package/Charting/Visuals/Annotations/IAnnotation.d.ts +9 -0
- package/Charting/Visuals/Annotations/IAnnotation.js +9 -0
- package/Charting/Visuals/Annotations/LineAnnotation.d.ts +1 -0
- package/Charting/Visuals/Annotations/LineAnnotation.js +29 -35
- package/Charting/Visuals/Annotations/NativeTextAnnotation.d.ts +193 -0
- package/Charting/Visuals/Annotations/NativeTextAnnotation.js +536 -0
- package/Charting/Visuals/Annotations/OverviewCustomResizableAnnotation.d.ts +4 -2
- package/Charting/Visuals/Annotations/OverviewCustomResizableAnnotation.js +19 -14
- package/Charting/Visuals/Annotations/RolloverLegendSvgAnnotation.d.ts +2 -2
- package/Charting/Visuals/Annotations/RolloverLegendSvgAnnotation.js +9 -8
- package/Charting/Visuals/Annotations/RolloverMarkerSvgAnnotation.d.ts +2 -2
- package/Charting/Visuals/Annotations/RolloverMarkerSvgAnnotation.js +6 -6
- package/Charting/Visuals/Annotations/RolloverTooltipSvgAnnotation.d.ts +2 -2
- package/Charting/Visuals/Annotations/RolloverTooltipSvgAnnotation.js +20 -21
- package/Charting/Visuals/Annotations/SvgAnnotationBase.d.ts +13 -2
- package/Charting/Visuals/Annotations/SvgAnnotationBase.js +34 -42
- package/Charting/Visuals/Annotations/TextAnnotation.d.ts +2 -2
- package/Charting/Visuals/Annotations/TextAnnotation.js +41 -22
- package/Charting/Visuals/Annotations/VerticalLineAnnotation.js +6 -3
- package/Charting/Visuals/Annotations/annotationHelpers.d.ts +6 -6
- package/Charting/Visuals/Annotations/annotationHelpers.js +7 -6
- package/Charting/Visuals/Annotations/constants.d.ts +13 -1
- package/Charting/Visuals/Annotations/constants.js +12 -0
- package/Charting/Visuals/Axis/AxisBase2D.d.ts +24 -4
- package/Charting/Visuals/Axis/AxisBase2D.js +115 -38
- package/Charting/Visuals/Axis/AxisCore.d.ts +10 -5
- package/Charting/Visuals/Axis/AxisCore.js +11 -10
- package/Charting/Visuals/Axis/AxisRenderer.js +114 -20
- package/Charting/Visuals/Axis/CategoryAxis.js +2 -1
- package/Charting/Visuals/Axis/CategoryAxisBase.d.ts +15 -15
- package/Charting/Visuals/Axis/CategoryAxisBase.js +14 -12
- package/Charting/Visuals/Axis/DateTimeNumericAxis.js +2 -1
- package/Charting/Visuals/Axis/DeltaCalculator/DateTimeDeltaCalculator.js +2 -1
- package/Charting/Visuals/Axis/LabelProvider/DateLabelProvider.js +2 -1
- package/Charting/Visuals/Axis/LabelProvider/LabelCache.js +2 -0
- package/Charting/Visuals/Axis/LabelProvider/LabelProviderBase2D.d.ts +14 -0
- package/Charting/Visuals/Axis/LabelProvider/LabelProviderBase2D.js +140 -33
- package/Charting/Visuals/Axis/LabelProvider/LogarithmicLabelProvider.js +2 -1
- package/Charting/Visuals/Axis/LabelProvider/NumericLabelProvider.js +2 -1
- package/Charting/Visuals/Axis/LabelProvider/PieLabelProvider.js +2 -1
- package/Charting/Visuals/Axis/LabelProvider/SmartDateLabelProvider.d.ts +31 -1
- package/Charting/Visuals/Axis/LabelProvider/SmartDateLabelProvider.js +64 -42
- package/Charting/Visuals/Axis/LabelProvider/TextLabelProvider.d.ts +2 -2
- package/Charting/Visuals/Axis/LabelProvider/TextLabelProvider.js +16 -19
- package/Charting/Visuals/Axis/LogarithmicAxis.js +9 -6
- package/Charting/Visuals/Axis/NumericAxis.js +3 -3
- package/Charting/Visuals/Axis/constants.d.ts +1 -0
- package/Charting/Visuals/Axis/constants.js +1 -0
- package/Charting/Visuals/HeatmapLegend.d.ts +95 -0
- package/Charting/Visuals/HeatmapLegend.js +192 -0
- package/Charting/Visuals/Helpers/NativeObject.d.ts +15 -2
- package/Charting/Visuals/Helpers/NativeObject.js +72 -6
- package/Charting/Visuals/I2DSurfaceOptions.d.ts +46 -0
- package/Charting/Visuals/PointMarkers/BasePointMarker.d.ts +5 -0
- package/Charting/Visuals/PointMarkers/BasePointMarker.js +28 -0
- package/Charting/Visuals/PointMarkers/IPointMarker.d.ts +8 -0
- package/Charting/Visuals/RenderableSeries/Animations/BandAnimation.js +2 -1
- package/Charting/Visuals/RenderableSeries/Animations/BandAnimationStyle.js +2 -1
- package/Charting/Visuals/RenderableSeries/Animations/BubbleAnimation.js +2 -1
- package/Charting/Visuals/RenderableSeries/Animations/CandlestickAnimation.js +2 -1
- package/Charting/Visuals/RenderableSeries/Animations/CandlestickAnimationStyle.js +2 -1
- package/Charting/Visuals/RenderableSeries/Animations/ColumnAnimation.js +2 -1
- package/Charting/Visuals/RenderableSeries/Animations/ColumnAnimationStyle.js +2 -1
- package/Charting/Visuals/RenderableSeries/Animations/CustomPointMarkerStyle.js +2 -1
- package/Charting/Visuals/RenderableSeries/Animations/FadeAnimation.js +2 -1
- package/Charting/Visuals/RenderableSeries/Animations/LineAnimation.js +2 -1
- package/Charting/Visuals/RenderableSeries/Animations/MountainAnimation.js +2 -1
- package/Charting/Visuals/RenderableSeries/Animations/MountainAnimationStyle.js +2 -1
- package/Charting/Visuals/RenderableSeries/Animations/OhlcAnimation.js +2 -1
- package/Charting/Visuals/RenderableSeries/Animations/OhlcAnimationStyle.js +2 -1
- package/Charting/Visuals/RenderableSeries/Animations/PointMarkerStyle.js +2 -1
- package/Charting/Visuals/RenderableSeries/Animations/ScaleAnimation.js +2 -1
- package/Charting/Visuals/RenderableSeries/Animations/ScatterAnimation.js +2 -1
- package/Charting/Visuals/RenderableSeries/Animations/SeriesAnimation.d.ts +8 -2
- package/Charting/Visuals/RenderableSeries/Animations/SeriesAnimation.js +3 -3
- package/Charting/Visuals/RenderableSeries/Animations/WaveAnimation.js +2 -1
- package/Charting/Visuals/RenderableSeries/BaseBandRenderableSeries.d.ts +7 -0
- package/Charting/Visuals/RenderableSeries/BaseBandRenderableSeries.js +42 -10
- package/Charting/Visuals/RenderableSeries/BaseHeatmapRenderableSeries.d.ts +128 -0
- package/Charting/Visuals/RenderableSeries/BaseHeatmapRenderableSeries.js +201 -0
- package/Charting/Visuals/RenderableSeries/BaseLineRenderableSeries.d.ts +26 -0
- package/Charting/Visuals/RenderableSeries/BaseLineRenderableSeries.js +39 -3
- package/Charting/Visuals/RenderableSeries/BaseMountainRenderableSeries.d.ts +7 -0
- package/Charting/Visuals/RenderableSeries/BaseMountainRenderableSeries.js +17 -2
- package/Charting/Visuals/RenderableSeries/BaseOhlcRenderableSeries.d.ts +2 -0
- package/Charting/Visuals/RenderableSeries/BaseOhlcRenderableSeries.js +15 -2
- package/Charting/Visuals/RenderableSeries/BaseRenderableSeries.d.ts +10 -0
- package/Charting/Visuals/RenderableSeries/BaseRenderableSeries.js +93 -17
- package/Charting/Visuals/RenderableSeries/BaseStackedCollection.d.ts +8 -1
- package/Charting/Visuals/RenderableSeries/BaseStackedCollection.js +21 -1
- package/Charting/Visuals/RenderableSeries/BaseStackedRenderableSeries.d.ts +1 -0
- package/Charting/Visuals/RenderableSeries/BaseStackedRenderableSeries.js +4 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/BandSeriesDataLabelProvider.d.ts +43 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/BandSeriesDataLabelProvider.js +142 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/BaseDataLabelProvider.d.ts +92 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/BaseDataLabelProvider.js +129 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/BubbleSeriesDataLabelProvider.d.ts +17 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/BubbleSeriesDataLabelProvider.js +62 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/ColumnSeriesDataLabelProvider.d.ts +47 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/ColumnSeriesDataLabelProvider.js +125 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/ContoursDataLabelProvider.d.ts +71 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/ContoursDataLabelProvider.js +221 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/DataLabelLayoutManager.d.ts +5 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/DataLabelLayoutManager.js +2 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/DataLabelProvider.d.ts +208 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/DataLabelProvider.js +410 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/DataLabelState.d.ts +40 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/DataLabelState.js +141 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/HeatMapDataLabelProvider.d.ts +63 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/HeatMapDataLabelProvider.js +198 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/LineSeriesDataLabelProvider.d.ts +35 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/LineSeriesDataLabelProvider.js +92 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/NonUniformHeatmapDataLabelProvider.d.ts +12 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/NonUniformHeatmapDataLabelProvider.js +134 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/TextDataLabelProvider.d.ts +56 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/TextDataLabelProvider.js +167 -0
- package/Charting/Visuals/RenderableSeries/DrawingProviders/BandSeriesDrawingProvider.d.ts +0 -1
- package/Charting/Visuals/RenderableSeries/DrawingProviders/BandSeriesDrawingProvider.js +1 -2
- package/Charting/Visuals/RenderableSeries/DrawingProviders/BaseSeriesDrawingProvider.d.ts +5 -2
- package/Charting/Visuals/RenderableSeries/DrawingProviders/BaseSeriesDrawingProvider.js +47 -40
- package/Charting/Visuals/RenderableSeries/DrawingProviders/BubbleSeriesDrawingProvider.js +1 -1
- package/Charting/Visuals/RenderableSeries/DrawingProviders/ColumnSeriesDrawingProvider.d.ts +1 -0
- package/Charting/Visuals/RenderableSeries/DrawingProviders/ColumnSeriesDrawingProvider.js +18 -5
- package/Charting/Visuals/RenderableSeries/DrawingProviders/ErrorSeriesDrawingProvider.d.ts +0 -1
- package/Charting/Visuals/RenderableSeries/DrawingProviders/ErrorSeriesDrawingProvider.js +14 -27
- package/Charting/Visuals/RenderableSeries/DrawingProviders/LineSeriesDrawingProvider.d.ts +17 -4
- package/Charting/Visuals/RenderableSeries/DrawingProviders/LineSeriesDrawingProvider.js +34 -11
- package/Charting/Visuals/RenderableSeries/DrawingProviders/NonUniformHeatmapDrawingProvider.d.ts +36 -0
- package/Charting/Visuals/RenderableSeries/DrawingProviders/NonUniformHeatmapDrawingProvider.js +493 -0
- package/Charting/Visuals/RenderableSeries/DrawingProviders/PointMarkerDrawingProvider.d.ts +5 -2
- package/Charting/Visuals/RenderableSeries/DrawingProviders/PointMarkerDrawingProvider.js +8 -5
- package/Charting/Visuals/RenderableSeries/DrawingProviders/UniformContoursDrawingProvider.js +4 -4
- package/Charting/Visuals/RenderableSeries/DrawingProviders/UniformHeatmapDrawingProvider.d.ts +3 -0
- package/Charting/Visuals/RenderableSeries/DrawingProviders/UniformHeatmapDrawingProvider.js +15 -4
- package/Charting/Visuals/RenderableSeries/FastBandRenderableSeries.js +2 -1
- package/Charting/Visuals/RenderableSeries/FastBubbleRenderableSeries.d.ts +21 -0
- package/Charting/Visuals/RenderableSeries/FastBubbleRenderableSeries.js +40 -4
- package/Charting/Visuals/RenderableSeries/FastCandlestickRenderableSeries.d.ts +2 -0
- package/Charting/Visuals/RenderableSeries/FastCandlestickRenderableSeries.js +18 -3
- package/Charting/Visuals/RenderableSeries/FastColumnRenderableSeries.d.ts +36 -2
- package/Charting/Visuals/RenderableSeries/FastColumnRenderableSeries.js +77 -8
- package/Charting/Visuals/RenderableSeries/FastErrorBarsRenderableSeries.js +2 -1
- package/Charting/Visuals/RenderableSeries/FastImpulseRenderableSeries.d.ts +7 -0
- package/Charting/Visuals/RenderableSeries/FastImpulseRenderableSeries.js +16 -4
- package/Charting/Visuals/RenderableSeries/FastLineRenderableSeries.js +2 -1
- package/Charting/Visuals/RenderableSeries/FastMountainRenderableSeries.js +2 -1
- package/Charting/Visuals/RenderableSeries/FastOhlcRenderableSeries.js +2 -1
- package/Charting/Visuals/RenderableSeries/FastTextRenderableSeries.d.ts +17 -0
- package/Charting/Visuals/RenderableSeries/FastTextRenderableSeries.js +45 -0
- package/Charting/Visuals/RenderableSeries/HeatmapColorMap.js +3 -2
- package/Charting/Visuals/RenderableSeries/HitTest/BandSeriesHitTestProvider.js +35 -5
- package/Charting/Visuals/RenderableSeries/HitTest/BaseHitTestProvider.js +17 -1
- package/Charting/Visuals/RenderableSeries/HitTest/HitTestInfo.d.ts +8 -0
- package/Charting/Visuals/RenderableSeries/HitTest/MountainSeriesHitTestProvider.js +7 -1
- package/Charting/Visuals/RenderableSeries/HitTest/NonUniformHeatmapHitTestProvider.d.ts +20 -0
- package/Charting/Visuals/RenderableSeries/HitTest/NonUniformHeatmapHitTestProvider.js +86 -0
- package/Charting/Visuals/RenderableSeries/HitTest/TextSeriesHitTestProvider.d.ts +6 -0
- package/Charting/Visuals/RenderableSeries/HitTest/TextSeriesHitTestProvider.js +56 -0
- package/Charting/Visuals/RenderableSeries/HitTest/UniformHeatmapHitTestProvider.js +1 -1
- package/Charting/Visuals/RenderableSeries/HitTest/hitTestHelpers.d.ts +7 -1
- package/Charting/Visuals/RenderableSeries/HitTest/hitTestHelpers.js +34 -2
- package/Charting/Visuals/RenderableSeries/IBaseRenderableSeriesOptions.d.ts +6 -1
- package/Charting/Visuals/RenderableSeries/IRenderableSeries.d.ts +12 -0
- package/Charting/Visuals/RenderableSeries/NonUniformHeatmapRenderableSeries.d.ts +74 -0
- package/Charting/Visuals/RenderableSeries/NonUniformHeatmapRenderableSeries.js +99 -0
- package/Charting/Visuals/RenderableSeries/RolloverModifier/RolloverModifierRenderableSeriesProps.d.ts +7 -2
- package/Charting/Visuals/RenderableSeries/ShaderEffect.js +2 -2
- package/Charting/Visuals/RenderableSeries/SplineBandRenderableSeries.js +2 -1
- package/Charting/Visuals/RenderableSeries/SplineLineRenderableSeries.d.ts +2 -3
- package/Charting/Visuals/RenderableSeries/SplineLineRenderableSeries.js +2 -1
- package/Charting/Visuals/RenderableSeries/SplineMountainRenderableSeries.js +2 -1
- package/Charting/Visuals/RenderableSeries/StackedColumnCollection.js +2 -1
- package/Charting/Visuals/RenderableSeries/StackedColumnRenderableSeries.d.ts +3 -0
- package/Charting/Visuals/RenderableSeries/StackedColumnRenderableSeries.js +13 -2
- package/Charting/Visuals/RenderableSeries/StackedMountainCollection.js +4 -1
- package/Charting/Visuals/RenderableSeries/StackedMountainRenderableSeries.d.ts +7 -0
- package/Charting/Visuals/RenderableSeries/StackedMountainRenderableSeries.js +33 -9
- package/Charting/Visuals/RenderableSeries/UniformContoursRenderableSeries.d.ts +5 -0
- package/Charting/Visuals/RenderableSeries/UniformContoursRenderableSeries.js +7 -1
- package/Charting/Visuals/RenderableSeries/UniformHeatmapRenderableSeries.d.ts +2 -75
- package/Charting/Visuals/RenderableSeries/UniformHeatmapRenderableSeries.js +8 -130
- package/Charting/Visuals/RenderableSeries/XyScatterRenderableSeries.d.ts +5 -0
- package/Charting/Visuals/RenderableSeries/XyScatterRenderableSeries.js +7 -1
- package/Charting/Visuals/RenderableSeries/constants.d.ts +5 -1
- package/Charting/Visuals/RenderableSeries/constants.js +4 -0
- package/Charting/Visuals/RubberBandSvgRect/RubberBandSvgRect.js +3 -3
- package/Charting/Visuals/SciChartDefaults.d.ts +4 -0
- package/Charting/Visuals/SciChartDefaults.js +4 -0
- package/Charting/Visuals/SciChartOverview.js +5 -3
- package/Charting/Visuals/SciChartPieSurface/PieSegment/IPieSegment.d.ts +4 -0
- package/Charting/Visuals/SciChartPieSurface/PieSegment/PieSegment.d.ts +13 -0
- package/Charting/Visuals/SciChartPieSurface/PieSegment/PieSegment.js +22 -4
- package/Charting/Visuals/SciChartPieSurface/PieSegment/constants.d.ts +2 -1
- package/Charting/Visuals/SciChartPieSurface/PieSegment/constants.js +1 -0
- package/Charting/Visuals/SciChartPieSurface/SciChartPieSurface.d.ts +5 -0
- package/Charting/Visuals/SciChartPieSurface/SciChartPieSurface.js +17 -19
- package/Charting/Visuals/SciChartSurface.d.ts +238 -7
- package/Charting/Visuals/SciChartSurface.js +800 -28
- package/Charting/Visuals/SciChartSurfaceBase.d.ts +16 -1
- package/Charting/Visuals/SciChartSurfaceBase.js +34 -2
- package/Charting/Visuals/TextureManager/CanvasTexture.js +1 -1
- package/Charting/Visuals/TextureManager/DpiHelper.js +3 -7
- package/Charting/Visuals/TextureManager/TextureManager.d.ts +11 -0
- package/Charting/Visuals/TextureManager/TextureManager.js +37 -1
- package/Charting/Visuals/createMaster.js +7 -10
- package/Charting/Visuals/createSingle.js +2 -0
- package/Charting/Visuals/licenseManager2D.js +9 -9
- package/Charting/Visuals/sciChartInitCommon.js +16 -12
- package/Charting3D/CameraController.d.ts +5 -0
- package/Charting3D/CameraController.js +6 -0
- package/Charting3D/ChartModifiers/ResetCamera3DModifier.js +2 -1
- package/Charting3D/Visuals/Axis/AxisBase3D.js +7 -5
- package/Charting3D/Visuals/Axis/NumericAxis3D.js +2 -1
- package/Charting3D/Visuals/Primitives/ScatterPointsSceneEntity.d.ts +4 -0
- package/Charting3D/Visuals/Primitives/ScatterPointsSceneEntity.js +7 -0
- package/Charting3D/Visuals/Primitives/SurfaceMeshSceneEntity.js +6 -4
- package/Charting3D/Visuals/RenderableSeries/BaseRenderableSeries3D.d.ts +7 -2
- package/Charting3D/Visuals/RenderableSeries/BaseRenderableSeries3D.js +3 -2
- package/Charting3D/Visuals/RenderableSeries/SurfaceMesh/SurfaceMeshRenderableSeries3D.d.ts +0 -5
- package/Charting3D/Visuals/RenderableSeries/SurfaceMesh/SurfaceMeshRenderableSeries3D.js +12 -11
- package/Charting3D/Visuals/SciChart3DSurface.d.ts +2 -2
- package/Charting3D/Visuals/SciChart3DSurface.js +18 -11
- package/Charting3D/Visuals/createMaster3d.js +10 -18
- package/Charting3D/Visuals/createSingle3d.js +12 -10
- package/Core/Animations/GenericAnimation.d.ts +2 -0
- package/Core/Animations/GenericAnimation.js +3 -0
- package/Core/Animations/NumberRangeAnimator.js +7 -2
- package/Core/BuildStamp.d.ts +1 -1
- package/Core/BuildStamp.js +2 -2
- package/Core/Mouse/MouseManager.d.ts +20 -0
- package/Core/Mouse/MouseManager.js +201 -30
- package/Core/Telemetry.js +1 -1
- package/README.md +91 -403
- package/_wasm/scichart.browser.js +1 -1
- package/_wasm/scichart2d.data +0 -0
- package/_wasm/scichart2d.js +280 -267
- package/_wasm/scichart2d.wasm +0 -0
- package/_wasm/scichart3d.data +0 -0
- package/_wasm/scichart3d.js +280 -268
- package/_wasm/scichart3d.wasm +0 -0
- package/constants/performanceWarnings.d.ts +2 -0
- package/constants/performanceWarnings.js +3 -1
- package/package.json +2 -2
- package/types/AutoColorMode.d.ts +9 -0
- package/types/AutoColorMode.js +13 -0
- package/types/BaseType.d.ts +3 -1
- package/types/BaseType.js +2 -0
- package/types/DataLabelProviderType.d.ts +15 -0
- package/types/DataLabelProviderType.js +19 -0
- package/types/DataLabelSkipMode.d.ts +21 -0
- package/types/DataLabelSkipMode.js +25 -0
- package/types/DefaultRenderLayer.d.ts +10 -0
- package/types/DefaultRenderLayer.js +14 -0
- package/types/MousePosition.d.ts +1 -1
- package/types/MousePosition.js +1 -1
- package/types/SeriesType.d.ts +7 -1
- package/types/SeriesType.js +6 -0
- package/types/SvgClippingMode.d.ts +17 -0
- package/types/SvgClippingMode.js +21 -0
- package/types/TDataLabelStyle.d.ts +16 -0
- package/types/TDataLabelStyle.js +2 -0
- package/types/TSciChart.d.ts +214 -118
- package/types/TSciChart3D.d.ts +104 -70
- package/types/TextPosition.d.ts +17 -0
- package/types/TextPosition.js +39 -0
- package/types/ThemeProviderType.d.ts +3 -1
- package/types/ThemeProviderType.js +2 -0
- package/utils/ccall/appendDoubleVectorFromJsArray.d.ts +10 -1
- package/utils/ccall/appendDoubleVectorFromJsArray.js +24 -1
- package/utils/memoize.d.ts +1 -0
- package/utils/memoize.js +26 -0
- package/utils/number.d.ts +1 -0
- package/utils/number.js +5 -1
- package/utils/parseColor.d.ts +2 -0
- package/utils/parseColor.js +3 -3
- package/utils/text.d.ts +5 -0
- package/utils/text.js +48 -0
- package/utils/translate.d.ts +12 -2
- package/utils/translate.js +67 -11
- package/utils/zeroArray2D.d.ts +5 -0
- package/utils/zeroArray2D.js +5 -0
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
exports.BaseDataLabelProvider = void 0;
|
|
15
|
+
var Guard_1 = require("../../../../Core/Guard");
|
|
16
|
+
var TextPosition_1 = require("../../../../types/TextPosition");
|
|
17
|
+
var parseColor_1 = require("../../../../utils/parseColor");
|
|
18
|
+
var IThemeProvider_1 = require("../../../Themes/IThemeProvider");
|
|
19
|
+
var NativeObject_1 = require("../../Helpers/NativeObject");
|
|
20
|
+
var DpiHelper_1 = require("../../TextureManager/DpiHelper");
|
|
21
|
+
var BaseDataLabelProvider = /** @class */ (function () {
|
|
22
|
+
/**
|
|
23
|
+
* Creates an instance of the {@link DataLabelProvider}
|
|
24
|
+
*/
|
|
25
|
+
function BaseDataLabelProvider(options) {
|
|
26
|
+
/**
|
|
27
|
+
* The text to draw, along with the sizes and positions. Usually generated, but can be updated before final drawing
|
|
28
|
+
*/
|
|
29
|
+
this.dataLabels = [];
|
|
30
|
+
this.styleProperty = options === null || options === void 0 ? void 0 : options.style;
|
|
31
|
+
this.colorProperty = options === null || options === void 0 ? void 0 : options.color;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Called when a DataLabelProvider is attached to a parent {@link IRenderableSeries | RenderableSeries}
|
|
35
|
+
* @param webAssemblyContext
|
|
36
|
+
* @param parentSeries
|
|
37
|
+
*/
|
|
38
|
+
BaseDataLabelProvider.prototype.onAttach = function (webAssemblyContext, parentSeries) {
|
|
39
|
+
Guard_1.Guard.notNull(webAssemblyContext, "webAssemblyContext");
|
|
40
|
+
Guard_1.Guard.notNull(parentSeries, "parentSeries");
|
|
41
|
+
this.webAssemblyContext = webAssemblyContext;
|
|
42
|
+
this.parentSeries = parentSeries;
|
|
43
|
+
};
|
|
44
|
+
Object.defineProperty(BaseDataLabelProvider.prototype, "style", {
|
|
45
|
+
/**
|
|
46
|
+
* Gets or sets the text style used for data labels. The style must be set, with fontFamily and fontSize set, in order for text to be drawn.
|
|
47
|
+
*/
|
|
48
|
+
get: function () {
|
|
49
|
+
return this.styleProperty;
|
|
50
|
+
},
|
|
51
|
+
/**
|
|
52
|
+
* Gets or sets the text style used for data labels. The style must be set, with fontFamily and fontSize set, in order for text to be drawn.
|
|
53
|
+
*/
|
|
54
|
+
set: function (value) {
|
|
55
|
+
this.styleProperty = value;
|
|
56
|
+
this.invalidateParent();
|
|
57
|
+
},
|
|
58
|
+
enumerable: false,
|
|
59
|
+
configurable: true
|
|
60
|
+
});
|
|
61
|
+
Object.defineProperty(BaseDataLabelProvider.prototype, "color", {
|
|
62
|
+
/**
|
|
63
|
+
* Gets or sets the color for data labels. Defaults to axis label color
|
|
64
|
+
*/
|
|
65
|
+
get: function () {
|
|
66
|
+
var _a, _b, _c;
|
|
67
|
+
if (!this.colorProperty) {
|
|
68
|
+
return (_c = (_b = (_a = this.parentSeries) === null || _a === void 0 ? void 0 : _a.parentSurface) === null || _b === void 0 ? void 0 : _b.themeProvider) === null || _c === void 0 ? void 0 : _c.tickTextBrush;
|
|
69
|
+
}
|
|
70
|
+
return (0, IThemeProvider_1.stripAutoColor)(this.colorProperty);
|
|
71
|
+
},
|
|
72
|
+
/**
|
|
73
|
+
* Gets or sets the color for data labels. Defaults to axis label color
|
|
74
|
+
*/
|
|
75
|
+
set: function (value) {
|
|
76
|
+
this.colorProperty = value;
|
|
77
|
+
this.invalidateParent();
|
|
78
|
+
},
|
|
79
|
+
enumerable: false,
|
|
80
|
+
configurable: true
|
|
81
|
+
});
|
|
82
|
+
/** Update the style. Only the properties passed will be updated */
|
|
83
|
+
BaseDataLabelProvider.prototype.updateStyle = function (value) {
|
|
84
|
+
this.styleProperty = __assign(__assign({}, this.styleProperty), value);
|
|
85
|
+
this.invalidateParent();
|
|
86
|
+
};
|
|
87
|
+
/**
|
|
88
|
+
* Base behaviour is to do nothing. Labels will only be drawn if they have been manually set
|
|
89
|
+
*/
|
|
90
|
+
BaseDataLabelProvider.prototype.generateDataLabels = function (renderContext, renderPassData) { };
|
|
91
|
+
BaseDataLabelProvider.prototype.draw = function (renderContext) {
|
|
92
|
+
var _a, _b, _c;
|
|
93
|
+
if (!this.dataLabels || this.dataLabels.length === 0) {
|
|
94
|
+
return;
|
|
95
|
+
}
|
|
96
|
+
if (!this.style || !this.style.fontFamily || !this.style.fontSize) {
|
|
97
|
+
return;
|
|
98
|
+
}
|
|
99
|
+
var color = (0, parseColor_1.parseColorToUIntArgb)(this.color);
|
|
100
|
+
var dpiAdjustedStyle = DpiHelper_1.DpiHelper.adjustTextStyle(this.style);
|
|
101
|
+
var font = renderContext.getFont(dpiAdjustedStyle);
|
|
102
|
+
var rotationVector = (0, NativeObject_1.getVector4)(this.webAssemblyContext, 0, 0, 0, 0);
|
|
103
|
+
var alignMode = (0, TextPosition_1.convertMultiLineAlignment)(this.style.multiLineAlignment, this.webAssemblyContext);
|
|
104
|
+
for (var _i = 0, _d = this.dataLabels; _i < _d.length; _i++) {
|
|
105
|
+
var item = _d[_i];
|
|
106
|
+
// Adjust the postion to take into account the seriesVewRect.
|
|
107
|
+
// We do this because we are ending the font after the transformation has been popped.
|
|
108
|
+
font.DrawStringAdvanced((_a = item.text) !== null && _a !== void 0 ? _a : "", (_b = item.color) !== null && _b !== void 0 ? _b : color, Math.round(item.position.x + this.parentSeries.parentSurface.seriesViewRect.left), Math.round(item.position.y + this.parentSeries.parentSurface.seriesViewRect.top), rotationVector, alignMode, (_c = this.style.lineSpacing) !== null && _c !== void 0 ? _c : 2);
|
|
109
|
+
}
|
|
110
|
+
// Don't end font here to facilitate batch drawing
|
|
111
|
+
};
|
|
112
|
+
BaseDataLabelProvider.prototype.resolveAutoColors = function (index, maxSeries, theme) {
|
|
113
|
+
if (this.colorProperty && this.colorProperty.startsWith(IThemeProvider_1.AUTO_COLOR)) {
|
|
114
|
+
var color = theme.getStrokeColor(index, maxSeries, this.webAssemblyContext);
|
|
115
|
+
this.color = IThemeProvider_1.AUTO_COLOR + color;
|
|
116
|
+
}
|
|
117
|
+
};
|
|
118
|
+
BaseDataLabelProvider.prototype.toJSON = function () {
|
|
119
|
+
return { type: this.type, options: { style: this.style, color: this.color } };
|
|
120
|
+
};
|
|
121
|
+
BaseDataLabelProvider.prototype.invalidateParent = function () {
|
|
122
|
+
var _a;
|
|
123
|
+
if ((_a = this.parentSeries) === null || _a === void 0 ? void 0 : _a.invalidateParentCallback) {
|
|
124
|
+
this.parentSeries.invalidateParentCallback();
|
|
125
|
+
}
|
|
126
|
+
};
|
|
127
|
+
return BaseDataLabelProvider;
|
|
128
|
+
}());
|
|
129
|
+
exports.BaseDataLabelProvider = BaseDataLabelProvider;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Point } from "../../../../Core/Point";
|
|
2
|
+
import { EHorizontalTextPosition, EVerticalTextPosition } from "../../../../types/TextPosition";
|
|
3
|
+
import { EDataLabelProviderType } from "../../../../types/DataLabelProviderType";
|
|
4
|
+
import { TSRTextBounds } from "../../../../types/TSciChart";
|
|
5
|
+
import { DataLabelProvider, IDataLabelProviderOptions } from "./DataLabelProvider";
|
|
6
|
+
import { DataLabelState } from "./DataLabelState";
|
|
7
|
+
export interface IBubbleSeriesDataLabelProviderOptions extends IDataLabelProviderOptions {
|
|
8
|
+
/** Sets the horizontal Anchor point for the label. Default Center */
|
|
9
|
+
horizontalTextPosition?: EHorizontalTextPosition;
|
|
10
|
+
/** Sets the vertical Anchor point for the label. Default Center */
|
|
11
|
+
verticalTextPosition?: EVerticalTextPosition;
|
|
12
|
+
}
|
|
13
|
+
export declare class BubbleSeriesDataLabelProvider extends DataLabelProvider {
|
|
14
|
+
readonly type: EDataLabelProviderType;
|
|
15
|
+
constructor(options?: IBubbleSeriesDataLabelProviderOptions);
|
|
16
|
+
getPosition(state: DataLabelState, textBounds: TSRTextBounds): Point;
|
|
17
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
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
|
+
})();
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.BubbleSeriesDataLabelProvider = void 0;
|
|
19
|
+
var Point_1 = require("../../../../Core/Point");
|
|
20
|
+
var TextPosition_1 = require("../../../../types/TextPosition");
|
|
21
|
+
var DataLabelProviderType_1 = require("../../../../types/DataLabelProviderType");
|
|
22
|
+
var DataLabelProvider_1 = require("./DataLabelProvider");
|
|
23
|
+
var BubbleSeriesDataLabelProvider = /** @class */ (function (_super) {
|
|
24
|
+
__extends(BubbleSeriesDataLabelProvider, _super);
|
|
25
|
+
function BubbleSeriesDataLabelProvider(options) {
|
|
26
|
+
var _this = this;
|
|
27
|
+
var _a, _b;
|
|
28
|
+
_this = _super.call(this, options) || this;
|
|
29
|
+
_this.type = DataLabelProviderType_1.EDataLabelProviderType.Bubble;
|
|
30
|
+
_this.horizontalTextPositionProperty = (_a = options === null || options === void 0 ? void 0 : options.horizontalTextPosition) !== null && _a !== void 0 ? _a : TextPosition_1.EHorizontalTextPosition.Center;
|
|
31
|
+
_this.verticalTextPositionProperty = (_b = options === null || options === void 0 ? void 0 : options.verticalTextPosition) !== null && _b !== void 0 ? _b : TextPosition_1.EVerticalTextPosition.Center;
|
|
32
|
+
return _this;
|
|
33
|
+
}
|
|
34
|
+
BubbleSeriesDataLabelProvider.prototype.getPosition = function (state, textBounds) {
|
|
35
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
36
|
+
var x = state.xCoord();
|
|
37
|
+
var radius = Math.abs(state.parentSeries.getBubbleDiameter(state.index)) / 2;
|
|
38
|
+
if (this.horizontalTextPosition === TextPosition_1.EHorizontalTextPosition.Center) {
|
|
39
|
+
x -= textBounds.m_fWidth / 2;
|
|
40
|
+
}
|
|
41
|
+
else if (this.horizontalTextPosition === TextPosition_1.EHorizontalTextPosition.Left) {
|
|
42
|
+
x -= textBounds.m_fWidth + ((_b = (_a = this.style.padding) === null || _a === void 0 ? void 0 : _a.right) !== null && _b !== void 0 ? _b : 0) + radius;
|
|
43
|
+
}
|
|
44
|
+
else {
|
|
45
|
+
x += ((_d = (_c = this.style.padding) === null || _c === void 0 ? void 0 : _c.right) !== null && _d !== void 0 ? _d : 0) + radius;
|
|
46
|
+
}
|
|
47
|
+
var yOffset = textBounds.m_fHeight - textBounds.GetLineBounds(0).m_fHeight;
|
|
48
|
+
var y = state.yCoord() - yOffset;
|
|
49
|
+
if (this.verticalTextPosition === TextPosition_1.EVerticalTextPosition.Center) {
|
|
50
|
+
y += textBounds.m_fHeight / 2;
|
|
51
|
+
}
|
|
52
|
+
else if (this.verticalTextPosition === TextPosition_1.EVerticalTextPosition.Bottom) {
|
|
53
|
+
y += textBounds.m_fHeight + ((_f = (_e = this.style.padding) === null || _e === void 0 ? void 0 : _e.top) !== null && _f !== void 0 ? _f : 0) + radius;
|
|
54
|
+
}
|
|
55
|
+
else {
|
|
56
|
+
y -= ((_h = (_g = this.style.padding) === null || _g === void 0 ? void 0 : _g.bottom) !== null && _h !== void 0 ? _h : 0) + radius;
|
|
57
|
+
}
|
|
58
|
+
return new Point_1.Point(x, y);
|
|
59
|
+
};
|
|
60
|
+
return BubbleSeriesDataLabelProvider;
|
|
61
|
+
}(DataLabelProvider_1.DataLabelProvider));
|
|
62
|
+
exports.BubbleSeriesDataLabelProvider = BubbleSeriesDataLabelProvider;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { Point } from "../../../../Core/Point";
|
|
2
|
+
import { EDataLabelProviderType } from "../../../../types/DataLabelProviderType";
|
|
3
|
+
import { TSRTextBounds } from "../../../../types/TSciChart";
|
|
4
|
+
import { WebGlRenderContext2D } from "../../../Drawing/WebGlRenderContext2D";
|
|
5
|
+
import { RenderPassData } from "../../../Services/RenderPassData";
|
|
6
|
+
import { DataLabelProvider, IDataLabelProviderOptions } from "./DataLabelProvider";
|
|
7
|
+
import { DataLabelState } from "./DataLabelState";
|
|
8
|
+
export declare enum EColumnDataLabelPosition {
|
|
9
|
+
Outside = "Outside",
|
|
10
|
+
Inside = "Inside",
|
|
11
|
+
VerticalPosition = "VerticalPosition"
|
|
12
|
+
}
|
|
13
|
+
export interface IColumnSeriesDataLabelProviderOptions extends IDataLabelProviderOptions {
|
|
14
|
+
/**
|
|
15
|
+
* Sets whether text should be positioned outside or inside the end of the column using {@link EColumnDataLabelPosition}.
|
|
16
|
+
* If VerticalPosition then the {@link verticalPosition} property is used.
|
|
17
|
+
* Default Outside
|
|
18
|
+
*/
|
|
19
|
+
positionMode?: EColumnDataLabelPosition;
|
|
20
|
+
}
|
|
21
|
+
export declare class ColumnSeriesDataLabelProvider extends DataLabelProvider {
|
|
22
|
+
readonly type: EDataLabelProviderType;
|
|
23
|
+
private yAdj;
|
|
24
|
+
private positionModeProperty;
|
|
25
|
+
constructor(options?: IColumnSeriesDataLabelProviderOptions);
|
|
26
|
+
/**
|
|
27
|
+
* Sets whether text should be positioned outside or inside the end of the column using {@link EColumnDataLabelPosition}.
|
|
28
|
+
* If VerticalPosition then the {@link verticalPosition} property is used.
|
|
29
|
+
* Default Outside
|
|
30
|
+
*/
|
|
31
|
+
get positionMode(): EColumnDataLabelPosition;
|
|
32
|
+
/**
|
|
33
|
+
* Sets whether text should be positioned outside or inside the end of the column using {@link EColumnDataLabelPosition}.
|
|
34
|
+
* If VerticalPosition then the {@link verticalPosition} property is used.
|
|
35
|
+
* Default Outside
|
|
36
|
+
*/
|
|
37
|
+
set positionMode(value: EColumnDataLabelPosition);
|
|
38
|
+
generateDataLabels(renderContext: WebGlRenderContext2D, renderPassData: RenderPassData): void;
|
|
39
|
+
getPosition(state: DataLabelState, textBounds: TSRTextBounds): Point;
|
|
40
|
+
toJSON(): {
|
|
41
|
+
type: EDataLabelProviderType;
|
|
42
|
+
options: {
|
|
43
|
+
style: import("../../../../types/TDataLabelStyle").TDataLabelStyle;
|
|
44
|
+
color: string;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
}
|
|
@@ -0,0 +1,125 @@
|
|
|
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
|
+
})();
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.ColumnSeriesDataLabelProvider = exports.EColumnDataLabelPosition = void 0;
|
|
19
|
+
var Point_1 = require("../../../../Core/Point");
|
|
20
|
+
var DataLabelProviderType_1 = require("../../../../types/DataLabelProviderType");
|
|
21
|
+
var TextPosition_1 = require("../../../../types/TextPosition");
|
|
22
|
+
var DataLabelProvider_1 = require("./DataLabelProvider");
|
|
23
|
+
var EColumnDataLabelPosition;
|
|
24
|
+
(function (EColumnDataLabelPosition) {
|
|
25
|
+
EColumnDataLabelPosition["Outside"] = "Outside";
|
|
26
|
+
EColumnDataLabelPosition["Inside"] = "Inside";
|
|
27
|
+
EColumnDataLabelPosition["VerticalPosition"] = "VerticalPosition";
|
|
28
|
+
})(EColumnDataLabelPosition = exports.EColumnDataLabelPosition || (exports.EColumnDataLabelPosition = {}));
|
|
29
|
+
var ColumnSeriesDataLabelProvider = /** @class */ (function (_super) {
|
|
30
|
+
__extends(ColumnSeriesDataLabelProvider, _super);
|
|
31
|
+
function ColumnSeriesDataLabelProvider(options) {
|
|
32
|
+
var _this = this;
|
|
33
|
+
var _a;
|
|
34
|
+
_this = _super.call(this, options) || this;
|
|
35
|
+
_this.type = DataLabelProviderType_1.EDataLabelProviderType.Column;
|
|
36
|
+
_this.positionModeProperty = EColumnDataLabelPosition.Outside;
|
|
37
|
+
_this.positionModeProperty = (_a = options === null || options === void 0 ? void 0 : options.positionMode) !== null && _a !== void 0 ? _a : _this.positionMode;
|
|
38
|
+
return _this;
|
|
39
|
+
}
|
|
40
|
+
Object.defineProperty(ColumnSeriesDataLabelProvider.prototype, "positionMode", {
|
|
41
|
+
/**
|
|
42
|
+
* Sets whether text should be positioned outside or inside the end of the column using {@link EColumnDataLabelPosition}.
|
|
43
|
+
* If VerticalPosition then the {@link verticalPosition} property is used.
|
|
44
|
+
* Default Outside
|
|
45
|
+
*/
|
|
46
|
+
get: function () {
|
|
47
|
+
return this.positionModeProperty;
|
|
48
|
+
},
|
|
49
|
+
/**
|
|
50
|
+
* Sets whether text should be positioned outside or inside the end of the column using {@link EColumnDataLabelPosition}.
|
|
51
|
+
* If VerticalPosition then the {@link verticalPosition} property is used.
|
|
52
|
+
* Default Outside
|
|
53
|
+
*/
|
|
54
|
+
set: function (value) {
|
|
55
|
+
this.positionModeProperty = value;
|
|
56
|
+
this.invalidateParent();
|
|
57
|
+
},
|
|
58
|
+
enumerable: false,
|
|
59
|
+
configurable: true
|
|
60
|
+
});
|
|
61
|
+
ColumnSeriesDataLabelProvider.prototype.generateDataLabels = function (renderContext, renderPassData) {
|
|
62
|
+
var parent = this.parentSeries;
|
|
63
|
+
this.yAdj = Math.ceil(parent.strokeThickness / 2);
|
|
64
|
+
if (parent.pointMarker) {
|
|
65
|
+
this.yAdj = Math.max(this.yAdj, Math.ceil(parent.pointMarker.height / 2));
|
|
66
|
+
}
|
|
67
|
+
_super.prototype.generateDataLabels.call(this, renderContext, renderPassData);
|
|
68
|
+
};
|
|
69
|
+
ColumnSeriesDataLabelProvider.prototype.getPosition = function (state, textBounds) {
|
|
70
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
71
|
+
var x = state.xCoord();
|
|
72
|
+
if (this.horizontalTextPosition === TextPosition_1.EHorizontalTextPosition.Center) {
|
|
73
|
+
x -= textBounds.m_fWidth / 2;
|
|
74
|
+
}
|
|
75
|
+
else if (this.horizontalTextPosition === TextPosition_1.EHorizontalTextPosition.Left) {
|
|
76
|
+
x -= textBounds.m_fWidth + ((_b = (_a = this.style.padding) === null || _a === void 0 ? void 0 : _a.right) !== null && _b !== void 0 ? _b : 0);
|
|
77
|
+
}
|
|
78
|
+
else {
|
|
79
|
+
x += (_d = (_c = this.style.padding) === null || _c === void 0 ? void 0 : _c.left) !== null && _d !== void 0 ? _d : 0;
|
|
80
|
+
}
|
|
81
|
+
if (this.positionMode === EColumnDataLabelPosition.Outside) {
|
|
82
|
+
// Handle multiline
|
|
83
|
+
var yOffset = textBounds.m_fHeight - textBounds.GetLineBounds(0).m_fHeight;
|
|
84
|
+
var y = state.yCoord() - yOffset;
|
|
85
|
+
// Text anchor point is bottom left
|
|
86
|
+
if (state.yVal() >= 0) {
|
|
87
|
+
// positive - draw above
|
|
88
|
+
y -= this.yAdj + ((_f = (_e = state.style.padding) === null || _e === void 0 ? void 0 : _e.bottom) !== null && _f !== void 0 ? _f : 1);
|
|
89
|
+
}
|
|
90
|
+
else {
|
|
91
|
+
// negative - draw below
|
|
92
|
+
y += textBounds.m_fHeight + this.yAdj + ((_h = (_g = state.style.padding) === null || _g === void 0 ? void 0 : _g.top) !== null && _h !== void 0 ? _h : 1);
|
|
93
|
+
}
|
|
94
|
+
return new Point_1.Point(x, y);
|
|
95
|
+
}
|
|
96
|
+
else if (this.positionMode === EColumnDataLabelPosition.Inside) {
|
|
97
|
+
// Handle multiline
|
|
98
|
+
var yOffset = textBounds.m_fHeight - textBounds.GetLineBounds(0).m_fHeight;
|
|
99
|
+
var y = state.yCoord() - yOffset;
|
|
100
|
+
// Text anchor point is bottom left
|
|
101
|
+
if (state.yVal() >= 0) {
|
|
102
|
+
y += textBounds.m_fHeight + this.yAdj + ((_k = (_j = state.style.padding) === null || _j === void 0 ? void 0 : _j.top) !== null && _k !== void 0 ? _k : 1);
|
|
103
|
+
// positive - draw below
|
|
104
|
+
}
|
|
105
|
+
else {
|
|
106
|
+
// negative - draw above
|
|
107
|
+
y -= this.yAdj + ((_m = (_l = state.style.padding) === null || _l === void 0 ? void 0 : _l.bottom) !== null && _m !== void 0 ? _m : 1);
|
|
108
|
+
}
|
|
109
|
+
return new Point_1.Point(x, y);
|
|
110
|
+
}
|
|
111
|
+
else {
|
|
112
|
+
return _super.prototype.getPosition.call(this, state, textBounds);
|
|
113
|
+
}
|
|
114
|
+
};
|
|
115
|
+
ColumnSeriesDataLabelProvider.prototype.toJSON = function () {
|
|
116
|
+
var json = _super.prototype.toJSON.call(this);
|
|
117
|
+
var options = {
|
|
118
|
+
positionMode: this.positionMode
|
|
119
|
+
};
|
|
120
|
+
Object.assign(json.options, options);
|
|
121
|
+
return json;
|
|
122
|
+
};
|
|
123
|
+
return ColumnSeriesDataLabelProvider;
|
|
124
|
+
}(DataLabelProvider_1.DataLabelProvider));
|
|
125
|
+
exports.ColumnSeriesDataLabelProvider = ColumnSeriesDataLabelProvider;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { Point } from "../../../../Core/Point";
|
|
2
|
+
import { EDataLabelProviderType } from "../../../../types/DataLabelProviderType";
|
|
3
|
+
import { ENumericFormat } from "../../../../types/NumericFormat";
|
|
4
|
+
import { Size } from "../../../../types/Size";
|
|
5
|
+
import { WebGlRenderContext2D } from "../../../Drawing/WebGlRenderContext2D";
|
|
6
|
+
import { BaseHeatmapDataSeries } from "../../../Model/BaseHeatmapDataSeries";
|
|
7
|
+
import { IPointMetadata } from "../../../Model/IPointMetadata";
|
|
8
|
+
import { RenderPassData } from "../../../Services/RenderPassData";
|
|
9
|
+
import { BaseDataLabelProvider, IBaseDataLabelProviderOptions, TDataLabel } from "./BaseDataLabelProvider";
|
|
10
|
+
export interface IContoursDataLabelProviderOptions extends IBaseDataLabelProviderOptions {
|
|
11
|
+
/**
|
|
12
|
+
* Gets or sets numeric format to use for formatting values to text. For a list of values, see {@link ENumericFormat}
|
|
13
|
+
*/
|
|
14
|
+
numericFormat?: ENumericFormat;
|
|
15
|
+
/**
|
|
16
|
+
* Gets or sets the precision to use when formatting values to text.
|
|
17
|
+
*/
|
|
18
|
+
precision?: number;
|
|
19
|
+
/**
|
|
20
|
+
* If this is set it will be used to get text values from metaData, rather than formatting y values.
|
|
21
|
+
* The selector will be called even if the metaData for an index is undefined.
|
|
22
|
+
*/
|
|
23
|
+
metaDataSelector?: (metadata: IPointMetadata) => string;
|
|
24
|
+
/** sets the number of rows of data labels. Default 10 */
|
|
25
|
+
labelRowCount?: number;
|
|
26
|
+
}
|
|
27
|
+
export declare class ContoursDataLabelProvider extends BaseDataLabelProvider {
|
|
28
|
+
readonly type: EDataLabelProviderType;
|
|
29
|
+
/**
|
|
30
|
+
* If this is set it will be used to get text values from metaData, rather than formatting y values.
|
|
31
|
+
* The selector will be called even if the metaData for an index is undefined.
|
|
32
|
+
*/
|
|
33
|
+
metaDataSelector: (metadata: IPointMetadata) => string;
|
|
34
|
+
protected dataSeries: BaseHeatmapDataSeries;
|
|
35
|
+
protected zValues: number[][];
|
|
36
|
+
protected colorValue: number;
|
|
37
|
+
private numericFormatProperty;
|
|
38
|
+
private precisionProperty;
|
|
39
|
+
private labelRowCountProperty;
|
|
40
|
+
constructor(options?: IContoursDataLabelProviderOptions);
|
|
41
|
+
/**
|
|
42
|
+
* Gets or sets numeric format to use when formatting values to text. For a list of values, see {@link ENumericFormat}
|
|
43
|
+
* For more control, override getText
|
|
44
|
+
*/
|
|
45
|
+
get numericFormat(): ENumericFormat;
|
|
46
|
+
set numericFormat(value: ENumericFormat);
|
|
47
|
+
/**
|
|
48
|
+
* Gets or sets the precision to use when formatting values to text
|
|
49
|
+
* For more control, override getText
|
|
50
|
+
*/
|
|
51
|
+
get precision(): number;
|
|
52
|
+
set precision(value: number);
|
|
53
|
+
/**
|
|
54
|
+
* Gets or sets the number of rows of data labels. Default 10
|
|
55
|
+
*/
|
|
56
|
+
get labelRowCount(): number;
|
|
57
|
+
set labelRowCount(value: number);
|
|
58
|
+
getText(xIndex: number, yIndex: number): string;
|
|
59
|
+
getPosition(xIndex: number, yIndex: number, xVal: number, yVal: number, textSize: Size, renderPassData: RenderPassData): Point;
|
|
60
|
+
shouldGenerate(textSize: Size, cellWidth: number, cellHeight: number): boolean;
|
|
61
|
+
getColor(xIndex: number, yIndex: number, text: string): number;
|
|
62
|
+
shouldSkipLabel(xIndex: number, yIndex: number, label: TDataLabel, cellWidth: number, cellHeight: number): boolean;
|
|
63
|
+
generateDataLabels(renderContext: WebGlRenderContext2D, renderPassData: RenderPassData): void;
|
|
64
|
+
toJSON(): {
|
|
65
|
+
type: EDataLabelProviderType;
|
|
66
|
+
options: {
|
|
67
|
+
style: import("../../../../types/TDataLabelStyle").TDataLabelStyle;
|
|
68
|
+
color: string;
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
}
|