scichart 2.0.2139 → 2.0.2185
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/buildAnnotations.js +11 -10
- package/Builder/buildAxis.js +7 -6
- package/Builder/buildDataSeries.js +3 -6
- package/Builder/buildModifiers.js +17 -16
- package/Builder/buildSeries.d.ts +1 -1
- package/Builder/buildSeries.js +21 -20
- package/Builder/buildSurface.js +29 -27
- package/Builder/chartBuilder.d.ts +10 -162
- package/Builder/chartBuilder.js +9 -6
- package/Builder/classFactory.js +12 -6
- package/Charting/ChartModifiers/ChartModifierBase.js +1 -1
- package/Charting/ChartModifiers/ChartModifierBase2D.d.ts +1 -1
- package/Charting/ChartModifiers/ChartModifierBase2D.js +11 -6
- package/Charting/ChartModifiers/CursorModifier.d.ts +23 -3
- package/Charting/ChartModifiers/CursorModifier.js +72 -40
- package/Charting/ChartModifiers/DataPointSelectionModifier.d.ts +1 -1
- package/Charting/ChartModifiers/DataPointSelectionModifier.js +18 -16
- package/Charting/ChartModifiers/LegendModifier.d.ts +1 -1
- package/Charting/ChartModifiers/LegendModifier.js +4 -1
- package/Charting/ChartModifiers/ModifierMouseArgs.js +4 -3
- package/Charting/ChartModifiers/MouseWheelZoomModifier.d.ts +52 -2
- package/Charting/ChartModifiers/MouseWheelZoomModifier.js +105 -10
- package/Charting/ChartModifiers/OverviewRangeSelectionModifier.d.ts +2 -2
- package/Charting/ChartModifiers/OverviewRangeSelectionModifier.js +13 -10
- package/Charting/ChartModifiers/PinchZoomModifier.d.ts +1 -1
- package/Charting/ChartModifiers/PinchZoomModifier.js +4 -2
- package/Charting/ChartModifiers/RolloverModifier.d.ts +1 -1
- package/Charting/ChartModifiers/RolloverModifier.js +27 -20
- package/Charting/ChartModifiers/RubberBandXyZoomModifier.d.ts +1 -1
- package/Charting/ChartModifiers/RubberBandXyZoomModifier.js +11 -9
- package/Charting/ChartModifiers/SeriesSelectionModifier.d.ts +1 -1
- package/Charting/ChartModifiers/SeriesSelectionModifier.js +9 -7
- package/Charting/ChartModifiers/XAxisDragModifier.d.ts +1 -1
- package/Charting/ChartModifiers/XAxisDragModifier.js +12 -10
- package/Charting/ChartModifiers/YAxisDragModifier.d.ts +1 -1
- package/Charting/ChartModifiers/YAxisDragModifier.js +12 -10
- package/Charting/ChartModifiers/ZoomExtentsModifier.d.ts +17 -1
- package/Charting/ChartModifiers/ZoomExtentsModifier.js +65 -10
- package/Charting/ChartModifiers/ZoomPanModifier.d.ts +4 -2
- package/Charting/ChartModifiers/ZoomPanModifier.js +25 -21
- package/Charting/Drawing/BaseCache.js +2 -2
- package/Charting/Drawing/BrushCache.js +12 -7
- package/Charting/Drawing/PaletteCache.js +4 -2
- package/Charting/Drawing/Pen2DCache.js +14 -9
- package/Charting/Drawing/SolidBrushCache.js +2 -2
- package/Charting/Drawing/TextureCache.js +4 -2
- package/Charting/Drawing/WebGlBrush.js +1 -1
- package/Charting/Drawing/WebGlPen.js +2 -2
- package/Charting/Drawing/WebGlRenderContext2D.js +5 -5
- package/Charting/LayoutManager/AxisLayoutHelpers.js +6 -4
- package/Charting/LayoutManager/BaseAxisLayoutStrategy.js +4 -4
- package/Charting/LayoutManager/BaseCenteredAxisLayoutStrategy.d.ts +1 -1
- package/Charting/LayoutManager/BaseCenteredAxisLayoutStrategy.js +3 -1
- package/Charting/LayoutManager/BottomAlignedInnerAxisLayoutStrategy.js +6 -4
- package/Charting/LayoutManager/BottomAlignedOuterAxisLayoutStrategy.js +6 -4
- package/Charting/LayoutManager/BottomAlignedOuterHorizontallyStackedAxisLayoutStrategy.js +7 -5
- package/Charting/LayoutManager/CentralAxesLayoutManager.js +7 -3
- package/Charting/LayoutManager/LayoutManager.js +2 -2
- package/Charting/LayoutManager/LeftAlignedInnerAxisLayoutStrategy.js +6 -4
- package/Charting/LayoutManager/LeftAlignedOuterAxisLayoutStrategy.js +6 -4
- package/Charting/LayoutManager/LeftAlignedOuterVerticallyStackedAxisLayoutStrategy.js +7 -5
- package/Charting/LayoutManager/RightAlignedInnerAxisLayoutStrategy.js +6 -4
- package/Charting/LayoutManager/RightAlignedOuterAxisLayoutStrategy.js +6 -4
- package/Charting/LayoutManager/RightAlignedOuterVerticallyStackedAxisLayoutStrategy.js +7 -5
- package/Charting/LayoutManager/SynchronizedLayoutManager.js +4 -2
- package/Charting/LayoutManager/TopAlignedInnerAxisLayoutStrategy.js +6 -4
- package/Charting/LayoutManager/TopAlignedOuterAxisLayoutStrategy.js +6 -4
- package/Charting/LayoutManager/TopAlignedOuterHorizontallyStackedAxisLayoutStrategy.js +7 -5
- package/Charting/Model/BaseDataSeries.d.ts +2 -2
- package/Charting/Model/BaseDataSeries.js +23 -20
- package/Charting/Model/BaseHeatmapDataSeries.js +5 -5
- package/Charting/Model/ChartData/HeatmapSeriesInfo.js +4 -2
- package/Charting/Model/ChartData/OhlcSeriesInfo.js +3 -1
- package/Charting/Model/ChartData/SeriesInfo.d.ts +1 -0
- package/Charting/Model/ChartData/SeriesInfo.js +15 -0
- package/Charting/Model/ChartData/StackedXySeriesInfo.js +3 -1
- package/Charting/Model/ChartData/XySeriesInfo.js +3 -1
- package/Charting/Model/ChartData/XyySeriesInfo.js +3 -1
- package/Charting/Model/DataPointSelectionPaletteProvider.js +2 -2
- package/Charting/Model/Filters/OhlcCustomFilter.js +7 -2
- package/Charting/Model/Filters/OhlcFilterBase.js +3 -1
- package/Charting/Model/Filters/OhlcScaleOffsetFilter.js +3 -1
- package/Charting/Model/Filters/XyCustomFilter.js +3 -1
- package/Charting/Model/Filters/XyFilterBase.js +9 -6
- package/Charting/Model/Filters/XyLinearTrendFilter.js +3 -1
- package/Charting/Model/Filters/XyMovingAverageFilter.js +3 -1
- package/Charting/Model/Filters/XyRatioFilter.js +6 -4
- package/Charting/Model/Filters/XyScaleOffsetFilter.js +3 -1
- package/Charting/Model/Filters/XyyCustomFilter.js +3 -1
- package/Charting/Model/Filters/XyyFilterBase.js +7 -5
- package/Charting/Model/Filters/XyyScaleOffsetFilter.js +3 -1
- package/Charting/Model/Filters/XyzCustomFilter.js +3 -1
- package/Charting/Model/Filters/XyzFilterBase.js +7 -5
- package/Charting/Model/Filters/XyzScaleOffsetFilter.js +3 -1
- package/Charting/Model/OhlcDataSeries.d.ts +2 -2
- package/Charting/Model/OhlcDataSeries.js +27 -25
- package/Charting/Model/PaletteFactory.js +3 -3
- package/Charting/Model/UniformHeatmapDataSeries.js +3 -1
- package/Charting/Model/XyDataSeries.js +9 -7
- package/Charting/Model/XyyDataSeries.d.ts +2 -2
- package/Charting/Model/XyyDataSeries.js +15 -13
- package/Charting/Model/XyzDataSeries.d.ts +2 -2
- package/Charting/Model/XyzDataSeries.js +15 -13
- package/Charting/Numerics/CoordinateCalculators/CategoryCoordinateCalculator.js +3 -1
- package/Charting/Numerics/CoordinateCalculators/FlippedCategoryCoordinateCalculator.js +3 -1
- package/Charting/Numerics/CoordinateCalculators/FlippedNumericCoordinateCalculator.js +3 -1
- package/Charting/Numerics/CoordinateCalculators/LogarithmicCoordinateCalculator.js +3 -1
- package/Charting/Numerics/CoordinateCalculators/NumericCoordinateCalculator.js +3 -1
- package/Charting/Numerics/TickCoordinateProviders/DefaultTickCoordinatesProvider.js +3 -1
- package/Charting/Numerics/TickProviders/LogarithmicTickProvider.js +7 -5
- package/Charting/Numerics/TickProviders/NumericTickProvider.js +4 -2
- package/Charting/Services/SciChartRenderer.d.ts +1 -0
- package/Charting/Services/SciChartRenderer.js +41 -22
- package/Charting/Services/Workers/TextureWorker.d.ts +16 -0
- package/Charting/Services/Workers/TextureWorker.js +138 -0
- package/Charting/Services/Workers/TextureWorkerSource.d.ts +1 -0
- package/Charting/Services/Workers/TextureWorkerSource.js +133 -0
- package/Charting/Themes/SciChartJSDarkTheme.js +3 -1
- package/Charting/Themes/SciChartJSDarkv2Theme.js +3 -1
- package/Charting/Themes/SciChartJSLightTheme.js +3 -1
- package/Charting/Visuals/Annotations/AnnotationBase.d.ts +1 -1
- package/Charting/Visuals/Annotations/AnnotationBase.js +71 -41
- package/Charting/Visuals/Annotations/AxisMarkerAnnotation.d.ts +28 -1
- package/Charting/Visuals/Annotations/AxisMarkerAnnotation.js +11 -9
- package/Charting/Visuals/Annotations/BoxAnnotation.d.ts +1 -1
- package/Charting/Visuals/Annotations/BoxAnnotation.js +18 -16
- package/Charting/Visuals/Annotations/CursorTooltipSvgAnnotation.d.ts +1 -1
- package/Charting/Visuals/Annotations/CursorTooltipSvgAnnotation.js +36 -14
- package/Charting/Visuals/Annotations/CustomAnnotation.d.ts +1 -1
- package/Charting/Visuals/Annotations/CustomAnnotation.js +3 -1
- package/Charting/Visuals/Annotations/HorizontalLineAnnotation.js +8 -6
- package/Charting/Visuals/Annotations/LineAnnotation.d.ts +1 -1
- package/Charting/Visuals/Annotations/LineAnnotation.js +21 -17
- package/Charting/Visuals/Annotations/OverviewCustomResizableAnnotation.js +20 -17
- package/Charting/Visuals/Annotations/RenderContextAnnotationBase.js +3 -1
- package/Charting/Visuals/Annotations/RolloverLegendSvgAnnotation.js +3 -1
- package/Charting/Visuals/Annotations/RolloverMarkerSvgAnnotation.js +4 -2
- package/Charting/Visuals/Annotations/RolloverTooltipSvgAnnotation.js +17 -15
- package/Charting/Visuals/Annotations/SvgAnnotationBase.d.ts +1 -1
- package/Charting/Visuals/Annotations/SvgAnnotationBase.js +23 -13
- package/Charting/Visuals/Annotations/TextAnnotation.d.ts +1 -1
- package/Charting/Visuals/Annotations/TextAnnotation.js +4 -2
- package/Charting/Visuals/Annotations/VerticalLineAnnotation.js +8 -6
- package/Charting/Visuals/Axis/AxisBase2D.d.ts +89 -58
- package/Charting/Visuals/Axis/AxisBase2D.js +118 -66
- package/Charting/Visuals/Axis/AxisCore.d.ts +7 -4
- package/Charting/Visuals/Axis/AxisCore.js +18 -32
- package/Charting/Visuals/Axis/AxisRenderer.d.ts +63 -0
- package/Charting/Visuals/Axis/AxisRenderer.js +92 -16
- package/Charting/Visuals/Axis/AxisTitleRenderer.js +7 -3
- package/Charting/Visuals/Axis/CategoryAxis.js +5 -2
- package/Charting/Visuals/Axis/CategoryAxisBase.js +10 -8
- package/Charting/Visuals/Axis/DeltaCalculator/CategoryDeltaCalculator.js +3 -1
- package/Charting/Visuals/Axis/DeltaCalculator/LogarithmicDeltaCalculator.js +3 -1
- package/Charting/Visuals/Axis/DeltaCalculator/NumericDeltaCalculator.js +3 -1
- package/Charting/Visuals/Axis/LabelProvider/DateLabelProvider.js +5 -3
- package/Charting/Visuals/Axis/LabelProvider/LabelCache.d.ts +41 -0
- package/Charting/Visuals/Axis/LabelProvider/LabelCache.js +164 -0
- package/Charting/Visuals/Axis/LabelProvider/LabelProvider.d.ts +1 -1
- package/Charting/Visuals/Axis/LabelProvider/LabelProviderBase2D.d.ts +57 -7
- package/Charting/Visuals/Axis/LabelProvider/LabelProviderBase2D.js +171 -74
- package/Charting/Visuals/Axis/LabelProvider/LogarithmicLabelProvider.js +5 -3
- package/Charting/Visuals/Axis/LabelProvider/NumericLabelProvider.js +5 -3
- package/Charting/Visuals/Axis/LabelProvider/SmartDateLabelProvider.js +30 -37
- package/Charting/Visuals/Axis/LabelProvider/TextLabelProvider.d.ts +5 -2
- package/Charting/Visuals/Axis/LabelProvider/TextLabelProvider.js +86 -5
- package/Charting/Visuals/Axis/LogarithmicAxis.d.ts +1 -3
- package/Charting/Visuals/Axis/LogarithmicAxis.js +14 -14
- package/Charting/Visuals/Axis/NumericAxis.js +5 -2
- package/Charting/Visuals/Axis/getAxisById.js +1 -1
- package/Charting/Visuals/Helpers/createNativeRect.js +2 -1
- package/Charting/Visuals/Helpers/createPen.js +4 -3
- package/Charting/Visuals/Helpers/createSolidBrush.js +5 -4
- package/Charting/Visuals/Helpers/drawBorder.js +6 -5
- package/Charting/Visuals/Helpers/drawLabel.js +10 -6
- package/Charting/Visuals/Legend/SciChartLegend.js +4 -2
- package/Charting/Visuals/Legend/SciChartLegendBase.js +16 -14
- package/Charting/Visuals/Legend/SciChartPieLegend.js +6 -4
- package/Charting/Visuals/PointMarkers/BasePointMarker.js +3 -3
- package/Charting/Visuals/PointMarkers/CrossPointMarker.js +3 -1
- package/Charting/Visuals/PointMarkers/EllipsePointMarker.js +3 -1
- package/Charting/Visuals/PointMarkers/SpritePointMarker.js +3 -1
- package/Charting/Visuals/PointMarkers/SquarePointMarker.js +3 -1
- package/Charting/Visuals/PointMarkers/TrianglePointMarker.js +3 -1
- package/Charting/Visuals/PointMarkers/XPointMarker.js +3 -1
- package/Charting/Visuals/RenderableSeries/Animations/BandAnimation.d.ts +2 -2
- package/Charting/Visuals/RenderableSeries/Animations/BandAnimation.js +8 -6
- package/Charting/Visuals/RenderableSeries/Animations/BandAnimationStyle.js +6 -4
- package/Charting/Visuals/RenderableSeries/Animations/BaseAnimationStyle.js +1 -1
- package/Charting/Visuals/RenderableSeries/Animations/BubbleAnimation.d.ts +2 -2
- package/Charting/Visuals/RenderableSeries/Animations/BubbleAnimation.js +5 -3
- package/Charting/Visuals/RenderableSeries/Animations/CandlestickAnimation.d.ts +1 -1
- package/Charting/Visuals/RenderableSeries/Animations/CandlestickAnimation.js +5 -3
- package/Charting/Visuals/RenderableSeries/Animations/CandlestickAnimationStyle.js +5 -3
- package/Charting/Visuals/RenderableSeries/Animations/ColumnAnimation.d.ts +2 -2
- package/Charting/Visuals/RenderableSeries/Animations/ColumnAnimation.js +6 -4
- package/Charting/Visuals/RenderableSeries/Animations/ColumnAnimationStyle.js +4 -2
- package/Charting/Visuals/RenderableSeries/Animations/CustomPointMarkerStyle.js +3 -1
- package/Charting/Visuals/RenderableSeries/Animations/FadeAnimation.d.ts +2 -2
- package/Charting/Visuals/RenderableSeries/Animations/FadeAnimation.js +5 -3
- package/Charting/Visuals/RenderableSeries/Animations/LineAnimation.d.ts +2 -2
- package/Charting/Visuals/RenderableSeries/Animations/LineAnimation.js +5 -3
- package/Charting/Visuals/RenderableSeries/Animations/MountainAnimation.d.ts +2 -2
- package/Charting/Visuals/RenderableSeries/Animations/MountainAnimation.js +6 -4
- package/Charting/Visuals/RenderableSeries/Animations/MountainAnimationStyle.js +4 -2
- package/Charting/Visuals/RenderableSeries/Animations/OhlcAnimation.d.ts +2 -2
- package/Charting/Visuals/RenderableSeries/Animations/OhlcAnimation.js +7 -5
- package/Charting/Visuals/RenderableSeries/Animations/OhlcAnimationStyle.js +5 -3
- package/Charting/Visuals/RenderableSeries/Animations/PointMarkerStyle.js +5 -3
- package/Charting/Visuals/RenderableSeries/Animations/ScaleAnimation.d.ts +3 -3
- package/Charting/Visuals/RenderableSeries/Animations/ScaleAnimation.js +5 -3
- package/Charting/Visuals/RenderableSeries/Animations/ScatterAnimation.d.ts +2 -2
- package/Charting/Visuals/RenderableSeries/Animations/ScatterAnimation.js +5 -3
- package/Charting/Visuals/RenderableSeries/Animations/{BaseAnimation.d.ts → SeriesAnimation.d.ts} +4 -3
- package/Charting/Visuals/RenderableSeries/Animations/{BaseAnimation.js → SeriesAnimation.js} +16 -16
- package/Charting/Visuals/RenderableSeries/Animations/SweepAnimation.d.ts +2 -2
- package/Charting/Visuals/RenderableSeries/Animations/SweepAnimation.js +5 -3
- package/Charting/Visuals/RenderableSeries/Animations/WaveAnimation.d.ts +3 -3
- package/Charting/Visuals/RenderableSeries/Animations/WaveAnimation.js +5 -3
- package/Charting/Visuals/RenderableSeries/Animations/animationHelpers.d.ts +8 -8
- package/Charting/Visuals/RenderableSeries/Animations/animationHelpers.js +2 -2
- package/Charting/Visuals/RenderableSeries/BaseBandRenderableSeries.js +3 -1
- package/Charting/Visuals/RenderableSeries/BaseLineRenderableSeries.js +3 -1
- package/Charting/Visuals/RenderableSeries/BaseMountainRenderableSeries.js +3 -1
- package/Charting/Visuals/RenderableSeries/BaseOhlcRenderableSeries.js +3 -1
- package/Charting/Visuals/RenderableSeries/BaseRenderableSeries.d.ts +9 -9
- package/Charting/Visuals/RenderableSeries/BaseRenderableSeries.js +18 -17
- package/Charting/Visuals/RenderableSeries/BaseStackedCollection.d.ts +7 -7
- package/Charting/Visuals/RenderableSeries/BaseStackedCollection.js +8 -6
- package/Charting/Visuals/RenderableSeries/BaseStackedRenderableSeries.d.ts +7 -7
- package/Charting/Visuals/RenderableSeries/BaseStackedRenderableSeries.js +4 -4
- package/Charting/Visuals/RenderableSeries/DrawingProviders/BandSeriesDrawingProvider.js +20 -18
- package/Charting/Visuals/RenderableSeries/DrawingProviders/BaseSeriesDrawingProvider.js +12 -12
- package/Charting/Visuals/RenderableSeries/DrawingProviders/BubbleSeriesDrawingProvider.js +4 -2
- package/Charting/Visuals/RenderableSeries/DrawingProviders/ColumnSeriesDrawingProvider.js +12 -10
- package/Charting/Visuals/RenderableSeries/DrawingProviders/LineSeriesDrawingProvider.js +9 -7
- package/Charting/Visuals/RenderableSeries/DrawingProviders/MountainSeriesDrawingProvider.js +10 -8
- package/Charting/Visuals/RenderableSeries/DrawingProviders/OhlcSeriesDrawingProvider.js +20 -18
- package/Charting/Visuals/RenderableSeries/DrawingProviders/PointMarkerDrawingProvider.js +6 -4
- package/Charting/Visuals/RenderableSeries/DrawingProviders/UniformContoursDrawingProvider.js +9 -7
- package/Charting/Visuals/RenderableSeries/DrawingProviders/UniformHeatmapDrawingProvider.js +6 -4
- package/Charting/Visuals/RenderableSeries/FastBandRenderableSeries.js +3 -1
- package/Charting/Visuals/RenderableSeries/FastBubbleRenderableSeries.js +3 -1
- package/Charting/Visuals/RenderableSeries/FastCandlestickRenderableSeries.js +3 -1
- package/Charting/Visuals/RenderableSeries/FastColumnRenderableSeries.js +6 -3
- package/Charting/Visuals/RenderableSeries/FastLineRenderableSeries.js +3 -1
- package/Charting/Visuals/RenderableSeries/FastMountainRenderableSeries.js +3 -1
- package/Charting/Visuals/RenderableSeries/FastOhlcRenderableSeries.js +3 -1
- package/Charting/Visuals/RenderableSeries/GlowEffect.js +3 -1
- package/Charting/Visuals/RenderableSeries/HitTest/BandSeriesHitTestProvider.js +3 -1
- package/Charting/Visuals/RenderableSeries/HitTest/BaseHitTestProvider.js +1 -1
- package/Charting/Visuals/RenderableSeries/HitTest/BubbleSeriesHitTestProvider.js +4 -2
- package/Charting/Visuals/RenderableSeries/HitTest/ColumnSeriesHitTestProvider.js +4 -2
- package/Charting/Visuals/RenderableSeries/HitTest/LineSeriesHitTestProvider.js +8 -6
- package/Charting/Visuals/RenderableSeries/HitTest/MountainSeriesHitTestProvider.js +3 -1
- package/Charting/Visuals/RenderableSeries/HitTest/OhlcSeriesHitTestProvider.js +4 -2
- package/Charting/Visuals/RenderableSeries/HitTest/ScatterSeriesHitTestProvider.js +6 -4
- package/Charting/Visuals/RenderableSeries/HitTest/StackedColumnSeriesHitTestProvider.js +7 -5
- package/Charting/Visuals/RenderableSeries/HitTest/StackedMountainSeriesHitTestProvider.js +3 -1
- package/Charting/Visuals/RenderableSeries/HitTest/UniformHeatmapHitTestProvider.js +3 -1
- package/Charting/Visuals/RenderableSeries/HitTest/hitTestHelpers.js +12 -12
- package/Charting/Visuals/RenderableSeries/IBaseRenderableSeriesOptions.d.ts +2 -2
- package/Charting/Visuals/RenderableSeries/IRenderableSeries.d.ts +3 -3
- package/Charting/Visuals/RenderableSeries/RolloverModifier/RolloverModifierRenderableSeriesProps.d.ts +5 -0
- package/Charting/Visuals/RenderableSeries/RolloverModifier/RolloverModifierRenderableSeriesProps.js +31 -7
- package/Charting/Visuals/RenderableSeries/ShaderEffect.js +4 -4
- package/Charting/Visuals/RenderableSeries/ShadowEffect.js +4 -2
- package/Charting/Visuals/RenderableSeries/SplineBandRenderableSeries.d.ts +4 -4
- package/Charting/Visuals/RenderableSeries/SplineBandRenderableSeries.js +6 -4
- package/Charting/Visuals/RenderableSeries/SplineLineRenderableSeries.d.ts +4 -4
- package/Charting/Visuals/RenderableSeries/SplineLineRenderableSeries.js +5 -3
- package/Charting/Visuals/RenderableSeries/SplineMountainRenderableSeries.d.ts +4 -4
- package/Charting/Visuals/RenderableSeries/SplineMountainRenderableSeries.js +5 -3
- package/Charting/Visuals/RenderableSeries/StackedColumnCollection.js +6 -4
- package/Charting/Visuals/RenderableSeries/StackedColumnRenderableSeries.js +11 -9
- package/Charting/Visuals/RenderableSeries/StackedMountainCollection.js +7 -5
- package/Charting/Visuals/RenderableSeries/StackedMountainRenderableSeries.js +11 -9
- package/Charting/Visuals/RenderableSeries/UniformContoursRenderableSeries.js +6 -4
- package/Charting/Visuals/RenderableSeries/UniformHeatmapRenderableSeries.js +5 -2
- package/Charting/Visuals/RenderableSeries/XyScatterRenderableSeries.js +3 -1
- package/Charting/Visuals/RubberBandSvgRect/RubberBandSvgRect.js +3 -3
- package/Charting/Visuals/SciChartDefaults.d.ts +11 -0
- package/Charting/Visuals/SciChartDefaults.js +18 -0
- package/Charting/Visuals/SciChartOverview.js +13 -7
- package/Charting/Visuals/SciChartPieSurface/PieSegment/PieSegment.js +1 -1
- package/Charting/Visuals/SciChartPieSurface/SciChartPieSurface.js +27 -24
- package/Charting/Visuals/SciChartSurface.d.ts +13 -0
- package/Charting/Visuals/SciChartSurface.js +52 -14
- package/Charting/Visuals/SciChartSurfaceBase.js +15 -11
- package/Charting/Visuals/TextureManager/CanvasTexture.js +5 -5
- package/Charting/Visuals/TextureManager/DpiHelper.js +3 -3
- package/Charting/Visuals/TextureManager/TextureManager.d.ts +1 -0
- package/Charting/Visuals/TextureManager/TextureManager.js +16 -12
- package/Charting/Visuals/createMaster.js +6 -5
- package/Charting/Visuals/createSingle.js +6 -4
- package/Charting/Visuals/licenseManager2D.js +65 -48
- package/Charting/Visuals/loader.js +1 -1
- package/Charting/Visuals/sciChartInitCommon.js +12 -12
- package/Charting3D/CameraController.js +6 -6
- package/Charting3D/ChartModifiers/ChartModifierBase3D.js +3 -1
- package/Charting3D/ChartModifiers/MouseWheelZoomModifier3D.js +3 -1
- package/Charting3D/ChartModifiers/OrbitModifier3D.js +3 -1
- package/Charting3D/ChartModifiers/ResetCamera3DModifier.d.ts +79 -0
- package/Charting3D/ChartModifiers/ResetCamera3DModifier.js +143 -0
- package/Charting3D/Model/DataSeries/BaseGridDataSeries3D.js +4 -2
- package/Charting3D/Model/DataSeries/UniformGridDataSeries3D.js +3 -1
- package/Charting3D/Model/DataSeries/XyzDataSeries3D.js +6 -4
- package/Charting3D/Vector3.js +1 -1
- package/Charting3D/Visuals/Axis/AxisBase3D.js +9 -7
- package/Charting3D/Visuals/Axis/AxisCubeEntity.js +20 -15
- package/Charting3D/Visuals/Axis/NumericAxis3D.d.ts +5 -0
- package/Charting3D/Visuals/Axis/NumericAxis3D.js +29 -1
- package/Charting3D/Visuals/DefaultViewportManager3D.js +3 -1
- package/Charting3D/Visuals/GizmoEntity.js +3 -1
- package/Charting3D/Visuals/PointMarkers/BaseMeshPointMarker3D.js +3 -1
- package/Charting3D/Visuals/PointMarkers/BaseTexturePointMarker3D.js +3 -1
- package/Charting3D/Visuals/PointMarkers/DefaultPointMarkers.js +3 -1
- package/Charting3D/Visuals/Primitives/BaseSceneEntity3D.js +2 -2
- package/Charting3D/Visuals/Primitives/RenderableSeriesSceneEntity.js +3 -1
- package/Charting3D/Visuals/Primitives/ScatterPointsSceneEntity.js +7 -5
- package/Charting3D/Visuals/Primitives/SurfaceMeshSceneEntity.js +22 -20
- package/Charting3D/Visuals/RenderableSeries/BaseRenderableSeries3D.js +3 -3
- package/Charting3D/Visuals/RenderableSeries/ScatterRenderableSeries3D.js +3 -1
- package/Charting3D/Visuals/RenderableSeries/SurfaceMesh/GradientColorPalette.js +3 -1
- package/Charting3D/Visuals/RenderableSeries/SurfaceMesh/SolidColorBrushPalette.js +5 -3
- package/Charting3D/Visuals/RenderableSeries/SurfaceMesh/SurfaceMeshRenderableSeries3D.js +3 -1
- package/Charting3D/Visuals/RootSceneEntity.js +3 -1
- package/Charting3D/Visuals/SciChart3DRenderer.d.ts +1 -0
- package/Charting3D/Visuals/SciChart3DRenderer.js +11 -2
- package/Charting3D/Visuals/SciChart3DSurface.d.ts +22 -0
- package/Charting3D/Visuals/SciChart3DSurface.js +64 -11
- package/Charting3D/Visuals/createMaster3d.js +8 -7
- package/Charting3D/Visuals/createSingle3d.js +5 -4
- package/Charting3D/Visuals/licenseManager3D.js +7 -6
- package/Core/Animations/AnimationFiniteStateMachine.d.ts +27 -14
- package/Core/Animations/AnimationFiniteStateMachine.js +51 -16
- package/Core/Animations/Animator.d.ts +1 -9
- package/Core/Animations/Animator.js +1 -9
- package/Core/Animations/DoubleAnimator.d.ts +2 -8
- package/Core/Animations/DoubleAnimator.js +2 -8
- package/Core/Animations/GenericAnimation.d.ts +74 -0
- package/Core/Animations/GenericAnimation.js +74 -0
- package/Core/Animations/NumberRangeAnimator.d.ts +4 -3
- package/Core/Animations/NumberRangeAnimator.js +23 -3
- package/Core/Guard.js +4 -4
- package/Core/Mouse/MouseManager.js +1 -1
- package/Core/NumberRange.js +8 -9
- package/Core/Point.js +1 -1
- package/_wasm/scichart.browser.js +1 -1
- package/_wasm/scichart2d.js +1 -1
- package/_wasm/scichart2d.wasm +0 -0
- package/_wasm/scichart3d.js +95 -95
- package/_wasm/scichart3d.wasm +0 -0
- package/index.js +1 -0
- package/package.json +2 -2
- package/types/AxisAlignment.js +6 -4
- package/types/ChartModifierType.d.ts +2 -1
- package/types/ChartModifierType.js +1 -0
- package/utils/array.js +2 -1
- package/utils/calcAverage.js +4 -2
- package/utils/colorUtil.js +4 -4
- package/utils/convertColor.js +6 -4
- package/utils/convertToPixel.js +2 -1
- package/utils/date.js +26 -17
- package/utils/font.js +4 -3
- package/utils/guid.js +2 -1
- package/utils/hasAllProperties.js +2 -1
- package/utils/includedAxis.d.ts +3 -0
- package/utils/includedAxis.js +23 -0
- package/utils/math.js +6 -3
- package/utils/number.js +18 -13
- package/utils/parseColor.js +7 -5
- package/utils/pointUtil.js +24 -15
- package/utils/random.js +2 -1
- package/utils/randomPricesDataSource.js +7 -5
- package/utils/svgString.js +2 -1
- package/utils/translate.js +10 -5
- package/utils/tsrExtensions.js +4 -2
- package/utils/zeroArray2D.js +3 -2
package/utils/calcAverage.js
CHANGED
|
@@ -7,7 +7,7 @@ exports.calcAverageForArray = exports.calcAverageForDoubleVector = void 0;
|
|
|
7
7
|
* @param averageNum - number of values to respect for the average
|
|
8
8
|
* @param index - index of the latest value to include, by default equals to length-1 of DoubleVector
|
|
9
9
|
*/
|
|
10
|
-
|
|
10
|
+
var calcAverageForDoubleVector = function (doubleVector, averageNum, index) {
|
|
11
11
|
var length = doubleVector.size();
|
|
12
12
|
var innerIndex = index !== null && index !== void 0 ? index : length - 1;
|
|
13
13
|
if (innerIndex >= length || innerIndex < 0) {
|
|
@@ -23,7 +23,8 @@ exports.calcAverageForDoubleVector = function (doubleVector, averageNum, index)
|
|
|
23
23
|
movingAverage /= averageNum;
|
|
24
24
|
return movingAverage;
|
|
25
25
|
};
|
|
26
|
-
exports.
|
|
26
|
+
exports.calcAverageForDoubleVector = calcAverageForDoubleVector;
|
|
27
|
+
var calcAverageForArray = function (ar, averageNum, index) {
|
|
27
28
|
var length = ar.length;
|
|
28
29
|
var innerIndex = index !== null && index !== void 0 ? index : length - 1;
|
|
29
30
|
if (innerIndex >= length || innerIndex < 0) {
|
|
@@ -39,3 +40,4 @@ exports.calcAverageForArray = function (ar, averageNum, index) {
|
|
|
39
40
|
movingAverage /= averageNum;
|
|
40
41
|
return movingAverage;
|
|
41
42
|
};
|
|
43
|
+
exports.calcAverageForArray = calcAverageForArray;
|
package/utils/colorUtil.js
CHANGED
|
@@ -52,7 +52,7 @@ exports.uintArgbColorLerp = uintArgbColorLerp;
|
|
|
52
52
|
function linearColorMapLerp(colorMap, dataValue) {
|
|
53
53
|
// Value is outside of range, return Minimum color
|
|
54
54
|
if (dataValue < colorMap.Minimum) {
|
|
55
|
-
return parseColor_1.parseColorToUIntArgb(colorMap.GradientStops[0].color);
|
|
55
|
+
return (0, parseColor_1.parseColorToUIntArgb)(colorMap.GradientStops[0].color);
|
|
56
56
|
}
|
|
57
57
|
// Scale the value from 0.0 -> 1.0
|
|
58
58
|
var scaleFactor = 1 / (colorMap.Maximum - colorMap.Minimum);
|
|
@@ -71,14 +71,14 @@ function linearColorMapLerp(colorMap, dataValue) {
|
|
|
71
71
|
if (scaledValue >= stop_1.offset && scaledValue < nextStop.offset) {
|
|
72
72
|
// Simple step? Just return the current stop color
|
|
73
73
|
if (colorMap.Mode === TLinearColorMap_1.EColorMapMode.Stepped) {
|
|
74
|
-
return parseColor_1.parseColorToUIntArgb(stop_1.color);
|
|
74
|
+
return (0, parseColor_1.parseColorToUIntArgb)(stop_1.color);
|
|
75
75
|
}
|
|
76
76
|
// Compute the ratio to interpolate between two stops
|
|
77
77
|
var localRatio = (scaledValue - stop_1.offset) * stopScaleFactors[i];
|
|
78
|
-
return uintArgbColorLerp(parseColor_1.parseColorToUIntArgb(stop_1.color), parseColor_1.parseColorToUIntArgb(nextStop.color), localRatio);
|
|
78
|
+
return uintArgbColorLerp((0, parseColor_1.parseColorToUIntArgb)(stop_1.color), (0, parseColor_1.parseColorToUIntArgb)(nextStop.color), localRatio);
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
|
-
return parseColor_1.parseColorToUIntArgb(colorMap.GradientStops[i].color);
|
|
81
|
+
return (0, parseColor_1.parseColorToUIntArgb)(colorMap.GradientStops[i].color);
|
|
82
82
|
}
|
|
83
83
|
exports.linearColorMapLerp = linearColorMapLerp;
|
|
84
84
|
function uintArgbColorToAbgr(argbColor) {
|
package/utils/convertColor.js
CHANGED
|
@@ -7,7 +7,7 @@ exports.convertRgbToHexColor = exports.convertColor = void 0;
|
|
|
7
7
|
* @param opacity, value from 0 to 1
|
|
8
8
|
* @returns rgbColor, for example "0xff00ff00" - green
|
|
9
9
|
*/
|
|
10
|
-
|
|
10
|
+
var convertColor = function (htmlColor, opacity) {
|
|
11
11
|
if (opacity === void 0) { opacity = 1; }
|
|
12
12
|
var opacityHex = convertComponent(opacity);
|
|
13
13
|
var htmlColorLower = htmlColor.toLowerCase();
|
|
@@ -15,12 +15,13 @@ exports.convertColor = function (htmlColor, opacity) {
|
|
|
15
15
|
return "";
|
|
16
16
|
}
|
|
17
17
|
if (htmlColorLower[0] === "#") {
|
|
18
|
-
return "0x"
|
|
18
|
+
return "0x".concat(opacityHex).concat(htmlColorLower.substr(1));
|
|
19
19
|
}
|
|
20
20
|
else {
|
|
21
|
-
return "0x"
|
|
21
|
+
return "0x".concat(opacityHex).concat(htmlColorLower);
|
|
22
22
|
}
|
|
23
23
|
};
|
|
24
|
+
exports.convertColor = convertColor;
|
|
24
25
|
/**
|
|
25
26
|
*
|
|
26
27
|
* Converts individual R,G, and B components to HEX Color
|
|
@@ -29,9 +30,10 @@ exports.convertColor = function (htmlColor, opacity) {
|
|
|
29
30
|
* @param b, blue component where its value is from 0 to 1
|
|
30
31
|
* @returns argbColor, for example "0xff00ff00" - green
|
|
31
32
|
*/
|
|
32
|
-
|
|
33
|
+
var convertRgbToHexColor = function (r, g, b) {
|
|
33
34
|
return "#" + convertComponent(r) + convertComponent(g) + convertComponent(b);
|
|
34
35
|
};
|
|
36
|
+
exports.convertRgbToHexColor = convertRgbToHexColor;
|
|
35
37
|
/**
|
|
36
38
|
* @ignore
|
|
37
39
|
* Converts number (color component) from 0 to 1 to hex string. For example 1 -> "ff", 0.5 => "80"
|
package/utils/convertToPixel.js
CHANGED
|
@@ -9,10 +9,11 @@ exports.convertToPixel = void 0;
|
|
|
9
9
|
* @param opacity - number value from 0 to 255
|
|
10
10
|
* @returns pixel in hex format: opacity, red, green, blue. For example: "0xff0000ff" - blue pixel with no opacity
|
|
11
11
|
*/
|
|
12
|
-
|
|
12
|
+
var convertToPixel = function (red, green, blue, opacity) {
|
|
13
13
|
var hexValue = "0x" + toHex(opacity) + toHex(red) + toHex(green) + toHex(blue);
|
|
14
14
|
return parseInt(hexValue, 16);
|
|
15
15
|
};
|
|
16
|
+
exports.convertToPixel = convertToPixel;
|
|
16
17
|
/**
|
|
17
18
|
* @ignore
|
|
18
19
|
* Converts a numeric value to hexadecimal
|
package/utils/date.js
CHANGED
|
@@ -5,7 +5,7 @@ exports.formatUnixDateToHumanStringYYYY = exports.formatUnixDateToHumanStringDD
|
|
|
5
5
|
* Result 11/23/2018
|
|
6
6
|
* @param unixTimestamp
|
|
7
7
|
*/
|
|
8
|
-
|
|
8
|
+
var formatUnixDateToHumanString = function (unixTimestamp, locale) {
|
|
9
9
|
if (locale === void 0) { locale = "en-US"; }
|
|
10
10
|
var res = new Date(unixTimestamp * 1000).toLocaleDateString(locale, {
|
|
11
11
|
month: "numeric",
|
|
@@ -17,7 +17,8 @@ exports.formatUnixDateToHumanString = function (unixTimestamp, locale) {
|
|
|
17
17
|
}
|
|
18
18
|
return res;
|
|
19
19
|
};
|
|
20
|
-
exports.
|
|
20
|
+
exports.formatUnixDateToHumanString = formatUnixDateToHumanString;
|
|
21
|
+
var formatUnixDateToHumanStringDDMMYY = function (unixTimestamp) {
|
|
21
22
|
var res = new Date(unixTimestamp * 1000).toLocaleDateString("en-GB", {
|
|
22
23
|
year: "2-digit",
|
|
23
24
|
month: "2-digit",
|
|
@@ -28,12 +29,14 @@ exports.formatUnixDateToHumanStringDDMMYY = function (unixTimestamp) {
|
|
|
28
29
|
}
|
|
29
30
|
return res;
|
|
30
31
|
};
|
|
31
|
-
exports.
|
|
32
|
-
|
|
33
|
-
var
|
|
34
|
-
|
|
32
|
+
exports.formatUnixDateToHumanStringDDMMYY = formatUnixDateToHumanStringDDMMYY;
|
|
33
|
+
var formatUnixDateToHumanStringDDMMHHMM = function (unixTimestamp) {
|
|
34
|
+
var ddmm = (0, exports.formatUnixDateToHumanStringDDMM)(unixTimestamp);
|
|
35
|
+
var hhmm = (0, exports.formatUnixDateToHumanStringHHMM)(unixTimestamp);
|
|
36
|
+
return "".concat(ddmm, " ").concat(hhmm);
|
|
35
37
|
};
|
|
36
|
-
exports.
|
|
38
|
+
exports.formatUnixDateToHumanStringDDMMHHMM = formatUnixDateToHumanStringDDMMHHMM;
|
|
39
|
+
var formatUnixDateToHumanStringDDMM = function (unixTimestamp) {
|
|
37
40
|
var res = new Date(unixTimestamp * 1000).toLocaleDateString("en-GB", {
|
|
38
41
|
day: "numeric",
|
|
39
42
|
month: "numeric"
|
|
@@ -43,27 +46,30 @@ exports.formatUnixDateToHumanStringDDMM = function (unixTimestamp) {
|
|
|
43
46
|
}
|
|
44
47
|
return res;
|
|
45
48
|
};
|
|
46
|
-
exports.
|
|
49
|
+
exports.formatUnixDateToHumanStringDDMM = formatUnixDateToHumanStringDDMM;
|
|
50
|
+
var formatUnixDateToHumanStringHHMM = function (unixTimestamp) {
|
|
47
51
|
var date = new Date(unixTimestamp * 1000);
|
|
48
52
|
var hours = date.getUTCHours();
|
|
49
53
|
var minutes = date.getUTCMinutes();
|
|
50
54
|
if (isNaN(hours) || isNaN(minutes)) {
|
|
51
55
|
return "";
|
|
52
56
|
}
|
|
53
|
-
var hoursString = hours <= 9 ? "0"
|
|
54
|
-
var minutesString = minutes <= 9 ? "0"
|
|
55
|
-
return hoursString
|
|
57
|
+
var hoursString = hours <= 9 ? "0".concat(hours) : hours.toString(10);
|
|
58
|
+
var minutesString = minutes <= 9 ? "0".concat(minutes) : minutes.toString(10);
|
|
59
|
+
return "".concat(hoursString, ":").concat(minutesString);
|
|
56
60
|
};
|
|
57
|
-
exports.
|
|
61
|
+
exports.formatUnixDateToHumanStringHHMM = formatUnixDateToHumanStringHHMM;
|
|
62
|
+
var formatUnixDateToHumanStringMMMDD = function (unixTimestamp) {
|
|
58
63
|
var date = new Date(unixTimestamp * 1000);
|
|
59
64
|
var month = date.getUTCMonth();
|
|
60
65
|
var day = date.getUTCDate();
|
|
61
66
|
if (isNaN(month) || isNaN(day)) {
|
|
62
67
|
return "";
|
|
63
68
|
}
|
|
64
|
-
return getMonthString(month)
|
|
69
|
+
return "".concat(getMonthString(month), " ").concat(day);
|
|
65
70
|
};
|
|
66
|
-
exports.
|
|
71
|
+
exports.formatUnixDateToHumanStringMMMDD = formatUnixDateToHumanStringMMMDD;
|
|
72
|
+
var formatUnixDateToHumanStringMMM = function (unixTimestamp) {
|
|
67
73
|
var date = new Date(unixTimestamp * 1000);
|
|
68
74
|
var month = date.getUTCMonth();
|
|
69
75
|
if (isNaN(month)) {
|
|
@@ -71,7 +77,8 @@ exports.formatUnixDateToHumanStringMMM = function (unixTimestamp) {
|
|
|
71
77
|
}
|
|
72
78
|
return getMonthString(month);
|
|
73
79
|
};
|
|
74
|
-
exports.
|
|
80
|
+
exports.formatUnixDateToHumanStringMMM = formatUnixDateToHumanStringMMM;
|
|
81
|
+
var formatUnixDateToHumanStringDD = function (unixTimestamp) {
|
|
75
82
|
var date = new Date(unixTimestamp * 1000);
|
|
76
83
|
var day = date.getUTCDate();
|
|
77
84
|
if (isNaN(day)) {
|
|
@@ -82,13 +89,14 @@ exports.formatUnixDateToHumanStringDD = function (unixTimestamp) {
|
|
|
82
89
|
return strDay;
|
|
83
90
|
}
|
|
84
91
|
else if (strDay.length === 1) {
|
|
85
|
-
return "0"
|
|
92
|
+
return "0".concat(strDay);
|
|
86
93
|
}
|
|
87
94
|
else {
|
|
88
95
|
return "";
|
|
89
96
|
}
|
|
90
97
|
};
|
|
91
|
-
exports.
|
|
98
|
+
exports.formatUnixDateToHumanStringDD = formatUnixDateToHumanStringDD;
|
|
99
|
+
var formatUnixDateToHumanStringYYYY = function (unixTimestamp) {
|
|
92
100
|
var date = new Date(unixTimestamp * 1000);
|
|
93
101
|
var year = date.getUTCFullYear();
|
|
94
102
|
if (isNaN(year)) {
|
|
@@ -96,6 +104,7 @@ exports.formatUnixDateToHumanStringYYYY = function (unixTimestamp) {
|
|
|
96
104
|
}
|
|
97
105
|
return year.toString(10);
|
|
98
106
|
};
|
|
107
|
+
exports.formatUnixDateToHumanStringYYYY = formatUnixDateToHumanStringYYYY;
|
|
99
108
|
var getMonthString = function (month) {
|
|
100
109
|
switch (month) {
|
|
101
110
|
case 0:
|
package/utils/font.js
CHANGED
|
@@ -8,8 +8,9 @@ exports.getFontString = void 0;
|
|
|
8
8
|
* @param fontSize The font size in pixels
|
|
9
9
|
* @param fontFamily The font family
|
|
10
10
|
*/
|
|
11
|
-
|
|
11
|
+
var getFontString = function (fontStyle, fontWeight, fontSize, fontFamily) {
|
|
12
12
|
if (!fontWeight)
|
|
13
|
-
return fontStyle
|
|
14
|
-
return fontStyle
|
|
13
|
+
return "".concat(fontStyle, " ").concat(fontSize, "px ").concat(fontFamily);
|
|
14
|
+
return "".concat(fontStyle, " ").concat(fontWeight, " ").concat(fontSize, "px ").concat(fontFamily);
|
|
15
15
|
};
|
|
16
|
+
exports.getFontString = getFontString;
|
package/utils/guid.js
CHANGED
|
@@ -4,10 +4,11 @@ exports.generateGuid = void 0;
|
|
|
4
4
|
/**
|
|
5
5
|
* @description Generates GUID/UUID RFC4122 version 4 compliant
|
|
6
6
|
*/
|
|
7
|
-
|
|
7
|
+
var generateGuid = function () {
|
|
8
8
|
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function (c) {
|
|
9
9
|
var r = (Math.random() * 16) | 0;
|
|
10
10
|
var v = c === "x" ? r : (r & 0x3) | 0x8;
|
|
11
11
|
return v.toString(16);
|
|
12
12
|
});
|
|
13
13
|
};
|
|
14
|
+
exports.generateGuid = generateGuid;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.hasAllProperties = void 0;
|
|
4
|
-
|
|
4
|
+
var hasAllProperties = function (obj, props) {
|
|
5
5
|
for (var i = 0; i < props.length; i++) {
|
|
6
6
|
if (!obj.hasOwnProperty(props[i]))
|
|
7
7
|
return false;
|
|
8
8
|
}
|
|
9
9
|
return true;
|
|
10
10
|
};
|
|
11
|
+
exports.hasAllProperties = hasAllProperties;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.testHasExcluded = exports.getIncludedAxis = void 0;
|
|
4
|
+
var getIncludedAxis = function (allAxes, axisMap) {
|
|
5
|
+
if (axisMap.size === 0) {
|
|
6
|
+
return allAxes;
|
|
7
|
+
}
|
|
8
|
+
if ((0, exports.testHasExcluded)(axisMap)) {
|
|
9
|
+
return allAxes.filter(function (axis) { return axisMap.get(axis.id) !== false; });
|
|
10
|
+
}
|
|
11
|
+
return allAxes.filter(function (axis) { return axisMap.get(axis.id) === true; });
|
|
12
|
+
};
|
|
13
|
+
exports.getIncludedAxis = getIncludedAxis;
|
|
14
|
+
var testHasExcluded = function (axisMap) {
|
|
15
|
+
var hasExcluded = false;
|
|
16
|
+
axisMap.forEach(function (value) {
|
|
17
|
+
if (value === false) {
|
|
18
|
+
hasExcluded = true;
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
return hasExcluded;
|
|
22
|
+
};
|
|
23
|
+
exports.testHasExcluded = testHasExcluded;
|
package/utils/math.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.logToBase = exports.fillNoisySinewave = exports.getNoisySinewave = void 0;
|
|
4
|
-
|
|
4
|
+
var getNoisySinewave = function (pointCount, xMax, frequency, amplitude, noiseAmplitude) {
|
|
5
5
|
// TODO: add noise
|
|
6
6
|
var xValues = [];
|
|
7
7
|
var yValues = [];
|
|
@@ -16,7 +16,8 @@ exports.getNoisySinewave = function (pointCount, xMax, frequency, amplitude, noi
|
|
|
16
16
|
}
|
|
17
17
|
return [xValues, yValues];
|
|
18
18
|
};
|
|
19
|
-
exports.
|
|
19
|
+
exports.getNoisySinewave = getNoisySinewave;
|
|
20
|
+
var fillNoisySinewave = function (pointCount, xMax, frequency, amplitude, noiseAmplitude, dataSeries) {
|
|
20
21
|
var phase = frequency / xMax;
|
|
21
22
|
var freq = 2 * Math.PI * phase;
|
|
22
23
|
var xValues = dataSeries.getNativeXValues();
|
|
@@ -31,9 +32,11 @@ exports.fillNoisySinewave = function (pointCount, xMax, frequency, amplitude, no
|
|
|
31
32
|
yValues.push_back(y + yNoise);
|
|
32
33
|
}
|
|
33
34
|
};
|
|
34
|
-
exports.
|
|
35
|
+
exports.fillNoisySinewave = fillNoisySinewave;
|
|
36
|
+
var logToBase = function (n, base) {
|
|
35
37
|
if (base === 10) {
|
|
36
38
|
return Math.log10(n);
|
|
37
39
|
}
|
|
38
40
|
return Math.log(n) / (base ? Math.log(base) : 1);
|
|
39
41
|
};
|
|
42
|
+
exports.logToBase = logToBase;
|
package/utils/number.js
CHANGED
|
@@ -8,15 +8,17 @@ var math_1 = require("./math");
|
|
|
8
8
|
* @description Formats value always to have 2 decimal digits, e.g. 12.45, 14.20, 17.00
|
|
9
9
|
* @param value
|
|
10
10
|
*/
|
|
11
|
-
|
|
11
|
+
var formatNumber2Digits = function (value) {
|
|
12
12
|
return (Math.round((value + Number.EPSILON) * 100) / 100).toFixed(2);
|
|
13
13
|
};
|
|
14
|
-
exports.
|
|
14
|
+
exports.formatNumber2Digits = formatNumber2Digits;
|
|
15
|
+
var numericHashCode = function (hash, value) {
|
|
15
16
|
hash = hash * 31 - hash + value;
|
|
16
17
|
hash |= 0; // Convert to 32bit integer
|
|
17
18
|
return hash;
|
|
18
19
|
};
|
|
19
|
-
exports.
|
|
20
|
+
exports.numericHashCode = numericHashCode;
|
|
21
|
+
var formatNumber = function (dataValue, numericFormat, precision) {
|
|
20
22
|
if (dataValue === undefined)
|
|
21
23
|
return "";
|
|
22
24
|
switch (numericFormat) {
|
|
@@ -30,21 +32,22 @@ exports.formatNumber = function (dataValue, numericFormat, precision) {
|
|
|
30
32
|
case NumericFormat_1.ENumericFormat.Exponential:
|
|
31
33
|
return dataValue.toExponential(precision);
|
|
32
34
|
case NumericFormat_1.ENumericFormat.Scientific:
|
|
33
|
-
return exports.toScientific(dataValue, precision, 10);
|
|
35
|
+
return (0, exports.toScientific)(dataValue, precision, 10);
|
|
34
36
|
case NumericFormat_1.ENumericFormat.Date_DDMMYYYY:
|
|
35
|
-
return date_1.formatUnixDateToHumanString(dataValue);
|
|
37
|
+
return (0, date_1.formatUnixDateToHumanString)(dataValue);
|
|
36
38
|
case NumericFormat_1.ENumericFormat.Date_DDMMYY:
|
|
37
|
-
return date_1.formatUnixDateToHumanStringDDMMYY(dataValue);
|
|
39
|
+
return (0, date_1.formatUnixDateToHumanStringDDMMYY)(dataValue);
|
|
38
40
|
case NumericFormat_1.ENumericFormat.Date_DDMMHHMM:
|
|
39
|
-
return date_1.formatUnixDateToHumanStringDDMMHHMM(dataValue);
|
|
41
|
+
return (0, date_1.formatUnixDateToHumanStringDDMMHHMM)(dataValue);
|
|
40
42
|
case NumericFormat_1.ENumericFormat.Date_DDMM:
|
|
41
|
-
return date_1.formatUnixDateToHumanStringDDMM(dataValue);
|
|
43
|
+
return (0, date_1.formatUnixDateToHumanStringDDMM)(dataValue);
|
|
42
44
|
case NumericFormat_1.ENumericFormat.Date_HHMM:
|
|
43
|
-
return date_1.formatUnixDateToHumanStringHHMM(dataValue);
|
|
45
|
+
return (0, date_1.formatUnixDateToHumanStringHHMM)(dataValue);
|
|
44
46
|
}
|
|
45
47
|
};
|
|
48
|
+
exports.formatNumber = formatNumber;
|
|
46
49
|
var superScript_map = ['\u2070', '\u00B9', '\u00B2', '\u00B3', '\u2074', '\u2075', '\u2076', '\u2077', '\u2078', '\u2079'];
|
|
47
|
-
|
|
50
|
+
var toSuperScript = function (value) {
|
|
48
51
|
var str = "";
|
|
49
52
|
var isNegative = value < 0;
|
|
50
53
|
var valStr = Math.abs(value).toString();
|
|
@@ -60,9 +63,11 @@ exports.toSuperScript = function (value) {
|
|
|
60
63
|
}
|
|
61
64
|
return (isNegative ? '\u207B' : "") + str;
|
|
62
65
|
};
|
|
63
|
-
exports.
|
|
64
|
-
|
|
66
|
+
exports.toSuperScript = toSuperScript;
|
|
67
|
+
var toScientific = function (value, precision, logarithmicBase) {
|
|
68
|
+
var exponent = (0, math_1.logToBase)(Math.abs(value), logarithmicBase);
|
|
65
69
|
exponent = Math.floor(exponent);
|
|
66
70
|
var sig = value / Math.pow(logarithmicBase, exponent);
|
|
67
|
-
return sig.toPrecision(precision).toString() + "x" + logarithmicBase.toString() + exports.toSuperScript(exponent);
|
|
71
|
+
return sig.toPrecision(precision).toString() + "x" + logarithmicBase.toString() + (0, exports.toSuperScript)(exponent);
|
|
68
72
|
};
|
|
73
|
+
exports.toScientific = toScientific;
|
package/utils/parseColor.js
CHANGED
|
@@ -107,7 +107,7 @@ exports.parseColorToTArgb = parseColorToTArgb;
|
|
|
107
107
|
* Converts color from ARGB number format into HTML string format #FFFFFFFF
|
|
108
108
|
* @param argbColor color in ARGB format
|
|
109
109
|
*/
|
|
110
|
-
|
|
110
|
+
var parseArgbToHtmlColor = function (argbColor) {
|
|
111
111
|
var res = argbColor.toString(16);
|
|
112
112
|
var length = res.length;
|
|
113
113
|
if (length > 8) {
|
|
@@ -122,29 +122,31 @@ exports.parseArgbToHtmlColor = function (argbColor) {
|
|
|
122
122
|
var a = addLeadingZeros(res.substring(0, res.length - 6), 2);
|
|
123
123
|
return "#" + rgb + a;
|
|
124
124
|
};
|
|
125
|
+
exports.parseArgbToHtmlColor = parseArgbToHtmlColor;
|
|
125
126
|
/**
|
|
126
127
|
* Useful for debugging purposes. Converts {@link TArgb} to HTML Color code e.g. '#FF112233'=RGBA
|
|
127
128
|
* @param targb
|
|
128
129
|
*/
|
|
129
|
-
|
|
130
|
+
var parseTArgbToHtmlColor = function (targb) {
|
|
130
131
|
var r = targb.red.toString(16);
|
|
131
132
|
var g = targb.green.toString(16);
|
|
132
133
|
var b = targb.blue.toString(16);
|
|
133
134
|
var a = targb.opacity.toString(16);
|
|
134
135
|
return ("#" + r + g + b + a).toUpperCase();
|
|
135
136
|
};
|
|
137
|
+
exports.parseTArgbToHtmlColor = parseTArgbToHtmlColor;
|
|
136
138
|
/** @ignore */
|
|
137
139
|
function validateColorValues(values, variableNames) {
|
|
138
140
|
values.forEach(function (value, index) {
|
|
139
141
|
var variableName = variableNames[index];
|
|
140
142
|
if (value === undefined) {
|
|
141
|
-
throw Error("parseColor error "
|
|
143
|
+
throw Error("parseColor error ".concat(variableName, " color should not be null"));
|
|
142
144
|
}
|
|
143
145
|
else if (Number.isNaN(value)) {
|
|
144
|
-
throw Error("parseColor error "
|
|
146
|
+
throw Error("parseColor error ".concat(variableName, " color should not be NaN"));
|
|
145
147
|
}
|
|
146
148
|
else if (value < 0 || value > 255) {
|
|
147
|
-
throw Error("parseColor error "
|
|
149
|
+
throw Error("parseColor error ".concat(variableName, " color should be within [0, 255] range"));
|
|
148
150
|
}
|
|
149
151
|
});
|
|
150
152
|
}
|
package/utils/pointUtil.js
CHANGED
|
@@ -2,20 +2,24 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.calcDistanceFromLineSegment = exports.calcDotProduct = exports.testIsInInterval = exports.testIsInXBounds = exports.calcAnnotationBordersForAxisMarker = exports.testIsInBounds = exports.calcDistance = exports.calcCrossProduct = exports.calcDistanceFromLine = void 0;
|
|
4
4
|
var AxisAlignment_1 = require("../types/AxisAlignment");
|
|
5
|
-
|
|
6
|
-
return Math.abs(exports.calcCrossProduct(startX, startY, endX, endY, x, y) / exports.calcDistance(startX, startY, endX, endY));
|
|
5
|
+
var calcDistanceFromLine = function (x, y, startX, startY, endX, endY) {
|
|
6
|
+
return Math.abs((0, exports.calcCrossProduct)(startX, startY, endX, endY, x, y) / (0, exports.calcDistance)(startX, startY, endX, endY));
|
|
7
7
|
};
|
|
8
|
-
exports.
|
|
8
|
+
exports.calcDistanceFromLine = calcDistanceFromLine;
|
|
9
|
+
var calcCrossProduct = function (xA, yA, xB, yB, xC, yC) {
|
|
9
10
|
return (xB - xA) * (yC - yA) - (yB - yA) * (xC - xA);
|
|
10
11
|
};
|
|
11
|
-
exports.
|
|
12
|
+
exports.calcCrossProduct = calcCrossProduct;
|
|
13
|
+
var calcDistance = function (x1, y1, x2, y2) {
|
|
12
14
|
var diffX = x1 - x2;
|
|
13
15
|
var diffY = y1 - y2;
|
|
14
16
|
return Math.sqrt(diffX * diffX + diffY * diffY);
|
|
15
17
|
};
|
|
16
|
-
exports.
|
|
18
|
+
exports.calcDistance = calcDistance;
|
|
19
|
+
var testIsInBounds = function (x, y, left, top, right, bottom) {
|
|
17
20
|
return x >= left && x <= right && y >= bottom && y <= top;
|
|
18
21
|
};
|
|
22
|
+
exports.testIsInBounds = testIsInBounds;
|
|
19
23
|
/**
|
|
20
24
|
* Calculates annotation borders for {@link AxisMarkerAnnotation}
|
|
21
25
|
* @param isVerticalChart the vertical chart flag
|
|
@@ -33,7 +37,7 @@ exports.testIsInBounds = function (x, y, left, top, right, bottom) {
|
|
|
33
37
|
* @param isHorizontalAxisAlignmentReversed if true EAxisAlignment.Top, otherwise EAxisAlignment.Bottom
|
|
34
38
|
* @param isVerticalAxisAlignmentReversed if true EAxisAlignment.Left, otherwise EAxisAlignment.Right
|
|
35
39
|
*/
|
|
36
|
-
|
|
40
|
+
var calcAnnotationBordersForAxisMarker = function (isVerticalChart, x1, y1, horizontalAxis, verticalAxis, textureWidth, viewRect, xPosition, yPosition, textureHeight, annotationMarginXDirection, annotationMarginYDirection, isHorizontalAxisAlignmentReversed, isVerticalAxisAlignmentReversed) {
|
|
37
41
|
var annotationBorders = { x1: 0, x2: 0, y1: 0, y2: 0 };
|
|
38
42
|
if (isVerticalChart) {
|
|
39
43
|
if (x1) {
|
|
@@ -119,10 +123,12 @@ exports.calcAnnotationBordersForAxisMarker = function (isVerticalChart, x1, y1,
|
|
|
119
123
|
}
|
|
120
124
|
return annotationBorders;
|
|
121
125
|
};
|
|
122
|
-
exports.
|
|
126
|
+
exports.calcAnnotationBordersForAxisMarker = calcAnnotationBordersForAxisMarker;
|
|
127
|
+
var testIsInXBounds = function (xHitTestPoint, xDataPointCoord, maxDistance) {
|
|
123
128
|
var distance = Math.abs(xHitTestPoint - xDataPointCoord);
|
|
124
129
|
return distance < maxDistance;
|
|
125
130
|
};
|
|
131
|
+
exports.testIsInXBounds = testIsInXBounds;
|
|
126
132
|
/**
|
|
127
133
|
* Tests if X is within radius from the [intervalStart, intervalEnd] interval,
|
|
128
134
|
* intervalStart, intervalEnd values might not be sorted
|
|
@@ -131,7 +137,7 @@ exports.testIsInXBounds = function (xHitTestPoint, xDataPointCoord, maxDistance)
|
|
|
131
137
|
* @param intervalEnd
|
|
132
138
|
* @param radius
|
|
133
139
|
*/
|
|
134
|
-
|
|
140
|
+
var testIsInInterval = function (x, intervalStart, intervalEnd, radius) {
|
|
135
141
|
if (radius === void 0) { radius = 0; }
|
|
136
142
|
if (intervalStart <= intervalEnd) {
|
|
137
143
|
return intervalStart - radius <= x && x <= intervalEnd + radius;
|
|
@@ -140,15 +146,18 @@ exports.testIsInInterval = function (x, intervalStart, intervalEnd, radius) {
|
|
|
140
146
|
return intervalEnd - radius <= x && x <= intervalStart + radius;
|
|
141
147
|
}
|
|
142
148
|
};
|
|
143
|
-
exports.
|
|
149
|
+
exports.testIsInInterval = testIsInInterval;
|
|
150
|
+
var calcDotProduct = function (v1x, v1y, v2x, v2y, v3x, v3y) {
|
|
144
151
|
return (v2x - v1x) * (v3x - v2x) + (v2y - v1y) * (v3y - v2y);
|
|
145
152
|
};
|
|
146
|
-
exports.
|
|
147
|
-
|
|
148
|
-
|
|
153
|
+
exports.calcDotProduct = calcDotProduct;
|
|
154
|
+
var calcDistanceFromLineSegment = function (x, y, startX, startY, endX, endY) {
|
|
155
|
+
if ((0, exports.calcDotProduct)(startX, startY, endX, endY, x, y) > 0) {
|
|
156
|
+
return (0, exports.calcDistance)(endX, endY, x, y);
|
|
149
157
|
}
|
|
150
|
-
if (exports.calcDotProduct(endX, endY, startX, startY, x, y) > 0) {
|
|
151
|
-
return exports.calcDistance(startX, startY, x, y);
|
|
158
|
+
if ((0, exports.calcDotProduct)(endX, endY, startX, startY, x, y) > 0) {
|
|
159
|
+
return (0, exports.calcDistance)(startX, startY, x, y);
|
|
152
160
|
}
|
|
153
|
-
return exports.calcDistanceFromLine(x, y, startX, startY, endX, endY);
|
|
161
|
+
return (0, exports.calcDistanceFromLine)(x, y, startX, startY, endX, endY);
|
|
154
162
|
};
|
|
163
|
+
exports.calcDistanceFromLineSegment = calcDistanceFromLineSegment;
|
package/utils/random.js
CHANGED
|
@@ -7,8 +7,9 @@ exports.getRandomInRange = void 0;
|
|
|
7
7
|
* @param max
|
|
8
8
|
* @param decimalPlaces
|
|
9
9
|
*/
|
|
10
|
-
|
|
10
|
+
var getRandomInRange = function (min, max, decimalPlaces) {
|
|
11
11
|
var rand = Math.random();
|
|
12
12
|
var resultInRange = min + rand * (max - min);
|
|
13
13
|
return parseInt((resultInRange * Math.pow(10, decimalPlaces)).toFixed(decimalPlaces), 10) / Math.pow(10, decimalPlaces);
|
|
14
14
|
};
|
|
15
|
+
exports.getRandomInRange = getRandomInRange;
|
|
@@ -8,16 +8,16 @@ var random_1 = require("./random");
|
|
|
8
8
|
* @param RANDOM_MIN
|
|
9
9
|
* @param RANDOM_MAX
|
|
10
10
|
*/
|
|
11
|
-
|
|
11
|
+
var getStocksDataFactory = function (STEP, RANDOM_MIN, RANDOM_MAX) { return function (unixTimestamp, close) {
|
|
12
12
|
var DEVIATION = 0.7;
|
|
13
13
|
var newTimeStamp = unixTimestamp + STEP;
|
|
14
14
|
var newOpenValue = close;
|
|
15
|
-
var newCloseValue = random_1.getRandomInRange(RANDOM_MIN, RANDOM_MAX, 3);
|
|
15
|
+
var newCloseValue = (0, random_1.getRandomInRange)(RANDOM_MIN, RANDOM_MAX, 3);
|
|
16
16
|
var delta = Math.abs(newOpenValue - newCloseValue);
|
|
17
17
|
var maxValue = Math.max(newOpenValue, newCloseValue);
|
|
18
|
-
var newHighValue = random_1.getRandomInRange(maxValue, Math.min(RANDOM_MAX, maxValue + delta * DEVIATION), 3);
|
|
18
|
+
var newHighValue = (0, random_1.getRandomInRange)(maxValue, Math.min(RANDOM_MAX, maxValue + delta * DEVIATION), 3);
|
|
19
19
|
var minValue = Math.min(newOpenValue, newCloseValue);
|
|
20
|
-
var newLowValue = random_1.getRandomInRange(Math.max(RANDOM_MIN, minValue - delta * DEVIATION), minValue, 3);
|
|
20
|
+
var newLowValue = (0, random_1.getRandomInRange)(Math.max(RANDOM_MIN, minValue - delta * DEVIATION), minValue, 3);
|
|
21
21
|
return {
|
|
22
22
|
xValue: newTimeStamp,
|
|
23
23
|
openValue: newOpenValue,
|
|
@@ -26,6 +26,7 @@ exports.getStocksDataFactory = function (STEP, RANDOM_MIN, RANDOM_MAX) { return
|
|
|
26
26
|
closeValue: newCloseValue
|
|
27
27
|
};
|
|
28
28
|
}; };
|
|
29
|
+
exports.getStocksDataFactory = getStocksDataFactory;
|
|
29
30
|
var PriceBar = /** @class */ (function () {
|
|
30
31
|
function PriceBar(xValue, openValue, highValue, lowValue, closeValue, volume) {
|
|
31
32
|
this.xValue = xValue;
|
|
@@ -37,7 +38,7 @@ var PriceBar = /** @class */ (function () {
|
|
|
37
38
|
}
|
|
38
39
|
return PriceBar;
|
|
39
40
|
}());
|
|
40
|
-
|
|
41
|
+
var getNextRandomPriceBarFactory = function (startDateTimestamp, candleIntervalMinutes, simulateDateGap, startPrice) {
|
|
41
42
|
var currentTimestamp = startDateTimestamp;
|
|
42
43
|
var lastPriceBar = new PriceBar(startDateTimestamp, startPrice, startPrice, startPrice, startPrice, 0);
|
|
43
44
|
return function (requestUpdate) {
|
|
@@ -81,6 +82,7 @@ exports.getNextRandomPriceBarFactory = function (startDateTimestamp, candleInter
|
|
|
81
82
|
}
|
|
82
83
|
};
|
|
83
84
|
};
|
|
85
|
+
exports.getNextRandomPriceBarFactory = getNextRandomPriceBarFactory;
|
|
84
86
|
/** @ignore */
|
|
85
87
|
var emulateDateGap = function (lastPriceBarTimestamp) {
|
|
86
88
|
return lastPriceBarTimestamp;
|
package/utils/svgString.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getAttributeFromString = void 0;
|
|
4
|
-
|
|
4
|
+
var getAttributeFromString = function (str, attributeName) {
|
|
5
5
|
var index = str.indexOf(attributeName);
|
|
6
6
|
if (index >= 0) {
|
|
7
7
|
var strStart = str.indexOf('"', index);
|
|
@@ -16,3 +16,4 @@ exports.getAttributeFromString = function (str, attributeName) {
|
|
|
16
16
|
}
|
|
17
17
|
return undefined;
|
|
18
18
|
};
|
|
19
|
+
exports.getAttributeFromString = getAttributeFromString;
|
package/utils/translate.js
CHANGED
|
@@ -13,7 +13,7 @@ var Point_1 = require("../Core/Point");
|
|
|
13
13
|
* @param seriesViewRect
|
|
14
14
|
* @param allowValuesOutOfBounds will translate even if the point is outside of the seriesViewRect
|
|
15
15
|
*/
|
|
16
|
-
|
|
16
|
+
var translateFromCanvasToSeriesViewRect = function (point, seriesViewRect, allowValuesOutOfBounds) {
|
|
17
17
|
if (allowValuesOutOfBounds === void 0) { allowValuesOutOfBounds = false; }
|
|
18
18
|
if (!seriesViewRect) {
|
|
19
19
|
return undefined;
|
|
@@ -27,13 +27,14 @@ exports.translateFromCanvasToSeriesViewRect = function (point, seriesViewRect, a
|
|
|
27
27
|
}
|
|
28
28
|
return new Point_1.Point(newX, newY);
|
|
29
29
|
};
|
|
30
|
+
exports.translateFromCanvasToSeriesViewRect = translateFromCanvasToSeriesViewRect;
|
|
30
31
|
/**
|
|
31
32
|
* Translates from seriesViewRect to canvas screen coordinates
|
|
32
33
|
* @param point
|
|
33
34
|
* @param seriesViewRect
|
|
34
35
|
* @param allowValuesOutOfBounds will translate even if the point is outside of the seriesViewRect
|
|
35
36
|
*/
|
|
36
|
-
|
|
37
|
+
var translateFromSeriesViewRectToCanvas = function (point, seriesViewRect, allowValuesOutOfBounds) {
|
|
37
38
|
if (allowValuesOutOfBounds === void 0) { allowValuesOutOfBounds = false; }
|
|
38
39
|
if (!seriesViewRect) {
|
|
39
40
|
return undefined;
|
|
@@ -47,7 +48,8 @@ exports.translateFromSeriesViewRectToCanvas = function (point, seriesViewRect, a
|
|
|
47
48
|
}
|
|
48
49
|
return new Point_1.Point(newX, newY);
|
|
49
50
|
};
|
|
50
|
-
exports.
|
|
51
|
+
exports.translateFromSeriesViewRectToCanvas = translateFromSeriesViewRectToCanvas;
|
|
52
|
+
var translateFromCanvasToSeriesViewRectX = function (x, seriesViewRect) {
|
|
51
53
|
if (!seriesViewRect) {
|
|
52
54
|
return undefined;
|
|
53
55
|
}
|
|
@@ -57,7 +59,8 @@ exports.translateFromCanvasToSeriesViewRectX = function (x, seriesViewRect) {
|
|
|
57
59
|
}
|
|
58
60
|
return newX;
|
|
59
61
|
};
|
|
60
|
-
exports.
|
|
62
|
+
exports.translateFromCanvasToSeriesViewRectX = translateFromCanvasToSeriesViewRectX;
|
|
63
|
+
var translateFromCanvasToSeriesViewRectY = function (y, seriesViewRect) {
|
|
61
64
|
if (!seriesViewRect) {
|
|
62
65
|
return undefined;
|
|
63
66
|
}
|
|
@@ -67,4 +70,6 @@ exports.translateFromCanvasToSeriesViewRectY = function (y, seriesViewRect) {
|
|
|
67
70
|
}
|
|
68
71
|
return newY;
|
|
69
72
|
};
|
|
70
|
-
exports.
|
|
73
|
+
exports.translateFromCanvasToSeriesViewRectY = translateFromCanvasToSeriesViewRectY;
|
|
74
|
+
var translateToNotScaled = function (value) { return value / DpiHelper_1.DpiHelper.PIXEL_RATIO; };
|
|
75
|
+
exports.translateToNotScaled = translateToNotScaled;
|