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,7 +20,7 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
|
20
20
|
return to.concat(ar || Array.prototype.slice.call(from));
|
|
21
21
|
};
|
|
22
22
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
23
|
-
exports.getWindowedYRange = exports.BaseDataSeries = void 0;
|
|
23
|
+
exports.getWindowedYRange = exports.getIndicesRange = exports.BaseDataSeries = void 0;
|
|
24
24
|
var classFactory_1 = require("../../Builder/classFactory");
|
|
25
25
|
var Deleter_1 = require("../../Core/Deleter");
|
|
26
26
|
var EventHandler_1 = require("../../Core/EventHandler");
|
|
@@ -51,7 +51,7 @@ var BaseDataSeries = /** @class */ (function () {
|
|
|
51
51
|
* @param options the {@link IBaseDataSeriesOptions} which can be passed to config the DataSeries at construct time
|
|
52
52
|
*/
|
|
53
53
|
function BaseDataSeries(webAssemblyContext, options) {
|
|
54
|
-
var _a, _b, _c, _d, _e;
|
|
54
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
55
55
|
/** @inheritDoc */
|
|
56
56
|
this.dataChanged = new EventHandler_1.EventHandler();
|
|
57
57
|
/** @inheritDoc */
|
|
@@ -72,13 +72,13 @@ var BaseDataSeries = /** @class */ (function () {
|
|
|
72
72
|
this.xFinalAnimationValues = new webAssemblyContext.SCRTDoubleVector();
|
|
73
73
|
this.yFinalAnimationValues = new webAssemblyContext.SCRTDoubleVector();
|
|
74
74
|
this.dataSeriesNameProperty = (_b = options === null || options === void 0 ? void 0 : options.dataSeriesName) !== null && _b !== void 0 ? _b : this.dataSeriesNameProperty;
|
|
75
|
-
this.isSorted = (options === null || options === void 0 ? void 0 : options.dataIsSortedInX) !==
|
|
76
|
-
this.containsNaN = (
|
|
77
|
-
this.isEvenlySpaced = (
|
|
75
|
+
this.isSorted = (_d = (_c = options === null || options === void 0 ? void 0 : options.dataIsSortedInX) !== null && _c !== void 0 ? _c : options === null || options === void 0 ? void 0 : options.isSorted) !== null && _d !== void 0 ? _d : this.isSortedProperty;
|
|
76
|
+
this.containsNaN = (_e = options === null || options === void 0 ? void 0 : options.containsNaN) !== null && _e !== void 0 ? _e : this.containsNaNProperty;
|
|
77
|
+
this.isEvenlySpaced = (_f = options === null || options === void 0 ? void 0 : options.dataEvenlySpacedInX) !== null && _f !== void 0 ? _f : this.isEvenlySpacedProperty;
|
|
78
78
|
if (options === null || options === void 0 ? void 0 : options.metadata) {
|
|
79
79
|
if ("type" in options.metadata) {
|
|
80
80
|
this.metadataGeneratorProperty = (0, classFactory_1.createType)(BaseType_1.EBaseType.MetadataGenerator, options.metadata.type, webAssemblyContext, options.metadata.data);
|
|
81
|
-
options.metadata = (
|
|
81
|
+
options.metadata = (_g = this.metadataGeneratorProperty) === null || _g === void 0 ? void 0 : _g.getMetadata();
|
|
82
82
|
}
|
|
83
83
|
else if (!Array.isArray(options === null || options === void 0 ? void 0 : options.metadata)) {
|
|
84
84
|
this.metadataGeneratorProperty = new IPointMetadata_1.TemplateMetadataGenerator(options === null || options === void 0 ? void 0 : options.metadata);
|
|
@@ -260,7 +260,7 @@ var BaseDataSeries = /** @class */ (function () {
|
|
|
260
260
|
if (upSearchMode === void 0) { upSearchMode = SearchMode_1.ESearchMode.RoundUp; }
|
|
261
261
|
// TODO SearchMode downSearchMode = SearchMode.RoundDown, SearchMode upSearchMode = SearchMode.RoundUp
|
|
262
262
|
var vector = isCategoryData ? this.getNativeIndexes() : this.xValues;
|
|
263
|
-
return getIndicesRange(this.webAssemblyContext, vector, xRange, this.dataDistributionCalculator.isSortedAscending);
|
|
263
|
+
return (0, exports.getIndicesRange)(this.webAssemblyContext, vector, xRange, this.dataDistributionCalculator.isSortedAscending);
|
|
264
264
|
};
|
|
265
265
|
Object.defineProperty(BaseDataSeries.prototype, "hasValues", {
|
|
266
266
|
/** @inheritDoc */
|
|
@@ -519,6 +519,7 @@ var getIndicesRange = function (webAssemblyContext, xValues, xRange, isSorted) {
|
|
|
519
519
|
}
|
|
520
520
|
return result;
|
|
521
521
|
};
|
|
522
|
+
exports.getIndicesRange = getIndicesRange;
|
|
522
523
|
var getWindowedYRange = function (webAssemblyContext, xValues, yValues, xRange, getPositiveRange, isXCategoryAxis, // false
|
|
523
524
|
isSorted) {
|
|
524
525
|
// TODO: getPositiveRange
|
|
@@ -529,7 +530,7 @@ isSorted) {
|
|
|
529
530
|
var max = yValues.get(0) + 1;
|
|
530
531
|
return new NumberRange_1.NumberRange(min, max);
|
|
531
532
|
}
|
|
532
|
-
var indicesRange = isXCategoryAxis ? xRange : getIndicesRange(webAssemblyContext, xValues, xRange, isSorted);
|
|
533
|
+
var indicesRange = isXCategoryAxis ? xRange : (0, exports.getIndicesRange)(webAssemblyContext, xValues, xRange, isSorted);
|
|
533
534
|
var iMin = Math.max(Math.floor(indicesRange.min), 0);
|
|
534
535
|
var iMax = Math.min(Math.ceil(indicesRange.max), count - 1);
|
|
535
536
|
if (iMax < iMin) {
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { TSeriesDataDefinition } from "../../Builder/buildDataSeries";
|
|
2
1
|
import { EventHandler } from "../../Core/EventHandler";
|
|
3
2
|
import { NumberRange } from "../../Core/NumberRange";
|
|
4
3
|
import { ESearchMode } from "../../types/SearchMode";
|
|
5
|
-
import {
|
|
4
|
+
import { SCRTDoubleVector, SCRTFloatVector, TSciChart } from "../../types/TSciChart";
|
|
6
5
|
import { IColorMapParams } from "../Visuals/RenderableSeries/HeatmapColorMap";
|
|
7
6
|
import { IDataDistributionCalculator } from "./DataDistributionCalculator/IDataDistributionCalculator";
|
|
8
7
|
import { EDataChangeType, EDataSeriesType, IDataChangeArgs, IDataSeries } from "./IDataSeries";
|
|
@@ -33,6 +32,10 @@ export interface IBaseHeatmapSeriesOptions {
|
|
|
33
32
|
type: string;
|
|
34
33
|
data?: any;
|
|
35
34
|
};
|
|
35
|
+
/**
|
|
36
|
+
* The flag whether this Heatmap has NaN value, to display them as transparent tiles
|
|
37
|
+
*/
|
|
38
|
+
containsNaN?: boolean;
|
|
36
39
|
}
|
|
37
40
|
/**
|
|
38
41
|
* Defines the interface to a Heatmap DataSeries in SciChart's High Performance Real-time
|
|
@@ -83,7 +86,7 @@ export declare abstract class BaseHeatmapDataSeries implements IHeatmapSeries {
|
|
|
83
86
|
* A normalized {@link FloatVector} is a native / WebAssembly vector (array) of Float32 values with normalized
|
|
84
87
|
* values ready for drawing in SciChart's WebGL2 Rendering Engine
|
|
85
88
|
*/
|
|
86
|
-
protected normalizedVector:
|
|
89
|
+
protected normalizedVector: SCRTFloatVector;
|
|
87
90
|
private dataSeriesNameProperty;
|
|
88
91
|
private isDeleted;
|
|
89
92
|
private zValuesProperty;
|
|
@@ -243,6 +246,16 @@ export declare abstract class BaseHeatmapDataSeries implements IHeatmapSeries {
|
|
|
243
246
|
* @inheritDoc
|
|
244
247
|
*/
|
|
245
248
|
getWindowedYRange(xRange: NumberRange, getPositiveRange: boolean, isCategoryAxis: boolean): NumberRange;
|
|
249
|
+
/**
|
|
250
|
+
* Gets the X-value at the specified index.
|
|
251
|
+
* @param xIndex
|
|
252
|
+
*/
|
|
253
|
+
abstract getXValue(xIndex: number): number;
|
|
254
|
+
/**
|
|
255
|
+
* Gets the Y-value at the specified index.
|
|
256
|
+
* @param xIndex
|
|
257
|
+
*/
|
|
258
|
+
abstract getYValue(yIndex: number): number;
|
|
246
259
|
/**
|
|
247
260
|
* Notify subscribers to dataChanged that data has changed. Also sets internal flags.
|
|
248
261
|
* This will trigger a redraw on a parent SciChartSurface
|
|
@@ -253,7 +266,7 @@ export declare abstract class BaseHeatmapDataSeries implements IHeatmapSeries {
|
|
|
253
266
|
* @param colorMap the {@link IColorMapParams} provides properties used to map heatmap Z-values into colors
|
|
254
267
|
* for rendering in SciChart's {@link https://www.scichart.com/javascript-chart-features | Realtime JavaScript Charts}
|
|
255
268
|
*/
|
|
256
|
-
getNormalizedVector(colorMap: IColorMapParams, fillValuesOutOfRange?: boolean):
|
|
269
|
+
getNormalizedVector(colorMap: IColorMapParams, fillValuesOutOfRange?: boolean): SCRTFloatVector;
|
|
257
270
|
/**
|
|
258
271
|
* Recreates the normalized vector (internally used for drawing heatmap) according to zMin and zMax values
|
|
259
272
|
* @param zMin
|
|
@@ -274,7 +287,7 @@ export declare abstract class BaseHeatmapDataSeries implements IHeatmapSeries {
|
|
|
274
287
|
* Gets the metadata matrix width
|
|
275
288
|
*/
|
|
276
289
|
getMetadataWidth(): number;
|
|
277
|
-
toJSON(excludeData?: boolean):
|
|
290
|
+
toJSON(excludeData?: boolean): any;
|
|
278
291
|
/**
|
|
279
292
|
* Gets the range in the X-direction for this DataSeries
|
|
280
293
|
*/
|
|
@@ -7,6 +7,7 @@ var EventHandler_1 = require("../../Core/EventHandler");
|
|
|
7
7
|
var Guard_1 = require("../../Core/Guard");
|
|
8
8
|
var NumberRange_1 = require("../../Core/NumberRange");
|
|
9
9
|
var BaseType_1 = require("../../types/BaseType");
|
|
10
|
+
var appendDoubleVectorFromJsArray_1 = require("../../utils/ccall/appendDoubleVectorFromJsArray");
|
|
10
11
|
var guid_1 = require("../../utils/guid");
|
|
11
12
|
var isRealNumber_1 = require("../../utils/isRealNumber");
|
|
12
13
|
var IDataSeries_1 = require("./IDataSeries");
|
|
@@ -29,7 +30,7 @@ var BaseHeatmapDataSeries = /** @class */ (function () {
|
|
|
29
30
|
* @param options the {@link IBaseHeatmapSeriesOptions} which can be passed to configure the DataSeries at construct time
|
|
30
31
|
*/
|
|
31
32
|
function BaseHeatmapDataSeries(webAssemblyContext, options) {
|
|
32
|
-
var _a, _b;
|
|
33
|
+
var _a, _b, _c, _d;
|
|
33
34
|
/** @inheritDoc */
|
|
34
35
|
this.dataChanged = new EventHandler_1.EventHandler();
|
|
35
36
|
/** @inheritDoc */
|
|
@@ -54,11 +55,13 @@ var BaseHeatmapDataSeries = /** @class */ (function () {
|
|
|
54
55
|
this.changeCountProperty = 0;
|
|
55
56
|
this.webAssemblyContext = webAssemblyContext;
|
|
56
57
|
this.id = (_a = options === null || options === void 0 ? void 0 : options.id) !== null && _a !== void 0 ? _a : (0, guid_1.generateGuid)();
|
|
57
|
-
this.
|
|
58
|
+
this.dataSeriesNameProperty = (_b = options === null || options === void 0 ? void 0 : options.dataSeriesName) !== null && _b !== void 0 ? _b : this.dataSeriesNameProperty;
|
|
59
|
+
this.hasNaNsProperty = (_c = options === null || options === void 0 ? void 0 : options.containsNaN) !== null && _c !== void 0 ? _c : this.hasNaNsProperty;
|
|
60
|
+
this.normalizedVector = new this.webAssemblyContext.SCRTFloatVector();
|
|
58
61
|
if (options === null || options === void 0 ? void 0 : options.metadata) {
|
|
59
62
|
if ("type" in options.metadata) {
|
|
60
63
|
this.metadataGeneratorProperty = (0, classFactory_1.createType)(BaseType_1.EBaseType.MetadataGenerator, options.metadata.type, webAssemblyContext, options.metadata.data);
|
|
61
|
-
options.metadata = (
|
|
64
|
+
options.metadata = (_d = this.metadataGeneratorProperty) === null || _d === void 0 ? void 0 : _d.getMetadata();
|
|
62
65
|
}
|
|
63
66
|
else if (!Array.isArray(options === null || options === void 0 ? void 0 : options.metadata)) {
|
|
64
67
|
this.metadataGeneratorProperty = new IPointMetadata_1.TemplateMetadataGenerator(options === null || options === void 0 ? void 0 : options.metadata);
|
|
@@ -428,7 +431,7 @@ var BaseHeatmapDataSeries = /** @class */ (function () {
|
|
|
428
431
|
BaseHeatmapDataSeries.prototype.recreateNormalizedVector = function (zMin, zMax, fillValuesOutOfRange) {
|
|
429
432
|
var size = this.arrayWidth * this.arrayHeight;
|
|
430
433
|
this.normalizedVector.clear();
|
|
431
|
-
this.normalizedVector.
|
|
434
|
+
this.normalizedVector.resizeFast(size);
|
|
432
435
|
// We need to offset newMinValue which is being used for NaN values
|
|
433
436
|
// for the double distance of the texture, which is 256
|
|
434
437
|
var newZMin = this.hasNaNs ? zMin - (zMax - zMin) / 128 : zMin;
|
|
@@ -437,11 +440,15 @@ var BaseHeatmapDataSeries = /** @class */ (function () {
|
|
|
437
440
|
}
|
|
438
441
|
var index = 0;
|
|
439
442
|
var normalizationFactor = 1.0 / (zMax - newZMin);
|
|
443
|
+
var rowArray = new Float32Array(this.arrayWidth);
|
|
440
444
|
for (var y = 0; y < this.arrayHeight; y++) {
|
|
441
445
|
for (var x = 0; x < this.arrayWidth; x++) {
|
|
442
446
|
// normalized value from 0..1 = (zValue - zMin) / ((zMax - zMin))
|
|
443
|
-
var
|
|
444
|
-
|
|
447
|
+
var zValueRaw = this.zValuesProperty[y][x];
|
|
448
|
+
var zValue = zValueRaw - newZMin;
|
|
449
|
+
// if value !== value is a simple but fast isNaN check
|
|
450
|
+
// equivalent to isNaN(zValueRaw)
|
|
451
|
+
if (zValueRaw !== zValueRaw) {
|
|
445
452
|
zValue = 0;
|
|
446
453
|
}
|
|
447
454
|
else if (zValue < zMin - newZMin) {
|
|
@@ -451,8 +458,10 @@ var BaseHeatmapDataSeries = /** @class */ (function () {
|
|
|
451
458
|
zValue = fillValuesOutOfRange ? zMax - newZMin : 0;
|
|
452
459
|
}
|
|
453
460
|
var normalizedZValue = zValue * normalizationFactor;
|
|
454
|
-
|
|
461
|
+
rowArray[x] = normalizedZValue;
|
|
455
462
|
}
|
|
463
|
+
(0, appendDoubleVectorFromJsArray_1.memCopyFloat32)(this.webAssemblyContext, rowArray, this.normalizedVector, index);
|
|
464
|
+
index += this.arrayWidth;
|
|
456
465
|
}
|
|
457
466
|
};
|
|
458
467
|
/**
|
|
@@ -488,14 +497,13 @@ var BaseHeatmapDataSeries = /** @class */ (function () {
|
|
|
488
497
|
BaseHeatmapDataSeries.prototype.toJSON = function (excludeData) {
|
|
489
498
|
if (excludeData === void 0) { excludeData = false; }
|
|
490
499
|
var options = {
|
|
500
|
+
id: this.id,
|
|
501
|
+
containsNaN: this.hasNaNs,
|
|
491
502
|
dataSeriesName: this.dataSeriesName,
|
|
492
|
-
// @ts-ignore
|
|
493
|
-
metadata: this.metadataGeneratorProperty ? this.metadataGeneratorProperty.toJSON() : this.metadataProperty,
|
|
494
503
|
zValues: excludeData ? undefined : this.zValuesProperty,
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
yStep: null
|
|
504
|
+
metadata: this.metadataGeneratorProperty
|
|
505
|
+
? this.metadataGeneratorProperty.toJSON()
|
|
506
|
+
: this.metadataProperty
|
|
499
507
|
};
|
|
500
508
|
return options;
|
|
501
509
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Point } from "../../../Core/Point";
|
|
1
2
|
import { HitTestInfo } from "../../Visuals/RenderableSeries/HitTest/HitTestInfo";
|
|
2
3
|
import { IRenderableSeries } from "../../Visuals/RenderableSeries/IRenderableSeries";
|
|
3
4
|
import { EDataSeriesType } from "../IDataSeries";
|
|
@@ -7,10 +8,15 @@ export declare class SeriesInfo {
|
|
|
7
8
|
dataSeriesType: EDataSeriesType;
|
|
8
9
|
stroke: string;
|
|
9
10
|
seriesName: string;
|
|
11
|
+
hitTestPointValues: Point;
|
|
10
12
|
xValue: number;
|
|
13
|
+
point2xValue: number;
|
|
11
14
|
yValue: number;
|
|
15
|
+
point2yValue: number;
|
|
12
16
|
xCoordinate: number;
|
|
13
17
|
yCoordinate: number;
|
|
18
|
+
point2xCoordinate: number;
|
|
19
|
+
point2yCoordinate: number;
|
|
14
20
|
isHit: boolean;
|
|
15
21
|
dataSeriesIndex: number;
|
|
16
22
|
/**
|
|
@@ -12,10 +12,15 @@ var SeriesInfo = /** @class */ (function () {
|
|
|
12
12
|
this.dataSeriesIndex = hitTestInfo.dataSeriesIndex;
|
|
13
13
|
this.isHit = hitTestInfo.isHit;
|
|
14
14
|
this.isWithinDataBounds = hitTestInfo.isWithinDataBounds;
|
|
15
|
+
this.hitTestPointValues = hitTestInfo.hitTestPointValues;
|
|
15
16
|
this.xValue = hitTestInfo.isCategoryAxis ? hitTestInfo.xCategoryValue : hitTestInfo.xValue;
|
|
17
|
+
this.point2xValue = hitTestInfo.point2xValue;
|
|
16
18
|
this.yValue = hitTestInfo.yValue;
|
|
19
|
+
this.point2yValue = hitTestInfo.point2yValue;
|
|
17
20
|
this.xCoordinate = hitTestInfo.xCoord;
|
|
18
21
|
this.yCoordinate = hitTestInfo.yCoord;
|
|
22
|
+
this.point2xCoordinate = hitTestInfo.point2xCoord;
|
|
23
|
+
this.point2yCoordinate = hitTestInfo.point2yCoord;
|
|
19
24
|
this.pointMetadata = hitTestInfo.metadata;
|
|
20
25
|
if (renderableSeries.type === SeriesType_1.ESeriesType.ColumnSeries) {
|
|
21
26
|
this.fill = renderableSeries.fill;
|
|
@@ -5,6 +5,8 @@ export declare class XyySeriesInfo extends SeriesInfo {
|
|
|
5
5
|
y1Value: number;
|
|
6
6
|
y1Coordinate: number;
|
|
7
7
|
isFirstSeries: boolean;
|
|
8
|
+
point2y1Value: number;
|
|
9
|
+
point2y1Coordinate: number;
|
|
8
10
|
constructor(renderableSeries: IRenderableSeries, hitTestInfo: HitTestInfo);
|
|
9
11
|
get formattedY1Value(): string;
|
|
10
12
|
}
|
|
@@ -23,7 +23,9 @@ var XyySeriesInfo = /** @class */ (function (_super) {
|
|
|
23
23
|
var _this = _super.call(this, renderableSeries, hitTestInfo) || this;
|
|
24
24
|
_this.isFirstSeries = true;
|
|
25
25
|
_this.y1Value = hitTestInfo.y1Value;
|
|
26
|
+
_this.point2y1Value = hitTestInfo.point2y1Value;
|
|
26
27
|
_this.y1Coordinate = hitTestInfo.y1Coord;
|
|
28
|
+
_this.point2y1Coordinate = hitTestInfo.point2y1Coord;
|
|
27
29
|
return _this;
|
|
28
30
|
}
|
|
29
31
|
Object.defineProperty(XyySeriesInfo.prototype, "formattedY1Value", {
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.DataDistributionCalculator = void 0;
|
|
4
4
|
var performanceWarnings_1 = require("../../../constants/performanceWarnings");
|
|
5
5
|
var array_1 = require("../../../utils/array");
|
|
6
|
+
var number_1 = require("../../../utils/number");
|
|
6
7
|
var DataDistributionCalculator = /** @class */ (function () {
|
|
7
8
|
function DataDistributionCalculator() {
|
|
8
9
|
this.containsNanProperty = false;
|
|
@@ -31,7 +32,7 @@ var DataDistributionCalculator = /** @class */ (function () {
|
|
|
31
32
|
}
|
|
32
33
|
else {
|
|
33
34
|
if (this.containsNanProperty === false) {
|
|
34
|
-
this.containsNanProperty = newYValues.some(
|
|
35
|
+
this.containsNanProperty = newYValues.some(number_1.checkIsNaN);
|
|
35
36
|
if (this.containsNanProperty === false)
|
|
36
37
|
performanceWarnings_1.performanceWarnings.dataDistributionFlagNaN.warn();
|
|
37
38
|
}
|
|
@@ -57,7 +58,7 @@ var DataDistributionCalculator = /** @class */ (function () {
|
|
|
57
58
|
}
|
|
58
59
|
else {
|
|
59
60
|
if (this.containsNanProperty === false) {
|
|
60
|
-
this.containsNanProperty = newYValues.some(
|
|
61
|
+
this.containsNanProperty = newYValues.some(number_1.checkIsNaN);
|
|
61
62
|
if (this.containsNanProperty === false)
|
|
62
63
|
performanceWarnings_1.performanceWarnings.dataDistributionFlagNaN.warn();
|
|
63
64
|
}
|
|
@@ -85,7 +86,7 @@ var DataDistributionCalculator = /** @class */ (function () {
|
|
|
85
86
|
}
|
|
86
87
|
else {
|
|
87
88
|
if (this.containsNanProperty === false) {
|
|
88
|
-
this.containsNanProperty = newYValues.some(
|
|
89
|
+
this.containsNanProperty = newYValues.some(number_1.checkIsNaN);
|
|
89
90
|
}
|
|
90
91
|
}
|
|
91
92
|
if (isSorted !== undefined) {
|
|
@@ -21,8 +21,9 @@ var HlcFilterBase_1 = require("./HlcFilterBase");
|
|
|
21
21
|
var HlcCustomFilter = /** @class */ (function (_super) {
|
|
22
22
|
__extends(HlcCustomFilter, _super);
|
|
23
23
|
function HlcCustomFilter(originalSeries, options) {
|
|
24
|
+
var _this = this;
|
|
24
25
|
var _a, _b, _c;
|
|
25
|
-
|
|
26
|
+
_this = _super.call(this, originalSeries, options) || this;
|
|
26
27
|
if (originalSeries.type !== IDataSeries_1.EDataSeriesType.Hlc) {
|
|
27
28
|
throw new Error("HlcCustomFilter only supports Hlc original series");
|
|
28
29
|
}
|
|
@@ -78,24 +79,24 @@ var HlcCustomFilter = /** @class */ (function (_super) {
|
|
|
78
79
|
return y;
|
|
79
80
|
};
|
|
80
81
|
HlcCustomFilter.prototype.filterOnAppend = function (count) {
|
|
81
|
-
var _a = this.filter(this.count(), count), xValues = _a.xValues, highValues = _a.highValues, lowValues = _a.lowValues, closeValues = _a.closeValues;
|
|
82
|
-
this.appendRange(xValues, closeValues, highValues, lowValues);
|
|
82
|
+
var _a = this.filter(this.count(), count), xValues = _a.xValues, highValues = _a.highValues, lowValues = _a.lowValues, closeValues = _a.closeValues, metadata = _a.metadata;
|
|
83
|
+
this.appendRange(xValues, closeValues, highValues, lowValues, metadata);
|
|
83
84
|
};
|
|
84
85
|
HlcCustomFilter.prototype.filterOnUpdate = function (index) {
|
|
85
86
|
var hlcSeries = this.originalSeries;
|
|
86
|
-
this.update(index, this.highfilterFunction(index, hlcSeries.getNativeHighValues().get(index)), this.lowfilterFunction(index, hlcSeries.getNativeLowValues().get(index)), this.closefilterFunction(index, hlcSeries.getNativeYValues().get(index)));
|
|
87
|
+
this.update(index, this.highfilterFunction(index, hlcSeries.getNativeHighValues().get(index)), this.lowfilterFunction(index, hlcSeries.getNativeLowValues().get(index)), this.closefilterFunction(index, hlcSeries.getNativeYValues().get(index)), this.originalSeries.getMetadataAt(index));
|
|
87
88
|
};
|
|
88
89
|
HlcCustomFilter.prototype.filterOnInsert = function (startIndex, count) {
|
|
89
|
-
var _a = this.filter(startIndex, count), xValues = _a.xValues, highValues = _a.highValues, lowValues = _a.lowValues, closeValues = _a.closeValues;
|
|
90
|
-
this.insertRange(startIndex, xValues, closeValues, highValues, lowValues);
|
|
90
|
+
var _a = this.filter(startIndex, count), xValues = _a.xValues, highValues = _a.highValues, lowValues = _a.lowValues, closeValues = _a.closeValues, metadata = _a.metadata;
|
|
91
|
+
this.insertRange(startIndex, xValues, closeValues, highValues, lowValues, metadata);
|
|
91
92
|
};
|
|
92
93
|
HlcCustomFilter.prototype.filterOnRemove = function (startIndex, count) {
|
|
93
94
|
this.removeRange(startIndex, count);
|
|
94
95
|
};
|
|
95
96
|
HlcCustomFilter.prototype.filterAll = function () {
|
|
96
97
|
this.clear();
|
|
97
|
-
var _a = this.filter(0, this.getOriginalCount()), xValues = _a.xValues, highValues = _a.highValues, lowValues = _a.lowValues, closeValues = _a.closeValues;
|
|
98
|
-
this.appendRange(xValues, closeValues, highValues, lowValues);
|
|
98
|
+
var _a = this.filter(0, this.getOriginalCount()), xValues = _a.xValues, highValues = _a.highValues, lowValues = _a.lowValues, closeValues = _a.closeValues, metadata = _a.metadata;
|
|
99
|
+
this.appendRange(xValues, closeValues, highValues, lowValues, metadata);
|
|
99
100
|
};
|
|
100
101
|
HlcCustomFilter.prototype.filter = function (startIndex, count) {
|
|
101
102
|
var rawX = this.getOriginalXValues();
|
|
@@ -106,13 +107,15 @@ var HlcCustomFilter = /** @class */ (function (_super) {
|
|
|
106
107
|
var highValues = [];
|
|
107
108
|
var lowValues = [];
|
|
108
109
|
var closeValues = [];
|
|
110
|
+
var metadata = [];
|
|
109
111
|
for (var i = startIndex; i < startIndex + count; i++) {
|
|
110
112
|
xValues.push(rawX.get(i));
|
|
111
113
|
highValues.push(this.highfilterFunction(i, rawHigh.get(i)));
|
|
112
114
|
lowValues.push(this.lowfilterFunction(i, rawLow.get(i)));
|
|
113
115
|
closeValues.push(this.closefilterFunction(i, rawClose.get(i)));
|
|
116
|
+
metadata.push(this.originalSeries.getMetadataAt(i));
|
|
114
117
|
}
|
|
115
|
-
return { xValues: xValues, highValues: highValues, lowValues: lowValues, closeValues: closeValues };
|
|
118
|
+
return { xValues: xValues, highValues: highValues, lowValues: lowValues, closeValues: closeValues, metadata: metadata };
|
|
116
119
|
};
|
|
117
120
|
return HlcCustomFilter;
|
|
118
121
|
}(HlcFilterBase_1.HlcFilterBase));
|
|
@@ -22,8 +22,9 @@ var XyFilterBase_1 = require("./XyFilterBase");
|
|
|
22
22
|
var HlcFilterBase = /** @class */ (function (_super) {
|
|
23
23
|
__extends(HlcFilterBase, _super);
|
|
24
24
|
function HlcFilterBase(originalSeries, options) {
|
|
25
|
+
var _this = this;
|
|
25
26
|
var _a, _b;
|
|
26
|
-
|
|
27
|
+
_this = _super.call(this, originalSeries.webAssemblyContext, options) || this;
|
|
27
28
|
_this.closefield = XyFilterBase_1.EDataSeriesField.Close;
|
|
28
29
|
_this.highfield = XyFilterBase_1.EDataSeriesField.High;
|
|
29
30
|
_this.lowfield = XyFilterBase_1.EDataSeriesField.Low;
|
|
@@ -33,8 +33,9 @@ var HlcCustomFilter_1 = require("./HlcCustomFilter");
|
|
|
33
33
|
var HlcScaleOffsetFilter = /** @class */ (function (_super) {
|
|
34
34
|
__extends(HlcScaleOffsetFilter, _super);
|
|
35
35
|
function HlcScaleOffsetFilter(originalSeries, options) {
|
|
36
|
+
var _this = this;
|
|
36
37
|
var _a, _b;
|
|
37
|
-
|
|
38
|
+
_this = _super.call(this, originalSeries, options) || this;
|
|
38
39
|
_this.scaleProperty = 1;
|
|
39
40
|
_this.offsetProperty = 0;
|
|
40
41
|
if (originalSeries.type !== IDataSeries_1.EDataSeriesType.Hlc) {
|
|
@@ -21,8 +21,9 @@ var OhlcFilterBase_1 = require("./OhlcFilterBase");
|
|
|
21
21
|
var OhlcCustomFilter = /** @class */ (function (_super) {
|
|
22
22
|
__extends(OhlcCustomFilter, _super);
|
|
23
23
|
function OhlcCustomFilter(originalSeries, options) {
|
|
24
|
+
var _this = this;
|
|
24
25
|
var _a, _b, _c, _d;
|
|
25
|
-
|
|
26
|
+
_this = _super.call(this, originalSeries, options) || this;
|
|
26
27
|
if (originalSeries.type !== IDataSeries_1.EDataSeriesType.Ohlc) {
|
|
27
28
|
throw new Error("OhlcCustomFilter only supports Ohlc original series");
|
|
28
29
|
}
|
|
@@ -96,24 +97,24 @@ var OhlcCustomFilter = /** @class */ (function (_super) {
|
|
|
96
97
|
return y;
|
|
97
98
|
};
|
|
98
99
|
OhlcCustomFilter.prototype.filterOnAppend = function (count) {
|
|
99
|
-
var _a = this.filter(this.count(), count), xValues = _a.xValues, openValues = _a.openValues, highValues = _a.highValues, lowValues = _a.lowValues, closeValues = _a.closeValues;
|
|
100
|
-
this.appendRange(xValues, openValues, highValues, lowValues, closeValues);
|
|
100
|
+
var _a = this.filter(this.count(), count), xValues = _a.xValues, openValues = _a.openValues, highValues = _a.highValues, lowValues = _a.lowValues, closeValues = _a.closeValues, metadata = _a.metadata;
|
|
101
|
+
this.appendRange(xValues, openValues, highValues, lowValues, closeValues, metadata);
|
|
101
102
|
};
|
|
102
103
|
OhlcCustomFilter.prototype.filterOnUpdate = function (index) {
|
|
103
104
|
var ohlcSeries = this.originalSeries;
|
|
104
|
-
this.update(index, this.openfilterFunction(index, ohlcSeries.getNativeOpenValues().get(index)), this.highfilterFunction(index, ohlcSeries.getNativeHighValues().get(index)), this.lowfilterFunction(index, ohlcSeries.getNativeLowValues().get(index)), this.closefilterFunction(index, ohlcSeries.getNativeCloseValues().get(index)));
|
|
105
|
+
this.update(index, this.openfilterFunction(index, ohlcSeries.getNativeOpenValues().get(index)), this.highfilterFunction(index, ohlcSeries.getNativeHighValues().get(index)), this.lowfilterFunction(index, ohlcSeries.getNativeLowValues().get(index)), this.closefilterFunction(index, ohlcSeries.getNativeCloseValues().get(index)), this.originalSeries.getMetadataAt(index));
|
|
105
106
|
};
|
|
106
107
|
OhlcCustomFilter.prototype.filterOnInsert = function (startIndex, count) {
|
|
107
|
-
var _a = this.filter(startIndex, count), xValues = _a.xValues, openValues = _a.openValues, highValues = _a.highValues, lowValues = _a.lowValues, closeValues = _a.closeValues;
|
|
108
|
-
this.insertRange(startIndex, xValues, openValues, highValues, lowValues, closeValues);
|
|
108
|
+
var _a = this.filter(startIndex, count), xValues = _a.xValues, openValues = _a.openValues, highValues = _a.highValues, lowValues = _a.lowValues, closeValues = _a.closeValues, metadata = _a.metadata;
|
|
109
|
+
this.insertRange(startIndex, xValues, openValues, highValues, lowValues, closeValues, metadata);
|
|
109
110
|
};
|
|
110
111
|
OhlcCustomFilter.prototype.filterOnRemove = function (startIndex, count) {
|
|
111
112
|
this.removeRange(startIndex, count);
|
|
112
113
|
};
|
|
113
114
|
OhlcCustomFilter.prototype.filterAll = function () {
|
|
114
115
|
this.clear();
|
|
115
|
-
var _a = this.filter(0, this.getOriginalCount()), xValues = _a.xValues, openValues = _a.openValues, highValues = _a.highValues, lowValues = _a.lowValues, closeValues = _a.closeValues;
|
|
116
|
-
this.appendRange(xValues, openValues, highValues, lowValues, closeValues);
|
|
116
|
+
var _a = this.filter(0, this.getOriginalCount()), xValues = _a.xValues, openValues = _a.openValues, highValues = _a.highValues, lowValues = _a.lowValues, closeValues = _a.closeValues, metadata = _a.metadata;
|
|
117
|
+
this.appendRange(xValues, openValues, highValues, lowValues, closeValues, metadata);
|
|
117
118
|
};
|
|
118
119
|
OhlcCustomFilter.prototype.filter = function (startIndex, count) {
|
|
119
120
|
var rawX = this.getOriginalXValues();
|
|
@@ -123,14 +124,16 @@ var OhlcCustomFilter = /** @class */ (function (_super) {
|
|
|
123
124
|
var highValues = [];
|
|
124
125
|
var lowValues = [];
|
|
125
126
|
var closeValues = [];
|
|
127
|
+
var metadata = [];
|
|
126
128
|
for (var i = startIndex; i < startIndex + count; i++) {
|
|
127
129
|
xValues.push(rawX.get(i));
|
|
128
130
|
openValues.push(this.openfilterFunction(i, ohlcSeries.getNativeOpenValues().get(i)));
|
|
129
131
|
highValues.push(this.highfilterFunction(i, ohlcSeries.getNativeHighValues().get(i)));
|
|
130
132
|
lowValues.push(this.lowfilterFunction(i, ohlcSeries.getNativeLowValues().get(i)));
|
|
131
133
|
closeValues.push(this.closefilterFunction(i, ohlcSeries.getNativeCloseValues().get(i)));
|
|
134
|
+
metadata.push(this.originalSeries.getMetadataAt(i));
|
|
132
135
|
}
|
|
133
|
-
return { xValues: xValues, openValues: openValues, highValues: highValues, lowValues: lowValues, closeValues: closeValues };
|
|
136
|
+
return { xValues: xValues, openValues: openValues, highValues: highValues, lowValues: lowValues, closeValues: closeValues, metadata: metadata };
|
|
134
137
|
};
|
|
135
138
|
return OhlcCustomFilter;
|
|
136
139
|
}(OhlcFilterBase_1.OhlcFilterBase));
|
|
@@ -33,8 +33,9 @@ var OhlcCustomFilter_1 = require("./OhlcCustomFilter");
|
|
|
33
33
|
var OhlcScaleOffsetFilter = /** @class */ (function (_super) {
|
|
34
34
|
__extends(OhlcScaleOffsetFilter, _super);
|
|
35
35
|
function OhlcScaleOffsetFilter(originalSeries, options) {
|
|
36
|
+
var _this = this;
|
|
36
37
|
var _a, _b;
|
|
37
|
-
|
|
38
|
+
_this = _super.call(this, originalSeries, options) || this;
|
|
38
39
|
_this.scaleProperty = 1;
|
|
39
40
|
_this.offsetProperty = 0;
|
|
40
41
|
if (originalSeries.type !== IDataSeries_1.EDataSeriesType.Ohlc) {
|
|
@@ -32,8 +32,9 @@ var XyFilterBase_1 = require("./XyFilterBase");
|
|
|
32
32
|
var XyCustomFilter = /** @class */ (function (_super) {
|
|
33
33
|
__extends(XyCustomFilter, _super);
|
|
34
34
|
function XyCustomFilter(originalSeries, options) {
|
|
35
|
+
var _this = this;
|
|
35
36
|
var _a;
|
|
36
|
-
|
|
37
|
+
_this = _super.call(this, originalSeries, options) || this;
|
|
37
38
|
_this.filterFunctionProperty = (_a = options === null || options === void 0 ? void 0 : options.filterFunction) !== null && _a !== void 0 ? _a : _this.filterFunctionProperty;
|
|
38
39
|
if (_this.getOriginalCount() > 0 && (options === null || options === void 0 ? void 0 : options.filterFunction)) {
|
|
39
40
|
_this.filterAll();
|
|
@@ -57,34 +58,36 @@ var XyCustomFilter = /** @class */ (function (_super) {
|
|
|
57
58
|
return y;
|
|
58
59
|
};
|
|
59
60
|
XyCustomFilter.prototype.filterOnAppend = function (count) {
|
|
60
|
-
var _a = this.filter(this.count(), count), xValues = _a.xValues, yValues = _a.yValues;
|
|
61
|
-
this.appendRange(xValues, yValues);
|
|
61
|
+
var _a = this.filter(this.count(), count), xValues = _a.xValues, yValues = _a.yValues, metadata = _a.metadata;
|
|
62
|
+
this.appendRange(xValues, yValues, metadata);
|
|
62
63
|
};
|
|
63
64
|
XyCustomFilter.prototype.filterOnUpdate = function (index) {
|
|
64
|
-
this.update(index, this.filterFunction(index, this.getOriginalYValues().get(index)));
|
|
65
|
+
this.update(index, this.filterFunction(index, this.getOriginalYValues().get(index)), this.originalSeries.getMetadataAt(index));
|
|
65
66
|
};
|
|
66
67
|
XyCustomFilter.prototype.filterOnInsert = function (startIndex, count) {
|
|
67
|
-
var _a = this.filter(startIndex, count), xValues = _a.xValues, yValues = _a.yValues;
|
|
68
|
-
this.insertRange(startIndex, xValues, yValues);
|
|
68
|
+
var _a = this.filter(startIndex, count), xValues = _a.xValues, yValues = _a.yValues, metadata = _a.metadata;
|
|
69
|
+
this.insertRange(startIndex, xValues, yValues, metadata);
|
|
69
70
|
};
|
|
70
71
|
XyCustomFilter.prototype.filterOnRemove = function (startIndex, count) {
|
|
71
72
|
this.removeRange(startIndex, count);
|
|
72
73
|
};
|
|
73
74
|
XyCustomFilter.prototype.filterAll = function () {
|
|
74
75
|
this.clear();
|
|
75
|
-
var _a = this.filter(0, this.getOriginalCount()), xValues = _a.xValues, yValues = _a.yValues;
|
|
76
|
-
this.appendRange(xValues, yValues);
|
|
76
|
+
var _a = this.filter(0, this.getOriginalCount()), xValues = _a.xValues, yValues = _a.yValues, metadata = _a.metadata;
|
|
77
|
+
this.appendRange(xValues, yValues, metadata);
|
|
77
78
|
};
|
|
78
79
|
XyCustomFilter.prototype.filter = function (startIndex, count) {
|
|
79
80
|
var rawX = this.getOriginalXValues();
|
|
80
81
|
var rawY = this.getOriginalYValues();
|
|
81
82
|
var xValues = [];
|
|
82
83
|
var yValues = [];
|
|
84
|
+
var metadata = [];
|
|
83
85
|
for (var i = startIndex; i < startIndex + count; i++) {
|
|
84
86
|
xValues.push(rawX.get(i));
|
|
85
87
|
yValues.push(this.filterFunction(i, rawY.get(i)));
|
|
88
|
+
metadata.push(this.originalSeries.getMetadataAt(i));
|
|
86
89
|
}
|
|
87
|
-
return { xValues: xValues, yValues: yValues };
|
|
90
|
+
return { xValues: xValues, yValues: yValues, metadata: metadata };
|
|
88
91
|
};
|
|
89
92
|
return XyCustomFilter;
|
|
90
93
|
}(XyFilterBase_1.XyFilterBase));
|
|
@@ -7,6 +7,7 @@ import { IXyDataSeriesOptions, XyDataSeries } from "../XyDataSeries";
|
|
|
7
7
|
import { XyyDataSeries } from "../XyyDataSeries";
|
|
8
8
|
import { XyzDataSeries } from "../XyzDataSeries";
|
|
9
9
|
export declare enum EDataSeriesField {
|
|
10
|
+
X = "x",
|
|
10
11
|
Open = "open",
|
|
11
12
|
High = "high",
|
|
12
13
|
Low = "low",
|
|
@@ -23,6 +24,10 @@ export interface IXyFilterOptions extends IXyDataSeriesOptions {
|
|
|
23
24
|
* The field that will be returned by getOriginalYValues.
|
|
24
25
|
*/
|
|
25
26
|
field?: EDataSeriesField;
|
|
27
|
+
/**
|
|
28
|
+
* The field that will be returned by getOriginalXValues.
|
|
29
|
+
*/
|
|
30
|
+
xField?: EDataSeriesField;
|
|
26
31
|
}
|
|
27
32
|
/**
|
|
28
33
|
* Base class for a filter that produces an {@link XyDataSeries}.
|
|
@@ -42,6 +47,10 @@ export declare abstract class XyFilterBase extends XyDataSeries {
|
|
|
42
47
|
* The field that will be returned by getOriginalYValues.
|
|
43
48
|
*/
|
|
44
49
|
readonly field: EDataSeriesField;
|
|
50
|
+
/**
|
|
51
|
+
* The field that will be returned by getOriginalYValues.
|
|
52
|
+
*/
|
|
53
|
+
readonly xField: EDataSeriesField;
|
|
45
54
|
/**
|
|
46
55
|
* Creates an instance of {@link XyFilterBase}
|
|
47
56
|
* @param originalSeries the {@link BaseDataSeries} to be filtered
|
|
@@ -96,9 +105,9 @@ export declare abstract class XyFilterBase extends XyDataSeries {
|
|
|
96
105
|
*/
|
|
97
106
|
protected onClear(): void;
|
|
98
107
|
protected onBaseDataChanged(args: IDataChangeArgs): void;
|
|
99
|
-
protected
|
|
100
|
-
protected
|
|
101
|
-
protected
|
|
102
|
-
protected
|
|
108
|
+
protected getValuesFromOHLC(field: EDataSeriesField, ohlcSeries: OhlcDataSeries): any;
|
|
109
|
+
protected getValuesFromXyy(field: EDataSeriesField, xyySeries: XyyDataSeries): any;
|
|
110
|
+
protected getValuesFromXyz(field: EDataSeriesField, xyzSeries: XyzDataSeries): any;
|
|
111
|
+
protected getValuesFromHlc(field: EDataSeriesField, hlcSeries: HlcDataSeries): any;
|
|
103
112
|
}
|
|
104
|
-
export declare const switchData: (field: EDataSeriesField, closey: any, openy1z?: any, high?: any, low?: any) => any;
|
|
113
|
+
export declare const switchData: (field: EDataSeriesField, x: any, closey: any, openy1z?: any, high?: any, low?: any) => any;
|