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
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.ResetCamera3DModifier = void 0;
|
|
19
|
+
var DoubleAnimator_1 = require("../../Core/Animations/DoubleAnimator");
|
|
20
|
+
var EasingFunctions_1 = require("../../Core/Animations/EasingFunctions");
|
|
21
|
+
var GenericAnimation_1 = require("../../Core/Animations/GenericAnimation");
|
|
22
|
+
var ChartModifierType_1 = require("../../types/ChartModifierType");
|
|
23
|
+
var CameraController_1 = require("../CameraController");
|
|
24
|
+
var ChartModifierBase3D_1 = require("./ChartModifierBase3D");
|
|
25
|
+
/**
|
|
26
|
+
* @summary The {@link ResetCamera3DModifier} provides double click to zoom to extents behavior on a 3D {@link SciChart3DSurface}
|
|
27
|
+
* within SciChart - High Performance {@link https://www.scichart.com/javascript-chart-features | JavaScript 3D Charts}
|
|
28
|
+
* @description
|
|
29
|
+
*
|
|
30
|
+
* To apply the {@link ResetCamera3DModifier} to a {@link SciChart3DSurface} and add Mouse-wheel zoom behavior,
|
|
31
|
+
* use the following code:
|
|
32
|
+
*
|
|
33
|
+
* ```ts
|
|
34
|
+
* const sciChartS3Durface: SciChart3DSurface;
|
|
35
|
+
* sciChart3DSurface.chartModifiers.add(new ZoomExtentsModifier3D());
|
|
36
|
+
* ```
|
|
37
|
+
*
|
|
38
|
+
*/
|
|
39
|
+
var ResetCamera3DModifier = /** @class */ (function (_super) {
|
|
40
|
+
__extends(ResetCamera3DModifier, _super);
|
|
41
|
+
/**
|
|
42
|
+
* Creates an instance of the {@link ResetCamera3DModifier}
|
|
43
|
+
* @param options optional parameters of type {@link IResetCamera3DOptions} used to configure the modifier
|
|
44
|
+
*/
|
|
45
|
+
function ResetCamera3DModifier(options) {
|
|
46
|
+
var _a, _b, _c;
|
|
47
|
+
var _this = _super.call(this, options) || this;
|
|
48
|
+
/**
|
|
49
|
+
* When true, the Zoom operations are animated. See also {@link animationDuration} and {@link easingFunction}
|
|
50
|
+
*/
|
|
51
|
+
_this.isAnimated = true;
|
|
52
|
+
/**
|
|
53
|
+
* Defines the duration of animations when zooming in milliseconds
|
|
54
|
+
*/
|
|
55
|
+
_this.animationDuration = 400;
|
|
56
|
+
/**
|
|
57
|
+
* Defines the easing function for animation. See {@link TEasingFn} for a range of functions
|
|
58
|
+
*/
|
|
59
|
+
_this.easingFunction = EasingFunctions_1.easing.outExpo;
|
|
60
|
+
_this.isAnimated = (_a = options === null || options === void 0 ? void 0 : options.isAnimated) !== null && _a !== void 0 ? _a : true;
|
|
61
|
+
_this.animationDuration = (_b = options === null || options === void 0 ? void 0 : options.animationDuration) !== null && _b !== void 0 ? _b : 400;
|
|
62
|
+
if ((options === null || options === void 0 ? void 0 : options.easingFunction) && typeof options.easingFunction === "string") {
|
|
63
|
+
options.easingFunction = EasingFunctions_1.easing[options.easingFunction];
|
|
64
|
+
}
|
|
65
|
+
_this.easingFunction = (_c = options === null || options === void 0 ? void 0 : options.easingFunction) !== null && _c !== void 0 ? _c : EasingFunctions_1.easing.outExpo;
|
|
66
|
+
return _this;
|
|
67
|
+
}
|
|
68
|
+
ResetCamera3DModifier.prototype.onAttach = function () {
|
|
69
|
+
if (!this.destination) {
|
|
70
|
+
var scs = this.parentSurface;
|
|
71
|
+
if (!scs) {
|
|
72
|
+
return;
|
|
73
|
+
}
|
|
74
|
+
var camera = scs.camera;
|
|
75
|
+
if (!camera) {
|
|
76
|
+
return;
|
|
77
|
+
}
|
|
78
|
+
this.destination = {
|
|
79
|
+
radius: camera.radius,
|
|
80
|
+
pitch: camera.orbitalPitch,
|
|
81
|
+
yaw: camera.orbitalYaw,
|
|
82
|
+
width: camera.orthoWidth,
|
|
83
|
+
height: camera.orthoHeight
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
};
|
|
87
|
+
/**
|
|
88
|
+
* @inheritDoc
|
|
89
|
+
*/
|
|
90
|
+
ResetCamera3DModifier.prototype.modifierDoubleClick = function (args) {
|
|
91
|
+
var _a, _b;
|
|
92
|
+
var scs = this.parentSurface;
|
|
93
|
+
if (!scs) {
|
|
94
|
+
return;
|
|
95
|
+
}
|
|
96
|
+
var camera = scs.camera;
|
|
97
|
+
if (!camera) {
|
|
98
|
+
return;
|
|
99
|
+
}
|
|
100
|
+
var radius = camera.radius;
|
|
101
|
+
if (camera.projectionMode === CameraController_1.ECameraProjectionMode.Perspective) {
|
|
102
|
+
var animation = new GenericAnimation_1.GenericAnimation({
|
|
103
|
+
from: { radius: camera.radius, pitch: camera.orbitalPitch, yaw: camera.orbitalYaw },
|
|
104
|
+
to: (_a = this.destination) !== null && _a !== void 0 ? _a : { radius: 1, pitch: 0, yaw: 0 },
|
|
105
|
+
onAnimate: function (from, to, progress) {
|
|
106
|
+
camera.radius = DoubleAnimator_1.DoubleAnimator.interpolate(from.radius, to.radius, progress);
|
|
107
|
+
camera.orbitalPitch = DoubleAnimator_1.DoubleAnimator.interpolate(from.pitch, to.pitch, progress);
|
|
108
|
+
camera.orbitalYaw = DoubleAnimator_1.DoubleAnimator.interpolate(from.yaw, to.yaw, progress);
|
|
109
|
+
},
|
|
110
|
+
duration: this.isAnimated ? this.animationDuration : 0,
|
|
111
|
+
ease: this.easingFunction
|
|
112
|
+
});
|
|
113
|
+
scs.addAnimation(animation);
|
|
114
|
+
}
|
|
115
|
+
else {
|
|
116
|
+
var animation = new GenericAnimation_1.GenericAnimation({
|
|
117
|
+
from: { width: camera.orthoWidth, height: camera.orthoHeight },
|
|
118
|
+
to: (_b = this.destination) !== null && _b !== void 0 ? _b : { width: 1, height: 1 },
|
|
119
|
+
onAnimate: function (from, to, progress) {
|
|
120
|
+
camera.orthoWidth = DoubleAnimator_1.DoubleAnimator.interpolate(from.width, to.width, progress);
|
|
121
|
+
camera.orthoHeight = DoubleAnimator_1.DoubleAnimator.interpolate(from.height, to.height, progress);
|
|
122
|
+
},
|
|
123
|
+
duration: this.isAnimated ? this.animationDuration : 0,
|
|
124
|
+
ease: this.easingFunction
|
|
125
|
+
});
|
|
126
|
+
scs.addAnimation(animation);
|
|
127
|
+
}
|
|
128
|
+
args.handled = true;
|
|
129
|
+
};
|
|
130
|
+
// @ts-ignore
|
|
131
|
+
ResetCamera3DModifier.prototype.toJSON = function () {
|
|
132
|
+
return {
|
|
133
|
+
type: ChartModifierType_1.EChart3DModifierType.ZoomExtents,
|
|
134
|
+
options: {
|
|
135
|
+
animationDuration: this.animationDuration,
|
|
136
|
+
easingFunction: this.easingFunction.name,
|
|
137
|
+
isAnimated: this.isAnimated
|
|
138
|
+
}
|
|
139
|
+
};
|
|
140
|
+
};
|
|
141
|
+
return ResetCamera3DModifier;
|
|
142
|
+
}(ChartModifierBase3D_1.ChartModifierBase3D));
|
|
143
|
+
exports.ResetCamera3DModifier = ResetCamera3DModifier;
|
|
@@ -3,10 +3,12 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
3
3
|
var extendStatics = function (d, b) {
|
|
4
4
|
extendStatics = Object.setPrototypeOf ||
|
|
5
5
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
7
|
return extendStatics(d, b);
|
|
8
8
|
};
|
|
9
9
|
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
10
12
|
extendStatics(d, b);
|
|
11
13
|
function __() { this.constructor = d; }
|
|
12
14
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
@@ -132,7 +134,7 @@ var BaseGridDataSeries3D = /** @class */ (function (_super) {
|
|
|
132
134
|
return this.yValuesProperty[zIndex][xIndex];
|
|
133
135
|
}
|
|
134
136
|
catch (_a) {
|
|
135
|
-
console.log("error at get z,x "
|
|
137
|
+
console.log("error at get z,x ".concat(zIndex, ", ").concat(xIndex));
|
|
136
138
|
return 0;
|
|
137
139
|
}
|
|
138
140
|
};
|
|
@@ -3,10 +3,12 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
3
3
|
var extendStatics = function (d, b) {
|
|
4
4
|
extendStatics = Object.setPrototypeOf ||
|
|
5
5
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
7
|
return extendStatics(d, b);
|
|
8
8
|
};
|
|
9
9
|
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
10
12
|
extendStatics(d, b);
|
|
11
13
|
function __() { this.constructor = d; }
|
|
12
14
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
@@ -3,10 +3,12 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
3
3
|
var extendStatics = function (d, b) {
|
|
4
4
|
extendStatics = Object.setPrototypeOf ||
|
|
5
5
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
7
|
return extendStatics(d, b);
|
|
8
8
|
};
|
|
9
9
|
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
10
12
|
extendStatics(d, b);
|
|
11
13
|
function __() { this.constructor = d; }
|
|
12
14
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
@@ -291,9 +293,9 @@ var XyzDataSeries3D = /** @class */ (function (_super) {
|
|
|
291
293
|
* @inheritDoc
|
|
292
294
|
*/
|
|
293
295
|
XyzDataSeries3D.prototype.delete = function () {
|
|
294
|
-
this.xValues = Deleter_1.deleteSafe(this.xValues);
|
|
295
|
-
this.yValues = Deleter_1.deleteSafe(this.yValues);
|
|
296
|
-
this.zValues = Deleter_1.deleteSafe(this.zValues);
|
|
296
|
+
this.xValues = (0, Deleter_1.deleteSafe)(this.xValues);
|
|
297
|
+
this.yValues = (0, Deleter_1.deleteSafe)(this.yValues);
|
|
298
|
+
this.zValues = (0, Deleter_1.deleteSafe)(this.zValues);
|
|
297
299
|
this.metadata = [];
|
|
298
300
|
_super.prototype.delete.call(this);
|
|
299
301
|
};
|
package/Charting3D/Vector3.js
CHANGED
|
@@ -164,7 +164,7 @@ var Vector3 = /** @class */ (function () {
|
|
|
164
164
|
* Returns a string representation of the vector for debugging purposes
|
|
165
165
|
*/
|
|
166
166
|
Vector3.prototype.toString = function () {
|
|
167
|
-
return "Vector3 ("
|
|
167
|
+
return "Vector3 (".concat(this.xProperty.toFixed(2), ", ").concat(this.yProperty.toFixed(2), ", ").concat(this.zProperty.toFixed(2), ")");
|
|
168
168
|
};
|
|
169
169
|
Vector3.zeroVector = new Vector3(0, 0, 0);
|
|
170
170
|
return Vector3;
|
|
@@ -3,10 +3,12 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
3
3
|
var extendStatics = function (d, b) {
|
|
4
4
|
extendStatics = Object.setPrototypeOf ||
|
|
5
5
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
7
|
return extendStatics(d, b);
|
|
8
8
|
};
|
|
9
9
|
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
10
12
|
extendStatics(d, b);
|
|
11
13
|
function __() { this.constructor = d; }
|
|
12
14
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
@@ -305,9 +307,9 @@ var AxisBase3D = /** @class */ (function (_super) {
|
|
|
305
307
|
var descriptor = {
|
|
306
308
|
axisTitle: Array.isArray(this.axisTitle) ? this.axisTitle.join(" ") : this.axisTitle,
|
|
307
309
|
axisSize: this.getAxisSize(),
|
|
308
|
-
backgroundColor: parseColor_1.parseColorToUIntArgb(this.backgroundColor || defaultColor),
|
|
309
|
-
bandColor: parseColor_1.parseColorToTArgb(this.axisBandsFill || defaultBandsColor),
|
|
310
|
-
borderColor: parseColor_1.parseColorToUIntArgb(this.planeBorderColor || defaultColor),
|
|
310
|
+
backgroundColor: (0, parseColor_1.parseColorToUIntArgb)(this.backgroundColor || defaultColor),
|
|
311
|
+
bandColor: (0, parseColor_1.parseColorToTArgb)(this.axisBandsFill || defaultBandsColor),
|
|
312
|
+
borderColor: (0, parseColor_1.parseColorToUIntArgb)(this.planeBorderColor || defaultColor),
|
|
311
313
|
borderThickness: this.planeBorderThickness,
|
|
312
314
|
drawBands: this.drawMajorBands,
|
|
313
315
|
drawMajorGridlines: this.drawMajorGridLines,
|
|
@@ -321,7 +323,7 @@ var AxisBase3D = /** @class */ (function (_super) {
|
|
|
321
323
|
dpiScaling: this.labelStyle.dpiScaling / 96,
|
|
322
324
|
fontFamily: this.labelStyle.fontFamily,
|
|
323
325
|
fontSize: this.labelStyle.fontSize * DpiHelper_1.DpiHelper.PIXEL_RATIO,
|
|
324
|
-
foreground: parseColor_1.parseColorToUIntArgb(this.labelStyle.foreground)
|
|
326
|
+
foreground: (0, parseColor_1.parseColorToUIntArgb)(this.labelStyle.foreground)
|
|
325
327
|
},
|
|
326
328
|
majorCoordinates: majorTickCoords,
|
|
327
329
|
majorLineStyle: toLineStyle(this.majorGridLineStyle),
|
|
@@ -454,7 +456,7 @@ exports.AxisBase3D = AxisBase3D;
|
|
|
454
456
|
/** @ignore */
|
|
455
457
|
var toLineStyle = function (styleProperty) {
|
|
456
458
|
return {
|
|
457
|
-
stroke: parseColor_1.parseColorToTArgb(styleProperty.color),
|
|
459
|
+
stroke: (0, parseColor_1.parseColorToTArgb)(styleProperty.color),
|
|
458
460
|
strokeThickness: styleProperty.strokeThickness * DpiHelper_1.DpiHelper.PIXEL_RATIO,
|
|
459
461
|
start: 1,
|
|
460
462
|
end: 1
|
|
@@ -463,7 +465,7 @@ var toLineStyle = function (styleProperty) {
|
|
|
463
465
|
/** @ignore */
|
|
464
466
|
var toTickStyle = function (tickLineStyle) {
|
|
465
467
|
return {
|
|
466
|
-
stroke: parseColor_1.parseColorToTArgb(tickLineStyle.color),
|
|
468
|
+
stroke: (0, parseColor_1.parseColorToTArgb)(tickLineStyle.color),
|
|
467
469
|
strokeThickness: tickLineStyle.strokeThickness * DpiHelper_1.DpiHelper.PIXEL_RATIO,
|
|
468
470
|
start: 0,
|
|
469
471
|
end: tickLineStyle.tickSize * DpiHelper_1.DpiHelper.PIXEL_RATIO
|
|
@@ -3,10 +3,12 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
3
3
|
var extendStatics = function (d, b) {
|
|
4
4
|
extendStatics = Object.setPrototypeOf ||
|
|
5
5
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
7
|
return extendStatics(d, b);
|
|
8
8
|
};
|
|
9
9
|
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
10
12
|
extendStatics(d, b);
|
|
11
13
|
function __() { this.constructor = d; }
|
|
12
14
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
@@ -61,9 +63,9 @@ var AxisCubeEntity = /** @class */ (function (_super) {
|
|
|
61
63
|
var scrtAxisCubeDescriptor = scrtAxisCubeEntity.GetDescriptorPtr();
|
|
62
64
|
var _c = this.currentRenderPassData.sceneDescriptor.axisCubeDescriptor, xAxisDescriptor = _c.xAxisDescriptor, yAxisDescriptor = _c.yAxisDescriptor, zAxisDescriptor = _c.zAxisDescriptor;
|
|
63
65
|
// Check for changes and force recreation of meshes in C++ side
|
|
64
|
-
if (!IAxisDescriptor_1.getDescriptorsEqual(xAxisDescriptor, this.lastXDescriptor) ||
|
|
65
|
-
!IAxisDescriptor_1.getDescriptorsEqual(yAxisDescriptor, this.lastYDescriptor) ||
|
|
66
|
-
!IAxisDescriptor_1.getDescriptorsEqual(zAxisDescriptor, this.lastZDescriptor)) {
|
|
66
|
+
if (!(0, IAxisDescriptor_1.getDescriptorsEqual)(xAxisDescriptor, this.lastXDescriptor) ||
|
|
67
|
+
!(0, IAxisDescriptor_1.getDescriptorsEqual)(yAxisDescriptor, this.lastYDescriptor) ||
|
|
68
|
+
!(0, IAxisDescriptor_1.getDescriptorsEqual)(zAxisDescriptor, this.lastZDescriptor)) {
|
|
67
69
|
// Destroy meshes to recreate later in SCRTAxisCubeEntity::Update()
|
|
68
70
|
// console.warn("Property changed, destroying meshes");
|
|
69
71
|
scrtAxisCubeEntity.DestroyMeshes();
|
|
@@ -80,7 +82,7 @@ var AxisCubeEntity = /** @class */ (function (_super) {
|
|
|
80
82
|
[yScrtAxisDesc, yAxisDescriptor],
|
|
81
83
|
[zScrtAxisDesc, zAxisDescriptor]
|
|
82
84
|
];
|
|
83
|
-
descriptorsMapping.forEach(function (el) { return exports.updateScrtAxisDescriptor(_this.webAssemblyContext, el[0], el[1]); });
|
|
85
|
+
descriptorsMapping.forEach(function (el) { return (0, exports.updateScrtAxisDescriptor)(_this.webAssemblyContext, el[0], el[1]); });
|
|
84
86
|
// The code below is commented due to performance reasons
|
|
85
87
|
// yAxisDescriptor.majorCoordinates.forEach(c => console.log(" .. coord " + c));
|
|
86
88
|
// yAxisDescriptor.tickLabels.forEach(l => console.log(" .. label " + l));
|
|
@@ -96,7 +98,7 @@ var AxisCubeEntity = /** @class */ (function (_super) {
|
|
|
96
98
|
}(BaseSceneEntity3D_1.BaseSceneEntity3D));
|
|
97
99
|
exports.AxisCubeEntity = AxisCubeEntity;
|
|
98
100
|
/** @ignore */
|
|
99
|
-
|
|
101
|
+
var updateScrtAxisDescriptor = function (wasmContext, scrtAxisDesc, axisDesc) {
|
|
100
102
|
var _a;
|
|
101
103
|
scrtAxisDesc.m_strTitle = (_a = axisDesc.axisTitle) !== null && _a !== void 0 ? _a : "";
|
|
102
104
|
scrtAxisDesc.m_fRangeSize = axisDesc.axisSize;
|
|
@@ -107,12 +109,12 @@ exports.updateScrtAxisDescriptor = function (wasmContext, scrtAxisDesc, axisDesc
|
|
|
107
109
|
scrtAxisDesc.m_bMajorTicksEnabled = axisDesc.drawMajorTicks;
|
|
108
110
|
scrtAxisDesc.m_bMinorLinesEnabled = axisDesc.drawMinorGridlines;
|
|
109
111
|
scrtAxisDesc.m_bMinorTicksEnabled = axisDesc.drawMinorTicks;
|
|
110
|
-
tsrExtensions_1.updateTsrVector4(axisDesc.bandColor, scrtAxisDesc.GetBandColorPtr());
|
|
111
|
-
exports.updateScrtLineStyle(axisDesc.majorLineStyle, scrtAxisDesc.GetMajorLineStylePtr());
|
|
112
|
-
exports.updateScrtLineStyle(axisDesc.minorLineStyle, scrtAxisDesc.GetMinorLineStylePtr());
|
|
113
|
-
exports.toScrtTextStyle(axisDesc.labelStyle, scrtAxisDesc.GetTextStylePtr());
|
|
114
|
-
exports.updateScrtLineStyle(axisDesc.majorTickStyle, scrtAxisDesc.GetMajorTickStylePtr());
|
|
115
|
-
exports.updateScrtLineStyle(axisDesc.minorTickStyle, scrtAxisDesc.GetMinorTickStylePtr());
|
|
112
|
+
(0, tsrExtensions_1.updateTsrVector4)(axisDesc.bandColor, scrtAxisDesc.GetBandColorPtr());
|
|
113
|
+
(0, exports.updateScrtLineStyle)(axisDesc.majorLineStyle, scrtAxisDesc.GetMajorLineStylePtr());
|
|
114
|
+
(0, exports.updateScrtLineStyle)(axisDesc.minorLineStyle, scrtAxisDesc.GetMinorLineStylePtr());
|
|
115
|
+
(0, exports.toScrtTextStyle)(axisDesc.labelStyle, scrtAxisDesc.GetTextStylePtr());
|
|
116
|
+
(0, exports.updateScrtLineStyle)(axisDesc.majorTickStyle, scrtAxisDesc.GetMajorTickStylePtr());
|
|
117
|
+
(0, exports.updateScrtLineStyle)(axisDesc.minorTickStyle, scrtAxisDesc.GetMinorTickStylePtr());
|
|
116
118
|
// toScrtTextStyle(axisDesc.titleStyle, scrtAxisDesc.GetTitleStylePtr());
|
|
117
119
|
// console.log("majorCoordinates", axisDesc.majorCoordinates);
|
|
118
120
|
// console.log("minorCoordinates", axisDesc.minorCoordinates);
|
|
@@ -130,15 +132,17 @@ exports.updateScrtAxisDescriptor = function (wasmContext, scrtAxisDesc, axisDesc
|
|
|
130
132
|
scrtAxisDesc.SetMajorLabels(majorLabels);
|
|
131
133
|
majorLabels.delete();
|
|
132
134
|
};
|
|
135
|
+
exports.updateScrtAxisDescriptor = updateScrtAxisDescriptor;
|
|
133
136
|
/** @ignore */
|
|
134
|
-
|
|
137
|
+
var updateScrtLineStyle = function (lineStyle, scrtLineStyle) {
|
|
135
138
|
scrtLineStyle.m_fStrokeThickness = lineStyle.strokeThickness;
|
|
136
139
|
scrtLineStyle.m_fStart = lineStyle.start;
|
|
137
140
|
scrtLineStyle.m_fEnd = lineStyle.end;
|
|
138
|
-
tsrExtensions_1.updateTsrVector4(lineStyle.stroke, scrtLineStyle.GetStrokeColorPtr());
|
|
141
|
+
(0, tsrExtensions_1.updateTsrVector4)(lineStyle.stroke, scrtLineStyle.GetStrokeColorPtr());
|
|
139
142
|
};
|
|
143
|
+
exports.updateScrtLineStyle = updateScrtLineStyle;
|
|
140
144
|
/** @ignore */
|
|
141
|
-
|
|
145
|
+
var toScrtTextStyle = function (labelStyle, scrtTextStyle) {
|
|
142
146
|
scrtTextStyle.m_fSize = labelStyle.fontSize;
|
|
143
147
|
scrtTextStyle.m_strFont = labelStyle.fontFamily;
|
|
144
148
|
scrtTextStyle.m_uiARGBColor = labelStyle.foreground;
|
|
@@ -148,3 +152,4 @@ exports.toScrtTextStyle = function (labelStyle, scrtTextStyle) {
|
|
|
148
152
|
}
|
|
149
153
|
return scrtTextStyle;
|
|
150
154
|
};
|
|
155
|
+
exports.toScrtTextStyle = toScrtTextStyle;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { CoordinateCalculatorBase } from "../../../Charting/Numerics/CoordinateCalculators/CoordinateCalculatorBase";
|
|
2
|
+
import { TEasingFn } from "../../../Core/Animations/EasingFunctions";
|
|
2
3
|
import { NumberRange } from "../../../Core/NumberRange";
|
|
3
4
|
import { EAxisType } from "../../../types/AxisType";
|
|
4
5
|
import { ENumericFormat } from "../../../types/NumericFormat";
|
|
@@ -31,6 +32,10 @@ export declare class NumericAxis3D extends AxisBase3D {
|
|
|
31
32
|
* @inheritDoc
|
|
32
33
|
*/
|
|
33
34
|
getDefaultNonZeroRange(): NumberRange;
|
|
35
|
+
/**
|
|
36
|
+
* @inheritDoc
|
|
37
|
+
*/
|
|
38
|
+
animateVisibleRange(visibleRange: NumberRange, durationMs: number, easingFunction?: TEasingFn, onCompleted?: () => void): import("../../../Core/Animations/GenericAnimation").IGenericAnimation;
|
|
34
39
|
/**
|
|
35
40
|
* @inheritDoc
|
|
36
41
|
*/
|
|
@@ -3,10 +3,12 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
3
3
|
var extendStatics = function (d, b) {
|
|
4
4
|
extendStatics = Object.setPrototypeOf ||
|
|
5
5
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
7
|
return extendStatics(d, b);
|
|
8
8
|
};
|
|
9
9
|
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
10
12
|
extendStatics(d, b);
|
|
11
13
|
function __() { this.constructor = d; }
|
|
12
14
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
@@ -20,6 +22,8 @@ var NumericCoordinateCalculator_1 = require("../../../Charting/Numerics/Coordina
|
|
|
20
22
|
var NumericTickProvider_1 = require("../../../Charting/Numerics/TickProviders/NumericTickProvider");
|
|
21
23
|
var NumericDeltaCalculator_1 = require("../../../Charting/Visuals/Axis/DeltaCalculator/NumericDeltaCalculator");
|
|
22
24
|
var NumericLabelProvider_1 = require("../../../Charting/Visuals/Axis/LabelProvider/NumericLabelProvider");
|
|
25
|
+
var EasingFunctions_1 = require("../../../Core/Animations/EasingFunctions");
|
|
26
|
+
var NumberRangeAnimator_1 = require("../../../Core/Animations/NumberRangeAnimator");
|
|
23
27
|
var NumberRange_1 = require("../../../Core/NumberRange");
|
|
24
28
|
var AxisType_1 = require("../../../types/AxisType");
|
|
25
29
|
var AxisBase3D_1 = require("./AxisBase3D");
|
|
@@ -58,6 +62,30 @@ var NumericAxis3D = /** @class */ (function (_super) {
|
|
|
58
62
|
NumericAxis3D.prototype.getDefaultNonZeroRange = function () {
|
|
59
63
|
return new NumberRange_1.NumberRange(0, 10);
|
|
60
64
|
};
|
|
65
|
+
/**
|
|
66
|
+
* @inheritDoc
|
|
67
|
+
*/
|
|
68
|
+
NumericAxis3D.prototype.animateVisibleRange = function (visibleRange, durationMs, easingFunction, onCompleted) {
|
|
69
|
+
var _this = this;
|
|
70
|
+
var _a;
|
|
71
|
+
if (easingFunction === void 0) { easingFunction = EasingFunctions_1.easing.outCubic; }
|
|
72
|
+
if (onCompleted === void 0) { onCompleted = function () { }; }
|
|
73
|
+
if (durationMs <= 0) {
|
|
74
|
+
// Don't allow setting visibleRange to undefined if there is no data
|
|
75
|
+
this.visibleRange = visibleRange || this.visibleRange;
|
|
76
|
+
onCompleted();
|
|
77
|
+
return undefined;
|
|
78
|
+
}
|
|
79
|
+
(_a = this.visibleRangeAnimationToken) === null || _a === void 0 ? void 0 : _a.cancel();
|
|
80
|
+
this.visibleRangeAnimationToken = NumberRangeAnimator_1.NumberRangeAnimator.animate(this.visibleRange, visibleRange, durationMs, function (range) {
|
|
81
|
+
_this.visibleRangeProperty = range;
|
|
82
|
+
}, function () {
|
|
83
|
+
_this.visibleRangeAnimationToken = undefined;
|
|
84
|
+
onCompleted();
|
|
85
|
+
}, easingFunction);
|
|
86
|
+
this.parentSurface.addAnimation(this.visibleRangeAnimationToken);
|
|
87
|
+
return this.visibleRangeAnimationToken;
|
|
88
|
+
};
|
|
61
89
|
/**
|
|
62
90
|
* @inheritDoc
|
|
63
91
|
*/
|
|
@@ -3,10 +3,12 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
3
3
|
var extendStatics = function (d, b) {
|
|
4
4
|
extendStatics = Object.setPrototypeOf ||
|
|
5
5
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
7
|
return extendStatics(d, b);
|
|
8
8
|
};
|
|
9
9
|
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
10
12
|
extendStatics(d, b);
|
|
11
13
|
function __() { this.constructor = d; }
|
|
12
14
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
@@ -3,10 +3,12 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
3
3
|
var extendStatics = function (d, b) {
|
|
4
4
|
extendStatics = Object.setPrototypeOf ||
|
|
5
5
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
7
|
return extendStatics(d, b);
|
|
8
8
|
};
|
|
9
9
|
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
10
12
|
extendStatics(d, b);
|
|
11
13
|
function __() { this.constructor = d; }
|
|
12
14
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
@@ -3,10 +3,12 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
3
3
|
var extendStatics = function (d, b) {
|
|
4
4
|
extendStatics = Object.setPrototypeOf ||
|
|
5
5
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
7
|
return extendStatics(d, b);
|
|
8
8
|
};
|
|
9
9
|
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
10
12
|
extendStatics(d, b);
|
|
11
13
|
function __() { this.constructor = d; }
|
|
12
14
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
@@ -3,10 +3,12 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
3
3
|
var extendStatics = function (d, b) {
|
|
4
4
|
extendStatics = Object.setPrototypeOf ||
|
|
5
5
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
7
|
return extendStatics(d, b);
|
|
8
8
|
};
|
|
9
9
|
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
10
12
|
extendStatics(d, b);
|
|
11
13
|
function __() { this.constructor = d; }
|
|
12
14
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
@@ -3,10 +3,12 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
3
3
|
var extendStatics = function (d, b) {
|
|
4
4
|
extendStatics = Object.setPrototypeOf ||
|
|
5
5
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
7
|
return extendStatics(d, b);
|
|
8
8
|
};
|
|
9
9
|
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
10
12
|
extendStatics(d, b);
|
|
11
13
|
function __() { this.constructor = d; }
|
|
12
14
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
@@ -22,7 +22,7 @@ var BaseSceneEntity3D = /** @class */ (function () {
|
|
|
22
22
|
function BaseSceneEntity3D(webAssemblyContext) {
|
|
23
23
|
var _this = this;
|
|
24
24
|
/** @inheritDoc */
|
|
25
|
-
this.id = guid_1.generateGuid();
|
|
25
|
+
this.id = (0, guid_1.generateGuid)();
|
|
26
26
|
/**
|
|
27
27
|
* When true, the entity and all its children are visible
|
|
28
28
|
*/
|
|
@@ -59,7 +59,7 @@ var BaseSceneEntity3D = /** @class */ (function () {
|
|
|
59
59
|
if (this.nativeEntity) {
|
|
60
60
|
this.world.RemoveEntity(this.nativeEntity);
|
|
61
61
|
}
|
|
62
|
-
this.nativeEntityProperty = Deleter_1.deleteSafe(this.nativeEntityProperty);
|
|
62
|
+
this.nativeEntityProperty = (0, Deleter_1.deleteSafe)(this.nativeEntityProperty);
|
|
63
63
|
};
|
|
64
64
|
/**
|
|
65
65
|
* Update method called from WebAssembly engine. Use this to update meshes, properties, geometry before draw.
|
|
@@ -3,10 +3,12 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
3
3
|
var extendStatics = function (d, b) {
|
|
4
4
|
extendStatics = Object.setPrototypeOf ||
|
|
5
5
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
7
|
return extendStatics(d, b);
|
|
8
8
|
};
|
|
9
9
|
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
10
12
|
extendStatics(d, b);
|
|
11
13
|
function __() { this.constructor = d; }
|
|
12
14
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
@@ -3,10 +3,12 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
3
3
|
var extendStatics = function (d, b) {
|
|
4
4
|
extendStatics = Object.setPrototypeOf ||
|
|
5
5
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
7
|
return extendStatics(d, b);
|
|
8
8
|
};
|
|
9
9
|
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
10
12
|
extendStatics(d, b);
|
|
11
13
|
function __() { this.constructor = d; }
|
|
12
14
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
@@ -48,8 +50,8 @@ var ScatterPointsSceneEntity = /** @class */ (function (_super) {
|
|
|
48
50
|
* @inheritDoc
|
|
49
51
|
*/
|
|
50
52
|
ScatterPointsSceneEntity.prototype.delete = function () {
|
|
51
|
-
this.pointColors = Deleter_1.deleteSafe(this.pointColors);
|
|
52
|
-
this.pointScales = Deleter_1.deleteSafe(this.pointScales);
|
|
53
|
+
this.pointColors = (0, Deleter_1.deleteSafe)(this.pointColors);
|
|
54
|
+
this.pointScales = (0, Deleter_1.deleteSafe)(this.pointScales);
|
|
53
55
|
_super.prototype.delete.call(this);
|
|
54
56
|
};
|
|
55
57
|
/**
|
|
@@ -68,7 +70,7 @@ var ScatterPointsSceneEntity = /** @class */ (function (_super) {
|
|
|
68
70
|
throw new Error("To render 3D Scatter, bubble or point-clouds, you must provider a PointMarker on BaseRenderableSeries3D");
|
|
69
71
|
}
|
|
70
72
|
var eSCRTPointMarkerType = this.webAssemblyContext.eSCRT_POINT_MARKER_TYPE;
|
|
71
|
-
var defaultColor = parseColor_1.parseColorToUIntArgb(pointMarker.fill);
|
|
73
|
+
var defaultColor = (0, parseColor_1.parseColorToUIntArgb)(pointMarker.fill);
|
|
72
74
|
switch (pointMarker.markerType) {
|
|
73
75
|
case BasePointMarker3D_1.EMarkerType.Pixel:
|
|
74
76
|
this.nativeEntity.SetPointMarkerType(eSCRTPointMarkerType.SCRT_POINT_MARKER_TYPE_PIXEL);
|
|
@@ -113,7 +115,7 @@ var ScatterPointsSceneEntity = /** @class */ (function (_super) {
|
|
|
113
115
|
this.nativeEntity.UpdateMeshesVec(xValues, yValues, zValues, colors, scales, args);
|
|
114
116
|
}
|
|
115
117
|
finally {
|
|
116
|
-
Deleter_1.deleteSafe(args);
|
|
118
|
+
(0, Deleter_1.deleteSafe)(args);
|
|
117
119
|
}
|
|
118
120
|
};
|
|
119
121
|
ScatterPointsSceneEntity.prototype.rebuildPointMetadata = function (metadata, count, defaultColor) {
|