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
package/types/TSciChart3D.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
export declare type TSciChart3D = {
|
|
2
2
|
canvas: HTMLCanvasElement;
|
|
3
3
|
canvas2D: HTMLCanvasElement;
|
|
4
|
+
SCRTFillTextureFloat32: (texture: TSRTexture, width: number, height: number, pixels: SCRTFloatVector) => TSRVector4;
|
|
4
5
|
SCRTDoLeakCheck: () => void;
|
|
5
6
|
SCRT3DSetClearColor: (reg: number, green: number, blue: number, alpha: number) => void;
|
|
6
7
|
SCRTCreateBitmapTexture: (width: number, height: number, textureFormat: eTSRTextureFormat) => TSRTexture;
|
|
7
8
|
SCRTFillTextureAbgr: (texture: TSRTexture, width: number, height: number, pixels: IntVector) => void;
|
|
8
|
-
SCRTFillTextureFloat32: (texture: TSRTexture, width: number, height: number, pixels: FloatVector) => TSRVector4;
|
|
9
9
|
TSRRequestExit: () => void;
|
|
10
10
|
TSRRequestDraw: () => void;
|
|
11
11
|
TSRRequestCanvasDraw: (canvasID: string) => void;
|
|
@@ -17,20 +17,21 @@ export declare type TSciChart3D = {
|
|
|
17
17
|
SCRTGetTemplateMesh: (meshId: eSCRTMesh) => TSRIndexedMesh;
|
|
18
18
|
SCRTGetTemplateTexture: (textureId: eSCRTTexture) => TSRTexture;
|
|
19
19
|
SCRT3DSetWaterMarkProperties: (properties: SCRTWaterMarkProperties) => void;
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
SCRTSetGlobalSampleChartInterface: (param0: SCRTSampleChartInterface) => void;
|
|
21
|
+
SCRTGetGlobalSampleChartInterface: () => SCRTSampleChartInterface;
|
|
22
22
|
SCRTSetGlobalCopyToDestinationInterface: (param0: SCRTCopyToDestinationInterface) => void;
|
|
23
23
|
SCRTSetClearAlphaParams: (enabled: boolean, alpha: number) => void;
|
|
24
|
+
TSRVector4: (new () => TSRVector4) & (new (x: number, y: number, z: number, w: number) => TSRVector4);
|
|
25
|
+
IntVector: new () => IntVector;
|
|
26
|
+
UIntVector: new () => UIntVector;
|
|
27
|
+
SCRTFloatVector: new () => SCRTFloatVector;
|
|
24
28
|
FloatVector: new () => FloatVector;
|
|
25
29
|
SCRTDoubleVector: new () => SCRTDoubleVector;
|
|
26
30
|
DoubleVector: new () => DoubleVector;
|
|
27
|
-
IntVector: new () => IntVector;
|
|
28
|
-
UIntVector: new () => UIntVector;
|
|
29
31
|
eTSRTextureFormat: {
|
|
30
32
|
TSR_TEXTUREFORMAT_A8B8G8R8: eTSRTextureFormat;
|
|
31
33
|
TSR_TEXTUREFORMAT_R32F: eTSRTextureFormat;
|
|
32
34
|
};
|
|
33
|
-
TSRVector4: (new () => TSRVector4) & (new (x: number, y: number, z: number, w: number) => TSRVector4);
|
|
34
35
|
StringVector: new () => StringVector;
|
|
35
36
|
LinearCoordinateCalculatorDouble: new (ViewportDimension: number, VisibleMin: number, VisibleMax: number, ViewportOffset: number, CoordOffset: number) => LinearCoordinateCalculatorDouble;
|
|
36
37
|
FlippedLinearCoordinateCalculatorDouble: new (ViewportDimension: number, VisibleMin: number, VisibleMax: number, ViewportOffset: number, CoordOffset: number) => FlippedLinearCoordinateCalculatorDouble;
|
|
@@ -174,15 +175,7 @@ export declare type TSciChart3D = {
|
|
|
174
175
|
};
|
|
175
176
|
SCRTWaterMarkProperties: new () => SCRTWaterMarkProperties;
|
|
176
177
|
TSRVector2: (new () => TSRVector2) & (new (x: number, y: number) => TSRVector2);
|
|
177
|
-
|
|
178
|
-
implement: (wrapper: SCRTSampleChartInterface3DWrapper) => SCRTSampleChartInterface3D;
|
|
179
|
-
};
|
|
180
|
-
SCRTCopyToDestinationInterface: {
|
|
181
|
-
implement: (wrapper: SCRTCopyToDestinationInterfaceWrapper) => SCRTCopyToDestinationInterface;
|
|
182
|
-
};
|
|
183
|
-
SCRTSurfaceDestination: {
|
|
184
|
-
implement: (wrapper: SCRTSurfaceDestinationWrapper) => SCRTSurfaceDestination;
|
|
185
|
-
};
|
|
178
|
+
SCRTFrameRenderer3D: new () => SCRTFrameRenderer3D;
|
|
186
179
|
eTSRPlatform: {
|
|
187
180
|
Windows: eTSRPlatform;
|
|
188
181
|
Mac: eTSRPlatform;
|
|
@@ -278,8 +271,30 @@ export declare type TSciChart3D = {
|
|
|
278
271
|
Anisotropy8x: TSRShadowAnisotropy;
|
|
279
272
|
Anisotropy16x: TSRShadowAnisotropy;
|
|
280
273
|
};
|
|
274
|
+
SCRTSampleChartInterface: {
|
|
275
|
+
implement: (wrapper: SCRTSampleChartInterfaceWrapper) => SCRTSampleChartInterface;
|
|
276
|
+
};
|
|
277
|
+
SCRTCopyToDestinationInterface: {
|
|
278
|
+
implement: (wrapper: SCRTCopyToDestinationInterfaceWrapper) => SCRTCopyToDestinationInterface;
|
|
279
|
+
};
|
|
280
|
+
SCRTSurfaceDestination: {
|
|
281
|
+
implement: (wrapper: SCRTSurfaceDestinationWrapper) => SCRTSurfaceDestination;
|
|
282
|
+
};
|
|
281
283
|
};
|
|
282
|
-
export declare class
|
|
284
|
+
export declare class TSRVector4 {
|
|
285
|
+
Assign(x: number, y: number, z: number, w: number): void;
|
|
286
|
+
x: number;
|
|
287
|
+
y: number;
|
|
288
|
+
z: number;
|
|
289
|
+
w: number;
|
|
290
|
+
delete(): void;
|
|
291
|
+
}
|
|
292
|
+
export declare class TSRTexture {
|
|
293
|
+
GetWidth(): number;
|
|
294
|
+
GetHeight(): number;
|
|
295
|
+
delete(): void;
|
|
296
|
+
}
|
|
297
|
+
export declare class IntVector {
|
|
283
298
|
dataPtr(offset: number): number;
|
|
284
299
|
push_back(element: number): void;
|
|
285
300
|
pop_back(): void;
|
|
@@ -295,10 +310,23 @@ export declare class FloatVector {
|
|
|
295
310
|
set(index: number, element: number): void;
|
|
296
311
|
get(index: number): number;
|
|
297
312
|
}
|
|
298
|
-
export declare class
|
|
313
|
+
export declare class UIntVector {
|
|
314
|
+
dataPtr(offset: number): number;
|
|
315
|
+
push_back(element: number): void;
|
|
316
|
+
pop_back(): void;
|
|
317
|
+
size(): number;
|
|
318
|
+
resize(size: number, initialValue: number): void;
|
|
319
|
+
reserve(size: number): void;
|
|
320
|
+
clear(): void;
|
|
321
|
+
fill(element: number): void;
|
|
322
|
+
insertAt(index: number, element: number): void;
|
|
323
|
+
removeAt(index: number): void;
|
|
324
|
+
removeRange(index: number, count: number): void;
|
|
299
325
|
delete(): void;
|
|
326
|
+
set(index: number, element: number): void;
|
|
327
|
+
get(index: number): number;
|
|
300
328
|
}
|
|
301
|
-
export declare class
|
|
329
|
+
export declare class SCRTFloatVector {
|
|
302
330
|
push_back(_dNewValue: number): void;
|
|
303
331
|
resize(_iNewSize: number, _dInitialValue: number): void;
|
|
304
332
|
resizeFast(_iNewSize: number): void;
|
|
@@ -314,7 +342,7 @@ export declare class SCRTDoubleVector {
|
|
|
314
342
|
dataPtr(_iOffset: number): number;
|
|
315
343
|
delete(): void;
|
|
316
344
|
}
|
|
317
|
-
export declare class
|
|
345
|
+
export declare class FloatVector {
|
|
318
346
|
dataPtr(offset: number): number;
|
|
319
347
|
push_back(element: number): void;
|
|
320
348
|
pop_back(): void;
|
|
@@ -330,23 +358,23 @@ export declare class DoubleVector {
|
|
|
330
358
|
set(index: number, element: number): void;
|
|
331
359
|
get(index: number): number;
|
|
332
360
|
}
|
|
333
|
-
export declare class
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
resize(size: number, initialValue: number): void;
|
|
339
|
-
reserve(size: number): void;
|
|
361
|
+
export declare class SCRTDoubleVector {
|
|
362
|
+
push_back(_dNewValue: number): void;
|
|
363
|
+
resize(_iNewSize: number, _dInitialValue: number): void;
|
|
364
|
+
resizeFast(_iNewSize: number): void;
|
|
365
|
+
reserve(_iCount: number): void;
|
|
340
366
|
clear(): void;
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
367
|
+
size(): number;
|
|
368
|
+
capacity(): number;
|
|
369
|
+
get(_iIndex: number): number;
|
|
370
|
+
set(_iIndex: number, _dValue: number): void;
|
|
371
|
+
insertAt(_iIndex: number, _dValue: number): void;
|
|
372
|
+
removeAt(_iIndex: number): void;
|
|
373
|
+
removeRange(_iIndex: number, _iCount: number): void;
|
|
374
|
+
dataPtr(_iOffset: number): number;
|
|
345
375
|
delete(): void;
|
|
346
|
-
set(index: number, element: number): void;
|
|
347
|
-
get(index: number): number;
|
|
348
376
|
}
|
|
349
|
-
export declare class
|
|
377
|
+
export declare class DoubleVector {
|
|
350
378
|
dataPtr(offset: number): number;
|
|
351
379
|
push_back(element: number): void;
|
|
352
380
|
pop_back(): void;
|
|
@@ -370,13 +398,6 @@ export declare class TSRIndexedMesh extends TSRMesh {
|
|
|
370
398
|
}
|
|
371
399
|
export declare class eTSRTextureFormat {
|
|
372
400
|
}
|
|
373
|
-
export declare class TSRVector4 {
|
|
374
|
-
x: number;
|
|
375
|
-
y: number;
|
|
376
|
-
z: number;
|
|
377
|
-
w: number;
|
|
378
|
-
delete(): void;
|
|
379
|
-
}
|
|
380
401
|
export declare class StringVector {
|
|
381
402
|
dataPtr(offset: number): number;
|
|
382
403
|
push_back(element: string): void;
|
|
@@ -514,6 +535,7 @@ export declare class TSRVector3 {
|
|
|
514
535
|
Normalize(): void;
|
|
515
536
|
Dot(param0: TSRVector3): number;
|
|
516
537
|
Cross(param0: TSRVector3, param1: TSRVector3): void;
|
|
538
|
+
Assign(x: number, y: number, z: number): void;
|
|
517
539
|
x: number;
|
|
518
540
|
y: number;
|
|
519
541
|
z: number;
|
|
@@ -679,6 +701,7 @@ export declare class SCRTPoint3DSceneEntityParams {
|
|
|
679
701
|
export declare class SCRTPoint3DSceneEntity extends SCRTSceneEntity {
|
|
680
702
|
Update(deltaTime: number): void;
|
|
681
703
|
Render(): void;
|
|
704
|
+
SetOpacity(opacity: number): void;
|
|
682
705
|
SetPointMarkerType(markerType: eSCRT_POINT_MARKER_TYPE): void;
|
|
683
706
|
GetPointMarkerType(): eSCRT_POINT_MARKER_TYPE;
|
|
684
707
|
SetPointMarkerTexture(texture: TSRTexture): void;
|
|
@@ -735,6 +758,8 @@ export declare class SCRTGridMeshEntity extends SCRTSceneEntity {
|
|
|
735
758
|
Render(): void;
|
|
736
759
|
SetTexture(texture: TSRTexture): void;
|
|
737
760
|
GetHeightMap(): TSRTexture;
|
|
761
|
+
SetOpacity(opacity: number): void;
|
|
762
|
+
GetOpacity(): number;
|
|
738
763
|
SetMeshRange(meshRangeX: SCRTAxisRange, meshRangeY: SCRTAxisRange, meshRangeZ: SCRTAxisRange): void;
|
|
739
764
|
SetVisibleRange(visibleRangeX: SCRTAxisRange, visibleRangeY: SCRTAxisRange, visibleRangeZ: SCRTAxisRange): void;
|
|
740
765
|
SetHeightmapScaleOffset(dataScaleY: number, dataOffsetY: number): void;
|
|
@@ -788,6 +813,8 @@ export declare class eSCRTTexture {
|
|
|
788
813
|
export declare class SCRTWaterMarkProperties {
|
|
789
814
|
SetPosition(position: TSRVector2): void;
|
|
790
815
|
SetOpacity(opacity: number): void;
|
|
816
|
+
m_fCanvasWidth: number;
|
|
817
|
+
m_bIsDarkBackground: boolean;
|
|
791
818
|
delete(): void;
|
|
792
819
|
}
|
|
793
820
|
export declare class TSRVector2 {
|
|
@@ -795,7 +822,41 @@ export declare class TSRVector2 {
|
|
|
795
822
|
y: number;
|
|
796
823
|
delete(): void;
|
|
797
824
|
}
|
|
798
|
-
export declare class
|
|
825
|
+
export declare class SCRTFrameRenderer3D extends SCRTFrameRenderer {
|
|
826
|
+
delete(): void;
|
|
827
|
+
}
|
|
828
|
+
export declare class SCRTFrameRenderer {
|
|
829
|
+
delete(): void;
|
|
830
|
+
}
|
|
831
|
+
export declare class eTSRPlatform {
|
|
832
|
+
}
|
|
833
|
+
export declare class eTSRMetaDataType {
|
|
834
|
+
}
|
|
835
|
+
export declare class eVariableUsage {
|
|
836
|
+
}
|
|
837
|
+
export declare class eTSRRendererType {
|
|
838
|
+
}
|
|
839
|
+
export declare class eTSRCameraProjectionMode {
|
|
840
|
+
}
|
|
841
|
+
export declare class TSRShadowPartitionMode {
|
|
842
|
+
}
|
|
843
|
+
export declare class TSRShadowCascadeSelectionModes {
|
|
844
|
+
}
|
|
845
|
+
export declare class TSRShadowMode {
|
|
846
|
+
}
|
|
847
|
+
export declare class TSRShadowMapSize {
|
|
848
|
+
}
|
|
849
|
+
export declare class TSRShadowDepthBufferFormat {
|
|
850
|
+
}
|
|
851
|
+
export declare class TSRShadowFixedFilterSize {
|
|
852
|
+
}
|
|
853
|
+
export declare class TSRShadowMSAA {
|
|
854
|
+
}
|
|
855
|
+
export declare class TSRShadowSMFormat {
|
|
856
|
+
}
|
|
857
|
+
export declare class TSRShadowAnisotropy {
|
|
858
|
+
}
|
|
859
|
+
export declare class SCRTSampleChartInterface {
|
|
799
860
|
InitializeChart(): void;
|
|
800
861
|
Draw(canvasId: string): void;
|
|
801
862
|
Update(deltaTime: number): void;
|
|
@@ -804,9 +865,10 @@ export declare class SCRTSampleChartInterface3D {
|
|
|
804
865
|
AddDestination(elementID: SCRTSurfaceDestination): void;
|
|
805
866
|
ClearDestinations(): void;
|
|
806
867
|
GetCurrentDestination(): SCRTSurfaceDestination;
|
|
868
|
+
SetFrameRenderer(frameRenderer: SCRTFrameRenderer): void;
|
|
807
869
|
delete(): void;
|
|
808
870
|
}
|
|
809
|
-
export declare class
|
|
871
|
+
export declare class SCRTSampleChartInterfaceWrapper {
|
|
810
872
|
InitializeChart(): void;
|
|
811
873
|
Draw(canvasId: string): void;
|
|
812
874
|
Update(deltaTime: number): void;
|
|
@@ -830,34 +892,6 @@ export declare class SCRTSurfaceDestinationWrapper {
|
|
|
830
892
|
GetHeight(): number;
|
|
831
893
|
GetID(): string;
|
|
832
894
|
}
|
|
833
|
-
export declare class eTSRPlatform {
|
|
834
|
-
}
|
|
835
|
-
export declare class eTSRMetaDataType {
|
|
836
|
-
}
|
|
837
|
-
export declare class eVariableUsage {
|
|
838
|
-
}
|
|
839
|
-
export declare class eTSRRendererType {
|
|
840
|
-
}
|
|
841
|
-
export declare class eTSRCameraProjectionMode {
|
|
842
|
-
}
|
|
843
|
-
export declare class TSRShadowPartitionMode {
|
|
844
|
-
}
|
|
845
|
-
export declare class TSRShadowCascadeSelectionModes {
|
|
846
|
-
}
|
|
847
|
-
export declare class TSRShadowMode {
|
|
848
|
-
}
|
|
849
|
-
export declare class TSRShadowMapSize {
|
|
850
|
-
}
|
|
851
|
-
export declare class TSRShadowDepthBufferFormat {
|
|
852
|
-
}
|
|
853
|
-
export declare class TSRShadowFixedFilterSize {
|
|
854
|
-
}
|
|
855
|
-
export declare class TSRShadowMSAA {
|
|
856
|
-
}
|
|
857
|
-
export declare class TSRShadowSMFormat {
|
|
858
|
-
}
|
|
859
|
-
export declare class TSRShadowAnisotropy {
|
|
860
|
-
}
|
|
861
895
|
export declare type TSciChartCore = {
|
|
862
896
|
canvas: HTMLCanvasElement;
|
|
863
897
|
canvas2D: HTMLCanvasElement;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { TSciChart, eTSRTextAlignMode } from "./TSciChart";
|
|
2
|
+
export declare enum EHorizontalTextPosition {
|
|
3
|
+
Left = "Left",
|
|
4
|
+
Center = "Center",
|
|
5
|
+
Right = "Right"
|
|
6
|
+
}
|
|
7
|
+
export declare enum EVerticalTextPosition {
|
|
8
|
+
Top = "Top",
|
|
9
|
+
Center = "Center",
|
|
10
|
+
Bottom = "Bottom"
|
|
11
|
+
}
|
|
12
|
+
export declare enum EMultiLineAlignment {
|
|
13
|
+
Left = "Left",
|
|
14
|
+
Right = "Right",
|
|
15
|
+
Center = "Center"
|
|
16
|
+
}
|
|
17
|
+
export declare const convertMultiLineAlignment: (multiLineAlignment: EMultiLineAlignment, webAssemblyContext: TSciChart) => eTSRTextAlignMode;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.convertMultiLineAlignment = exports.EMultiLineAlignment = exports.EVerticalTextPosition = exports.EHorizontalTextPosition = void 0;
|
|
4
|
+
var EHorizontalTextPosition;
|
|
5
|
+
(function (EHorizontalTextPosition) {
|
|
6
|
+
EHorizontalTextPosition["Left"] = "Left";
|
|
7
|
+
EHorizontalTextPosition["Center"] = "Center";
|
|
8
|
+
EHorizontalTextPosition["Right"] = "Right";
|
|
9
|
+
})(EHorizontalTextPosition = exports.EHorizontalTextPosition || (exports.EHorizontalTextPosition = {}));
|
|
10
|
+
var EVerticalTextPosition;
|
|
11
|
+
(function (EVerticalTextPosition) {
|
|
12
|
+
EVerticalTextPosition["Top"] = "Top";
|
|
13
|
+
EVerticalTextPosition["Center"] = "Center";
|
|
14
|
+
EVerticalTextPosition["Bottom"] = "Bottom";
|
|
15
|
+
})(EVerticalTextPosition = exports.EVerticalTextPosition || (exports.EVerticalTextPosition = {}));
|
|
16
|
+
var EMultiLineAlignment;
|
|
17
|
+
(function (EMultiLineAlignment) {
|
|
18
|
+
EMultiLineAlignment["Left"] = "Left";
|
|
19
|
+
EMultiLineAlignment["Right"] = "Right";
|
|
20
|
+
EMultiLineAlignment["Center"] = "Center";
|
|
21
|
+
})(EMultiLineAlignment = exports.EMultiLineAlignment || (exports.EMultiLineAlignment = {}));
|
|
22
|
+
var convertMultiLineAlignment = function (multiLineAlignment, webAssemblyContext) {
|
|
23
|
+
var alignMode = webAssemblyContext.eTSRTextAlignMode.Left;
|
|
24
|
+
switch (multiLineAlignment) {
|
|
25
|
+
case EMultiLineAlignment.Left:
|
|
26
|
+
alignMode = webAssemblyContext.eTSRTextAlignMode.Left;
|
|
27
|
+
break;
|
|
28
|
+
case EMultiLineAlignment.Right:
|
|
29
|
+
alignMode = webAssemblyContext.eTSRTextAlignMode.Right;
|
|
30
|
+
break;
|
|
31
|
+
case EMultiLineAlignment.Center:
|
|
32
|
+
alignMode = webAssemblyContext.eTSRTextAlignMode.Center;
|
|
33
|
+
break;
|
|
34
|
+
default:
|
|
35
|
+
break;
|
|
36
|
+
}
|
|
37
|
+
return alignMode;
|
|
38
|
+
};
|
|
39
|
+
exports.convertMultiLineAlignment = convertMultiLineAlignment;
|
|
@@ -6,4 +6,6 @@ var EThemeProviderType;
|
|
|
6
6
|
EThemeProviderType["Light"] = "Light";
|
|
7
7
|
EThemeProviderType["Dark"] = "Dark";
|
|
8
8
|
EThemeProviderType["DarkV2"] = "DarkV2";
|
|
9
|
+
EThemeProviderType["Navy"] = "Navy";
|
|
10
|
+
EThemeProviderType["Custom"] = "Custom";
|
|
9
11
|
})(EThemeProviderType = exports.EThemeProviderType || (exports.EThemeProviderType = {}));
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { NumberArray } from "../../types/NumberArray";
|
|
2
|
-
import { SCRTDoubleVector, TSciChart } from "../../types/TSciChart";
|
|
2
|
+
import { FloatVector, SCRTDoubleVector, SCRTFloatVector, TSciChart } from "../../types/TSciChart";
|
|
3
3
|
export declare const SIZEOF_NUMBER = 8;
|
|
4
|
+
export declare const SIZEOF_FLOAT32 = 4;
|
|
4
5
|
/**
|
|
5
6
|
* Inserts the values from the source Js array into the destination wasm array (and resizes) at index destIndex
|
|
6
7
|
* @param wasmContext
|
|
@@ -9,6 +10,14 @@ export declare const SIZEOF_NUMBER = 8;
|
|
|
9
10
|
* @param destIndex
|
|
10
11
|
*/
|
|
11
12
|
export declare function insertDoubleVectorFromJsArray(wasmContext: TSciChart, source: NumberArray, dest: SCRTDoubleVector, destIndex: number): void;
|
|
13
|
+
/**
|
|
14
|
+
* Copies the values from the source Js array into the destination wasm array (and resizes) at index destIndex
|
|
15
|
+
* @param wasmContext
|
|
16
|
+
* @param source
|
|
17
|
+
* @param dest
|
|
18
|
+
* @param destIndex
|
|
19
|
+
*/
|
|
20
|
+
export declare function memCopyFloat32(wasmContext: TSciChart, source: Float32Array, dest: SCRTFloatVector | FloatVector, destIndex: number): void;
|
|
12
21
|
/**
|
|
13
22
|
* Resizes the destinationVector by jsArray.length and copies the values into it
|
|
14
23
|
* @param wasmContext
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.appendDoubleVectorFromJsArray = exports.insertDoubleVectorFromJsArray = exports.SIZEOF_NUMBER = void 0;
|
|
3
|
+
exports.appendDoubleVectorFromJsArray = exports.memCopyFloat32 = exports.insertDoubleVectorFromJsArray = exports.SIZEOF_FLOAT32 = exports.SIZEOF_NUMBER = void 0;
|
|
4
4
|
var Guard_1 = require("../../Core/Guard");
|
|
5
5
|
exports.SIZEOF_NUMBER = 8;
|
|
6
|
+
exports.SIZEOF_FLOAT32 = 4;
|
|
6
7
|
/**
|
|
7
8
|
* Inserts the values from the source Js array into the destination wasm array (and resizes) at index destIndex
|
|
8
9
|
* @param wasmContext
|
|
@@ -34,6 +35,28 @@ function insertDoubleVectorFromJsArray(wasmContext, source, dest, destIndex) {
|
|
|
34
35
|
wasmContext.HEAPF64.set(source, dest.dataPtr(destIndex) / exports.SIZEOF_NUMBER);
|
|
35
36
|
}
|
|
36
37
|
exports.insertDoubleVectorFromJsArray = insertDoubleVectorFromJsArray;
|
|
38
|
+
/**
|
|
39
|
+
* Copies the values from the source Js array into the destination wasm array (and resizes) at index destIndex
|
|
40
|
+
* @param wasmContext
|
|
41
|
+
* @param source
|
|
42
|
+
* @param dest
|
|
43
|
+
* @param destIndex
|
|
44
|
+
*/
|
|
45
|
+
function memCopyFloat32(wasmContext, source, dest, destIndex) {
|
|
46
|
+
// Sanity checks
|
|
47
|
+
Guard_1.Guard.notNull(wasmContext, "wasmContext");
|
|
48
|
+
Guard_1.Guard.notNull(source, "source");
|
|
49
|
+
Guard_1.Guard.notNull(dest, "dest");
|
|
50
|
+
Guard_1.Guard.isTrue(destIndex >= 0, "destIndex must be greater than or equal to zero");
|
|
51
|
+
Guard_1.Guard.isTrue(destIndex <= dest.size() + source.length, "destIndex must be less than or equal to dest.size() + source.Length");
|
|
52
|
+
var count = source.length;
|
|
53
|
+
if (count === 0)
|
|
54
|
+
return;
|
|
55
|
+
// Overwrite dest memory with Js array
|
|
56
|
+
// @ts-ignore
|
|
57
|
+
wasmContext.HEAPF32.set(source, dest.dataPtr(destIndex) / exports.SIZEOF_FLOAT32);
|
|
58
|
+
}
|
|
59
|
+
exports.memCopyFloat32 = memCopyFloat32;
|
|
37
60
|
/**
|
|
38
61
|
* Resizes the destinationVector by jsArray.length and copies the values into it
|
|
39
62
|
* @param wasmContext
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function memoize<ResultType, ParamsListType extends any[]>(heavyCalculationFunction: (...params: ParamsListType) => ResultType, equalityComparisonFunction?: (params: ParamsListType, prevParams: ParamsListType) => boolean): (...args: ParamsListType) => ResultType;
|
package/utils/memoize.js
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.memoize = void 0;
|
|
4
|
+
function memoize(heavyCalculationFunction, equalityComparisonFunction) {
|
|
5
|
+
var memoizedValue;
|
|
6
|
+
var prevArgs;
|
|
7
|
+
// relies on referential equality
|
|
8
|
+
var defaultComparator = function (args, previousArgs) {
|
|
9
|
+
return !args.some(function (value, paramIndex) { return value !== previousArgs[paramIndex]; });
|
|
10
|
+
};
|
|
11
|
+
var checkIsEqual = equalityComparisonFunction !== null && equalityComparisonFunction !== void 0 ? equalityComparisonFunction : defaultComparator;
|
|
12
|
+
return function () {
|
|
13
|
+
var args = [];
|
|
14
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
15
|
+
args[_i] = arguments[_i];
|
|
16
|
+
}
|
|
17
|
+
var isEqual = prevArgs && checkIsEqual(args, prevArgs);
|
|
18
|
+
if (!prevArgs || !isEqual) {
|
|
19
|
+
// Note: it only stores a shallow copy of the params
|
|
20
|
+
prevArgs = args;
|
|
21
|
+
memoizedValue = heavyCalculationFunction.apply(void 0, args);
|
|
22
|
+
}
|
|
23
|
+
return memoizedValue;
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
exports.memoize = memoize;
|
package/utils/number.d.ts
CHANGED
|
@@ -8,3 +8,4 @@ export declare const numericHashCode: (hash: number, value: number) => number;
|
|
|
8
8
|
export declare const formatNumber: (dataValue: number, numericFormat: ENumericFormat, precision: number) => string;
|
|
9
9
|
export declare const toSuperScript: (value: number) => string;
|
|
10
10
|
export declare const toScientific: (value: number, precision: number, logarithmicBase: number) => string;
|
|
11
|
+
export declare const checkIsNaN: (value: number) => boolean;
|
package/utils/number.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.toScientific = exports.toSuperScript = exports.formatNumber = exports.numericHashCode = exports.formatNumber2Digits = void 0;
|
|
3
|
+
exports.checkIsNaN = exports.toScientific = exports.toSuperScript = exports.formatNumber = exports.numericHashCode = exports.formatNumber2Digits = void 0;
|
|
4
4
|
var NumericFormat_1 = require("../types/NumericFormat");
|
|
5
5
|
var date_1 = require("./date");
|
|
6
6
|
var math_1 = require("./math");
|
|
@@ -86,3 +86,7 @@ var toScientific = function (value, precision, logarithmicBase) {
|
|
|
86
86
|
return sig.toPrecision(precision).toString() + "x" + logarithmicBase.toString() + (0, exports.toSuperScript)(exponent);
|
|
87
87
|
};
|
|
88
88
|
exports.toScientific = toScientific;
|
|
89
|
+
// if value !== value is a simple but fast isNaN check
|
|
90
|
+
// equivalent to isNaN(zValueRaw)
|
|
91
|
+
var checkIsNaN = function (value) { return value !== value; };
|
|
92
|
+
exports.checkIsNaN = checkIsNaN;
|
package/utils/parseColor.d.ts
CHANGED
package/utils/parseColor.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.parseTArgbToHtmlColor = exports.parseArgbToHtmlColor = exports.parseColorToTArgb = exports.toHex = exports.parseColorToUIntArgb = exports.parseColorToHexStringAbgr = exports.parseColorToHexStringArgb = void 0;
|
|
3
|
+
exports.webColors = exports.parseTArgbToHtmlColor = exports.parseArgbToHtmlColor = exports.parseColorToTArgb = exports.toHex = exports.parseColorToUIntArgb = exports.parseColorToHexStringAbgr = exports.parseColorToHexStringArgb = void 0;
|
|
4
4
|
/**
|
|
5
5
|
* Parse colors and convert them to hex string to use in c++
|
|
6
6
|
* Examples: "#fff", "#ff0000", "rgba(255,255,0,1)", "#11333333"
|
|
@@ -97,7 +97,7 @@ function parseColorToTArgb(input) {
|
|
|
97
97
|
validateColorValues([red, green, blue], ["red", "green", "blue"]);
|
|
98
98
|
return { opacity: opacity, red: red, green: green, blue: blue };
|
|
99
99
|
}
|
|
100
|
-
var wc = webColors[input.toLowerCase()];
|
|
100
|
+
var wc = exports.webColors[input.toLowerCase()];
|
|
101
101
|
if (wc)
|
|
102
102
|
return parseColorToTArgb(wc);
|
|
103
103
|
throw Error("'" + input + "' is not a valid color...");
|
|
@@ -180,7 +180,7 @@ var convertOpacity = function (opacity) {
|
|
|
180
180
|
// https://en.wikipedia.org/wiki/Web_colors
|
|
181
181
|
// http://www.colors.commutercreative.com/grid/
|
|
182
182
|
/** @ignore */
|
|
183
|
-
|
|
183
|
+
exports.webColors = {
|
|
184
184
|
transparent: "#00000000",
|
|
185
185
|
aliceblue: "#f0f8ff",
|
|
186
186
|
antiquewhite: "#faebd7",
|
package/utils/text.d.ts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { SCRTFont, TSRTextBounds } from "../types/TSciChart";
|
|
2
|
+
/**
|
|
3
|
+
* Wrap a string by adding newline characters, splitting on spaces and wrapping to a maximum size
|
|
4
|
+
*/
|
|
5
|
+
export declare const wrapNativeText: (text: string, maxWidth: number, font: SCRTFont, textBounds: TSRTextBounds) => string;
|
package/utils/text.js
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.wrapNativeText = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Wrap a string by adding newline characters, splitting on spaces and wrapping to a maximum size
|
|
6
|
+
*/
|
|
7
|
+
var wrapNativeText = function (text, maxWidth, font, textBounds) {
|
|
8
|
+
if (maxWidth === 0)
|
|
9
|
+
return text;
|
|
10
|
+
if (!text) {
|
|
11
|
+
return "";
|
|
12
|
+
}
|
|
13
|
+
var lines = [];
|
|
14
|
+
var words = text.split(" ");
|
|
15
|
+
// calculate size of each word
|
|
16
|
+
var first = words[0].trim();
|
|
17
|
+
var allWords = first + " " + first + "\n" + words.map(function (w) { return w.trim(); }).join("\n");
|
|
18
|
+
font.CalculateStringBounds(allWords !== null && allWords !== void 0 ? allWords : "", textBounds, 2);
|
|
19
|
+
var line = "";
|
|
20
|
+
var lineWidth = 0;
|
|
21
|
+
var spaceWidth = textBounds.GetLineBounds(0).m_fWidth - 2 * textBounds.GetLineBounds(1).m_fWidth;
|
|
22
|
+
for (var i = 0; i < words.length; i++) {
|
|
23
|
+
var word = words[i];
|
|
24
|
+
var wordWidth = textBounds.GetLineBounds(i + 1).m_fWidth;
|
|
25
|
+
var newLine = line + (line !== "" ? " " : "") + word;
|
|
26
|
+
lineWidth += (line !== "" ? spaceWidth : 0) + wordWidth;
|
|
27
|
+
if (lineWidth > maxWidth) {
|
|
28
|
+
if (line === "") {
|
|
29
|
+
lines.push(word);
|
|
30
|
+
lineWidth = 0;
|
|
31
|
+
}
|
|
32
|
+
else {
|
|
33
|
+
lines.push(line);
|
|
34
|
+
line = word;
|
|
35
|
+
lineWidth = wordWidth;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
else {
|
|
39
|
+
line = newLine;
|
|
40
|
+
}
|
|
41
|
+
if (line.endsWith("\n")) {
|
|
42
|
+
lineWidth = 0;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
lines.push(line);
|
|
46
|
+
return lines.join("\n");
|
|
47
|
+
};
|
|
48
|
+
exports.wrapNativeText = wrapNativeText;
|
package/utils/translate.d.ts
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @description Translates Canvas coordinates to coordinates for seriesViewRect
|
|
3
|
+
* @param point
|
|
4
|
+
*/
|
|
5
|
+
import { AxisBase2D } from "../Charting/Visuals/Axis/AxisBase2D";
|
|
1
6
|
import { Point } from "../Core/Point";
|
|
2
7
|
import { Rect } from "../Core/Rect";
|
|
3
8
|
/**
|
|
@@ -17,3 +22,6 @@ export declare const translateFromSeriesViewRectToCanvas: (point: Point, seriesV
|
|
|
17
22
|
export declare const translateFromCanvasToSeriesViewRectX: (x: number, seriesViewRect: Rect) => number;
|
|
18
23
|
export declare const translateFromCanvasToSeriesViewRectY: (y: number, seriesViewRect: Rect) => number;
|
|
19
24
|
export declare const translateToNotScaled: (value: number) => number;
|
|
25
|
+
export declare const translateDataValueRectToAbsolute: (originalRect: Rect, xAxis: AxisBase2D, yAxis: AxisBase2D, seriesViewRect: Rect) => Rect;
|
|
26
|
+
export declare const convertToHtmlPx: (value: number) => string;
|
|
27
|
+
export declare const convertToRelativeHtmlSize: (value: number) => string;
|
package/utils/translate.js
CHANGED
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.translateToNotScaled = exports.translateFromCanvasToSeriesViewRectY = exports.translateFromCanvasToSeriesViewRectX = exports.translateFromSeriesViewRectToCanvas = exports.translateFromCanvasToSeriesViewRect = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* @description Translates Canvas coordinates to coordinates for seriesViewRect
|
|
6
|
-
* @param point
|
|
7
|
-
*/
|
|
3
|
+
exports.convertToRelativeHtmlSize = exports.convertToHtmlPx = exports.translateDataValueRectToAbsolute = exports.translateToNotScaled = exports.translateFromCanvasToSeriesViewRectY = exports.translateFromCanvasToSeriesViewRectX = exports.translateFromSeriesViewRectToCanvas = exports.translateFromCanvasToSeriesViewRect = void 0;
|
|
8
4
|
var DpiHelper_1 = require("../Charting/Visuals/TextureManager/DpiHelper");
|
|
9
5
|
var Point_1 = require("../Core/Point");
|
|
6
|
+
var Rect_1 = require("../Core/Rect");
|
|
10
7
|
/**
|
|
11
8
|
* Translates from canvas to seriesViewRect screen coordinates
|
|
12
9
|
* @param point
|
|
@@ -73,3 +70,28 @@ var translateFromCanvasToSeriesViewRectY = function (y, seriesViewRect) {
|
|
|
73
70
|
exports.translateFromCanvasToSeriesViewRectY = translateFromCanvasToSeriesViewRectY;
|
|
74
71
|
var translateToNotScaled = function (value) { return value / DpiHelper_1.DpiHelper.PIXEL_RATIO; };
|
|
75
72
|
exports.translateToNotScaled = translateToNotScaled;
|
|
73
|
+
var translateDataValueRectToAbsolute = function (originalRect, xAxis, yAxis, seriesViewRect) {
|
|
74
|
+
var x = originalRect.x, y = originalRect.y, width = originalRect.width, height = originalRect.height;
|
|
75
|
+
var parentLeft = (0, exports.translateToNotScaled)(seriesViewRect.left);
|
|
76
|
+
var parentTop = (0, exports.translateToNotScaled)(seriesViewRect.top);
|
|
77
|
+
var xCoordCalc = xAxis.getCurrentCoordinateCalculator();
|
|
78
|
+
var yCoordCalc = yAxis.getCurrentCoordinateCalculator();
|
|
79
|
+
var left = xAxis.isVerticalChart ? yCoordCalc.getCoordinate(x) : xCoordCalc.getCoordinate(x);
|
|
80
|
+
var top = xAxis.isVerticalChart ? xCoordCalc.getCoordinate(y) : yCoordCalc.getCoordinate(y);
|
|
81
|
+
left = Math.max((0, exports.translateToNotScaled)(left), 0);
|
|
82
|
+
top = Math.max((0, exports.translateToNotScaled)(top), 0);
|
|
83
|
+
var x2 = xAxis.flippedCoordinates ? x - width : x + width;
|
|
84
|
+
var y2 = yAxis.flippedCoordinates ? y + height : y - height;
|
|
85
|
+
var bottom = (0, exports.translateToNotScaled)(xAxis.isVerticalChart ? xCoordCalc.getCoordinate(y2) : yCoordCalc.getCoordinate(y2));
|
|
86
|
+
var right = (0, exports.translateToNotScaled)(xAxis.isVerticalChart ? yCoordCalc.getCoordinate(x2) : xCoordCalc.getCoordinate(x2));
|
|
87
|
+
left += parentLeft;
|
|
88
|
+
top += parentTop;
|
|
89
|
+
right += parentLeft;
|
|
90
|
+
bottom += parentTop;
|
|
91
|
+
return new Rect_1.Rect(left, top, Math.abs(right - left), Math.abs(top - bottom));
|
|
92
|
+
};
|
|
93
|
+
exports.translateDataValueRectToAbsolute = translateDataValueRectToAbsolute;
|
|
94
|
+
var convertToHtmlPx = function (value) { return "".concat(value, "px"); };
|
|
95
|
+
exports.convertToHtmlPx = convertToHtmlPx;
|
|
96
|
+
var convertToRelativeHtmlSize = function (value) { return "".concat(value * 100, "%"); };
|
|
97
|
+
exports.convertToRelativeHtmlSize = convertToRelativeHtmlSize;
|
package/utils/zeroArray2D.d.ts
CHANGED
|
@@ -1 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @description creates a 2-dimensional array filled with zeros
|
|
3
|
+
* @param dimension, an array containing the 2D dimensions [height, width] defined as a 2D array,
|
|
4
|
+
* e.g. [3,2] creates an array 3 elements each with 2 elements, or [ [0, 0] , [0, 0], [0, 0] ]
|
|
5
|
+
*/
|
|
1
6
|
export declare const zeroArray2D: (dimensions: number[]) => number[][];
|
package/utils/zeroArray2D.js
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.zeroArray2D = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* @description creates a 2-dimensional array filled with zeros
|
|
6
|
+
* @param dimension, an array containing the 2D dimensions [height, width] defined as a 2D array,
|
|
7
|
+
* e.g. [3,2] creates an array 3 elements each with 2 elements, or [ [0, 0] , [0, 0], [0, 0] ]
|
|
8
|
+
*/
|
|
4
9
|
var zeroArray2D = function (dimensions) {
|
|
5
10
|
if (!dimensions) {
|
|
6
11
|
return undefined;
|