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
|
@@ -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 __());
|
|
@@ -57,6 +59,7 @@ var SciChart3DSurface = /** @class */ (function (_super) {
|
|
|
57
59
|
function SciChart3DSurface(webAssemblyContext, options) {
|
|
58
60
|
var _a, _b, _c, _d;
|
|
59
61
|
var _this = _super.call(this, webAssemblyContext, options === null || options === void 0 ? void 0 : options.canvases) || this;
|
|
62
|
+
_this.animationList = [];
|
|
60
63
|
_this.isAxisCubeRenderedProperty = false;
|
|
61
64
|
var canvasWidth = (_b = (_a = _this.domCanvas2D) === null || _a === void 0 ? void 0 : _a.width) !== null && _b !== void 0 ? _b : app_1.DEFAULT_WIDTH;
|
|
62
65
|
var canvasHeight = (_d = (_c = _this.domCanvas2D) === null || _c === void 0 ? void 0 : _c.height) !== null && _d !== void 0 ? _d : app_1.DEFAULT_HEIGHT;
|
|
@@ -114,7 +117,7 @@ var SciChart3DSurface = /** @class */ (function (_super) {
|
|
|
114
117
|
* @param options Optional parameters of type {@link I2DSurfaceOptions}
|
|
115
118
|
*/
|
|
116
119
|
SciChart3DSurface.createSingle = function (divElementId, options) {
|
|
117
|
-
return createSingle3d_1.createSingle3dInternal(divElementId, options);
|
|
120
|
+
return (0, createSingle3d_1.createSingle3dInternal)(divElementId, options);
|
|
118
121
|
};
|
|
119
122
|
/**
|
|
120
123
|
* Allows setting of web URL for Wasm and Data files, in the case you are loading SciChart outside of npm/webpack environment.
|
|
@@ -140,7 +143,7 @@ var SciChart3DSurface = /** @class */ (function (_super) {
|
|
|
140
143
|
* @param options Optional parameters of type {@link IChartCreationOptions}
|
|
141
144
|
*/
|
|
142
145
|
SciChart3DSurface.create = function (divElementId, options) {
|
|
143
|
-
return createMaster3d_1.createMultichart3d(divElementId, options);
|
|
146
|
+
return (0, createMaster3d_1.createMultichart3d)(divElementId, options);
|
|
144
147
|
};
|
|
145
148
|
/**
|
|
146
149
|
* Used internally: Gets the {@link SCRTSceneWorld} object at the root of the 3d scene graph
|
|
@@ -155,13 +158,13 @@ var SciChart3DSurface = /** @class */ (function (_super) {
|
|
|
155
158
|
_super.prototype.delete.call(this);
|
|
156
159
|
this.renderableSeries.asArray().forEach(function (el) { return el.delete(); });
|
|
157
160
|
this.renderableSeries.clear();
|
|
158
|
-
this.xAxis = Deleter_1.deleteSafe(this.xAxis);
|
|
159
|
-
this.yAxis = Deleter_1.deleteSafe(this.yAxis);
|
|
160
|
-
this.zAxis = Deleter_1.deleteSafe(this.zAxis);
|
|
161
|
-
this.rootEntity = Deleter_1.deleteSafe(this.rootEntity);
|
|
162
|
-
this.watermarkProperties = Deleter_1.deleteSafe(this.watermarkProperties);
|
|
163
|
-
this.watermarkPropertyPosition = Deleter_1.deleteSafe(this.watermarkPropertyPosition);
|
|
164
|
-
this.sceneWorldProperty = Deleter_1.deleteSafe(this.sceneWorldProperty);
|
|
161
|
+
this.xAxis = (0, Deleter_1.deleteSafe)(this.xAxis);
|
|
162
|
+
this.yAxis = (0, Deleter_1.deleteSafe)(this.yAxis);
|
|
163
|
+
this.zAxis = (0, Deleter_1.deleteSafe)(this.zAxis);
|
|
164
|
+
this.rootEntity = (0, Deleter_1.deleteSafe)(this.rootEntity);
|
|
165
|
+
this.watermarkProperties = (0, Deleter_1.deleteSafe)(this.watermarkProperties);
|
|
166
|
+
this.watermarkPropertyPosition = (0, Deleter_1.deleteSafe)(this.watermarkPropertyPosition);
|
|
167
|
+
this.sceneWorldProperty = (0, Deleter_1.deleteSafe)(this.sceneWorldProperty);
|
|
165
168
|
if (!app_1.IS_TEST_ENV) {
|
|
166
169
|
this.webAssemblyContext3D.SCRTSetActiveWorld(null);
|
|
167
170
|
}
|
|
@@ -403,10 +406,60 @@ var SciChart3DSurface = /** @class */ (function (_super) {
|
|
|
403
406
|
this.changeWebGLCanvasViewportSize(this.webAssemblyContext3D, pixelWidth, pixelHeight);
|
|
404
407
|
}
|
|
405
408
|
if (this.domDivContainer) {
|
|
406
|
-
this.domDivContainer.style.height = pixelHeight
|
|
409
|
+
this.domDivContainer.style.height = "".concat(pixelHeight, "px");
|
|
407
410
|
}
|
|
408
411
|
this.invalidateElement();
|
|
409
412
|
};
|
|
413
|
+
/**
|
|
414
|
+
* Gets the generic animations currently on the surface. Do not manipulate this array directly.
|
|
415
|
+
* To add, use addAnimation. To remove, find an animation and call .cancel() on it.
|
|
416
|
+
*/
|
|
417
|
+
SciChart3DSurface.prototype.getAnimations = function () {
|
|
418
|
+
return this.animationList;
|
|
419
|
+
};
|
|
420
|
+
/**
|
|
421
|
+
* Add a {@link GenericAnimation} to the surface.
|
|
422
|
+
* Multiple animations will be run in parallel, so if you want to run one after another, use the onCompleted callback
|
|
423
|
+
* to add another animation after the first completes
|
|
424
|
+
*/
|
|
425
|
+
SciChart3DSurface.prototype.addAnimation = function (animation) {
|
|
426
|
+
if (!animation)
|
|
427
|
+
return;
|
|
428
|
+
this.animationList.push(animation);
|
|
429
|
+
this.invalidateElement();
|
|
430
|
+
};
|
|
431
|
+
Object.defineProperty(SciChart3DSurface.prototype, "isRunningAnimation", {
|
|
432
|
+
/**
|
|
433
|
+
* Returns true if an animation is running
|
|
434
|
+
*/
|
|
435
|
+
get: function () {
|
|
436
|
+
return this.animationList.some(function (a) { return !a.isComplete; });
|
|
437
|
+
},
|
|
438
|
+
enumerable: false,
|
|
439
|
+
configurable: true
|
|
440
|
+
});
|
|
441
|
+
/**
|
|
442
|
+
* Is being called on each render, to run animations
|
|
443
|
+
* @param timeElapsed
|
|
444
|
+
*/
|
|
445
|
+
SciChart3DSurface.prototype.onAnimate = function (timeElapsed) {
|
|
446
|
+
if (timeElapsed) {
|
|
447
|
+
// advance all animations in queue
|
|
448
|
+
var remainingAnimations = [];
|
|
449
|
+
for (var i = 0; i < this.animationList.length; i++) {
|
|
450
|
+
var animation = this.animationList[i];
|
|
451
|
+
if (!animation.isComplete) {
|
|
452
|
+
animation.update(timeElapsed);
|
|
453
|
+
if (!animation.isComplete) {
|
|
454
|
+
// Request another draw to advance animation
|
|
455
|
+
this.invalidateElement();
|
|
456
|
+
remainingAnimations.push(animation);
|
|
457
|
+
}
|
|
458
|
+
}
|
|
459
|
+
}
|
|
460
|
+
this.animationList = remainingAnimations;
|
|
461
|
+
}
|
|
462
|
+
};
|
|
410
463
|
/**
|
|
411
464
|
* @inheritDoc
|
|
412
465
|
*/
|
|
@@ -54,13 +54,13 @@ var sciChartMaster3D = {
|
|
|
54
54
|
/** @ignore */
|
|
55
55
|
var sciChartMaster3DPromise;
|
|
56
56
|
/** @ignore */
|
|
57
|
-
|
|
57
|
+
var createMultichart3d = function (divElementId, options) { return __awaiter(void 0, void 0, void 0, function () {
|
|
58
58
|
var canvases, loader, loaderDiv, master, createChildSurface, wasmContext, sciChart3DSurface;
|
|
59
59
|
var _a, _b, _c, _d, _e;
|
|
60
60
|
return __generator(this, function (_f) {
|
|
61
61
|
switch (_f.label) {
|
|
62
62
|
case 0:
|
|
63
|
-
chartBuilder_1.ensureRegistrations();
|
|
63
|
+
(0, chartBuilder_1.ensureRegistrations)();
|
|
64
64
|
sciChartInitCommon_1.default.checkChartDivExists(divElementId);
|
|
65
65
|
canvases = sciChartInitCommon_1.default.initCanvas(divElementId, (_a = options === null || options === void 0 ? void 0 : options.widthAspect) !== null && _a !== void 0 ? _a : 0, (_b = options === null || options === void 0 ? void 0 : options.heightAspect) !== null && _b !== void 0 ? _b : 0, sciChartInitCommon_1.default.ECanvasType.canvas2D);
|
|
66
66
|
if (!(!sciChartMaster3D.wasmContext || !sciChartMaster3D.createChildSurface || !sciChartMaster3D.getChildSurfaces)) return [3 /*break*/, 2];
|
|
@@ -89,6 +89,7 @@ exports.createMultichart3d = function (divElementId, options) { return __awaiter
|
|
|
89
89
|
}
|
|
90
90
|
});
|
|
91
91
|
}); };
|
|
92
|
+
exports.createMultichart3d = createMultichart3d;
|
|
92
93
|
/** @ignore */
|
|
93
94
|
exports.sciChartDestinations = [];
|
|
94
95
|
/** @ignore */
|
|
@@ -102,7 +103,7 @@ var createMaster = function () {
|
|
|
102
103
|
return sciChart3DSurface;
|
|
103
104
|
};
|
|
104
105
|
var addDestination = function (wasmContext, canvasElementId, sciChartSurface, width, height, chartInitObj3D) {
|
|
105
|
-
var newDestination = SciChartSurfaceBase_1.createChartDestination(canvasElementId);
|
|
106
|
+
var newDestination = (0, SciChartSurfaceBase_1.createChartDestination)(canvasElementId);
|
|
106
107
|
if (!newDestination) {
|
|
107
108
|
sciChartSurface.delete();
|
|
108
109
|
return;
|
|
@@ -112,7 +113,7 @@ var createMaster = function () {
|
|
|
112
113
|
exports.sciChartDestinations.push({ canvasElementId: canvasElementId, sciChartSurface: sciChartSurface, width: width, height: height });
|
|
113
114
|
};
|
|
114
115
|
return new Promise(function (resolve) {
|
|
115
|
-
var locateFile3d = SciChartSurfaceBase_1.getLocateFile(SciChart3DSurface_1.sciChartConfig3D);
|
|
116
|
+
var locateFile3d = (0, SciChartSurfaceBase_1.getLocateFile)(SciChart3DSurface_1.sciChartConfig3D);
|
|
116
117
|
// @ts-ignore
|
|
117
118
|
new WasmModule3D({ locateFile3d: locateFile3d, noInitialRun: true }).then(function (wasmContext) {
|
|
118
119
|
var getChildSurfaces = function () { return exports.sciChartDestinations.map(function (el) { return el.sciChartSurface; }); };
|
|
@@ -131,10 +132,10 @@ var createMaster = function () {
|
|
|
131
132
|
});
|
|
132
133
|
var sciChart3DSurface = createChildSurfaceInner(wasmContext, divElementId, canvases, theme);
|
|
133
134
|
addDestination(wasmContext, canvas2dId, sciChart3DSurface, canvases.domCanvas2D.width, canvases.domCanvas2D.height, chartInitObj);
|
|
134
|
-
licenseManager3D_1.applyLicense3D(wasmContext, sciChart3DSurface, false);
|
|
135
|
+
(0, licenseManager3D_1.applyLicense3D)(wasmContext, sciChart3DSurface, false);
|
|
135
136
|
return sciChart3DSurface;
|
|
136
137
|
};
|
|
137
|
-
wasmContext.canvas = SciChartSurfaceBase_1.getMasterCanvas();
|
|
138
|
+
wasmContext.canvas = (0, SciChartSurfaceBase_1.getMasterCanvas)();
|
|
138
139
|
var chartInitializer = {
|
|
139
140
|
InitializeChart: function () {
|
|
140
141
|
resolve({ getChildSurfaces: getChildSurfaces, createChildSurface: createChildSurface, wasmContext: wasmContext });
|
|
@@ -166,7 +167,7 @@ var createMaster = function () {
|
|
|
166
167
|
wasmContext.SCRTSetGlobalSampleChartInterface3D(chartInitObj);
|
|
167
168
|
// create an object that native side can trigger the copy to from...
|
|
168
169
|
var canvasCopyObj = wasmContext.SCRTCopyToDestinationInterface.implement({
|
|
169
|
-
CopyToDestination: SciChartSurfaceBase_1.copyToCanvas(SciChartSurfaceBase_1.SciChartSurfaceBase.domMasterCanvas)
|
|
170
|
+
CopyToDestination: (0, SciChartSurfaceBase_1.copyToCanvas)(SciChartSurfaceBase_1.SciChartSurfaceBase.domMasterCanvas)
|
|
170
171
|
});
|
|
171
172
|
wasmContext.SCRTSetGlobalCopyToDestinationInterface(canvasCopyObj);
|
|
172
173
|
wasmContext.TSRSetDrawRequestsEnabled(true);
|
|
@@ -11,8 +11,8 @@ var WebGlHelper_1 = require("../../Core/WebGlHelper");
|
|
|
11
11
|
var logger_1 = require("../../utils/logger");
|
|
12
12
|
var licenseManager3D_1 = require("./licenseManager3D");
|
|
13
13
|
var SciChart3DSurface_1 = require("./SciChart3DSurface");
|
|
14
|
-
|
|
15
|
-
chartBuilder_1.ensureRegistrations();
|
|
14
|
+
var createSingle3dInternal = function (divElementId, options) {
|
|
15
|
+
(0, chartBuilder_1.ensureRegistrations)();
|
|
16
16
|
return new Promise(function (resolve) {
|
|
17
17
|
var _a, _b, _c, _d;
|
|
18
18
|
var canvases = sciChartInitCommon_1.default.initCanvas(divElementId, (_a = options === null || options === void 0 ? void 0 : options.widthAspect) !== null && _a !== void 0 ? _a : 0, (_b = options === null || options === void 0 ? void 0 : options.heightAspect) !== null && _b !== void 0 ? _b : 0);
|
|
@@ -21,7 +21,7 @@ exports.createSingle3dInternal = function (divElementId, options) {
|
|
|
21
21
|
var webGLSupport = WebGlHelper_1.WebGlHelper.getWebGlSupport();
|
|
22
22
|
console.log("webGLSupport", webGLSupport);
|
|
23
23
|
if (webGLSupport === WebGlHelper_1.EWebGLSupport.WebGL2 || webGLSupport === WebGlHelper_1.EWebGLSupport.WebGL1) {
|
|
24
|
-
var locateFile3d = SciChartSurfaceBase_1.getLocateFile(SciChart3DSurface_1.sciChartConfig3D);
|
|
24
|
+
var locateFile3d = (0, SciChartSurfaceBase_1.getLocateFile)(SciChart3DSurface_1.sciChartConfig3D);
|
|
25
25
|
// @ts-ignore
|
|
26
26
|
new WasmModule3D({ locateFile3d: locateFile3d, noInitialRun: true }).then(function (wasmContext) {
|
|
27
27
|
var _a;
|
|
@@ -36,6 +36,7 @@ exports.createSingle3dInternal = function (divElementId, options) {
|
|
|
36
36
|
}
|
|
37
37
|
});
|
|
38
38
|
};
|
|
39
|
+
exports.createSingle3dInternal = createSingle3dInternal;
|
|
39
40
|
// SINGLE CHART FUNCTIONS
|
|
40
41
|
/** @ignore */
|
|
41
42
|
var initDrawEngineSingleChart = function (wasmContext, canvases, resolve, theme) {
|
|
@@ -52,7 +53,7 @@ var initDrawEngineSingleChart = function (wasmContext, canvases, resolve, theme)
|
|
|
52
53
|
scs.applyTheme(theme);
|
|
53
54
|
var unsub = sciChartInitCommon_1.default.subscribeToResize(canvases.domChartRoot, canvases.aspect, scs);
|
|
54
55
|
scs.addDeletable(unsub);
|
|
55
|
-
licenseManager3D_1.applyLicense3D(wasmContext, scs, true);
|
|
56
|
+
(0, licenseManager3D_1.applyLicense3D)(wasmContext, scs, true);
|
|
56
57
|
scs.setIsInitialized();
|
|
57
58
|
setTimeout(function () {
|
|
58
59
|
setTimeout(scs.invalidateElement, 0);
|
|
@@ -18,23 +18,24 @@ var callbacks3D = {
|
|
|
18
18
|
trialExpired =
|
|
19
19
|
licenseContext3D.SCRTCredentials.GetLicenseType() ===
|
|
20
20
|
licenseContext3D.SCRTLicenseType.LICENSE_TYPE_TRIAL_EXPIRED;
|
|
21
|
-
licenseManager2D_1.updateLicenseDisplay(licenseManager2D_1.getLicenseInfo(licenseContext3D), sciChartSurface3D, false, true);
|
|
21
|
+
(0, licenseManager2D_1.updateLicenseDisplay)((0, licenseManager2D_1.getLicenseInfo)(licenseContext3D), sciChartSurface3D, false, true);
|
|
22
22
|
return { requiresValidation: requiresValidation, trialExpired: trialExpired };
|
|
23
23
|
},
|
|
24
|
-
updateLicenseDisplay3D: function () { return licenseManager2D_1.updateLicenseDisplay(licenseManager2D_1.getLicenseInfo(licenseContext3D), sciChartSurface3D, false, true); }
|
|
24
|
+
updateLicenseDisplay3D: function () { return (0, licenseManager2D_1.updateLicenseDisplay)((0, licenseManager2D_1.getLicenseInfo)(licenseContext3D), sciChartSurface3D, false, true); }
|
|
25
25
|
};
|
|
26
26
|
var shouldApplyLicense3D = true;
|
|
27
27
|
var licenseContext3D;
|
|
28
28
|
var sciChartSurface3D;
|
|
29
|
-
|
|
29
|
+
var applyLicense3D = function (licenseContext, sciChartSurface, isSingle) {
|
|
30
30
|
if (isSingle || shouldApplyLicense3D) {
|
|
31
31
|
licenseContext3D = licenseContext;
|
|
32
32
|
sciChartSurface3D = sciChartSurface;
|
|
33
33
|
// set up callbacks
|
|
34
|
-
licenseManager2D_1.setCallbacks3D(callbacks3D);
|
|
35
|
-
licenseManager2D_1.applyLicense(licenseContext);
|
|
34
|
+
(0, licenseManager2D_1.setCallbacks3D)(callbacks3D);
|
|
35
|
+
(0, licenseManager2D_1.applyLicense)(licenseContext);
|
|
36
36
|
}
|
|
37
|
-
licenseManager2D_1.updateLicenseDisplay(licenseManager2D_1.getLicenseInfo(licenseContext), sciChartSurface, false, false);
|
|
37
|
+
(0, licenseManager2D_1.updateLicenseDisplay)((0, licenseManager2D_1.getLicenseInfo)(licenseContext), sciChartSurface, false, false);
|
|
38
38
|
if (!isSingle)
|
|
39
39
|
shouldApplyLicense3D = false;
|
|
40
40
|
};
|
|
41
|
+
exports.applyLicense3D = applyLicense3D;
|
|
@@ -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 __());
|
|
@@ -115,7 +117,7 @@ var AnimationFiniteStateMachine = /** @class */ (function () {
|
|
|
115
117
|
};
|
|
116
118
|
AnimationFiniteStateMachine.prototype.validate = function (from, to) {
|
|
117
119
|
if (!from.includes(this.stateProperty)) {
|
|
118
|
-
throw Error("Transition from state "
|
|
120
|
+
throw Error("Transition from state ".concat(this.stateProperty, " to ").concat(to, " if forbidden"));
|
|
119
121
|
}
|
|
120
122
|
};
|
|
121
123
|
AnimationFiniteStateMachine.prototype.toDelayed = function () {
|
|
@@ -14,7 +14,7 @@ var DoubleAnimator = /** @class */ (function () {
|
|
|
14
14
|
*/
|
|
15
15
|
DoubleAnimator.animate = function (from, to, durationMs, onAnimate, onCompleted, easingFunction) {
|
|
16
16
|
if (easingFunction === void 0) { easingFunction = EasingFunctions_1.easing.outExpo; }
|
|
17
|
-
return Animator_1.animateAny(durationMs, from, to, onAnimate, DoubleAnimator.interpolate, onCompleted, easingFunction);
|
|
17
|
+
return (0, Animator_1.animateAny)(durationMs, from, to, onAnimate, DoubleAnimator.interpolate, onCompleted, easingFunction);
|
|
18
18
|
};
|
|
19
19
|
DoubleAnimator.interpolate = function (from, to, interpolationFactor) {
|
|
20
20
|
var result = (to - from) * interpolationFactor + from;
|
|
@@ -25,7 +25,7 @@ var GenericAnimation = /** @class */ (function () {
|
|
|
25
25
|
* Sets the animation easing function
|
|
26
26
|
*/
|
|
27
27
|
this.ease = EasingFunctions_1.easing.linear;
|
|
28
|
-
this.id = (_a = options === null || options === void 0 ? void 0 : options.id) !== null && _a !== void 0 ? _a : guid_1.generateGuid();
|
|
28
|
+
this.id = (_a = options === null || options === void 0 ? void 0 : options.id) !== null && _a !== void 0 ? _a : (0, guid_1.generateGuid)();
|
|
29
29
|
this.delay = (_b = options === null || options === void 0 ? void 0 : options.delay) !== null && _b !== void 0 ? _b : this.delay;
|
|
30
30
|
this.duration = (_c = options === null || options === void 0 ? void 0 : options.duration) !== null && _c !== void 0 ? _c : this.duration;
|
|
31
31
|
if ((options === null || options === void 0 ? void 0 : options.ease) && typeof options.ease === "string") {
|
package/Core/Guard.js
CHANGED
|
@@ -42,7 +42,7 @@ var Guard = /** @class */ (function () {
|
|
|
42
42
|
this.notNull(arg, name1);
|
|
43
43
|
this.notNull(arg2, name2);
|
|
44
44
|
if (arg.length !== arg2.length) {
|
|
45
|
-
throw new Error("Arrays "
|
|
45
|
+
throw new Error("Arrays ".concat(name1, " and ").concat(name2, " must have the same length"));
|
|
46
46
|
}
|
|
47
47
|
};
|
|
48
48
|
/**
|
|
@@ -61,7 +61,7 @@ var Guard = /** @class */ (function () {
|
|
|
61
61
|
var firstArgName_1 = args[0].name;
|
|
62
62
|
args.forEach(function (el) {
|
|
63
63
|
if (el.arg.length !== firstArgLength_1) {
|
|
64
|
-
throw new Error("Arrays "
|
|
64
|
+
throw new Error("Arrays ".concat(firstArgName_1, " and ").concat(el.name, " must have the same length"));
|
|
65
65
|
}
|
|
66
66
|
});
|
|
67
67
|
}
|
|
@@ -72,8 +72,8 @@ var Guard = /** @class */ (function () {
|
|
|
72
72
|
* @param name
|
|
73
73
|
*/
|
|
74
74
|
Guard.argumentIsRealNumber = function (d, name) {
|
|
75
|
-
if (!isRealNumber_1.isRealNumber(d)) {
|
|
76
|
-
throw new Error("Argument "
|
|
75
|
+
if (!(0, isRealNumber_1.isRealNumber)(d)) {
|
|
76
|
+
throw new Error("Argument ".concat(name, " must be a real number (not infinite, not NAN)"));
|
|
77
77
|
}
|
|
78
78
|
};
|
|
79
79
|
return Guard;
|
|
@@ -387,7 +387,7 @@ var MouseManager = /** @class */ (function () {
|
|
|
387
387
|
Object.defineProperty(MouseManager.prototype, "chartModifierGroups", {
|
|
388
388
|
get: function () {
|
|
389
389
|
var arr = this.chartModifiers.filter(function (cm) { return cm.modifierGroup !== undefined; }).map(function (el) { return el.modifierGroup; });
|
|
390
|
-
return array_1.getUniqueValues(arr);
|
|
390
|
+
return (0, array_1.getUniqueValues)(arr);
|
|
391
391
|
},
|
|
392
392
|
enumerable: false,
|
|
393
393
|
configurable: true
|
package/Core/NumberRange.js
CHANGED
|
@@ -65,8 +65,8 @@ var NumberRange = /** @class */ (function () {
|
|
|
65
65
|
NumberRange.prototype.growByLog = function (range, logBase) {
|
|
66
66
|
// If NegativeLogarithmicAxis, negate ranges
|
|
67
67
|
var mult = this.min < 0 ? -1 : 1;
|
|
68
|
-
var minExp = this.min !== 0 ? math_1.logToBase(Math.abs(this.min), logBase) : 0;
|
|
69
|
-
var maxExp = this.max !== 0 ? math_1.logToBase(Math.abs(this.max), logBase) : 0;
|
|
68
|
+
var minExp = this.min !== 0 ? (0, math_1.logToBase)(Math.abs(this.min), logBase) : 0;
|
|
69
|
+
var maxExp = this.max !== 0 ? (0, math_1.logToBase)(Math.abs(this.max), logBase) : 0;
|
|
70
70
|
var expDiff = maxExp - minExp;
|
|
71
71
|
var minExpDelta = expDiff * range.min;
|
|
72
72
|
var maxExpDelta = expDiff * range.max;
|
|
@@ -83,7 +83,7 @@ var NumberRange = /** @class */ (function () {
|
|
|
83
83
|
* Returns true if the range is defined (is a real number, not NaN, not infinite, and not undefined)
|
|
84
84
|
*/
|
|
85
85
|
NumberRange.prototype.isDefined = function () {
|
|
86
|
-
return isRealNumber_1.isRealNumber(this.max) && isRealNumber_1.isRealNumber(this.min);
|
|
86
|
+
return (0, isRealNumber_1.isRealNumber)(this.max) && (0, isRealNumber_1.isRealNumber)(this.min);
|
|
87
87
|
};
|
|
88
88
|
/**
|
|
89
89
|
* Returns true if the range equals another by value
|
|
@@ -99,7 +99,7 @@ var NumberRange = /** @class */ (function () {
|
|
|
99
99
|
* Returns a string representation of a {@link NumberRange} for easy debugging
|
|
100
100
|
*/
|
|
101
101
|
NumberRange.prototype.toString = function () {
|
|
102
|
-
return "NumberRange ("
|
|
102
|
+
return "NumberRange (".concat(this.min, ", ").concat(this.max, ")");
|
|
103
103
|
};
|
|
104
104
|
Object.defineProperty(NumberRange.prototype, "diff", {
|
|
105
105
|
/**
|
package/Core/Point.js
CHANGED