scichart 2.2.2417 → 3.0.0-beta.230
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Builder/buildDataSeries.d.ts +16 -1
- package/Builder/buildDataSeries.js +24 -1
- package/Builder/buildSeries.d.ts +60 -3
- package/Builder/buildSeries.js +28 -1
- package/Builder/buildSurface.d.ts +28 -2
- package/Builder/buildSurface.js +53 -31
- package/Builder/chartBuilder.d.ts +20 -7
- package/Builder/chartBuilder.js +37 -3
- package/Charting/ChartModifiers/ChartModifierBase.d.ts +21 -0
- package/Charting/ChartModifiers/ChartModifierBase.js +12 -0
- package/Charting/ChartModifiers/ChartModifierBase2D.js +2 -1
- package/Charting/ChartModifiers/CursorModifier.d.ts +92 -19
- package/Charting/ChartModifiers/CursorModifier.js +147 -58
- package/Charting/ChartModifiers/DataPointSelectionModifier.js +2 -1
- package/Charting/ChartModifiers/LegendModifier.js +2 -1
- package/Charting/ChartModifiers/ModifierMouseArgs.d.ts +6 -1
- package/Charting/ChartModifiers/ModifierMouseArgs.js +13 -3
- package/Charting/ChartModifiers/MouseWheelZoomModifier.d.ts +2 -2
- package/Charting/ChartModifiers/MouseWheelZoomModifier.js +16 -4
- package/Charting/ChartModifiers/OverviewRangeSelectionModifier.d.ts +2 -1
- package/Charting/ChartModifiers/OverviewRangeSelectionModifier.js +8 -4
- package/Charting/ChartModifiers/PinchZoomModifier.js +2 -1
- package/Charting/ChartModifiers/RolloverModifier.d.ts +43 -21
- package/Charting/ChartModifiers/RolloverModifier.js +48 -29
- package/Charting/ChartModifiers/RubberBandXyZoomModifier.d.ts +9 -6
- package/Charting/ChartModifiers/RubberBandXyZoomModifier.js +10 -8
- package/Charting/ChartModifiers/SeriesSelectionModifier.js +2 -1
- package/Charting/ChartModifiers/XAxisDragModifier.d.ts +1 -1
- package/Charting/ChartModifiers/XAxisDragModifier.js +2 -1
- package/Charting/ChartModifiers/YAxisDragModifier.d.ts +1 -1
- package/Charting/ChartModifiers/YAxisDragModifier.js +2 -1
- package/Charting/ChartModifiers/ZoomExtentsModifier.js +2 -1
- package/Charting/ChartModifiers/ZoomPanModifier.js +2 -1
- package/Charting/ChartModifiers/constants.d.ts +3 -1
- package/Charting/ChartModifiers/constants.js +2 -0
- package/Charting/Drawing/BatchRenderContext.d.ts +6 -0
- package/Charting/Drawing/BatchRenderContext.js +40 -0
- package/Charting/Drawing/RenderSurface.d.ts +2 -1
- package/Charting/Drawing/RenderSurface.js +3 -2
- package/Charting/Drawing/WebGlRenderContext2D.d.ts +19 -4
- package/Charting/Drawing/WebGlRenderContext2D.js +70 -41
- package/Charting/LayoutManager/BaseCenteredAxisLayoutStrategy.js +2 -1
- package/Charting/LayoutManager/BottomAlignedInnerAxisLayoutStrategy.js +1 -1
- package/Charting/LayoutManager/CentralAxesLayoutManager.js +2 -1
- package/Charting/LayoutManager/LayoutManager.d.ts +2 -1
- package/Charting/LayoutManager/LayoutManager.js +6 -5
- package/Charting/LayoutManager/LeftAlignedInnerAxisLayoutStrategy.js +1 -1
- package/Charting/LayoutManager/RightAlignedInnerAxisLayoutStrategy.js +1 -1
- package/Charting/LayoutManager/TopAlignedInnerAxisLayoutStrategy.js +1 -1
- package/Charting/Model/BaseDataSeries.d.ts +10 -1
- package/Charting/Model/BaseDataSeries.js +9 -8
- package/Charting/Model/BaseHeatmapDataSeries.d.ts +18 -5
- package/Charting/Model/BaseHeatmapDataSeries.js +21 -13
- package/Charting/Model/ChartData/SeriesInfo.d.ts +6 -0
- package/Charting/Model/ChartData/SeriesInfo.js +5 -0
- package/Charting/Model/ChartData/XyySeriesInfo.d.ts +2 -0
- package/Charting/Model/ChartData/XyySeriesInfo.js +2 -0
- package/Charting/Model/DataDistributionCalculator/DataDistributionCalculator.js +4 -3
- package/Charting/Model/Filters/HlcCustomFilter.js +12 -9
- package/Charting/Model/Filters/HlcFilterBase.js +2 -1
- package/Charting/Model/Filters/HlcScaleOffsetFilter.js +2 -1
- package/Charting/Model/Filters/OhlcCustomFilter.js +12 -9
- package/Charting/Model/Filters/OhlcScaleOffsetFilter.js +2 -1
- package/Charting/Model/Filters/XyCustomFilter.js +12 -9
- package/Charting/Model/Filters/XyFilterBase.d.ts +14 -5
- package/Charting/Model/Filters/XyFilterBase.js +47 -15
- package/Charting/Model/Filters/XyMovingAverageFilter.js +2 -1
- package/Charting/Model/Filters/XyRatioFilter.js +2 -1
- package/Charting/Model/Filters/XyScaleOffsetFilter.js +2 -1
- package/Charting/Model/Filters/XyyCustomFilter.js +12 -9
- package/Charting/Model/Filters/XyyFilterBase.js +2 -1
- package/Charting/Model/Filters/XyyScaleOffsetFilter.js +2 -1
- package/Charting/Model/Filters/XyzCustomFilter.js +12 -9
- package/Charting/Model/Filters/XyzFilterBase.js +2 -1
- package/Charting/Model/Filters/XyzScaleOffsetFilter.js +2 -1
- package/Charting/Model/IDataSeries.d.ts +9 -1
- package/Charting/Model/IDataSeries.js +8 -0
- package/Charting/Model/NonUniformHeatmapDataSeries.d.ts +112 -0
- package/Charting/Model/NonUniformHeatmapDataSeries.js +261 -0
- package/Charting/Model/PaletteFactory.d.ts +40 -4
- package/Charting/Model/PaletteFactory.js +37 -11
- package/Charting/Model/XyTextDataSeries.d.ts +121 -0
- package/Charting/Model/XyTextDataSeries.js +274 -0
- package/Charting/Numerics/CoordinateCalculators/CoordinateCalculatorBase.d.ts +1 -1
- package/Charting/Numerics/Resamplers/ExtremeResamplerHelper.js +1 -1
- package/Charting/Services/RenderPassData.d.ts +15 -5
- package/Charting/Services/RenderPassData.js +27 -5
- package/Charting/Services/SciChartRenderer.d.ts +2 -1
- package/Charting/Services/SciChartRenderer.js +91 -29
- package/Charting/Themes/IThemeProvider.d.ts +61 -0
- package/Charting/Themes/IThemeProvider.js +67 -1
- package/Charting/Themes/SciChartJSDarkTheme.d.ts +4 -0
- package/Charting/Themes/SciChartJSDarkTheme.js +6 -2
- package/Charting/Themes/SciChartJSDarkv2Theme.js +3 -0
- package/Charting/Themes/SciChartJSLightTheme.d.ts +8 -0
- package/Charting/Themes/SciChartJSLightTheme.js +8 -0
- package/Charting/Themes/SciChartJsNavyTheme.d.ts +10 -0
- package/Charting/Themes/SciChartJsNavyTheme.js +49 -0
- package/Charting/Visuals/Annotations/AdornerLayer.js +4 -8
- package/Charting/Visuals/Annotations/AnnotationBase.d.ts +80 -7
- package/Charting/Visuals/Annotations/AnnotationBase.js +238 -28
- package/Charting/Visuals/Annotations/AnnotationClickEventArgs.d.ts +11 -0
- package/Charting/Visuals/Annotations/AnnotationClickEventArgs.js +12 -0
- package/Charting/Visuals/Annotations/AxisMarkerAnnotation.d.ts +1 -0
- package/Charting/Visuals/Annotations/AxisMarkerAnnotation.js +18 -19
- package/Charting/Visuals/Annotations/BoxAnnotation.d.ts +1 -0
- package/Charting/Visuals/Annotations/BoxAnnotation.js +69 -67
- package/Charting/Visuals/Annotations/CursorTooltipSvgAnnotation.d.ts +2 -2
- package/Charting/Visuals/Annotations/CursorTooltipSvgAnnotation.js +20 -20
- package/Charting/Visuals/Annotations/CustomAnnotation.d.ts +1 -1
- package/Charting/Visuals/Annotations/CustomAnnotation.js +3 -2
- package/Charting/Visuals/Annotations/HorizontalLineAnnotation.js +6 -3
- package/Charting/Visuals/Annotations/IAdornerProvider.d.ts +12 -0
- package/Charting/Visuals/Annotations/IAnnotation.d.ts +9 -0
- package/Charting/Visuals/Annotations/IAnnotation.js +9 -0
- package/Charting/Visuals/Annotations/LineAnnotation.d.ts +1 -0
- package/Charting/Visuals/Annotations/LineAnnotation.js +29 -35
- package/Charting/Visuals/Annotations/NativeTextAnnotation.d.ts +193 -0
- package/Charting/Visuals/Annotations/NativeTextAnnotation.js +536 -0
- package/Charting/Visuals/Annotations/OverviewCustomResizableAnnotation.d.ts +4 -2
- package/Charting/Visuals/Annotations/OverviewCustomResizableAnnotation.js +19 -14
- package/Charting/Visuals/Annotations/RolloverLegendSvgAnnotation.d.ts +2 -2
- package/Charting/Visuals/Annotations/RolloverLegendSvgAnnotation.js +9 -8
- package/Charting/Visuals/Annotations/RolloverMarkerSvgAnnotation.d.ts +2 -2
- package/Charting/Visuals/Annotations/RolloverMarkerSvgAnnotation.js +6 -6
- package/Charting/Visuals/Annotations/RolloverTooltipSvgAnnotation.d.ts +2 -2
- package/Charting/Visuals/Annotations/RolloverTooltipSvgAnnotation.js +20 -21
- package/Charting/Visuals/Annotations/SvgAnnotationBase.d.ts +13 -2
- package/Charting/Visuals/Annotations/SvgAnnotationBase.js +34 -42
- package/Charting/Visuals/Annotations/TextAnnotation.d.ts +2 -2
- package/Charting/Visuals/Annotations/TextAnnotation.js +41 -22
- package/Charting/Visuals/Annotations/VerticalLineAnnotation.js +6 -3
- package/Charting/Visuals/Annotations/annotationHelpers.d.ts +6 -6
- package/Charting/Visuals/Annotations/annotationHelpers.js +7 -6
- package/Charting/Visuals/Annotations/constants.d.ts +13 -1
- package/Charting/Visuals/Annotations/constants.js +12 -0
- package/Charting/Visuals/Axis/AxisBase2D.d.ts +24 -4
- package/Charting/Visuals/Axis/AxisBase2D.js +115 -38
- package/Charting/Visuals/Axis/AxisCore.d.ts +10 -5
- package/Charting/Visuals/Axis/AxisCore.js +11 -10
- package/Charting/Visuals/Axis/AxisRenderer.js +114 -20
- package/Charting/Visuals/Axis/CategoryAxis.js +2 -1
- package/Charting/Visuals/Axis/CategoryAxisBase.d.ts +15 -15
- package/Charting/Visuals/Axis/CategoryAxisBase.js +14 -12
- package/Charting/Visuals/Axis/DateTimeNumericAxis.js +2 -1
- package/Charting/Visuals/Axis/DeltaCalculator/DateTimeDeltaCalculator.js +2 -1
- package/Charting/Visuals/Axis/LabelProvider/DateLabelProvider.js +2 -1
- package/Charting/Visuals/Axis/LabelProvider/LabelCache.js +2 -0
- package/Charting/Visuals/Axis/LabelProvider/LabelProviderBase2D.d.ts +14 -0
- package/Charting/Visuals/Axis/LabelProvider/LabelProviderBase2D.js +140 -33
- package/Charting/Visuals/Axis/LabelProvider/LogarithmicLabelProvider.js +2 -1
- package/Charting/Visuals/Axis/LabelProvider/NumericLabelProvider.js +2 -1
- package/Charting/Visuals/Axis/LabelProvider/PieLabelProvider.js +2 -1
- package/Charting/Visuals/Axis/LabelProvider/SmartDateLabelProvider.d.ts +31 -1
- package/Charting/Visuals/Axis/LabelProvider/SmartDateLabelProvider.js +64 -42
- package/Charting/Visuals/Axis/LabelProvider/TextLabelProvider.d.ts +2 -2
- package/Charting/Visuals/Axis/LabelProvider/TextLabelProvider.js +16 -19
- package/Charting/Visuals/Axis/LogarithmicAxis.js +9 -6
- package/Charting/Visuals/Axis/NumericAxis.js +3 -3
- package/Charting/Visuals/Axis/constants.d.ts +1 -0
- package/Charting/Visuals/Axis/constants.js +1 -0
- package/Charting/Visuals/HeatmapLegend.d.ts +95 -0
- package/Charting/Visuals/HeatmapLegend.js +192 -0
- package/Charting/Visuals/Helpers/NativeObject.d.ts +15 -2
- package/Charting/Visuals/Helpers/NativeObject.js +72 -6
- package/Charting/Visuals/I2DSurfaceOptions.d.ts +46 -0
- package/Charting/Visuals/PointMarkers/BasePointMarker.d.ts +5 -0
- package/Charting/Visuals/PointMarkers/BasePointMarker.js +28 -0
- package/Charting/Visuals/PointMarkers/IPointMarker.d.ts +8 -0
- package/Charting/Visuals/RenderableSeries/Animations/BandAnimation.js +2 -1
- package/Charting/Visuals/RenderableSeries/Animations/BandAnimationStyle.js +2 -1
- package/Charting/Visuals/RenderableSeries/Animations/BubbleAnimation.js +2 -1
- package/Charting/Visuals/RenderableSeries/Animations/CandlestickAnimation.js +2 -1
- package/Charting/Visuals/RenderableSeries/Animations/CandlestickAnimationStyle.js +2 -1
- package/Charting/Visuals/RenderableSeries/Animations/ColumnAnimation.js +2 -1
- package/Charting/Visuals/RenderableSeries/Animations/ColumnAnimationStyle.js +2 -1
- package/Charting/Visuals/RenderableSeries/Animations/CustomPointMarkerStyle.js +2 -1
- package/Charting/Visuals/RenderableSeries/Animations/FadeAnimation.js +2 -1
- package/Charting/Visuals/RenderableSeries/Animations/LineAnimation.js +2 -1
- package/Charting/Visuals/RenderableSeries/Animations/MountainAnimation.js +2 -1
- package/Charting/Visuals/RenderableSeries/Animations/MountainAnimationStyle.js +2 -1
- package/Charting/Visuals/RenderableSeries/Animations/OhlcAnimation.js +2 -1
- package/Charting/Visuals/RenderableSeries/Animations/OhlcAnimationStyle.js +2 -1
- package/Charting/Visuals/RenderableSeries/Animations/PointMarkerStyle.js +2 -1
- package/Charting/Visuals/RenderableSeries/Animations/ScaleAnimation.js +2 -1
- package/Charting/Visuals/RenderableSeries/Animations/ScatterAnimation.js +2 -1
- package/Charting/Visuals/RenderableSeries/Animations/SeriesAnimation.d.ts +8 -2
- package/Charting/Visuals/RenderableSeries/Animations/SeriesAnimation.js +3 -3
- package/Charting/Visuals/RenderableSeries/Animations/WaveAnimation.js +2 -1
- package/Charting/Visuals/RenderableSeries/BaseBandRenderableSeries.d.ts +7 -0
- package/Charting/Visuals/RenderableSeries/BaseBandRenderableSeries.js +42 -10
- package/Charting/Visuals/RenderableSeries/BaseHeatmapRenderableSeries.d.ts +128 -0
- package/Charting/Visuals/RenderableSeries/BaseHeatmapRenderableSeries.js +201 -0
- package/Charting/Visuals/RenderableSeries/BaseLineRenderableSeries.d.ts +26 -0
- package/Charting/Visuals/RenderableSeries/BaseLineRenderableSeries.js +39 -3
- package/Charting/Visuals/RenderableSeries/BaseMountainRenderableSeries.d.ts +7 -0
- package/Charting/Visuals/RenderableSeries/BaseMountainRenderableSeries.js +17 -2
- package/Charting/Visuals/RenderableSeries/BaseOhlcRenderableSeries.d.ts +2 -0
- package/Charting/Visuals/RenderableSeries/BaseOhlcRenderableSeries.js +15 -2
- package/Charting/Visuals/RenderableSeries/BaseRenderableSeries.d.ts +10 -0
- package/Charting/Visuals/RenderableSeries/BaseRenderableSeries.js +93 -17
- package/Charting/Visuals/RenderableSeries/BaseStackedCollection.d.ts +8 -1
- package/Charting/Visuals/RenderableSeries/BaseStackedCollection.js +21 -1
- package/Charting/Visuals/RenderableSeries/BaseStackedRenderableSeries.d.ts +1 -0
- package/Charting/Visuals/RenderableSeries/BaseStackedRenderableSeries.js +4 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/BandSeriesDataLabelProvider.d.ts +43 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/BandSeriesDataLabelProvider.js +142 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/BaseDataLabelProvider.d.ts +92 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/BaseDataLabelProvider.js +129 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/BubbleSeriesDataLabelProvider.d.ts +17 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/BubbleSeriesDataLabelProvider.js +62 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/ColumnSeriesDataLabelProvider.d.ts +47 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/ColumnSeriesDataLabelProvider.js +125 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/ContoursDataLabelProvider.d.ts +71 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/ContoursDataLabelProvider.js +221 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/DataLabelLayoutManager.d.ts +5 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/DataLabelLayoutManager.js +2 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/DataLabelProvider.d.ts +208 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/DataLabelProvider.js +410 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/DataLabelState.d.ts +40 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/DataLabelState.js +141 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/HeatMapDataLabelProvider.d.ts +63 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/HeatMapDataLabelProvider.js +198 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/LineSeriesDataLabelProvider.d.ts +35 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/LineSeriesDataLabelProvider.js +92 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/NonUniformHeatmapDataLabelProvider.d.ts +12 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/NonUniformHeatmapDataLabelProvider.js +134 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/TextDataLabelProvider.d.ts +56 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/TextDataLabelProvider.js +167 -0
- package/Charting/Visuals/RenderableSeries/DrawingProviders/BandSeriesDrawingProvider.d.ts +0 -1
- package/Charting/Visuals/RenderableSeries/DrawingProviders/BandSeriesDrawingProvider.js +1 -2
- package/Charting/Visuals/RenderableSeries/DrawingProviders/BaseSeriesDrawingProvider.d.ts +5 -2
- package/Charting/Visuals/RenderableSeries/DrawingProviders/BaseSeriesDrawingProvider.js +47 -40
- package/Charting/Visuals/RenderableSeries/DrawingProviders/BubbleSeriesDrawingProvider.js +1 -1
- package/Charting/Visuals/RenderableSeries/DrawingProviders/ColumnSeriesDrawingProvider.d.ts +1 -0
- package/Charting/Visuals/RenderableSeries/DrawingProviders/ColumnSeriesDrawingProvider.js +18 -5
- package/Charting/Visuals/RenderableSeries/DrawingProviders/ErrorSeriesDrawingProvider.d.ts +0 -1
- package/Charting/Visuals/RenderableSeries/DrawingProviders/ErrorSeriesDrawingProvider.js +14 -27
- package/Charting/Visuals/RenderableSeries/DrawingProviders/LineSeriesDrawingProvider.d.ts +17 -4
- package/Charting/Visuals/RenderableSeries/DrawingProviders/LineSeriesDrawingProvider.js +34 -11
- package/Charting/Visuals/RenderableSeries/DrawingProviders/NonUniformHeatmapDrawingProvider.d.ts +36 -0
- package/Charting/Visuals/RenderableSeries/DrawingProviders/NonUniformHeatmapDrawingProvider.js +493 -0
- package/Charting/Visuals/RenderableSeries/DrawingProviders/PointMarkerDrawingProvider.d.ts +5 -2
- package/Charting/Visuals/RenderableSeries/DrawingProviders/PointMarkerDrawingProvider.js +8 -5
- package/Charting/Visuals/RenderableSeries/DrawingProviders/UniformContoursDrawingProvider.js +4 -4
- package/Charting/Visuals/RenderableSeries/DrawingProviders/UniformHeatmapDrawingProvider.d.ts +3 -0
- package/Charting/Visuals/RenderableSeries/DrawingProviders/UniformHeatmapDrawingProvider.js +15 -4
- package/Charting/Visuals/RenderableSeries/FastBandRenderableSeries.js +2 -1
- package/Charting/Visuals/RenderableSeries/FastBubbleRenderableSeries.d.ts +21 -0
- package/Charting/Visuals/RenderableSeries/FastBubbleRenderableSeries.js +40 -4
- package/Charting/Visuals/RenderableSeries/FastCandlestickRenderableSeries.d.ts +2 -0
- package/Charting/Visuals/RenderableSeries/FastCandlestickRenderableSeries.js +18 -3
- package/Charting/Visuals/RenderableSeries/FastColumnRenderableSeries.d.ts +36 -2
- package/Charting/Visuals/RenderableSeries/FastColumnRenderableSeries.js +77 -8
- package/Charting/Visuals/RenderableSeries/FastErrorBarsRenderableSeries.js +2 -1
- package/Charting/Visuals/RenderableSeries/FastImpulseRenderableSeries.d.ts +7 -0
- package/Charting/Visuals/RenderableSeries/FastImpulseRenderableSeries.js +16 -4
- package/Charting/Visuals/RenderableSeries/FastLineRenderableSeries.js +2 -1
- package/Charting/Visuals/RenderableSeries/FastMountainRenderableSeries.js +2 -1
- package/Charting/Visuals/RenderableSeries/FastOhlcRenderableSeries.js +2 -1
- package/Charting/Visuals/RenderableSeries/FastTextRenderableSeries.d.ts +17 -0
- package/Charting/Visuals/RenderableSeries/FastTextRenderableSeries.js +45 -0
- package/Charting/Visuals/RenderableSeries/HeatmapColorMap.js +3 -2
- package/Charting/Visuals/RenderableSeries/HitTest/BandSeriesHitTestProvider.js +35 -5
- package/Charting/Visuals/RenderableSeries/HitTest/BaseHitTestProvider.js +17 -1
- package/Charting/Visuals/RenderableSeries/HitTest/HitTestInfo.d.ts +8 -0
- package/Charting/Visuals/RenderableSeries/HitTest/MountainSeriesHitTestProvider.js +7 -1
- package/Charting/Visuals/RenderableSeries/HitTest/NonUniformHeatmapHitTestProvider.d.ts +20 -0
- package/Charting/Visuals/RenderableSeries/HitTest/NonUniformHeatmapHitTestProvider.js +86 -0
- package/Charting/Visuals/RenderableSeries/HitTest/TextSeriesHitTestProvider.d.ts +6 -0
- package/Charting/Visuals/RenderableSeries/HitTest/TextSeriesHitTestProvider.js +56 -0
- package/Charting/Visuals/RenderableSeries/HitTest/UniformHeatmapHitTestProvider.js +1 -1
- package/Charting/Visuals/RenderableSeries/HitTest/hitTestHelpers.d.ts +7 -1
- package/Charting/Visuals/RenderableSeries/HitTest/hitTestHelpers.js +34 -2
- package/Charting/Visuals/RenderableSeries/IBaseRenderableSeriesOptions.d.ts +6 -1
- package/Charting/Visuals/RenderableSeries/IRenderableSeries.d.ts +12 -0
- package/Charting/Visuals/RenderableSeries/NonUniformHeatmapRenderableSeries.d.ts +74 -0
- package/Charting/Visuals/RenderableSeries/NonUniformHeatmapRenderableSeries.js +99 -0
- package/Charting/Visuals/RenderableSeries/RolloverModifier/RolloverModifierRenderableSeriesProps.d.ts +7 -2
- package/Charting/Visuals/RenderableSeries/ShaderEffect.js +2 -2
- package/Charting/Visuals/RenderableSeries/SplineBandRenderableSeries.js +2 -1
- package/Charting/Visuals/RenderableSeries/SplineLineRenderableSeries.d.ts +2 -3
- package/Charting/Visuals/RenderableSeries/SplineLineRenderableSeries.js +2 -1
- package/Charting/Visuals/RenderableSeries/SplineMountainRenderableSeries.js +2 -1
- package/Charting/Visuals/RenderableSeries/StackedColumnCollection.js +2 -1
- package/Charting/Visuals/RenderableSeries/StackedColumnRenderableSeries.d.ts +3 -0
- package/Charting/Visuals/RenderableSeries/StackedColumnRenderableSeries.js +13 -2
- package/Charting/Visuals/RenderableSeries/StackedMountainCollection.js +4 -1
- package/Charting/Visuals/RenderableSeries/StackedMountainRenderableSeries.d.ts +7 -0
- package/Charting/Visuals/RenderableSeries/StackedMountainRenderableSeries.js +33 -9
- package/Charting/Visuals/RenderableSeries/UniformContoursRenderableSeries.d.ts +5 -0
- package/Charting/Visuals/RenderableSeries/UniformContoursRenderableSeries.js +7 -1
- package/Charting/Visuals/RenderableSeries/UniformHeatmapRenderableSeries.d.ts +2 -75
- package/Charting/Visuals/RenderableSeries/UniformHeatmapRenderableSeries.js +8 -130
- package/Charting/Visuals/RenderableSeries/XyScatterRenderableSeries.d.ts +5 -0
- package/Charting/Visuals/RenderableSeries/XyScatterRenderableSeries.js +7 -1
- package/Charting/Visuals/RenderableSeries/constants.d.ts +5 -1
- package/Charting/Visuals/RenderableSeries/constants.js +4 -0
- package/Charting/Visuals/RubberBandSvgRect/RubberBandSvgRect.js +3 -3
- package/Charting/Visuals/SciChartDefaults.d.ts +4 -0
- package/Charting/Visuals/SciChartDefaults.js +4 -0
- package/Charting/Visuals/SciChartOverview.js +5 -3
- package/Charting/Visuals/SciChartPieSurface/PieSegment/IPieSegment.d.ts +4 -0
- package/Charting/Visuals/SciChartPieSurface/PieSegment/PieSegment.d.ts +13 -0
- package/Charting/Visuals/SciChartPieSurface/PieSegment/PieSegment.js +22 -4
- package/Charting/Visuals/SciChartPieSurface/PieSegment/constants.d.ts +2 -1
- package/Charting/Visuals/SciChartPieSurface/PieSegment/constants.js +1 -0
- package/Charting/Visuals/SciChartPieSurface/SciChartPieSurface.d.ts +5 -0
- package/Charting/Visuals/SciChartPieSurface/SciChartPieSurface.js +17 -19
- package/Charting/Visuals/SciChartSurface.d.ts +238 -7
- package/Charting/Visuals/SciChartSurface.js +800 -28
- package/Charting/Visuals/SciChartSurfaceBase.d.ts +16 -1
- package/Charting/Visuals/SciChartSurfaceBase.js +34 -2
- package/Charting/Visuals/TextureManager/CanvasTexture.js +1 -1
- package/Charting/Visuals/TextureManager/DpiHelper.js +3 -7
- package/Charting/Visuals/TextureManager/TextureManager.d.ts +11 -0
- package/Charting/Visuals/TextureManager/TextureManager.js +37 -1
- package/Charting/Visuals/createMaster.js +7 -10
- package/Charting/Visuals/createSingle.js +2 -0
- package/Charting/Visuals/licenseManager2D.js +9 -9
- package/Charting/Visuals/sciChartInitCommon.js +16 -12
- package/Charting3D/CameraController.d.ts +5 -0
- package/Charting3D/CameraController.js +6 -0
- package/Charting3D/ChartModifiers/ResetCamera3DModifier.js +2 -1
- package/Charting3D/Visuals/Axis/AxisBase3D.js +7 -5
- package/Charting3D/Visuals/Axis/NumericAxis3D.js +2 -1
- package/Charting3D/Visuals/Primitives/ScatterPointsSceneEntity.d.ts +4 -0
- package/Charting3D/Visuals/Primitives/ScatterPointsSceneEntity.js +7 -0
- package/Charting3D/Visuals/Primitives/SurfaceMeshSceneEntity.js +6 -4
- package/Charting3D/Visuals/RenderableSeries/BaseRenderableSeries3D.d.ts +7 -2
- package/Charting3D/Visuals/RenderableSeries/BaseRenderableSeries3D.js +3 -2
- package/Charting3D/Visuals/RenderableSeries/SurfaceMesh/SurfaceMeshRenderableSeries3D.d.ts +0 -5
- package/Charting3D/Visuals/RenderableSeries/SurfaceMesh/SurfaceMeshRenderableSeries3D.js +12 -11
- package/Charting3D/Visuals/SciChart3DSurface.d.ts +2 -2
- package/Charting3D/Visuals/SciChart3DSurface.js +18 -11
- package/Charting3D/Visuals/createMaster3d.js +10 -18
- package/Charting3D/Visuals/createSingle3d.js +12 -10
- package/Core/Animations/GenericAnimation.d.ts +2 -0
- package/Core/Animations/GenericAnimation.js +3 -0
- package/Core/Animations/NumberRangeAnimator.js +7 -2
- package/Core/BuildStamp.d.ts +1 -1
- package/Core/BuildStamp.js +2 -2
- package/Core/Mouse/MouseManager.d.ts +20 -0
- package/Core/Mouse/MouseManager.js +201 -30
- package/Core/Telemetry.js +1 -1
- package/README.md +91 -403
- package/_wasm/scichart.browser.js +1 -1
- package/_wasm/scichart2d.data +0 -0
- package/_wasm/scichart2d.js +280 -267
- package/_wasm/scichart2d.wasm +0 -0
- package/_wasm/scichart3d.data +0 -0
- package/_wasm/scichart3d.js +280 -268
- package/_wasm/scichart3d.wasm +0 -0
- package/constants/performanceWarnings.d.ts +2 -0
- package/constants/performanceWarnings.js +3 -1
- package/package.json +2 -2
- package/types/AutoColorMode.d.ts +9 -0
- package/types/AutoColorMode.js +13 -0
- package/types/BaseType.d.ts +3 -1
- package/types/BaseType.js +2 -0
- package/types/DataLabelProviderType.d.ts +15 -0
- package/types/DataLabelProviderType.js +19 -0
- package/types/DataLabelSkipMode.d.ts +21 -0
- package/types/DataLabelSkipMode.js +25 -0
- package/types/DefaultRenderLayer.d.ts +10 -0
- package/types/DefaultRenderLayer.js +14 -0
- package/types/MousePosition.d.ts +1 -1
- package/types/MousePosition.js +1 -1
- package/types/SeriesType.d.ts +7 -1
- package/types/SeriesType.js +6 -0
- package/types/SvgClippingMode.d.ts +17 -0
- package/types/SvgClippingMode.js +21 -0
- package/types/TDataLabelStyle.d.ts +16 -0
- package/types/TDataLabelStyle.js +2 -0
- package/types/TSciChart.d.ts +214 -118
- package/types/TSciChart3D.d.ts +104 -70
- package/types/TextPosition.d.ts +17 -0
- package/types/TextPosition.js +39 -0
- package/types/ThemeProviderType.d.ts +3 -1
- package/types/ThemeProviderType.js +2 -0
- package/utils/ccall/appendDoubleVectorFromJsArray.d.ts +10 -1
- package/utils/ccall/appendDoubleVectorFromJsArray.js +24 -1
- package/utils/memoize.d.ts +1 -0
- package/utils/memoize.js +26 -0
- package/utils/number.d.ts +1 -0
- package/utils/number.js +5 -1
- package/utils/parseColor.d.ts +2 -0
- package/utils/parseColor.js +3 -3
- package/utils/text.d.ts +5 -0
- package/utils/text.js +48 -0
- package/utils/translate.d.ts +12 -2
- package/utils/translate.js +67 -11
- package/utils/zeroArray2D.d.ts +5 -0
- package/utils/zeroArray2D.js +5 -0
|
@@ -20,6 +20,7 @@ var IDataSeries_1 = require("../IDataSeries");
|
|
|
20
20
|
var XyDataSeries_1 = require("../XyDataSeries");
|
|
21
21
|
var EDataSeriesField;
|
|
22
22
|
(function (EDataSeriesField) {
|
|
23
|
+
EDataSeriesField["X"] = "x";
|
|
23
24
|
EDataSeriesField["Open"] = "open";
|
|
24
25
|
EDataSeriesField["High"] = "high";
|
|
25
26
|
EDataSeriesField["Low"] = "low";
|
|
@@ -45,28 +46,56 @@ var XyFilterBase = /** @class */ (function (_super) {
|
|
|
45
46
|
* @param options the {@link IXyFilterOptions} which can be passed to configure the Filter at construct time
|
|
46
47
|
*/
|
|
47
48
|
function XyFilterBase(originalSeries, options) {
|
|
48
|
-
var
|
|
49
|
-
var
|
|
49
|
+
var _this = this;
|
|
50
|
+
var _a, _b;
|
|
51
|
+
_this = _super.call(this, originalSeries.webAssemblyContext, options) || this;
|
|
50
52
|
/**
|
|
51
53
|
* The field that will be returned by getOriginalYValues.
|
|
52
54
|
*/
|
|
53
55
|
_this.field = EDataSeriesField.Y;
|
|
56
|
+
/**
|
|
57
|
+
* The field that will be returned by getOriginalYValues.
|
|
58
|
+
*/
|
|
59
|
+
_this.xField = EDataSeriesField.X;
|
|
54
60
|
_this.originalSeries = originalSeries;
|
|
55
61
|
_this.field = (_a = options === null || options === void 0 ? void 0 : options.field) !== null && _a !== void 0 ? _a : _this.field;
|
|
62
|
+
_this.xField = (_b = options === null || options === void 0 ? void 0 : options.xField) !== null && _b !== void 0 ? _b : _this.xField;
|
|
56
63
|
_this.onBaseDataChanged = _this.onBaseDataChanged.bind(_this);
|
|
57
64
|
originalSeries.dataChanged.subscribe(_this.onBaseDataChanged);
|
|
58
65
|
switch (_this.originalSeries.type) {
|
|
66
|
+
case IDataSeries_1.EDataSeriesType.Xy:
|
|
67
|
+
if (_this.xField === EDataSeriesField.Y) {
|
|
68
|
+
_this.getOriginalXValues = function () { return _this.originalSeries.getNativeYValues(); };
|
|
69
|
+
}
|
|
70
|
+
if (_this.field === EDataSeriesField.X) {
|
|
71
|
+
_this.getOriginalYValues = function () { return _this.originalSeries.getNativeXValues(); };
|
|
72
|
+
}
|
|
73
|
+
break;
|
|
59
74
|
case IDataSeries_1.EDataSeriesType.Ohlc:
|
|
60
|
-
_this.
|
|
75
|
+
_this.getOriginalXValues = function () {
|
|
76
|
+
return _this.getValuesFromOHLC(_this.xField, _this.originalSeries);
|
|
77
|
+
};
|
|
78
|
+
_this.getOriginalYValues = function () {
|
|
79
|
+
return _this.getValuesFromOHLC(_this.field, _this.originalSeries);
|
|
80
|
+
};
|
|
61
81
|
break;
|
|
62
82
|
case IDataSeries_1.EDataSeriesType.Xyy:
|
|
63
|
-
_this.
|
|
83
|
+
_this.getOriginalXValues = function () {
|
|
84
|
+
return _this.getValuesFromXyy(_this.xField, _this.originalSeries);
|
|
85
|
+
};
|
|
86
|
+
_this.getOriginalYValues = function () { return _this.getValuesFromXyy(_this.field, _this.originalSeries); };
|
|
64
87
|
break;
|
|
65
88
|
case IDataSeries_1.EDataSeriesType.Xyz:
|
|
66
|
-
_this.
|
|
89
|
+
_this.getOriginalXValues = function () {
|
|
90
|
+
return _this.getValuesFromXyz(_this.xField, _this.originalSeries);
|
|
91
|
+
};
|
|
92
|
+
_this.getOriginalYValues = function () { return _this.getValuesFromXyz(_this.field, _this.originalSeries); };
|
|
67
93
|
break;
|
|
68
94
|
case IDataSeries_1.EDataSeriesType.Hlc:
|
|
69
|
-
_this.
|
|
95
|
+
_this.getOriginalXValues = function () {
|
|
96
|
+
return _this.getValuesFromHlc(_this.xField, _this.originalSeries);
|
|
97
|
+
};
|
|
98
|
+
_this.getOriginalYValues = function () { return _this.getValuesFromHlc(_this.field, _this.originalSeries); };
|
|
70
99
|
break;
|
|
71
100
|
default:
|
|
72
101
|
break;
|
|
@@ -157,24 +186,27 @@ var XyFilterBase = /** @class */ (function (_super) {
|
|
|
157
186
|
break;
|
|
158
187
|
}
|
|
159
188
|
};
|
|
160
|
-
XyFilterBase.prototype.
|
|
161
|
-
return (0, exports.switchData)(
|
|
189
|
+
XyFilterBase.prototype.getValuesFromOHLC = function (field, ohlcSeries) {
|
|
190
|
+
return (0, exports.switchData)(field, ohlcSeries.getNativeXValues(), ohlcSeries.getNativeYValues(), ohlcSeries.getNativeOpenValues(), ohlcSeries.getNativeHighValues(), ohlcSeries.getNativeLowValues());
|
|
162
191
|
};
|
|
163
|
-
XyFilterBase.prototype.
|
|
164
|
-
return (0, exports.switchData)(
|
|
192
|
+
XyFilterBase.prototype.getValuesFromXyy = function (field, xyySeries) {
|
|
193
|
+
return (0, exports.switchData)(field, xyySeries.getNativeXValues(), xyySeries.getNativeYValues(), xyySeries.getNativeY1Values());
|
|
165
194
|
};
|
|
166
|
-
XyFilterBase.prototype.
|
|
167
|
-
return (0, exports.switchData)(
|
|
195
|
+
XyFilterBase.prototype.getValuesFromXyz = function (field, xyzSeries) {
|
|
196
|
+
return (0, exports.switchData)(field, xyzSeries.getNativeXValues(), xyzSeries.getNativeYValues(), xyzSeries.getNativeZValues());
|
|
168
197
|
};
|
|
169
|
-
XyFilterBase.prototype.
|
|
170
|
-
return (0, exports.switchData)(
|
|
198
|
+
XyFilterBase.prototype.getValuesFromHlc = function (field, hlcSeries) {
|
|
199
|
+
return (0, exports.switchData)(field, hlcSeries.getNativeXValues(), hlcSeries.getNativeYValues(), undefined, hlcSeries.getNativeHighValues(), hlcSeries.getNativeLowValues());
|
|
171
200
|
};
|
|
172
201
|
return XyFilterBase;
|
|
173
202
|
}(XyDataSeries_1.XyDataSeries));
|
|
174
203
|
exports.XyFilterBase = XyFilterBase;
|
|
175
|
-
var switchData = function (field, closey, openy1z, high, low) {
|
|
204
|
+
var switchData = function (field, x, closey, openy1z, high, low) {
|
|
176
205
|
var data;
|
|
177
206
|
switch (field) {
|
|
207
|
+
case EDataSeriesField.X:
|
|
208
|
+
data = x;
|
|
209
|
+
break;
|
|
178
210
|
case EDataSeriesField.Close:
|
|
179
211
|
case EDataSeriesField.Y:
|
|
180
212
|
data = closey;
|
|
@@ -35,8 +35,9 @@ var XyFilterBase_1 = require("./XyFilterBase");
|
|
|
35
35
|
var XyMovingAverageFilter = /** @class */ (function (_super) {
|
|
36
36
|
__extends(XyMovingAverageFilter, _super);
|
|
37
37
|
function XyMovingAverageFilter(originalSeries, options) {
|
|
38
|
+
var _this = this;
|
|
38
39
|
var _a;
|
|
39
|
-
|
|
40
|
+
_this = _super.call(this, originalSeries, options) || this;
|
|
40
41
|
_this.lengthProperty = 30;
|
|
41
42
|
// Buffer to store the data for the latest average
|
|
42
43
|
_this.buffer = [];
|
|
@@ -37,8 +37,9 @@ var XyFilterBase_1 = require("./XyFilterBase");
|
|
|
37
37
|
var XyRatioFilter = /** @class */ (function (_super) {
|
|
38
38
|
__extends(XyRatioFilter, _super);
|
|
39
39
|
function XyRatioFilter(originalSeries, options) {
|
|
40
|
+
var _this = this;
|
|
40
41
|
var _a;
|
|
41
|
-
|
|
42
|
+
_this = _super.call(this, originalSeries, options) || this;
|
|
42
43
|
_this.divisorField = XyFilterBase_1.EDataSeriesField.Y;
|
|
43
44
|
Guard_1.Guard.notNull(options.divisorSeries, "divisorSeries");
|
|
44
45
|
_this.divisorSeries = options.divisorSeries;
|
|
@@ -36,8 +36,9 @@ var XyCustomFilter_1 = require("./XyCustomFilter");
|
|
|
36
36
|
var XyScaleOffsetFilter = /** @class */ (function (_super) {
|
|
37
37
|
__extends(XyScaleOffsetFilter, _super);
|
|
38
38
|
function XyScaleOffsetFilter(originalSeries, options) {
|
|
39
|
+
var _this = this;
|
|
39
40
|
var _a, _b;
|
|
40
|
-
|
|
41
|
+
_this = _super.call(this, originalSeries, options) || this;
|
|
41
42
|
_this.scaleProperty = 1;
|
|
42
43
|
_this.offsetProperty = 0;
|
|
43
44
|
_this.scaleProperty = (_a = options === null || options === void 0 ? void 0 : options.scale) !== null && _a !== void 0 ? _a : _this.scaleProperty;
|
|
@@ -20,8 +20,9 @@ var XyyFilterBase_1 = require("./XyyFilterBase");
|
|
|
20
20
|
var XyyCustomFilter = /** @class */ (function (_super) {
|
|
21
21
|
__extends(XyyCustomFilter, _super);
|
|
22
22
|
function XyyCustomFilter(originalSeries, options) {
|
|
23
|
+
var _this = this;
|
|
23
24
|
var _a, _b;
|
|
24
|
-
|
|
25
|
+
_this = _super.call(this, originalSeries, options) || this;
|
|
25
26
|
_this.filterFunctionProperty = (_a = options === null || options === void 0 ? void 0 : options.filterFunction) !== null && _a !== void 0 ? _a : _this.filterFunctionProperty;
|
|
26
27
|
_this.y1filterFunctionProperty = (_b = options === null || options === void 0 ? void 0 : options.y1filterFunction) !== null && _b !== void 0 ? _b : _this.filterFunctionProperty;
|
|
27
28
|
if (_this.getOriginalCount() > 0 && ((options === null || options === void 0 ? void 0 : options.filterFunction) || (options === null || options === void 0 ? void 0 : options.y1filterFunction))) {
|
|
@@ -62,23 +63,23 @@ var XyyCustomFilter = /** @class */ (function (_super) {
|
|
|
62
63
|
return y1;
|
|
63
64
|
};
|
|
64
65
|
XyyCustomFilter.prototype.filterOnAppend = function (count) {
|
|
65
|
-
var _a = this.filter(this.count(), count), xValues = _a.xValues, yValues = _a.yValues, y1Values = _a.y1Values;
|
|
66
|
-
this.appendRange(xValues, yValues, y1Values);
|
|
66
|
+
var _a = this.filter(this.count(), count), xValues = _a.xValues, yValues = _a.yValues, y1Values = _a.y1Values, metadata = _a.metadata;
|
|
67
|
+
this.appendRange(xValues, yValues, y1Values, metadata);
|
|
67
68
|
};
|
|
68
69
|
XyyCustomFilter.prototype.filterOnUpdate = function (index) {
|
|
69
|
-
this.update(index, this.filterFunction(index, this.getOriginalYValues().get(index)), this.y1filterFunction(index, this.getOriginalY1Values().get(index)));
|
|
70
|
+
this.update(index, this.filterFunction(index, this.getOriginalYValues().get(index)), this.y1filterFunction(index, this.getOriginalY1Values().get(index)), this.originalSeries.getMetadataAt(index));
|
|
70
71
|
};
|
|
71
72
|
XyyCustomFilter.prototype.filterOnInsert = function (startIndex, count) {
|
|
72
|
-
var _a = this.filter(startIndex, count), xValues = _a.xValues, yValues = _a.yValues, y1Values = _a.y1Values;
|
|
73
|
-
this.insertRange(startIndex, xValues, yValues, y1Values);
|
|
73
|
+
var _a = this.filter(startIndex, count), xValues = _a.xValues, yValues = _a.yValues, y1Values = _a.y1Values, metadata = _a.metadata;
|
|
74
|
+
this.insertRange(startIndex, xValues, yValues, y1Values, metadata);
|
|
74
75
|
};
|
|
75
76
|
XyyCustomFilter.prototype.filterOnRemove = function (startIndex, count) {
|
|
76
77
|
this.removeRange(startIndex, count);
|
|
77
78
|
};
|
|
78
79
|
XyyCustomFilter.prototype.filterAll = function () {
|
|
79
80
|
this.clear();
|
|
80
|
-
var _a = this.filter(0, this.getOriginalCount()), xValues = _a.xValues, yValues = _a.yValues, y1Values = _a.y1Values;
|
|
81
|
-
this.appendRange(xValues, yValues, y1Values);
|
|
81
|
+
var _a = this.filter(0, this.getOriginalCount()), xValues = _a.xValues, yValues = _a.yValues, y1Values = _a.y1Values, metadata = _a.metadata;
|
|
82
|
+
this.appendRange(xValues, yValues, y1Values, metadata);
|
|
82
83
|
};
|
|
83
84
|
XyyCustomFilter.prototype.filter = function (startIndex, count) {
|
|
84
85
|
var rawX = this.getOriginalXValues();
|
|
@@ -87,12 +88,14 @@ var XyyCustomFilter = /** @class */ (function (_super) {
|
|
|
87
88
|
var xValues = [];
|
|
88
89
|
var yValues = [];
|
|
89
90
|
var y1Values = [];
|
|
91
|
+
var metadata = [];
|
|
90
92
|
for (var i = startIndex; i < startIndex + count; i++) {
|
|
91
93
|
xValues.push(rawX.get(i));
|
|
92
94
|
yValues.push(this.filterFunction(i, rawY.get(i)));
|
|
93
95
|
y1Values.push(this.y1filterFunction(i, rawY1.get(i)));
|
|
96
|
+
metadata.push(this.originalSeries.getMetadataAt(i));
|
|
94
97
|
}
|
|
95
|
-
return { xValues: xValues, yValues: yValues, y1Values: y1Values };
|
|
98
|
+
return { xValues: xValues, yValues: yValues, y1Values: y1Values, metadata: metadata };
|
|
96
99
|
};
|
|
97
100
|
return XyyCustomFilter;
|
|
98
101
|
}(XyyFilterBase_1.XyyFilterBase));
|
|
@@ -22,8 +22,9 @@ var XyFilterBase_1 = require("./XyFilterBase");
|
|
|
22
22
|
var XyyFilterBase = /** @class */ (function (_super) {
|
|
23
23
|
__extends(XyyFilterBase, _super);
|
|
24
24
|
function XyyFilterBase(originalSeries, options) {
|
|
25
|
+
var _this = this;
|
|
25
26
|
var _a, _b;
|
|
26
|
-
|
|
27
|
+
_this = _super.call(this, originalSeries.webAssemblyContext, options) || this;
|
|
27
28
|
_this.yfield = XyFilterBase_1.EDataSeriesField.Y;
|
|
28
29
|
_this.y1field = XyFilterBase_1.EDataSeriesField.Y1;
|
|
29
30
|
_this.originalSeries = originalSeries;
|
|
@@ -32,8 +32,9 @@ var XyyCustomFilter_1 = require("./XyyCustomFilter");
|
|
|
32
32
|
var XyyScaleOffsetFilter = /** @class */ (function (_super) {
|
|
33
33
|
__extends(XyyScaleOffsetFilter, _super);
|
|
34
34
|
function XyyScaleOffsetFilter(originalSeries, options) {
|
|
35
|
+
var _this = this;
|
|
35
36
|
var _a, _b;
|
|
36
|
-
|
|
37
|
+
_this = _super.call(this, originalSeries, options) || this;
|
|
37
38
|
_this.scaleProperty = 1;
|
|
38
39
|
_this.offsetProperty = 0;
|
|
39
40
|
_this.scaleProperty = (_a = options === null || options === void 0 ? void 0 : options.scale) !== null && _a !== void 0 ? _a : _this.scaleProperty;
|
|
@@ -20,8 +20,9 @@ var XyzFilterBase_1 = require("./XyzFilterBase");
|
|
|
20
20
|
var XyzCustomFilter = /** @class */ (function (_super) {
|
|
21
21
|
__extends(XyzCustomFilter, _super);
|
|
22
22
|
function XyzCustomFilter(originalSeries, options) {
|
|
23
|
+
var _this = this;
|
|
23
24
|
var _a, _b;
|
|
24
|
-
|
|
25
|
+
_this = _super.call(this, originalSeries, options) || this;
|
|
25
26
|
_this.filterFunctionProperty = (_a = options === null || options === void 0 ? void 0 : options.filterFunction) !== null && _a !== void 0 ? _a : _this.filterFunctionProperty;
|
|
26
27
|
_this.zfilterFunctionProperty = (_b = options === null || options === void 0 ? void 0 : options.zfilterFunction) !== null && _b !== void 0 ? _b : _this.filterFunctionProperty;
|
|
27
28
|
if (_this.getOriginalCount() > 0 && ((options === null || options === void 0 ? void 0 : options.filterFunction) || (options === null || options === void 0 ? void 0 : options.zfilterFunction))) {
|
|
@@ -58,23 +59,23 @@ var XyzCustomFilter = /** @class */ (function (_super) {
|
|
|
58
59
|
return y;
|
|
59
60
|
};
|
|
60
61
|
XyzCustomFilter.prototype.filterOnAppend = function (count) {
|
|
61
|
-
var _a = this.filter(this.count(), count), xValues = _a.xValues, yValues = _a.yValues, zValues = _a.zValues;
|
|
62
|
-
this.appendRange(xValues, yValues, zValues);
|
|
62
|
+
var _a = this.filter(this.count(), count), xValues = _a.xValues, yValues = _a.yValues, zValues = _a.zValues, metadata = _a.metadata;
|
|
63
|
+
this.appendRange(xValues, yValues, zValues, metadata);
|
|
63
64
|
};
|
|
64
65
|
XyzCustomFilter.prototype.filterOnUpdate = function (index) {
|
|
65
|
-
this.update(index, this.filterFunction(index, this.getOriginalYValues().get(index)), this.zfilterFunction(index, this.getOriginalZValues().get(index)));
|
|
66
|
+
this.update(index, this.filterFunction(index, this.getOriginalYValues().get(index)), this.zfilterFunction(index, this.getOriginalZValues().get(index)), this.originalSeries.getMetadataAt(index));
|
|
66
67
|
};
|
|
67
68
|
XyzCustomFilter.prototype.filterOnInsert = function (startIndex, count) {
|
|
68
|
-
var _a = this.filter(startIndex, count), xValues = _a.xValues, yValues = _a.yValues, zValues = _a.zValues;
|
|
69
|
-
this.insertRange(startIndex, xValues, yValues, zValues);
|
|
69
|
+
var _a = this.filter(startIndex, count), xValues = _a.xValues, yValues = _a.yValues, zValues = _a.zValues, metadata = _a.metadata;
|
|
70
|
+
this.insertRange(startIndex, xValues, yValues, zValues, metadata);
|
|
70
71
|
};
|
|
71
72
|
XyzCustomFilter.prototype.filterOnRemove = function (startIndex, count) {
|
|
72
73
|
this.removeRange(startIndex, count);
|
|
73
74
|
};
|
|
74
75
|
XyzCustomFilter.prototype.filterAll = function () {
|
|
75
76
|
this.clear();
|
|
76
|
-
var _a = this.filter(0, this.getOriginalCount()), xValues = _a.xValues, yValues = _a.yValues, zValues = _a.zValues;
|
|
77
|
-
this.appendRange(xValues, yValues, zValues);
|
|
77
|
+
var _a = this.filter(0, this.getOriginalCount()), xValues = _a.xValues, yValues = _a.yValues, zValues = _a.zValues, metadata = _a.metadata;
|
|
78
|
+
this.appendRange(xValues, yValues, zValues, metadata);
|
|
78
79
|
};
|
|
79
80
|
XyzCustomFilter.prototype.filter = function (startIndex, count) {
|
|
80
81
|
var rawX = this.getOriginalXValues();
|
|
@@ -83,12 +84,14 @@ var XyzCustomFilter = /** @class */ (function (_super) {
|
|
|
83
84
|
var xValues = [];
|
|
84
85
|
var yValues = [];
|
|
85
86
|
var zValues = [];
|
|
87
|
+
var metadata = [];
|
|
86
88
|
for (var i = startIndex; i < startIndex + count; i++) {
|
|
87
89
|
xValues.push(rawX.get(i));
|
|
88
90
|
yValues.push(this.filterFunction(i, rawY.get(i)));
|
|
89
91
|
zValues.push(this.zfilterFunction(i, rawZ.get(i)));
|
|
92
|
+
metadata.push(this.originalSeries.getMetadataAt(i));
|
|
90
93
|
}
|
|
91
|
-
return { xValues: xValues, yValues: yValues, zValues: zValues };
|
|
94
|
+
return { xValues: xValues, yValues: yValues, zValues: zValues, metadata: metadata };
|
|
92
95
|
};
|
|
93
96
|
return XyzCustomFilter;
|
|
94
97
|
}(XyzFilterBase_1.XyzFilterBase));
|
|
@@ -22,8 +22,9 @@ var XyFilterBase_1 = require("./XyFilterBase");
|
|
|
22
22
|
var XyzFilterBase = /** @class */ (function (_super) {
|
|
23
23
|
__extends(XyzFilterBase, _super);
|
|
24
24
|
function XyzFilterBase(originalSeries, options) {
|
|
25
|
+
var _this = this;
|
|
25
26
|
var _a, _b;
|
|
26
|
-
|
|
27
|
+
_this = _super.call(this, originalSeries.webAssemblyContext, options) || this;
|
|
27
28
|
_this.yfield = XyFilterBase_1.EDataSeriesField.Y;
|
|
28
29
|
_this.zfield = XyFilterBase_1.EDataSeriesField.Z;
|
|
29
30
|
_this.originalSeries = originalSeries;
|
|
@@ -32,8 +32,9 @@ var XyzCustomFilter_1 = require("./XyzCustomFilter");
|
|
|
32
32
|
var XyzScaleOffsetFilter = /** @class */ (function (_super) {
|
|
33
33
|
__extends(XyzScaleOffsetFilter, _super);
|
|
34
34
|
function XyzScaleOffsetFilter(originalSeries, options) {
|
|
35
|
+
var _this = this;
|
|
35
36
|
var _a, _b;
|
|
36
|
-
|
|
37
|
+
_this = _super.call(this, originalSeries, options) || this;
|
|
37
38
|
_this.scaleProperty = 1;
|
|
38
39
|
_this.offsetProperty = 0;
|
|
39
40
|
_this.scaleProperty = (_a = options === null || options === void 0 ? void 0 : options.scale) !== null && _a !== void 0 ? _a : _this.scaleProperty;
|
|
@@ -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
|
+
}
|