scichart 2.2.2416 → 3.0.0-beta.224
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Builder/buildDataSeries.d.ts +16 -1
- package/Builder/buildDataSeries.js +24 -1
- package/Builder/buildSeries.d.ts +60 -3
- package/Builder/buildSeries.js +28 -1
- package/Builder/buildSurface.d.ts +28 -2
- package/Builder/buildSurface.js +53 -31
- package/Builder/chartBuilder.d.ts +20 -7
- package/Builder/chartBuilder.js +37 -3
- package/Charting/ChartModifiers/ChartModifierBase.d.ts +21 -0
- package/Charting/ChartModifiers/ChartModifierBase.js +12 -0
- package/Charting/ChartModifiers/ChartModifierBase2D.js +2 -1
- package/Charting/ChartModifiers/CursorModifier.d.ts +83 -10
- package/Charting/ChartModifiers/CursorModifier.js +147 -58
- package/Charting/ChartModifiers/DataPointSelectionModifier.js +2 -1
- package/Charting/ChartModifiers/LegendModifier.js +2 -1
- package/Charting/ChartModifiers/ModifierMouseArgs.d.ts +6 -1
- package/Charting/ChartModifiers/ModifierMouseArgs.js +13 -3
- package/Charting/ChartModifiers/MouseWheelZoomModifier.d.ts +2 -2
- package/Charting/ChartModifiers/MouseWheelZoomModifier.js +16 -4
- package/Charting/ChartModifiers/OverviewRangeSelectionModifier.d.ts +2 -1
- package/Charting/ChartModifiers/OverviewRangeSelectionModifier.js +8 -4
- package/Charting/ChartModifiers/PinchZoomModifier.js +2 -1
- package/Charting/ChartModifiers/RolloverModifier.d.ts +40 -0
- package/Charting/ChartModifiers/RolloverModifier.js +40 -3
- package/Charting/ChartModifiers/RubberBandXyZoomModifier.js +2 -1
- package/Charting/ChartModifiers/SeriesSelectionModifier.js +2 -1
- package/Charting/ChartModifiers/XAxisDragModifier.d.ts +1 -1
- package/Charting/ChartModifiers/XAxisDragModifier.js +2 -1
- package/Charting/ChartModifiers/YAxisDragModifier.d.ts +1 -1
- package/Charting/ChartModifiers/YAxisDragModifier.js +2 -1
- package/Charting/ChartModifiers/ZoomExtentsModifier.js +2 -1
- package/Charting/ChartModifiers/ZoomPanModifier.js +2 -1
- package/Charting/ChartModifiers/constants.d.ts +3 -1
- package/Charting/ChartModifiers/constants.js +2 -0
- package/Charting/Drawing/BatchRenderContext.d.ts +6 -0
- package/Charting/Drawing/BatchRenderContext.js +40 -0
- package/Charting/Drawing/RenderSurface.d.ts +2 -1
- package/Charting/Drawing/RenderSurface.js +3 -2
- package/Charting/Drawing/WebGlRenderContext2D.d.ts +19 -4
- package/Charting/Drawing/WebGlRenderContext2D.js +70 -41
- package/Charting/LayoutManager/BaseCenteredAxisLayoutStrategy.js +2 -1
- package/Charting/LayoutManager/BottomAlignedInnerAxisLayoutStrategy.js +1 -1
- package/Charting/LayoutManager/CentralAxesLayoutManager.js +2 -1
- package/Charting/LayoutManager/LayoutManager.d.ts +2 -1
- package/Charting/LayoutManager/LayoutManager.js +6 -5
- package/Charting/LayoutManager/LeftAlignedInnerAxisLayoutStrategy.js +1 -1
- package/Charting/LayoutManager/RightAlignedInnerAxisLayoutStrategy.js +1 -1
- package/Charting/LayoutManager/TopAlignedInnerAxisLayoutStrategy.js +1 -1
- package/Charting/Model/BaseDataSeries.d.ts +10 -1
- package/Charting/Model/BaseDataSeries.js +9 -8
- package/Charting/Model/BaseHeatmapDataSeries.d.ts +18 -5
- package/Charting/Model/BaseHeatmapDataSeries.js +21 -13
- package/Charting/Model/ChartData/SeriesInfo.d.ts +6 -0
- package/Charting/Model/ChartData/SeriesInfo.js +5 -0
- package/Charting/Model/ChartData/XyySeriesInfo.d.ts +2 -0
- package/Charting/Model/ChartData/XyySeriesInfo.js +2 -0
- package/Charting/Model/DataDistributionCalculator/DataDistributionCalculator.js +4 -3
- package/Charting/Model/Filters/HlcCustomFilter.js +12 -9
- package/Charting/Model/Filters/HlcFilterBase.js +2 -1
- package/Charting/Model/Filters/HlcScaleOffsetFilter.js +2 -1
- package/Charting/Model/Filters/OhlcCustomFilter.js +12 -9
- package/Charting/Model/Filters/OhlcScaleOffsetFilter.js +2 -1
- package/Charting/Model/Filters/XyCustomFilter.js +12 -9
- package/Charting/Model/Filters/XyFilterBase.d.ts +14 -5
- package/Charting/Model/Filters/XyFilterBase.js +47 -15
- package/Charting/Model/Filters/XyMovingAverageFilter.js +2 -1
- package/Charting/Model/Filters/XyRatioFilter.js +2 -1
- package/Charting/Model/Filters/XyScaleOffsetFilter.js +2 -1
- package/Charting/Model/Filters/XyyCustomFilter.js +12 -9
- package/Charting/Model/Filters/XyyFilterBase.js +2 -1
- package/Charting/Model/Filters/XyyScaleOffsetFilter.js +2 -1
- package/Charting/Model/Filters/XyzCustomFilter.js +12 -9
- package/Charting/Model/Filters/XyzFilterBase.js +2 -1
- package/Charting/Model/Filters/XyzScaleOffsetFilter.js +2 -1
- package/Charting/Model/IDataSeries.d.ts +9 -1
- package/Charting/Model/IDataSeries.js +8 -0
- package/Charting/Model/NonUniformHeatmapDataSeries.d.ts +112 -0
- package/Charting/Model/NonUniformHeatmapDataSeries.js +261 -0
- package/Charting/Model/PaletteFactory.d.ts +40 -4
- package/Charting/Model/PaletteFactory.js +37 -11
- package/Charting/Model/XyTextDataSeries.d.ts +121 -0
- package/Charting/Model/XyTextDataSeries.js +274 -0
- package/Charting/Numerics/CoordinateCalculators/CoordinateCalculatorBase.d.ts +1 -1
- package/Charting/Numerics/Resamplers/ExtremeResamplerHelper.js +1 -1
- package/Charting/Services/RenderPassData.d.ts +15 -5
- package/Charting/Services/RenderPassData.js +27 -5
- package/Charting/Services/SciChartRenderer.d.ts +2 -1
- package/Charting/Services/SciChartRenderer.js +92 -29
- package/Charting/Themes/IThemeProvider.d.ts +61 -0
- package/Charting/Themes/IThemeProvider.js +67 -1
- package/Charting/Themes/SciChartJSDarkTheme.d.ts +4 -0
- package/Charting/Themes/SciChartJSDarkTheme.js +6 -2
- package/Charting/Themes/SciChartJSDarkv2Theme.js +3 -0
- package/Charting/Themes/SciChartJSLightTheme.d.ts +8 -0
- package/Charting/Themes/SciChartJSLightTheme.js +8 -0
- package/Charting/Themes/SciChartJsNavyTheme.d.ts +10 -0
- package/Charting/Themes/SciChartJsNavyTheme.js +49 -0
- package/Charting/Visuals/Annotations/AdornerLayer.js +4 -8
- package/Charting/Visuals/Annotations/AnnotationBase.d.ts +80 -7
- package/Charting/Visuals/Annotations/AnnotationBase.js +238 -28
- package/Charting/Visuals/Annotations/AnnotationClickEventArgs.d.ts +11 -0
- package/Charting/Visuals/Annotations/AnnotationClickEventArgs.js +12 -0
- package/Charting/Visuals/Annotations/AxisMarkerAnnotation.d.ts +1 -0
- package/Charting/Visuals/Annotations/AxisMarkerAnnotation.js +18 -19
- package/Charting/Visuals/Annotations/BoxAnnotation.d.ts +1 -0
- package/Charting/Visuals/Annotations/BoxAnnotation.js +69 -67
- package/Charting/Visuals/Annotations/CursorTooltipSvgAnnotation.d.ts +2 -2
- package/Charting/Visuals/Annotations/CursorTooltipSvgAnnotation.js +20 -20
- package/Charting/Visuals/Annotations/CustomAnnotation.d.ts +1 -1
- package/Charting/Visuals/Annotations/CustomAnnotation.js +3 -2
- package/Charting/Visuals/Annotations/HorizontalLineAnnotation.js +6 -3
- package/Charting/Visuals/Annotations/IAdornerProvider.d.ts +12 -0
- package/Charting/Visuals/Annotations/IAnnotation.d.ts +9 -0
- package/Charting/Visuals/Annotations/IAnnotation.js +9 -0
- package/Charting/Visuals/Annotations/LineAnnotation.d.ts +1 -0
- package/Charting/Visuals/Annotations/LineAnnotation.js +29 -35
- package/Charting/Visuals/Annotations/NativeTextAnnotation.d.ts +193 -0
- package/Charting/Visuals/Annotations/NativeTextAnnotation.js +536 -0
- package/Charting/Visuals/Annotations/OverviewCustomResizableAnnotation.d.ts +4 -2
- package/Charting/Visuals/Annotations/OverviewCustomResizableAnnotation.js +19 -14
- package/Charting/Visuals/Annotations/RolloverLegendSvgAnnotation.d.ts +2 -2
- package/Charting/Visuals/Annotations/RolloverLegendSvgAnnotation.js +9 -8
- package/Charting/Visuals/Annotations/RolloverMarkerSvgAnnotation.d.ts +2 -2
- package/Charting/Visuals/Annotations/RolloverMarkerSvgAnnotation.js +6 -6
- package/Charting/Visuals/Annotations/RolloverTooltipSvgAnnotation.d.ts +2 -2
- package/Charting/Visuals/Annotations/RolloverTooltipSvgAnnotation.js +16 -17
- package/Charting/Visuals/Annotations/SvgAnnotationBase.d.ts +13 -2
- package/Charting/Visuals/Annotations/SvgAnnotationBase.js +34 -42
- package/Charting/Visuals/Annotations/TextAnnotation.d.ts +2 -2
- package/Charting/Visuals/Annotations/TextAnnotation.js +41 -22
- package/Charting/Visuals/Annotations/VerticalLineAnnotation.js +6 -3
- package/Charting/Visuals/Annotations/annotationHelpers.d.ts +6 -6
- package/Charting/Visuals/Annotations/annotationHelpers.js +7 -6
- package/Charting/Visuals/Annotations/constants.d.ts +13 -1
- package/Charting/Visuals/Annotations/constants.js +12 -0
- package/Charting/Visuals/Axis/AxisBase2D.d.ts +24 -4
- package/Charting/Visuals/Axis/AxisBase2D.js +115 -38
- package/Charting/Visuals/Axis/AxisCore.d.ts +10 -5
- package/Charting/Visuals/Axis/AxisCore.js +11 -10
- package/Charting/Visuals/Axis/AxisRenderer.js +114 -20
- package/Charting/Visuals/Axis/CategoryAxis.js +2 -1
- package/Charting/Visuals/Axis/CategoryAxisBase.d.ts +15 -15
- package/Charting/Visuals/Axis/CategoryAxisBase.js +14 -12
- package/Charting/Visuals/Axis/DateTimeNumericAxis.js +2 -1
- package/Charting/Visuals/Axis/DeltaCalculator/DateTimeDeltaCalculator.js +2 -1
- package/Charting/Visuals/Axis/LabelProvider/DateLabelProvider.js +2 -1
- package/Charting/Visuals/Axis/LabelProvider/LabelCache.js +2 -0
- package/Charting/Visuals/Axis/LabelProvider/LabelProviderBase2D.d.ts +14 -0
- package/Charting/Visuals/Axis/LabelProvider/LabelProviderBase2D.js +140 -33
- package/Charting/Visuals/Axis/LabelProvider/LogarithmicLabelProvider.js +2 -1
- package/Charting/Visuals/Axis/LabelProvider/NumericLabelProvider.js +2 -1
- package/Charting/Visuals/Axis/LabelProvider/PieLabelProvider.js +2 -1
- package/Charting/Visuals/Axis/LabelProvider/SmartDateLabelProvider.d.ts +31 -1
- package/Charting/Visuals/Axis/LabelProvider/SmartDateLabelProvider.js +64 -42
- package/Charting/Visuals/Axis/LabelProvider/TextLabelProvider.d.ts +2 -2
- package/Charting/Visuals/Axis/LabelProvider/TextLabelProvider.js +16 -19
- package/Charting/Visuals/Axis/LogarithmicAxis.js +9 -6
- package/Charting/Visuals/Axis/NumericAxis.js +3 -3
- package/Charting/Visuals/Axis/constants.d.ts +1 -0
- package/Charting/Visuals/Axis/constants.js +1 -0
- package/Charting/Visuals/HeatmapLegend.d.ts +95 -0
- package/Charting/Visuals/HeatmapLegend.js +192 -0
- package/Charting/Visuals/Helpers/NativeObject.d.ts +15 -2
- package/Charting/Visuals/Helpers/NativeObject.js +72 -6
- package/Charting/Visuals/I2DSurfaceOptions.d.ts +46 -0
- package/Charting/Visuals/PointMarkers/BasePointMarker.d.ts +5 -0
- package/Charting/Visuals/PointMarkers/BasePointMarker.js +28 -0
- package/Charting/Visuals/PointMarkers/IPointMarker.d.ts +8 -0
- package/Charting/Visuals/RenderableSeries/Animations/BandAnimation.js +2 -1
- package/Charting/Visuals/RenderableSeries/Animations/BandAnimationStyle.js +2 -1
- package/Charting/Visuals/RenderableSeries/Animations/BubbleAnimation.js +2 -1
- package/Charting/Visuals/RenderableSeries/Animations/CandlestickAnimation.js +2 -1
- package/Charting/Visuals/RenderableSeries/Animations/CandlestickAnimationStyle.js +2 -1
- package/Charting/Visuals/RenderableSeries/Animations/ColumnAnimation.js +2 -1
- package/Charting/Visuals/RenderableSeries/Animations/ColumnAnimationStyle.js +2 -1
- package/Charting/Visuals/RenderableSeries/Animations/CustomPointMarkerStyle.js +2 -1
- package/Charting/Visuals/RenderableSeries/Animations/FadeAnimation.js +2 -1
- package/Charting/Visuals/RenderableSeries/Animations/LineAnimation.js +2 -1
- package/Charting/Visuals/RenderableSeries/Animations/MountainAnimation.js +2 -1
- package/Charting/Visuals/RenderableSeries/Animations/MountainAnimationStyle.js +2 -1
- package/Charting/Visuals/RenderableSeries/Animations/OhlcAnimation.js +2 -1
- package/Charting/Visuals/RenderableSeries/Animations/OhlcAnimationStyle.js +2 -1
- package/Charting/Visuals/RenderableSeries/Animations/PointMarkerStyle.js +2 -1
- package/Charting/Visuals/RenderableSeries/Animations/ScaleAnimation.js +2 -1
- package/Charting/Visuals/RenderableSeries/Animations/ScatterAnimation.js +2 -1
- package/Charting/Visuals/RenderableSeries/Animations/SeriesAnimation.d.ts +8 -2
- package/Charting/Visuals/RenderableSeries/Animations/SeriesAnimation.js +3 -3
- package/Charting/Visuals/RenderableSeries/Animations/WaveAnimation.js +2 -1
- package/Charting/Visuals/RenderableSeries/BaseBandRenderableSeries.d.ts +7 -0
- package/Charting/Visuals/RenderableSeries/BaseBandRenderableSeries.js +42 -10
- package/Charting/Visuals/RenderableSeries/BaseHeatmapRenderableSeries.d.ts +128 -0
- package/Charting/Visuals/RenderableSeries/BaseHeatmapRenderableSeries.js +201 -0
- package/Charting/Visuals/RenderableSeries/BaseLineRenderableSeries.d.ts +26 -0
- package/Charting/Visuals/RenderableSeries/BaseLineRenderableSeries.js +39 -3
- package/Charting/Visuals/RenderableSeries/BaseMountainRenderableSeries.d.ts +7 -0
- package/Charting/Visuals/RenderableSeries/BaseMountainRenderableSeries.js +17 -2
- package/Charting/Visuals/RenderableSeries/BaseOhlcRenderableSeries.d.ts +2 -0
- package/Charting/Visuals/RenderableSeries/BaseOhlcRenderableSeries.js +15 -2
- package/Charting/Visuals/RenderableSeries/BaseRenderableSeries.d.ts +10 -0
- package/Charting/Visuals/RenderableSeries/BaseRenderableSeries.js +93 -17
- package/Charting/Visuals/RenderableSeries/BaseStackedCollection.d.ts +8 -1
- package/Charting/Visuals/RenderableSeries/BaseStackedCollection.js +21 -1
- package/Charting/Visuals/RenderableSeries/BaseStackedRenderableSeries.d.ts +1 -0
- package/Charting/Visuals/RenderableSeries/BaseStackedRenderableSeries.js +4 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/BandSeriesDataLabelProvider.d.ts +43 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/BandSeriesDataLabelProvider.js +142 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/BaseDataLabelProvider.d.ts +92 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/BaseDataLabelProvider.js +129 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/BubbleSeriesDataLabelProvider.d.ts +17 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/BubbleSeriesDataLabelProvider.js +62 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/ColumnSeriesDataLabelProvider.d.ts +47 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/ColumnSeriesDataLabelProvider.js +125 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/ContoursDataLabelProvider.d.ts +71 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/ContoursDataLabelProvider.js +221 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/DataLabelLayoutManager.d.ts +5 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/DataLabelLayoutManager.js +2 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/DataLabelProvider.d.ts +208 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/DataLabelProvider.js +410 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/DataLabelState.d.ts +40 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/DataLabelState.js +141 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/HeatMapDataLabelProvider.d.ts +63 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/HeatMapDataLabelProvider.js +198 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/LineSeriesDataLabelProvider.d.ts +35 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/LineSeriesDataLabelProvider.js +92 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/NonUniformHeatmapDataLabelProvider.d.ts +12 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/NonUniformHeatmapDataLabelProvider.js +134 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/TextDataLabelProvider.d.ts +56 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/TextDataLabelProvider.js +167 -0
- package/Charting/Visuals/RenderableSeries/DrawingProviders/BandSeriesDrawingProvider.d.ts +0 -1
- package/Charting/Visuals/RenderableSeries/DrawingProviders/BandSeriesDrawingProvider.js +1 -2
- package/Charting/Visuals/RenderableSeries/DrawingProviders/BaseSeriesDrawingProvider.d.ts +5 -2
- package/Charting/Visuals/RenderableSeries/DrawingProviders/BaseSeriesDrawingProvider.js +47 -40
- package/Charting/Visuals/RenderableSeries/DrawingProviders/BubbleSeriesDrawingProvider.js +1 -1
- package/Charting/Visuals/RenderableSeries/DrawingProviders/ColumnSeriesDrawingProvider.d.ts +1 -0
- package/Charting/Visuals/RenderableSeries/DrawingProviders/ColumnSeriesDrawingProvider.js +18 -5
- package/Charting/Visuals/RenderableSeries/DrawingProviders/ErrorSeriesDrawingProvider.d.ts +0 -1
- package/Charting/Visuals/RenderableSeries/DrawingProviders/ErrorSeriesDrawingProvider.js +14 -27
- package/Charting/Visuals/RenderableSeries/DrawingProviders/LineSeriesDrawingProvider.d.ts +17 -4
- package/Charting/Visuals/RenderableSeries/DrawingProviders/LineSeriesDrawingProvider.js +34 -11
- package/Charting/Visuals/RenderableSeries/DrawingProviders/NonUniformHeatmapDrawingProvider.d.ts +36 -0
- package/Charting/Visuals/RenderableSeries/DrawingProviders/NonUniformHeatmapDrawingProvider.js +493 -0
- package/Charting/Visuals/RenderableSeries/DrawingProviders/PointMarkerDrawingProvider.d.ts +5 -2
- package/Charting/Visuals/RenderableSeries/DrawingProviders/PointMarkerDrawingProvider.js +8 -5
- package/Charting/Visuals/RenderableSeries/DrawingProviders/UniformContoursDrawingProvider.js +4 -4
- package/Charting/Visuals/RenderableSeries/DrawingProviders/UniformHeatmapDrawingProvider.d.ts +3 -0
- package/Charting/Visuals/RenderableSeries/DrawingProviders/UniformHeatmapDrawingProvider.js +15 -4
- package/Charting/Visuals/RenderableSeries/FastBandRenderableSeries.js +2 -1
- package/Charting/Visuals/RenderableSeries/FastBubbleRenderableSeries.d.ts +21 -0
- package/Charting/Visuals/RenderableSeries/FastBubbleRenderableSeries.js +40 -4
- package/Charting/Visuals/RenderableSeries/FastCandlestickRenderableSeries.d.ts +2 -0
- package/Charting/Visuals/RenderableSeries/FastCandlestickRenderableSeries.js +18 -3
- package/Charting/Visuals/RenderableSeries/FastColumnRenderableSeries.d.ts +36 -2
- package/Charting/Visuals/RenderableSeries/FastColumnRenderableSeries.js +77 -8
- package/Charting/Visuals/RenderableSeries/FastErrorBarsRenderableSeries.js +2 -1
- package/Charting/Visuals/RenderableSeries/FastImpulseRenderableSeries.d.ts +7 -0
- package/Charting/Visuals/RenderableSeries/FastImpulseRenderableSeries.js +16 -4
- package/Charting/Visuals/RenderableSeries/FastLineRenderableSeries.js +2 -1
- package/Charting/Visuals/RenderableSeries/FastMountainRenderableSeries.js +2 -1
- package/Charting/Visuals/RenderableSeries/FastOhlcRenderableSeries.js +2 -1
- package/Charting/Visuals/RenderableSeries/FastTextRenderableSeries.d.ts +17 -0
- package/Charting/Visuals/RenderableSeries/FastTextRenderableSeries.js +45 -0
- package/Charting/Visuals/RenderableSeries/HeatmapColorMap.js +3 -2
- package/Charting/Visuals/RenderableSeries/HitTest/BandSeriesHitTestProvider.js +35 -5
- package/Charting/Visuals/RenderableSeries/HitTest/BaseHitTestProvider.js +17 -1
- package/Charting/Visuals/RenderableSeries/HitTest/HitTestInfo.d.ts +8 -0
- package/Charting/Visuals/RenderableSeries/HitTest/MountainSeriesHitTestProvider.js +7 -1
- package/Charting/Visuals/RenderableSeries/HitTest/NonUniformHeatmapHitTestProvider.d.ts +20 -0
- package/Charting/Visuals/RenderableSeries/HitTest/NonUniformHeatmapHitTestProvider.js +86 -0
- package/Charting/Visuals/RenderableSeries/HitTest/TextSeriesHitTestProvider.d.ts +6 -0
- package/Charting/Visuals/RenderableSeries/HitTest/TextSeriesHitTestProvider.js +56 -0
- package/Charting/Visuals/RenderableSeries/HitTest/UniformHeatmapHitTestProvider.js +1 -1
- package/Charting/Visuals/RenderableSeries/HitTest/hitTestHelpers.d.ts +7 -1
- package/Charting/Visuals/RenderableSeries/HitTest/hitTestHelpers.js +34 -2
- package/Charting/Visuals/RenderableSeries/IBaseRenderableSeriesOptions.d.ts +6 -1
- package/Charting/Visuals/RenderableSeries/IRenderableSeries.d.ts +12 -0
- package/Charting/Visuals/RenderableSeries/ISpline.d.ts +2 -0
- package/Charting/Visuals/RenderableSeries/NonUniformHeatmapRenderableSeries.d.ts +74 -0
- package/Charting/Visuals/RenderableSeries/NonUniformHeatmapRenderableSeries.js +99 -0
- package/Charting/Visuals/RenderableSeries/ShaderEffect.js +2 -2
- package/Charting/Visuals/RenderableSeries/SplineBandRenderableSeries.d.ts +5 -0
- package/Charting/Visuals/RenderableSeries/SplineBandRenderableSeries.js +29 -10
- package/Charting/Visuals/RenderableSeries/SplineLineRenderableSeries.d.ts +7 -3
- package/Charting/Visuals/RenderableSeries/SplineLineRenderableSeries.js +28 -8
- package/Charting/Visuals/RenderableSeries/SplineMountainRenderableSeries.d.ts +5 -0
- package/Charting/Visuals/RenderableSeries/SplineMountainRenderableSeries.js +28 -8
- package/Charting/Visuals/RenderableSeries/StackedColumnCollection.js +2 -1
- package/Charting/Visuals/RenderableSeries/StackedColumnRenderableSeries.d.ts +3 -0
- package/Charting/Visuals/RenderableSeries/StackedColumnRenderableSeries.js +13 -2
- package/Charting/Visuals/RenderableSeries/StackedMountainCollection.js +4 -1
- package/Charting/Visuals/RenderableSeries/StackedMountainRenderableSeries.d.ts +7 -0
- package/Charting/Visuals/RenderableSeries/StackedMountainRenderableSeries.js +33 -9
- package/Charting/Visuals/RenderableSeries/UniformContoursRenderableSeries.d.ts +5 -0
- package/Charting/Visuals/RenderableSeries/UniformContoursRenderableSeries.js +7 -1
- package/Charting/Visuals/RenderableSeries/UniformHeatmapRenderableSeries.d.ts +2 -75
- package/Charting/Visuals/RenderableSeries/UniformHeatmapRenderableSeries.js +8 -130
- package/Charting/Visuals/RenderableSeries/XyScatterRenderableSeries.d.ts +5 -0
- package/Charting/Visuals/RenderableSeries/XyScatterRenderableSeries.js +7 -1
- package/Charting/Visuals/RenderableSeries/constants.d.ts +5 -1
- package/Charting/Visuals/RenderableSeries/constants.js +4 -0
- package/Charting/Visuals/RubberBandSvgRect/RubberBandSvgRect.js +3 -3
- package/Charting/Visuals/SciChartDefaults.d.ts +4 -0
- package/Charting/Visuals/SciChartDefaults.js +4 -0
- package/Charting/Visuals/SciChartOverview.js +5 -3
- package/Charting/Visuals/SciChartPieSurface/PieSegment/IPieSegment.d.ts +4 -0
- package/Charting/Visuals/SciChartPieSurface/PieSegment/PieSegment.d.ts +13 -0
- package/Charting/Visuals/SciChartPieSurface/PieSegment/PieSegment.js +22 -4
- package/Charting/Visuals/SciChartPieSurface/PieSegment/constants.d.ts +2 -1
- package/Charting/Visuals/SciChartPieSurface/PieSegment/constants.js +1 -0
- package/Charting/Visuals/SciChartPieSurface/SciChartPieSurface.d.ts +5 -0
- package/Charting/Visuals/SciChartPieSurface/SciChartPieSurface.js +17 -19
- package/Charting/Visuals/SciChartSurface.d.ts +225 -7
- package/Charting/Visuals/SciChartSurface.js +782 -28
- package/Charting/Visuals/SciChartSurfaceBase.d.ts +16 -1
- package/Charting/Visuals/SciChartSurfaceBase.js +34 -2
- package/Charting/Visuals/TextureManager/CanvasTexture.js +1 -1
- package/Charting/Visuals/TextureManager/DpiHelper.js +3 -7
- package/Charting/Visuals/TextureManager/TextureManager.d.ts +11 -0
- package/Charting/Visuals/TextureManager/TextureManager.js +37 -1
- package/Charting/Visuals/createMaster.js +7 -10
- package/Charting/Visuals/createSingle.js +2 -0
- package/Charting/Visuals/licenseManager2D.js +9 -9
- package/Charting/Visuals/sciChartInitCommon.js +16 -12
- package/Charting3D/CameraController.d.ts +5 -0
- package/Charting3D/CameraController.js +6 -0
- package/Charting3D/ChartModifiers/ResetCamera3DModifier.js +2 -1
- package/Charting3D/Visuals/Axis/AxisBase3D.js +7 -5
- package/Charting3D/Visuals/Axis/NumericAxis3D.js +2 -1
- package/Charting3D/Visuals/Primitives/ScatterPointsSceneEntity.d.ts +4 -0
- package/Charting3D/Visuals/Primitives/ScatterPointsSceneEntity.js +7 -0
- package/Charting3D/Visuals/Primitives/SurfaceMeshSceneEntity.js +6 -4
- package/Charting3D/Visuals/RenderableSeries/BaseRenderableSeries3D.d.ts +7 -2
- package/Charting3D/Visuals/RenderableSeries/BaseRenderableSeries3D.js +3 -2
- package/Charting3D/Visuals/RenderableSeries/SurfaceMesh/SurfaceMeshRenderableSeries3D.d.ts +0 -5
- package/Charting3D/Visuals/RenderableSeries/SurfaceMesh/SurfaceMeshRenderableSeries3D.js +12 -11
- package/Charting3D/Visuals/SciChart3DSurface.d.ts +2 -2
- package/Charting3D/Visuals/SciChart3DSurface.js +18 -11
- package/Charting3D/Visuals/createMaster3d.js +10 -18
- package/Charting3D/Visuals/createSingle3d.js +12 -10
- package/Core/Animations/GenericAnimation.d.ts +2 -0
- package/Core/Animations/GenericAnimation.js +3 -0
- package/Core/Animations/NumberRangeAnimator.js +7 -2
- package/Core/BuildStamp.d.ts +1 -1
- package/Core/BuildStamp.js +2 -2
- package/Core/Mouse/MouseManager.d.ts +20 -0
- package/Core/Mouse/MouseManager.js +199 -30
- package/README.md +91 -403
- package/_wasm/scichart.browser.js +1 -1
- package/_wasm/scichart2d.data +0 -0
- package/_wasm/scichart2d.js +280 -267
- package/_wasm/scichart2d.wasm +0 -0
- package/_wasm/scichart3d.data +0 -0
- package/_wasm/scichart3d.js +280 -268
- package/_wasm/scichart3d.wasm +0 -0
- package/constants/performanceWarnings.d.ts +2 -0
- package/constants/performanceWarnings.js +3 -1
- package/package.json +2 -2
- package/types/AutoColorMode.d.ts +9 -0
- package/types/AutoColorMode.js +13 -0
- package/types/BaseType.d.ts +3 -1
- package/types/BaseType.js +2 -0
- package/types/DataLabelProviderType.d.ts +15 -0
- package/types/DataLabelProviderType.js +19 -0
- package/types/DataLabelSkipMode.d.ts +21 -0
- package/types/DataLabelSkipMode.js +25 -0
- package/types/DefaultRenderLayer.d.ts +10 -0
- package/types/DefaultRenderLayer.js +14 -0
- package/types/SeriesType.d.ts +7 -1
- package/types/SeriesType.js +6 -0
- package/types/SvgClippingMode.d.ts +17 -0
- package/types/SvgClippingMode.js +21 -0
- package/types/TDataLabelStyle.d.ts +16 -0
- package/types/TDataLabelStyle.js +2 -0
- package/types/TSciChart.d.ts +214 -118
- package/types/TSciChart3D.d.ts +104 -70
- package/types/TextPosition.d.ts +17 -0
- package/types/TextPosition.js +39 -0
- package/types/ThemeProviderType.d.ts +3 -1
- package/types/ThemeProviderType.js +2 -0
- package/utils/ccall/appendDoubleVectorFromJsArray.d.ts +10 -1
- package/utils/ccall/appendDoubleVectorFromJsArray.js +24 -1
- package/utils/copyVector.d.ts +2 -0
- package/utils/copyVector.js +10 -0
- package/utils/memoize.d.ts +1 -0
- package/utils/memoize.js +26 -0
- package/utils/number.d.ts +1 -0
- package/utils/number.js +5 -1
- package/utils/parseColor.d.ts +2 -0
- package/utils/parseColor.js +3 -3
- package/utils/text.d.ts +5 -0
- package/utils/text.js +48 -0
- package/utils/translate.d.ts +8 -0
- package/utils/translate.js +27 -5
- package/utils/zeroArray2D.d.ts +5 -0
- package/utils/zeroArray2D.js +5 -0
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.BaseHeatmapRenderableSeries = exports.COLOR_MAP_PREFIX = void 0;
|
|
19
|
+
var AxisCore_1 = require("../Axis/AxisCore");
|
|
20
|
+
var NumericLabelProvider_1 = require("../Axis/LabelProvider/NumericLabelProvider");
|
|
21
|
+
var BaseRenderableSeries_1 = require("./BaseRenderableSeries");
|
|
22
|
+
var constants_1 = require("./constants");
|
|
23
|
+
var HeatmapColorMap_1 = require("./HeatmapColorMap");
|
|
24
|
+
/** @ignore */
|
|
25
|
+
exports.COLOR_MAP_PREFIX = "colorMap.";
|
|
26
|
+
/**
|
|
27
|
+
* @summary A JavaScript Heatmap chart type rendering a 2-dimensional array of data as color values between X,Y bounds in
|
|
28
|
+
* SciChart's High Performance Real-time {@link https://www.scichart.com/javascript-chart-features | JavaScript Chart Library}
|
|
29
|
+
* @description
|
|
30
|
+
* Heatmaps are 2-dimensional arrays of data, rendered as a color-map on the chart. The {@link UniformHeatmapRenderableSeries}
|
|
31
|
+
* assumes the cells are equal size, and spaced along the X,Y axis according to properties on the {@link UniformHeatmapDataSeries}.
|
|
32
|
+
*
|
|
33
|
+
* For a code sample how to initialize a uniform heatmap, see below
|
|
34
|
+
*
|
|
35
|
+
* ```ts
|
|
36
|
+
* // Create an empty 2D array using the helper function zeroArray2D
|
|
37
|
+
* const zValues: number[][] = zeroArray2D([height, width]);
|
|
38
|
+
* // todo: fill the zValues 2d array with values
|
|
39
|
+
*
|
|
40
|
+
* // Create a UniformHeatmapDataSeries passing in zValues
|
|
41
|
+
* const heatmapDataSeries = new UniformHeatmapDataSeries(wasmContext, 0, 1, 0, 1, zValues);
|
|
42
|
+
*
|
|
43
|
+
* // Create a Heatmap RenderableSeries with the color map. ColorMap.minimum/maximum defines the values in
|
|
44
|
+
* // HeatmapDataSeries which correspond to gradient stops at 0..1
|
|
45
|
+
* const heatmapSeries = new UniformHeatmapRenderableSeries(wasmContext, {
|
|
46
|
+
* dataSeries: heatmapDataSeries,
|
|
47
|
+
* colorMap: new HeatmapColorMap({
|
|
48
|
+
* minimum: 0,
|
|
49
|
+
* maximum: 200,
|
|
50
|
+
* gradientStops: [
|
|
51
|
+
* { offset: 0, color: "#00008B" },
|
|
52
|
+
* { offset: 0.2, color: "#6495ED" },
|
|
53
|
+
* { offset: 0.4, color: "#006400" },
|
|
54
|
+
* { offset: 0.6, color: "#7FFF00" },
|
|
55
|
+
* { offset: 0.8, color: "#FFFF00" },
|
|
56
|
+
* { offset: 1.0, color: "#FF0000" }
|
|
57
|
+
* ]
|
|
58
|
+
* })
|
|
59
|
+
* });
|
|
60
|
+
*
|
|
61
|
+
* // Add heatmap to the chart
|
|
62
|
+
* sciChartSurface.renderableSeries.add(heatmapSeries);
|
|
63
|
+
* ```
|
|
64
|
+
*/
|
|
65
|
+
var BaseHeatmapRenderableSeries = /** @class */ (function (_super) {
|
|
66
|
+
__extends(BaseHeatmapRenderableSeries, _super);
|
|
67
|
+
/**
|
|
68
|
+
* Creates an instance of the {@link UniformHeatmapRenderableSeries}
|
|
69
|
+
* @param webAssemblyContext The {@link TSciChart | SciChart WebAssembly Context} containing
|
|
70
|
+
* native methods and access to our WebGL2 WebAssembly Drawing Engine
|
|
71
|
+
* @param options optional parameters of type {@link IHeatmapRenderableSeriesOptions} applied when constructing the series type
|
|
72
|
+
*/
|
|
73
|
+
function BaseHeatmapRenderableSeries(webAssemblyContext, options) {
|
|
74
|
+
var _this = this;
|
|
75
|
+
var _a, _b, _c, _d, _e, _f;
|
|
76
|
+
_this = _super.call(this, webAssemblyContext, options) || this;
|
|
77
|
+
_this.useLinearTextureFilteringProperty = false;
|
|
78
|
+
_this.fillValuesOutOfRangeProperty = true;
|
|
79
|
+
_this.colorMapPropertyChanged = _this.colorMapPropertyChanged.bind(_this);
|
|
80
|
+
if (options === null || options === void 0 ? void 0 : options.colorMap) {
|
|
81
|
+
if (!("toJSON" in options.colorMap)) {
|
|
82
|
+
options.colorMap = new HeatmapColorMap_1.HeatmapColorMap(options.colorMap);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
_this.colorMap = options === null || options === void 0 ? void 0 : options.colorMap;
|
|
86
|
+
_this.dataSeries = options === null || options === void 0 ? void 0 : options.dataSeries;
|
|
87
|
+
_this.xAxisId = (_a = options === null || options === void 0 ? void 0 : options.xAxisId) !== null && _a !== void 0 ? _a : AxisCore_1.AxisCore.DEFAULT_AXIS_ID;
|
|
88
|
+
_this.xAxisId = (_b = options === null || options === void 0 ? void 0 : options.yAxisId) !== null && _b !== void 0 ? _b : AxisCore_1.AxisCore.DEFAULT_AXIS_ID;
|
|
89
|
+
_this.useLinearTextureFilteringProperty =
|
|
90
|
+
(_c = options === null || options === void 0 ? void 0 : options.useLinearTextureFiltering) !== null && _c !== void 0 ? _c : _this.useLinearTextureFilteringProperty;
|
|
91
|
+
_this.fillValuesOutOfRangeProperty = (_d = options === null || options === void 0 ? void 0 : options.fillValuesOutOfRange) !== null && _d !== void 0 ? _d : _this.fillValuesOutOfRangeProperty;
|
|
92
|
+
// Must be called here for the series type to be available
|
|
93
|
+
if ((_e = _this.paletteProvider) === null || _e === void 0 ? void 0 : _e.onAttached) {
|
|
94
|
+
(_f = _this.paletteProvider) === null || _f === void 0 ? void 0 : _f.onAttached(_this);
|
|
95
|
+
}
|
|
96
|
+
_this.zLabelProviderProperty = new NumericLabelProvider_1.NumericLabelProvider({ labelPrecision: 2 });
|
|
97
|
+
return _this;
|
|
98
|
+
}
|
|
99
|
+
Object.defineProperty(BaseHeatmapRenderableSeries.prototype, "colorMap", {
|
|
100
|
+
/**
|
|
101
|
+
* Gets or sets the {@link HeatmapColorMap}, which maps heatmap z-values to colors
|
|
102
|
+
*/
|
|
103
|
+
get: function () {
|
|
104
|
+
return this.colorMapProperty;
|
|
105
|
+
},
|
|
106
|
+
/**
|
|
107
|
+
* Gets or sets the {@link HeatmapColorMap}, which maps heatmap z-values to colors
|
|
108
|
+
*/
|
|
109
|
+
set: function (colorMap) {
|
|
110
|
+
var _a, _b;
|
|
111
|
+
(_a = this.colorMapProperty) === null || _a === void 0 ? void 0 : _a.propertyChanged.unsubscribe(this.colorMapPropertyChanged);
|
|
112
|
+
this.colorMapProperty = colorMap;
|
|
113
|
+
(_b = this.colorMapProperty) === null || _b === void 0 ? void 0 : _b.propertyChanged.subscribe(this.colorMapPropertyChanged);
|
|
114
|
+
this.notifyPropertyChanged(constants_1.PROPERTY.COLOR_MAP);
|
|
115
|
+
},
|
|
116
|
+
enumerable: false,
|
|
117
|
+
configurable: true
|
|
118
|
+
});
|
|
119
|
+
Object.defineProperty(BaseHeatmapRenderableSeries.prototype, "useLinearTextureFiltering", {
|
|
120
|
+
/**
|
|
121
|
+
* Gets or sets whether to make the heatmap linearly interpolated or smoothed between cells
|
|
122
|
+
*/
|
|
123
|
+
get: function () {
|
|
124
|
+
return this.useLinearTextureFilteringProperty;
|
|
125
|
+
},
|
|
126
|
+
/**
|
|
127
|
+
* Gets or sets whether to make the heatmap linearly interpolated or smoothed between cells
|
|
128
|
+
*/
|
|
129
|
+
set: function (value) {
|
|
130
|
+
this.useLinearTextureFilteringProperty = value;
|
|
131
|
+
this.notifyPropertyChanged(constants_1.PROPERTY.USE_LINEAR_TEXTURE_FILTERING);
|
|
132
|
+
},
|
|
133
|
+
enumerable: false,
|
|
134
|
+
configurable: true
|
|
135
|
+
});
|
|
136
|
+
/** @inheritDoc */
|
|
137
|
+
BaseHeatmapRenderableSeries.prototype.checkIsOutOfDataRange = function (xValue, yValue) {
|
|
138
|
+
var dataSeries = this.dataSeries;
|
|
139
|
+
return (!dataSeries ||
|
|
140
|
+
xValue <= dataSeries.xRange.min ||
|
|
141
|
+
xValue >= dataSeries.xRange.max ||
|
|
142
|
+
yValue <= dataSeries.yRange.min ||
|
|
143
|
+
yValue >= dataSeries.yRange.max);
|
|
144
|
+
};
|
|
145
|
+
Object.defineProperty(BaseHeatmapRenderableSeries.prototype, "zLabelProvider", {
|
|
146
|
+
get: function () {
|
|
147
|
+
return this.zLabelProviderProperty;
|
|
148
|
+
},
|
|
149
|
+
set: function (labelProvider) {
|
|
150
|
+
this.zLabelProviderProperty = labelProvider;
|
|
151
|
+
this.notifyPropertyChanged(constants_1.PROPERTY.Z_LABEL_PROVIDER);
|
|
152
|
+
},
|
|
153
|
+
enumerable: false,
|
|
154
|
+
configurable: true
|
|
155
|
+
});
|
|
156
|
+
Object.defineProperty(BaseHeatmapRenderableSeries.prototype, "fillValuesOutOfRange", {
|
|
157
|
+
/**
|
|
158
|
+
* Gets or sets whether to fill cells with edge color if its value is outside of {@link colorMap.minimum} to {@link colorMap.maximum} range
|
|
159
|
+
*/
|
|
160
|
+
get: function () {
|
|
161
|
+
return this.fillValuesOutOfRangeProperty;
|
|
162
|
+
},
|
|
163
|
+
/**
|
|
164
|
+
* Gets or sets whether to fill cells with edge color if its value is outside of {@link colorMap.minimum} to {@link colorMap.maximum} range
|
|
165
|
+
*/
|
|
166
|
+
set: function (value) {
|
|
167
|
+
this.fillValuesOutOfRangeProperty = value;
|
|
168
|
+
this.notifyPropertyChanged(constants_1.PROPERTY.FILL_VALUES_OUT_OF_RANGE);
|
|
169
|
+
},
|
|
170
|
+
enumerable: false,
|
|
171
|
+
configurable: true
|
|
172
|
+
});
|
|
173
|
+
/** @inheritDoc */
|
|
174
|
+
BaseHeatmapRenderableSeries.prototype.toPointSeries = function (resamplingParams) {
|
|
175
|
+
// not used for Heatmap
|
|
176
|
+
return undefined;
|
|
177
|
+
};
|
|
178
|
+
/** @inheritDoc */
|
|
179
|
+
BaseHeatmapRenderableSeries.prototype.toJSON = function (excludeData) {
|
|
180
|
+
var _a;
|
|
181
|
+
if (excludeData === void 0) { excludeData = false; }
|
|
182
|
+
var json = _super.prototype.toJSON.call(this, excludeData);
|
|
183
|
+
var options = {
|
|
184
|
+
colorMap: (_a = this.colorMap) === null || _a === void 0 ? void 0 : _a.toJSON(),
|
|
185
|
+
fillValuesOutOfRange: this.fillValuesOutOfRange,
|
|
186
|
+
useLinearTextureFiltering: this.useLinearTextureFiltering
|
|
187
|
+
};
|
|
188
|
+
Object.assign(json.options, options);
|
|
189
|
+
return json;
|
|
190
|
+
};
|
|
191
|
+
/**
|
|
192
|
+
* Called when a property changes on {@link HeatmapColorMap}, and notifies the parent {@link SciChartSurface}
|
|
193
|
+
* that a redraw is required.
|
|
194
|
+
* @param args
|
|
195
|
+
*/
|
|
196
|
+
BaseHeatmapRenderableSeries.prototype.colorMapPropertyChanged = function (args) {
|
|
197
|
+
this.notifyPropertyChanged(exports.COLOR_MAP_PREFIX + args.propertyName);
|
|
198
|
+
};
|
|
199
|
+
return BaseHeatmapRenderableSeries;
|
|
200
|
+
}(BaseRenderableSeries_1.BaseRenderableSeries));
|
|
201
|
+
exports.BaseHeatmapRenderableSeries = BaseHeatmapRenderableSeries;
|
|
@@ -1,17 +1,35 @@
|
|
|
1
1
|
import { TSciChart } from "../../../types/TSciChart";
|
|
2
2
|
import { IThemeProvider } from "../../Themes/IThemeProvider";
|
|
3
3
|
import { BaseRenderableSeries } from "./BaseRenderableSeries";
|
|
4
|
+
import { ILineSeriesDataLabelProviderOptions } from "./DataLabels/LineSeriesDataLabelProvider";
|
|
4
5
|
import { IHitTestProvider } from "./HitTest/IHitTestProvider";
|
|
5
6
|
import { IBaseRenderableSeriesOptions } from "./IBaseRenderableSeriesOptions";
|
|
7
|
+
export declare enum ELineType {
|
|
8
|
+
Normal = "Normal",
|
|
9
|
+
Digital = "Digital",
|
|
10
|
+
/** Horizontal line from the point to the x value of the next point */
|
|
11
|
+
DigitalNoEdge = "DigitalNoEdge",
|
|
12
|
+
/** Digital Line that goes Up then across, instead of Across then Up */
|
|
13
|
+
DigitalYX = "DigitalYX"
|
|
14
|
+
}
|
|
6
15
|
export interface IBaseLineRenderableSeriesOptions extends IBaseRenderableSeriesOptions {
|
|
7
16
|
/**
|
|
8
17
|
* The StrokeDashArray defines the stroke or dash pattern for the line.
|
|
9
18
|
* Accepts an array of values, e.g. [2,2] will have a line of length 2 and a gap of length 2.
|
|
10
19
|
*/
|
|
11
20
|
strokeDashArray?: number[];
|
|
21
|
+
/**
|
|
22
|
+
* Options to pass to the {@link DataLabelProvider}. Set a style with font and size to enable per-point text for this series.
|
|
23
|
+
*/
|
|
24
|
+
dataLabels?: ILineSeriesDataLabelProviderOptions;
|
|
25
|
+
/**
|
|
26
|
+
* The type of line to draw. One of {@link ELineType}. Replaces isDigitalLine
|
|
27
|
+
*/
|
|
28
|
+
lineType?: ELineType;
|
|
12
29
|
}
|
|
13
30
|
export declare abstract class BaseLineRenderableSeries extends BaseRenderableSeries {
|
|
14
31
|
private strokeDashArrayProperty;
|
|
32
|
+
private lineTypeProperty;
|
|
15
33
|
constructor(webAssemblyContext: TSciChart, options?: IBaseLineRenderableSeriesOptions);
|
|
16
34
|
/** @inheritDoc */
|
|
17
35
|
applyTheme(themeProvider: IThemeProvider): void;
|
|
@@ -25,6 +43,14 @@ export declare abstract class BaseLineRenderableSeries extends BaseRenderableSer
|
|
|
25
43
|
* Accepts an array of values, e.g. [2,2] will have a line of length 2 and a gap of length 2.
|
|
26
44
|
*/
|
|
27
45
|
set strokeDashArray(strokeDashArray: number[]);
|
|
46
|
+
/**
|
|
47
|
+
* The type of line to draw. One of {@link ELineType}. Replaces isDigitalLine
|
|
48
|
+
*/
|
|
49
|
+
get lineType(): ELineType;
|
|
50
|
+
/**
|
|
51
|
+
* The type of line to draw. One of {@link ELineType}. Replaces isDigitalLine
|
|
52
|
+
*/
|
|
53
|
+
set lineType(lineType: ELineType);
|
|
28
54
|
/** @inheritDoc */
|
|
29
55
|
toJSON(excludeData?: boolean): import("../../../Builder/buildSeries").TSeriesDefinition;
|
|
30
56
|
/**
|
|
@@ -15,21 +15,39 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
15
15
|
};
|
|
16
16
|
})();
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.BaseLineRenderableSeries = void 0;
|
|
18
|
+
exports.BaseLineRenderableSeries = exports.ELineType = void 0;
|
|
19
19
|
var BaseRenderableSeries_1 = require("./BaseRenderableSeries");
|
|
20
20
|
var constants_1 = require("./constants");
|
|
21
|
+
var LineSeriesDataLabelProvider_1 = require("./DataLabels/LineSeriesDataLabelProvider");
|
|
21
22
|
var LineSeriesDrawingProvider_1 = require("./DrawingProviders/LineSeriesDrawingProvider");
|
|
22
23
|
var PointMarkerDrawingProvider_1 = require("./DrawingProviders/PointMarkerDrawingProvider");
|
|
23
24
|
var LineSeriesHitTestProvider_1 = require("./HitTest/LineSeriesHitTestProvider");
|
|
25
|
+
var ELineType;
|
|
26
|
+
(function (ELineType) {
|
|
27
|
+
ELineType["Normal"] = "Normal";
|
|
28
|
+
ELineType["Digital"] = "Digital";
|
|
29
|
+
/** Horizontal line from the point to the x value of the next point */
|
|
30
|
+
ELineType["DigitalNoEdge"] = "DigitalNoEdge";
|
|
31
|
+
/** Digital Line that goes Up then across, instead of Across then Up */
|
|
32
|
+
ELineType["DigitalYX"] = "DigitalYX";
|
|
33
|
+
})(ELineType = exports.ELineType || (exports.ELineType = {}));
|
|
24
34
|
var BaseLineRenderableSeries = /** @class */ (function (_super) {
|
|
25
35
|
__extends(BaseLineRenderableSeries, _super);
|
|
26
36
|
function BaseLineRenderableSeries(webAssemblyContext, options) {
|
|
27
|
-
var _this =
|
|
37
|
+
var _this = this;
|
|
38
|
+
var _a;
|
|
39
|
+
_this = _super.call(this, webAssemblyContext, options) || this;
|
|
28
40
|
_this.strokeDashArrayProperty = [];
|
|
41
|
+
_this.lineTypeProperty = ELineType.Normal;
|
|
29
42
|
_this.strokeDashArrayProperty = options === null || options === void 0 ? void 0 : options.strokeDashArray;
|
|
43
|
+
_this.lineTypeProperty = (_a = options === null || options === void 0 ? void 0 : options.lineType) !== null && _a !== void 0 ? _a : _this.lineTypeProperty;
|
|
30
44
|
_this.drawingProviders = [];
|
|
31
45
|
_this.drawingProviders.push(new LineSeriesDrawingProvider_1.LineSeriesDrawingProvider(webAssemblyContext, _this));
|
|
32
46
|
_this.drawingProviders.push(new PointMarkerDrawingProvider_1.PointMarkerDrawingProvider(webAssemblyContext, _this));
|
|
47
|
+
if (!_this.dataLabelProviderProperty) {
|
|
48
|
+
_this.dataLabelProviderProperty = new LineSeriesDataLabelProvider_1.LineSeriesDataLabelProvider(options === null || options === void 0 ? void 0 : options.dataLabels);
|
|
49
|
+
_this.dataLabelProviderProperty.onAttach(_this.webAssemblyContext, _this);
|
|
50
|
+
}
|
|
33
51
|
if (options === null || options === void 0 ? void 0 : options.animation) {
|
|
34
52
|
_this.animationQueue.push(options.animation);
|
|
35
53
|
}
|
|
@@ -62,12 +80,30 @@ var BaseLineRenderableSeries = /** @class */ (function (_super) {
|
|
|
62
80
|
enumerable: false,
|
|
63
81
|
configurable: true
|
|
64
82
|
});
|
|
83
|
+
Object.defineProperty(BaseLineRenderableSeries.prototype, "lineType", {
|
|
84
|
+
/**
|
|
85
|
+
* The type of line to draw. One of {@link ELineType}. Replaces isDigitalLine
|
|
86
|
+
*/
|
|
87
|
+
get: function () {
|
|
88
|
+
return this.lineTypeProperty;
|
|
89
|
+
},
|
|
90
|
+
/**
|
|
91
|
+
* The type of line to draw. One of {@link ELineType}. Replaces isDigitalLine
|
|
92
|
+
*/
|
|
93
|
+
set: function (lineType) {
|
|
94
|
+
this.lineTypeProperty = lineType;
|
|
95
|
+
this.notifyPropertyChanged(constants_1.PROPERTY.LINE_TYPE);
|
|
96
|
+
},
|
|
97
|
+
enumerable: false,
|
|
98
|
+
configurable: true
|
|
99
|
+
});
|
|
65
100
|
/** @inheritDoc */
|
|
66
101
|
BaseLineRenderableSeries.prototype.toJSON = function (excludeData) {
|
|
67
102
|
if (excludeData === void 0) { excludeData = false; }
|
|
68
103
|
var json = _super.prototype.toJSON.call(this, excludeData);
|
|
69
104
|
var options = {
|
|
70
|
-
strokeDashArray: this.strokeDashArray
|
|
105
|
+
strokeDashArray: this.strokeDashArray,
|
|
106
|
+
lineType: this.lineTypeProperty
|
|
71
107
|
};
|
|
72
108
|
Object.assign(json.options, options);
|
|
73
109
|
return json;
|
|
@@ -2,6 +2,7 @@ import { GradientParams } from "../../../Core/GradientParams";
|
|
|
2
2
|
import { TSciChart } from "../../../types/TSciChart";
|
|
3
3
|
import { IThemeProvider } from "../../Themes/IThemeProvider";
|
|
4
4
|
import { BaseRenderableSeries } from "./BaseRenderableSeries";
|
|
5
|
+
import { IDataLabelProviderOptions } from "./DataLabels/DataLabelProvider";
|
|
5
6
|
import { IHitTestProvider } from "./HitTest/IHitTestProvider";
|
|
6
7
|
import { IBaseRenderableSeriesOptions } from "./IBaseRenderableSeriesOptions";
|
|
7
8
|
/**
|
|
@@ -25,6 +26,10 @@ export interface IBaseMountainRenderableSeriesOptions extends IBaseRenderableSer
|
|
|
25
26
|
* Accepts an array of values, e.g. [2,2] will have a line of length 2 and a gap of length 2.
|
|
26
27
|
*/
|
|
27
28
|
strokeDashArray?: number[];
|
|
29
|
+
/**
|
|
30
|
+
* Options to pass to the DataLabelProvider. Set a style with font and size to enable per-point text for this series.
|
|
31
|
+
*/
|
|
32
|
+
dataLabels?: IDataLabelProviderOptions;
|
|
28
33
|
}
|
|
29
34
|
export declare abstract class BaseMountainRenderableSeries extends BaseRenderableSeries {
|
|
30
35
|
private zeroLineYProperty;
|
|
@@ -72,6 +77,8 @@ export declare abstract class BaseMountainRenderableSeries extends BaseRenderabl
|
|
|
72
77
|
set strokeDashArray(strokeDashArray: number[]);
|
|
73
78
|
/** @inheritDoc */
|
|
74
79
|
toJSON(excludeData?: boolean): import("../../../Builder/buildSeries").TSeriesDefinition;
|
|
80
|
+
/** @inheritDoc */
|
|
81
|
+
resolveAutoColors(index: number, maxSeries: number, theme: IThemeProvider): void;
|
|
75
82
|
/**
|
|
76
83
|
* @inheritDoc
|
|
77
84
|
*/
|
|
@@ -16,17 +16,20 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
16
16
|
})();
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
exports.BaseMountainRenderableSeries = void 0;
|
|
19
|
+
var IThemeProvider_1 = require("../../Themes/IThemeProvider");
|
|
19
20
|
var SciChartSurfaceBase_1 = require("../SciChartSurfaceBase");
|
|
20
21
|
var BaseRenderableSeries_1 = require("./BaseRenderableSeries");
|
|
21
22
|
var constants_1 = require("./constants");
|
|
23
|
+
var DataLabelProvider_1 = require("./DataLabels/DataLabelProvider");
|
|
22
24
|
var MountainSeriesDrawingProvider_1 = require("./DrawingProviders/MountainSeriesDrawingProvider");
|
|
23
25
|
var PointMarkerDrawingProvider_1 = require("./DrawingProviders/PointMarkerDrawingProvider");
|
|
24
26
|
var MountainSeriesHitTestProvider_1 = require("./HitTest/MountainSeriesHitTestProvider");
|
|
25
27
|
var BaseMountainRenderableSeries = /** @class */ (function (_super) {
|
|
26
28
|
__extends(BaseMountainRenderableSeries, _super);
|
|
27
29
|
function BaseMountainRenderableSeries(webAssemblyContext, options) {
|
|
30
|
+
var _this = this;
|
|
28
31
|
var _a, _b, _c, _d, _e;
|
|
29
|
-
|
|
32
|
+
_this = _super.call(this, webAssemblyContext, options) || this;
|
|
30
33
|
_this.zeroLineYProperty = 0;
|
|
31
34
|
_this.fillProperty = SciChartSurfaceBase_1.SciChartSurfaceBase.DEFAULT_THEME.mountainAreaBrush;
|
|
32
35
|
_this.strokeDashArrayProperty = [];
|
|
@@ -35,6 +38,10 @@ var BaseMountainRenderableSeries = /** @class */ (function (_super) {
|
|
|
35
38
|
_this.fillProperty = (_c = options === null || options === void 0 ? void 0 : options.fill) !== null && _c !== void 0 ? _c : _this.fillProperty;
|
|
36
39
|
_this.zeroLineYProperty = (_d = options === null || options === void 0 ? void 0 : options.zeroLineY) !== null && _d !== void 0 ? _d : _this.zeroLineYProperty;
|
|
37
40
|
_this.fillLinearGradientProperty = (_e = options === null || options === void 0 ? void 0 : options.fillLinearGradient) !== null && _e !== void 0 ? _e : _this.fillLinearGradientProperty;
|
|
41
|
+
if (!_this.dataLabelProviderProperty) {
|
|
42
|
+
_this.dataLabelProviderProperty = new DataLabelProvider_1.DataLabelProvider(options === null || options === void 0 ? void 0 : options.dataLabels);
|
|
43
|
+
_this.dataLabelProviderProperty.onAttach(_this.webAssemblyContext, _this);
|
|
44
|
+
}
|
|
38
45
|
_this.drawingProviders.push(new MountainSeriesDrawingProvider_1.MountainSeriesDrawingProvider(webAssemblyContext, _this));
|
|
39
46
|
_this.drawingProviders.push(new PointMarkerDrawingProvider_1.PointMarkerDrawingProvider(webAssemblyContext, _this));
|
|
40
47
|
if (options === null || options === void 0 ? void 0 : options.animation) {
|
|
@@ -60,7 +67,7 @@ var BaseMountainRenderableSeries = /** @class */ (function (_super) {
|
|
|
60
67
|
* Gets or sets the fill color as an HTML Color code
|
|
61
68
|
*/
|
|
62
69
|
get: function () {
|
|
63
|
-
return this.fillProperty;
|
|
70
|
+
return (0, IThemeProvider_1.stripAutoColor)(this.fillProperty);
|
|
64
71
|
},
|
|
65
72
|
/**
|
|
66
73
|
* Gets or sets the fill color as an HTML Color code
|
|
@@ -141,6 +148,14 @@ var BaseMountainRenderableSeries = /** @class */ (function (_super) {
|
|
|
141
148
|
Object.assign(json.options, options);
|
|
142
149
|
return json;
|
|
143
150
|
};
|
|
151
|
+
/** @inheritDoc */
|
|
152
|
+
BaseMountainRenderableSeries.prototype.resolveAutoColors = function (index, maxSeries, theme) {
|
|
153
|
+
_super.prototype.resolveAutoColors.call(this, index, maxSeries, theme);
|
|
154
|
+
if (this.fillProperty.startsWith(IThemeProvider_1.AUTO_COLOR)) {
|
|
155
|
+
var color = theme.getFillColor(index, maxSeries, this.webAssemblyContext);
|
|
156
|
+
this.fill = IThemeProvider_1.AUTO_COLOR + this.adjustAutoColor("fill", color);
|
|
157
|
+
}
|
|
158
|
+
};
|
|
144
159
|
/**
|
|
145
160
|
* @inheritDoc
|
|
146
161
|
*/
|
|
@@ -68,6 +68,8 @@ export declare abstract class BaseOhlcRenderableSeries extends BaseRenderableSer
|
|
|
68
68
|
*/
|
|
69
69
|
getNativeCloseValues(): SCRTDoubleVector;
|
|
70
70
|
/** @inheritDoc */
|
|
71
|
+
resolveAutoColors(index: number, maxSeries: number, theme: IThemeProvider): void;
|
|
72
|
+
/** @inheritDoc */
|
|
71
73
|
toPointSeries(rp?: ResamplingParams): IOhlcPointSeries;
|
|
72
74
|
/** @inheritDoc */
|
|
73
75
|
protected newHitTestProvider(): IHitTestProvider;
|
|
@@ -23,6 +23,7 @@ var OhlcPointSeriesResampled_1 = require("../../Model/PointSeries/OhlcPointSerie
|
|
|
23
23
|
var OhlcPointSeriesWrapped_1 = require("../../Model/PointSeries/OhlcPointSeriesWrapped");
|
|
24
24
|
var XyyPointSeriesResampled_1 = require("../../Model/PointSeries/XyyPointSeriesResampled");
|
|
25
25
|
var ResamplingMode_1 = require("../../Numerics/Resamplers/ResamplingMode");
|
|
26
|
+
var IThemeProvider_1 = require("../../Themes/IThemeProvider");
|
|
26
27
|
var SciChartSurfaceBase_1 = require("../SciChartSurfaceBase");
|
|
27
28
|
var BaseRenderableSeries_1 = require("./BaseRenderableSeries");
|
|
28
29
|
var constants_1 = require("./constants");
|
|
@@ -59,7 +60,7 @@ var BaseOhlcRenderableSeries = /** @class */ (function (_super) {
|
|
|
59
60
|
* Gets or sets the stoke when candlestick close is greater than open, as an HTML color code
|
|
60
61
|
*/
|
|
61
62
|
get: function () {
|
|
62
|
-
return this.strokeUpProperty;
|
|
63
|
+
return (0, IThemeProvider_1.stripAutoColor)(this.strokeUpProperty);
|
|
63
64
|
},
|
|
64
65
|
/**
|
|
65
66
|
* Gets or sets the stoke when candlestick close is greater than open, as an HTML color code
|
|
@@ -76,7 +77,7 @@ var BaseOhlcRenderableSeries = /** @class */ (function (_super) {
|
|
|
76
77
|
* Gets or sets the stoke when candlestick close is less than open, as an HTML color code
|
|
77
78
|
*/
|
|
78
79
|
get: function () {
|
|
79
|
-
return this.strokeDownProperty;
|
|
80
|
+
return (0, IThemeProvider_1.stripAutoColor)(this.strokeDownProperty);
|
|
80
81
|
},
|
|
81
82
|
/**
|
|
82
83
|
* Gets or sets the stoke when candlestick close is less than open, as an HTML color code
|
|
@@ -157,6 +158,18 @@ var BaseOhlcRenderableSeries = /** @class */ (function (_super) {
|
|
|
157
158
|
return this.dataSeries.getNativeYValues();
|
|
158
159
|
};
|
|
159
160
|
/** @inheritDoc */
|
|
161
|
+
BaseOhlcRenderableSeries.prototype.resolveAutoColors = function (index, maxSeries, theme) {
|
|
162
|
+
if (this.strokeUpProperty.startsWith(IThemeProvider_1.AUTO_COLOR)) {
|
|
163
|
+
var color = theme.getStrokeColor(index, maxSeries, this.webAssemblyContext);
|
|
164
|
+
this.strokeUp = IThemeProvider_1.AUTO_COLOR + this.adjustAutoColor("strokeUp", color);
|
|
165
|
+
}
|
|
166
|
+
var y1Index = (index + Math.floor(maxSeries / 2)) % maxSeries;
|
|
167
|
+
if (this.strokeDownProperty.startsWith(IThemeProvider_1.AUTO_COLOR)) {
|
|
168
|
+
var color = theme.getStrokeColor(y1Index, maxSeries, this.webAssemblyContext);
|
|
169
|
+
this.strokeDown = IThemeProvider_1.AUTO_COLOR + this.adjustAutoColor("strokeDown", color);
|
|
170
|
+
}
|
|
171
|
+
};
|
|
172
|
+
/** @inheritDoc */
|
|
160
173
|
BaseOhlcRenderableSeries.prototype.toPointSeries = function (rp) {
|
|
161
174
|
if (rp) {
|
|
162
175
|
if (!this.xyyTempPointSeries) {
|
|
@@ -32,6 +32,7 @@ import { SeriesHoveredArgs } from "./SeriesHoveredArgs";
|
|
|
32
32
|
import { SeriesSelectedArgs } from "./SeriesSelectedArgs";
|
|
33
33
|
import { SeriesVisibleChangedArgs } from "./SeriesVisibleChangedArgs";
|
|
34
34
|
import { ShaderEffect } from "./ShaderEffect";
|
|
35
|
+
import { BaseDataLabelProvider } from "./DataLabels/BaseDataLabelProvider";
|
|
35
36
|
/**
|
|
36
37
|
* @summary Defines the base class to a Render Series (or Chart Type) in SciChart's High Performance Real-time
|
|
37
38
|
* {@link https://www.scichart.com/javascript-chart-features | JavaScript Charts}
|
|
@@ -68,6 +69,7 @@ export declare abstract class BaseRenderableSeries implements IRenderableSeries
|
|
|
68
69
|
protected animationFSM: SeriesAnimationFiniteStateMachine;
|
|
69
70
|
protected animationQueue: SeriesAnimation[];
|
|
70
71
|
protected paletteProviderProperty: IPaletteProvider;
|
|
72
|
+
protected dataLabelProviderProperty: BaseDataLabelProvider;
|
|
71
73
|
protected typeMap: Map<string, string>;
|
|
72
74
|
protected resamplerHelper: ExtremeResamplerHelper;
|
|
73
75
|
protected pointSeries: XyPointSeriesResampled;
|
|
@@ -266,6 +268,14 @@ export declare abstract class BaseRenderableSeries implements IRenderableSeries
|
|
|
266
268
|
* @protected
|
|
267
269
|
*/
|
|
268
270
|
needsResampling(rp: ResamplingParams): boolean;
|
|
271
|
+
/** @inheritDoc */
|
|
272
|
+
get dataLabelProvider(): BaseDataLabelProvider;
|
|
273
|
+
/** @inheritDoc */
|
|
274
|
+
set dataLabelProvider(provider: BaseDataLabelProvider);
|
|
275
|
+
/** @inheritDoc */
|
|
276
|
+
resolveAutoColors(index: number, maxSeries: number, theme: IThemeProvider): void;
|
|
277
|
+
/** @inheritDoc */
|
|
278
|
+
adjustAutoColor(propertyName: string, color: string): string;
|
|
269
279
|
/**
|
|
270
280
|
* Sets initial and end animation vectors
|
|
271
281
|
* @param animation
|