scichart 2.2.2417 → 3.0.0-beta.230
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Builder/buildDataSeries.d.ts +16 -1
- package/Builder/buildDataSeries.js +24 -1
- package/Builder/buildSeries.d.ts +60 -3
- package/Builder/buildSeries.js +28 -1
- package/Builder/buildSurface.d.ts +28 -2
- package/Builder/buildSurface.js +53 -31
- package/Builder/chartBuilder.d.ts +20 -7
- package/Builder/chartBuilder.js +37 -3
- package/Charting/ChartModifiers/ChartModifierBase.d.ts +21 -0
- package/Charting/ChartModifiers/ChartModifierBase.js +12 -0
- package/Charting/ChartModifiers/ChartModifierBase2D.js +2 -1
- package/Charting/ChartModifiers/CursorModifier.d.ts +92 -19
- package/Charting/ChartModifiers/CursorModifier.js +147 -58
- package/Charting/ChartModifiers/DataPointSelectionModifier.js +2 -1
- package/Charting/ChartModifiers/LegendModifier.js +2 -1
- package/Charting/ChartModifiers/ModifierMouseArgs.d.ts +6 -1
- package/Charting/ChartModifiers/ModifierMouseArgs.js +13 -3
- package/Charting/ChartModifiers/MouseWheelZoomModifier.d.ts +2 -2
- package/Charting/ChartModifiers/MouseWheelZoomModifier.js +16 -4
- package/Charting/ChartModifiers/OverviewRangeSelectionModifier.d.ts +2 -1
- package/Charting/ChartModifiers/OverviewRangeSelectionModifier.js +8 -4
- package/Charting/ChartModifiers/PinchZoomModifier.js +2 -1
- package/Charting/ChartModifiers/RolloverModifier.d.ts +43 -21
- package/Charting/ChartModifiers/RolloverModifier.js +48 -29
- package/Charting/ChartModifiers/RubberBandXyZoomModifier.d.ts +9 -6
- package/Charting/ChartModifiers/RubberBandXyZoomModifier.js +10 -8
- package/Charting/ChartModifiers/SeriesSelectionModifier.js +2 -1
- package/Charting/ChartModifiers/XAxisDragModifier.d.ts +1 -1
- package/Charting/ChartModifiers/XAxisDragModifier.js +2 -1
- package/Charting/ChartModifiers/YAxisDragModifier.d.ts +1 -1
- package/Charting/ChartModifiers/YAxisDragModifier.js +2 -1
- package/Charting/ChartModifiers/ZoomExtentsModifier.js +2 -1
- package/Charting/ChartModifiers/ZoomPanModifier.js +2 -1
- package/Charting/ChartModifiers/constants.d.ts +3 -1
- package/Charting/ChartModifiers/constants.js +2 -0
- package/Charting/Drawing/BatchRenderContext.d.ts +6 -0
- package/Charting/Drawing/BatchRenderContext.js +40 -0
- package/Charting/Drawing/RenderSurface.d.ts +2 -1
- package/Charting/Drawing/RenderSurface.js +3 -2
- package/Charting/Drawing/WebGlRenderContext2D.d.ts +19 -4
- package/Charting/Drawing/WebGlRenderContext2D.js +70 -41
- package/Charting/LayoutManager/BaseCenteredAxisLayoutStrategy.js +2 -1
- package/Charting/LayoutManager/BottomAlignedInnerAxisLayoutStrategy.js +1 -1
- package/Charting/LayoutManager/CentralAxesLayoutManager.js +2 -1
- package/Charting/LayoutManager/LayoutManager.d.ts +2 -1
- package/Charting/LayoutManager/LayoutManager.js +6 -5
- package/Charting/LayoutManager/LeftAlignedInnerAxisLayoutStrategy.js +1 -1
- package/Charting/LayoutManager/RightAlignedInnerAxisLayoutStrategy.js +1 -1
- package/Charting/LayoutManager/TopAlignedInnerAxisLayoutStrategy.js +1 -1
- package/Charting/Model/BaseDataSeries.d.ts +10 -1
- package/Charting/Model/BaseDataSeries.js +9 -8
- package/Charting/Model/BaseHeatmapDataSeries.d.ts +18 -5
- package/Charting/Model/BaseHeatmapDataSeries.js +21 -13
- package/Charting/Model/ChartData/SeriesInfo.d.ts +6 -0
- package/Charting/Model/ChartData/SeriesInfo.js +5 -0
- package/Charting/Model/ChartData/XyySeriesInfo.d.ts +2 -0
- package/Charting/Model/ChartData/XyySeriesInfo.js +2 -0
- package/Charting/Model/DataDistributionCalculator/DataDistributionCalculator.js +4 -3
- package/Charting/Model/Filters/HlcCustomFilter.js +12 -9
- package/Charting/Model/Filters/HlcFilterBase.js +2 -1
- package/Charting/Model/Filters/HlcScaleOffsetFilter.js +2 -1
- package/Charting/Model/Filters/OhlcCustomFilter.js +12 -9
- package/Charting/Model/Filters/OhlcScaleOffsetFilter.js +2 -1
- package/Charting/Model/Filters/XyCustomFilter.js +12 -9
- package/Charting/Model/Filters/XyFilterBase.d.ts +14 -5
- package/Charting/Model/Filters/XyFilterBase.js +47 -15
- package/Charting/Model/Filters/XyMovingAverageFilter.js +2 -1
- package/Charting/Model/Filters/XyRatioFilter.js +2 -1
- package/Charting/Model/Filters/XyScaleOffsetFilter.js +2 -1
- package/Charting/Model/Filters/XyyCustomFilter.js +12 -9
- package/Charting/Model/Filters/XyyFilterBase.js +2 -1
- package/Charting/Model/Filters/XyyScaleOffsetFilter.js +2 -1
- package/Charting/Model/Filters/XyzCustomFilter.js +12 -9
- package/Charting/Model/Filters/XyzFilterBase.js +2 -1
- package/Charting/Model/Filters/XyzScaleOffsetFilter.js +2 -1
- package/Charting/Model/IDataSeries.d.ts +9 -1
- package/Charting/Model/IDataSeries.js +8 -0
- package/Charting/Model/NonUniformHeatmapDataSeries.d.ts +112 -0
- package/Charting/Model/NonUniformHeatmapDataSeries.js +261 -0
- package/Charting/Model/PaletteFactory.d.ts +40 -4
- package/Charting/Model/PaletteFactory.js +37 -11
- package/Charting/Model/XyTextDataSeries.d.ts +121 -0
- package/Charting/Model/XyTextDataSeries.js +274 -0
- package/Charting/Numerics/CoordinateCalculators/CoordinateCalculatorBase.d.ts +1 -1
- package/Charting/Numerics/Resamplers/ExtremeResamplerHelper.js +1 -1
- package/Charting/Services/RenderPassData.d.ts +15 -5
- package/Charting/Services/RenderPassData.js +27 -5
- package/Charting/Services/SciChartRenderer.d.ts +2 -1
- package/Charting/Services/SciChartRenderer.js +91 -29
- package/Charting/Themes/IThemeProvider.d.ts +61 -0
- package/Charting/Themes/IThemeProvider.js +67 -1
- package/Charting/Themes/SciChartJSDarkTheme.d.ts +4 -0
- package/Charting/Themes/SciChartJSDarkTheme.js +6 -2
- package/Charting/Themes/SciChartJSDarkv2Theme.js +3 -0
- package/Charting/Themes/SciChartJSLightTheme.d.ts +8 -0
- package/Charting/Themes/SciChartJSLightTheme.js +8 -0
- package/Charting/Themes/SciChartJsNavyTheme.d.ts +10 -0
- package/Charting/Themes/SciChartJsNavyTheme.js +49 -0
- package/Charting/Visuals/Annotations/AdornerLayer.js +4 -8
- package/Charting/Visuals/Annotations/AnnotationBase.d.ts +80 -7
- package/Charting/Visuals/Annotations/AnnotationBase.js +238 -28
- package/Charting/Visuals/Annotations/AnnotationClickEventArgs.d.ts +11 -0
- package/Charting/Visuals/Annotations/AnnotationClickEventArgs.js +12 -0
- package/Charting/Visuals/Annotations/AxisMarkerAnnotation.d.ts +1 -0
- package/Charting/Visuals/Annotations/AxisMarkerAnnotation.js +18 -19
- package/Charting/Visuals/Annotations/BoxAnnotation.d.ts +1 -0
- package/Charting/Visuals/Annotations/BoxAnnotation.js +69 -67
- package/Charting/Visuals/Annotations/CursorTooltipSvgAnnotation.d.ts +2 -2
- package/Charting/Visuals/Annotations/CursorTooltipSvgAnnotation.js +20 -20
- package/Charting/Visuals/Annotations/CustomAnnotation.d.ts +1 -1
- package/Charting/Visuals/Annotations/CustomAnnotation.js +3 -2
- package/Charting/Visuals/Annotations/HorizontalLineAnnotation.js +6 -3
- package/Charting/Visuals/Annotations/IAdornerProvider.d.ts +12 -0
- package/Charting/Visuals/Annotations/IAnnotation.d.ts +9 -0
- package/Charting/Visuals/Annotations/IAnnotation.js +9 -0
- package/Charting/Visuals/Annotations/LineAnnotation.d.ts +1 -0
- package/Charting/Visuals/Annotations/LineAnnotation.js +29 -35
- package/Charting/Visuals/Annotations/NativeTextAnnotation.d.ts +193 -0
- package/Charting/Visuals/Annotations/NativeTextAnnotation.js +536 -0
- package/Charting/Visuals/Annotations/OverviewCustomResizableAnnotation.d.ts +4 -2
- package/Charting/Visuals/Annotations/OverviewCustomResizableAnnotation.js +19 -14
- package/Charting/Visuals/Annotations/RolloverLegendSvgAnnotation.d.ts +2 -2
- package/Charting/Visuals/Annotations/RolloverLegendSvgAnnotation.js +9 -8
- package/Charting/Visuals/Annotations/RolloverMarkerSvgAnnotation.d.ts +2 -2
- package/Charting/Visuals/Annotations/RolloverMarkerSvgAnnotation.js +6 -6
- package/Charting/Visuals/Annotations/RolloverTooltipSvgAnnotation.d.ts +2 -2
- package/Charting/Visuals/Annotations/RolloverTooltipSvgAnnotation.js +20 -21
- package/Charting/Visuals/Annotations/SvgAnnotationBase.d.ts +13 -2
- package/Charting/Visuals/Annotations/SvgAnnotationBase.js +34 -42
- package/Charting/Visuals/Annotations/TextAnnotation.d.ts +2 -2
- package/Charting/Visuals/Annotations/TextAnnotation.js +41 -22
- package/Charting/Visuals/Annotations/VerticalLineAnnotation.js +6 -3
- package/Charting/Visuals/Annotations/annotationHelpers.d.ts +6 -6
- package/Charting/Visuals/Annotations/annotationHelpers.js +7 -6
- package/Charting/Visuals/Annotations/constants.d.ts +13 -1
- package/Charting/Visuals/Annotations/constants.js +12 -0
- package/Charting/Visuals/Axis/AxisBase2D.d.ts +24 -4
- package/Charting/Visuals/Axis/AxisBase2D.js +115 -38
- package/Charting/Visuals/Axis/AxisCore.d.ts +10 -5
- package/Charting/Visuals/Axis/AxisCore.js +11 -10
- package/Charting/Visuals/Axis/AxisRenderer.js +114 -20
- package/Charting/Visuals/Axis/CategoryAxis.js +2 -1
- package/Charting/Visuals/Axis/CategoryAxisBase.d.ts +15 -15
- package/Charting/Visuals/Axis/CategoryAxisBase.js +14 -12
- package/Charting/Visuals/Axis/DateTimeNumericAxis.js +2 -1
- package/Charting/Visuals/Axis/DeltaCalculator/DateTimeDeltaCalculator.js +2 -1
- package/Charting/Visuals/Axis/LabelProvider/DateLabelProvider.js +2 -1
- package/Charting/Visuals/Axis/LabelProvider/LabelCache.js +2 -0
- package/Charting/Visuals/Axis/LabelProvider/LabelProviderBase2D.d.ts +14 -0
- package/Charting/Visuals/Axis/LabelProvider/LabelProviderBase2D.js +140 -33
- package/Charting/Visuals/Axis/LabelProvider/LogarithmicLabelProvider.js +2 -1
- package/Charting/Visuals/Axis/LabelProvider/NumericLabelProvider.js +2 -1
- package/Charting/Visuals/Axis/LabelProvider/PieLabelProvider.js +2 -1
- package/Charting/Visuals/Axis/LabelProvider/SmartDateLabelProvider.d.ts +31 -1
- package/Charting/Visuals/Axis/LabelProvider/SmartDateLabelProvider.js +64 -42
- package/Charting/Visuals/Axis/LabelProvider/TextLabelProvider.d.ts +2 -2
- package/Charting/Visuals/Axis/LabelProvider/TextLabelProvider.js +16 -19
- package/Charting/Visuals/Axis/LogarithmicAxis.js +9 -6
- package/Charting/Visuals/Axis/NumericAxis.js +3 -3
- package/Charting/Visuals/Axis/constants.d.ts +1 -0
- package/Charting/Visuals/Axis/constants.js +1 -0
- package/Charting/Visuals/HeatmapLegend.d.ts +95 -0
- package/Charting/Visuals/HeatmapLegend.js +192 -0
- package/Charting/Visuals/Helpers/NativeObject.d.ts +15 -2
- package/Charting/Visuals/Helpers/NativeObject.js +72 -6
- package/Charting/Visuals/I2DSurfaceOptions.d.ts +46 -0
- package/Charting/Visuals/PointMarkers/BasePointMarker.d.ts +5 -0
- package/Charting/Visuals/PointMarkers/BasePointMarker.js +28 -0
- package/Charting/Visuals/PointMarkers/IPointMarker.d.ts +8 -0
- package/Charting/Visuals/RenderableSeries/Animations/BandAnimation.js +2 -1
- package/Charting/Visuals/RenderableSeries/Animations/BandAnimationStyle.js +2 -1
- package/Charting/Visuals/RenderableSeries/Animations/BubbleAnimation.js +2 -1
- package/Charting/Visuals/RenderableSeries/Animations/CandlestickAnimation.js +2 -1
- package/Charting/Visuals/RenderableSeries/Animations/CandlestickAnimationStyle.js +2 -1
- package/Charting/Visuals/RenderableSeries/Animations/ColumnAnimation.js +2 -1
- package/Charting/Visuals/RenderableSeries/Animations/ColumnAnimationStyle.js +2 -1
- package/Charting/Visuals/RenderableSeries/Animations/CustomPointMarkerStyle.js +2 -1
- package/Charting/Visuals/RenderableSeries/Animations/FadeAnimation.js +2 -1
- package/Charting/Visuals/RenderableSeries/Animations/LineAnimation.js +2 -1
- package/Charting/Visuals/RenderableSeries/Animations/MountainAnimation.js +2 -1
- package/Charting/Visuals/RenderableSeries/Animations/MountainAnimationStyle.js +2 -1
- package/Charting/Visuals/RenderableSeries/Animations/OhlcAnimation.js +2 -1
- package/Charting/Visuals/RenderableSeries/Animations/OhlcAnimationStyle.js +2 -1
- package/Charting/Visuals/RenderableSeries/Animations/PointMarkerStyle.js +2 -1
- package/Charting/Visuals/RenderableSeries/Animations/ScaleAnimation.js +2 -1
- package/Charting/Visuals/RenderableSeries/Animations/ScatterAnimation.js +2 -1
- package/Charting/Visuals/RenderableSeries/Animations/SeriesAnimation.d.ts +8 -2
- package/Charting/Visuals/RenderableSeries/Animations/SeriesAnimation.js +3 -3
- package/Charting/Visuals/RenderableSeries/Animations/WaveAnimation.js +2 -1
- package/Charting/Visuals/RenderableSeries/BaseBandRenderableSeries.d.ts +7 -0
- package/Charting/Visuals/RenderableSeries/BaseBandRenderableSeries.js +42 -10
- package/Charting/Visuals/RenderableSeries/BaseHeatmapRenderableSeries.d.ts +128 -0
- package/Charting/Visuals/RenderableSeries/BaseHeatmapRenderableSeries.js +201 -0
- package/Charting/Visuals/RenderableSeries/BaseLineRenderableSeries.d.ts +26 -0
- package/Charting/Visuals/RenderableSeries/BaseLineRenderableSeries.js +39 -3
- package/Charting/Visuals/RenderableSeries/BaseMountainRenderableSeries.d.ts +7 -0
- package/Charting/Visuals/RenderableSeries/BaseMountainRenderableSeries.js +17 -2
- package/Charting/Visuals/RenderableSeries/BaseOhlcRenderableSeries.d.ts +2 -0
- package/Charting/Visuals/RenderableSeries/BaseOhlcRenderableSeries.js +15 -2
- package/Charting/Visuals/RenderableSeries/BaseRenderableSeries.d.ts +10 -0
- package/Charting/Visuals/RenderableSeries/BaseRenderableSeries.js +93 -17
- package/Charting/Visuals/RenderableSeries/BaseStackedCollection.d.ts +8 -1
- package/Charting/Visuals/RenderableSeries/BaseStackedCollection.js +21 -1
- package/Charting/Visuals/RenderableSeries/BaseStackedRenderableSeries.d.ts +1 -0
- package/Charting/Visuals/RenderableSeries/BaseStackedRenderableSeries.js +4 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/BandSeriesDataLabelProvider.d.ts +43 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/BandSeriesDataLabelProvider.js +142 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/BaseDataLabelProvider.d.ts +92 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/BaseDataLabelProvider.js +129 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/BubbleSeriesDataLabelProvider.d.ts +17 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/BubbleSeriesDataLabelProvider.js +62 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/ColumnSeriesDataLabelProvider.d.ts +47 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/ColumnSeriesDataLabelProvider.js +125 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/ContoursDataLabelProvider.d.ts +71 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/ContoursDataLabelProvider.js +221 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/DataLabelLayoutManager.d.ts +5 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/DataLabelLayoutManager.js +2 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/DataLabelProvider.d.ts +208 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/DataLabelProvider.js +410 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/DataLabelState.d.ts +40 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/DataLabelState.js +141 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/HeatMapDataLabelProvider.d.ts +63 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/HeatMapDataLabelProvider.js +198 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/LineSeriesDataLabelProvider.d.ts +35 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/LineSeriesDataLabelProvider.js +92 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/NonUniformHeatmapDataLabelProvider.d.ts +12 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/NonUniformHeatmapDataLabelProvider.js +134 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/TextDataLabelProvider.d.ts +56 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/TextDataLabelProvider.js +167 -0
- package/Charting/Visuals/RenderableSeries/DrawingProviders/BandSeriesDrawingProvider.d.ts +0 -1
- package/Charting/Visuals/RenderableSeries/DrawingProviders/BandSeriesDrawingProvider.js +1 -2
- package/Charting/Visuals/RenderableSeries/DrawingProviders/BaseSeriesDrawingProvider.d.ts +5 -2
- package/Charting/Visuals/RenderableSeries/DrawingProviders/BaseSeriesDrawingProvider.js +47 -40
- package/Charting/Visuals/RenderableSeries/DrawingProviders/BubbleSeriesDrawingProvider.js +1 -1
- package/Charting/Visuals/RenderableSeries/DrawingProviders/ColumnSeriesDrawingProvider.d.ts +1 -0
- package/Charting/Visuals/RenderableSeries/DrawingProviders/ColumnSeriesDrawingProvider.js +18 -5
- package/Charting/Visuals/RenderableSeries/DrawingProviders/ErrorSeriesDrawingProvider.d.ts +0 -1
- package/Charting/Visuals/RenderableSeries/DrawingProviders/ErrorSeriesDrawingProvider.js +14 -27
- package/Charting/Visuals/RenderableSeries/DrawingProviders/LineSeriesDrawingProvider.d.ts +17 -4
- package/Charting/Visuals/RenderableSeries/DrawingProviders/LineSeriesDrawingProvider.js +34 -11
- package/Charting/Visuals/RenderableSeries/DrawingProviders/NonUniformHeatmapDrawingProvider.d.ts +36 -0
- package/Charting/Visuals/RenderableSeries/DrawingProviders/NonUniformHeatmapDrawingProvider.js +493 -0
- package/Charting/Visuals/RenderableSeries/DrawingProviders/PointMarkerDrawingProvider.d.ts +5 -2
- package/Charting/Visuals/RenderableSeries/DrawingProviders/PointMarkerDrawingProvider.js +8 -5
- package/Charting/Visuals/RenderableSeries/DrawingProviders/UniformContoursDrawingProvider.js +4 -4
- package/Charting/Visuals/RenderableSeries/DrawingProviders/UniformHeatmapDrawingProvider.d.ts +3 -0
- package/Charting/Visuals/RenderableSeries/DrawingProviders/UniformHeatmapDrawingProvider.js +15 -4
- package/Charting/Visuals/RenderableSeries/FastBandRenderableSeries.js +2 -1
- package/Charting/Visuals/RenderableSeries/FastBubbleRenderableSeries.d.ts +21 -0
- package/Charting/Visuals/RenderableSeries/FastBubbleRenderableSeries.js +40 -4
- package/Charting/Visuals/RenderableSeries/FastCandlestickRenderableSeries.d.ts +2 -0
- package/Charting/Visuals/RenderableSeries/FastCandlestickRenderableSeries.js +18 -3
- package/Charting/Visuals/RenderableSeries/FastColumnRenderableSeries.d.ts +36 -2
- package/Charting/Visuals/RenderableSeries/FastColumnRenderableSeries.js +77 -8
- package/Charting/Visuals/RenderableSeries/FastErrorBarsRenderableSeries.js +2 -1
- package/Charting/Visuals/RenderableSeries/FastImpulseRenderableSeries.d.ts +7 -0
- package/Charting/Visuals/RenderableSeries/FastImpulseRenderableSeries.js +16 -4
- package/Charting/Visuals/RenderableSeries/FastLineRenderableSeries.js +2 -1
- package/Charting/Visuals/RenderableSeries/FastMountainRenderableSeries.js +2 -1
- package/Charting/Visuals/RenderableSeries/FastOhlcRenderableSeries.js +2 -1
- package/Charting/Visuals/RenderableSeries/FastTextRenderableSeries.d.ts +17 -0
- package/Charting/Visuals/RenderableSeries/FastTextRenderableSeries.js +45 -0
- package/Charting/Visuals/RenderableSeries/HeatmapColorMap.js +3 -2
- package/Charting/Visuals/RenderableSeries/HitTest/BandSeriesHitTestProvider.js +35 -5
- package/Charting/Visuals/RenderableSeries/HitTest/BaseHitTestProvider.js +17 -1
- package/Charting/Visuals/RenderableSeries/HitTest/HitTestInfo.d.ts +8 -0
- package/Charting/Visuals/RenderableSeries/HitTest/MountainSeriesHitTestProvider.js +7 -1
- package/Charting/Visuals/RenderableSeries/HitTest/NonUniformHeatmapHitTestProvider.d.ts +20 -0
- package/Charting/Visuals/RenderableSeries/HitTest/NonUniformHeatmapHitTestProvider.js +86 -0
- package/Charting/Visuals/RenderableSeries/HitTest/TextSeriesHitTestProvider.d.ts +6 -0
- package/Charting/Visuals/RenderableSeries/HitTest/TextSeriesHitTestProvider.js +56 -0
- package/Charting/Visuals/RenderableSeries/HitTest/UniformHeatmapHitTestProvider.js +1 -1
- package/Charting/Visuals/RenderableSeries/HitTest/hitTestHelpers.d.ts +7 -1
- package/Charting/Visuals/RenderableSeries/HitTest/hitTestHelpers.js +34 -2
- package/Charting/Visuals/RenderableSeries/IBaseRenderableSeriesOptions.d.ts +6 -1
- package/Charting/Visuals/RenderableSeries/IRenderableSeries.d.ts +12 -0
- package/Charting/Visuals/RenderableSeries/NonUniformHeatmapRenderableSeries.d.ts +74 -0
- package/Charting/Visuals/RenderableSeries/NonUniformHeatmapRenderableSeries.js +99 -0
- package/Charting/Visuals/RenderableSeries/RolloverModifier/RolloverModifierRenderableSeriesProps.d.ts +7 -2
- package/Charting/Visuals/RenderableSeries/ShaderEffect.js +2 -2
- package/Charting/Visuals/RenderableSeries/SplineBandRenderableSeries.js +2 -1
- package/Charting/Visuals/RenderableSeries/SplineLineRenderableSeries.d.ts +2 -3
- package/Charting/Visuals/RenderableSeries/SplineLineRenderableSeries.js +2 -1
- package/Charting/Visuals/RenderableSeries/SplineMountainRenderableSeries.js +2 -1
- package/Charting/Visuals/RenderableSeries/StackedColumnCollection.js +2 -1
- package/Charting/Visuals/RenderableSeries/StackedColumnRenderableSeries.d.ts +3 -0
- package/Charting/Visuals/RenderableSeries/StackedColumnRenderableSeries.js +13 -2
- package/Charting/Visuals/RenderableSeries/StackedMountainCollection.js +4 -1
- package/Charting/Visuals/RenderableSeries/StackedMountainRenderableSeries.d.ts +7 -0
- package/Charting/Visuals/RenderableSeries/StackedMountainRenderableSeries.js +33 -9
- package/Charting/Visuals/RenderableSeries/UniformContoursRenderableSeries.d.ts +5 -0
- package/Charting/Visuals/RenderableSeries/UniformContoursRenderableSeries.js +7 -1
- package/Charting/Visuals/RenderableSeries/UniformHeatmapRenderableSeries.d.ts +2 -75
- package/Charting/Visuals/RenderableSeries/UniformHeatmapRenderableSeries.js +8 -130
- package/Charting/Visuals/RenderableSeries/XyScatterRenderableSeries.d.ts +5 -0
- package/Charting/Visuals/RenderableSeries/XyScatterRenderableSeries.js +7 -1
- package/Charting/Visuals/RenderableSeries/constants.d.ts +5 -1
- package/Charting/Visuals/RenderableSeries/constants.js +4 -0
- package/Charting/Visuals/RubberBandSvgRect/RubberBandSvgRect.js +3 -3
- package/Charting/Visuals/SciChartDefaults.d.ts +4 -0
- package/Charting/Visuals/SciChartDefaults.js +4 -0
- package/Charting/Visuals/SciChartOverview.js +5 -3
- package/Charting/Visuals/SciChartPieSurface/PieSegment/IPieSegment.d.ts +4 -0
- package/Charting/Visuals/SciChartPieSurface/PieSegment/PieSegment.d.ts +13 -0
- package/Charting/Visuals/SciChartPieSurface/PieSegment/PieSegment.js +22 -4
- package/Charting/Visuals/SciChartPieSurface/PieSegment/constants.d.ts +2 -1
- package/Charting/Visuals/SciChartPieSurface/PieSegment/constants.js +1 -0
- package/Charting/Visuals/SciChartPieSurface/SciChartPieSurface.d.ts +5 -0
- package/Charting/Visuals/SciChartPieSurface/SciChartPieSurface.js +17 -19
- package/Charting/Visuals/SciChartSurface.d.ts +238 -7
- package/Charting/Visuals/SciChartSurface.js +800 -28
- package/Charting/Visuals/SciChartSurfaceBase.d.ts +16 -1
- package/Charting/Visuals/SciChartSurfaceBase.js +34 -2
- package/Charting/Visuals/TextureManager/CanvasTexture.js +1 -1
- package/Charting/Visuals/TextureManager/DpiHelper.js +3 -7
- package/Charting/Visuals/TextureManager/TextureManager.d.ts +11 -0
- package/Charting/Visuals/TextureManager/TextureManager.js +37 -1
- package/Charting/Visuals/createMaster.js +7 -10
- package/Charting/Visuals/createSingle.js +2 -0
- package/Charting/Visuals/licenseManager2D.js +9 -9
- package/Charting/Visuals/sciChartInitCommon.js +16 -12
- package/Charting3D/CameraController.d.ts +5 -0
- package/Charting3D/CameraController.js +6 -0
- package/Charting3D/ChartModifiers/ResetCamera3DModifier.js +2 -1
- package/Charting3D/Visuals/Axis/AxisBase3D.js +7 -5
- package/Charting3D/Visuals/Axis/NumericAxis3D.js +2 -1
- package/Charting3D/Visuals/Primitives/ScatterPointsSceneEntity.d.ts +4 -0
- package/Charting3D/Visuals/Primitives/ScatterPointsSceneEntity.js +7 -0
- package/Charting3D/Visuals/Primitives/SurfaceMeshSceneEntity.js +6 -4
- package/Charting3D/Visuals/RenderableSeries/BaseRenderableSeries3D.d.ts +7 -2
- package/Charting3D/Visuals/RenderableSeries/BaseRenderableSeries3D.js +3 -2
- package/Charting3D/Visuals/RenderableSeries/SurfaceMesh/SurfaceMeshRenderableSeries3D.d.ts +0 -5
- package/Charting3D/Visuals/RenderableSeries/SurfaceMesh/SurfaceMeshRenderableSeries3D.js +12 -11
- package/Charting3D/Visuals/SciChart3DSurface.d.ts +2 -2
- package/Charting3D/Visuals/SciChart3DSurface.js +18 -11
- package/Charting3D/Visuals/createMaster3d.js +10 -18
- package/Charting3D/Visuals/createSingle3d.js +12 -10
- package/Core/Animations/GenericAnimation.d.ts +2 -0
- package/Core/Animations/GenericAnimation.js +3 -0
- package/Core/Animations/NumberRangeAnimator.js +7 -2
- package/Core/BuildStamp.d.ts +1 -1
- package/Core/BuildStamp.js +2 -2
- package/Core/Mouse/MouseManager.d.ts +20 -0
- package/Core/Mouse/MouseManager.js +201 -30
- package/Core/Telemetry.js +1 -1
- package/README.md +91 -403
- package/_wasm/scichart.browser.js +1 -1
- package/_wasm/scichart2d.data +0 -0
- package/_wasm/scichart2d.js +280 -267
- package/_wasm/scichart2d.wasm +0 -0
- package/_wasm/scichart3d.data +0 -0
- package/_wasm/scichart3d.js +280 -268
- package/_wasm/scichart3d.wasm +0 -0
- package/constants/performanceWarnings.d.ts +2 -0
- package/constants/performanceWarnings.js +3 -1
- package/package.json +2 -2
- package/types/AutoColorMode.d.ts +9 -0
- package/types/AutoColorMode.js +13 -0
- package/types/BaseType.d.ts +3 -1
- package/types/BaseType.js +2 -0
- package/types/DataLabelProviderType.d.ts +15 -0
- package/types/DataLabelProviderType.js +19 -0
- package/types/DataLabelSkipMode.d.ts +21 -0
- package/types/DataLabelSkipMode.js +25 -0
- package/types/DefaultRenderLayer.d.ts +10 -0
- package/types/DefaultRenderLayer.js +14 -0
- package/types/MousePosition.d.ts +1 -1
- package/types/MousePosition.js +1 -1
- package/types/SeriesType.d.ts +7 -1
- package/types/SeriesType.js +6 -0
- package/types/SvgClippingMode.d.ts +17 -0
- package/types/SvgClippingMode.js +21 -0
- package/types/TDataLabelStyle.d.ts +16 -0
- package/types/TDataLabelStyle.js +2 -0
- package/types/TSciChart.d.ts +214 -118
- package/types/TSciChart3D.d.ts +104 -70
- package/types/TextPosition.d.ts +17 -0
- package/types/TextPosition.js +39 -0
- package/types/ThemeProviderType.d.ts +3 -1
- package/types/ThemeProviderType.js +2 -0
- package/utils/ccall/appendDoubleVectorFromJsArray.d.ts +10 -1
- package/utils/ccall/appendDoubleVectorFromJsArray.js +24 -1
- package/utils/memoize.d.ts +1 -0
- package/utils/memoize.js +26 -0
- package/utils/number.d.ts +1 -0
- package/utils/number.js +5 -1
- package/utils/parseColor.d.ts +2 -0
- package/utils/parseColor.js +3 -3
- package/utils/text.d.ts +5 -0
- package/utils/text.js +48 -0
- package/utils/translate.d.ts +12 -2
- package/utils/translate.js +67 -11
- package/utils/zeroArray2D.d.ts +5 -0
- package/utils/zeroArray2D.js +5 -0
|
@@ -41,7 +41,8 @@ export declare class ModifierMouseArgs extends ModifierArgsBase {
|
|
|
41
41
|
* @param masterViewport the master viewport or parent chart issuing mouse events
|
|
42
42
|
* @param slaveViewport the slave viewport or child chart receiving mouse events
|
|
43
43
|
*/
|
|
44
|
-
static copy(args: ModifierMouseArgs, modifierGroup: string, masterViewport: Rect, slaveViewport: Rect): ModifierMouseArgs;
|
|
44
|
+
static copy(args: ModifierMouseArgs, modifierGroup: string, masterViewport: Rect, slaveViewport: Rect, masterData: any): ModifierMouseArgs;
|
|
45
|
+
static copyForSubChart(args: ModifierMouseArgs, modifierGroup: string, masterViewport: Rect, slaveViewport: Rect, masterData: any): ModifierMouseArgs;
|
|
45
46
|
/**
|
|
46
47
|
* The MousePoint as an X,Y coordinate where the event occurred
|
|
47
48
|
*/
|
|
@@ -72,6 +73,10 @@ export declare class ModifierMouseArgs extends ModifierArgsBase {
|
|
|
72
73
|
* @remarks This is relevant in the case of linking together multiple charts
|
|
73
74
|
*/
|
|
74
75
|
readonly isMaster: boolean;
|
|
76
|
+
/**
|
|
77
|
+
* If this is not raised from the master or parent, this is the result of getMasterData, used to pass additional info, eg x value.
|
|
78
|
+
*/
|
|
79
|
+
readonly masterData: any;
|
|
75
80
|
/**
|
|
76
81
|
* The Modifier Group string is an ID which is used to group together {@link ChartModifierBase | Chart Modifiers}
|
|
77
82
|
* when used in a multi-chart scenario
|
|
@@ -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
|
|
@@ -2,12 +2,13 @@ import { IIncludeSeries } from "../../Core/IIncludeSeries";
|
|
|
2
2
|
import { Point } from "../../Core/Point";
|
|
3
3
|
import { Rect } from "../../Core/Rect";
|
|
4
4
|
import { EChart2DModifierType } from "../../types/ChartModifierType";
|
|
5
|
+
import { EMousePosition } from "../../types/MousePosition";
|
|
5
6
|
import { SeriesInfo } from "../Model/ChartData/SeriesInfo";
|
|
6
7
|
import { IThemeProvider } from "../Themes/IThemeProvider";
|
|
7
8
|
import { RolloverLegendSvgAnnotation } from "../Visuals/Annotations/RolloverLegendSvgAnnotation";
|
|
8
9
|
import { HitTestInfo } from "../Visuals/RenderableSeries/HitTest/HitTestInfo";
|
|
9
10
|
import { IRenderableSeries } from "../Visuals/RenderableSeries/IRenderableSeries";
|
|
10
|
-
import { RolloverModifierRenderableSeriesProps } from "../Visuals/RenderableSeries/RolloverModifier/RolloverModifierRenderableSeriesProps";
|
|
11
|
+
import { IRolloverModifier, RolloverModifierRenderableSeriesProps } from "../Visuals/RenderableSeries/RolloverModifier/RolloverModifierRenderableSeriesProps";
|
|
11
12
|
import { ChartModifierBase2D, IChartModifierBaseOptions } from "./ChartModifierBase2D";
|
|
12
13
|
import { ModifierMouseArgs } from "./ModifierMouseArgs";
|
|
13
14
|
export declare type TRolloverLegendSvgTemplate = (seriesInfos: SeriesInfo[], svgAnnotation: RolloverLegendSvgAnnotation) => string;
|
|
@@ -52,39 +53,41 @@ export declare type TTooltipProps = {
|
|
|
52
53
|
width: number;
|
|
53
54
|
seriesInfo: SeriesInfo;
|
|
54
55
|
};
|
|
55
|
-
/**
|
|
56
|
-
* @ignore
|
|
57
|
-
* Defines the MousePosition enum constants, used by the {@link RolloverModifier}
|
|
58
|
-
*/
|
|
59
|
-
declare enum EMousePosition {
|
|
60
|
-
/**
|
|
61
|
-
* The mouse position is outside the main canvas
|
|
62
|
-
*/
|
|
63
|
-
OutOfCanvas = "OutOfCanvas",
|
|
64
|
-
/**
|
|
65
|
-
* The mouse position is in the Axis area
|
|
66
|
-
*/
|
|
67
|
-
AxisArea = "AxisArea",
|
|
68
|
-
/**
|
|
69
|
-
* The mouse position is in the Series area
|
|
70
|
-
*/
|
|
71
|
-
SeriesArea = "SeriesArea"
|
|
72
|
-
}
|
|
73
56
|
/**
|
|
74
57
|
* Optional parameters used to configure a {@link RolloverModifier} at construct time
|
|
75
58
|
*/
|
|
76
59
|
export interface IRolloverModifierOptions extends IChartModifierBaseOptions {
|
|
60
|
+
/** Sets the color of the vertical rollover line as an html color code */
|
|
77
61
|
rolloverLineStroke?: string;
|
|
62
|
+
/** Sets the thickness of the vertical rollover line */
|
|
78
63
|
rolloverLineStrokeThickness?: number;
|
|
64
|
+
/** Gets or Sets the dash array of the vertical rollover line */
|
|
65
|
+
rolloverLineStrokeDashArray?: number[];
|
|
66
|
+
/** Gets or Sets whether to show the vertical rollover line. Default true */
|
|
79
67
|
showRolloverLine?: boolean;
|
|
68
|
+
/** Sets the template for the legend */
|
|
80
69
|
tooltipLegendTemplate?: TRolloverLegendSvgTemplate | string;
|
|
70
|
+
/** Sets the legend X offset */
|
|
81
71
|
tooltipLegendOffsetX?: number;
|
|
72
|
+
/** Sets the legend Y offset */
|
|
82
73
|
tooltipLegendOffsetY?: number;
|
|
74
|
+
/** Sets the tooltipDataTemplate, which allows to customize content for the tooltip */
|
|
83
75
|
tooltipDataTemplate?: TRolloverTooltipDataTemplate | string;
|
|
76
|
+
/** Sets whether to show the tooltip. Default true */
|
|
84
77
|
showTooltip?: boolean;
|
|
78
|
+
/** Sets if tooltips for multiple series are allowed to overlap. Default false */
|
|
85
79
|
allowTooltipOverlapping?: boolean;
|
|
80
|
+
/**
|
|
81
|
+
* If True the {@link RolloverModifier} line snaps to
|
|
82
|
+
* the nearest data-point of the first visible renderable series
|
|
83
|
+
*/
|
|
86
84
|
snapToDataPoint?: boolean;
|
|
85
|
+
/** Sets the parent div element id for the Tooltip */
|
|
87
86
|
placementDivId?: string;
|
|
87
|
+
/**
|
|
88
|
+
* 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
|
|
89
|
+
*/
|
|
90
|
+
hitTestRadius?: number;
|
|
88
91
|
}
|
|
89
92
|
/**
|
|
90
93
|
* The RolloverModifier provides tooltip and cursor behavior on a 2D {@link SciChartSurface}
|
|
@@ -99,7 +102,7 @@ export interface IRolloverModifierOptions extends IChartModifierBaseOptions {
|
|
|
99
102
|
* sciChartSurface.chartModifiers.add(new RolloverModifier());
|
|
100
103
|
* ```
|
|
101
104
|
*/
|
|
102
|
-
export declare class RolloverModifier extends ChartModifierBase2D implements IIncludeSeries {
|
|
105
|
+
export declare class RolloverModifier extends ChartModifierBase2D implements IIncludeSeries, IRolloverModifier {
|
|
103
106
|
readonly type = EChart2DModifierType.Rollover;
|
|
104
107
|
/**
|
|
105
108
|
* Gets or sets the template for the legend
|
|
@@ -118,6 +121,10 @@ export declare class RolloverModifier extends ChartModifierBase2D implements IIn
|
|
|
118
121
|
* the nearest data-point of the first visible renderable series
|
|
119
122
|
*/
|
|
120
123
|
snapToDataPoint: boolean;
|
|
124
|
+
/**
|
|
125
|
+
* 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
|
|
126
|
+
*/
|
|
127
|
+
hitTestRadius: number;
|
|
121
128
|
private readonly rolloverLineAnnotation;
|
|
122
129
|
private readonly legendAnnotation;
|
|
123
130
|
private mousePosition;
|
|
@@ -136,17 +143,33 @@ export declare class RolloverModifier extends ChartModifierBase2D implements IIn
|
|
|
136
143
|
* @inheritDoc
|
|
137
144
|
*/
|
|
138
145
|
applyTheme(themeProvider: IThemeProvider): void;
|
|
146
|
+
/** Gets or Sets the color of the vertical rollover line as an html color code */
|
|
139
147
|
get rolloverLineStroke(): string;
|
|
148
|
+
/** Gets or Sets the color of the vertical rollover line as an html color code */
|
|
140
149
|
set rolloverLineStroke(rolloverLineStroke: string);
|
|
150
|
+
/** Gets or Sets the thickness of the vertical rollover line */
|
|
141
151
|
get rolloverLineStrokeThickness(): number;
|
|
152
|
+
/** Gets or Sets the thickness of the vertical rollover line */
|
|
142
153
|
set rolloverLineStrokeThickness(rolloverLineStrokeThickness: number);
|
|
154
|
+
/** Gets or Sets the dash array of the vertical rollover line */
|
|
155
|
+
get rolloverLineStrokeDashArray(): number[];
|
|
156
|
+
/** Gets or Sets the dash array of the vertical rollover line */
|
|
157
|
+
set rolloverLineStrokeDashArray(rolloverLineStrokeDashArray: number[]);
|
|
158
|
+
/** Gets or Sets whether to show the vertical rollover line. Default true */
|
|
143
159
|
get showRolloverLine(): boolean;
|
|
160
|
+
/** Gets or Sets whether to show the vertical rollover line. Default true */
|
|
144
161
|
set showRolloverLine(showRolloverLine: boolean);
|
|
162
|
+
/** Gets or Sets the tooltipDataTemplate, which allows you to customize content for the tooltip */
|
|
145
163
|
get tooltipDataTemplate(): TRolloverTooltipDataTemplate;
|
|
164
|
+
/** Gets or Sets the tooltipDataTemplate, which allows you to customize content for the tooltip */
|
|
146
165
|
set tooltipDataTemplate(value: TRolloverTooltipDataTemplate);
|
|
166
|
+
/** Gets or Sets whether to show the tooltip. Default true */
|
|
147
167
|
get showTooltip(): boolean;
|
|
168
|
+
/** Gets or Sets whether to show the tooltip. Default true */
|
|
148
169
|
set showTooltip(value: boolean);
|
|
170
|
+
/** Gets or Sets if tooltips for multiple series are allowed to overlap. Default false */
|
|
149
171
|
get allowTooltipOverlapping(): boolean;
|
|
172
|
+
/** Gets or Sets if tooltips for multiple series are allowed to overlap. Default false */
|
|
150
173
|
set allowTooltipOverlapping(value: boolean);
|
|
151
174
|
/**
|
|
152
175
|
* @inheritDoc
|
|
@@ -260,4 +283,3 @@ export declare const calcTooltipProps: (index: number, rs: IRenderableSeries, ro
|
|
|
260
283
|
* @param isVerticalChart
|
|
261
284
|
*/
|
|
262
285
|
export declare const calcTooltipPositions: (tooltipArray: TTooltipProps[], allowTooltipOverlapping: boolean, spacing: number, seriesViewRect: Rect, pixelRatio: number, isVerticalChart?: boolean) => TTooltipProps[];
|
|
263
|
-
export {};
|
|
@@ -19,6 +19,7 @@ exports.calcTooltipPositions = exports.calcTooltipProps = exports.RolloverModifi
|
|
|
19
19
|
var classFactory_1 = require("../../Builder/classFactory");
|
|
20
20
|
var BaseType_1 = require("../../types/BaseType");
|
|
21
21
|
var ChartModifierType_1 = require("../../types/ChartModifierType");
|
|
22
|
+
var MousePosition_1 = require("../../types/MousePosition");
|
|
22
23
|
var SeriesType_1 = require("../../types/SeriesType");
|
|
23
24
|
var tooltip_1 = require("../../utils/tooltip");
|
|
24
25
|
var translate_1 = require("../../utils/translate");
|
|
@@ -31,25 +32,6 @@ var SciChartSurfaceBase_1 = require("../Visuals/SciChartSurfaceBase");
|
|
|
31
32
|
var DpiHelper_1 = require("../Visuals/TextureManager/DpiHelper");
|
|
32
33
|
var ChartModifierBase2D_1 = require("./ChartModifierBase2D");
|
|
33
34
|
var constants_1 = require("./constants");
|
|
34
|
-
/**
|
|
35
|
-
* @ignore
|
|
36
|
-
* Defines the MousePosition enum constants, used by the {@link RolloverModifier}
|
|
37
|
-
*/
|
|
38
|
-
var EMousePosition;
|
|
39
|
-
(function (EMousePosition) {
|
|
40
|
-
/**
|
|
41
|
-
* The mouse position is outside the main canvas
|
|
42
|
-
*/
|
|
43
|
-
EMousePosition["OutOfCanvas"] = "OutOfCanvas";
|
|
44
|
-
/**
|
|
45
|
-
* The mouse position is in the Axis area
|
|
46
|
-
*/
|
|
47
|
-
EMousePosition["AxisArea"] = "AxisArea";
|
|
48
|
-
/**
|
|
49
|
-
* The mouse position is in the Series area
|
|
50
|
-
*/
|
|
51
|
-
EMousePosition["SeriesArea"] = "SeriesArea";
|
|
52
|
-
})(EMousePosition || (EMousePosition = {}));
|
|
53
35
|
/** @ignore */
|
|
54
36
|
var TOOLTIP_SPACING = 4;
|
|
55
37
|
/**
|
|
@@ -72,8 +54,9 @@ var RolloverModifier = /** @class */ (function (_super) {
|
|
|
72
54
|
* @param options Optional parameters {@link IRolloverModifierOptions} used to configure the modifier
|
|
73
55
|
*/
|
|
74
56
|
function RolloverModifier(options) {
|
|
75
|
-
var
|
|
76
|
-
var
|
|
57
|
+
var _this = this;
|
|
58
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
59
|
+
_this = _super.call(this, options) || this;
|
|
77
60
|
_this.type = ChartModifierType_1.EChart2DModifierType.Rollover;
|
|
78
61
|
/**
|
|
79
62
|
* Gets or sets the legend X offset
|
|
@@ -88,7 +71,11 @@ var RolloverModifier = /** @class */ (function (_super) {
|
|
|
88
71
|
* the nearest data-point of the first visible renderable series
|
|
89
72
|
*/
|
|
90
73
|
_this.snapToDataPoint = false;
|
|
91
|
-
|
|
74
|
+
/**
|
|
75
|
+
* 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
|
|
76
|
+
*/
|
|
77
|
+
_this.hitTestRadius = 0;
|
|
78
|
+
_this.mousePosition = MousePosition_1.EMousePosition.OutOfCanvas;
|
|
92
79
|
_this.showRolloverLineProperty = true;
|
|
93
80
|
_this.showTooltipProperty = true;
|
|
94
81
|
_this.allowTooltipOverlappingProperty = false;
|
|
@@ -98,6 +85,7 @@ var RolloverModifier = /** @class */ (function (_super) {
|
|
|
98
85
|
_this.rolloverLineAnnotation = new LineAnnotation_1.LineAnnotation({
|
|
99
86
|
xCoordinateMode: AnnotationBase_1.ECoordinateMode.Pixel,
|
|
100
87
|
yCoordinateMode: AnnotationBase_1.ECoordinateMode.Pixel,
|
|
88
|
+
strokeDashArray: options === null || options === void 0 ? void 0 : options.rolloverLineStrokeDashArray,
|
|
101
89
|
strokeThickness: (_b = options === null || options === void 0 ? void 0 : options.rolloverLineStrokeThickness) !== null && _b !== void 0 ? _b : 2,
|
|
102
90
|
stroke: (_c = options === null || options === void 0 ? void 0 : options.rolloverLineStroke) !== null && _c !== void 0 ? _c : SciChartSurfaceBase_1.SciChartSurfaceBase.DEFAULT_THEME.cursorLineBrush,
|
|
103
91
|
isHidden: true,
|
|
@@ -135,6 +123,7 @@ var RolloverModifier = /** @class */ (function (_super) {
|
|
|
135
123
|
});
|
|
136
124
|
_this.allowTooltipOverlappingProperty = (_k = options === null || options === void 0 ? void 0 : options.allowTooltipOverlapping) !== null && _k !== void 0 ? _k : _this.allowTooltipOverlappingProperty;
|
|
137
125
|
_this.snapToDataPoint = (_l = options === null || options === void 0 ? void 0 : options.snapToDataPoint) !== null && _l !== void 0 ? _l : _this.snapToDataPoint;
|
|
126
|
+
_this.hitTestRadius = (_m = options === null || options === void 0 ? void 0 : options.hitTestRadius) !== null && _m !== void 0 ? _m : _this.hitTestRadius;
|
|
138
127
|
return _this;
|
|
139
128
|
}
|
|
140
129
|
/**
|
|
@@ -149,9 +138,11 @@ var RolloverModifier = /** @class */ (function (_super) {
|
|
|
149
138
|
}
|
|
150
139
|
};
|
|
151
140
|
Object.defineProperty(RolloverModifier.prototype, "rolloverLineStroke", {
|
|
141
|
+
/** Gets or Sets the color of the vertical rollover line as an html color code */
|
|
152
142
|
get: function () {
|
|
153
143
|
return this.rolloverLineAnnotation.stroke;
|
|
154
144
|
},
|
|
145
|
+
/** Gets or Sets the color of the vertical rollover line as an html color code */
|
|
155
146
|
set: function (rolloverLineStroke) {
|
|
156
147
|
this.rolloverLineAnnotation.stroke = rolloverLineStroke;
|
|
157
148
|
this.notifyPropertyChanged(constants_1.PROPERTY.STROKE);
|
|
@@ -160,9 +151,11 @@ var RolloverModifier = /** @class */ (function (_super) {
|
|
|
160
151
|
configurable: true
|
|
161
152
|
});
|
|
162
153
|
Object.defineProperty(RolloverModifier.prototype, "rolloverLineStrokeThickness", {
|
|
154
|
+
/** Gets or Sets the thickness of the vertical rollover line */
|
|
163
155
|
get: function () {
|
|
164
156
|
return this.rolloverLineAnnotation.strokeThickness;
|
|
165
157
|
},
|
|
158
|
+
/** Gets or Sets the thickness of the vertical rollover line */
|
|
166
159
|
set: function (rolloverLineStrokeThickness) {
|
|
167
160
|
this.rolloverLineAnnotation.strokeThickness = rolloverLineStrokeThickness;
|
|
168
161
|
this.notifyPropertyChanged(constants_1.PROPERTY.STROKE_THICKNESS);
|
|
@@ -170,10 +163,25 @@ var RolloverModifier = /** @class */ (function (_super) {
|
|
|
170
163
|
enumerable: false,
|
|
171
164
|
configurable: true
|
|
172
165
|
});
|
|
166
|
+
Object.defineProperty(RolloverModifier.prototype, "rolloverLineStrokeDashArray", {
|
|
167
|
+
/** Gets or Sets the dash array of the vertical rollover line */
|
|
168
|
+
get: function () {
|
|
169
|
+
return this.rolloverLineAnnotation.strokeDashArray;
|
|
170
|
+
},
|
|
171
|
+
/** Gets or Sets the dash array of the vertical rollover line */
|
|
172
|
+
set: function (rolloverLineStrokeDashArray) {
|
|
173
|
+
this.rolloverLineAnnotation.strokeDashArray = rolloverLineStrokeDashArray;
|
|
174
|
+
this.notifyPropertyChanged(constants_1.PROPERTY.STROKE_DASH_ARRAY);
|
|
175
|
+
},
|
|
176
|
+
enumerable: false,
|
|
177
|
+
configurable: true
|
|
178
|
+
});
|
|
173
179
|
Object.defineProperty(RolloverModifier.prototype, "showRolloverLine", {
|
|
180
|
+
/** Gets or Sets whether to show the vertical rollover line. Default true */
|
|
174
181
|
get: function () {
|
|
175
182
|
return this.showRolloverLineProperty;
|
|
176
183
|
},
|
|
184
|
+
/** Gets or Sets whether to show the vertical rollover line. Default true */
|
|
177
185
|
set: function (showRolloverLine) {
|
|
178
186
|
this.showRolloverLineProperty = showRolloverLine;
|
|
179
187
|
this.notifyPropertyChanged(constants_1.PROPERTY.SHOW_ROLLOVER_LINE);
|
|
@@ -182,9 +190,11 @@ var RolloverModifier = /** @class */ (function (_super) {
|
|
|
182
190
|
configurable: true
|
|
183
191
|
});
|
|
184
192
|
Object.defineProperty(RolloverModifier.prototype, "tooltipDataTemplate", {
|
|
193
|
+
/** Gets or Sets the tooltipDataTemplate, which allows you to customize content for the tooltip */
|
|
185
194
|
get: function () {
|
|
186
195
|
return this.tooltipDataTemplateProperty;
|
|
187
196
|
},
|
|
197
|
+
/** Gets or Sets the tooltipDataTemplate, which allows you to customize content for the tooltip */
|
|
188
198
|
set: function (value) {
|
|
189
199
|
this.tooltipDataTemplateProperty = value;
|
|
190
200
|
this.notifyPropertyChanged(constants_1.PROPERTY.TOOLTIP_DATA_TEMPLATE);
|
|
@@ -193,9 +203,11 @@ var RolloverModifier = /** @class */ (function (_super) {
|
|
|
193
203
|
configurable: true
|
|
194
204
|
});
|
|
195
205
|
Object.defineProperty(RolloverModifier.prototype, "showTooltip", {
|
|
206
|
+
/** Gets or Sets whether to show the tooltip. Default true */
|
|
196
207
|
get: function () {
|
|
197
208
|
return this.showTooltipProperty;
|
|
198
209
|
},
|
|
210
|
+
/** Gets or Sets whether to show the tooltip. Default true */
|
|
199
211
|
set: function (value) {
|
|
200
212
|
this.showTooltipProperty = value;
|
|
201
213
|
this.notifyPropertyChanged(constants_1.PROPERTY.SHOW_TOOLTIP);
|
|
@@ -204,9 +216,11 @@ var RolloverModifier = /** @class */ (function (_super) {
|
|
|
204
216
|
configurable: true
|
|
205
217
|
});
|
|
206
218
|
Object.defineProperty(RolloverModifier.prototype, "allowTooltipOverlapping", {
|
|
219
|
+
/** Gets or Sets if tooltips for multiple series are allowed to overlap. Default false */
|
|
207
220
|
get: function () {
|
|
208
221
|
return this.allowTooltipOverlappingProperty;
|
|
209
222
|
},
|
|
223
|
+
/** Gets or Sets if tooltips for multiple series are allowed to overlap. Default false */
|
|
210
224
|
set: function (value) {
|
|
211
225
|
this.allowTooltipOverlappingProperty = value;
|
|
212
226
|
this.notifyPropertyChanged(constants_1.PROPERTY.ALLOW_TOOLTIP_OVERLAPPING);
|
|
@@ -258,15 +272,15 @@ var RolloverModifier = /** @class */ (function (_super) {
|
|
|
258
272
|
_super.prototype.modifierMouseMove.call(this, args);
|
|
259
273
|
var translatedMousePoint;
|
|
260
274
|
if (!this.mousePoint) {
|
|
261
|
-
this.mousePosition = EMousePosition.OutOfCanvas;
|
|
275
|
+
this.mousePosition = MousePosition_1.EMousePosition.OutOfCanvas;
|
|
262
276
|
}
|
|
263
277
|
else {
|
|
264
278
|
translatedMousePoint = (0, translate_1.translateFromCanvasToSeriesViewRect)(this.mousePoint, this.parentSurface.seriesViewRect);
|
|
265
279
|
if (!translatedMousePoint) {
|
|
266
|
-
this.mousePosition = EMousePosition.AxisArea;
|
|
280
|
+
this.mousePosition = MousePosition_1.EMousePosition.AxisArea;
|
|
267
281
|
}
|
|
268
282
|
else {
|
|
269
|
-
this.mousePosition = EMousePosition.SeriesArea;
|
|
283
|
+
this.mousePosition = MousePosition_1.EMousePosition.SeriesArea;
|
|
270
284
|
}
|
|
271
285
|
}
|
|
272
286
|
this.update();
|
|
@@ -276,7 +290,7 @@ var RolloverModifier = /** @class */ (function (_super) {
|
|
|
276
290
|
*/
|
|
277
291
|
RolloverModifier.prototype.modifierMouseLeave = function (args) {
|
|
278
292
|
_super.prototype.modifierMouseLeave.call(this, args);
|
|
279
|
-
this.mousePosition = EMousePosition.OutOfCanvas;
|
|
293
|
+
this.mousePosition = MousePosition_1.EMousePosition.OutOfCanvas;
|
|
280
294
|
this.update();
|
|
281
295
|
};
|
|
282
296
|
/**
|
|
@@ -346,7 +360,12 @@ var RolloverModifier = /** @class */ (function (_super) {
|
|
|
346
360
|
if (!mousePoint) {
|
|
347
361
|
return undefined;
|
|
348
362
|
}
|
|
349
|
-
|
|
363
|
+
if (this.hitTestRadius <= 0) {
|
|
364
|
+
return rs.hitTestProvider.hitTestXSlice(mousePoint.x, mousePoint.y);
|
|
365
|
+
}
|
|
366
|
+
else {
|
|
367
|
+
return rs.hitTestProvider.hitTestDataPoint(mousePoint.x, mousePoint.y, this.hitTestRadius);
|
|
368
|
+
}
|
|
350
369
|
};
|
|
351
370
|
/**
|
|
352
371
|
* Returns current mouse position
|
|
@@ -440,7 +459,7 @@ var RolloverModifier = /** @class */ (function (_super) {
|
|
|
440
459
|
}
|
|
441
460
|
};
|
|
442
461
|
RolloverModifier.prototype.updateLine = function () {
|
|
443
|
-
if (this.mousePosition !== EMousePosition.SeriesArea) {
|
|
462
|
+
if (this.mousePosition !== MousePosition_1.EMousePosition.SeriesArea) {
|
|
444
463
|
this.rolloverLineAnnotation.isHidden = true;
|
|
445
464
|
return;
|
|
446
465
|
}
|
|
@@ -514,7 +533,7 @@ var RolloverModifier = /** @class */ (function (_super) {
|
|
|
514
533
|
rs.rolloverModifierProps1.tooltip.y1 = undefined;
|
|
515
534
|
}
|
|
516
535
|
});
|
|
517
|
-
if (this.mousePosition !== EMousePosition.SeriesArea) {
|
|
536
|
+
if (this.mousePosition !== MousePosition_1.EMousePosition.SeriesArea) {
|
|
518
537
|
rsList.forEach(function (rs) {
|
|
519
538
|
rs.rolloverModifierProps.marker.resumeInvalidate();
|
|
520
539
|
rs.rolloverModifierProps.tooltip.resumeInvalidate();
|
|
@@ -5,6 +5,7 @@ import { EChart2DModifierType } from "../../types/ChartModifierType";
|
|
|
5
5
|
import { EXyDirection } from "../../types/XyDirection";
|
|
6
6
|
import { IThemeProvider } from "../Themes/IThemeProvider";
|
|
7
7
|
import { AxisBase2D } from "../Visuals/Axis/AxisBase2D";
|
|
8
|
+
import { RubberBandSvgRect } from "../Visuals/RubberBandSvgRect/RubberBandSvgRect";
|
|
8
9
|
import { ChartModifierBase2D, IChartModifierBaseOptions } from "./ChartModifierBase2D";
|
|
9
10
|
import { ModifierMouseArgs } from "./ModifierMouseArgs";
|
|
10
11
|
/**
|
|
@@ -53,6 +54,7 @@ export interface IRubberBandXyZoomModifierOptions extends IChartModifierBaseOpti
|
|
|
53
54
|
* {@link RubberBandXyZoomModifier.animationDuration} and {@link RubberBandXyZoomModifier.easingFunction} properties.
|
|
54
55
|
*/
|
|
55
56
|
export declare class RubberBandXyZoomModifier extends ChartModifierBase2D {
|
|
57
|
+
static readonly MIN_DRAG_SENSITIVITY = 5;
|
|
56
58
|
readonly type = EChart2DModifierType.RubberBandXYZoom;
|
|
57
59
|
/**
|
|
58
60
|
* When true, the Zoom operations are animated. See also {@link animationDuration} and {@link easingFunction}
|
|
@@ -66,10 +68,10 @@ export declare class RubberBandXyZoomModifier extends ChartModifierBase2D {
|
|
|
66
68
|
* Defines the easing function for animation. See {@link TEasingFn} for a range of functions
|
|
67
69
|
*/
|
|
68
70
|
easingFunction: TEasingFn;
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
71
|
+
protected rubberBandRect: RubberBandSvgRect;
|
|
72
|
+
protected pointFrom: Point;
|
|
73
|
+
protected pointTo: Point;
|
|
74
|
+
protected isClicked: boolean;
|
|
73
75
|
private fillProperty;
|
|
74
76
|
private strokeProperty;
|
|
75
77
|
private strokeThicknessProperty;
|
|
@@ -145,13 +147,14 @@ export declare class RubberBandXyZoomModifier extends ChartModifierBase2D {
|
|
|
145
147
|
*/
|
|
146
148
|
protected performZoomOnAxis(axis: AxisBase2D, fromCoord: number, toCoord: number): void;
|
|
147
149
|
protected notifyPropertyChanged(propertyName: string): void;
|
|
148
|
-
|
|
149
|
-
|
|
150
|
+
protected calculateDraggedDistance(): number;
|
|
151
|
+
protected updateRubberBandRect(): void;
|
|
150
152
|
}
|
|
151
153
|
/**
|
|
152
154
|
* Given the starting and end mouse-point, computes a rectangle to perform zoom over. Takes into account the xyDirection
|
|
153
155
|
* @param pointFrom the starting point of the mouse
|
|
154
156
|
* @param pointTo the end point of the mouse
|
|
155
157
|
* @param xyDirection the XyDirection
|
|
158
|
+
* @param viewportRect
|
|
156
159
|
*/
|
|
157
160
|
export declare function getRubberBandRect(pointFrom: Point, pointTo: Point, xyDirection: EXyDirection, viewportRect: Rect): Rect;
|