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
|
@@ -32,9 +32,8 @@ var PointMarkerDrawingProvider = /** @class */ (function (_super) {
|
|
|
32
32
|
* @param ySelector an optional Y-selector for choosing which y-values to use for drawing points
|
|
33
33
|
* @param ySplineSelector an optional selector for choosing which y-animation values to use for drawing points
|
|
34
34
|
*/
|
|
35
|
-
function PointMarkerDrawingProvider(webAssemblyContext, parentSeries, ySelector, ySplineSelector) {
|
|
36
|
-
var _this = _super.call(this, webAssemblyContext, parentSeries) || this;
|
|
37
|
-
_this.ySelector = ySelector === undefined ? function (ps) { return ps.yValues; } : ySelector;
|
|
35
|
+
function PointMarkerDrawingProvider(webAssemblyContext, parentSeries, ySelector, ySplineSelector, xSelector) {
|
|
36
|
+
var _this = _super.call(this, webAssemblyContext, parentSeries, ySelector, xSelector) || this;
|
|
38
37
|
_this.ySplineValuesSelector = ySplineSelector === undefined ? function (rs) { return rs.ySplineValues; } : ySplineSelector;
|
|
39
38
|
_this.nativeDrawingProvider = new _this.webAssemblyContext.SCRTScatterSeriesDrawingProvider();
|
|
40
39
|
_this.xAnimationPointMarkerValues = new _this.webAssemblyContext.SCRTDoubleVector();
|
|
@@ -48,11 +47,15 @@ var PointMarkerDrawingProvider = /** @class */ (function (_super) {
|
|
|
48
47
|
PointMarkerDrawingProvider.prototype.onSeriesPropertyChange = function (propertyName) {
|
|
49
48
|
// Deliberately empty
|
|
50
49
|
};
|
|
50
|
+
PointMarkerDrawingProvider.prototype.getProperties = function (parentSeries) {
|
|
51
|
+
return parentSeries;
|
|
52
|
+
};
|
|
51
53
|
/**
|
|
52
54
|
* @inheritDoc
|
|
53
55
|
*/
|
|
54
56
|
PointMarkerDrawingProvider.prototype.draw = function (renderContext, renderPassData) {
|
|
55
|
-
var
|
|
57
|
+
var _a;
|
|
58
|
+
var pointMarker = (_a = this.getProperties(this.parentSeries)) === null || _a === void 0 ? void 0 : _a.pointMarker;
|
|
56
59
|
if (pointMarker === undefined) {
|
|
57
60
|
return;
|
|
58
61
|
}
|
|
@@ -70,7 +73,7 @@ var PointMarkerDrawingProvider = /** @class */ (function (_super) {
|
|
|
70
73
|
}
|
|
71
74
|
var pointSeries = renderPassData.pointSeries;
|
|
72
75
|
var isCategoryAxis = renderPassData.xCoordinateCalculator.isCategoryCoordinateCalculator;
|
|
73
|
-
var xValues = pointSeries
|
|
76
|
+
var xValues = this.xSelector(pointSeries);
|
|
74
77
|
var yValues = this.ySelector(pointSeries);
|
|
75
78
|
if (this.parentSeries.isSpline) {
|
|
76
79
|
var spline = this.parentSeries;
|
package/Charting/Visuals/RenderableSeries/DrawingProviders/UniformContoursDrawingProvider.js
CHANGED
|
@@ -21,9 +21,10 @@ var Deleter_1 = require("../../../../Core/Deleter");
|
|
|
21
21
|
var Guard_1 = require("../../../../Core/Guard");
|
|
22
22
|
var parseColor_1 = require("../../../../utils/parseColor");
|
|
23
23
|
var TextureCache_1 = require("../../../Drawing/TextureCache");
|
|
24
|
+
var NativeObject_1 = require("../../Helpers/NativeObject");
|
|
24
25
|
var CanvasTexture_1 = require("../../TextureManager/CanvasTexture");
|
|
26
|
+
var BaseHeatmapRenderableSeries_1 = require("../BaseHeatmapRenderableSeries");
|
|
25
27
|
var constants_1 = require("../constants");
|
|
26
|
-
var UniformHeatmapRenderableSeries_1 = require("../UniformHeatmapRenderableSeries");
|
|
27
28
|
var BaseSeriesDrawingProvider_1 = require("./BaseSeriesDrawingProvider");
|
|
28
29
|
/**
|
|
29
30
|
* Used internally - a drawing provider performs drawing for a {@link UniformContoursDrawingProvider} using
|
|
@@ -57,7 +58,7 @@ var UniformContoursDrawingProvider = /** @class */ (function (_super) {
|
|
|
57
58
|
* @inheritDoc
|
|
58
59
|
*/
|
|
59
60
|
UniformContoursDrawingProvider.prototype.onSeriesPropertyChange = function (propertyName) {
|
|
60
|
-
var recreatePalette = propertyName === constants_1.PROPERTY.COLOR_MAP || propertyName.includes(
|
|
61
|
+
var recreatePalette = propertyName === constants_1.PROPERTY.COLOR_MAP || propertyName.includes(BaseHeatmapRenderableSeries_1.COLOR_MAP_PREFIX);
|
|
61
62
|
var recreateHeightmap = propertyName === constants_1.PROPERTY.DATA_SERIES;
|
|
62
63
|
if (recreatePalette) {
|
|
63
64
|
// DrawHeatmapRectWithContours("Delete/recreating paletteTexture");
|
|
@@ -129,7 +130,7 @@ var UniformContoursDrawingProvider = /** @class */ (function (_super) {
|
|
|
129
130
|
};
|
|
130
131
|
UniformContoursDrawingProvider.prototype.drawContours = function (renderContext, x, y, width, height, zMin, zMax, zStep, lineStyle) {
|
|
131
132
|
// Compute params for contours
|
|
132
|
-
var floatParams =
|
|
133
|
+
var floatParams = (0, NativeObject_1.getVector4)(this.webAssemblyContext, 0, 1, 0, 0);
|
|
133
134
|
var contourParams = new this.webAssemblyContext.SCRTContourParams();
|
|
134
135
|
var offset = Math.abs(zMin) < app_1.EPSILON ? 0.5 : 0.01;
|
|
135
136
|
var strokeColor = (0, parseColor_1.parseColorToTArgb)(lineStyle.color);
|
|
@@ -143,7 +144,6 @@ var UniformContoursDrawingProvider = /** @class */ (function (_super) {
|
|
|
143
144
|
// console.log(`contours bounds: ${startX}, ${startY}, ${endX}, ${endY}`);
|
|
144
145
|
var heightsTexture = this.heightsTextureCache.value;
|
|
145
146
|
nativeContext.DrawHeatmapRectWithContours(null, heightsTexture, x, y, width, height, floatParams, contourParams);
|
|
146
|
-
floatParams === null || floatParams === void 0 ? void 0 : floatParams.delete();
|
|
147
147
|
contourParams === null || contourParams === void 0 ? void 0 : contourParams.delete();
|
|
148
148
|
};
|
|
149
149
|
UniformContoursDrawingProvider.prototype.computeHeightMap = function (textureHeight, textureWidth, zValues, isVerticalChart, xFlipped, yFlipped) {
|
package/Charting/Visuals/RenderableSeries/DrawingProviders/UniformHeatmapDrawingProvider.d.ts
CHANGED
|
@@ -11,6 +11,9 @@ export declare class UniformHeatmapDrawingProvider extends BaseSeriesDrawingProv
|
|
|
11
11
|
private paletteTexture;
|
|
12
12
|
private heatTextureCache;
|
|
13
13
|
private packedFloatParams;
|
|
14
|
+
private hasNaNs;
|
|
15
|
+
private opacity;
|
|
16
|
+
private gradientStops;
|
|
14
17
|
/**
|
|
15
18
|
* Creates an instance of the {@link UniformHeatmapDrawingProvider}
|
|
16
19
|
* @param webAssemblyContext The {@link TSciChart | SciChart 2D WebAssembly Context} containing native methods and
|
|
@@ -21,8 +21,8 @@ var Deleter_1 = require("../../../../Core/Deleter");
|
|
|
21
21
|
var Guard_1 = require("../../../../Core/Guard");
|
|
22
22
|
var TextureCache_1 = require("../../../Drawing/TextureCache");
|
|
23
23
|
var CanvasTexture_1 = require("../../TextureManager/CanvasTexture");
|
|
24
|
+
var BaseHeatmapRenderableSeries_1 = require("../BaseHeatmapRenderableSeries");
|
|
24
25
|
var constants_1 = require("../constants");
|
|
25
|
-
var UniformHeatmapRenderableSeries_1 = require("../UniformHeatmapRenderableSeries");
|
|
26
26
|
var BaseSeriesDrawingProvider_1 = require("./BaseSeriesDrawingProvider");
|
|
27
27
|
/**
|
|
28
28
|
* Used internally - a drawing provider performs drawing for a {@link UniformHeatmapRenderableSeries} using
|
|
@@ -57,7 +57,7 @@ var UniformHeatmapDrawingProvider = /** @class */ (function (_super) {
|
|
|
57
57
|
*/
|
|
58
58
|
UniformHeatmapDrawingProvider.prototype.onSeriesPropertyChange = function (propertyName) {
|
|
59
59
|
var recreatePalette = propertyName === constants_1.PROPERTY.COLOR_MAP ||
|
|
60
|
-
propertyName.includes(
|
|
60
|
+
propertyName.includes(BaseHeatmapRenderableSeries_1.COLOR_MAP_PREFIX) ||
|
|
61
61
|
propertyName === constants_1.PROPERTY.OPACITY;
|
|
62
62
|
var recreateHeat = propertyName === constants_1.PROPERTY.DATA_SERIES || constants_1.PROPERTY.USE_LINEAR_TEXTURE_FILTERING;
|
|
63
63
|
if (recreatePalette) {
|
|
@@ -164,12 +164,22 @@ var UniformHeatmapDrawingProvider = /** @class */ (function (_super) {
|
|
|
164
164
|
return canvasTexture;
|
|
165
165
|
};
|
|
166
166
|
UniformHeatmapDrawingProvider.prototype.recreatePalette = function () {
|
|
167
|
-
var _a;
|
|
167
|
+
var _a, _b;
|
|
168
|
+
// TODO comsoder using generic solution for memoization
|
|
169
|
+
var hasNaNs = (_a = this.parentSeries.dataSeries) === null || _a === void 0 ? void 0 : _a.hasNaNs;
|
|
170
|
+
// check if palette texture should be recreated
|
|
171
|
+
if (this.hasNaNs === hasNaNs &&
|
|
172
|
+
this.opacity === this.parentSeries.opacity &&
|
|
173
|
+
this.gradientStops === ((_b = this.parentSeries.colorMap) === null || _b === void 0 ? void 0 : _b.gradientStops)) {
|
|
174
|
+
return;
|
|
175
|
+
}
|
|
168
176
|
this.paletteTexture = (0, Deleter_1.deleteSafe)(this.paletteTexture);
|
|
169
177
|
if (this.parentSeries.colorMap && this.parentSeries.colorMap.gradientStops) {
|
|
178
|
+
this.hasNaNs = hasNaNs;
|
|
179
|
+
this.opacity = this.parentSeries.opacity;
|
|
180
|
+
this.gradientStops = this.parentSeries.colorMap.gradientStops;
|
|
170
181
|
// console.log("Creating palette texture");
|
|
171
182
|
// create palette texture at size 256x1
|
|
172
|
-
var hasNaNs = (_a = this.parentSeries.dataSeries) === null || _a === void 0 ? void 0 : _a.hasNaNs;
|
|
173
183
|
this.paletteTexture = this.createPaletteTexture(256, 1, this.parentSeries.colorMap.gradientStops, this.parentSeries.opacity, hasNaNs);
|
|
174
184
|
}
|
|
175
185
|
};
|
|
@@ -179,6 +189,7 @@ var UniformHeatmapDrawingProvider = /** @class */ (function (_super) {
|
|
|
179
189
|
var v4 = this.packedFloatParams;
|
|
180
190
|
var contourParams = new this.webAssemblyContext.SCRTContourParams();
|
|
181
191
|
var heatTexture = this.heatTextureCache.value;
|
|
192
|
+
this.recreatePalette();
|
|
182
193
|
// nativeContext.DrawHeatmapRect(this.paletteTexture.getTexture(), heatTexture, x, y, width, height, v4);
|
|
183
194
|
nativeContext.DrawHeatmapRectWithContours(this.paletteTexture.getTexture(), // this.paletteTexture.getTexture
|
|
184
195
|
heatTexture, x, y, width, height, v4, contourParams);
|
|
@@ -48,8 +48,9 @@ var FastBandRenderableSeries = /** @class */ (function (_super) {
|
|
|
48
48
|
* @param options optional parameters of type {@link IBandRenderableSeriesOptions} applied when constructing the series type
|
|
49
49
|
*/
|
|
50
50
|
function FastBandRenderableSeries(webAssemblyContext, options) {
|
|
51
|
+
var _this = this;
|
|
51
52
|
var _a, _b;
|
|
52
|
-
|
|
53
|
+
_this = _super.call(this, webAssemblyContext, options) || this;
|
|
53
54
|
_this.type = SeriesType_1.ESeriesType.BandSeries;
|
|
54
55
|
// Must be called here for the series type to be available
|
|
55
56
|
if ((_a = _this.paletteProvider) === null || _a === void 0 ? void 0 : _a.onAttached) {
|
|
@@ -7,10 +7,20 @@ import { IThemeProvider } from "../../Themes/IThemeProvider";
|
|
|
7
7
|
import { BaseRenderableSeries } from "./BaseRenderableSeries";
|
|
8
8
|
import { IHitTestProvider } from "./HitTest/IHitTestProvider";
|
|
9
9
|
import { IBaseRenderableSeriesOptions } from "./IBaseRenderableSeriesOptions";
|
|
10
|
+
import { IBubbleSeriesDataLabelProviderOptions } from "./DataLabels/BubbleSeriesDataLabelProvider";
|
|
11
|
+
import { TSeriesDefinition } from "../../../Builder/buildSeries";
|
|
10
12
|
/**
|
|
11
13
|
* Optional parameters passed to the constructor of {@link FastBubbleRenderableSeries}
|
|
12
14
|
*/
|
|
13
15
|
export interface IBubbleRenderableSeriesOptions extends IBaseRenderableSeriesOptions {
|
|
16
|
+
/**
|
|
17
|
+
* Options to pass to the {@link DataLabelProvider}. Set a style with font and size to enable per-point text for this series.
|
|
18
|
+
*/
|
|
19
|
+
dataLabels?: IBubbleSeriesDataLabelProviderOptions;
|
|
20
|
+
/**
|
|
21
|
+
* The scale value of the bubble sizes
|
|
22
|
+
*/
|
|
23
|
+
zMultiplier?: number;
|
|
14
24
|
}
|
|
15
25
|
/**
|
|
16
26
|
* Defines a bubble-series or JavaScript bubble chart type in the SciChart's High Performance Real-time
|
|
@@ -36,6 +46,7 @@ export interface IBubbleRenderableSeriesOptions extends IBaseRenderableSeriesOpt
|
|
|
36
46
|
export declare class FastBubbleRenderableSeries extends BaseRenderableSeries {
|
|
37
47
|
/** @inheritDoc */
|
|
38
48
|
readonly type = ESeriesType.BubbleSeries;
|
|
49
|
+
protected zMultiplierProperty: number;
|
|
39
50
|
/**
|
|
40
51
|
* Creates an instance of the {@link FastBubbleRenderableSeries}
|
|
41
52
|
* @param webAssemblyContext The {@link TSciChart | SciChart WebAssembly Context} containing
|
|
@@ -47,6 +58,14 @@ export declare class FastBubbleRenderableSeries extends BaseRenderableSeries {
|
|
|
47
58
|
get paletteProvider(): IPointMarkerPaletteProvider;
|
|
48
59
|
/** @inheritDoc */
|
|
49
60
|
set paletteProvider(paletteProvider: IPointMarkerPaletteProvider);
|
|
61
|
+
/**
|
|
62
|
+
* Gets or sets the scale value of the bubble sizes
|
|
63
|
+
*/
|
|
64
|
+
get zMultiplier(): number;
|
|
65
|
+
/**
|
|
66
|
+
* Gets or sets the scale value of the bubble sizes
|
|
67
|
+
*/
|
|
68
|
+
set zMultiplier(value: number);
|
|
50
69
|
/** @inheritDoc */
|
|
51
70
|
applyTheme(themeProvider: IThemeProvider): void;
|
|
52
71
|
/**
|
|
@@ -65,4 +84,6 @@ export declare class FastBubbleRenderableSeries extends BaseRenderableSeries {
|
|
|
65
84
|
toPointSeries(resamplingParams?: ResamplingParams): IPointSeries;
|
|
66
85
|
/** @inheritDoc */
|
|
67
86
|
protected newHitTestProvider(): IHitTestProvider;
|
|
87
|
+
/** @inheritDoc */
|
|
88
|
+
toJSON(excludeData?: boolean): TSeriesDefinition;
|
|
68
89
|
}
|
|
@@ -22,6 +22,8 @@ var EllipsePointMarker_1 = require("../PointMarkers/EllipsePointMarker");
|
|
|
22
22
|
var BaseRenderableSeries_1 = require("./BaseRenderableSeries");
|
|
23
23
|
var BubbleSeriesDrawingProvider_1 = require("./DrawingProviders/BubbleSeriesDrawingProvider");
|
|
24
24
|
var BubbleSeriesHitTestProvider_1 = require("./HitTest/BubbleSeriesHitTestProvider");
|
|
25
|
+
var BubbleSeriesDataLabelProvider_1 = require("./DataLabels/BubbleSeriesDataLabelProvider");
|
|
26
|
+
var constants_1 = require("./constants");
|
|
25
27
|
/**
|
|
26
28
|
* Defines a bubble-series or JavaScript bubble chart type in the SciChart's High Performance Real-time
|
|
27
29
|
* {@link https://www.scichart.com/javascript-chart-features | JavaScript Charts}
|
|
@@ -52,19 +54,26 @@ var FastBubbleRenderableSeries = /** @class */ (function (_super) {
|
|
|
52
54
|
* @param options optional parameters of type {@link IBubbleRenderableSeriesOptions} applied when constructing the series type
|
|
53
55
|
*/
|
|
54
56
|
function FastBubbleRenderableSeries(webAssemblyContext, options) {
|
|
55
|
-
var
|
|
56
|
-
var
|
|
57
|
+
var _this = this;
|
|
58
|
+
var _a, _b, _c;
|
|
59
|
+
_this = _super.call(this, webAssemblyContext, options) || this;
|
|
57
60
|
/** @inheritDoc */
|
|
58
61
|
_this.type = SeriesType_1.ESeriesType.BubbleSeries;
|
|
62
|
+
_this.zMultiplierProperty = 1;
|
|
63
|
+
_this.zMultiplierProperty = (_a = options === null || options === void 0 ? void 0 : options.zMultiplier) !== null && _a !== void 0 ? _a : _this.zMultiplierProperty;
|
|
59
64
|
if (!_this.pointMarker) {
|
|
60
65
|
_this.pointMarker = new EllipsePointMarker_1.EllipsePointMarker(webAssemblyContext, { width: 64, height: 64 });
|
|
61
66
|
}
|
|
62
67
|
// Must be called here for the series type to be available
|
|
63
|
-
if ((
|
|
64
|
-
(
|
|
68
|
+
if ((_b = _this.paletteProvider) === null || _b === void 0 ? void 0 : _b.onAttached) {
|
|
69
|
+
(_c = _this.paletteProvider) === null || _c === void 0 ? void 0 : _c.onAttached(_this);
|
|
65
70
|
}
|
|
66
71
|
_this.drawingProviders = [];
|
|
67
72
|
_this.drawingProviders.push(new BubbleSeriesDrawingProvider_1.BubbleSeriesDrawingProvider(webAssemblyContext, _this));
|
|
73
|
+
if (!_this.dataLabelProviderProperty) {
|
|
74
|
+
_this.dataLabelProviderProperty = new BubbleSeriesDataLabelProvider_1.BubbleSeriesDataLabelProvider(options === null || options === void 0 ? void 0 : options.dataLabels);
|
|
75
|
+
_this.dataLabelProviderProperty.onAttach(_this.webAssemblyContext, _this);
|
|
76
|
+
}
|
|
68
77
|
if (options === null || options === void 0 ? void 0 : options.animation) {
|
|
69
78
|
_this.animationQueue.push(options.animation);
|
|
70
79
|
}
|
|
@@ -82,6 +91,23 @@ var FastBubbleRenderableSeries = /** @class */ (function (_super) {
|
|
|
82
91
|
enumerable: false,
|
|
83
92
|
configurable: true
|
|
84
93
|
});
|
|
94
|
+
Object.defineProperty(FastBubbleRenderableSeries.prototype, "zMultiplier", {
|
|
95
|
+
/**
|
|
96
|
+
* Gets or sets the scale value of the bubble sizes
|
|
97
|
+
*/
|
|
98
|
+
get: function () {
|
|
99
|
+
return this.zMultiplierProperty;
|
|
100
|
+
},
|
|
101
|
+
/**
|
|
102
|
+
* Gets or sets the scale value of the bubble sizes
|
|
103
|
+
*/
|
|
104
|
+
set: function (value) {
|
|
105
|
+
this.zMultiplierProperty = value;
|
|
106
|
+
this.notifyPropertyChanged(constants_1.PROPERTY.Z_MULTIPLIER);
|
|
107
|
+
},
|
|
108
|
+
enumerable: false,
|
|
109
|
+
configurable: true
|
|
110
|
+
});
|
|
85
111
|
/** @inheritDoc */
|
|
86
112
|
FastBubbleRenderableSeries.prototype.applyTheme = function (themeProvider) {
|
|
87
113
|
_super.prototype.applyTheme.call(this, themeProvider);
|
|
@@ -116,6 +142,16 @@ var FastBubbleRenderableSeries = /** @class */ (function (_super) {
|
|
|
116
142
|
FastBubbleRenderableSeries.prototype.newHitTestProvider = function () {
|
|
117
143
|
return new BubbleSeriesHitTestProvider_1.BubbleSeriesHitTestProvider(this, this.webAssemblyContext);
|
|
118
144
|
};
|
|
145
|
+
/** @inheritDoc */
|
|
146
|
+
FastBubbleRenderableSeries.prototype.toJSON = function (excludeData) {
|
|
147
|
+
if (excludeData === void 0) { excludeData = false; }
|
|
148
|
+
var json = _super.prototype.toJSON.call(this, excludeData);
|
|
149
|
+
var options = {
|
|
150
|
+
zMultiplier: this.zMultiplier
|
|
151
|
+
};
|
|
152
|
+
Object.assign(json.options, options);
|
|
153
|
+
return json;
|
|
154
|
+
};
|
|
119
155
|
return FastBubbleRenderableSeries;
|
|
120
156
|
}(BaseRenderableSeries_1.BaseRenderableSeries));
|
|
121
157
|
exports.FastBubbleRenderableSeries = FastBubbleRenderableSeries;
|
|
@@ -67,4 +67,6 @@ export declare class FastCandlestickRenderableSeries extends BaseOhlcRenderableS
|
|
|
67
67
|
*/
|
|
68
68
|
set brushDown(htmlColorCode: string);
|
|
69
69
|
toJSON(excludeData?: boolean): import("../../../Builder/buildSeries").TSeriesDefinition;
|
|
70
|
+
/** @inheritDoc */
|
|
71
|
+
resolveAutoColors(index: number, maxSeries: number, theme: IThemeProvider): void;
|
|
70
72
|
}
|
|
@@ -17,6 +17,7 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
exports.FastCandlestickRenderableSeries = void 0;
|
|
19
19
|
var SeriesType_1 = require("../../../types/SeriesType");
|
|
20
|
+
var IThemeProvider_1 = require("../../Themes/IThemeProvider");
|
|
20
21
|
var SciChartSurfaceBase_1 = require("../SciChartSurfaceBase");
|
|
21
22
|
var BaseOhlcRenderableSeries_1 = require("./BaseOhlcRenderableSeries");
|
|
22
23
|
var constants_1 = require("./constants");
|
|
@@ -50,8 +51,9 @@ var FastCandlestickRenderableSeries = /** @class */ (function (_super) {
|
|
|
50
51
|
* @param options optional parameters of type {@linICandlestickRenderableSeriesOptionsns} applied when constructing the series type
|
|
51
52
|
*/
|
|
52
53
|
function FastCandlestickRenderableSeries(webAssemblyContext, options) {
|
|
54
|
+
var _this = this;
|
|
53
55
|
var _a, _b;
|
|
54
|
-
|
|
56
|
+
_this = _super.call(this, webAssemblyContext, options) || this;
|
|
55
57
|
_this.type = SeriesType_1.ESeriesType.CandlestickSeries;
|
|
56
58
|
_this.brushUp = (options === null || options === void 0 ? void 0 : options.brushUp) || SciChartSurfaceBase_1.SciChartSurfaceBase.DEFAULT_THEME.upBodyBrush;
|
|
57
59
|
_this.brushDown = (options === null || options === void 0 ? void 0 : options.brushDown) || SciChartSurfaceBase_1.SciChartSurfaceBase.DEFAULT_THEME.downBodyBrush;
|
|
@@ -81,7 +83,7 @@ var FastCandlestickRenderableSeries = /** @class */ (function (_super) {
|
|
|
81
83
|
* Gets or sets the fill when candlestick close is greater than open, as an HTML color code
|
|
82
84
|
*/
|
|
83
85
|
get: function () {
|
|
84
|
-
return this.brushUpProperty;
|
|
86
|
+
return (0, IThemeProvider_1.stripAutoColor)(this.brushUpProperty);
|
|
85
87
|
},
|
|
86
88
|
/**
|
|
87
89
|
* Gets or sets the fill when candlestick close is greater than open, as an HTML color code
|
|
@@ -98,7 +100,7 @@ var FastCandlestickRenderableSeries = /** @class */ (function (_super) {
|
|
|
98
100
|
* Gets or sets the fill when candlestick close is less than open, as an HTML color code
|
|
99
101
|
*/
|
|
100
102
|
get: function () {
|
|
101
|
-
return this.brushDownProperty;
|
|
103
|
+
return (0, IThemeProvider_1.stripAutoColor)(this.brushDownProperty);
|
|
102
104
|
},
|
|
103
105
|
/**
|
|
104
106
|
* Gets or sets the fill when candlestick close is less than open, as an HTML color code
|
|
@@ -120,6 +122,19 @@ var FastCandlestickRenderableSeries = /** @class */ (function (_super) {
|
|
|
120
122
|
Object.assign(json.options, options);
|
|
121
123
|
return json;
|
|
122
124
|
};
|
|
125
|
+
/** @inheritDoc */
|
|
126
|
+
FastCandlestickRenderableSeries.prototype.resolveAutoColors = function (index, maxSeries, theme) {
|
|
127
|
+
_super.prototype.resolveAutoColors.call(this, index, maxSeries, theme);
|
|
128
|
+
if (this.brushUpProperty.startsWith(IThemeProvider_1.AUTO_COLOR)) {
|
|
129
|
+
var color = theme.getFillColor(index, maxSeries, this.webAssemblyContext);
|
|
130
|
+
this.brushUp = IThemeProvider_1.AUTO_COLOR + this.adjustAutoColor("brushUp", color);
|
|
131
|
+
}
|
|
132
|
+
var y1Index = (index + Math.floor(maxSeries / 2)) % maxSeries;
|
|
133
|
+
if (this.brushDownProperty.startsWith(IThemeProvider_1.AUTO_COLOR)) {
|
|
134
|
+
var color = theme.getFillColor(y1Index, maxSeries, this.webAssemblyContext);
|
|
135
|
+
this.brushDown = IThemeProvider_1.AUTO_COLOR + this.adjustAutoColor("brushDown", color);
|
|
136
|
+
}
|
|
137
|
+
};
|
|
123
138
|
return FastCandlestickRenderableSeries;
|
|
124
139
|
}(BaseOhlcRenderableSeries_1.BaseOhlcRenderableSeries));
|
|
125
140
|
exports.FastCandlestickRenderableSeries = FastCandlestickRenderableSeries;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
import { GradientParams } from "../../../Core/GradientParams";
|
|
1
2
|
import { NumberRange } from "../../../Core/NumberRange";
|
|
2
3
|
import { ESeriesType } from "../../../types/SeriesType";
|
|
3
4
|
import { TSciChart } from "../../../types/TSciChart";
|
|
4
5
|
import { IThemeProvider } from "../../Themes/IThemeProvider";
|
|
5
6
|
import { BaseRenderableSeries } from "./BaseRenderableSeries";
|
|
7
|
+
import { IColumnSeriesDataLabelProviderOptions } from "./DataLabels/ColumnSeriesDataLabelProvider";
|
|
6
8
|
import { IHitTestProvider } from "./HitTest/IHitTestProvider";
|
|
7
9
|
import { IBaseRenderableSeriesOptions } from "./IBaseRenderableSeriesOptions";
|
|
8
10
|
/**
|
|
@@ -21,6 +23,18 @@ export interface IColumnRenderableSeriesOptions extends IBaseRenderableSeriesOpt
|
|
|
21
23
|
* Gets or sets the Zero-line Y, the Y-value where the column crosses zero and inverts. Default is 0
|
|
22
24
|
*/
|
|
23
25
|
zeroLineY?: number;
|
|
26
|
+
/**
|
|
27
|
+
* Gets or sets the fill as a gradient brush
|
|
28
|
+
*/
|
|
29
|
+
fillLinearGradient?: GradientParams;
|
|
30
|
+
/**
|
|
31
|
+
* Radius of top corners for rounded columns
|
|
32
|
+
*/
|
|
33
|
+
cornerRadius?: number;
|
|
34
|
+
/**
|
|
35
|
+
* Options to pass to the DataLabelProvider. Set a style with font and size to enable per-point text for this series.
|
|
36
|
+
*/
|
|
37
|
+
dataLabels?: IColumnSeriesDataLabelProviderOptions;
|
|
24
38
|
}
|
|
25
39
|
/**
|
|
26
40
|
* Defines a column-series or JavaScript column chart type in the SciChart's High Performance Real-time
|
|
@@ -49,6 +63,8 @@ export declare class FastColumnRenderableSeries extends BaseRenderableSeries {
|
|
|
49
63
|
private fillProperty;
|
|
50
64
|
private zeroLineYProperty;
|
|
51
65
|
private dataPointWidthProperty;
|
|
66
|
+
private cornerRadiusProperty;
|
|
67
|
+
private fillLinearGradientProperty;
|
|
52
68
|
/**
|
|
53
69
|
* Creates an instance of the {@link FastColumnRenderableSeries}
|
|
54
70
|
* @param webAssemblyContext The {@link TSciChart | SciChart WebAssembly Context} containing
|
|
@@ -60,11 +76,19 @@ export declare class FastColumnRenderableSeries extends BaseRenderableSeries {
|
|
|
60
76
|
get fill(): string;
|
|
61
77
|
set fill(htmlColorCode: string);
|
|
62
78
|
/**
|
|
63
|
-
* Gets or sets the
|
|
79
|
+
* Gets or sets the fill as a gradient brush
|
|
80
|
+
*/
|
|
81
|
+
get fillLinearGradient(): GradientParams;
|
|
82
|
+
/**
|
|
83
|
+
* Gets or sets the fill as a gradient brush
|
|
84
|
+
*/
|
|
85
|
+
set fillLinearGradient(gradientBrushParams: GradientParams);
|
|
86
|
+
/**
|
|
87
|
+
* Gets or sets the Zero-line Y, the Y-value for the base of the columns. Default is 0
|
|
64
88
|
*/
|
|
65
89
|
get zeroLineY(): number;
|
|
66
90
|
/**
|
|
67
|
-
* Gets or sets the Zero-line Y, the Y-value
|
|
91
|
+
* Gets or sets the Zero-line Y, the Y-value for the base of the columns. Default is 0
|
|
68
92
|
*/
|
|
69
93
|
set zeroLineY(zeroLineY: number);
|
|
70
94
|
/**
|
|
@@ -75,6 +99,14 @@ export declare class FastColumnRenderableSeries extends BaseRenderableSeries {
|
|
|
75
99
|
* Gets or sets the width of candles as a fraction of available space. Valid values range from 0.0 - 1.0
|
|
76
100
|
*/
|
|
77
101
|
set dataPointWidth(dataPointWidth: number);
|
|
102
|
+
/**
|
|
103
|
+
* Gets or sets the corner radius, to give the columns rounded corners. Default is 0
|
|
104
|
+
*/
|
|
105
|
+
get cornerRadius(): number;
|
|
106
|
+
/**
|
|
107
|
+
* Gets or sets the corner radius, to give the columns rounded corners. Default is 0
|
|
108
|
+
*/
|
|
109
|
+
set cornerRadius(cornerRadius: number);
|
|
78
110
|
/**
|
|
79
111
|
* @inheritDoc
|
|
80
112
|
*/
|
|
@@ -84,6 +116,8 @@ export declare class FastColumnRenderableSeries extends BaseRenderableSeries {
|
|
|
84
116
|
*/
|
|
85
117
|
getYRange(xVisibleRange: NumberRange, isXCategoryAxis?: boolean): NumberRange;
|
|
86
118
|
/** @inheritDoc */
|
|
119
|
+
resolveAutoColors(index: number, maxSeries: number, theme: IThemeProvider): void;
|
|
120
|
+
/** @inheritDoc */
|
|
87
121
|
toJSON(excludeData?: boolean): import("../../../Builder/buildSeries").TSeriesDefinition;
|
|
88
122
|
/** @inheritDoc */
|
|
89
123
|
protected newHitTestProvider(): IHitTestProvider;
|
|
@@ -14,13 +14,27 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
14
14
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
15
|
};
|
|
16
16
|
})();
|
|
17
|
+
var __assign = (this && this.__assign) || function () {
|
|
18
|
+
__assign = Object.assign || function(t) {
|
|
19
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
20
|
+
s = arguments[i];
|
|
21
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
22
|
+
t[p] = s[p];
|
|
23
|
+
}
|
|
24
|
+
return t;
|
|
25
|
+
};
|
|
26
|
+
return __assign.apply(this, arguments);
|
|
27
|
+
};
|
|
17
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
29
|
exports.getXRange = exports.FastColumnRenderableSeries = void 0;
|
|
19
30
|
var NumberRange_1 = require("../../../Core/NumberRange");
|
|
20
31
|
var SeriesType_1 = require("../../../types/SeriesType");
|
|
32
|
+
var TextPosition_1 = require("../../../types/TextPosition");
|
|
33
|
+
var IThemeProvider_1 = require("../../Themes/IThemeProvider");
|
|
21
34
|
var SciChartSurfaceBase_1 = require("../SciChartSurfaceBase");
|
|
22
35
|
var BaseRenderableSeries_1 = require("./BaseRenderableSeries");
|
|
23
36
|
var constants_1 = require("./constants");
|
|
37
|
+
var ColumnSeriesDataLabelProvider_1 = require("./DataLabels/ColumnSeriesDataLabelProvider");
|
|
24
38
|
var ColumnSeriesDrawingProvider_1 = require("./DrawingProviders/ColumnSeriesDrawingProvider");
|
|
25
39
|
var PointMarkerDrawingProvider_1 = require("./DrawingProviders/PointMarkerDrawingProvider");
|
|
26
40
|
var ColumnSeriesHitTestProvider_1 = require("./HitTest/ColumnSeriesHitTestProvider");
|
|
@@ -54,19 +68,27 @@ var FastColumnRenderableSeries = /** @class */ (function (_super) {
|
|
|
54
68
|
* @param options optional parameters of type {@link IColumnRenderableSeriesOptions} applied when constructing the series type
|
|
55
69
|
*/
|
|
56
70
|
function FastColumnRenderableSeries(webAssemblyContext, options) {
|
|
57
|
-
var
|
|
58
|
-
var
|
|
71
|
+
var _this = this;
|
|
72
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
73
|
+
_this = _super.call(this, webAssemblyContext, options) || this;
|
|
59
74
|
/** @inheritDoc */
|
|
60
75
|
_this.type = SeriesType_1.ESeriesType.ColumnSeries;
|
|
61
76
|
_this.fillProperty = SciChartSurfaceBase_1.SciChartSurfaceBase.DEFAULT_THEME.columnFillBrush;
|
|
62
77
|
_this.zeroLineYProperty = 0;
|
|
63
78
|
_this.dataPointWidthProperty = 0.8;
|
|
79
|
+
_this.cornerRadiusProperty = 0;
|
|
64
80
|
_this.fill = (_a = options === null || options === void 0 ? void 0 : options.fill) !== null && _a !== void 0 ? _a : _this.fillProperty;
|
|
65
81
|
_this.zeroLineY = (_b = options === null || options === void 0 ? void 0 : options.zeroLineY) !== null && _b !== void 0 ? _b : _this.zeroLineYProperty;
|
|
66
82
|
_this.dataPointWidthProperty = (_c = options === null || options === void 0 ? void 0 : options.dataPointWidth) !== null && _c !== void 0 ? _c : _this.dataPointWidthProperty;
|
|
83
|
+
_this.fillLinearGradientProperty = (_d = options === null || options === void 0 ? void 0 : options.fillLinearGradient) !== null && _d !== void 0 ? _d : _this.fillLinearGradientProperty;
|
|
84
|
+
_this.cornerRadiusProperty = (_e = options === null || options === void 0 ? void 0 : options.cornerRadius) !== null && _e !== void 0 ? _e : _this.cornerRadiusProperty;
|
|
67
85
|
// Must be called here for the series type to be available
|
|
68
|
-
if ((
|
|
69
|
-
(
|
|
86
|
+
if ((_f = _this.paletteProvider) === null || _f === void 0 ? void 0 : _f.onAttached) {
|
|
87
|
+
(_g = _this.paletteProvider) === null || _g === void 0 ? void 0 : _g.onAttached(_this);
|
|
88
|
+
}
|
|
89
|
+
if (!_this.dataLabelProviderProperty) {
|
|
90
|
+
_this.dataLabelProviderProperty = new ColumnSeriesDataLabelProvider_1.ColumnSeriesDataLabelProvider(__assign({ horizontalTextPosition: TextPosition_1.EHorizontalTextPosition.Center }, options === null || options === void 0 ? void 0 : options.dataLabels));
|
|
91
|
+
_this.dataLabelProviderProperty.onAttach(_this.webAssemblyContext, _this);
|
|
70
92
|
}
|
|
71
93
|
_this.drawingProviders.push(new ColumnSeriesDrawingProvider_1.ColumnSeriesDrawingProvider(webAssemblyContext, _this));
|
|
72
94
|
_this.drawingProviders.push(new PointMarkerDrawingProvider_1.PointMarkerDrawingProvider(webAssemblyContext, _this));
|
|
@@ -87,7 +109,7 @@ var FastColumnRenderableSeries = /** @class */ (function (_super) {
|
|
|
87
109
|
};
|
|
88
110
|
Object.defineProperty(FastColumnRenderableSeries.prototype, "fill", {
|
|
89
111
|
get: function () {
|
|
90
|
-
return this.fillProperty;
|
|
112
|
+
return (0, IThemeProvider_1.stripAutoColor)(this.fillProperty);
|
|
91
113
|
},
|
|
92
114
|
set: function (htmlColorCode) {
|
|
93
115
|
this.fillProperty = htmlColorCode;
|
|
@@ -96,15 +118,35 @@ var FastColumnRenderableSeries = /** @class */ (function (_super) {
|
|
|
96
118
|
enumerable: false,
|
|
97
119
|
configurable: true
|
|
98
120
|
});
|
|
121
|
+
Object.defineProperty(FastColumnRenderableSeries.prototype, "fillLinearGradient", {
|
|
122
|
+
/**
|
|
123
|
+
* Gets or sets the fill as a gradient brush
|
|
124
|
+
*/
|
|
125
|
+
get: function () {
|
|
126
|
+
return this.fillLinearGradientProperty;
|
|
127
|
+
},
|
|
128
|
+
/**
|
|
129
|
+
* Gets or sets the fill as a gradient brush
|
|
130
|
+
*/
|
|
131
|
+
set: function (gradientBrushParams) {
|
|
132
|
+
// We need this check, to prevent creating new Texture if we set the same value
|
|
133
|
+
if (gradientBrushParams !== this.fillLinearGradientProperty) {
|
|
134
|
+
this.fillLinearGradientProperty = gradientBrushParams;
|
|
135
|
+
this.notifyPropertyChanged(constants_1.PROPERTY.FILL_LINEAR_GRADIENT);
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
enumerable: false,
|
|
139
|
+
configurable: true
|
|
140
|
+
});
|
|
99
141
|
Object.defineProperty(FastColumnRenderableSeries.prototype, "zeroLineY", {
|
|
100
142
|
/**
|
|
101
|
-
* Gets or sets the Zero-line Y, the Y-value
|
|
143
|
+
* Gets or sets the Zero-line Y, the Y-value for the base of the columns. Default is 0
|
|
102
144
|
*/
|
|
103
145
|
get: function () {
|
|
104
146
|
return this.zeroLineYProperty;
|
|
105
147
|
},
|
|
106
148
|
/**
|
|
107
|
-
* Gets or sets the Zero-line Y, the Y-value
|
|
149
|
+
* Gets or sets the Zero-line Y, the Y-value for the base of the columns. Default is 0
|
|
108
150
|
*/
|
|
109
151
|
set: function (zeroLineY) {
|
|
110
152
|
this.zeroLineYProperty = zeroLineY;
|
|
@@ -130,6 +172,23 @@ var FastColumnRenderableSeries = /** @class */ (function (_super) {
|
|
|
130
172
|
enumerable: false,
|
|
131
173
|
configurable: true
|
|
132
174
|
});
|
|
175
|
+
Object.defineProperty(FastColumnRenderableSeries.prototype, "cornerRadius", {
|
|
176
|
+
/**
|
|
177
|
+
* Gets or sets the corner radius, to give the columns rounded corners. Default is 0
|
|
178
|
+
*/
|
|
179
|
+
get: function () {
|
|
180
|
+
return this.cornerRadiusProperty;
|
|
181
|
+
},
|
|
182
|
+
/**
|
|
183
|
+
* Gets or sets the corner radius, to give the columns rounded corners. Default is 0
|
|
184
|
+
*/
|
|
185
|
+
set: function (cornerRadius) {
|
|
186
|
+
this.cornerRadiusProperty = cornerRadius;
|
|
187
|
+
this.notifyPropertyChanged(constants_1.PROPERTY.CORNER_RADIUS);
|
|
188
|
+
},
|
|
189
|
+
enumerable: false,
|
|
190
|
+
configurable: true
|
|
191
|
+
});
|
|
133
192
|
/**
|
|
134
193
|
* @inheritDoc
|
|
135
194
|
*/
|
|
@@ -150,13 +209,23 @@ var FastColumnRenderableSeries = /** @class */ (function (_super) {
|
|
|
150
209
|
return new NumberRange_1.NumberRange(Math.min(yRange.min, this.zeroLineY), Math.max(yRange.max, this.zeroLineY));
|
|
151
210
|
};
|
|
152
211
|
/** @inheritDoc */
|
|
212
|
+
FastColumnRenderableSeries.prototype.resolveAutoColors = function (index, maxSeries, theme) {
|
|
213
|
+
_super.prototype.resolveAutoColors.call(this, index, maxSeries, theme);
|
|
214
|
+
if (this.fillProperty.startsWith(IThemeProvider_1.AUTO_COLOR)) {
|
|
215
|
+
var color = theme.getFillColor(index, maxSeries, this.webAssemblyContext);
|
|
216
|
+
this.fill = IThemeProvider_1.AUTO_COLOR + this.adjustAutoColor("fill", color);
|
|
217
|
+
}
|
|
218
|
+
};
|
|
219
|
+
/** @inheritDoc */
|
|
153
220
|
FastColumnRenderableSeries.prototype.toJSON = function (excludeData) {
|
|
154
221
|
if (excludeData === void 0) { excludeData = false; }
|
|
155
222
|
var json = _super.prototype.toJSON.call(this, excludeData);
|
|
156
223
|
var options = {
|
|
157
224
|
dataPointWidth: this.dataPointWidth,
|
|
158
225
|
fill: this.fill,
|
|
159
|
-
zeroLineY: this.zeroLineY
|
|
226
|
+
zeroLineY: this.zeroLineY,
|
|
227
|
+
fillLinearGradient: this.fillLinearGradient,
|
|
228
|
+
cornerRadius: this.cornerRadius
|
|
160
229
|
};
|
|
161
230
|
Object.assign(json.options, options);
|
|
162
231
|
return json;
|
|
@@ -60,8 +60,9 @@ var FastErrorBarsRenderableSeries = /** @class */ (function (_super) {
|
|
|
60
60
|
* @param options optional parameters of type {@link IFastErrorBarsRenderableSeriesOptions} applied when constructing the series type
|
|
61
61
|
*/
|
|
62
62
|
function FastErrorBarsRenderableSeries(webAssemblyContext, options) {
|
|
63
|
+
var _this = this;
|
|
63
64
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
64
|
-
|
|
65
|
+
_this = _super.call(this, webAssemblyContext, options) || this;
|
|
65
66
|
_this.type = SeriesType_1.ESeriesType.ErrorBarsSeries;
|
|
66
67
|
_this.dataPointWidthProperty = 0.5;
|
|
67
68
|
_this.dataPointWidthModeProperty = DataPointWidthMode_1.EDataPointWidthMode.Relative;
|
|
@@ -2,6 +2,7 @@ import { NumberRange } from "../../../Core/NumberRange";
|
|
|
2
2
|
import { ESeriesType } from "../../../types/SeriesType";
|
|
3
3
|
import { TSciChart } from "../../../types/TSciChart";
|
|
4
4
|
import { IThemeProvider } from "../../Themes/IThemeProvider";
|
|
5
|
+
import { IDataLabelProviderOptions } from "./DataLabels/DataLabelProvider";
|
|
5
6
|
import { FastColumnRenderableSeries } from "./FastColumnRenderableSeries";
|
|
6
7
|
import { IHitTestProvider } from "./HitTest/IHitTestProvider";
|
|
7
8
|
import { IBaseRenderableSeriesOptions } from "./IBaseRenderableSeriesOptions";
|
|
@@ -21,6 +22,10 @@ export interface IImpulseRenderableSeries extends IBaseRenderableSeriesOptions {
|
|
|
21
22
|
* Gets or sets the Zero-line Y, the Y-value where the column crosses zero and inverts. Default is 0
|
|
22
23
|
*/
|
|
23
24
|
zeroLineY?: number;
|
|
25
|
+
/**
|
|
26
|
+
* Options to pass to the DataLabelProvider. Set a style with font and size to enable per-point text for this series.
|
|
27
|
+
*/
|
|
28
|
+
dataLabels?: IDataLabelProviderOptions;
|
|
24
29
|
}
|
|
25
30
|
/**
|
|
26
31
|
* Defines a impulse-series or JavaScript impulse chart type in the SciChart's High Performance Real-time
|
|
@@ -80,5 +85,7 @@ export declare class FastImpulseRenderableSeries extends FastColumnRenderableSer
|
|
|
80
85
|
/** @inheritDoc */
|
|
81
86
|
applyTheme(themeProvider: IThemeProvider): void;
|
|
82
87
|
/** @inheritDoc */
|
|
88
|
+
resolveAutoColors(index: number, maxSeries: number, theme: IThemeProvider): void;
|
|
89
|
+
/** @inheritDoc */
|
|
83
90
|
protected newHitTestProvider(): IHitTestProvider;
|
|
84
91
|
}
|