scichart 2.0.2144 → 2.0.2186
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.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 +3 -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.js +10 -8
- 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.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.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.js +15 -13
- 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 +29 -20
- 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 +16 -8
- package/Charting/Visuals/Axis/AxisBase2D.js +70 -37
- package/Charting/Visuals/Axis/AxisCore.d.ts +1 -1
- package/Charting/Visuals/Axis/AxisCore.js +3 -33
- 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.js +10 -3
- 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.js +6 -4
- package/Charting/Visuals/RenderableSeries/Animations/BandAnimationStyle.js +6 -4
- package/Charting/Visuals/RenderableSeries/Animations/BaseAnimationStyle.js +1 -1
- package/Charting/Visuals/RenderableSeries/Animations/BubbleAnimation.js +3 -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.js +4 -2
- package/Charting/Visuals/RenderableSeries/Animations/ColumnAnimationStyle.js +4 -2
- package/Charting/Visuals/RenderableSeries/Animations/CustomPointMarkerStyle.js +3 -1
- package/Charting/Visuals/RenderableSeries/Animations/FadeAnimation.js +3 -1
- package/Charting/Visuals/RenderableSeries/Animations/LineAnimation.js +3 -1
- package/Charting/Visuals/RenderableSeries/Animations/MountainAnimation.js +4 -2
- package/Charting/Visuals/RenderableSeries/Animations/MountainAnimationStyle.js +4 -2
- package/Charting/Visuals/RenderableSeries/Animations/OhlcAnimation.js +5 -3
- 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 +1 -1
- package/Charting/Visuals/RenderableSeries/Animations/ScaleAnimation.js +3 -1
- package/Charting/Visuals/RenderableSeries/Animations/ScatterAnimation.js +3 -1
- package/Charting/Visuals/RenderableSeries/Animations/SeriesAnimation.d.ts +1 -1
- package/Charting/Visuals/RenderableSeries/Animations/SeriesAnimation.js +3 -3
- package/Charting/Visuals/RenderableSeries/Animations/SweepAnimation.js +3 -1
- package/Charting/Visuals/RenderableSeries/Animations/WaveAnimation.d.ts +1 -1
- package/Charting/Visuals/RenderableSeries/Animations/WaveAnimation.js +3 -1
- 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.js +15 -14
- package/Charting/Visuals/RenderableSeries/BaseStackedCollection.js +7 -5
- package/Charting/Visuals/RenderableSeries/BaseStackedRenderableSeries.js +3 -3
- 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/RolloverModifier/RolloverModifierRenderableSeriesProps.js +2 -2
- package/Charting/Visuals/RenderableSeries/ShaderEffect.js +4 -4
- package/Charting/Visuals/RenderableSeries/ShadowEffect.js +4 -2
- package/Charting/Visuals/RenderableSeries/SplineBandRenderableSeries.js +6 -4
- package/Charting/Visuals/RenderableSeries/SplineLineRenderableSeries.js +5 -3
- 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.js +20 -17
- 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 +10 -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.js +4 -2
- package/Core/Animations/DoubleAnimator.js +1 -1
- package/Core/Animations/GenericAnimation.js +1 -1
- package/Core/Guard.js +4 -4
- package/Core/Mouse/MouseManager.js +1 -1
- package/Core/NumberRange.js +4 -4
- 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
|
@@ -9,7 +9,7 @@ var ECanvasType;
|
|
|
9
9
|
ECanvasType[ECanvasType["canvas2D"] = 1] = "canvas2D";
|
|
10
10
|
ECanvasType[ECanvasType["svg"] = 2] = "svg";
|
|
11
11
|
})(ECanvasType || (ECanvasType = {}));
|
|
12
|
-
var getCanvas2dId = function (divElementId) { return divElementId
|
|
12
|
+
var getCanvas2dId = function (divElementId) { return "".concat(divElementId, "_2D"); };
|
|
13
13
|
var getCanvasSizes = function (divWidth, divHeight, maxHeight, aspectWidth, aspectHeight) {
|
|
14
14
|
if (aspectWidth === void 0) { aspectWidth = 0; }
|
|
15
15
|
if (aspectHeight === void 0) { aspectHeight = 0; }
|
|
@@ -38,12 +38,12 @@ var getCanvasSizes = function (divWidth, divHeight, maxHeight, aspectWidth, aspe
|
|
|
38
38
|
}
|
|
39
39
|
};
|
|
40
40
|
var getChartRootDomElement = function (divElementId) {
|
|
41
|
-
var chartRoot = document.querySelector("#"
|
|
41
|
+
var chartRoot = document.querySelector("#".concat(divElementId));
|
|
42
42
|
if (!chartRoot) {
|
|
43
|
-
throw new Error("Check div element with id \""
|
|
43
|
+
throw new Error("Check div element with id \"".concat(divElementId, "\" exists"));
|
|
44
44
|
}
|
|
45
45
|
if (chartRoot.nodeName.toLowerCase() !== "div") {
|
|
46
|
-
throw new Error("Element with id \""
|
|
46
|
+
throw new Error("Element with id \"".concat(divElementId, "\" should be of type div"));
|
|
47
47
|
}
|
|
48
48
|
return chartRoot;
|
|
49
49
|
};
|
|
@@ -81,7 +81,7 @@ var initCanvas = function (divElementId, aspectWidth, aspectHeight, activeCanvas
|
|
|
81
81
|
if (activeCanvas === ECanvasType.canvasWebGL) {
|
|
82
82
|
// WebGL Canvas
|
|
83
83
|
canvasWebGL = document.createElement("canvas");
|
|
84
|
-
canvasWebGL.id = divElementId
|
|
84
|
+
canvasWebGL.id = "".concat(divElementId, "_WebGL");
|
|
85
85
|
canvasWebGL.style.position = "absolute";
|
|
86
86
|
canvasWebGL.style.display = "block";
|
|
87
87
|
var gl = WebGlHelper_1.WebGlHelper.getContext(canvasWebGL, {
|
|
@@ -108,7 +108,7 @@ var initCanvas = function (divElementId, aspectWidth, aspectHeight, activeCanvas
|
|
|
108
108
|
canvas2D.onselectstart = function () { return false; };
|
|
109
109
|
// SVG Root Element
|
|
110
110
|
var svgRootElement = document.createElementNS("http://www.w3.org/2000/svg", "svg");
|
|
111
|
-
svgRootElement.id = divElementId
|
|
111
|
+
svgRootElement.id = "".concat(divElementId, "_SVG");
|
|
112
112
|
svgRootElement.setAttribute("width", width.toString());
|
|
113
113
|
svgRootElement.setAttribute("height", height.toString());
|
|
114
114
|
svgRootElement.setAttribute("role", "img");
|
|
@@ -121,7 +121,7 @@ var initCanvas = function (divElementId, aspectWidth, aspectHeight, activeCanvas
|
|
|
121
121
|
chartRoot.appendChild(svgRootElement);
|
|
122
122
|
// SVG Adorner Layer
|
|
123
123
|
var svgAdornerLayer = document.createElementNS("http://www.w3.org/2000/svg", "svg");
|
|
124
|
-
svgAdornerLayer.id = divElementId
|
|
124
|
+
svgAdornerLayer.id = "".concat(divElementId, "_Adorner");
|
|
125
125
|
svgAdornerLayer.setAttribute("width", width.toString());
|
|
126
126
|
svgAdornerLayer.setAttribute("height", height.toString());
|
|
127
127
|
svgAdornerLayer.setAttribute("role", "img");
|
|
@@ -132,9 +132,9 @@ var initCanvas = function (divElementId, aspectWidth, aspectHeight, activeCanvas
|
|
|
132
132
|
chartRoot.appendChild(svgAdornerLayer);
|
|
133
133
|
// Root Div Element
|
|
134
134
|
var divRootElement = document.createElement("div");
|
|
135
|
-
divRootElement.id = divElementId
|
|
135
|
+
divRootElement.id = "".concat(divElementId, "_div");
|
|
136
136
|
divRootElement.style.width = "100%";
|
|
137
|
-
divRootElement.style.height = height
|
|
137
|
+
divRootElement.style.height = "".concat(height, "px");
|
|
138
138
|
divRootElement.style.position = "relative";
|
|
139
139
|
divRootElement.style.pointerEvents = "none";
|
|
140
140
|
divRootElement.style.textAlign = "center";
|
|
@@ -216,12 +216,12 @@ var subscribeToResize = function (chartRoot, aspect, sciChartSurface) {
|
|
|
216
216
|
* @param divElementId
|
|
217
217
|
*/
|
|
218
218
|
var checkChartDivExists = function (divElementId) {
|
|
219
|
-
var numberOfElements = document.querySelectorAll("[id="
|
|
219
|
+
var numberOfElements = document.querySelectorAll("[id=".concat(divElementId, "]")).length;
|
|
220
220
|
if (numberOfElements > 1) {
|
|
221
|
-
console.error("Please provide a unique ID for each chart div element, \""
|
|
221
|
+
console.error("Please provide a unique ID for each chart div element, \"".concat(divElementId, "\" it is not a unique identifier"));
|
|
222
222
|
}
|
|
223
223
|
else if (numberOfElements === 0) {
|
|
224
|
-
console.error("Chart div element with the ID \""
|
|
224
|
+
console.error("Chart div element with the ID \"".concat(divElementId, "\" is not present in the DOM"));
|
|
225
225
|
}
|
|
226
226
|
};
|
|
227
227
|
var sciChartInitCommon = {
|
|
@@ -503,12 +503,12 @@ var CameraController = /** @class */ (function () {
|
|
|
503
503
|
*/
|
|
504
504
|
CameraController.prototype.debugOutput = function () {
|
|
505
505
|
console.log("Camera properties: ");
|
|
506
|
-
console.log(" projectionMode: "
|
|
507
|
-
console.log(" position: "
|
|
508
|
-
console.log(" target: "
|
|
509
|
-
console.log(" up: "
|
|
510
|
-
console.log(" pitch: "
|
|
511
|
-
console.log(" yaw: "
|
|
506
|
+
console.log(" projectionMode: ".concat(this.projectionMode));
|
|
507
|
+
console.log(" position: ".concat(this.position.toString()));
|
|
508
|
+
console.log(" target: ".concat(this.target.toString()));
|
|
509
|
+
console.log(" up: ".concat(this.up.toString()));
|
|
510
|
+
console.log(" pitch: ".concat(this.orbitalPitch.toFixed(2)));
|
|
511
|
+
console.log(" yaw: ".concat(this.orbitalYaw.toFixed(2)));
|
|
512
512
|
};
|
|
513
513
|
return CameraController;
|
|
514
514
|
}());
|
|
@@ -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 __());
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { ModifierMouseArgs } from "../../Charting/ChartModifiers/ModifierMouseArgs";
|
|
2
|
+
import { TEasingFn } from "../../Core/Animations/EasingFunctions";
|
|
3
|
+
import { EChart3DModifierType } from "../../types/ChartModifierType";
|
|
4
|
+
import { ChartModifierBase3D, IChartModifierBase3DOptions } from "./ChartModifierBase3D";
|
|
5
|
+
/**
|
|
6
|
+
* Optional parameters passed to the constructor of {@link ResetCamera3DModifier} to configure it
|
|
7
|
+
*/
|
|
8
|
+
export interface IResetCamera3DOptions extends IChartModifierBase3DOptions {
|
|
9
|
+
/**
|
|
10
|
+
* When true, the Zoom operations are animated. See also {@link animationDuration} and {@link easingFunction}
|
|
11
|
+
*/
|
|
12
|
+
isAnimated?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Defines the duration of animations when zooming in milliseconds
|
|
15
|
+
*/
|
|
16
|
+
animationDuration?: number;
|
|
17
|
+
/**
|
|
18
|
+
* Defines the easing function for animation. See {@link TEasingFn} for a range of functions
|
|
19
|
+
*/
|
|
20
|
+
easingFunction?: TEasingFn;
|
|
21
|
+
/**
|
|
22
|
+
* The camera settings to reset to. Defaults to the camera state when the modifier was attached to the chart.
|
|
23
|
+
*/
|
|
24
|
+
destination?: TCameraState;
|
|
25
|
+
}
|
|
26
|
+
export declare type TCameraState = {
|
|
27
|
+
radius?: number;
|
|
28
|
+
pitch?: number;
|
|
29
|
+
yaw?: number;
|
|
30
|
+
width?: number;
|
|
31
|
+
height?: number;
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* @summary The {@link ResetCamera3DModifier} provides double click to zoom to extents behavior on a 3D {@link SciChart3DSurface}
|
|
35
|
+
* within SciChart - High Performance {@link https://www.scichart.com/javascript-chart-features | JavaScript 3D Charts}
|
|
36
|
+
* @description
|
|
37
|
+
*
|
|
38
|
+
* To apply the {@link ResetCamera3DModifier} to a {@link SciChart3DSurface} and add Mouse-wheel zoom behavior,
|
|
39
|
+
* use the following code:
|
|
40
|
+
*
|
|
41
|
+
* ```ts
|
|
42
|
+
* const sciChartS3Durface: SciChart3DSurface;
|
|
43
|
+
* sciChart3DSurface.chartModifiers.add(new ZoomExtentsModifier3D());
|
|
44
|
+
* ```
|
|
45
|
+
*
|
|
46
|
+
*/
|
|
47
|
+
export declare class ResetCamera3DModifier extends ChartModifierBase3D {
|
|
48
|
+
/**
|
|
49
|
+
* When true, the Zoom operations are animated. See also {@link animationDuration} and {@link easingFunction}
|
|
50
|
+
*/
|
|
51
|
+
isAnimated: boolean;
|
|
52
|
+
/**
|
|
53
|
+
* Defines the duration of animations when zooming in milliseconds
|
|
54
|
+
*/
|
|
55
|
+
animationDuration: number;
|
|
56
|
+
/**
|
|
57
|
+
* Defines the easing function for animation. See {@link TEasingFn} for a range of functions
|
|
58
|
+
*/
|
|
59
|
+
easingFunction: TEasingFn;
|
|
60
|
+
destination: TCameraState;
|
|
61
|
+
/**
|
|
62
|
+
* Creates an instance of the {@link ResetCamera3DModifier}
|
|
63
|
+
* @param options optional parameters of type {@link IResetCamera3DOptions} used to configure the modifier
|
|
64
|
+
*/
|
|
65
|
+
constructor(options?: IResetCamera3DOptions);
|
|
66
|
+
onAttach(): void;
|
|
67
|
+
/**
|
|
68
|
+
* @inheritDoc
|
|
69
|
+
*/
|
|
70
|
+
modifierDoubleClick(args: ModifierMouseArgs): void;
|
|
71
|
+
toJSON?(): {
|
|
72
|
+
type: EChart3DModifierType;
|
|
73
|
+
options: {
|
|
74
|
+
animationDuration: number;
|
|
75
|
+
easingFunction: string;
|
|
76
|
+
isAnimated: boolean;
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
}
|
|
@@ -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
|
*/
|