scichart 3.1.348 → 3.2.0-beta
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/Charting/ChartModifiers/ChartModifierBase.d.ts +15 -1
- package/Charting/ChartModifiers/ChartModifierBase.js +65 -7
- package/Charting/ChartModifiers/CursorModifier.js +13 -1
- package/Charting/ChartModifiers/LegendModifier.d.ts +1 -1
- package/Charting/ChartModifiers/LegendModifier.js +8 -6
- package/Charting/ChartModifiers/PinchZoomModifier.d.ts +38 -8
- package/Charting/ChartModifiers/PinchZoomModifier.js +103 -40
- package/Charting/ChartModifiers/RolloverModifier.js +10 -3
- package/Charting/ChartModifiers/RubberBandXyZoomModifier.d.ts +1 -1
- package/Charting/ChartModifiers/SeriesSelectionModifier.js +32 -24
- package/Charting/ChartModifiers/ZoomPanModifier.d.ts +13 -38
- package/Charting/ChartModifiers/ZoomPanModifier.js +54 -99
- package/Charting/Drawing/BaseCache.d.ts +2 -1
- package/Charting/Drawing/BaseCache.js +40 -7
- package/Charting/Drawing/RenderSurface.d.ts +1 -0
- package/Charting/Drawing/RenderSurface.js +5 -1
- package/Charting/Drawing/SolidBrushCache.d.ts +2 -1
- package/Charting/Drawing/SolidBrushCache.js +23 -3
- package/Charting/Drawing/WebGlBrush.d.ts +2 -1
- package/Charting/Drawing/WebGlBrush.js +22 -3
- package/Charting/Drawing/WebGlPen.d.ts +2 -1
- package/Charting/Drawing/WebGlPen.js +23 -4
- package/Charting/Drawing/WebGlRenderContext2D.d.ts +4 -3
- package/Charting/Drawing/WebGlRenderContext2D.js +26 -7
- package/Charting/Model/BaseDataSeries.d.ts +67 -2
- package/Charting/Model/BaseDataSeries.js +193 -42
- package/Charting/Model/BaseHeatmapDataSeries.js +1 -1
- package/Charting/Model/ChartData/SeriesInfo.d.ts +16 -0
- package/Charting/Model/ChartData/SeriesInfo.js +7 -0
- package/Charting/Model/ChartData/XyzSeriesInfo.d.ts +8 -0
- package/Charting/Model/ChartData/XyzSeriesInfo.js +36 -0
- package/Charting/Model/DoubleVectorProvider.d.ts +19 -0
- package/Charting/Model/DoubleVectorProvider.js +95 -0
- package/Charting/Model/HlcDataSeries.d.ts +3 -0
- package/Charting/Model/HlcDataSeries.js +44 -15
- package/Charting/Model/IDataSeries.d.ts +23 -0
- package/Charting/Model/NonUniformHeatmapDataSeries.js +2 -0
- package/Charting/Model/OhlcDataSeries.d.ts +3 -0
- package/Charting/Model/OhlcDataSeries.js +56 -24
- package/Charting/Model/PointSeries/BasePointSeriesResampled.d.ts +4 -5
- package/Charting/Model/PointSeries/BasePointSeriesResampled.js +29 -21
- package/Charting/Model/PointSeries/BasePointSeriesWrapped.d.ts +2 -0
- package/Charting/Model/PointSeries/BasePointSeriesWrapped.js +2 -0
- package/Charting/Model/PointSeries/IPointSeries.d.ts +2 -1
- package/Charting/Model/PointSeries/OhlcPointSeriesResampled.js +1 -1
- package/Charting/Model/PointSeries/XyPointSeriesWrapped.d.ts +2 -1
- package/Charting/Model/PointSeries/XyPointSeriesWrapped.js +2 -2
- package/Charting/Model/PointSeries/XyyPointSeriesResampled.js +1 -1
- package/Charting/Model/UniformHeatmapDataSeries.d.ts +31 -11
- package/Charting/Model/UniformHeatmapDataSeries.js +72 -4
- package/Charting/Model/XyDataSeries.d.ts +0 -8
- package/Charting/Model/XyDataSeries.js +21 -5
- package/Charting/Model/XyTextDataSeries.d.ts +2 -0
- package/Charting/Model/XyTextDataSeries.js +35 -4
- package/Charting/Model/XyyDataSeries.d.ts +2 -0
- package/Charting/Model/XyyDataSeries.js +35 -10
- package/Charting/Model/XyzDataSeries.d.ts +3 -0
- package/Charting/Model/XyzDataSeries.js +36 -10
- package/Charting/Numerics/CoordinateCalculators/CategoryCoordinateCalculator.d.ts +3 -5
- package/Charting/Numerics/CoordinateCalculators/CategoryCoordinateCalculator.js +5 -7
- package/Charting/Numerics/CoordinateCalculators/CoordinateCalculatorBase.d.ts +2 -1
- package/Charting/Numerics/CoordinateCalculators/CoordinateCalculatorBase.js +29 -9
- package/Charting/Numerics/CoordinateCalculators/FlippedCategoryCoordinateCalculator.d.ts +3 -5
- package/Charting/Numerics/CoordinateCalculators/FlippedCategoryCoordinateCalculator.js +5 -7
- package/Charting/Numerics/Resamplers/ExtremeResamplerHelper.d.ts +14 -10
- package/Charting/Numerics/Resamplers/ExtremeResamplerHelper.js +105 -69
- package/Charting/Numerics/Resamplers/ResamplingParams.d.ts +4 -2
- package/Charting/Numerics/Resamplers/ResamplingParams.js +12 -7
- package/Charting/Numerics/TickCoordinateProviders/TickCoordinatesProvider.d.ts +5 -0
- package/Charting/Numerics/TickCoordinateProviders/TickCoordinatesProvider.js +7 -0
- package/Charting/Numerics/TickProviders/NumericTickProvider.js +3 -4
- package/Charting/Numerics/TickProviders/TickProvider.d.ts +5 -0
- package/Charting/Numerics/TickProviders/TickProvider.js +7 -0
- package/Charting/Services/SciChartRenderer.js +15 -5
- package/Charting/Services/TitleRenderer.d.ts +2 -1
- package/Charting/Services/TitleRenderer.js +35 -14
- package/Charting/Visuals/Annotations/AdornerLayer.d.ts +1 -1
- package/Charting/Visuals/Annotations/AnnotationBase.d.ts +6 -6
- package/Charting/Visuals/Annotations/AnnotationBase.js +81 -61
- package/Charting/Visuals/Annotations/CursorTooltipSvgAnnotation.js +8 -0
- package/Charting/Visuals/Annotations/IAnnotation.d.ts +9 -4
- package/Charting/Visuals/Annotations/IAnnotation.js +6 -0
- package/Charting/Visuals/Annotations/LineAnnotation.js +3 -1
- package/Charting/Visuals/Annotations/RenderContextAnnotationBase.d.ts +5 -0
- package/Charting/Visuals/Annotations/RenderContextAnnotationBase.js +16 -0
- package/Charting/Visuals/Annotations/RolloverTooltipSvgAnnotation.js +6 -0
- package/Charting/Visuals/Annotations/constants.d.ts +1 -0
- package/Charting/Visuals/Annotations/constants.js +1 -0
- package/Charting/Visuals/Axis/AxisBase2D.d.ts +20 -5
- package/Charting/Visuals/Axis/AxisBase2D.js +46 -10
- package/Charting/Visuals/Axis/AxisCore.d.ts +4 -1
- package/Charting/Visuals/Axis/AxisCore.js +100 -54
- package/Charting/Visuals/Axis/AxisRenderer.d.ts +2 -1
- package/Charting/Visuals/Axis/AxisRenderer.js +40 -16
- package/Charting/Visuals/Axis/AxisTitleRenderer.d.ts +1 -0
- package/Charting/Visuals/Axis/AxisTitleRenderer.js +4 -0
- package/Charting/Visuals/Axis/CategoryAxisBase.js +4 -4
- package/Charting/Visuals/Axis/DeltaCalculator/DateTimeDeltaCalculator.js +14 -9
- package/Charting/Visuals/Axis/DeltaCalculator/DeltaCalculator.d.ts +5 -0
- package/Charting/Visuals/Axis/DeltaCalculator/DeltaCalculator.js +7 -0
- package/Charting/Visuals/Axis/LabelProvider/LabelCache.d.ts +2 -2
- package/Charting/Visuals/Axis/LabelProvider/LabelCache.js +8 -1
- package/Charting/Visuals/Axis/LabelProvider/LabelProvider.d.ts +7 -1
- package/Charting/Visuals/Axis/LabelProvider/LabelProvider.js +34 -8
- package/Charting/Visuals/Axis/LabelProvider/LabelProviderBase2D.d.ts +4 -2
- package/Charting/Visuals/Axis/LabelProvider/LabelProviderBase2D.js +8 -2
- package/Charting/Visuals/Axis/LabelProvider/PieLabelProvider.d.ts +1 -0
- package/Charting/Visuals/Axis/LabelProvider/PieLabelProvider.js +1 -0
- package/Charting/Visuals/HeatmapLegend.d.ts +3 -2
- package/Charting/Visuals/HeatmapLegend.js +33 -12
- package/Charting/Visuals/Helpers/NativeObject.d.ts +8 -5
- package/Charting/Visuals/Helpers/NativeObject.js +42 -21
- package/Charting/Visuals/Helpers/drawLabel.js +3 -1
- package/Charting/Visuals/I2DSurfaceOptions.d.ts +0 -15
- package/Charting/Visuals/Legend/SciChartLegendBase.d.ts +3 -1
- package/Charting/Visuals/Legend/SciChartLegendBase.js +35 -14
- package/Charting/Visuals/Legend/SciChartPieLegend.js +1 -1
- package/Charting/Visuals/PointMarkers/BasePointMarker.d.ts +13 -1
- package/Charting/Visuals/PointMarkers/BasePointMarker.js +72 -19
- package/Charting/Visuals/PointMarkers/Constants.d.ts +2 -1
- package/Charting/Visuals/PointMarkers/Constants.js +1 -0
- package/Charting/Visuals/PointMarkers/IPointMarker.d.ts +2 -0
- package/Charting/Visuals/RenderableSeries/Animations/SeriesAnimation.js +4 -1
- package/Charting/Visuals/RenderableSeries/Animations/animationHelpers.d.ts +1 -1
- package/Charting/Visuals/RenderableSeries/BaseBandRenderableSeries.js +8 -7
- package/Charting/Visuals/RenderableSeries/BaseHeatmapRenderableSeries.d.ts +1 -0
- package/Charting/Visuals/RenderableSeries/BaseHeatmapRenderableSeries.js +5 -0
- package/Charting/Visuals/RenderableSeries/BaseOhlcRenderableSeries.js +10 -9
- package/Charting/Visuals/RenderableSeries/BaseRenderableSeries.d.ts +2 -1
- package/Charting/Visuals/RenderableSeries/BaseRenderableSeries.js +101 -69
- package/Charting/Visuals/RenderableSeries/BaseStackedCollection.js +13 -4
- package/Charting/Visuals/RenderableSeries/BaseStackedRenderableSeries.js +12 -3
- package/Charting/Visuals/RenderableSeries/DataLabels/BaseDataLabelProvider.d.ts +2 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/BaseDataLabelProvider.js +5 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/DataLabelProvider.js +6 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/DataLabelState.d.ts +1 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/DataLabelState.js +18 -5
- package/Charting/Visuals/RenderableSeries/DataLabels/NonUniformHeatmapDataLabelProvider.js +0 -1
- package/Charting/Visuals/RenderableSeries/DataLabels/TextDataLabelProvider.js +8 -2
- package/Charting/Visuals/RenderableSeries/DrawingProviders/BandSeriesDrawingProvider.d.ts +1 -0
- package/Charting/Visuals/RenderableSeries/DrawingProviders/BandSeriesDrawingProvider.js +35 -16
- package/Charting/Visuals/RenderableSeries/DrawingProviders/BaseSeriesDrawingProvider.d.ts +2 -1
- package/Charting/Visuals/RenderableSeries/DrawingProviders/BaseSeriesDrawingProvider.js +62 -33
- package/Charting/Visuals/RenderableSeries/DrawingProviders/BubbleSeriesDrawingProvider.d.ts +1 -0
- package/Charting/Visuals/RenderableSeries/DrawingProviders/BubbleSeriesDrawingProvider.js +30 -9
- package/Charting/Visuals/RenderableSeries/DrawingProviders/ColumnSeriesDrawingProvider.d.ts +1 -0
- package/Charting/Visuals/RenderableSeries/DrawingProviders/ColumnSeriesDrawingProvider.js +37 -16
- package/Charting/Visuals/RenderableSeries/DrawingProviders/HeatmapHelpers.d.ts +47 -0
- package/Charting/Visuals/RenderableSeries/DrawingProviders/HeatmapHelpers.js +258 -0
- package/Charting/Visuals/RenderableSeries/DrawingProviders/LineSeriesDrawingProvider.js +26 -2
- package/Charting/Visuals/RenderableSeries/DrawingProviders/MountainSeriesDrawingProvider.d.ts +1 -0
- package/Charting/Visuals/RenderableSeries/DrawingProviders/MountainSeriesDrawingProvider.js +34 -15
- package/Charting/Visuals/RenderableSeries/DrawingProviders/NonUniformHeatmapDrawingProvider.js +5 -230
- package/Charting/Visuals/RenderableSeries/DrawingProviders/OhlcSeriesDrawingProvider.d.ts +1 -0
- package/Charting/Visuals/RenderableSeries/DrawingProviders/OhlcSeriesDrawingProvider.js +62 -37
- package/Charting/Visuals/RenderableSeries/DrawingProviders/PointMarkerDrawingProvider.js +30 -3
- package/Charting/Visuals/RenderableSeries/DrawingProviders/UniformHeatmapDrawingProvider.d.ts +1 -0
- package/Charting/Visuals/RenderableSeries/DrawingProviders/UniformHeatmapDrawingProvider.js +4 -1
- package/Charting/Visuals/RenderableSeries/FastBubbleRenderableSeries.d.ts +0 -2
- package/Charting/Visuals/RenderableSeries/FastBubbleRenderableSeries.js +0 -4
- package/Charting/Visuals/RenderableSeries/FastTextRenderableSeries.d.ts +3 -0
- package/Charting/Visuals/RenderableSeries/FastTextRenderableSeries.js +10 -0
- package/Charting/Visuals/RenderableSeries/HitTest/BubbleSeriesHitTestProvider.d.ts +4 -0
- package/Charting/Visuals/RenderableSeries/HitTest/BubbleSeriesHitTestProvider.js +7 -0
- package/Charting/Visuals/RenderableSeries/HitTest/HitTestInfo.d.ts +4 -0
- package/Charting/Visuals/RenderableSeries/HitTest/HitTestInfo.js +9 -0
- package/Charting/Visuals/RenderableSeries/ShaderEffect.d.ts +3 -2
- package/Charting/Visuals/RenderableSeries/ShaderEffect.js +29 -9
- package/Charting/Visuals/RenderableSeries/SplineBandRenderableSeries.js +7 -0
- package/Charting/Visuals/RenderableSeries/SplineLineRenderableSeries.js +7 -0
- package/Charting/Visuals/RenderableSeries/SplineMountainRenderableSeries.js +7 -0
- package/Charting/Visuals/RenderableSeries/StackedColumnCollection.js +3 -0
- package/Charting/Visuals/RenderableSeries/StackedMountainCollection.d.ts +0 -2
- package/Charting/Visuals/RenderableSeries/StackedMountainCollection.js +4 -4
- package/Charting/Visuals/RenderableSeries/StackedMountainRenderableSeries.d.ts +1 -0
- package/Charting/Visuals/RenderableSeries/StackedMountainRenderableSeries.js +8 -0
- package/Charting/Visuals/RenderableSeries/XyScatterRenderableSeries.d.ts +1 -2
- package/Charting/Visuals/RenderableSeries/XyScatterRenderableSeries.js +8 -3
- package/Charting/Visuals/RubberBandSvgRect/RubberBandSvgRect.d.ts +3 -1
- package/Charting/Visuals/RubberBandSvgRect/RubberBandSvgRect.js +30 -10
- package/Charting/Visuals/SciChartDefaults.d.ts +10 -0
- package/Charting/Visuals/SciChartDefaults.js +10 -0
- package/Charting/Visuals/SciChartOverview.d.ts +2 -1
- package/Charting/Visuals/SciChartOverview.js +28 -8
- package/Charting/Visuals/SciChartPieSurface/SciChartPieSurface.d.ts +10 -3
- package/Charting/Visuals/SciChartPieSurface/SciChartPieSurface.js +118 -60
- package/Charting/Visuals/SciChartSurface.d.ts +4 -36
- package/Charting/Visuals/SciChartSurface.js +48 -61
- package/Charting/Visuals/SciChartSurfaceBase.d.ts +99 -13
- package/Charting/Visuals/SciChartSurfaceBase.js +155 -32
- package/Charting/Visuals/TextureManager/CanvasTexture.d.ts +2 -1
- package/Charting/Visuals/TextureManager/CanvasTexture.js +37 -17
- package/Charting/Visuals/TextureManager/TextureManager.d.ts +2 -1
- package/Charting/Visuals/TextureManager/TextureManager.js +27 -7
- package/Charting/Visuals/createMaster.d.ts +4 -2
- package/Charting/Visuals/createMaster.js +92 -28
- package/Charting/Visuals/createSingle.d.ts +0 -2
- package/Charting/Visuals/createSingle.js +44 -9
- package/Charting/Visuals/licenseManager2D.d.ts +7 -5
- package/Charting/Visuals/licenseManager2D.js +105 -53
- package/Charting/Visuals/loader.js +3 -1
- package/Charting/Visuals/sciChartInitCommon.d.ts +1 -1
- package/Charting/Visuals/sciChartInitCommon.js +5 -1
- package/Charting3D/CameraController.d.ts +1 -1
- package/Charting3D/CameraController.js +21 -7
- package/Charting3D/ChartModifiers/ChartModifierBase3D.d.ts +1 -0
- package/Charting3D/ChartModifiers/ChartModifierBase3D.js +4 -1
- package/Charting3D/ChartModifiers/OrbitModifier3D.d.ts +17 -5
- package/Charting3D/ChartModifiers/OrbitModifier3D.js +62 -26
- package/Charting3D/ChartModifiers/PinchZoomModifier3D.d.ts +81 -0
- package/Charting3D/ChartModifiers/PinchZoomModifier3D.js +164 -0
- package/Charting3D/ChartModifiers/TooltipModifier3D.d.ts +87 -0
- package/Charting3D/ChartModifiers/TooltipModifier3D.js +391 -0
- package/Charting3D/I3DSurfaceOptions.d.ts +10 -0
- package/Charting3D/I3DSurfaceOptions.js +2 -0
- package/Charting3D/Model/DataSeries/BaseDataSeries3D.d.ts +2 -1
- package/Charting3D/Model/DataSeries/BaseDataSeries3D.js +27 -6
- package/Charting3D/Model/DataSeries/UniformGridDataSeries3D.d.ts +8 -0
- package/Charting3D/Model/DataSeries/UniformGridDataSeries3D.js +12 -0
- package/Charting3D/Model/DataSeries/XyzDataSeries3D.d.ts +2 -2
- package/Charting3D/Model/DataSeries/XyzDataSeries3D.js +1 -1
- package/Charting3D/Vector3.d.ts +5 -0
- package/Charting3D/Vector3.js +7 -0
- package/Charting3D/Visuals/Annotations/TooltipSvgAnnotation3D.d.ts +88 -0
- package/Charting3D/Visuals/Annotations/TooltipSvgAnnotation3D.js +291 -0
- package/Charting3D/Visuals/Axis/AxisBase3D.d.ts +21 -2
- package/Charting3D/Visuals/Axis/AxisBase3D.js +48 -18
- package/Charting3D/Visuals/Axis/AxisBase3DLabelStyle.js +2 -1
- package/Charting3D/Visuals/Axis/AxisCubeEntity.d.ts +0 -4
- package/Charting3D/Visuals/Axis/AxisCubeEntity.js +3 -6
- package/Charting3D/Visuals/Axis/IAxisDescriptor.d.ts +2 -2
- package/Charting3D/Visuals/Axis/IAxisDescriptor.js +2 -2
- package/Charting3D/Visuals/Primitives/BaseSceneEntity3D.d.ts +41 -30
- package/Charting3D/Visuals/Primitives/BaseSceneEntity3D.js +78 -26
- package/Charting3D/Visuals/Primitives/CrosshairLinesSceneEntity.d.ts +47 -0
- package/Charting3D/Visuals/Primitives/CrosshairLinesSceneEntity.js +106 -0
- package/Charting3D/Visuals/Primitives/EntityIdProvider.d.ts +29 -0
- package/Charting3D/Visuals/Primitives/EntityIdProvider.js +28 -0
- package/Charting3D/Visuals/Primitives/PointLine3DSceneEntity.d.ts +51 -0
- package/Charting3D/Visuals/Primitives/PointLine3DSceneEntity.js +188 -0
- package/Charting3D/Visuals/Primitives/RenderableSeriesSceneEntity.d.ts +12 -0
- package/Charting3D/Visuals/Primitives/RenderableSeriesSceneEntity.js +14 -0
- package/Charting3D/Visuals/Primitives/ScatterPointsSceneEntity.d.ts +11 -0
- package/Charting3D/Visuals/Primitives/ScatterPointsSceneEntity.js +18 -0
- package/Charting3D/Visuals/Primitives/SurfaceMeshSceneEntity.d.ts +3 -0
- package/Charting3D/Visuals/Primitives/SurfaceMeshSceneEntity.js +15 -0
- package/Charting3D/Visuals/RenderableSeries/BaseRenderableSeries3D.d.ts +16 -1
- package/Charting3D/Visuals/RenderableSeries/BaseRenderableSeries3D.js +64 -12
- package/Charting3D/Visuals/RenderableSeries/Constants.d.ts +2 -0
- package/Charting3D/Visuals/RenderableSeries/Constants.js +2 -0
- package/Charting3D/Visuals/RenderableSeries/ESeriesType.d.ts +2 -1
- package/Charting3D/Visuals/RenderableSeries/ESeriesType.js +1 -0
- package/Charting3D/Visuals/RenderableSeries/HitTestInfo3D.d.ts +37 -0
- package/Charting3D/Visuals/RenderableSeries/HitTestInfo3D.js +22 -0
- package/Charting3D/Visuals/RenderableSeries/PointLineRenderableSeries3D.d.ts +64 -0
- package/Charting3D/Visuals/RenderableSeries/PointLineRenderableSeries3D.js +105 -0
- package/Charting3D/Visuals/RenderableSeries/SeriesInfo3D.d.ts +51 -0
- package/Charting3D/Visuals/RenderableSeries/SeriesInfo3D.js +32 -0
- package/Charting3D/Visuals/RenderableSeries/SurfaceMeshSeriesInfo3D.d.ts +15 -0
- package/Charting3D/Visuals/RenderableSeries/SurfaceMeshSeriesInfo3D.js +112 -0
- package/Charting3D/Visuals/RenderableSeries/XyzSeriesInfo3D.d.ts +20 -0
- package/Charting3D/Visuals/RenderableSeries/XyzSeriesInfo3D.js +60 -0
- package/Charting3D/Visuals/RootSceneEntity.d.ts +0 -4
- package/Charting3D/Visuals/RootSceneEntity.js +3 -8
- package/Charting3D/Visuals/SciChart3DRenderer.d.ts +2 -0
- package/Charting3D/Visuals/SciChart3DRenderer.js +49 -0
- package/Charting3D/Visuals/SciChart3DSurface.d.ts +44 -3
- package/Charting3D/Visuals/SciChart3DSurface.js +103 -9
- package/Charting3D/Visuals/ViewportManager3DBase.d.ts +4 -0
- package/Charting3D/Visuals/ViewportManager3DBase.js +7 -1
- package/Charting3D/Visuals/createMaster3d.d.ts +1 -2
- package/Charting3D/Visuals/createMaster3d.js +76 -14
- package/Charting3D/Visuals/createSingle3d.js +34 -4
- package/Charting3D/Visuals/licenseManager3D.js +29 -25
- package/Core/BuildStamp.d.ts +1 -1
- package/Core/BuildStamp.js +2 -2
- package/Core/DeletableEntity.d.ts +28 -0
- package/Core/DeletableEntity.js +141 -0
- package/Core/Globals.d.ts +11 -0
- package/Core/Globals.js +13 -0
- package/Core/Guard.d.ts +6 -0
- package/Core/Guard.js +10 -0
- package/Core/Mouse/MouseManager.d.ts +23 -0
- package/Core/Mouse/MouseManager.js +47 -0
- package/Core/Telemetry.js +4 -6
- package/_wasm/scichart.browser.js +1 -1
- package/_wasm/scichart2d.data +0 -0
- package/_wasm/scichart2d.js +4 -294
- package/_wasm/scichart2d.wasm +0 -0
- package/_wasm/scichart3d.data +0 -0
- package/_wasm/scichart3d.js +4 -294
- package/_wasm/scichart3d.wasm +0 -0
- package/index.d.ts +43 -2
- package/index.js +89 -27
- package/index.min.js +1 -1
- package/package.json +3 -4
- package/types/ChartModifierType.d.ts +2 -0
- package/types/ChartModifierType.js +2 -0
- package/types/DefaultRenderLayer.d.ts +9 -8
- package/types/DefaultRenderLayer.js +9 -8
- package/types/NumberArray.d.ts +1 -0
- package/types/NumberArray.js +12 -1
- package/types/SceneEntityType.d.ts +13 -5
- package/types/SceneEntityType.js +13 -5
- package/types/TSciChart.d.ts +37 -8
- package/types/TSciChart3D.d.ts +126 -7
- package/types/licensingClasses.d.ts +2 -1
- package/types/licensingClasses.js +1 -0
- package/utils/MemoryUsageHelper.d.ts +45 -0
- package/utils/MemoryUsageHelper.js +171 -0
- package/utils/array.d.ts +8 -0
- package/utils/array.js +58 -1
- package/utils/logger.d.ts +2 -0
- package/utils/logger.js +11 -0
|
@@ -3,36 +3,40 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.applyLicense3D = void 0;
|
|
4
4
|
var licenseManager2D_1 = require("../../Charting/Visuals/licenseManager2D");
|
|
5
5
|
// tslint:disable: no-console
|
|
6
|
-
var
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
licenseContext3D.
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
6
|
+
var getCallbacks3D = function (licenseContext3D, sciChartSurface) {
|
|
7
|
+
return {
|
|
8
|
+
getLicenseChallenge3D: function () {
|
|
9
|
+
var challenge = licenseContext3D.SCRTCredentials.GetLicenseChallenge();
|
|
10
|
+
var orderId = licenseContext3D.SCRTCredentials.GetOrderId();
|
|
11
|
+
return { challenge: challenge, orderId: orderId };
|
|
12
|
+
},
|
|
13
|
+
setChallengeResponse3D: function (token) { return licenseContext3D.SCRTCredentials.ApplyLicenseResponse(token); },
|
|
14
|
+
setNewLicense3D: function (keyCode) {
|
|
15
|
+
var requiresValidation = false;
|
|
16
|
+
var trialExpired;
|
|
17
|
+
licenseContext3D.SCRTCredentials.SetRuntimeLicenseKeyW(keyCode);
|
|
18
|
+
requiresValidation = licenseContext3D.SCRTCredentials.RequiresValidation();
|
|
19
|
+
trialExpired =
|
|
20
|
+
licenseContext3D.SCRTCredentials.GetLicenseType() ===
|
|
21
|
+
licenseContext3D.SCRTLicenseType.LICENSE_TYPE_TRIAL_EXPIRED;
|
|
22
|
+
(0, licenseManager2D_1.updateLicenseDisplay)((0, licenseManager2D_1.getLicenseInfo)(licenseContext3D), sciChartSurface, false, true);
|
|
23
|
+
return { requiresValidation: requiresValidation, trialExpired: trialExpired };
|
|
24
|
+
},
|
|
25
|
+
updateLicenseDisplay3D: function () {
|
|
26
|
+
return (0, licenseManager2D_1.updateLicenseDisplay)((0, licenseManager2D_1.getLicenseInfo)(licenseContext3D), sciChartSurface, false, true);
|
|
27
|
+
}
|
|
28
|
+
};
|
|
25
29
|
};
|
|
26
30
|
var shouldApplyLicense3D = true;
|
|
27
|
-
|
|
28
|
-
|
|
31
|
+
// let licenseContext3D: TSciChart3D;
|
|
32
|
+
// let sciChartSurface3D: SciChart3DSurface;
|
|
29
33
|
var applyLicense3D = function (licenseContext, sciChartSurface, isSingle) {
|
|
30
34
|
if (isSingle || shouldApplyLicense3D) {
|
|
31
|
-
licenseContext3D = licenseContext;
|
|
32
|
-
sciChartSurface3D = sciChartSurface;
|
|
35
|
+
// licenseContext3D = licenseContext as TSciChart3D;
|
|
36
|
+
// sciChartSurface3D = sciChartSurface as SciChart3DSurface;
|
|
33
37
|
// set up callbacks
|
|
34
|
-
(0, licenseManager2D_1.setCallbacks3D)(
|
|
35
|
-
(0, licenseManager2D_1.applyLicense)(licenseContext,
|
|
38
|
+
(0, licenseManager2D_1.setCallbacks3D)(getCallbacks3D(licenseContext, sciChartSurface));
|
|
39
|
+
(0, licenseManager2D_1.applyLicense)(licenseContext, sciChartSurface);
|
|
36
40
|
}
|
|
37
41
|
else {
|
|
38
42
|
(0, licenseManager2D_1.updateLicenseDisplay)((0, licenseManager2D_1.getLicenseInfo)(licenseContext), sciChartSurface, false, false);
|
package/Core/BuildStamp.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { TSciChart } from "../types/TSciChart";
|
|
2
2
|
import { TSciChart3D } from "../types/TSciChart3D";
|
|
3
|
-
export declare const libraryVersion = "3.
|
|
3
|
+
export declare const libraryVersion = "3.2.0-beta";
|
|
4
4
|
export declare const checkBuildStamp: (wasmContext: TSciChart | TSciChart3D) => boolean;
|
package/Core/BuildStamp.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.checkBuildStamp = exports.libraryVersion = void 0;
|
|
4
|
-
var buildStamp = "2023-07-
|
|
4
|
+
var buildStamp = "2023-07-12T00:00:00";
|
|
5
5
|
var result;
|
|
6
6
|
// tslint:disable-next-line:no-var-requires
|
|
7
|
-
exports.libraryVersion = "3.
|
|
7
|
+
exports.libraryVersion = "3.2.0-beta";
|
|
8
8
|
var checkBuildStamp = function (wasmContext) {
|
|
9
9
|
if (result !== undefined)
|
|
10
10
|
return result;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { TSciChart } from "../types/TSciChart";
|
|
2
|
+
import { IDeletable } from "./IDeletable";
|
|
3
|
+
export declare abstract class DeletableEntity implements IDeletable {
|
|
4
|
+
constructor(entity?: IDeletable);
|
|
5
|
+
abstract delete(): void;
|
|
6
|
+
}
|
|
7
|
+
export declare class DeletableEntityWrapper extends DeletableEntity {
|
|
8
|
+
delete(): void;
|
|
9
|
+
}
|
|
10
|
+
export declare const wrapDeletableEntity: (entity: any) => DeletableEntityWrapper;
|
|
11
|
+
export declare class DeletableEntityProxyHandler implements ProxyHandler<any> {
|
|
12
|
+
protected disposableEntityId: string;
|
|
13
|
+
constructor(entity: IDeletable);
|
|
14
|
+
construct(real: any, constructParams: any[]): any;
|
|
15
|
+
apply(target: any, thisArg: any, argArray: any[]): void;
|
|
16
|
+
get(constructedEntity: any, propertyName: string, receiver: any): any;
|
|
17
|
+
}
|
|
18
|
+
export declare class WasmObjectConstructorProxyHandler implements ProxyHandler<any> {
|
|
19
|
+
construct(targetFunction: any, constructParams: any[], newTarget: Function): object;
|
|
20
|
+
}
|
|
21
|
+
export declare class WasmContextProxyHandler implements ProxyHandler<TSciChart> {
|
|
22
|
+
protected constructorProxyHandler: WasmObjectConstructorProxyHandler;
|
|
23
|
+
get(target: any, name: string, receiver: any): any;
|
|
24
|
+
}
|
|
25
|
+
export declare const createWasmContextRevocableProxy: <TContextType extends object>(wasmContext: TContextType) => {
|
|
26
|
+
proxy: TContextType;
|
|
27
|
+
revoke: () => void;
|
|
28
|
+
};
|
|
@@ -0,0 +1,141 @@
|
|
|
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
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
18
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
19
|
+
if (ar || !(i in from)) {
|
|
20
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
21
|
+
ar[i] = from[i];
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
25
|
+
};
|
|
26
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
|
+
exports.createWasmContextRevocableProxy = exports.WasmContextProxyHandler = exports.WasmObjectConstructorProxyHandler = exports.DeletableEntityProxyHandler = exports.wrapDeletableEntity = exports.DeletableEntityWrapper = exports.DeletableEntity = void 0;
|
|
28
|
+
var MemoryUsageHelper_1 = require("../utils/MemoryUsageHelper");
|
|
29
|
+
// TODO add method for deleting everything
|
|
30
|
+
// first IDeletable
|
|
31
|
+
// then Native
|
|
32
|
+
var DeletableEntity = /** @class */ (function () {
|
|
33
|
+
function DeletableEntity(entity) {
|
|
34
|
+
if (process.env.NODE_ENV !== "production") {
|
|
35
|
+
if (MemoryUsageHelper_1.MemoryUsageHelper.isMemoryUsageDebugEnabled) {
|
|
36
|
+
var target = entity !== null && entity !== void 0 ? entity : this;
|
|
37
|
+
return new Proxy(target, new DeletableEntityProxyHandler(target));
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
return DeletableEntity;
|
|
42
|
+
}());
|
|
43
|
+
exports.DeletableEntity = DeletableEntity;
|
|
44
|
+
var DeletableEntityWrapper = /** @class */ (function (_super) {
|
|
45
|
+
__extends(DeletableEntityWrapper, _super);
|
|
46
|
+
function DeletableEntityWrapper() {
|
|
47
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
48
|
+
}
|
|
49
|
+
DeletableEntityWrapper.prototype.delete = function () {
|
|
50
|
+
console.log("DeletableEntityWrapper delete");
|
|
51
|
+
};
|
|
52
|
+
return DeletableEntityWrapper;
|
|
53
|
+
}(DeletableEntity));
|
|
54
|
+
exports.DeletableEntityWrapper = DeletableEntityWrapper;
|
|
55
|
+
var wrapDeletableEntity = function (entity) {
|
|
56
|
+
return new DeletableEntityWrapper(entity);
|
|
57
|
+
};
|
|
58
|
+
exports.wrapDeletableEntity = wrapDeletableEntity;
|
|
59
|
+
var DeletableEntityProxyHandler = /** @class */ (function () {
|
|
60
|
+
function DeletableEntityProxyHandler(entity) {
|
|
61
|
+
this.disposableEntityId = (0, MemoryUsageHelper_1.generateIdentifier)(entity);
|
|
62
|
+
MemoryUsageHelper_1.MemoryUsageHelper.objectRegistry.add(entity, this.disposableEntityId);
|
|
63
|
+
}
|
|
64
|
+
DeletableEntityProxyHandler.prototype.construct = function (real, constructParams) {
|
|
65
|
+
console.warn("construct called on Deletable", this.disposableEntityId);
|
|
66
|
+
return real;
|
|
67
|
+
};
|
|
68
|
+
DeletableEntityProxyHandler.prototype.apply = function (target, thisArg, argArray) {
|
|
69
|
+
console.warn("apply called on Deletable", this.disposableEntityId);
|
|
70
|
+
};
|
|
71
|
+
DeletableEntityProxyHandler.prototype.get = function (constructedEntity, propertyName, receiver) {
|
|
72
|
+
var _this = this;
|
|
73
|
+
if (propertyName === "delete") {
|
|
74
|
+
return function () {
|
|
75
|
+
var params = [];
|
|
76
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
77
|
+
params[_i] = arguments[_i];
|
|
78
|
+
}
|
|
79
|
+
var removedSuccessfully = MemoryUsageHelper_1.MemoryUsageHelper.objectRegistry.remove(_this.disposableEntityId);
|
|
80
|
+
if (!removedSuccessfully) {
|
|
81
|
+
console.warn("Failed to remove ".concat(_this.disposableEntityId, " from the Object Registry Probably it has been already deleted!"));
|
|
82
|
+
}
|
|
83
|
+
return constructedEntity[propertyName].apply(constructedEntity, params);
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
return constructedEntity[propertyName];
|
|
87
|
+
};
|
|
88
|
+
return DeletableEntityProxyHandler;
|
|
89
|
+
}());
|
|
90
|
+
exports.DeletableEntityProxyHandler = DeletableEntityProxyHandler;
|
|
91
|
+
var WasmObjectConstructorProxyHandler = /** @class */ (function () {
|
|
92
|
+
function WasmObjectConstructorProxyHandler() {
|
|
93
|
+
}
|
|
94
|
+
WasmObjectConstructorProxyHandler.prototype.construct = function (targetFunction, constructParams, newTarget) {
|
|
95
|
+
var realConstructedEntity = new (targetFunction.bind.apply(targetFunction, __spreadArray([void 0], constructParams, false)))();
|
|
96
|
+
//TODO check if DeletableEntityWrapper
|
|
97
|
+
return new Proxy(realConstructedEntity, new DeletableEntityProxyHandler(realConstructedEntity));
|
|
98
|
+
};
|
|
99
|
+
return WasmObjectConstructorProxyHandler;
|
|
100
|
+
}());
|
|
101
|
+
exports.WasmObjectConstructorProxyHandler = WasmObjectConstructorProxyHandler;
|
|
102
|
+
// https://stackoverflow.com/a/48036194
|
|
103
|
+
var handler = {
|
|
104
|
+
construct: function () {
|
|
105
|
+
return handler;
|
|
106
|
+
}
|
|
107
|
+
}; //Must return ANY object, so reuse one
|
|
108
|
+
var isConstructor = function (someObj) {
|
|
109
|
+
try {
|
|
110
|
+
return !!new new Proxy(someObj, handler)();
|
|
111
|
+
}
|
|
112
|
+
catch (e) {
|
|
113
|
+
return false;
|
|
114
|
+
}
|
|
115
|
+
};
|
|
116
|
+
var WasmContextProxyHandler = /** @class */ (function () {
|
|
117
|
+
function WasmContextProxyHandler() {
|
|
118
|
+
this.constructorProxyHandler = new WasmObjectConstructorProxyHandler();
|
|
119
|
+
}
|
|
120
|
+
WasmContextProxyHandler.prototype.get = function (target, name, receiver) {
|
|
121
|
+
var originalExposedProperty = target[name];
|
|
122
|
+
var isNativeObjectConstructor = isConstructor(originalExposedProperty);
|
|
123
|
+
if (isNativeObjectConstructor) {
|
|
124
|
+
return new Proxy(originalExposedProperty, this.constructorProxyHandler);
|
|
125
|
+
}
|
|
126
|
+
return originalExposedProperty;
|
|
127
|
+
};
|
|
128
|
+
return WasmContextProxyHandler;
|
|
129
|
+
}());
|
|
130
|
+
exports.WasmContextProxyHandler = WasmContextProxyHandler;
|
|
131
|
+
var createWasmContextRevocableProxy = function (wasmContext) {
|
|
132
|
+
MemoryUsageHelper_1.MemoryUsageHelper.register(wasmContext, "wasmContext");
|
|
133
|
+
var proxyHandler = {};
|
|
134
|
+
if (process.env.NODE_ENV !== "production") {
|
|
135
|
+
if (MemoryUsageHelper_1.MemoryUsageHelper.isMemoryUsageDebugEnabled) {
|
|
136
|
+
proxyHandler = new WasmContextProxyHandler();
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
return Proxy.revocable(wasmContext, proxyHandler);
|
|
140
|
+
};
|
|
141
|
+
exports.createWasmContextRevocableProxy = createWasmContextRevocableProxy;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { TSciChartDestination } from "../Charting/Visuals/SciChartSurfaceBase";
|
|
2
|
+
/** @ignore */
|
|
3
|
+
export declare const sciChartDestinations: TSciChartDestination[];
|
|
4
|
+
/** @ignore */
|
|
5
|
+
export declare const sciChart3DDestinations: TSciChartDestination[];
|
|
6
|
+
/** @ignore */
|
|
7
|
+
export declare const sciChartSingleDestinations: TSciChartDestination[];
|
|
8
|
+
/** @ignore */
|
|
9
|
+
export declare const sciChart3DSingleDestinations: TSciChartDestination[];
|
|
10
|
+
/** @ignore */
|
|
11
|
+
export declare const sciChartPieDestinations: TSciChartDestination[];
|
package/Core/Globals.js
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.sciChartPieDestinations = exports.sciChart3DSingleDestinations = exports.sciChartSingleDestinations = exports.sciChart3DDestinations = exports.sciChartDestinations = void 0;
|
|
4
|
+
/** @ignore */
|
|
5
|
+
exports.sciChartDestinations = [];
|
|
6
|
+
/** @ignore */
|
|
7
|
+
exports.sciChart3DDestinations = [];
|
|
8
|
+
/** @ignore */
|
|
9
|
+
exports.sciChartSingleDestinations = [];
|
|
10
|
+
/** @ignore */
|
|
11
|
+
exports.sciChart3DSingleDestinations = [];
|
|
12
|
+
/** @ignore */
|
|
13
|
+
exports.sciChartPieDestinations = [];
|
package/Core/Guard.d.ts
CHANGED
|
@@ -45,5 +45,11 @@ export declare class Guard {
|
|
|
45
45
|
* @param name
|
|
46
46
|
*/
|
|
47
47
|
static argumentIsRealNumber(d: number, name: string): void;
|
|
48
|
+
/**
|
|
49
|
+
* Asserts a numeric argument is a real number: not null (undefined), not NaN and not infinite
|
|
50
|
+
* @param d
|
|
51
|
+
* @param name
|
|
52
|
+
*/
|
|
53
|
+
static argumentIsRealInteger(d: number, name: string): void;
|
|
48
54
|
}
|
|
49
55
|
export {};
|
package/Core/Guard.js
CHANGED
|
@@ -76,6 +76,16 @@ var Guard = /** @class */ (function () {
|
|
|
76
76
|
throw new Error("Argument ".concat(name, " must be a real number (not infinite, not NAN)"));
|
|
77
77
|
}
|
|
78
78
|
};
|
|
79
|
+
/**
|
|
80
|
+
* Asserts a numeric argument is a real number: not null (undefined), not NaN and not infinite
|
|
81
|
+
* @param d
|
|
82
|
+
* @param name
|
|
83
|
+
*/
|
|
84
|
+
Guard.argumentIsRealInteger = function (d, name) {
|
|
85
|
+
if (!Number.isInteger(d) || !(0, isRealNumber_1.isRealNumber)(d)) {
|
|
86
|
+
throw new Error("Argument ".concat(name, " must be a real integer number (not infinite, not NAN)"));
|
|
87
|
+
}
|
|
88
|
+
};
|
|
79
89
|
return Guard;
|
|
80
90
|
}());
|
|
81
91
|
exports.Guard = Guard;
|
|
@@ -17,6 +17,29 @@ export declare class MouseManager {
|
|
|
17
17
|
* For subCharts - to track if the mousepointer is over the subChart, so we can fake Enter and Leave events
|
|
18
18
|
*/
|
|
19
19
|
isOver: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Max allowed interval between taps for them to be considered a double tap action.
|
|
22
|
+
* @remarks used by double tap polyfill
|
|
23
|
+
*/
|
|
24
|
+
maxTapDuration: number;
|
|
25
|
+
/**
|
|
26
|
+
* Toggles usage of double tap polyfill
|
|
27
|
+
*/
|
|
28
|
+
enableDoubleTapPolyfill: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Tracks if double tap action fired dbclick event
|
|
31
|
+
*/
|
|
32
|
+
protected supportsDoubleTap: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Tracks status of double tap event.
|
|
35
|
+
* Positive value means that polyfill was used to handle the event.
|
|
36
|
+
*/
|
|
37
|
+
protected doubleTapHandled: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Defines whether double tap polyfill should always be used
|
|
40
|
+
*/
|
|
41
|
+
forceDoubleTapPolyfill: boolean;
|
|
42
|
+
protected lastTapTime: number;
|
|
20
43
|
/**
|
|
21
44
|
* Creates an instance of the {@link MouseManager}
|
|
22
45
|
* @param target The target {@link SciChartSurfaceBase} that we are listening to events on
|
|
@@ -34,6 +34,19 @@ var MouseManager = /** @class */ (function () {
|
|
|
34
34
|
* For subCharts - to track if the mousepointer is over the subChart, so we can fake Enter and Leave events
|
|
35
35
|
*/
|
|
36
36
|
this.isOver = false;
|
|
37
|
+
/**
|
|
38
|
+
* Max allowed interval between taps for them to be considered a double tap action.
|
|
39
|
+
* @remarks used by double tap polyfill
|
|
40
|
+
*/
|
|
41
|
+
this.maxTapDuration = 500;
|
|
42
|
+
/**
|
|
43
|
+
* Toggles usage of double tap polyfill
|
|
44
|
+
*/
|
|
45
|
+
this.enableDoubleTapPolyfill = true;
|
|
46
|
+
/**
|
|
47
|
+
* Defines whether double tap polyfill should always be used
|
|
48
|
+
*/
|
|
49
|
+
this.forceDoubleTapPolyfill = false;
|
|
37
50
|
// We allow null target for testing purpose
|
|
38
51
|
this.sciChartSurface = target;
|
|
39
52
|
this.onPointerMove = this.onPointerMove.bind(this);
|
|
@@ -105,6 +118,34 @@ var MouseManager = /** @class */ (function () {
|
|
|
105
118
|
// call args.nativeEvent.preventDefault() in the chart modifier instead of calling event.preventDefault() here
|
|
106
119
|
var modifierEvent = ModifierMouseArgs_1.ModifierMouseArgs.fromPointerEvent(event);
|
|
107
120
|
this.modifierMouseDown(modifierEvent);
|
|
121
|
+
// workaround for handling double tap in case "dbclick" is not fired
|
|
122
|
+
// (usually happens if touch-action is restricting the event).
|
|
123
|
+
// If enabled, polyfill will be used on the first occurrence of double tap
|
|
124
|
+
// to check if the event is captured by browser and fired as `dbclick`.
|
|
125
|
+
// Then, if double tap is captured natively, the polyfill will not be used on subsequent onPointerDown calls
|
|
126
|
+
var shouldUsePolyfillForDoubleTap = this.forceDoubleTapPolyfill || (this.enableDoubleTapPolyfill && !this.supportsDoubleTap);
|
|
127
|
+
var isTouchEvent = event.pointerType === "touch" || event.pointerType === "pen";
|
|
128
|
+
if (shouldUsePolyfillForDoubleTap && isTouchEvent) {
|
|
129
|
+
var currentTime = new Date().getTime();
|
|
130
|
+
var wasTappedBefore = !!this.lastTapTime;
|
|
131
|
+
var satisfiesDoubleTapInterval = currentTime - this.lastTapTime < this.maxTapDuration;
|
|
132
|
+
var isSingleTouchEvent = event.isPrimary;
|
|
133
|
+
if (wasTappedBefore && isSingleTouchEvent && satisfiesDoubleTapInterval) {
|
|
134
|
+
this.lastTapTime = undefined;
|
|
135
|
+
// mark that double tap event was already handled
|
|
136
|
+
this.doubleTapHandled = true;
|
|
137
|
+
// execute double click behavior
|
|
138
|
+
var tapEvent = ModifierMouseArgs_1.ModifierMouseArgs.fromPointerEvent(event);
|
|
139
|
+
this.modifierDoubleClick(tapEvent);
|
|
140
|
+
}
|
|
141
|
+
else {
|
|
142
|
+
this.lastTapTime = currentTime;
|
|
143
|
+
this.doubleTapHandled = false;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
else {
|
|
147
|
+
this.doubleTapHandled = false;
|
|
148
|
+
}
|
|
108
149
|
};
|
|
109
150
|
/**
|
|
110
151
|
* Internal function called when 'pointerup' event is fired on the target element
|
|
@@ -119,6 +160,12 @@ var MouseManager = /** @class */ (function () {
|
|
|
119
160
|
* @param event The {@link PointerEvent}
|
|
120
161
|
*/
|
|
121
162
|
MouseManager.prototype.onDoubleClick = function (event) {
|
|
163
|
+
if (this.doubleTapHandled) {
|
|
164
|
+
// source of `dbclick` event was a double tap
|
|
165
|
+
this.supportsDoubleTap = true;
|
|
166
|
+
// since event already handled by polyfill
|
|
167
|
+
return;
|
|
168
|
+
}
|
|
122
169
|
var modifierEvent = ModifierMouseArgs_1.ModifierMouseArgs.fromMouseEvent(event);
|
|
123
170
|
this.modifierDoubleClick(modifierEvent);
|
|
124
171
|
};
|
package/Core/Telemetry.js
CHANGED
|
@@ -6,6 +6,7 @@ var cookie_1 = require("../utils/cookie");
|
|
|
6
6
|
var BuildStamp_1 = require("./BuildStamp");
|
|
7
7
|
var app_1 = require("../constants/app");
|
|
8
8
|
var guid_1 = require("../utils/guid");
|
|
9
|
+
var licensingClasses_1 = require("../types/licensingClasses");
|
|
9
10
|
var sessionTime = 60 * 60 * 1000;
|
|
10
11
|
var hasSent = false;
|
|
11
12
|
var setUserCookie = function (userId, sessionId, sessionStart) {
|
|
@@ -37,8 +38,8 @@ var shouldSendTelemetry = function () {
|
|
|
37
38
|
// Not if we've already done it
|
|
38
39
|
if (hasSent)
|
|
39
40
|
return false;
|
|
40
|
-
// not if the license is not dev
|
|
41
|
-
if (!licenseManager2dState_1.licenseManager2dState.getIsDev())
|
|
41
|
+
// not if the license is not community and not dev
|
|
42
|
+
if (licenseManager2dState_1.licenseManager2dState.getLicenseType() !== licensingClasses_1.LicenseType.Community && !licenseManager2dState_1.licenseManager2dState.getIsDev())
|
|
42
43
|
return false;
|
|
43
44
|
// not if telemetry not enabled
|
|
44
45
|
if (!licenseManager2dState_1.licenseManager2dState.getTelemetry())
|
|
@@ -92,10 +93,7 @@ var sendTelemetry = function () {
|
|
|
92
93
|
}
|
|
93
94
|
}
|
|
94
95
|
};
|
|
95
|
-
if (
|
|
96
|
-
window.location.hostname.includes(".codesandbox.io") ||
|
|
97
|
-
window.location.hostname.includes("fiddle.jshell.net") ||
|
|
98
|
-
window.location.hostname.includes("cdpn.io")) {
|
|
96
|
+
if (licenseManager2dState_1.licenseManager2dState.getLicenseType() === licensingClasses_1.LicenseType.Community) {
|
|
99
97
|
eventData.data.baseData.properties.url = window.location.href;
|
|
100
98
|
}
|
|
101
99
|
var endPointUrl = "https://dc.services.visualstudio.com/v2/track";
|