scichart 2.2.2417 → 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/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.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 +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/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
|
@@ -101,11 +101,6 @@ export interface ISurfaceMeshRenderableSeries3DOptions extends IBaseRenderableSe
|
|
|
101
101
|
* @remarks Defaults to 0.05
|
|
102
102
|
*/
|
|
103
103
|
highlight?: number;
|
|
104
|
-
/**
|
|
105
|
-
* Gets or sets the opacity of the {@link SurfaceMeshRenderableSeries3D}
|
|
106
|
-
* @remarks Value range 0.0 to 1.0. Default = 1.
|
|
107
|
-
*/
|
|
108
|
-
opacity?: number;
|
|
109
104
|
}
|
|
110
105
|
/**
|
|
111
106
|
* Enumeration constants which define how a {@link SurfaceMeshRenderableSeries3D | Surface Mesh Plot} is drawn
|
|
@@ -160,23 +160,24 @@ var SurfaceMeshRenderableSeries3D = /** @class */ (function (_super) {
|
|
|
160
160
|
function SurfaceMeshRenderableSeries3D(webAssemblyContext, options) {
|
|
161
161
|
var _this = _super.call(this, webAssemblyContext, options) || this;
|
|
162
162
|
_this.drawMeshAsProperty = (options === null || options === void 0 ? void 0 : options.drawMeshAs) || EDrawMeshAs.SOLID_WIREFRAME;
|
|
163
|
-
_this.strokeThicknessProperty = (options === null || options === void 0 ? void 0 : options.strokeThickness) || 1;
|
|
163
|
+
_this.strokeThicknessProperty = (options === null || options === void 0 ? void 0 : options.strokeThickness) !== undefined ? options === null || options === void 0 ? void 0 : options.strokeThickness : 1;
|
|
164
164
|
_this.drawSkirtProperty = (options === null || options === void 0 ? void 0 : options.drawSkirt) !== undefined ? options === null || options === void 0 ? void 0 : options.drawSkirt : true;
|
|
165
165
|
_this.meshColorPaletteProperty = options === null || options === void 0 ? void 0 : options.meshColorPalette;
|
|
166
|
-
_this.minimumProperty = (options === null || options === void 0 ? void 0 : options.minimum) || 0;
|
|
167
|
-
_this.maximumProperty = (options === null || options === void 0 ? void 0 : options.maximum) || 1;
|
|
166
|
+
_this.minimumProperty = (options === null || options === void 0 ? void 0 : options.minimum) !== undefined ? options === null || options === void 0 ? void 0 : options.minimum : 0;
|
|
167
|
+
_this.maximumProperty = (options === null || options === void 0 ? void 0 : options.maximum) !== undefined ? options === null || options === void 0 ? void 0 : options.maximum : 1;
|
|
168
168
|
_this.meshPaletteModeProperty = (options === null || options === void 0 ? void 0 : options.meshPaletteMode) || EMeshPaletteMode.HEIGHT_MAP_INTERPOLATED;
|
|
169
169
|
_this.colorMapTextureSizeProperty = (options === null || options === void 0 ? void 0 : options.colorMapTextureSize) || new Size_1.Size(1024, 1);
|
|
170
|
-
_this.heightScaleFactorProperty = (options === null || options === void 0 ? void 0 : options.heightScaleFactor) || 1;
|
|
170
|
+
_this.heightScaleFactorProperty = (options === null || options === void 0 ? void 0 : options.heightScaleFactor) !== undefined ? options === null || options === void 0 ? void 0 : options.heightScaleFactor : 1;
|
|
171
171
|
_this.meshResolutionProperty = (options === null || options === void 0 ? void 0 : options.meshResolution) || EMeshResolution.MESH_RESOLUTION_X1;
|
|
172
|
-
_this.yOffsetProperty = (options === null || options === void 0 ? void 0 : options.yOffset) || 0;
|
|
173
|
-
_this.cellHardnessFactorProperty = (options === null || options === void 0 ? void 0 : options.cellHardnessFactor) || 1;
|
|
174
|
-
_this.lightingFactorProperty = (options === null || options === void 0 ? void 0 : options.lightingFactor) || 0.8;
|
|
175
|
-
_this.contourStrokeThicknessProperty =
|
|
176
|
-
|
|
177
|
-
_this.
|
|
172
|
+
_this.yOffsetProperty = (options === null || options === void 0 ? void 0 : options.yOffset) !== undefined ? options === null || options === void 0 ? void 0 : options.yOffset : 0;
|
|
173
|
+
_this.cellHardnessFactorProperty = (options === null || options === void 0 ? void 0 : options.cellHardnessFactor) !== undefined ? options === null || options === void 0 ? void 0 : options.cellHardnessFactor : 1;
|
|
174
|
+
_this.lightingFactorProperty = (options === null || options === void 0 ? void 0 : options.lightingFactor) !== undefined ? options === null || options === void 0 ? void 0 : options.lightingFactor : 0.8;
|
|
175
|
+
_this.contourStrokeThicknessProperty =
|
|
176
|
+
(options === null || options === void 0 ? void 0 : options.contourStrokeThickness) !== undefined ? options === null || options === void 0 ? void 0 : options.contourStrokeThickness : 2;
|
|
177
|
+
_this.contourIntervalProperty = (options === null || options === void 0 ? void 0 : options.contourInterval) !== undefined ? options === null || options === void 0 ? void 0 : options.contourInterval : 20.0;
|
|
178
|
+
_this.contourOffsetProperty = (options === null || options === void 0 ? void 0 : options.contourOffset) !== undefined ? options.contourOffset : 0.1;
|
|
178
179
|
_this.contourStrokeProperty = (options === null || options === void 0 ? void 0 : options.contourStroke) || "#FFFFFF";
|
|
179
|
-
_this.highlightProperty = (options === null || options === void 0 ? void 0 : options.highlight) || 0.05;
|
|
180
|
+
_this.highlightProperty = (options === null || options === void 0 ? void 0 : options.highlight) !== undefined ? options === null || options === void 0 ? void 0 : options.highlight : 0.05;
|
|
180
181
|
_this.setSceneEntity(new SurfaceMeshSceneEntity_1.SurfaceMeshSceneEntity(webAssemblyContext, _this));
|
|
181
182
|
return _this;
|
|
182
183
|
}
|
|
@@ -268,7 +268,7 @@ export declare class SciChart3DSurface extends SciChartSurfaceBase {
|
|
|
268
268
|
* Multiple animations will be run in parallel, so if you want to run one after another, use the onCompleted callback
|
|
269
269
|
* to add another animation after the first completes
|
|
270
270
|
*/
|
|
271
|
-
addAnimation(
|
|
271
|
+
addAnimation(...animations: IGenericAnimation[]): void;
|
|
272
272
|
/**
|
|
273
273
|
* Returns true if an animation is running
|
|
274
274
|
*/
|
|
@@ -289,7 +289,7 @@ export declare class SciChart3DSurface extends SciChartSurfaceBase {
|
|
|
289
289
|
/**
|
|
290
290
|
* @inheritDoc
|
|
291
291
|
*/
|
|
292
|
-
protected applySciChartBackground(
|
|
292
|
+
protected applySciChartBackground(background: string, alphaEnabled?: boolean): void;
|
|
293
293
|
private detachSeries;
|
|
294
294
|
private attachSeries;
|
|
295
295
|
private detachAxis;
|
|
@@ -58,8 +58,9 @@ var SciChart3DSurface = /** @class */ (function (_super) {
|
|
|
58
58
|
* @param options Optional parameters of type {@link ISciChart3DSurfaceOptions} to configure the chart
|
|
59
59
|
*/
|
|
60
60
|
function SciChart3DSurface(webAssemblyContext, options) {
|
|
61
|
+
var _this = this;
|
|
61
62
|
var _a, _b, _c, _d;
|
|
62
|
-
|
|
63
|
+
_this = _super.call(this, webAssemblyContext, options === null || options === void 0 ? void 0 : options.canvases) || this;
|
|
63
64
|
_this.animationList = [];
|
|
64
65
|
_this.isAxisCubeRenderedProperty = false;
|
|
65
66
|
var canvasWidth = (_b = (_a = _this.domCanvas2D) === null || _a === void 0 ? void 0 : _a.width) !== null && _b !== void 0 ? _b : app_1.DEFAULT_WIDTH;
|
|
@@ -104,12 +105,11 @@ var SciChart3DSurface = /** @class */ (function (_super) {
|
|
|
104
105
|
// Watermark
|
|
105
106
|
if (!app_1.IS_TEST_ENV) {
|
|
106
107
|
_this.watermarkProperties = new webAssemblyContext.SCRTWaterMarkProperties();
|
|
107
|
-
_this.watermarkPropertyPosition = new webAssemblyContext.TSRVector2(
|
|
108
|
+
_this.watermarkPropertyPosition = new webAssemblyContext.TSRVector2(0, 0);
|
|
108
109
|
_this.watermarkProperties.SetPosition(_this.watermarkPropertyPosition);
|
|
109
110
|
_this.watermarkProperties.SetOpacity(0.5);
|
|
110
111
|
webAssemblyContext.SCRT3DSetWaterMarkProperties(_this.watermarkProperties);
|
|
111
112
|
}
|
|
112
|
-
_this.applySciChartBackground(SciChartSurfaceBase_1.SciChartSurfaceBase.DEFAULT_THEME.sciChartBackground);
|
|
113
113
|
return _this;
|
|
114
114
|
}
|
|
115
115
|
/**
|
|
@@ -414,9 +414,6 @@ var SciChart3DSurface = /** @class */ (function (_super) {
|
|
|
414
414
|
else {
|
|
415
415
|
this.changeWebGLCanvasViewportSize(this.webAssemblyContext3D, pixelWidth, pixelHeight);
|
|
416
416
|
}
|
|
417
|
-
if (this.domDivContainer) {
|
|
418
|
-
this.domDivContainer.style.height = "".concat(pixelHeight, "px");
|
|
419
|
-
}
|
|
420
417
|
this.invalidateElement();
|
|
421
418
|
};
|
|
422
419
|
/**
|
|
@@ -431,10 +428,15 @@ var SciChart3DSurface = /** @class */ (function (_super) {
|
|
|
431
428
|
* Multiple animations will be run in parallel, so if you want to run one after another, use the onCompleted callback
|
|
432
429
|
* to add another animation after the first completes
|
|
433
430
|
*/
|
|
434
|
-
SciChart3DSurface.prototype.addAnimation = function (
|
|
435
|
-
|
|
431
|
+
SciChart3DSurface.prototype.addAnimation = function () {
|
|
432
|
+
var _this = this;
|
|
433
|
+
var animations = [];
|
|
434
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
435
|
+
animations[_i] = arguments[_i];
|
|
436
|
+
}
|
|
437
|
+
if (animations === undefined)
|
|
436
438
|
return;
|
|
437
|
-
|
|
439
|
+
animations.forEach(function (a) { return _this.animationList.push(a); });
|
|
438
440
|
this.invalidateElement();
|
|
439
441
|
};
|
|
440
442
|
Object.defineProperty(SciChart3DSurface.prototype, "isRunningAnimation", {
|
|
@@ -473,10 +475,13 @@ var SciChart3DSurface = /** @class */ (function (_super) {
|
|
|
473
475
|
* @inheritDoc
|
|
474
476
|
*/
|
|
475
477
|
SciChart3DSurface.prototype.updateWatermark = function (left, bottom) {
|
|
478
|
+
var _a;
|
|
476
479
|
if (!app_1.IS_TEST_ENV) {
|
|
477
480
|
this.watermarkPropertyPosition.x = left;
|
|
478
481
|
this.watermarkPropertyPosition.y = bottom;
|
|
479
482
|
this.watermarkProperties.SetPosition(this.watermarkPropertyPosition);
|
|
483
|
+
var isLightBackground = (_a = this.themeProvider) === null || _a === void 0 ? void 0 : _a.isLightBackground;
|
|
484
|
+
this.watermarkProperties.m_bIsDarkBackground = isLightBackground !== undefined ? !isLightBackground : false;
|
|
480
485
|
this.webAssemblyContext3D.SCRT3DSetWaterMarkProperties(this.watermarkProperties);
|
|
481
486
|
}
|
|
482
487
|
};
|
|
@@ -493,9 +498,11 @@ var SciChart3DSurface = /** @class */ (function (_super) {
|
|
|
493
498
|
/**
|
|
494
499
|
* @inheritDoc
|
|
495
500
|
*/
|
|
496
|
-
SciChart3DSurface.prototype.applySciChartBackground = function (
|
|
501
|
+
SciChart3DSurface.prototype.applySciChartBackground = function (background, alphaEnabled) {
|
|
502
|
+
if (alphaEnabled === void 0) { alphaEnabled = true; }
|
|
503
|
+
this.backgroundProperty = background;
|
|
497
504
|
if (this.domChartRoot) {
|
|
498
|
-
this.domChartRoot.style.background =
|
|
505
|
+
this.domChartRoot.style.background = background;
|
|
499
506
|
}
|
|
500
507
|
this.webAssemblyContext3D.SCRT3DSetClearColor(0, 0, 0, 0);
|
|
501
508
|
};
|
|
@@ -161,21 +161,6 @@ var createMaster = function () {
|
|
|
161
161
|
if (dest) {
|
|
162
162
|
dest.sciChartSurface.doDrawingLoop();
|
|
163
163
|
}
|
|
164
|
-
// sciChartDestinations.forEach(dest => {
|
|
165
|
-
// const { canvasElementId, sciChartSurface } = dest;
|
|
166
|
-
// const chart = wasmContext.SCRTGetGlobalSampleChartInterface3D();
|
|
167
|
-
// // TODO
|
|
168
|
-
// if (chart.GetCurrentDestination()) {
|
|
169
|
-
// const currDestID = chart.GetCurrentDestination().GetID();
|
|
170
|
-
// if (
|
|
171
|
-
// currDestID === canvasElementId &&
|
|
172
|
-
// sciChartSurface.isInitialized &&
|
|
173
|
-
// !sciChartSurface.isDeleted
|
|
174
|
-
// ) {
|
|
175
|
-
// (sciChartSurface as SciChart3DSurface).doDrawingLoop();
|
|
176
|
-
// }
|
|
177
|
-
// }
|
|
178
|
-
// });
|
|
179
164
|
},
|
|
180
165
|
Update: function (deltaTime) {
|
|
181
166
|
// console.log("Update");
|
|
@@ -184,20 +169,27 @@ var createMaster = function () {
|
|
|
184
169
|
// console.log("ShutDownChart");
|
|
185
170
|
}
|
|
186
171
|
};
|
|
187
|
-
var chartInitObj = wasmContext.
|
|
172
|
+
var chartInitObj = wasmContext.SCRTSampleChartInterface.implement(chartInitializer);
|
|
173
|
+
var frameRenderer3D = new wasmContext.SCRTFrameRenderer3D();
|
|
174
|
+
chartInitObj.SetFrameRenderer(frameRenderer3D);
|
|
188
175
|
chartInitObj.SetFPSCounterEnabled(false);
|
|
189
|
-
wasmContext.
|
|
176
|
+
wasmContext.SCRTSetGlobalSampleChartInterface(chartInitObj);
|
|
190
177
|
// create an object that native side can trigger the copy to from...
|
|
191
178
|
var canvasCopyObj = wasmContext.SCRTCopyToDestinationInterface.implement({
|
|
192
179
|
CopyToDestination: (0, SciChartSurfaceBase_1.copyToCanvas)(SciChartSurfaceBase_1.SciChartSurfaceBase.domMasterCanvas, getDestinationById)
|
|
193
180
|
});
|
|
194
181
|
wasmContext.SCRTSetGlobalCopyToDestinationInterface(canvasCopyObj);
|
|
195
182
|
wasmContext.TSRSetDrawRequestsEnabled(true);
|
|
183
|
+
// SCJS-1321 fixes cutting 3d chart issue. 3D wasm and vice versa doesn't know about domMasterCanvas width/height
|
|
184
|
+
// when creating one 3d chart and one 2d chart on the same screen. So we tell the other wasm about existing master canvas size
|
|
185
|
+
if (SciChartSurfaceBase_1.SciChartSurfaceBase.domMasterCanvas) {
|
|
186
|
+
wasmContext.TSRSetMainWindowSize(SciChartSurfaceBase_1.SciChartSurfaceBase.domMasterCanvas.width, SciChartSurfaceBase_1.SciChartSurfaceBase.domMasterCanvas.height);
|
|
187
|
+
}
|
|
196
188
|
// @ts-ignore
|
|
197
189
|
wasmContext.callMain();
|
|
198
190
|
})
|
|
199
191
|
.catch(function () {
|
|
200
|
-
reject("Could not load SciChart WebAssembly module.\n Check your build process and ensure that your
|
|
192
|
+
reject("Could not load SciChart WebAssembly module.\n Check your build process and ensure that your scichart3d.wasm, scichart3d.data and scichart3d.js files are from the same version");
|
|
201
193
|
});
|
|
202
194
|
});
|
|
203
195
|
};
|
|
@@ -32,8 +32,9 @@ var createSingle3dInternal = function (divElement, options) {
|
|
|
32
32
|
initDrawEngineSingleChart(wasmContext, canvases, resolve, (_a = options === null || options === void 0 ? void 0 : options.theme) !== null && _a !== void 0 ? _a : SciChartSurfaceBase_1.SciChartSurfaceBase.DEFAULT_THEME);
|
|
33
33
|
(0, BuildStamp_1.checkBuildStamp)(wasmContext);
|
|
34
34
|
})
|
|
35
|
-
.catch(function () {
|
|
35
|
+
.catch(function (ex) {
|
|
36
36
|
loader.removeChartLoader(canvases.domDivContainer, loaderDiv);
|
|
37
|
+
throw ex;
|
|
37
38
|
reject("Could not load SciChart WebAssembly module.\n Check your build process and ensure that your scichart3d.wasm, scichart3d.data and scichart3d.js files are from the same version");
|
|
38
39
|
});
|
|
39
40
|
}
|
|
@@ -50,21 +51,20 @@ var initDrawEngineSingleChart = function (wasmContext, canvases, resolve, theme)
|
|
|
50
51
|
var height = canvases.domCanvas2D.height;
|
|
51
52
|
// @ts-ignore
|
|
52
53
|
wasmContext.preRun.push(function () { return (ENV.SDL_EMSCRIPTEN_KEYBOARD_ELEMENT = "#chart_WebGL"); });
|
|
53
|
-
wasmContext.TSRSetMainWindowSize(width, height);
|
|
54
54
|
var scs;
|
|
55
55
|
wasmContext.canvas = canvases.domCanvasWebGL;
|
|
56
56
|
var chartInitializer = {
|
|
57
57
|
InitializeChart: function () {
|
|
58
58
|
scs = new SciChart3DSurface_1.SciChart3DSurface(wasmContext, { canvases: canvases });
|
|
59
59
|
scs.applyTheme(theme);
|
|
60
|
-
var unsub = sciChartInitCommon_1.default.subscribeToResize(canvases.domChartRoot, canvases.aspect, scs);
|
|
61
|
-
scs.addDeletable(unsub);
|
|
62
|
-
(0, licenseManager3D_1.applyLicense3D)(wasmContext, scs, true);
|
|
63
|
-
scs.setIsInitialized();
|
|
64
60
|
setTimeout(function () {
|
|
65
|
-
|
|
61
|
+
scs.invalidateElement();
|
|
62
|
+
(0, licenseManager3D_1.applyLicense3D)(wasmContext, scs, true);
|
|
63
|
+
var unsub = sciChartInitCommon_1.default.subscribeToResize(canvases.domChartRoot, canvases.aspect, scs);
|
|
64
|
+
scs.addDeletable(unsub);
|
|
65
|
+
scs.setIsInitialized();
|
|
66
|
+
resolve({ wasmContext: wasmContext, sciChart3DSurface: scs });
|
|
66
67
|
}, 0);
|
|
67
|
-
resolve({ wasmContext: wasmContext, sciChart3DSurface: scs });
|
|
68
68
|
},
|
|
69
69
|
Draw: function (canvasId) {
|
|
70
70
|
if (scs.isInitialized) {
|
|
@@ -78,9 +78,11 @@ var initDrawEngineSingleChart = function (wasmContext, canvases, resolve, theme)
|
|
|
78
78
|
//Logger.log("SciChart3DSurface.ts ShutDownChart");
|
|
79
79
|
}
|
|
80
80
|
};
|
|
81
|
-
var chartInitObj = wasmContext.
|
|
81
|
+
var chartInitObj = wasmContext.SCRTSampleChartInterface.implement(chartInitializer);
|
|
82
|
+
var frameRenderer3D = new wasmContext.SCRTFrameRenderer3D();
|
|
83
|
+
chartInitObj.SetFrameRenderer(frameRenderer3D);
|
|
82
84
|
chartInitObj.SetFPSCounterEnabled(false);
|
|
83
|
-
wasmContext.
|
|
85
|
+
wasmContext.SCRTSetGlobalSampleChartInterface(chartInitObj);
|
|
84
86
|
// @ts-ignore
|
|
85
87
|
wasmContext.callMain();
|
|
86
88
|
};
|
|
@@ -20,6 +20,8 @@ export interface IGenericAnimationOptions<T> {
|
|
|
20
20
|
* A function that is called each frame. Update the target of the animation here. progress is between 0 and 1.
|
|
21
21
|
*/
|
|
22
22
|
onAnimate: (from: T, to: T, progress: number) => void;
|
|
23
|
+
/** When true, onAnimate is called immediately with progress=0 to set the initial value */
|
|
24
|
+
setInitialValueImmediately?: boolean;
|
|
23
25
|
/**
|
|
24
26
|
* A function that is called after the animation has finished.
|
|
25
27
|
*/
|
|
@@ -37,6 +37,9 @@ var GenericAnimation = /** @class */ (function () {
|
|
|
37
37
|
this.onAnimate = options.onAnimate;
|
|
38
38
|
this.onCompleted = options === null || options === void 0 ? void 0 : options.onCompleted;
|
|
39
39
|
this.animationFSM = new AnimationFiniteStateMachine_1.AnimationFiniteStateMachine(this);
|
|
40
|
+
// Set initial progress now
|
|
41
|
+
if (options === null || options === void 0 ? void 0 : options.setInitialValueImmediately)
|
|
42
|
+
this.onAnimate(this.from, this.to, 0);
|
|
40
43
|
}
|
|
41
44
|
Object.defineProperty(GenericAnimation.prototype, "isComplete", {
|
|
42
45
|
get: function () {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.NumberRangeAnimator = void 0;
|
|
4
|
+
var Guard_1 = require("../Guard");
|
|
4
5
|
var NumberRange_1 = require("../NumberRange");
|
|
5
6
|
var EasingFunctions_1 = require("./EasingFunctions");
|
|
6
7
|
var GenericAnimation_1 = require("./GenericAnimation");
|
|
@@ -27,9 +28,9 @@ var NumberRangeAnimator = /** @class */ (function () {
|
|
|
27
28
|
from: from,
|
|
28
29
|
to: to,
|
|
29
30
|
duration: durationMs,
|
|
30
|
-
onAnimate: function (
|
|
31
|
+
onAnimate: function (start, end, progress) {
|
|
31
32
|
var interpolate = isLog ? NumberRangeAnimator.interpolateLog : NumberRangeAnimator.interpolate;
|
|
32
|
-
var intermediate = interpolate(
|
|
33
|
+
var intermediate = interpolate(start, end, progress);
|
|
33
34
|
onAnimate(intermediate);
|
|
34
35
|
},
|
|
35
36
|
delay: 0,
|
|
@@ -39,12 +40,16 @@ var NumberRangeAnimator = /** @class */ (function () {
|
|
|
39
40
|
return animation;
|
|
40
41
|
};
|
|
41
42
|
NumberRangeAnimator.interpolate = function (from, to, interpolationFactor) {
|
|
43
|
+
Guard_1.Guard.notNull(from, "from");
|
|
44
|
+
Guard_1.Guard.notNull(to, "to");
|
|
42
45
|
var newMin = (to.min - from.min) * interpolationFactor + from.min;
|
|
43
46
|
var newMax = (to.max - from.max) * interpolationFactor + from.max;
|
|
44
47
|
var result = new NumberRange_1.NumberRange(newMin, newMax);
|
|
45
48
|
return result;
|
|
46
49
|
};
|
|
47
50
|
NumberRangeAnimator.interpolateLog = function (from, to, interpolationFactor) {
|
|
51
|
+
Guard_1.Guard.notNull(from, "from");
|
|
52
|
+
Guard_1.Guard.notNull(to, "to");
|
|
48
53
|
var newMin = Math.pow(to.min / from.min, interpolationFactor) * from.min;
|
|
49
54
|
var newMax = Math.pow(to.max / from.max, interpolationFactor) * from.max;
|
|
50
55
|
var result = new NumberRange_1.NumberRange(newMin, newMax);
|
package/Core/BuildStamp.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { TSciChart } from "../types/TSciChart";
|
|
2
2
|
import { TSciChart3D } from "../types/TSciChart3D";
|
|
3
|
-
export declare const libraryVersion = "
|
|
3
|
+
export declare const libraryVersion = "3.0.0-beta.224";
|
|
4
4
|
export declare const checkBuildStamp: (wasmContext: TSciChart | TSciChart3D) => boolean;
|
package/Core/BuildStamp.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.checkBuildStamp = exports.libraryVersion = void 0;
|
|
4
|
-
var buildStamp = "2022-12-
|
|
4
|
+
var buildStamp = "2022-12-10T00:00:00";
|
|
5
5
|
var result;
|
|
6
6
|
// tslint:disable-next-line:no-var-requires
|
|
7
|
-
exports.libraryVersion = "
|
|
7
|
+
exports.libraryVersion = "3.0.0-beta.224";
|
|
8
8
|
var checkBuildStamp = function (wasmContext) {
|
|
9
9
|
if (result !== undefined)
|
|
10
10
|
return result;
|
|
@@ -13,6 +13,10 @@ export declare class MouseManager {
|
|
|
13
13
|
*/
|
|
14
14
|
sciChartSurface: SciChartSurfaceBase;
|
|
15
15
|
private canvas;
|
|
16
|
+
/**
|
|
17
|
+
* For subCharts - to track if the mousepointer is over the subChart, so we can fake Enter and Leave events
|
|
18
|
+
*/
|
|
19
|
+
isOver: boolean;
|
|
16
20
|
/**
|
|
17
21
|
* Creates an instance of the {@link MouseManager}
|
|
18
22
|
* @param target The target {@link SciChartSurfaceBase} that we are listening to events on
|
|
@@ -68,6 +72,7 @@ export declare class MouseManager {
|
|
|
68
72
|
* @param event The {@link PointerEvent}
|
|
69
73
|
*/
|
|
70
74
|
onContextMenu(event: MouseEvent): void;
|
|
75
|
+
onDrop(event: MouseEvent): void;
|
|
71
76
|
modifierPointerCancel(args: ModifierMouseArgs): void;
|
|
72
77
|
/**
|
|
73
78
|
* Internal function called to route a mouse move event to all {@link sciChartSurface.chartModifiers}
|
|
@@ -118,6 +123,21 @@ export declare class MouseManager {
|
|
|
118
123
|
* the user must set {@link ChartModifierBase.receiveHandledEvents} = true.
|
|
119
124
|
*/
|
|
120
125
|
modifierMouseEnter(args: ModifierMouseArgs): void;
|
|
126
|
+
/**
|
|
127
|
+
* Internal function called to route a drop event to all {@link sciChartSurface.chartModifiers}
|
|
128
|
+
* @param args The {@link ModifierMouseArgs} to route
|
|
129
|
+
* @remarks Event routing stops if any event marks {@link ModifierMouseArgs.handled} as true. To override this,
|
|
130
|
+
* the user must set {@link ChartModifierBase.receiveHandledEvents} = true.
|
|
131
|
+
*/
|
|
132
|
+
modifierDrop(args: ModifierMouseArgs): void;
|
|
133
|
+
/**
|
|
134
|
+
* Get data from the master surface which will be passed to other surfaces when modifierGroups are used.
|
|
135
|
+
* Use this if you want to use the data value from the master surface in the modifier on the other surfaces
|
|
136
|
+
*/
|
|
137
|
+
getMasterData(sciChartSurface: SciChartSurfaceBase, args: ModifierMouseArgs): any;
|
|
121
138
|
private get chartModifiers();
|
|
122
139
|
private get chartModifierGroups();
|
|
140
|
+
private updateSubCharts;
|
|
141
|
+
private processSubChartEvent;
|
|
142
|
+
private callEvent;
|
|
123
143
|
}
|