scichart 2.2.2417 → 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/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.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 +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/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
|
@@ -31,10 +31,18 @@ export declare enum EDataSeriesType {
|
|
|
31
31
|
* Defines a {@link UniformHeatmapDataSeries | DataSeries}
|
|
32
32
|
*/
|
|
33
33
|
HeatmapUniform = "UniformHeatmap",
|
|
34
|
+
/**
|
|
35
|
+
* Defines a {@link UniformHeatmapDataSeries | DataSeries}
|
|
36
|
+
*/
|
|
37
|
+
HeatmapNonUniform = "NonUniformHeatmap",
|
|
34
38
|
/**
|
|
35
39
|
* Defines a {@link HlcDataSeries}
|
|
36
40
|
*/
|
|
37
|
-
Hlc = "Hlc"
|
|
41
|
+
Hlc = "Hlc",
|
|
42
|
+
/**
|
|
43
|
+
* Defines a {@link XyTextDataSeries}
|
|
44
|
+
*/
|
|
45
|
+
XyText = "XyText"
|
|
38
46
|
}
|
|
39
47
|
export declare enum EDataChangeType {
|
|
40
48
|
Append = 0,
|
|
@@ -29,10 +29,18 @@ var EDataSeriesType;
|
|
|
29
29
|
* Defines a {@link UniformHeatmapDataSeries | DataSeries}
|
|
30
30
|
*/
|
|
31
31
|
EDataSeriesType["HeatmapUniform"] = "UniformHeatmap";
|
|
32
|
+
/**
|
|
33
|
+
* Defines a {@link UniformHeatmapDataSeries | DataSeries}
|
|
34
|
+
*/
|
|
35
|
+
EDataSeriesType["HeatmapNonUniform"] = "NonUniformHeatmap";
|
|
32
36
|
/**
|
|
33
37
|
* Defines a {@link HlcDataSeries}
|
|
34
38
|
*/
|
|
35
39
|
EDataSeriesType["Hlc"] = "Hlc";
|
|
40
|
+
/**
|
|
41
|
+
* Defines a {@link XyTextDataSeries}
|
|
42
|
+
*/
|
|
43
|
+
EDataSeriesType["XyText"] = "XyText";
|
|
36
44
|
})(EDataSeriesType = exports.EDataSeriesType || (exports.EDataSeriesType = {}));
|
|
37
45
|
var EDataChangeType;
|
|
38
46
|
(function (EDataChangeType) {
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { TSeriesDataDefinition } from "../../Builder/buildDataSeries";
|
|
2
|
+
import { NumberRange } from "../../Core/NumberRange";
|
|
3
|
+
import { ESearchMode } from "../../types/SearchMode";
|
|
4
|
+
import { SCRTDoubleVector, TSciChart } from "../../types/TSciChart";
|
|
5
|
+
import { BaseHeatmapDataSeries, IBaseHeatmapSeriesOptions } from "./BaseHeatmapDataSeries";
|
|
6
|
+
import { EDataChangeType, EDataSeriesType } from "./IDataSeries";
|
|
7
|
+
export declare type TCellSizeMapper = (index: number) => number;
|
|
8
|
+
/**
|
|
9
|
+
* Options to pass to the {@link NonUniformHeatmapSeries} constructor
|
|
10
|
+
*/
|
|
11
|
+
export interface INonUniformHeatmapSeriesOptions extends IBaseHeatmapSeriesOptions {
|
|
12
|
+
/**
|
|
13
|
+
* xCellOffsets defines cell X offsets on {@link NonUniformHeatmapDataSeries} for each cell in the heatmap.
|
|
14
|
+
* Can be an array of numbers or a mapping function {@link TCellSizeMapper}
|
|
15
|
+
* @remarks mapping function would not be preserved by chart serialization
|
|
16
|
+
*/
|
|
17
|
+
xCellOffsets: number[] | TCellSizeMapper;
|
|
18
|
+
/**
|
|
19
|
+
* yCellOffsets defines cell Y offsets on {@link NonUniformHeatmapDataSeries} for each cell in the heatmap.
|
|
20
|
+
* Can be an array of numbers or a mapping function {@link TCellSizeMapper}
|
|
21
|
+
* @remarks mapping function would not be preserved by chart serialization
|
|
22
|
+
*/
|
|
23
|
+
yCellOffsets: number[] | TCellSizeMapper;
|
|
24
|
+
}
|
|
25
|
+
export declare class NonUniformHeatmapDataSeries extends BaseHeatmapDataSeries {
|
|
26
|
+
/**
|
|
27
|
+
* @inheritDoc
|
|
28
|
+
*/
|
|
29
|
+
readonly type: EDataSeriesType;
|
|
30
|
+
private xRangeProperty;
|
|
31
|
+
private yRangeProperty;
|
|
32
|
+
private xCellSizesProperty;
|
|
33
|
+
private yCellSizesProperty;
|
|
34
|
+
private xCellOffsetsProperty;
|
|
35
|
+
private yCellOffsetsProperty;
|
|
36
|
+
private nativeYOffsetsProperty;
|
|
37
|
+
private nativeXOffsetsProperty;
|
|
38
|
+
private xCellOffsetsGeneratorFunction;
|
|
39
|
+
private yCellOffsetsGeneratorFunction;
|
|
40
|
+
/**
|
|
41
|
+
* Creates an instance of {@link UniformHeatmapDataSeries}
|
|
42
|
+
* @param webAssemblyContext the {@link TSciChart | SciChart WebAssembly Context} containing native methods
|
|
43
|
+
* and access to our underlying WebGL2 rendering engine
|
|
44
|
+
* @param options the {@link IUniformHeatmapSeriesOptions} which must be passed to configure the series
|
|
45
|
+
*/
|
|
46
|
+
constructor(webAssemblyContext: TSciChart, options: INonUniformHeatmapSeriesOptions);
|
|
47
|
+
/**
|
|
48
|
+
* Gets or sets cell X sizes on {@link NonUniformHeatmapDataSeries} for each cell in the heatmap.
|
|
49
|
+
* Can be an array of numbers or a mapping function {@link TCellSizeMapper}
|
|
50
|
+
*/
|
|
51
|
+
get xCellSizes(): number[];
|
|
52
|
+
/**
|
|
53
|
+
* Gets or sets cell Y sizes on {@link NonUniformHeatmapDataSeries} for each cell in the heatmap.
|
|
54
|
+
* Can be an array of numbers or a mapping function {@link TCellSizeMapper}
|
|
55
|
+
*/
|
|
56
|
+
get yCellSizes(): number[];
|
|
57
|
+
/**
|
|
58
|
+
* Gets X cell offsets on {@link NonUniformHeatmapDataSeries} for each cell in the heatmap.
|
|
59
|
+
*/
|
|
60
|
+
get xCellOffsets(): number[];
|
|
61
|
+
/**
|
|
62
|
+
* Gets Y cell offsets on {@link NonUniformHeatmapDataSeries} for each cell in the heatmap.
|
|
63
|
+
*/
|
|
64
|
+
get yCellOffsets(): number[];
|
|
65
|
+
/**
|
|
66
|
+
* Gets X cell offsets as native vector on {@link NonUniformHeatmapDataSeries} for each cell in the heatmap.
|
|
67
|
+
*/
|
|
68
|
+
get nativeXCellOffsets(): SCRTDoubleVector;
|
|
69
|
+
/**
|
|
70
|
+
* Gets X cell offsets as native vector on {@link NonUniformHeatmapDataSeries} for each cell in the heatmap.
|
|
71
|
+
*/
|
|
72
|
+
get nativeYCellOffsets(): SCRTDoubleVector;
|
|
73
|
+
/**
|
|
74
|
+
* Gets the X-value at the specified index. This will be computed from constructor parameters xCellOffsets and xStart
|
|
75
|
+
* @param xIndex
|
|
76
|
+
*/
|
|
77
|
+
getXValue(xIndex: number): number;
|
|
78
|
+
/**
|
|
79
|
+
* Gets the Y-value at the specified index. This will be computed from constructor parameters yCellOffsets and yxStart
|
|
80
|
+
* @param xIndex
|
|
81
|
+
*/
|
|
82
|
+
getYValue(yIndex: number): number;
|
|
83
|
+
/**
|
|
84
|
+
* @inheritDoc
|
|
85
|
+
*/
|
|
86
|
+
notifyDataChanged(updateType: EDataChangeType, data?: any): void;
|
|
87
|
+
/**
|
|
88
|
+
* @inheritDoc
|
|
89
|
+
*/
|
|
90
|
+
toJSON(excludeData?: boolean): TSeriesDataDefinition;
|
|
91
|
+
/**
|
|
92
|
+
* @inheritDoc
|
|
93
|
+
*/
|
|
94
|
+
getXRange(): NumberRange;
|
|
95
|
+
/**
|
|
96
|
+
* @inheritDoc
|
|
97
|
+
*/
|
|
98
|
+
getYRange(): NumberRange;
|
|
99
|
+
getXIndicesRange(visibleRange: NumberRange, isCategoryData: boolean, downSearchMode?: ESearchMode, upSearchMode?: ESearchMode): NumberRange;
|
|
100
|
+
getYIndicesRange(visibleRange: NumberRange, isCategoryData: boolean, downSearchMode?: ESearchMode, upSearchMode?: ESearchMode): NumberRange;
|
|
101
|
+
delete(): void;
|
|
102
|
+
/**
|
|
103
|
+
* @param cellOffsets
|
|
104
|
+
* @returns an array with cell sizes to heatmap size ratios
|
|
105
|
+
*/
|
|
106
|
+
protected mapCellSizes(zValuesDimensionSize: number, mapping: TCellSizeMapper): number[];
|
|
107
|
+
/**
|
|
108
|
+
* @param cellOffsets
|
|
109
|
+
* @returns an array with cell sizes to heatmap size ratios
|
|
110
|
+
*/
|
|
111
|
+
protected calculateCellSizes(cellOffsets: number[]): number[];
|
|
112
|
+
}
|
|
@@ -0,0 +1,261 @@
|
|
|
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
|
+
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
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.NonUniformHeatmapDataSeries = void 0;
|
|
30
|
+
var Deleter_1 = require("../../Core/Deleter");
|
|
31
|
+
var Guard_1 = require("../../Core/Guard");
|
|
32
|
+
var NumberRange_1 = require("../../Core/NumberRange");
|
|
33
|
+
var TSciChart_1 = require("../../types/TSciChart");
|
|
34
|
+
var appendDoubleVectorFromJsArray_1 = require("../../utils/ccall/appendDoubleVectorFromJsArray");
|
|
35
|
+
var BaseDataSeries_1 = require("./BaseDataSeries");
|
|
36
|
+
var BaseHeatmapDataSeries_1 = require("./BaseHeatmapDataSeries");
|
|
37
|
+
var IDataSeries_1 = require("./IDataSeries");
|
|
38
|
+
var NonUniformHeatmapDataSeries = /** @class */ (function (_super) {
|
|
39
|
+
__extends(NonUniformHeatmapDataSeries, _super);
|
|
40
|
+
/**
|
|
41
|
+
* Creates an instance of {@link UniformHeatmapDataSeries}
|
|
42
|
+
* @param webAssemblyContext the {@link TSciChart | SciChart WebAssembly Context} containing native methods
|
|
43
|
+
* and access to our underlying WebGL2 rendering engine
|
|
44
|
+
* @param options the {@link IUniformHeatmapSeriesOptions} which must be passed to configure the series
|
|
45
|
+
*/
|
|
46
|
+
function NonUniformHeatmapDataSeries(webAssemblyContext, options) {
|
|
47
|
+
var _this = _super.call(this, webAssemblyContext, options) || this;
|
|
48
|
+
/**
|
|
49
|
+
* @inheritDoc
|
|
50
|
+
*/
|
|
51
|
+
_this.type = IDataSeries_1.EDataSeriesType.HeatmapNonUniform;
|
|
52
|
+
Guard_1.Guard.notNull(options.xCellOffsets, "options.xCellOffsets");
|
|
53
|
+
Guard_1.Guard.notNull(options.yCellOffsets, "options.yCellOffsets");
|
|
54
|
+
// check whether offsets are passed as mappers or arrays;
|
|
55
|
+
// arrays are saved once, while mappers are used for calculation of the offsets each time we change
|
|
56
|
+
if (!Array.isArray(options.xCellOffsets)) {
|
|
57
|
+
_this.xCellOffsetsGeneratorFunction = options.xCellOffsets;
|
|
58
|
+
}
|
|
59
|
+
else if (options.xCellOffsets.length < _this.arrayWidth + 1) {
|
|
60
|
+
throw new Error("xCellOffsets array should not be smaller than zValues width!");
|
|
61
|
+
}
|
|
62
|
+
else {
|
|
63
|
+
_this.xCellOffsetsProperty = options.xCellOffsets;
|
|
64
|
+
}
|
|
65
|
+
if (!Array.isArray(options.yCellOffsets)) {
|
|
66
|
+
_this.yCellOffsetsGeneratorFunction = options.yCellOffsets;
|
|
67
|
+
}
|
|
68
|
+
else if (options.yCellOffsets.length < _this.arrayHeight + 1) {
|
|
69
|
+
throw new Error("yCellOffsets array should not be smaller than zValues height!");
|
|
70
|
+
}
|
|
71
|
+
else {
|
|
72
|
+
_this.yCellOffsetsProperty = options.yCellOffsets;
|
|
73
|
+
}
|
|
74
|
+
_this.nativeXOffsetsProperty = new _this.webAssemblyContext.SCRTDoubleVector();
|
|
75
|
+
_this.nativeYOffsetsProperty = new _this.webAssemblyContext.SCRTDoubleVector();
|
|
76
|
+
// notify about offsets being parsed
|
|
77
|
+
if (_this.getZValues()) {
|
|
78
|
+
_this.notifyDataChanged(IDataSeries_1.EDataChangeType.Append);
|
|
79
|
+
}
|
|
80
|
+
return _this;
|
|
81
|
+
}
|
|
82
|
+
Object.defineProperty(NonUniformHeatmapDataSeries.prototype, "xCellSizes", {
|
|
83
|
+
/**
|
|
84
|
+
* Gets or sets cell X sizes on {@link NonUniformHeatmapDataSeries} for each cell in the heatmap.
|
|
85
|
+
* Can be an array of numbers or a mapping function {@link TCellSizeMapper}
|
|
86
|
+
*/
|
|
87
|
+
get: function () {
|
|
88
|
+
if (!this.xCellSizesProperty) {
|
|
89
|
+
this.xCellSizesProperty = this.calculateCellSizes(this.xCellOffsetsProperty);
|
|
90
|
+
}
|
|
91
|
+
return this.xCellSizesProperty;
|
|
92
|
+
},
|
|
93
|
+
enumerable: false,
|
|
94
|
+
configurable: true
|
|
95
|
+
});
|
|
96
|
+
Object.defineProperty(NonUniformHeatmapDataSeries.prototype, "yCellSizes", {
|
|
97
|
+
/**
|
|
98
|
+
* Gets or sets cell Y sizes on {@link NonUniformHeatmapDataSeries} for each cell in the heatmap.
|
|
99
|
+
* Can be an array of numbers or a mapping function {@link TCellSizeMapper}
|
|
100
|
+
*/
|
|
101
|
+
get: function () {
|
|
102
|
+
if (!this.yCellSizesProperty) {
|
|
103
|
+
this.yCellSizesProperty = this.calculateCellSizes(this.yCellOffsetsProperty);
|
|
104
|
+
}
|
|
105
|
+
return this.yCellSizesProperty;
|
|
106
|
+
},
|
|
107
|
+
enumerable: false,
|
|
108
|
+
configurable: true
|
|
109
|
+
});
|
|
110
|
+
Object.defineProperty(NonUniformHeatmapDataSeries.prototype, "xCellOffsets", {
|
|
111
|
+
/**
|
|
112
|
+
* Gets X cell offsets on {@link NonUniformHeatmapDataSeries} for each cell in the heatmap.
|
|
113
|
+
*/
|
|
114
|
+
get: function () {
|
|
115
|
+
return this.xCellOffsetsProperty;
|
|
116
|
+
},
|
|
117
|
+
enumerable: false,
|
|
118
|
+
configurable: true
|
|
119
|
+
});
|
|
120
|
+
Object.defineProperty(NonUniformHeatmapDataSeries.prototype, "yCellOffsets", {
|
|
121
|
+
/**
|
|
122
|
+
* Gets Y cell offsets on {@link NonUniformHeatmapDataSeries} for each cell in the heatmap.
|
|
123
|
+
*/
|
|
124
|
+
get: function () {
|
|
125
|
+
return this.yCellOffsetsProperty;
|
|
126
|
+
},
|
|
127
|
+
enumerable: false,
|
|
128
|
+
configurable: true
|
|
129
|
+
});
|
|
130
|
+
Object.defineProperty(NonUniformHeatmapDataSeries.prototype, "nativeXCellOffsets", {
|
|
131
|
+
/**
|
|
132
|
+
* Gets X cell offsets as native vector on {@link NonUniformHeatmapDataSeries} for each cell in the heatmap.
|
|
133
|
+
*/
|
|
134
|
+
get: function () {
|
|
135
|
+
if (!this.nativeXOffsetsProperty) {
|
|
136
|
+
this.nativeXOffsetsProperty = new TSciChart_1.SCRTDoubleVector();
|
|
137
|
+
(0, appendDoubleVectorFromJsArray_1.appendDoubleVectorFromJsArray)(this.webAssemblyContext, this.nativeXOffsetsProperty, this.xCellOffsets);
|
|
138
|
+
}
|
|
139
|
+
return this.nativeXOffsetsProperty;
|
|
140
|
+
},
|
|
141
|
+
enumerable: false,
|
|
142
|
+
configurable: true
|
|
143
|
+
});
|
|
144
|
+
Object.defineProperty(NonUniformHeatmapDataSeries.prototype, "nativeYCellOffsets", {
|
|
145
|
+
/**
|
|
146
|
+
* Gets X cell offsets as native vector on {@link NonUniformHeatmapDataSeries} for each cell in the heatmap.
|
|
147
|
+
*/
|
|
148
|
+
get: function () {
|
|
149
|
+
if (!this.nativeYOffsetsProperty) {
|
|
150
|
+
this.nativeYOffsetsProperty = new TSciChart_1.SCRTDoubleVector();
|
|
151
|
+
(0, appendDoubleVectorFromJsArray_1.appendDoubleVectorFromJsArray)(this.webAssemblyContext, this.nativeYOffsetsProperty, this.yCellOffsets);
|
|
152
|
+
}
|
|
153
|
+
return this.nativeYOffsetsProperty;
|
|
154
|
+
},
|
|
155
|
+
enumerable: false,
|
|
156
|
+
configurable: true
|
|
157
|
+
});
|
|
158
|
+
/**
|
|
159
|
+
* Gets the X-value at the specified index. This will be computed from constructor parameters xCellOffsets and xStart
|
|
160
|
+
* @param xIndex
|
|
161
|
+
*/
|
|
162
|
+
NonUniformHeatmapDataSeries.prototype.getXValue = function (xIndex) {
|
|
163
|
+
var offset = this.xCellOffsetsProperty[xIndex];
|
|
164
|
+
return offset;
|
|
165
|
+
};
|
|
166
|
+
/**
|
|
167
|
+
* Gets the Y-value at the specified index. This will be computed from constructor parameters yCellOffsets and yxStart
|
|
168
|
+
* @param xIndex
|
|
169
|
+
*/
|
|
170
|
+
NonUniformHeatmapDataSeries.prototype.getYValue = function (yIndex) {
|
|
171
|
+
var offset = this.yCellOffsetsProperty[yIndex];
|
|
172
|
+
return offset;
|
|
173
|
+
};
|
|
174
|
+
/**
|
|
175
|
+
* @inheritDoc
|
|
176
|
+
*/
|
|
177
|
+
NonUniformHeatmapDataSeries.prototype.notifyDataChanged = function (updateType, data) {
|
|
178
|
+
// skip the initial call from base constructor
|
|
179
|
+
if ((!this.xCellOffsets && !this.xCellOffsetsGeneratorFunction) ||
|
|
180
|
+
(!this.yCellOffsets && !this.yCellOffsetsGeneratorFunction)) {
|
|
181
|
+
return;
|
|
182
|
+
}
|
|
183
|
+
if (updateType === IDataSeries_1.EDataChangeType.Append) {
|
|
184
|
+
// set offsets when zValues changes
|
|
185
|
+
if (this.xCellOffsetsGeneratorFunction) {
|
|
186
|
+
this.xCellOffsetsProperty = this.mapCellSizes(this.arrayWidth, this.xCellOffsetsGeneratorFunction);
|
|
187
|
+
}
|
|
188
|
+
if (this.yCellOffsetsGeneratorFunction) {
|
|
189
|
+
this.yCellOffsetsProperty = this.mapCellSizes(this.arrayHeight, this.yCellOffsetsGeneratorFunction);
|
|
190
|
+
}
|
|
191
|
+
this.nativeXOffsetsProperty.clear();
|
|
192
|
+
this.nativeYOffsetsProperty.clear();
|
|
193
|
+
(0, appendDoubleVectorFromJsArray_1.appendDoubleVectorFromJsArray)(this.webAssemblyContext, this.nativeXOffsetsProperty, this.xCellOffsetsProperty);
|
|
194
|
+
(0, appendDoubleVectorFromJsArray_1.appendDoubleVectorFromJsArray)(this.webAssemblyContext, this.nativeYOffsetsProperty, this.yCellOffsetsProperty);
|
|
195
|
+
}
|
|
196
|
+
this.xRangeProperty = new NumberRange_1.NumberRange(this.getXValue(0), this.getXValue(this.arrayWidth));
|
|
197
|
+
this.yRangeProperty = new NumberRange_1.NumberRange(this.getYValue(0), this.getYValue(this.arrayHeight));
|
|
198
|
+
_super.prototype.notifyDataChanged.call(this, updateType, data);
|
|
199
|
+
};
|
|
200
|
+
/**
|
|
201
|
+
* @inheritDoc
|
|
202
|
+
*/
|
|
203
|
+
NonUniformHeatmapDataSeries.prototype.toJSON = function (excludeData) {
|
|
204
|
+
var options = __assign(__assign({}, _super.prototype.toJSON.call(this, excludeData)), { xCellOffsets: this.xCellOffsetsProperty, yCellOffsets: this.yCellOffsetsProperty });
|
|
205
|
+
return options;
|
|
206
|
+
};
|
|
207
|
+
/**
|
|
208
|
+
* @inheritDoc
|
|
209
|
+
*/
|
|
210
|
+
NonUniformHeatmapDataSeries.prototype.getXRange = function () {
|
|
211
|
+
return this.xRangeProperty;
|
|
212
|
+
};
|
|
213
|
+
/**
|
|
214
|
+
* @inheritDoc
|
|
215
|
+
*/
|
|
216
|
+
NonUniformHeatmapDataSeries.prototype.getYRange = function () {
|
|
217
|
+
return this.yRangeProperty;
|
|
218
|
+
};
|
|
219
|
+
NonUniformHeatmapDataSeries.prototype.getXIndicesRange = function (visibleRange, isCategoryData, downSearchMode, upSearchMode) {
|
|
220
|
+
return (0, BaseDataSeries_1.getIndicesRange)(this.webAssemblyContext, this.nativeXCellOffsets, visibleRange, true);
|
|
221
|
+
};
|
|
222
|
+
NonUniformHeatmapDataSeries.prototype.getYIndicesRange = function (visibleRange, isCategoryData, downSearchMode, upSearchMode) {
|
|
223
|
+
return (0, BaseDataSeries_1.getIndicesRange)(this.webAssemblyContext, this.nativeYCellOffsets, visibleRange, true);
|
|
224
|
+
};
|
|
225
|
+
NonUniformHeatmapDataSeries.prototype.delete = function () {
|
|
226
|
+
_super.prototype.delete.call(this);
|
|
227
|
+
this.nativeXOffsetsProperty = (0, Deleter_1.deleteSafe)(this.nativeXOffsetsProperty);
|
|
228
|
+
this.nativeYOffsetsProperty = (0, Deleter_1.deleteSafe)(this.nativeYOffsetsProperty);
|
|
229
|
+
};
|
|
230
|
+
/**
|
|
231
|
+
* @param cellOffsets
|
|
232
|
+
* @returns an array with cell sizes to heatmap size ratios
|
|
233
|
+
*/
|
|
234
|
+
NonUniformHeatmapDataSeries.prototype.mapCellSizes = function (zValuesDimensionSize, mapping) {
|
|
235
|
+
var cellSizes = [];
|
|
236
|
+
var offsetsCount = zValuesDimensionSize + 1;
|
|
237
|
+
for (var i = 0; i < offsetsCount; ++i) {
|
|
238
|
+
cellSizes.push(mapping(i));
|
|
239
|
+
}
|
|
240
|
+
return cellSizes;
|
|
241
|
+
};
|
|
242
|
+
/**
|
|
243
|
+
* @param cellOffsets
|
|
244
|
+
* @returns an array with cell sizes to heatmap size ratios
|
|
245
|
+
*/
|
|
246
|
+
NonUniformHeatmapDataSeries.prototype.calculateCellSizes = function (cellOffsets) {
|
|
247
|
+
if (!cellOffsets || cellOffsets.length === 0) {
|
|
248
|
+
return [];
|
|
249
|
+
}
|
|
250
|
+
var count = cellOffsets.length;
|
|
251
|
+
var heatmapRange = cellOffsets[count - 1] - cellOffsets[0];
|
|
252
|
+
var cellSizeRatios = [];
|
|
253
|
+
for (var i = 0; i < count - 1; ++i) {
|
|
254
|
+
var diff = cellOffsets[i + 1] - cellOffsets[i];
|
|
255
|
+
cellSizeRatios.push(diff / heatmapRange);
|
|
256
|
+
}
|
|
257
|
+
return cellSizeRatios;
|
|
258
|
+
};
|
|
259
|
+
return NonUniformHeatmapDataSeries;
|
|
260
|
+
}(BaseHeatmapDataSeries_1.BaseHeatmapDataSeries));
|
|
261
|
+
exports.NonUniformHeatmapDataSeries = NonUniformHeatmapDataSeries;
|
|
@@ -1,18 +1,54 @@
|
|
|
1
1
|
import { GradientParams } from "../../Core/GradientParams";
|
|
2
2
|
import { TGradientStop } from "../../types/TGradientStop";
|
|
3
3
|
import { TSciChart } from "../../types/TSciChart";
|
|
4
|
-
import { IStrokePaletteProvider } from "./IPaletteProvider";
|
|
4
|
+
import { IFillPaletteProvider, IPointMarkerPaletteProvider, IStrokePaletteProvider } from "./IPaletteProvider";
|
|
5
|
+
/**
|
|
6
|
+
* Placeholder interface that implements all paletteprovider types
|
|
7
|
+
*/
|
|
8
|
+
export interface IAllPaletteProviders extends IStrokePaletteProvider, IFillPaletteProvider, IPointMarkerPaletteProvider {
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Additional options passed to {@link PaletteFactory.createGradient} to define which features are enabled in the gradient paletteprovider
|
|
12
|
+
*/
|
|
13
|
+
export interface IGradientPaletteOptions {
|
|
14
|
+
/**
|
|
15
|
+
* When true (default = true), IStrokePaletteProvider is enabled
|
|
16
|
+
*/
|
|
17
|
+
enableStroke?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* When true (default = false), IFillPaletteProvider is enabled
|
|
20
|
+
*/
|
|
21
|
+
enableFill?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* When true (default = false), IPointMarkerPaletteProvider is enabled
|
|
24
|
+
*/
|
|
25
|
+
enablePointMarkers?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Optional opacity (default = 1) applied to IStrokePaletteProvider calculations
|
|
28
|
+
*/
|
|
29
|
+
strokeOpacity?: number;
|
|
30
|
+
/**
|
|
31
|
+
* Optional opacity (default = 1) applied to IFillPaletteProvider calculations
|
|
32
|
+
*/
|
|
33
|
+
fillOpacity?: number;
|
|
34
|
+
/**
|
|
35
|
+
* Optional opacity (default = 1) applied to IPointMarkerPaletteProvider calculations
|
|
36
|
+
*/
|
|
37
|
+
pointMarkerOpacity?: number;
|
|
38
|
+
}
|
|
5
39
|
/**
|
|
6
40
|
* The PaletteFactory allows easy creation of palettes for some chart types
|
|
7
41
|
*/
|
|
8
42
|
export declare class PaletteFactory {
|
|
9
43
|
static readonly precision: number;
|
|
10
44
|
/**
|
|
11
|
-
* Creates a Gradient Palette for line series,
|
|
12
|
-
*
|
|
45
|
+
* Creates a multi purpose Gradient Palette for line series, scatter, bubble or column and mountain series returning
|
|
46
|
+
* an {@link IPaletteProvider} implementation which
|
|
47
|
+
* colors data-points of charts depending on the x-index of the data according to the Gradient Brush passed in
|
|
13
48
|
* @param webAssemblyContext the {@link TSciChart | SciChart WebAssembly Context} containing native methods
|
|
14
49
|
* @param gradientBrush the {@link GradientParams} containing information about the Gradient Brush
|
|
50
|
+
* @param options the {@link IGradientPaletteOptions} containing additional options to turn stroke, fill or pointmarker sections on or off, and opacity per option
|
|
15
51
|
*/
|
|
16
|
-
static createGradient(webAssemblyContext: TSciChart, gradientBrush: GradientParams):
|
|
52
|
+
static createGradient(webAssemblyContext: TSciChart, gradientBrush: GradientParams, options?: IGradientPaletteOptions): IAllPaletteProviders;
|
|
17
53
|
static createColorMap(webAssemblyContext: TSciChart, gradientStops: TGradientStop[]): number[];
|
|
18
54
|
}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.PaletteFactory = void 0;
|
|
4
4
|
var PaletteProviderType_1 = require("../../types/PaletteProviderType");
|
|
5
|
+
var colorUtil_1 = require("../../utils/colorUtil");
|
|
5
6
|
var parseColor_1 = require("../../utils/parseColor");
|
|
6
7
|
var IPaletteProvider_1 = require("./IPaletteProvider");
|
|
7
8
|
/**
|
|
@@ -11,32 +12,57 @@ var PaletteFactory = /** @class */ (function () {
|
|
|
11
12
|
function PaletteFactory() {
|
|
12
13
|
}
|
|
13
14
|
/**
|
|
14
|
-
* Creates a Gradient Palette for line series,
|
|
15
|
-
*
|
|
15
|
+
* Creates a multi purpose Gradient Palette for line series, scatter, bubble or column and mountain series returning
|
|
16
|
+
* an {@link IPaletteProvider} implementation which
|
|
17
|
+
* colors data-points of charts depending on the x-index of the data according to the Gradient Brush passed in
|
|
16
18
|
* @param webAssemblyContext the {@link TSciChart | SciChart WebAssembly Context} containing native methods
|
|
17
19
|
* @param gradientBrush the {@link GradientParams} containing information about the Gradient Brush
|
|
20
|
+
* @param options the {@link IGradientPaletteOptions} containing additional options to turn stroke, fill or pointmarker sections on or off, and opacity per option
|
|
18
21
|
*/
|
|
19
|
-
PaletteFactory.createGradient = function (webAssemblyContext, gradientBrush) {
|
|
22
|
+
PaletteFactory.createGradient = function (webAssemblyContext, gradientBrush, options) {
|
|
20
23
|
// TODO (Andrew): Adjust createGradient to modify the output based on start/end point of gradient brush
|
|
21
24
|
var xFactor = gradientBrush.endPoint.x - gradientBrush.startPoint.x;
|
|
22
25
|
var yFactor = gradientBrush.endPoint.y - gradientBrush.startPoint.y;
|
|
23
26
|
var colorData = PaletteFactory.createColorMap(webAssemblyContext, gradientBrush.gradientStops.slice(0));
|
|
24
27
|
var renderSeries;
|
|
28
|
+
var doFunc = function (xValue, yValue, index, opacity) {
|
|
29
|
+
if (opacity === void 0) { opacity = 1; }
|
|
30
|
+
var count = renderSeries.getDataSeriesValuesCount();
|
|
31
|
+
var lerpFactor = index / (count - 1);
|
|
32
|
+
var mapIndex = webAssemblyContext.NumberUtil.Constrain(Math.round(lerpFactor * (colorData.length - 1)), 0, colorData.length - 1);
|
|
33
|
+
var result = colorData[mapIndex];
|
|
34
|
+
// console.log("GradientPalette called!");
|
|
35
|
+
// console.log(`mapIndex is ${mapIndex}, colorData.length is ${colorData.length}`);
|
|
36
|
+
// console.log(`count is ${count}, lerp is ${lerpFactor}. result is ${result}`);
|
|
37
|
+
return (0, colorUtil_1.uintArgbColorMultiplyOpacity)(result, opacity);
|
|
38
|
+
};
|
|
39
|
+
var hasStroke = options === undefined || (options === null || options === void 0 ? void 0 : options.enableStroke) === true;
|
|
40
|
+
var hasFill = (options === null || options === void 0 ? void 0 : options.enableFill) === true;
|
|
41
|
+
var hasMarker = (options === null || options === void 0 ? void 0 : options.enablePointMarkers) === true;
|
|
25
42
|
var palette = {
|
|
26
43
|
strokePaletteMode: IPaletteProvider_1.EStrokePaletteMode.GRADIENT,
|
|
44
|
+
fillPaletteMode: IPaletteProvider_1.EFillPaletteMode.GRADIENT,
|
|
27
45
|
onAttached: function (parentSeries) {
|
|
28
46
|
renderSeries = parentSeries;
|
|
29
47
|
},
|
|
30
48
|
onDetached: function () { },
|
|
31
49
|
overrideStrokeArgb: function (xValue, yValue, index) {
|
|
32
|
-
var
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
50
|
+
var _a;
|
|
51
|
+
return hasStroke ? doFunc(xValue, yValue, index, (_a = options === null || options === void 0 ? void 0 : options.strokeOpacity) !== null && _a !== void 0 ? _a : 1) : undefined;
|
|
52
|
+
},
|
|
53
|
+
overrideFillArgb: function (xValue, yValue, index, opacity, metadata) {
|
|
54
|
+
var _a;
|
|
55
|
+
return hasFill ? doFunc(xValue, yValue, index, (_a = options === null || options === void 0 ? void 0 : options.fillOpacity) !== null && _a !== void 0 ? _a : 1) : undefined;
|
|
56
|
+
},
|
|
57
|
+
overridePointMarkerArgb: function (xValue, yValue, index, opacity, metadata) {
|
|
58
|
+
var _a;
|
|
59
|
+
var markerOpacity = (_a = options === null || options === void 0 ? void 0 : options.pointMarkerOpacity) !== null && _a !== void 0 ? _a : 1;
|
|
60
|
+
return hasMarker
|
|
61
|
+
? {
|
|
62
|
+
fill: doFunc(xValue, yValue, index, markerOpacity),
|
|
63
|
+
stroke: doFunc(xValue, yValue, index, markerOpacity)
|
|
64
|
+
}
|
|
65
|
+
: undefined;
|
|
40
66
|
},
|
|
41
67
|
toJSON: function () {
|
|
42
68
|
return { type: PaletteProviderType_1.EPaletteProviderType.Gradient, options: gradientBrush };
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import { NumberArray } from "../../types/NumberArray";
|
|
2
|
+
import { TSciChart } from "../../types/TSciChart";
|
|
3
|
+
import { BaseDataSeries } from "./BaseDataSeries";
|
|
4
|
+
import { EDataSeriesType } from "./IDataSeries";
|
|
5
|
+
import { IPointMetadata } from "./IPointMetadata";
|
|
6
|
+
import { IXyDataSeriesOptions } from "./XyDataSeries";
|
|
7
|
+
/**
|
|
8
|
+
* Options to pass to the {@link XyTextDataSeries} constructor
|
|
9
|
+
*/
|
|
10
|
+
export interface IXyTextDataSeriesOptions extends IXyDataSeriesOptions {
|
|
11
|
+
/**
|
|
12
|
+
* The text-values array to pre-populate the {@link XyTextDataSeries}
|
|
13
|
+
*/
|
|
14
|
+
textValues?: string[];
|
|
15
|
+
}
|
|
16
|
+
export declare class XyTextDataSeries extends BaseDataSeries {
|
|
17
|
+
/**
|
|
18
|
+
* @inheritDoc
|
|
19
|
+
*/
|
|
20
|
+
readonly type = EDataSeriesType.XyText;
|
|
21
|
+
private textValuesProperty;
|
|
22
|
+
/**
|
|
23
|
+
* Creates an instance of {@link XyDataSeries}
|
|
24
|
+
* @param webAssemblyContext the {@link TSciChart | SciChart WebAssembly Context} containing native methods
|
|
25
|
+
* and access to our underlying WebGL2 WebAssembly rendering engine
|
|
26
|
+
* @param options the {@link IXyDataSeriesOptions} which can be passed to configure the DataSeries at construct time
|
|
27
|
+
*/
|
|
28
|
+
constructor(webAssemblyContext: TSciChart, options?: IXyTextDataSeriesOptions);
|
|
29
|
+
/** The text values for this series. Manipulate using append, insert, update etc on the XyTextDataSeries */
|
|
30
|
+
get textValues(): readonly string[];
|
|
31
|
+
/**
|
|
32
|
+
* Appends a single X, Y, Text point to the DataSeries
|
|
33
|
+
* @remarks
|
|
34
|
+
* For best performance on drawing large datasets, use the {@link appendRange} method
|
|
35
|
+
*
|
|
36
|
+
* Any changes of the DataSeries will trigger a redraw on the parent {@link SciChartSurface}
|
|
37
|
+
* @param x The X-value
|
|
38
|
+
* @param y The Y-value
|
|
39
|
+
* @param text The text-value
|
|
40
|
+
* @param metadata The point metadata
|
|
41
|
+
*/
|
|
42
|
+
append(x: number, y: number, text: string, metadata?: IPointMetadata): void;
|
|
43
|
+
/**
|
|
44
|
+
* Appends a range of X, Y, Text points to the DataSeries
|
|
45
|
+
* @remarks
|
|
46
|
+
* This method is considerably higher performance than {@link append} which appends a single point
|
|
47
|
+
*
|
|
48
|
+
* Any changes of the DataSeries will trigger a redraw on the parent {@link SciChartSurface}
|
|
49
|
+
* @param xValues The X-values
|
|
50
|
+
* @param yValues The Y-values
|
|
51
|
+
* @param textValues The text values
|
|
52
|
+
* @param metadata The array of point metadata
|
|
53
|
+
*/
|
|
54
|
+
appendRange(xValues: NumberArray, yValues: NumberArray, textValues: string[], metadata?: IPointMetadata[]): void;
|
|
55
|
+
/**
|
|
56
|
+
* Updates a single Y-value by X-index
|
|
57
|
+
* @remarks Any changes of the DataSeries will trigger a redraw on the parent {@link SciChartSurface}
|
|
58
|
+
* @param index the index to update
|
|
59
|
+
* @param y The new Y value
|
|
60
|
+
* @param text The new text value
|
|
61
|
+
* @param metadata The point metadata
|
|
62
|
+
*/
|
|
63
|
+
update(index: number, y: number, text: string, metadata?: IPointMetadata): void;
|
|
64
|
+
/**
|
|
65
|
+
* Updates a single X, Y, Text value, by X-index. Might also need to set isSorted = false
|
|
66
|
+
* @remarks Any changes of the DataSeries will trigger a redraw on the parent {@link SciChartSurface}
|
|
67
|
+
* @param index The index to update
|
|
68
|
+
* @param x The new X value
|
|
69
|
+
* @param y The new Y value
|
|
70
|
+
* @param text The new text value
|
|
71
|
+
* @param metadata The point metadata
|
|
72
|
+
*/
|
|
73
|
+
updateXyText(index: number, x: number, y: number, text: string, metadata?: IPointMetadata): void;
|
|
74
|
+
/**
|
|
75
|
+
* @summary Inserts a single X,Y,Text value at the start index
|
|
76
|
+
* @remarks
|
|
77
|
+
* For best performance on drawing large datasets, use the {@link insertRange} method
|
|
78
|
+
*
|
|
79
|
+
* Any changes of the DataSeries will trigger a redraw on the parent {@link SciChartSurface}
|
|
80
|
+
* @param startIndex the index to insert at
|
|
81
|
+
* @param x the X value
|
|
82
|
+
* @param y the Y value
|
|
83
|
+
* @param text The new text value
|
|
84
|
+
* @param metadata The point metadata
|
|
85
|
+
*/
|
|
86
|
+
insert(startIndex: number, x: number, y: number, text: string, metadata?: IPointMetadata): void;
|
|
87
|
+
/**
|
|
88
|
+
* @summary Inserts a range of X,Y values at the startIndex
|
|
89
|
+
* @remarks
|
|
90
|
+
* Any changes of the DataSeries will trigger a redraw on the parent {@link SciChartSurface}
|
|
91
|
+
* @param startIndex the index to insert at
|
|
92
|
+
* @param xValues the XValues
|
|
93
|
+
* @param yValues the YValues
|
|
94
|
+
* @param textValues The text values
|
|
95
|
+
* @param metadata The array of point metadata
|
|
96
|
+
*/
|
|
97
|
+
insertRange(startIndex: number, xValues: NumberArray, yValues: NumberArray, textValues: string[], metadata?: IPointMetadata[]): void;
|
|
98
|
+
/**
|
|
99
|
+
* Removes an X,Y value at the specified index
|
|
100
|
+
* @remarks Any changes of the DataSeries will trigger a redraw on the parent {@link SciChartSurface}
|
|
101
|
+
* @param index the index to remove at
|
|
102
|
+
*/
|
|
103
|
+
removeAt(index: number): void;
|
|
104
|
+
/**
|
|
105
|
+
* @summary Removes a range of X,Y values at the specified index
|
|
106
|
+
* @remarks Any changes of the DataSeries will trigger a redraw on the parent {@link SciChartSurface}
|
|
107
|
+
* @param startIndex the start index to remove at
|
|
108
|
+
* @param count the number of points to remove
|
|
109
|
+
*/
|
|
110
|
+
removeRange(startIndex: number, count: number): void;
|
|
111
|
+
/**
|
|
112
|
+
* Clears the entire DataSeries.
|
|
113
|
+
* @remarks
|
|
114
|
+
* Note this does not free memory, WebAssembly/Native memory is released by calling {@link delete}, after which the
|
|
115
|
+
* DataSeries is no longer usable.
|
|
116
|
+
*
|
|
117
|
+
* Any changes of the DataSeries will trigger a redraw on the parent {@link SciChartSurface}
|
|
118
|
+
*/
|
|
119
|
+
clear(): void;
|
|
120
|
+
toJSON(excludeData?: boolean): any;
|
|
121
|
+
}
|