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
|
@@ -42,8 +42,9 @@ var ModifierMouseArgs = /** @class */ (function (_super) {
|
|
|
42
42
|
* @param options optional parameters to configure the args
|
|
43
43
|
*/
|
|
44
44
|
function ModifierMouseArgs(mousePoint, options) {
|
|
45
|
+
var _this = this;
|
|
45
46
|
var _a;
|
|
46
|
-
|
|
47
|
+
_this = _super.call(this) || this;
|
|
47
48
|
_this.mousePoint = mousePoint;
|
|
48
49
|
_this.button = options === null || options === void 0 ? void 0 : options.button;
|
|
49
50
|
_this.mouseWheelDelta = (_a = options === null || options === void 0 ? void 0 : options.mouseWheelDelta) !== null && _a !== void 0 ? _a : 0;
|
|
@@ -120,7 +121,7 @@ var ModifierMouseArgs = /** @class */ (function (_super) {
|
|
|
120
121
|
* @param masterViewport the master viewport or parent chart issuing mouse events
|
|
121
122
|
* @param slaveViewport the slave viewport or child chart receiving mouse events
|
|
122
123
|
*/
|
|
123
|
-
ModifierMouseArgs.copy = function (args, modifierGroup, masterViewport, slaveViewport) {
|
|
124
|
+
ModifierMouseArgs.copy = function (args, modifierGroup, masterViewport, slaveViewport, masterData) {
|
|
124
125
|
var mousePoint = args.mousePoint;
|
|
125
126
|
if (masterViewport && slaveViewport) {
|
|
126
127
|
var sourceX = args.mousePoint.x - masterViewport.x;
|
|
@@ -129,7 +130,16 @@ var ModifierMouseArgs = /** @class */ (function (_super) {
|
|
|
129
130
|
var scaleY = slaveViewport.height / masterViewport.height;
|
|
130
131
|
mousePoint = new Point_1.Point(slaveViewport.x + sourceX * scaleX, slaveViewport.y + sourceY * scaleY);
|
|
131
132
|
}
|
|
132
|
-
return __assign(__assign({}, args), { isMaster: false, handled: false, modifierGroup: modifierGroup, mousePoint: mousePoint });
|
|
133
|
+
return __assign(__assign({}, args), { isMaster: false, masterData: masterData, handled: false, modifierGroup: modifierGroup, mousePoint: mousePoint });
|
|
134
|
+
};
|
|
135
|
+
ModifierMouseArgs.copyForSubChart = function (args, modifierGroup, masterViewport, slaveViewport, masterData) {
|
|
136
|
+
var mousePoint = args.mousePoint;
|
|
137
|
+
if (masterViewport && slaveViewport) {
|
|
138
|
+
var scaleX = slaveViewport.width / masterViewport.width;
|
|
139
|
+
var scaleY = slaveViewport.height / masterViewport.height;
|
|
140
|
+
mousePoint = new Point_1.Point((args.mousePoint.x - masterViewport.x) * scaleX + slaveViewport.x, (args.mousePoint.y - masterViewport.y) * scaleY + slaveViewport.y);
|
|
141
|
+
}
|
|
142
|
+
return __assign(__assign({}, args), { isMaster: false, masterData: masterData, handled: false, modifierGroup: modifierGroup, mousePoint: mousePoint });
|
|
133
143
|
};
|
|
134
144
|
return ModifierMouseArgs;
|
|
135
145
|
}(ModifierArgsBase_1.ModifierArgsBase));
|
|
@@ -110,12 +110,12 @@ export declare class MouseWheelZoomModifier extends ChartModifierBase2D implemen
|
|
|
110
110
|
* @param mousePoint The X,Y location of the mouse at the time of the zoom
|
|
111
111
|
* @param wheelDelta the MouseWheel delta
|
|
112
112
|
*/
|
|
113
|
-
performZoom(mousePoint: Point, wheelDelta: number):
|
|
113
|
+
performZoom(mousePoint: Point, wheelDelta: number): boolean;
|
|
114
114
|
/**
|
|
115
115
|
* Performs a pan operation
|
|
116
116
|
* @param wheelDelta the MouseWheel delta
|
|
117
117
|
*/
|
|
118
|
-
performPan(wheelDelta: number):
|
|
118
|
+
performPan(wheelDelta: number): boolean;
|
|
119
119
|
/** @inheritDoc */
|
|
120
120
|
includeXAxis(axis: AxisBase2D, isIncluded: boolean): void;
|
|
121
121
|
/** @inheritDoc */
|
|
@@ -18,6 +18,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
18
18
|
exports.MouseWheelZoomModifier = exports.EActionType = void 0;
|
|
19
19
|
var ChartModifierType_1 = require("../../types/ChartModifierType");
|
|
20
20
|
var XyDirection_1 = require("../../types/XyDirection");
|
|
21
|
+
var ZoomState_1 = require("../../types/ZoomState");
|
|
21
22
|
var includedAxis_1 = require("../../utils/includedAxis");
|
|
22
23
|
var translate_1 = require("../../utils/translate");
|
|
23
24
|
var AxisBase2D_1 = require("../Visuals/Axis/AxisBase2D");
|
|
@@ -58,8 +59,9 @@ var MouseWheelZoomModifier = /** @class */ (function (_super) {
|
|
|
58
59
|
* @param options Optional parameters to configure the modifier via {@link IMouseWheelZoomModifierOptions}
|
|
59
60
|
*/
|
|
60
61
|
function MouseWheelZoomModifier(options) {
|
|
62
|
+
var _this = this;
|
|
61
63
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
62
|
-
|
|
64
|
+
_this = _super.call(this, options) || this;
|
|
63
65
|
_this.type = ChartModifierType_1.EChart2DModifierType.MouseWheelZoom;
|
|
64
66
|
/**
|
|
65
67
|
* Whether the modifier applies when the mouse is over the area where series are drawn (ie not over the axes). Default true.
|
|
@@ -108,12 +110,11 @@ var MouseWheelZoomModifier = /** @class */ (function (_super) {
|
|
|
108
110
|
var zoomPoint = (0, translate_1.translateFromCanvasToSeriesViewRect)(args.mousePoint, this.parentSurface.seriesViewRect);
|
|
109
111
|
if (zoomPoint && this.applyToSeriesViewRect) {
|
|
110
112
|
if (this.actionType === EActionType.Zoom) {
|
|
111
|
-
this.performZoom(zoomPoint, args.mouseWheelDelta);
|
|
113
|
+
args.handled = this.performZoom(zoomPoint, args.mouseWheelDelta);
|
|
112
114
|
}
|
|
113
115
|
else if (this.actionType === EActionType.Pan) {
|
|
114
|
-
this.performPan(args.mouseWheelDelta);
|
|
116
|
+
args.handled = this.performPan(args.mouseWheelDelta);
|
|
115
117
|
}
|
|
116
|
-
args.handled = true;
|
|
117
118
|
}
|
|
118
119
|
else if (this.applyToAxes) {
|
|
119
120
|
var targetAxes = [];
|
|
@@ -142,6 +143,9 @@ var MouseWheelZoomModifier = /** @class */ (function (_super) {
|
|
|
142
143
|
}
|
|
143
144
|
}
|
|
144
145
|
}
|
|
146
|
+
if (args.handled) {
|
|
147
|
+
this.parentSurface.setZoomState(ZoomState_1.EZoomState.UserZooming);
|
|
148
|
+
}
|
|
145
149
|
};
|
|
146
150
|
/**
|
|
147
151
|
* Performs the zoom operation around the mouse point
|
|
@@ -151,16 +155,20 @@ var MouseWheelZoomModifier = /** @class */ (function (_super) {
|
|
|
151
155
|
MouseWheelZoomModifier.prototype.performZoom = function (mousePoint, wheelDelta) {
|
|
152
156
|
var _this = this;
|
|
153
157
|
var fraction = this.growFactor * wheelDelta;
|
|
158
|
+
var anyUpdated = false;
|
|
154
159
|
if ([XyDirection_1.EXyDirection.XDirection, XyDirection_1.EXyDirection.XyDirection].includes(this.xyDirection)) {
|
|
155
160
|
this.getIncludedXAxis().forEach(function (axis) {
|
|
156
161
|
_this.growBy(mousePoint, axis, fraction);
|
|
162
|
+
anyUpdated = true;
|
|
157
163
|
});
|
|
158
164
|
}
|
|
159
165
|
if ([XyDirection_1.EXyDirection.YDirection, XyDirection_1.EXyDirection.XyDirection].includes(this.xyDirection)) {
|
|
160
166
|
this.getIncludedYAxis().forEach(function (axis) {
|
|
161
167
|
_this.growBy(mousePoint, axis, fraction);
|
|
168
|
+
anyUpdated = true;
|
|
162
169
|
});
|
|
163
170
|
}
|
|
171
|
+
return anyUpdated;
|
|
164
172
|
};
|
|
165
173
|
/**
|
|
166
174
|
* Performs a pan operation
|
|
@@ -168,11 +176,13 @@ var MouseWheelZoomModifier = /** @class */ (function (_super) {
|
|
|
168
176
|
*/
|
|
169
177
|
MouseWheelZoomModifier.prototype.performPan = function (wheelDelta) {
|
|
170
178
|
var _this = this;
|
|
179
|
+
var anyUpdated = false;
|
|
171
180
|
if ([XyDirection_1.EXyDirection.XDirection, XyDirection_1.EXyDirection.XyDirection].includes(this.xyDirection)) {
|
|
172
181
|
this.getIncludedXAxis().forEach(function (axis) {
|
|
173
182
|
var size = _this.getAxisSize(axis);
|
|
174
183
|
var pixels = wheelDelta * _this.growFactor * size;
|
|
175
184
|
axis.scroll(pixels, AxisBase2D_1.EClipMode.None);
|
|
185
|
+
anyUpdated = true;
|
|
176
186
|
});
|
|
177
187
|
}
|
|
178
188
|
if ([XyDirection_1.EXyDirection.YDirection, XyDirection_1.EXyDirection.XyDirection].includes(this.xyDirection)) {
|
|
@@ -180,8 +190,10 @@ var MouseWheelZoomModifier = /** @class */ (function (_super) {
|
|
|
180
190
|
var size = _this.getAxisSize(axis);
|
|
181
191
|
var pixels = wheelDelta * _this.growFactor * size;
|
|
182
192
|
axis.scroll(pixels, AxisBase2D_1.EClipMode.None);
|
|
193
|
+
anyUpdated = true;
|
|
183
194
|
});
|
|
184
195
|
}
|
|
196
|
+
return anyUpdated;
|
|
185
197
|
};
|
|
186
198
|
/** @inheritDoc */
|
|
187
199
|
MouseWheelZoomModifier.prototype.includeXAxis = function (axis, isIncluded) {
|
|
@@ -2,7 +2,7 @@ import { IGenericAnimation } from "../../Core/Animations/GenericAnimation";
|
|
|
2
2
|
import { NumberRange } from "../../Core/NumberRange";
|
|
3
3
|
import { Point } from "../../Core/Point";
|
|
4
4
|
import { EChart2DModifierType } from "../../types/ChartModifierType";
|
|
5
|
-
import { OverviewCustomResizableAnnotation } from "../Visuals/Annotations/OverviewCustomResizableAnnotation";
|
|
5
|
+
import { ICustomResizableAnnotationOptions, OverviewCustomResizableAnnotation } from "../Visuals/Annotations/OverviewCustomResizableAnnotation";
|
|
6
6
|
import { ChartModifierBase2D, IChartModifierBaseOptions } from "./ChartModifierBase2D";
|
|
7
7
|
import { ModifierMouseArgs } from "./ModifierMouseArgs";
|
|
8
8
|
/**
|
|
@@ -79,6 +79,7 @@ export declare class OverviewRangeSelectionModifier extends ChartModifierBase2D
|
|
|
79
79
|
* Gets or sets the selected area ranges of the modifier
|
|
80
80
|
*/
|
|
81
81
|
set selectedArea(value: NumberRange);
|
|
82
|
+
createAnnotation(options: ICustomResizableAnnotationOptions): OverviewCustomResizableAnnotation;
|
|
82
83
|
protected updateSelectionAnnotation(): void;
|
|
83
84
|
private xVisibleRangeChangeHandler;
|
|
84
85
|
}
|
|
@@ -57,8 +57,9 @@ var OverviewRangeSelectionModifier = /** @class */ (function (_super) {
|
|
|
57
57
|
* @param options Optional parameters used to configure the modifier
|
|
58
58
|
*/
|
|
59
59
|
function OverviewRangeSelectionModifier(options) {
|
|
60
|
+
var _this = this;
|
|
60
61
|
var _a, _b;
|
|
61
|
-
|
|
62
|
+
_this = _super.call(this, options) || this;
|
|
62
63
|
_this.type = ChartModifierType_1.EChart2DModifierType.OverviewRangeSelection;
|
|
63
64
|
_this.animationDuration = 1000;
|
|
64
65
|
_this.animate = true;
|
|
@@ -198,6 +199,9 @@ var OverviewRangeSelectionModifier = /** @class */ (function (_super) {
|
|
|
198
199
|
enumerable: false,
|
|
199
200
|
configurable: true
|
|
200
201
|
});
|
|
202
|
+
OverviewRangeSelectionModifier.prototype.createAnnotation = function (options) {
|
|
203
|
+
return new OverviewCustomResizableAnnotation_1.OverviewCustomResizableAnnotation(options);
|
|
204
|
+
};
|
|
201
205
|
OverviewRangeSelectionModifier.prototype.updateSelectionAnnotation = function () {
|
|
202
206
|
var _this = this;
|
|
203
207
|
var _a;
|
|
@@ -222,9 +226,9 @@ var OverviewRangeSelectionModifier = /** @class */ (function (_super) {
|
|
|
222
226
|
yCoordinateMode: AnnotationBase_1.ECoordinateMode.Relative,
|
|
223
227
|
resizeDirections: XyDirection_1.EXyDirection.XDirection
|
|
224
228
|
};
|
|
225
|
-
var dragBox =
|
|
226
|
-
var annotationBeforeSelectedArea =
|
|
227
|
-
var annotationAfterSelectedArea =
|
|
229
|
+
var dragBox = this.createAnnotation(__assign(__assign({}, commonAnnotationProperties), { x1: this.selectedArea.min, x2: this.selectedArea.max, isEditable: true, svgString: defaultSelectionAnnotationSvgString, onDrag: onDrag }));
|
|
230
|
+
var annotationBeforeSelectedArea = this.createAnnotation(__assign(__assign({}, commonAnnotationProperties), { x1: xAxis.visibleRange.min, x2: this.selectedArea.min, svgString: defaultUnSelectedAnnotationSvgString }));
|
|
231
|
+
var annotationAfterSelectedArea = this.createAnnotation(__assign(__assign({}, commonAnnotationProperties), { x1: this.selectedArea.max, x2: xAxis.visibleRange.max, svgString: defaultUnSelectedAnnotationSvgString }));
|
|
228
232
|
if (xAxis.isHorizontalAxis) {
|
|
229
233
|
dragBox.adornerSvgStringTemplate = horizontalAdornerSvgTemplate;
|
|
230
234
|
annotationBeforeSelectedArea.minWidth = 0;
|
|
@@ -44,8 +44,9 @@ var PinchZoomModifier = /** @class */ (function (_super) {
|
|
|
44
44
|
* @param options Optional parameters used to configure the modifier
|
|
45
45
|
*/
|
|
46
46
|
function PinchZoomModifier(options) {
|
|
47
|
+
var _this = this;
|
|
47
48
|
var _a, _b;
|
|
48
|
-
|
|
49
|
+
_this = _super.call(this, options) || this;
|
|
49
50
|
_this.type = ChartModifierType_1.EChart2DModifierType.PinchZoom;
|
|
50
51
|
/**
|
|
51
52
|
* Defines the sensitivity of zooming in horizontal direction
|
|
@@ -74,17 +74,37 @@ declare enum EMousePosition {
|
|
|
74
74
|
* Optional parameters used to configure a {@link RolloverModifier} at construct time
|
|
75
75
|
*/
|
|
76
76
|
export interface IRolloverModifierOptions extends IChartModifierBaseOptions {
|
|
77
|
+
/** Sets the color of the vertical rollover line as an html color code */
|
|
77
78
|
rolloverLineStroke?: string;
|
|
79
|
+
/** Sets the thickness of the vertical rollover line */
|
|
78
80
|
rolloverLineStrokeThickness?: number;
|
|
81
|
+
/** Gets or Sets the dash array of the vertical rollover line */
|
|
82
|
+
rolloverLineStrokeDashArray?: number[];
|
|
83
|
+
/** Gets or Sets whether to show the vertical rollover line. Default true */
|
|
79
84
|
showRolloverLine?: boolean;
|
|
85
|
+
/** Sets the template for the legend */
|
|
80
86
|
tooltipLegendTemplate?: TRolloverLegendSvgTemplate | string;
|
|
87
|
+
/** Sets the legend X offset */
|
|
81
88
|
tooltipLegendOffsetX?: number;
|
|
89
|
+
/** Sets the legend Y offset */
|
|
82
90
|
tooltipLegendOffsetY?: number;
|
|
91
|
+
/** Sets the tooltipDataTemplate, which allows to customize content for the tooltip */
|
|
83
92
|
tooltipDataTemplate?: TRolloverTooltipDataTemplate | string;
|
|
93
|
+
/** Sets whether to show the tooltip. Default true */
|
|
84
94
|
showTooltip?: boolean;
|
|
95
|
+
/** Sets if tooltips for multiple series are allowed to overlap. Default false */
|
|
85
96
|
allowTooltipOverlapping?: boolean;
|
|
97
|
+
/**
|
|
98
|
+
* If True the {@link RolloverModifier} line snaps to
|
|
99
|
+
* the nearest data-point of the first visible renderable series
|
|
100
|
+
*/
|
|
86
101
|
snapToDataPoint?: boolean;
|
|
102
|
+
/** Sets the parent div element id for the Tooltip */
|
|
87
103
|
placementDivId?: string;
|
|
104
|
+
/**
|
|
105
|
+
* If this is set greater than the default of zero, the toolip will only show values for points in this radius, rather than all points on the vertical line
|
|
106
|
+
*/
|
|
107
|
+
hitTestRadius?: number;
|
|
88
108
|
}
|
|
89
109
|
/**
|
|
90
110
|
* The RolloverModifier provides tooltip and cursor behavior on a 2D {@link SciChartSurface}
|
|
@@ -118,6 +138,10 @@ export declare class RolloverModifier extends ChartModifierBase2D implements IIn
|
|
|
118
138
|
* the nearest data-point of the first visible renderable series
|
|
119
139
|
*/
|
|
120
140
|
snapToDataPoint: boolean;
|
|
141
|
+
/**
|
|
142
|
+
* If this is set greater than the default of zero, the toolip will only show values for points in this radius, rather than all points on the vertical line
|
|
143
|
+
*/
|
|
144
|
+
hitTestRadius: number;
|
|
121
145
|
private readonly rolloverLineAnnotation;
|
|
122
146
|
private readonly legendAnnotation;
|
|
123
147
|
private mousePosition;
|
|
@@ -136,17 +160,33 @@ export declare class RolloverModifier extends ChartModifierBase2D implements IIn
|
|
|
136
160
|
* @inheritDoc
|
|
137
161
|
*/
|
|
138
162
|
applyTheme(themeProvider: IThemeProvider): void;
|
|
163
|
+
/** Gets or Sets the color of the vertical rollover line as an html color code */
|
|
139
164
|
get rolloverLineStroke(): string;
|
|
165
|
+
/** Gets or Sets the color of the vertical rollover line as an html color code */
|
|
140
166
|
set rolloverLineStroke(rolloverLineStroke: string);
|
|
167
|
+
/** Gets or Sets the thickness of the vertical rollover line */
|
|
141
168
|
get rolloverLineStrokeThickness(): number;
|
|
169
|
+
/** Gets or Sets the thickness of the vertical rollover line */
|
|
142
170
|
set rolloverLineStrokeThickness(rolloverLineStrokeThickness: number);
|
|
171
|
+
/** Gets or Sets the dash array of the vertical rollover line */
|
|
172
|
+
get rolloverLineStrokeDashArray(): number[];
|
|
173
|
+
/** Gets or Sets the dash array of the vertical rollover line */
|
|
174
|
+
set rolloverLineStrokeDashArray(rolloverLineStrokeDashArray: number[]);
|
|
175
|
+
/** Gets or Sets whether to show the vertical rollover line. Default true */
|
|
143
176
|
get showRolloverLine(): boolean;
|
|
177
|
+
/** Gets or Sets whether to show the vertical rollover line. Default true */
|
|
144
178
|
set showRolloverLine(showRolloverLine: boolean);
|
|
179
|
+
/** Gets or Sets the tooltipDataTemplate, which allows you to customize content for the tooltip */
|
|
145
180
|
get tooltipDataTemplate(): TRolloverTooltipDataTemplate;
|
|
181
|
+
/** Gets or Sets the tooltipDataTemplate, which allows you to customize content for the tooltip */
|
|
146
182
|
set tooltipDataTemplate(value: TRolloverTooltipDataTemplate);
|
|
183
|
+
/** Gets or Sets whether to show the tooltip. Default true */
|
|
147
184
|
get showTooltip(): boolean;
|
|
185
|
+
/** Gets or Sets whether to show the tooltip. Default true */
|
|
148
186
|
set showTooltip(value: boolean);
|
|
187
|
+
/** Gets or Sets if tooltips for multiple series are allowed to overlap. Default false */
|
|
149
188
|
get allowTooltipOverlapping(): boolean;
|
|
189
|
+
/** Gets or Sets if tooltips for multiple series are allowed to overlap. Default false */
|
|
150
190
|
set allowTooltipOverlapping(value: boolean);
|
|
151
191
|
/**
|
|
152
192
|
* @inheritDoc
|
|
@@ -72,8 +72,9 @@ var RolloverModifier = /** @class */ (function (_super) {
|
|
|
72
72
|
* @param options Optional parameters {@link IRolloverModifierOptions} used to configure the modifier
|
|
73
73
|
*/
|
|
74
74
|
function RolloverModifier(options) {
|
|
75
|
-
var
|
|
76
|
-
var
|
|
75
|
+
var _this = this;
|
|
76
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
77
|
+
_this = _super.call(this, options) || this;
|
|
77
78
|
_this.type = ChartModifierType_1.EChart2DModifierType.Rollover;
|
|
78
79
|
/**
|
|
79
80
|
* Gets or sets the legend X offset
|
|
@@ -88,6 +89,10 @@ var RolloverModifier = /** @class */ (function (_super) {
|
|
|
88
89
|
* the nearest data-point of the first visible renderable series
|
|
89
90
|
*/
|
|
90
91
|
_this.snapToDataPoint = false;
|
|
92
|
+
/**
|
|
93
|
+
* If this is set greater than the default of zero, the toolip will only show values for points in this radius, rather than all points on the vertical line
|
|
94
|
+
*/
|
|
95
|
+
_this.hitTestRadius = 0;
|
|
91
96
|
_this.mousePosition = EMousePosition.OutOfCanvas;
|
|
92
97
|
_this.showRolloverLineProperty = true;
|
|
93
98
|
_this.showTooltipProperty = true;
|
|
@@ -98,6 +103,7 @@ var RolloverModifier = /** @class */ (function (_super) {
|
|
|
98
103
|
_this.rolloverLineAnnotation = new LineAnnotation_1.LineAnnotation({
|
|
99
104
|
xCoordinateMode: AnnotationBase_1.ECoordinateMode.Pixel,
|
|
100
105
|
yCoordinateMode: AnnotationBase_1.ECoordinateMode.Pixel,
|
|
106
|
+
strokeDashArray: options === null || options === void 0 ? void 0 : options.rolloverLineStrokeDashArray,
|
|
101
107
|
strokeThickness: (_b = options === null || options === void 0 ? void 0 : options.rolloverLineStrokeThickness) !== null && _b !== void 0 ? _b : 2,
|
|
102
108
|
stroke: (_c = options === null || options === void 0 ? void 0 : options.rolloverLineStroke) !== null && _c !== void 0 ? _c : SciChartSurfaceBase_1.SciChartSurfaceBase.DEFAULT_THEME.cursorLineBrush,
|
|
103
109
|
isHidden: true,
|
|
@@ -135,6 +141,7 @@ var RolloverModifier = /** @class */ (function (_super) {
|
|
|
135
141
|
});
|
|
136
142
|
_this.allowTooltipOverlappingProperty = (_k = options === null || options === void 0 ? void 0 : options.allowTooltipOverlapping) !== null && _k !== void 0 ? _k : _this.allowTooltipOverlappingProperty;
|
|
137
143
|
_this.snapToDataPoint = (_l = options === null || options === void 0 ? void 0 : options.snapToDataPoint) !== null && _l !== void 0 ? _l : _this.snapToDataPoint;
|
|
144
|
+
_this.hitTestRadius = (_m = options === null || options === void 0 ? void 0 : options.hitTestRadius) !== null && _m !== void 0 ? _m : _this.hitTestRadius;
|
|
138
145
|
return _this;
|
|
139
146
|
}
|
|
140
147
|
/**
|
|
@@ -149,9 +156,11 @@ var RolloverModifier = /** @class */ (function (_super) {
|
|
|
149
156
|
}
|
|
150
157
|
};
|
|
151
158
|
Object.defineProperty(RolloverModifier.prototype, "rolloverLineStroke", {
|
|
159
|
+
/** Gets or Sets the color of the vertical rollover line as an html color code */
|
|
152
160
|
get: function () {
|
|
153
161
|
return this.rolloverLineAnnotation.stroke;
|
|
154
162
|
},
|
|
163
|
+
/** Gets or Sets the color of the vertical rollover line as an html color code */
|
|
155
164
|
set: function (rolloverLineStroke) {
|
|
156
165
|
this.rolloverLineAnnotation.stroke = rolloverLineStroke;
|
|
157
166
|
this.notifyPropertyChanged(constants_1.PROPERTY.STROKE);
|
|
@@ -160,9 +169,11 @@ var RolloverModifier = /** @class */ (function (_super) {
|
|
|
160
169
|
configurable: true
|
|
161
170
|
});
|
|
162
171
|
Object.defineProperty(RolloverModifier.prototype, "rolloverLineStrokeThickness", {
|
|
172
|
+
/** Gets or Sets the thickness of the vertical rollover line */
|
|
163
173
|
get: function () {
|
|
164
174
|
return this.rolloverLineAnnotation.strokeThickness;
|
|
165
175
|
},
|
|
176
|
+
/** Gets or Sets the thickness of the vertical rollover line */
|
|
166
177
|
set: function (rolloverLineStrokeThickness) {
|
|
167
178
|
this.rolloverLineAnnotation.strokeThickness = rolloverLineStrokeThickness;
|
|
168
179
|
this.notifyPropertyChanged(constants_1.PROPERTY.STROKE_THICKNESS);
|
|
@@ -170,10 +181,25 @@ var RolloverModifier = /** @class */ (function (_super) {
|
|
|
170
181
|
enumerable: false,
|
|
171
182
|
configurable: true
|
|
172
183
|
});
|
|
184
|
+
Object.defineProperty(RolloverModifier.prototype, "rolloverLineStrokeDashArray", {
|
|
185
|
+
/** Gets or Sets the dash array of the vertical rollover line */
|
|
186
|
+
get: function () {
|
|
187
|
+
return this.rolloverLineAnnotation.strokeDashArray;
|
|
188
|
+
},
|
|
189
|
+
/** Gets or Sets the dash array of the vertical rollover line */
|
|
190
|
+
set: function (rolloverLineStrokeDashArray) {
|
|
191
|
+
this.rolloverLineAnnotation.strokeDashArray = rolloverLineStrokeDashArray;
|
|
192
|
+
this.notifyPropertyChanged(constants_1.PROPERTY.STROKE_DASH_ARRAY);
|
|
193
|
+
},
|
|
194
|
+
enumerable: false,
|
|
195
|
+
configurable: true
|
|
196
|
+
});
|
|
173
197
|
Object.defineProperty(RolloverModifier.prototype, "showRolloverLine", {
|
|
198
|
+
/** Gets or Sets whether to show the vertical rollover line. Default true */
|
|
174
199
|
get: function () {
|
|
175
200
|
return this.showRolloverLineProperty;
|
|
176
201
|
},
|
|
202
|
+
/** Gets or Sets whether to show the vertical rollover line. Default true */
|
|
177
203
|
set: function (showRolloverLine) {
|
|
178
204
|
this.showRolloverLineProperty = showRolloverLine;
|
|
179
205
|
this.notifyPropertyChanged(constants_1.PROPERTY.SHOW_ROLLOVER_LINE);
|
|
@@ -182,9 +208,11 @@ var RolloverModifier = /** @class */ (function (_super) {
|
|
|
182
208
|
configurable: true
|
|
183
209
|
});
|
|
184
210
|
Object.defineProperty(RolloverModifier.prototype, "tooltipDataTemplate", {
|
|
211
|
+
/** Gets or Sets the tooltipDataTemplate, which allows you to customize content for the tooltip */
|
|
185
212
|
get: function () {
|
|
186
213
|
return this.tooltipDataTemplateProperty;
|
|
187
214
|
},
|
|
215
|
+
/** Gets or Sets the tooltipDataTemplate, which allows you to customize content for the tooltip */
|
|
188
216
|
set: function (value) {
|
|
189
217
|
this.tooltipDataTemplateProperty = value;
|
|
190
218
|
this.notifyPropertyChanged(constants_1.PROPERTY.TOOLTIP_DATA_TEMPLATE);
|
|
@@ -193,9 +221,11 @@ var RolloverModifier = /** @class */ (function (_super) {
|
|
|
193
221
|
configurable: true
|
|
194
222
|
});
|
|
195
223
|
Object.defineProperty(RolloverModifier.prototype, "showTooltip", {
|
|
224
|
+
/** Gets or Sets whether to show the tooltip. Default true */
|
|
196
225
|
get: function () {
|
|
197
226
|
return this.showTooltipProperty;
|
|
198
227
|
},
|
|
228
|
+
/** Gets or Sets whether to show the tooltip. Default true */
|
|
199
229
|
set: function (value) {
|
|
200
230
|
this.showTooltipProperty = value;
|
|
201
231
|
this.notifyPropertyChanged(constants_1.PROPERTY.SHOW_TOOLTIP);
|
|
@@ -204,9 +234,11 @@ var RolloverModifier = /** @class */ (function (_super) {
|
|
|
204
234
|
configurable: true
|
|
205
235
|
});
|
|
206
236
|
Object.defineProperty(RolloverModifier.prototype, "allowTooltipOverlapping", {
|
|
237
|
+
/** Gets or Sets if tooltips for multiple series are allowed to overlap. Default false */
|
|
207
238
|
get: function () {
|
|
208
239
|
return this.allowTooltipOverlappingProperty;
|
|
209
240
|
},
|
|
241
|
+
/** Gets or Sets if tooltips for multiple series are allowed to overlap. Default false */
|
|
210
242
|
set: function (value) {
|
|
211
243
|
this.allowTooltipOverlappingProperty = value;
|
|
212
244
|
this.notifyPropertyChanged(constants_1.PROPERTY.ALLOW_TOOLTIP_OVERLAPPING);
|
|
@@ -346,7 +378,12 @@ var RolloverModifier = /** @class */ (function (_super) {
|
|
|
346
378
|
if (!mousePoint) {
|
|
347
379
|
return undefined;
|
|
348
380
|
}
|
|
349
|
-
|
|
381
|
+
if (this.hitTestRadius <= 0) {
|
|
382
|
+
return rs.hitTestProvider.hitTestXSlice(mousePoint.x, mousePoint.y);
|
|
383
|
+
}
|
|
384
|
+
else {
|
|
385
|
+
return rs.hitTestProvider.hitTestDataPoint(mousePoint.x, mousePoint.y, this.hitTestRadius);
|
|
386
|
+
}
|
|
350
387
|
};
|
|
351
388
|
/**
|
|
352
389
|
* Returns current mouse position
|
|
@@ -52,8 +52,9 @@ var RubberBandXyZoomModifier = /** @class */ (function (_super) {
|
|
|
52
52
|
* @param options Optional parameters used to configure the modifier
|
|
53
53
|
*/
|
|
54
54
|
function RubberBandXyZoomModifier(options) {
|
|
55
|
+
var _this = this;
|
|
55
56
|
var _a, _b, _c, _d, _e, _f;
|
|
56
|
-
|
|
57
|
+
_this = _super.call(this, options) || this;
|
|
57
58
|
_this.type = ChartModifierType_1.EChart2DModifierType.RubberBandXYZoom;
|
|
58
59
|
/**
|
|
59
60
|
* When true, the Zoom operations are animated. See also {@link animationDuration} and {@link easingFunction}
|
|
@@ -33,8 +33,9 @@ var SeriesSelectionModifier = /** @class */ (function (_super) {
|
|
|
33
33
|
* @param options Optional parameters used to configure the modifier
|
|
34
34
|
*/
|
|
35
35
|
function SeriesSelectionModifier(options) {
|
|
36
|
+
var _this = this;
|
|
36
37
|
var _a, _b;
|
|
37
|
-
|
|
38
|
+
_this = _super.call(this, options) || this;
|
|
38
39
|
_this.type = ChartModifierType_1.EChart2DModifierType.SeriesSelection;
|
|
39
40
|
/**
|
|
40
41
|
* An array of currently selected series which can be observed by subscribing to the {@link selectionChanged} {@link EventHandler | event handler}
|
|
@@ -30,10 +30,10 @@ export interface IXAxisDragModifierOptions extends IChartModifierBaseOptions {
|
|
|
30
30
|
export declare class XAxisDragModifier extends ChartModifierBase2D {
|
|
31
31
|
readonly type = EChart2DModifierType.XAxisDrag;
|
|
32
32
|
dragMode: EDragMode;
|
|
33
|
+
protected isClickedOverXAxis: boolean;
|
|
33
34
|
private pointFrom;
|
|
34
35
|
private activeAxes;
|
|
35
36
|
private initialVisibleRanges;
|
|
36
|
-
private isClickedOverXAxis;
|
|
37
37
|
private isVerticalChart;
|
|
38
38
|
private cursorStyle;
|
|
39
39
|
private includedSeriesMapProperty;
|
|
@@ -43,8 +43,9 @@ var XAxisDragModifier = /** @class */ (function (_super) {
|
|
|
43
43
|
* @param options optional parameters to pass to the XAxisDragModifier to configure it upon construction
|
|
44
44
|
*/
|
|
45
45
|
function XAxisDragModifier(options) {
|
|
46
|
+
var _this = this;
|
|
46
47
|
var _a, _b;
|
|
47
|
-
|
|
48
|
+
_this = _super.call(this, options) || this;
|
|
48
49
|
_this.type = ChartModifierType_1.EChart2DModifierType.XAxisDrag;
|
|
49
50
|
_this.dragMode = DragMode_1.EDragMode.Scaling;
|
|
50
51
|
_this.isClickedOverXAxis = false;
|
|
@@ -31,10 +31,10 @@ export interface IYAxisDragModifierOptions extends IChartModifierBaseOptions {
|
|
|
31
31
|
export declare class YAxisDragModifier extends ChartModifierBase2D implements IIncludeAxis {
|
|
32
32
|
readonly type = EChart2DModifierType.YAxisDrag;
|
|
33
33
|
dragMode: EDragMode;
|
|
34
|
+
protected isClickedOverYAxis: boolean;
|
|
34
35
|
private pointFrom;
|
|
35
36
|
private activeAxes;
|
|
36
37
|
private initialVisibleRanges;
|
|
37
|
-
private isClickedOverYAxis;
|
|
38
38
|
private isVerticalChart;
|
|
39
39
|
private cursorStyle;
|
|
40
40
|
private includedSeriesMapProperty;
|
|
@@ -43,8 +43,9 @@ var YAxisDragModifier = /** @class */ (function (_super) {
|
|
|
43
43
|
* @param options optional parameters to pass to the XAxisDragModifier to configure it upon construction
|
|
44
44
|
*/
|
|
45
45
|
function YAxisDragModifier(options) {
|
|
46
|
+
var _this = this;
|
|
46
47
|
var _a, _b;
|
|
47
|
-
|
|
48
|
+
_this = _super.call(this, options) || this;
|
|
48
49
|
_this.type = ChartModifierType_1.EChart2DModifierType.YAxisDrag;
|
|
49
50
|
_this.dragMode = DragMode_1.EDragMode.Scaling;
|
|
50
51
|
_this.isClickedOverYAxis = false;
|
|
@@ -43,8 +43,9 @@ var ChartModifierBase2D_1 = require("./ChartModifierBase2D");
|
|
|
43
43
|
var ZoomExtentsModifier = /** @class */ (function (_super) {
|
|
44
44
|
__extends(ZoomExtentsModifier, _super);
|
|
45
45
|
function ZoomExtentsModifier(options) {
|
|
46
|
+
var _this = this;
|
|
46
47
|
var _a, _b, _c, _d, _e;
|
|
47
|
-
|
|
48
|
+
_this = _super.call(this, options) || this;
|
|
48
49
|
_this.type = ChartModifierType_1.EChart2DModifierType.ZoomExtents;
|
|
49
50
|
/**
|
|
50
51
|
* When true, the Zoom operations are animated. See also {@link animationDuration} and {@link easingFunction}
|
|
@@ -43,8 +43,9 @@ var ZoomPanModifier = /** @class */ (function (_super) {
|
|
|
43
43
|
* @param options optional parameters to pass to the ZoomPanModifier to configure it upon construction
|
|
44
44
|
*/
|
|
45
45
|
function ZoomPanModifier(options) {
|
|
46
|
+
var _this = this;
|
|
46
47
|
var _a, _b, _c, _d;
|
|
47
|
-
|
|
48
|
+
_this = _super.call(this, options) || this;
|
|
48
49
|
_this.type = ChartModifierType_1.EChart2DModifierType.ZoomPan;
|
|
49
50
|
_this.includedXAxisMap = new Map();
|
|
50
51
|
_this.includedYAxisMap = new Map();
|
|
@@ -17,7 +17,9 @@ export declare enum PROPERTY {
|
|
|
17
17
|
SELECTION_STROKE_THICKNESS = "SELECTION_STROKE_THICKNESS",
|
|
18
18
|
STROKE = "STROKE",
|
|
19
19
|
STROKE_THICKNESS = "STROKE_THICKNESS",
|
|
20
|
+
STROKE_DASH_ARRAY = "STROKE_DASH_ARRAY",
|
|
20
21
|
TOOLTIP_DATA_TEMPLATE = "TOOLTIP_DATA_TEMPLATE",
|
|
21
22
|
X_AXIS_ID = "X_AXIS_ID",
|
|
22
|
-
Y_AXIS_ID = "Y_AXIS_ID"
|
|
23
|
+
Y_AXIS_ID = "Y_AXIS_ID",
|
|
24
|
+
PLACEMENT_DIV_ID = "PLACEMENT_DIV_ID"
|
|
23
25
|
}
|
|
@@ -21,7 +21,9 @@ var PROPERTY;
|
|
|
21
21
|
PROPERTY["SELECTION_STROKE_THICKNESS"] = "SELECTION_STROKE_THICKNESS";
|
|
22
22
|
PROPERTY["STROKE"] = "STROKE";
|
|
23
23
|
PROPERTY["STROKE_THICKNESS"] = "STROKE_THICKNESS";
|
|
24
|
+
PROPERTY["STROKE_DASH_ARRAY"] = "STROKE_DASH_ARRAY";
|
|
24
25
|
PROPERTY["TOOLTIP_DATA_TEMPLATE"] = "TOOLTIP_DATA_TEMPLATE";
|
|
25
26
|
PROPERTY["X_AXIS_ID"] = "X_AXIS_ID";
|
|
26
27
|
PROPERTY["Y_AXIS_ID"] = "Y_AXIS_ID";
|
|
28
|
+
PROPERTY["PLACEMENT_DIV_ID"] = "PLACEMENT_DIV_ID";
|
|
27
29
|
})(PROPERTY = exports.PROPERTY || (exports.PROPERTY = {}));
|
|
@@ -0,0 +1,40 @@
|
|
|
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.BatchRenderContext = void 0;
|
|
19
|
+
var WebGlRenderContext2D_1 = require("./WebGlRenderContext2D");
|
|
20
|
+
var BatchRenderContext = /** @class */ (function (_super) {
|
|
21
|
+
__extends(BatchRenderContext, _super);
|
|
22
|
+
function BatchRenderContext() {
|
|
23
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
24
|
+
_this.doDraw = false;
|
|
25
|
+
return _this;
|
|
26
|
+
}
|
|
27
|
+
BatchRenderContext.prototype.drawLayers = function () {
|
|
28
|
+
if (this.doDraw) {
|
|
29
|
+
_super.prototype.drawLayers.call(this);
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
BatchRenderContext.prototype.endFonts = function (force) {
|
|
33
|
+
if (force === void 0) { force = false; }
|
|
34
|
+
if (this.doDraw || force) {
|
|
35
|
+
_super.prototype.endFonts.call(this);
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
return BatchRenderContext;
|
|
39
|
+
}(WebGlRenderContext2D_1.WebGlRenderContext2D));
|
|
40
|
+
exports.BatchRenderContext = BatchRenderContext;
|
|
@@ -7,8 +7,9 @@ import { WebGlRenderContext2D } from "./WebGlRenderContext2D";
|
|
|
7
7
|
export declare class RenderSurface {
|
|
8
8
|
handleDraw: () => void;
|
|
9
9
|
viewportSize: Size;
|
|
10
|
+
readonly canvasId: string;
|
|
10
11
|
private webAssemblyContext;
|
|
11
|
-
constructor(webAssemblyContext: TSciChart, size: Size);
|
|
12
|
+
constructor(webAssemblyContext: TSciChart, size: Size, canvasId: string);
|
|
12
13
|
getRenderContext(): WebGlRenderContext2D;
|
|
13
14
|
invalidateElement(canvasId: string): void;
|
|
14
15
|
onRenderTimeElapsed(): void;
|
|
@@ -8,12 +8,13 @@ var WebGlRenderContext2D_1 = require("./WebGlRenderContext2D");
|
|
|
8
8
|
* @ignore
|
|
9
9
|
*/
|
|
10
10
|
var RenderSurface = /** @class */ (function () {
|
|
11
|
-
function RenderSurface(webAssemblyContext, size) {
|
|
11
|
+
function RenderSurface(webAssemblyContext, size, canvasId) {
|
|
12
12
|
this.webAssemblyContext = webAssemblyContext;
|
|
13
13
|
this.viewportSize = size;
|
|
14
|
+
this.canvasId = canvasId;
|
|
14
15
|
}
|
|
15
16
|
RenderSurface.prototype.getRenderContext = function () {
|
|
16
|
-
return new WebGlRenderContext2D_1.WebGlRenderContext2D(this.webAssemblyContext, this.viewportSize);
|
|
17
|
+
return new WebGlRenderContext2D_1.WebGlRenderContext2D(this.webAssemblyContext, this.viewportSize, this.canvasId);
|
|
17
18
|
};
|
|
18
19
|
// Step_2: Something is changed and it calls invalidateElement
|
|
19
20
|
RenderSurface.prototype.invalidateElement = function (canvasId) {
|