scichart 2.2.2416 → 3.0.0-beta.224
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 +83 -10
- 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 +40 -0
- package/Charting/ChartModifiers/RolloverModifier.js +40 -3
- package/Charting/ChartModifiers/RubberBandXyZoomModifier.js +2 -1
- 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 +92 -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 +16 -17
- 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/ISpline.d.ts +2 -0
- package/Charting/Visuals/RenderableSeries/NonUniformHeatmapRenderableSeries.d.ts +74 -0
- package/Charting/Visuals/RenderableSeries/NonUniformHeatmapRenderableSeries.js +99 -0
- package/Charting/Visuals/RenderableSeries/ShaderEffect.js +2 -2
- package/Charting/Visuals/RenderableSeries/SplineBandRenderableSeries.d.ts +5 -0
- package/Charting/Visuals/RenderableSeries/SplineBandRenderableSeries.js +29 -10
- package/Charting/Visuals/RenderableSeries/SplineLineRenderableSeries.d.ts +7 -3
- package/Charting/Visuals/RenderableSeries/SplineLineRenderableSeries.js +28 -8
- package/Charting/Visuals/RenderableSeries/SplineMountainRenderableSeries.d.ts +5 -0
- package/Charting/Visuals/RenderableSeries/SplineMountainRenderableSeries.js +28 -8
- 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 +225 -7
- package/Charting/Visuals/SciChartSurface.js +782 -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 +199 -30
- 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/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/copyVector.d.ts +2 -0
- package/utils/copyVector.js +10 -0
- 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 +8 -0
- package/utils/translate.js +27 -5
- package/utils/zeroArray2D.d.ts +5 -0
- package/utils/zeroArray2D.js +5 -0
|
@@ -27,6 +27,7 @@ import { RolloverModifierRenderableSeriesProps } from "./RolloverModifier/Rollov
|
|
|
27
27
|
import { SeriesHoveredArgs } from "./SeriesHoveredArgs";
|
|
28
28
|
import { SeriesSelectedArgs } from "./SeriesSelectedArgs";
|
|
29
29
|
import { SeriesVisibleChangedArgs } from "./SeriesVisibleChangedArgs";
|
|
30
|
+
import { BaseDataLabelProvider } from "./DataLabels/BaseDataLabelProvider";
|
|
30
31
|
/**
|
|
31
32
|
* @summary Defines the interface to a Render Series (or Chart Type) in SciChart's High Performance Real-time
|
|
32
33
|
* {@link https://www.scichart.com/javascript-chart-features | JavaScript Charts}
|
|
@@ -246,6 +247,10 @@ export interface IRenderableSeries extends IDeletable, IThemeable, INotifyOnDpiC
|
|
|
246
247
|
* Gets or sets the resampling precision for this series
|
|
247
248
|
*/
|
|
248
249
|
resamplingPrecision: number;
|
|
250
|
+
/**
|
|
251
|
+
* Gets or sets the {@link BaseDataLabelProvider} used for creating and drawing per-point text
|
|
252
|
+
*/
|
|
253
|
+
dataLabelProvider: BaseDataLabelProvider;
|
|
249
254
|
/**
|
|
250
255
|
* Called when the {@link BaseRenderableSeries} must be drawn
|
|
251
256
|
* @param renderContext The {@link WebGL2RenderingContext} with methods for drawing on the WebGL Canvas via our WebAssembly Rendering Engine
|
|
@@ -356,4 +361,11 @@ export interface IRenderableSeries extends IDeletable, IThemeable, INotifyOnDpiC
|
|
|
356
361
|
* Gets the RenderPassData instance used for this render pass
|
|
357
362
|
*/
|
|
358
363
|
getCurrentRenderPassData(): RenderPassData;
|
|
364
|
+
/**
|
|
365
|
+
* Resolve colors marked AUTO_COLOR using the theme's strokePalette and fillPalette
|
|
366
|
+
* To do custom adjustments to the resolved colors, override the adjustAutoColor method
|
|
367
|
+
*/
|
|
368
|
+
resolveAutoColors(index: number, maxSeries: number, theme: IThemeProvider): void;
|
|
369
|
+
/** Replace this to do custom adjustments to the auto color for a particular property */
|
|
370
|
+
adjustAutoColor(propertyName: string, color: string): string;
|
|
359
371
|
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { ESeriesType } from "../../../types/SeriesType";
|
|
2
|
+
import { TSciChart } from "../../../types/TSciChart";
|
|
3
|
+
import { NonUniformHeatmapDataSeries } from "../../Model/NonUniformHeatmapDataSeries";
|
|
4
|
+
import { BaseHeatmapRenderableSeries } from "./BaseHeatmapRenderableSeries";
|
|
5
|
+
import { IHeatmapRenderableSeriesOptions } from "./BaseHeatmapRenderableSeries";
|
|
6
|
+
import { IHitTestProvider } from "./HitTest/IHitTestProvider";
|
|
7
|
+
/**
|
|
8
|
+
* Optional parameters passed to {@link NonUniformHeatmapRenderableSeries} constructor
|
|
9
|
+
*/
|
|
10
|
+
export interface INonUniformHeatmapRenderableSeriesOptions extends IHeatmapRenderableSeriesOptions {
|
|
11
|
+
/**
|
|
12
|
+
* The {@link NonUniformHeatmapDataSeries} instance containing 2-dimensional heatmap data
|
|
13
|
+
*/
|
|
14
|
+
dataSeries?: NonUniformHeatmapDataSeries;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* @summary A JavaScript Heatmap chart type rendering a 2-dimensional array of data as color values between X,Y bounds in
|
|
18
|
+
* SciChart's High Performance Real-time {@link https://www.scichart.com/javascript-chart-features | JavaScript Chart Library}
|
|
19
|
+
* @description
|
|
20
|
+
* Heatmaps are 2-dimensional arrays of data, rendered as a color-map on the chart. The {@link NonUniformHeatmapRenderableSeries}
|
|
21
|
+
* assumes the cells are equal size, and spaced along the X,Y axis according to properties on the {@link NonUniformHeatmapDataSeries}.
|
|
22
|
+
*
|
|
23
|
+
* For a code sample how to initialize a non-uniform heatmap, see below
|
|
24
|
+
*
|
|
25
|
+
* ```ts
|
|
26
|
+
* // Create a 2D array with heat values
|
|
27
|
+
* const zValues = [
|
|
28
|
+
* [0, 2, 3.4],
|
|
29
|
+
* [5, 3, 4],
|
|
30
|
+
* [3, 1.5, -1],
|
|
31
|
+
* ];
|
|
32
|
+
* // Define offsets of the heatmap cells
|
|
33
|
+
* const xCellOffsets = [0, 10, 25, 40];
|
|
34
|
+
* const yCellOffsets = [100, 200, 300, 400];
|
|
35
|
+
*
|
|
36
|
+
* // Create a UniformHeatmapDataSeries passing in zValues
|
|
37
|
+
* const heatmapDataSeries = new NonUniformHeatmapDataSeries(wasmContext, xCellOffsets, yCellOffsets, zValues);
|
|
38
|
+
*
|
|
39
|
+
* // Create a Heatmap RenderableSeries with the color map. ColorMap.minimum/maximum defines the values in
|
|
40
|
+
* // HeatmapDataSeries which correspond to gradient stops at 0..1
|
|
41
|
+
* const heatmapSeries = new NonUniformHeatmapRenderableSeries(wasmContext, {
|
|
42
|
+
* dataSeries: heatmapDataSeries,
|
|
43
|
+
* colorMap: new HeatmapColorMap({
|
|
44
|
+
* minimum: 0,
|
|
45
|
+
* maximum: 200,
|
|
46
|
+
* gradientStops: [
|
|
47
|
+
* { offset: 0, color: "#00008B" },
|
|
48
|
+
* { offset: 0.2, color: "#6495ED" },
|
|
49
|
+
* { offset: 0.4, color: "#006400" },
|
|
50
|
+
* { offset: 0.6, color: "#7FFF00" },
|
|
51
|
+
* { offset: 0.8, color: "#FFFF00" },
|
|
52
|
+
* { offset: 1.0, color: "#FF0000" }
|
|
53
|
+
* ]
|
|
54
|
+
* })
|
|
55
|
+
* });
|
|
56
|
+
*
|
|
57
|
+
* // Add heatmap to the chart
|
|
58
|
+
* sciChartSurface.renderableSeries.add(heatmapSeries);
|
|
59
|
+
* ```
|
|
60
|
+
*/
|
|
61
|
+
export declare class NonUniformHeatmapRenderableSeries extends BaseHeatmapRenderableSeries {
|
|
62
|
+
readonly type: ESeriesType;
|
|
63
|
+
/**
|
|
64
|
+
* Creates an instance of the {@link NonUniformHeatmapRenderableSeries}
|
|
65
|
+
* @param webAssemblyContext The {@link TSciChart | SciChart WebAssembly Context} containing
|
|
66
|
+
* native methods and access to our WebGL2 WebAssembly Drawing Engine
|
|
67
|
+
* @param options optional parameters of type {@link IHeatmapRenderableSeriesOptions} applied when constructing the series type
|
|
68
|
+
*/
|
|
69
|
+
constructor(webAssemblyContext: TSciChart, options?: INonUniformHeatmapRenderableSeriesOptions);
|
|
70
|
+
/**
|
|
71
|
+
* @inheritDoc
|
|
72
|
+
*/
|
|
73
|
+
protected newHitTestProvider(): IHitTestProvider;
|
|
74
|
+
}
|
|
@@ -0,0 +1,99 @@
|
|
|
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.NonUniformHeatmapRenderableSeries = void 0;
|
|
19
|
+
var app_1 = require("../../../constants/app");
|
|
20
|
+
var SeriesType_1 = require("../../../types/SeriesType");
|
|
21
|
+
var BaseHeatmapRenderableSeries_1 = require("./BaseHeatmapRenderableSeries");
|
|
22
|
+
var NonUniformHeatmapDataLabelProvider_1 = require("./DataLabels/NonUniformHeatmapDataLabelProvider");
|
|
23
|
+
var NonUniformHeatmapDrawingProvider_1 = require("./DrawingProviders/NonUniformHeatmapDrawingProvider");
|
|
24
|
+
var NonUniformHeatmapHitTestProvider_1 = require("./HitTest/NonUniformHeatmapHitTestProvider");
|
|
25
|
+
/**
|
|
26
|
+
* @summary A JavaScript Heatmap chart type rendering a 2-dimensional array of data as color values between X,Y bounds in
|
|
27
|
+
* SciChart's High Performance Real-time {@link https://www.scichart.com/javascript-chart-features | JavaScript Chart Library}
|
|
28
|
+
* @description
|
|
29
|
+
* Heatmaps are 2-dimensional arrays of data, rendered as a color-map on the chart. The {@link NonUniformHeatmapRenderableSeries}
|
|
30
|
+
* assumes the cells are equal size, and spaced along the X,Y axis according to properties on the {@link NonUniformHeatmapDataSeries}.
|
|
31
|
+
*
|
|
32
|
+
* For a code sample how to initialize a non-uniform heatmap, see below
|
|
33
|
+
*
|
|
34
|
+
* ```ts
|
|
35
|
+
* // Create a 2D array with heat values
|
|
36
|
+
* const zValues = [
|
|
37
|
+
* [0, 2, 3.4],
|
|
38
|
+
* [5, 3, 4],
|
|
39
|
+
* [3, 1.5, -1],
|
|
40
|
+
* ];
|
|
41
|
+
* // Define offsets of the heatmap cells
|
|
42
|
+
* const xCellOffsets = [0, 10, 25, 40];
|
|
43
|
+
* const yCellOffsets = [100, 200, 300, 400];
|
|
44
|
+
*
|
|
45
|
+
* // Create a UniformHeatmapDataSeries passing in zValues
|
|
46
|
+
* const heatmapDataSeries = new NonUniformHeatmapDataSeries(wasmContext, xCellOffsets, yCellOffsets, zValues);
|
|
47
|
+
*
|
|
48
|
+
* // Create a Heatmap RenderableSeries with the color map. ColorMap.minimum/maximum defines the values in
|
|
49
|
+
* // HeatmapDataSeries which correspond to gradient stops at 0..1
|
|
50
|
+
* const heatmapSeries = new NonUniformHeatmapRenderableSeries(wasmContext, {
|
|
51
|
+
* dataSeries: heatmapDataSeries,
|
|
52
|
+
* colorMap: new HeatmapColorMap({
|
|
53
|
+
* minimum: 0,
|
|
54
|
+
* maximum: 200,
|
|
55
|
+
* gradientStops: [
|
|
56
|
+
* { offset: 0, color: "#00008B" },
|
|
57
|
+
* { offset: 0.2, color: "#6495ED" },
|
|
58
|
+
* { offset: 0.4, color: "#006400" },
|
|
59
|
+
* { offset: 0.6, color: "#7FFF00" },
|
|
60
|
+
* { offset: 0.8, color: "#FFFF00" },
|
|
61
|
+
* { offset: 1.0, color: "#FF0000" }
|
|
62
|
+
* ]
|
|
63
|
+
* })
|
|
64
|
+
* });
|
|
65
|
+
*
|
|
66
|
+
* // Add heatmap to the chart
|
|
67
|
+
* sciChartSurface.renderableSeries.add(heatmapSeries);
|
|
68
|
+
* ```
|
|
69
|
+
*/
|
|
70
|
+
var NonUniformHeatmapRenderableSeries = /** @class */ (function (_super) {
|
|
71
|
+
__extends(NonUniformHeatmapRenderableSeries, _super);
|
|
72
|
+
/**
|
|
73
|
+
* Creates an instance of the {@link NonUniformHeatmapRenderableSeries}
|
|
74
|
+
* @param webAssemblyContext The {@link TSciChart | SciChart WebAssembly Context} containing
|
|
75
|
+
* native methods and access to our WebGL2 WebAssembly Drawing Engine
|
|
76
|
+
* @param options optional parameters of type {@link IHeatmapRenderableSeriesOptions} applied when constructing the series type
|
|
77
|
+
*/
|
|
78
|
+
function NonUniformHeatmapRenderableSeries(webAssemblyContext, options) {
|
|
79
|
+
var _this = _super.call(this, webAssemblyContext, options) || this;
|
|
80
|
+
_this.type = SeriesType_1.ESeriesType.NonUniformHeatmapSeries;
|
|
81
|
+
_this.drawingProviders = [];
|
|
82
|
+
if (!app_1.IS_TEST_ENV) {
|
|
83
|
+
_this.drawingProviders.push(new NonUniformHeatmapDrawingProvider_1.NonUniformHeatmapDrawingProvider(webAssemblyContext, _this));
|
|
84
|
+
}
|
|
85
|
+
if (!_this.dataLabelProviderProperty) {
|
|
86
|
+
_this.dataLabelProviderProperty = new NonUniformHeatmapDataLabelProvider_1.NonUniformHeatMapDataLabelProvider(options === null || options === void 0 ? void 0 : options.dataLabels);
|
|
87
|
+
_this.dataLabelProviderProperty.onAttach(_this.webAssemblyContext, _this);
|
|
88
|
+
}
|
|
89
|
+
return _this;
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* @inheritDoc
|
|
93
|
+
*/
|
|
94
|
+
NonUniformHeatmapRenderableSeries.prototype.newHitTestProvider = function () {
|
|
95
|
+
return new NonUniformHeatmapHitTestProvider_1.NonUniformHeatmapHitTestProvider(this, this.webAssemblyContext);
|
|
96
|
+
};
|
|
97
|
+
return NonUniformHeatmapRenderableSeries;
|
|
98
|
+
}(BaseHeatmapRenderableSeries_1.BaseHeatmapRenderableSeries));
|
|
99
|
+
exports.NonUniformHeatmapRenderableSeries = NonUniformHeatmapRenderableSeries;
|
|
@@ -10,6 +10,7 @@ var PropertyChangedEventArgs_1 = require("../../../Core/PropertyChangedEventArgs
|
|
|
10
10
|
var parseColor_1 = require("../../../utils/parseColor");
|
|
11
11
|
var tsrExtensions_1 = require("../../../utils/tsrExtensions");
|
|
12
12
|
var constants_1 = require("./constants");
|
|
13
|
+
var NativeObject_1 = require("../Helpers/NativeObject");
|
|
13
14
|
/**
|
|
14
15
|
* A {@link ShaderEffect} can be applied to a {@link BaseRenderableSeries | RenderableSeries} via the
|
|
15
16
|
* {@link BaseRenderableSeries.effect} property. The effect modifies the render output of the chart type.
|
|
@@ -96,10 +97,9 @@ var ShaderEffect = /** @class */ (function () {
|
|
|
96
97
|
set: function (color) {
|
|
97
98
|
this.colorProperty = color;
|
|
98
99
|
var colorArgb = (0, parseColor_1.parseColorToTArgb)(color);
|
|
99
|
-
var tsrVector4 =
|
|
100
|
+
var tsrVector4 = (0, NativeObject_1.getVector4)(this.webAssemblyContext, 0, 0, 0, 0);
|
|
100
101
|
(0, tsrExtensions_1.updateTsrVector4)(colorArgb, tsrVector4);
|
|
101
102
|
this.nativeEffect.SetColor(tsrVector4);
|
|
102
|
-
(0, Deleter_1.deleteSafe)(tsrVector4);
|
|
103
103
|
this.notifyPropertyChanged(constants_1.PROPERTY.COLOR);
|
|
104
104
|
},
|
|
105
105
|
enumerable: false,
|
|
@@ -43,6 +43,8 @@ export declare class SplineBandRenderableSeries extends BaseBandRenderableSeries
|
|
|
43
43
|
xSplineValues: SCRTDoubleVector;
|
|
44
44
|
ySplineValues: SCRTDoubleVector;
|
|
45
45
|
y1SplineValues: SCRTDoubleVector;
|
|
46
|
+
warnOnSplineFailure: boolean;
|
|
47
|
+
protected isSplineProperty: boolean;
|
|
46
48
|
private recalculateSpline;
|
|
47
49
|
private interpolationPointsProperty;
|
|
48
50
|
/**
|
|
@@ -52,6 +54,7 @@ export declare class SplineBandRenderableSeries extends BaseBandRenderableSeries
|
|
|
52
54
|
* @param options optional parameters of type {@link ISplineBandRenderableSeriesOptions} applied when constructing the series type
|
|
53
55
|
*/
|
|
54
56
|
constructor(webAssemblyContext: TSciChart, options?: ISplineBandRenderableSeriesOptions);
|
|
57
|
+
get isSpline(): boolean;
|
|
55
58
|
/**
|
|
56
59
|
* Gets or sets the interpolationPoints being used for the Spline
|
|
57
60
|
*/
|
|
@@ -67,6 +70,8 @@ export declare class SplineBandRenderableSeries extends BaseBandRenderableSeries
|
|
|
67
70
|
*/
|
|
68
71
|
updateSplineValues(): void;
|
|
69
72
|
/** @inheritDoc */
|
|
73
|
+
onSplineFailure(): void;
|
|
74
|
+
/** @inheritDoc */
|
|
70
75
|
getYRange(xVisibleRange: NumberRange, isXCategoryAxis?: boolean): NumberRange;
|
|
71
76
|
/** @inheritDoc */
|
|
72
77
|
toJSON(excludeData?: boolean): import("../../../Builder/buildSeries").TSeriesDefinition;
|
|
@@ -18,7 +18,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
18
18
|
exports.SplineBandRenderableSeries = void 0;
|
|
19
19
|
var Deleter_1 = require("../../../Core/Deleter");
|
|
20
20
|
var SeriesType_1 = require("../../../types/SeriesType");
|
|
21
|
-
var
|
|
21
|
+
var copyVector_1 = require("../../../utils/copyVector");
|
|
22
22
|
var animationHelpers_1 = require("./Animations/animationHelpers");
|
|
23
23
|
var BaseBandRenderableSeries_1 = require("./BaseBandRenderableSeries");
|
|
24
24
|
var constants_1 = require("./constants");
|
|
@@ -54,9 +54,12 @@ var SplineBandRenderableSeries = /** @class */ (function (_super) {
|
|
|
54
54
|
* @param options optional parameters of type {@link ISplineBandRenderableSeriesOptions} applied when constructing the series type
|
|
55
55
|
*/
|
|
56
56
|
function SplineBandRenderableSeries(webAssemblyContext, options) {
|
|
57
|
+
var _this = this;
|
|
57
58
|
var _a, _b, _c;
|
|
58
|
-
|
|
59
|
+
_this = _super.call(this, webAssemblyContext, options) || this;
|
|
59
60
|
_this.type = SeriesType_1.ESeriesType.SplineBandSeries;
|
|
61
|
+
_this.warnOnSplineFailure = true;
|
|
62
|
+
_this.isSplineProperty = true;
|
|
60
63
|
_this.recalculateSpline = true;
|
|
61
64
|
_this.interpolationPointsProperty = 10;
|
|
62
65
|
_this.xSplineValues = new webAssemblyContext.SCRTDoubleVector();
|
|
@@ -69,6 +72,13 @@ var SplineBandRenderableSeries = /** @class */ (function (_super) {
|
|
|
69
72
|
}
|
|
70
73
|
return _this;
|
|
71
74
|
}
|
|
75
|
+
Object.defineProperty(SplineBandRenderableSeries.prototype, "isSpline", {
|
|
76
|
+
get: function () {
|
|
77
|
+
return this.isSplineProperty;
|
|
78
|
+
},
|
|
79
|
+
enumerable: false,
|
|
80
|
+
configurable: true
|
|
81
|
+
});
|
|
72
82
|
Object.defineProperty(SplineBandRenderableSeries.prototype, "interpolationPoints", {
|
|
73
83
|
/**
|
|
74
84
|
* Gets or sets the interpolationPoints being used for the Spline
|
|
@@ -100,20 +110,15 @@ var SplineBandRenderableSeries = /** @class */ (function (_super) {
|
|
|
100
110
|
if (!(this.dataSeries && this.recalculateSpline && this.parentSurface)) {
|
|
101
111
|
return;
|
|
102
112
|
}
|
|
113
|
+
this.isSplineProperty = true;
|
|
103
114
|
var dataSeries = this.dataSeries;
|
|
104
115
|
var xValues = this.xAxis.isCategoryAxis ? dataSeries.getNativeIndexes() : dataSeries.getNativeXValues();
|
|
105
116
|
var yValues = dataSeries.getNativeYValues();
|
|
106
117
|
var y1Values = dataSeries.getNativeY1Values();
|
|
107
118
|
var initialSize = xValues.size();
|
|
108
119
|
this.webAssemblyContext.SCRTSplineHelperCubicSpline(xValues, yValues, this.xSplineValues, this.ySplineValues, initialSize, this.interpolationPoints, dataSeries.dataDistributionCalculator.containsNaN);
|
|
109
|
-
if (
|
|
110
|
-
|
|
111
|
-
this.xSplineValues.resizeFast(initialSize);
|
|
112
|
-
this.webAssemblyContext.SCRTMemCopy(this.xSplineValues.dataPtr(0), dataSeries.getNativeXValues().dataPtr(0), initialSize * appendDoubleVectorFromJsArray_1.SIZEOF_NUMBER);
|
|
113
|
-
this.ySplineValues.resizeFast(initialSize);
|
|
114
|
-
this.webAssemblyContext.SCRTMemCopy(this.ySplineValues.dataPtr(0), dataSeries.getNativeYValues().dataPtr(0), initialSize * appendDoubleVectorFromJsArray_1.SIZEOF_NUMBER);
|
|
115
|
-
this.y1SplineValues.resizeFast(initialSize);
|
|
116
|
-
this.webAssemblyContext.SCRTMemCopy(this.y1SplineValues.dataPtr(0), dataSeries.getNativeY1Values().dataPtr(0), initialSize * appendDoubleVectorFromJsArray_1.SIZEOF_NUMBER);
|
|
120
|
+
if (isNaN(this.ySplineValues.get(0))) {
|
|
121
|
+
this.onSplineFailure();
|
|
117
122
|
}
|
|
118
123
|
else {
|
|
119
124
|
this.webAssemblyContext.SCRTSplineHelperCubicSpline(xValues, y1Values, this.xSplineValues, this.y1SplineValues, initialSize, this.interpolationPoints, dataSeries.dataDistributionCalculator.containsNaN);
|
|
@@ -121,6 +126,20 @@ var SplineBandRenderableSeries = /** @class */ (function (_super) {
|
|
|
121
126
|
this.recalculateSpline = false;
|
|
122
127
|
};
|
|
123
128
|
/** @inheritDoc */
|
|
129
|
+
SplineBandRenderableSeries.prototype.onSplineFailure = function () {
|
|
130
|
+
if (this.warnOnSplineFailure) {
|
|
131
|
+
console.warn("Could not calculate spline values. X data may contain duplicates. Falling back to original values.\nTo disable this warning set warnOnSplineFailure = false. To change this behaviour, override onSplineFailure");
|
|
132
|
+
}
|
|
133
|
+
var xValues = this.xAxis.isCategoryAxis
|
|
134
|
+
? this.dataSeries.getNativeIndexes()
|
|
135
|
+
: this.dataSeries.getNativeXValues();
|
|
136
|
+
(0, copyVector_1.copyDoubleVector)(xValues, this.xSplineValues, this.webAssemblyContext);
|
|
137
|
+
(0, copyVector_1.copyDoubleVector)(this.dataSeries.getNativeYValues(), this.ySplineValues, this.webAssemblyContext);
|
|
138
|
+
(0, copyVector_1.copyDoubleVector)(this.dataSeries.getNativeY1Values(), this.y1SplineValues, this.webAssemblyContext);
|
|
139
|
+
// This tells the drawing providers not to treat the data as interpolated
|
|
140
|
+
this.isSplineProperty = false;
|
|
141
|
+
};
|
|
142
|
+
/** @inheritDoc */
|
|
124
143
|
SplineBandRenderableSeries.prototype.getYRange = function (xVisibleRange, isXCategoryAxis) {
|
|
125
144
|
if (isXCategoryAxis === void 0) { isXCategoryAxis = false; }
|
|
126
145
|
return this.dataSeries.getWindowedYRange(xVisibleRange, true, isXCategoryAxis);
|
|
@@ -3,11 +3,10 @@ import { NumberRange } from "../../../Core/NumberRange";
|
|
|
3
3
|
import { ESeriesType } from "../../../types/SeriesType";
|
|
4
4
|
import { SCRTDoubleVector, TSciChart } from "../../../types/TSciChart";
|
|
5
5
|
import { SeriesAnimation } from "./Animations/SeriesAnimation";
|
|
6
|
-
import { BaseLineRenderableSeries } from "./BaseLineRenderableSeries";
|
|
6
|
+
import { BaseLineRenderableSeries, IBaseLineRenderableSeriesOptions } from "./BaseLineRenderableSeries";
|
|
7
7
|
import { TPalettingState } from "./DrawingProviders/BaseSeriesDrawingProvider";
|
|
8
|
-
import { IBaseRenderableSeriesOptions } from "./IBaseRenderableSeriesOptions";
|
|
9
8
|
import { ISpline } from "./ISpline";
|
|
10
|
-
export interface ISplineLineRenderableSeriesOptions extends
|
|
9
|
+
export interface ISplineLineRenderableSeriesOptions extends IBaseLineRenderableSeriesOptions {
|
|
11
10
|
/**
|
|
12
11
|
* A number of interpolation points being used for the Spline,
|
|
13
12
|
* where value 0 means no interpolation.
|
|
@@ -39,6 +38,8 @@ export declare class SplineLineRenderableSeries extends BaseLineRenderableSeries
|
|
|
39
38
|
readonly type = ESeriesType.SplineLineSeries;
|
|
40
39
|
xSplineValues: SCRTDoubleVector;
|
|
41
40
|
ySplineValues: SCRTDoubleVector;
|
|
41
|
+
warnOnSplineFailure: boolean;
|
|
42
|
+
protected isSplineProperty: boolean;
|
|
42
43
|
private interpolationPointsProperty;
|
|
43
44
|
private recalculateSpline;
|
|
44
45
|
/**
|
|
@@ -48,6 +49,7 @@ export declare class SplineLineRenderableSeries extends BaseLineRenderableSeries
|
|
|
48
49
|
* @param options optional parameters of type {@link ISplineLineRenderableSeriesOptions} applied when constructing the series type
|
|
49
50
|
*/
|
|
50
51
|
constructor(webAssemblyContext: TSciChart, options?: ISplineLineRenderableSeriesOptions);
|
|
52
|
+
get isSpline(): boolean;
|
|
51
53
|
/**
|
|
52
54
|
* Gets or sets the interpolationPoints being used for the Spline
|
|
53
55
|
*/
|
|
@@ -63,6 +65,8 @@ export declare class SplineLineRenderableSeries extends BaseLineRenderableSeries
|
|
|
63
65
|
*/
|
|
64
66
|
updateSplineValues(): void;
|
|
65
67
|
/** @inheritDoc */
|
|
68
|
+
onSplineFailure(): void;
|
|
69
|
+
/** @inheritDoc */
|
|
66
70
|
getYRange(xVisibleRange: NumberRange, isXCategoryAxis?: boolean): NumberRange;
|
|
67
71
|
/** @inheritDoc */
|
|
68
72
|
toJSON(excludeData?: boolean): import("../../../Builder/buildSeries").TSeriesDefinition;
|
|
@@ -18,7 +18,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
18
18
|
exports.SplineLineRenderableSeries = void 0;
|
|
19
19
|
var Deleter_1 = require("../../../Core/Deleter");
|
|
20
20
|
var SeriesType_1 = require("../../../types/SeriesType");
|
|
21
|
-
var
|
|
21
|
+
var copyVector_1 = require("../../../utils/copyVector");
|
|
22
22
|
var animationHelpers_1 = require("./Animations/animationHelpers");
|
|
23
23
|
var BaseLineRenderableSeries_1 = require("./BaseLineRenderableSeries");
|
|
24
24
|
var constants_1 = require("./constants");
|
|
@@ -52,9 +52,12 @@ var SplineLineRenderableSeries = /** @class */ (function (_super) {
|
|
|
52
52
|
* @param options optional parameters of type {@link ISplineLineRenderableSeriesOptions} applied when constructing the series type
|
|
53
53
|
*/
|
|
54
54
|
function SplineLineRenderableSeries(webAssemblyContext, options) {
|
|
55
|
+
var _this = this;
|
|
55
56
|
var _a, _b, _c;
|
|
56
|
-
|
|
57
|
+
_this = _super.call(this, webAssemblyContext, options) || this;
|
|
57
58
|
_this.type = SeriesType_1.ESeriesType.SplineLineSeries;
|
|
59
|
+
_this.warnOnSplineFailure = true;
|
|
60
|
+
_this.isSplineProperty = true;
|
|
58
61
|
_this.interpolationPointsProperty = 10;
|
|
59
62
|
_this.recalculateSpline = true;
|
|
60
63
|
_this.xSplineValues = new webAssemblyContext.SCRTDoubleVector();
|
|
@@ -66,6 +69,13 @@ var SplineLineRenderableSeries = /** @class */ (function (_super) {
|
|
|
66
69
|
}
|
|
67
70
|
return _this;
|
|
68
71
|
}
|
|
72
|
+
Object.defineProperty(SplineLineRenderableSeries.prototype, "isSpline", {
|
|
73
|
+
get: function () {
|
|
74
|
+
return this.isSplineProperty;
|
|
75
|
+
},
|
|
76
|
+
enumerable: false,
|
|
77
|
+
configurable: true
|
|
78
|
+
});
|
|
69
79
|
Object.defineProperty(SplineLineRenderableSeries.prototype, "interpolationPoints", {
|
|
70
80
|
/**
|
|
71
81
|
* Gets or sets the interpolationPoints being used for the Spline
|
|
@@ -96,21 +106,31 @@ var SplineLineRenderableSeries = /** @class */ (function (_super) {
|
|
|
96
106
|
if (!this.dataSeries || !this.recalculateSpline || !this.parentSurface) {
|
|
97
107
|
return;
|
|
98
108
|
}
|
|
109
|
+
this.isSplineProperty = true;
|
|
99
110
|
var dataSeries = this.dataSeries;
|
|
100
111
|
var xValues = this.xAxis.isCategoryAxis ? dataSeries.getNativeIndexes() : dataSeries.getNativeXValues();
|
|
101
112
|
var yValues = dataSeries.getNativeYValues();
|
|
102
113
|
var initialSize = xValues.size();
|
|
103
114
|
this.webAssemblyContext.SCRTSplineHelperCubicSpline(xValues, yValues, this.xSplineValues, this.ySplineValues, initialSize, this.interpolationPoints, dataSeries.dataDistributionCalculator.containsNaN);
|
|
104
|
-
if (
|
|
105
|
-
|
|
106
|
-
this.xSplineValues.resizeFast(initialSize);
|
|
107
|
-
this.webAssemblyContext.SCRTMemCopy(this.xSplineValues.dataPtr(0), dataSeries.getNativeXValues().dataPtr(0), initialSize * appendDoubleVectorFromJsArray_1.SIZEOF_NUMBER);
|
|
108
|
-
this.ySplineValues.resizeFast(initialSize);
|
|
109
|
-
this.webAssemblyContext.SCRTMemCopy(this.ySplineValues.dataPtr(0), dataSeries.getNativeYValues().dataPtr(0), initialSize * appendDoubleVectorFromJsArray_1.SIZEOF_NUMBER);
|
|
115
|
+
if (isNaN(this.ySplineValues.get(0))) {
|
|
116
|
+
this.onSplineFailure();
|
|
110
117
|
}
|
|
111
118
|
this.recalculateSpline = false;
|
|
112
119
|
};
|
|
113
120
|
/** @inheritDoc */
|
|
121
|
+
SplineLineRenderableSeries.prototype.onSplineFailure = function () {
|
|
122
|
+
if (this.warnOnSplineFailure) {
|
|
123
|
+
console.warn("Could not calculate spline values. X data may contain duplicates. Falling back to original values.\nTo disable this warning set warnOnSplineFailure = false. To change this behaviour, override onSplineFailure");
|
|
124
|
+
}
|
|
125
|
+
var xValues = this.xAxis.isCategoryAxis
|
|
126
|
+
? this.dataSeries.getNativeIndexes()
|
|
127
|
+
: this.dataSeries.getNativeXValues();
|
|
128
|
+
(0, copyVector_1.copyDoubleVector)(xValues, this.xSplineValues, this.webAssemblyContext);
|
|
129
|
+
(0, copyVector_1.copyDoubleVector)(this.dataSeries.getNativeYValues(), this.ySplineValues, this.webAssemblyContext);
|
|
130
|
+
// This tells the drawing providers not to treat the data as interpolated
|
|
131
|
+
this.isSplineProperty = false;
|
|
132
|
+
};
|
|
133
|
+
/** @inheritDoc */
|
|
114
134
|
SplineLineRenderableSeries.prototype.getYRange = function (xVisibleRange, isXCategoryAxis) {
|
|
115
135
|
if (isXCategoryAxis === void 0) { isXCategoryAxis = false; }
|
|
116
136
|
return this.dataSeries.getWindowedYRange(xVisibleRange, true, isXCategoryAxis);
|
|
@@ -40,6 +40,8 @@ export declare class SplineMountainRenderableSeries extends BaseMountainRenderab
|
|
|
40
40
|
readonly type = ESeriesType.SplineMountainSeries;
|
|
41
41
|
xSplineValues: SCRTDoubleVector;
|
|
42
42
|
ySplineValues: SCRTDoubleVector;
|
|
43
|
+
warnOnSplineFailure: boolean;
|
|
44
|
+
protected isSplineProperty: boolean;
|
|
43
45
|
private recalculateSpline;
|
|
44
46
|
private interpolationPointsProperty;
|
|
45
47
|
/**
|
|
@@ -49,6 +51,7 @@ export declare class SplineMountainRenderableSeries extends BaseMountainRenderab
|
|
|
49
51
|
* @param options optional parameters of type {@link ISplineMountainRenderableSeriesOptions} applied when constructing the series type
|
|
50
52
|
*/
|
|
51
53
|
constructor(webAssemblyContext: TSciChart, options?: ISplineMountainRenderableSeriesOptions);
|
|
54
|
+
get isSpline(): boolean;
|
|
52
55
|
/**
|
|
53
56
|
* Gets or sets the interpolationPoints being used for the Spline
|
|
54
57
|
*/
|
|
@@ -64,6 +67,8 @@ export declare class SplineMountainRenderableSeries extends BaseMountainRenderab
|
|
|
64
67
|
*/
|
|
65
68
|
updateSplineValues(): void;
|
|
66
69
|
/** @inheritDoc */
|
|
70
|
+
onSplineFailure(): void;
|
|
71
|
+
/** @inheritDoc */
|
|
67
72
|
getYRange(xVisibleRange: NumberRange, isXCategoryAxis?: boolean): NumberRange;
|
|
68
73
|
/** @inheritDoc */
|
|
69
74
|
toJSON(excludeData?: boolean): import("../../../Builder/buildSeries").TSeriesDefinition;
|
|
@@ -18,7 +18,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
18
18
|
exports.SplineMountainRenderableSeries = void 0;
|
|
19
19
|
var Deleter_1 = require("../../../Core/Deleter");
|
|
20
20
|
var SeriesType_1 = require("../../../types/SeriesType");
|
|
21
|
-
var
|
|
21
|
+
var copyVector_1 = require("../../../utils/copyVector");
|
|
22
22
|
var animationHelpers_1 = require("./Animations/animationHelpers");
|
|
23
23
|
var BaseMountainRenderableSeries_1 = require("./BaseMountainRenderableSeries");
|
|
24
24
|
var constants_1 = require("./constants");
|
|
@@ -52,9 +52,12 @@ var SplineMountainRenderableSeries = /** @class */ (function (_super) {
|
|
|
52
52
|
* @param options optional parameters of type {@link ISplineMountainRenderableSeriesOptions} applied when constructing the series type
|
|
53
53
|
*/
|
|
54
54
|
function SplineMountainRenderableSeries(webAssemblyContext, options) {
|
|
55
|
+
var _this = this;
|
|
55
56
|
var _a, _b, _c;
|
|
56
|
-
|
|
57
|
+
_this = _super.call(this, webAssemblyContext, options) || this;
|
|
57
58
|
_this.type = SeriesType_1.ESeriesType.SplineMountainSeries;
|
|
59
|
+
_this.warnOnSplineFailure = true;
|
|
60
|
+
_this.isSplineProperty = true;
|
|
58
61
|
_this.recalculateSpline = true;
|
|
59
62
|
_this.interpolationPointsProperty = 10;
|
|
60
63
|
_this.xSplineValues = new webAssemblyContext.SCRTDoubleVector();
|
|
@@ -66,6 +69,13 @@ var SplineMountainRenderableSeries = /** @class */ (function (_super) {
|
|
|
66
69
|
}
|
|
67
70
|
return _this;
|
|
68
71
|
}
|
|
72
|
+
Object.defineProperty(SplineMountainRenderableSeries.prototype, "isSpline", {
|
|
73
|
+
get: function () {
|
|
74
|
+
return this.isSplineProperty;
|
|
75
|
+
},
|
|
76
|
+
enumerable: false,
|
|
77
|
+
configurable: true
|
|
78
|
+
});
|
|
69
79
|
Object.defineProperty(SplineMountainRenderableSeries.prototype, "interpolationPoints", {
|
|
70
80
|
/**
|
|
71
81
|
* Gets or sets the interpolationPoints being used for the Spline
|
|
@@ -96,21 +106,31 @@ var SplineMountainRenderableSeries = /** @class */ (function (_super) {
|
|
|
96
106
|
if (!(this.dataSeries && this.recalculateSpline && this.parentSurface)) {
|
|
97
107
|
return;
|
|
98
108
|
}
|
|
109
|
+
this.isSplineProperty = true;
|
|
99
110
|
var dataSeries = this.dataSeries;
|
|
100
111
|
var xValues = this.xAxis.isCategoryAxis ? dataSeries.getNativeIndexes() : dataSeries.getNativeXValues();
|
|
101
112
|
var yValues = dataSeries.getNativeYValues();
|
|
102
113
|
var initialSize = xValues.size();
|
|
103
114
|
this.webAssemblyContext.SCRTSplineHelperCubicSpline(xValues, yValues, this.xSplineValues, this.ySplineValues, initialSize, this.interpolationPoints, dataSeries.dataDistributionCalculator.containsNaN);
|
|
104
|
-
if (
|
|
105
|
-
|
|
106
|
-
this.xSplineValues.resizeFast(initialSize);
|
|
107
|
-
this.webAssemblyContext.SCRTMemCopy(this.xSplineValues.dataPtr(0), dataSeries.getNativeXValues().dataPtr(0), initialSize * appendDoubleVectorFromJsArray_1.SIZEOF_NUMBER);
|
|
108
|
-
this.ySplineValues.resizeFast(initialSize);
|
|
109
|
-
this.webAssemblyContext.SCRTMemCopy(this.ySplineValues.dataPtr(0), dataSeries.getNativeYValues().dataPtr(0), initialSize * appendDoubleVectorFromJsArray_1.SIZEOF_NUMBER);
|
|
115
|
+
if (isNaN(this.ySplineValues.get(0))) {
|
|
116
|
+
this.onSplineFailure();
|
|
110
117
|
}
|
|
111
118
|
this.recalculateSpline = false;
|
|
112
119
|
};
|
|
113
120
|
/** @inheritDoc */
|
|
121
|
+
SplineMountainRenderableSeries.prototype.onSplineFailure = function () {
|
|
122
|
+
if (this.warnOnSplineFailure) {
|
|
123
|
+
console.warn("Could not calculate spline values. X data may contain duplicates. Falling back to original values.\nTo disable this warning set warnOnSplineFailure = false. To change this behaviour, override onSplineFailure");
|
|
124
|
+
}
|
|
125
|
+
var xValues = this.xAxis.isCategoryAxis
|
|
126
|
+
? this.dataSeries.getNativeIndexes()
|
|
127
|
+
: this.dataSeries.getNativeXValues();
|
|
128
|
+
(0, copyVector_1.copyDoubleVector)(xValues, this.xSplineValues, this.webAssemblyContext);
|
|
129
|
+
(0, copyVector_1.copyDoubleVector)(this.dataSeries.getNativeYValues(), this.ySplineValues, this.webAssemblyContext);
|
|
130
|
+
// This tells the drawing providers not to treat the data as interpolated
|
|
131
|
+
this.isSplineProperty = false;
|
|
132
|
+
};
|
|
133
|
+
/** @inheritDoc */
|
|
114
134
|
SplineMountainRenderableSeries.prototype.getYRange = function (xVisibleRange, isXCategoryAxis) {
|
|
115
135
|
if (isXCategoryAxis === void 0) { isXCategoryAxis = false; }
|
|
116
136
|
return this.dataSeries.getWindowedYRange(xVisibleRange, true, isXCategoryAxis);
|
|
@@ -70,8 +70,9 @@ var StackedColumnCollection = /** @class */ (function (_super) {
|
|
|
70
70
|
* @param options Optional parameters of type {@link IStackedColumnCollectionOptions} to configure the series
|
|
71
71
|
*/
|
|
72
72
|
function StackedColumnCollection(webAssemblyContext, options) {
|
|
73
|
+
var _this = this;
|
|
73
74
|
var _a, _b;
|
|
74
|
-
|
|
75
|
+
_this = _super.call(this, webAssemblyContext, options) || this;
|
|
75
76
|
_this.type = SeriesType_1.ESeriesType.StackedColumnCollection;
|
|
76
77
|
_this.seriesGroups = {};
|
|
77
78
|
_this.dataPointWidthProperty = 0.5;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ESeriesType } from "../../../types/SeriesType";
|
|
2
2
|
import { TSciChart } from "../../../types/TSciChart";
|
|
3
3
|
import { CoordinateCalculatorBase } from "../../Numerics/CoordinateCalculators/CoordinateCalculatorBase";
|
|
4
|
+
import { IThemeProvider } from "../../Themes/IThemeProvider";
|
|
4
5
|
import { SciChartSurface } from "../SciChartSurface";
|
|
5
6
|
import { TDpiChangedEventArgs } from "../TextureManager/DpiHelper";
|
|
6
7
|
import { BaseStackedCollection } from "./BaseStackedCollection";
|
|
@@ -189,5 +190,7 @@ export declare class StackedColumnRenderableSeries extends BaseStackedRenderable
|
|
|
189
190
|
set stackedGroupId(value: string);
|
|
190
191
|
toJSON(excludeData?: boolean): import("../../../Builder/buildSeries").TSeriesDefinition;
|
|
191
192
|
/** @inheritDoc */
|
|
193
|
+
resolveAutoColors(index: number, maxSeries: number, theme: IThemeProvider): void;
|
|
194
|
+
/** @inheritDoc */
|
|
192
195
|
protected newHitTestProvider(): IHitTestProvider;
|
|
193
196
|
}
|
|
@@ -20,6 +20,7 @@ var Deleter_1 = require("../../../Core/Deleter");
|
|
|
20
20
|
var SeriesType_1 = require("../../../types/SeriesType");
|
|
21
21
|
var BrushCache_1 = require("../../Drawing/BrushCache");
|
|
22
22
|
var Pen2DCache_1 = require("../../Drawing/Pen2DCache");
|
|
23
|
+
var IThemeProvider_1 = require("../../Themes/IThemeProvider");
|
|
23
24
|
var SciChartSurfaceBase_1 = require("../SciChartSurfaceBase");
|
|
24
25
|
var BaseStackedRenderableSeries_1 = require("./BaseStackedRenderableSeries");
|
|
25
26
|
var constants_1 = require("./constants");
|
|
@@ -71,8 +72,9 @@ var StackedColumnRenderableSeries = /** @class */ (function (_super) {
|
|
|
71
72
|
* @param options Optional parameters of type {@link IStackedColumnRenderableSeriesOptions} to configure the series
|
|
72
73
|
*/
|
|
73
74
|
function StackedColumnRenderableSeries(webAssemblyContext, options) {
|
|
75
|
+
var _this = this;
|
|
74
76
|
var _a, _b, _c, _d, _e;
|
|
75
|
-
|
|
77
|
+
_this = _super.call(this, webAssemblyContext, options) || this;
|
|
76
78
|
_this.type = SeriesType_1.ESeriesType.StackedColumnSeries;
|
|
77
79
|
_this.fillProperty = "#7e8486";
|
|
78
80
|
_this.spacingProperty = 0;
|
|
@@ -112,6 +114,7 @@ var StackedColumnRenderableSeries = /** @class */ (function (_super) {
|
|
|
112
114
|
this.parentCollection = parentCollection;
|
|
113
115
|
this.getParentSurfaceFn = getParentSurfaceFn;
|
|
114
116
|
this.notifyParentPropertyChangedFn = notifyPropertyChangedFn;
|
|
117
|
+
//this.invalidateParentCallback = () => parentCollection.invalidateParentCallback();
|
|
115
118
|
this.getColumnWidthFn = getColumnWidthFn;
|
|
116
119
|
var _a = this, stroke = _a.stroke, strokeThickness = _a.strokeThickness, fill = _a.fill, opacity = _a.opacity;
|
|
117
120
|
(0, Pen2DCache_1.createPenInCache)(this.strokePenCache, stroke, strokeThickness, opacity);
|
|
@@ -177,7 +180,7 @@ var StackedColumnRenderableSeries = /** @class */ (function (_super) {
|
|
|
177
180
|
* Gets or sets the Fill of the column chart as an HTML color code
|
|
178
181
|
*/
|
|
179
182
|
get: function () {
|
|
180
|
-
return this.fillProperty;
|
|
183
|
+
return (0, IThemeProvider_1.stripAutoColor)(this.fillProperty);
|
|
181
184
|
},
|
|
182
185
|
/**
|
|
183
186
|
* Gets or sets the Fill of the column chart as an HTML color code
|
|
@@ -292,6 +295,14 @@ var StackedColumnRenderableSeries = /** @class */ (function (_super) {
|
|
|
292
295
|
Object.assign(json.options, options);
|
|
293
296
|
return json;
|
|
294
297
|
};
|
|
298
|
+
/** @inheritDoc */
|
|
299
|
+
StackedColumnRenderableSeries.prototype.resolveAutoColors = function (index, maxSeries, theme) {
|
|
300
|
+
_super.prototype.resolveAutoColors.call(this, index, maxSeries, theme);
|
|
301
|
+
if (this.fillProperty.startsWith(IThemeProvider_1.AUTO_COLOR)) {
|
|
302
|
+
var color = theme.getFillColor(index, maxSeries, this.webAssemblyContext);
|
|
303
|
+
this.fill = IThemeProvider_1.AUTO_COLOR + this.adjustAutoColor("fill", color);
|
|
304
|
+
}
|
|
305
|
+
};
|
|
295
306
|
// PROTECTED
|
|
296
307
|
/** @inheritDoc */
|
|
297
308
|
StackedColumnRenderableSeries.prototype.newHitTestProvider = function () {
|