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
|
@@ -16,9 +16,8 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
16
16
|
})();
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
exports.OrbitModifier3D = void 0;
|
|
19
|
-
var Point_1 = require("../../Core/Point");
|
|
20
19
|
var ChartModifierType_1 = require("../../types/ChartModifierType");
|
|
21
|
-
var
|
|
20
|
+
var PinchZoomModifier3D_1 = require("./PinchZoomModifier3D");
|
|
22
21
|
/**
|
|
23
22
|
* @summary The {@link OrbitModifier3D} provides behavior to orbit around a target point on a 3D {@link SciChart3DSurface}
|
|
24
23
|
* within SciChart - High Performance {@link https://www.scichart.com/javascript-chart-features | JavaScript 3D Charts}
|
|
@@ -35,56 +34,93 @@ var ChartModifierBase3D_1 = require("./ChartModifierBase3D");
|
|
|
35
34
|
var OrbitModifier3D = /** @class */ (function (_super) {
|
|
36
35
|
__extends(OrbitModifier3D, _super);
|
|
37
36
|
function OrbitModifier3D(options) {
|
|
38
|
-
var _this =
|
|
37
|
+
var _this = this;
|
|
38
|
+
var _a;
|
|
39
|
+
_this = _super.call(this, options) || this;
|
|
39
40
|
/**
|
|
40
41
|
* @inheritDoc
|
|
41
42
|
*/
|
|
42
43
|
_this.type = ChartModifierType_1.EChart3DModifierType.Orbit;
|
|
44
|
+
/**
|
|
45
|
+
* Sets whether to enable pinch zoom behavior of {@link SciChartSurface} on touchscreen devices
|
|
46
|
+
*/
|
|
47
|
+
_this.enableZoom = false;
|
|
48
|
+
_this.enableZoom = (_a = options === null || options === void 0 ? void 0 : options.enableZoom) !== null && _a !== void 0 ? _a : _this.enableZoom;
|
|
43
49
|
return _this;
|
|
44
50
|
}
|
|
45
51
|
/**
|
|
46
52
|
* @inheritDoc
|
|
47
53
|
*/
|
|
48
54
|
OrbitModifier3D.prototype.modifierMouseDown = function (args) {
|
|
55
|
+
if (!this.isAttached) {
|
|
56
|
+
throw new Error("Should not call OrbitModifier3D.modifierMouseDown if not attached");
|
|
57
|
+
}
|
|
58
|
+
if (this.executeOn !== args.button) {
|
|
59
|
+
return;
|
|
60
|
+
}
|
|
49
61
|
_super.prototype.modifierMouseDown.call(this, args);
|
|
50
|
-
|
|
51
|
-
//
|
|
52
|
-
// }
|
|
53
|
-
var _a = args.mousePoint, x = _a.x, y = _a.y;
|
|
54
|
-
this.pointStart = new Point_1.Point(x, y);
|
|
55
|
-
this.isDragging = true;
|
|
56
|
-
args.handled = true;
|
|
62
|
+
this.activePointerEvents.set(args.pointerId, args);
|
|
63
|
+
// this.parentSurface.setZoomState(EZoomState.UserZooming);
|
|
57
64
|
};
|
|
58
65
|
/**
|
|
59
66
|
* @inheritDoc
|
|
60
67
|
*/
|
|
61
68
|
OrbitModifier3D.prototype.modifierMouseMove = function (args) {
|
|
62
|
-
|
|
63
|
-
if (!this.
|
|
69
|
+
this.updatePointerInfo(args);
|
|
70
|
+
if (!this.previousPoint) {
|
|
64
71
|
return;
|
|
65
72
|
}
|
|
73
|
+
// use pinch zoom if enabled and triggered
|
|
74
|
+
if (this.enableZoom && _super.prototype.getIsActionAllowed.call(this, args)) {
|
|
75
|
+
_super.prototype.performModifierAction.call(this, args);
|
|
76
|
+
}
|
|
77
|
+
// execute rotation if action was triggered
|
|
78
|
+
var isActionAllowed = this.getIsActionAllowed(args);
|
|
79
|
+
if (isActionAllowed) {
|
|
80
|
+
this.performModifierAction(args);
|
|
81
|
+
}
|
|
82
|
+
};
|
|
83
|
+
/**
|
|
84
|
+
* @inheritDoc
|
|
85
|
+
*/
|
|
86
|
+
OrbitModifier3D.prototype.modifierMouseUp = function (args) {
|
|
87
|
+
_super.prototype.modifierMouseUp.call(this, args);
|
|
88
|
+
// delegate drag and pan handling to the next active pointer in order of event occurrence
|
|
89
|
+
if (this.activePointerEvents.size > 0) {
|
|
90
|
+
var nextActivePointerEvent = this.activePointerEvents.values().next().value;
|
|
91
|
+
args.target.setPointerCapture(nextActivePointerEvent.pointerId);
|
|
92
|
+
}
|
|
93
|
+
};
|
|
94
|
+
OrbitModifier3D.prototype.toJSON = function () {
|
|
95
|
+
var json = _super.prototype.toJSON.call(this);
|
|
96
|
+
var options = {
|
|
97
|
+
enableZoom: this.enableZoom
|
|
98
|
+
};
|
|
99
|
+
Object.assign(json.options, options);
|
|
100
|
+
return json;
|
|
101
|
+
};
|
|
102
|
+
OrbitModifier3D.prototype.performModifierAction = function (args) {
|
|
66
103
|
var camera = this.parentSurface.camera;
|
|
67
104
|
if (!camera) {
|
|
68
105
|
return;
|
|
69
106
|
}
|
|
70
107
|
var degreesPerPixel = 0.2;
|
|
71
|
-
var
|
|
72
|
-
var
|
|
73
|
-
var
|
|
74
|
-
var
|
|
108
|
+
var currentPoint = args.mousePoint;
|
|
109
|
+
var xDelta = this.previousPoint.x - currentPoint.x;
|
|
110
|
+
var yDelta = this.previousPoint.y - currentPoint.y;
|
|
111
|
+
var deltaYaw = xDelta * degreesPerPixel;
|
|
112
|
+
var deltaPitch = yDelta * degreesPerPixel;
|
|
75
113
|
camera.orbitalYaw += deltaYaw;
|
|
76
114
|
camera.orbitalPitch -= deltaPitch;
|
|
77
|
-
this.pointStart = new Point_1.Point(x, y);
|
|
78
|
-
args.handled = true;
|
|
79
115
|
};
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
116
|
+
OrbitModifier3D.prototype.getIsActionAllowed = function (args) {
|
|
117
|
+
// allow drag and pan only for the first active pointer in order of event occurrence
|
|
118
|
+
var capturedPointerEvent = this.activePointerEvents.values().next().value;
|
|
119
|
+
if (capturedPointerEvent.pointerId !== args.pointerId || this.activePointerEvents.size > 1) {
|
|
120
|
+
return false;
|
|
121
|
+
}
|
|
122
|
+
return true;
|
|
87
123
|
};
|
|
88
124
|
return OrbitModifier3D;
|
|
89
|
-
}(
|
|
125
|
+
}(PinchZoomModifier3D_1.PinchZoomModifier3D));
|
|
90
126
|
exports.OrbitModifier3D = OrbitModifier3D;
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { ModifierMouseArgs } from "../../Charting/ChartModifiers/ModifierMouseArgs";
|
|
2
|
+
import { EChart3DModifierType } from "../../types/ChartModifierType";
|
|
3
|
+
import { ChartModifierBase3D, IChartModifierBase3DOptions } from "./ChartModifierBase3D";
|
|
4
|
+
import { Point } from "../../Core/Point";
|
|
5
|
+
/**
|
|
6
|
+
* Optional parameters passed to the constructor of {@link PinchZoomModifier3D} to configure it
|
|
7
|
+
*/
|
|
8
|
+
export interface IPinchZoomModifier3DOptions extends IChartModifierBase3DOptions {
|
|
9
|
+
/**
|
|
10
|
+
* Defines the sensitivity of zooming
|
|
11
|
+
*/
|
|
12
|
+
growFactor?: number;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @summary The {@link PinchZoomModifier3D} provides pinch zooming behavior on a 3D {@link SciChart3DSurface}
|
|
16
|
+
* within SciChart - High Performance {@link https://www.scichart.com/javascript-chart-features | JavaScript 3D Charts}
|
|
17
|
+
* @description
|
|
18
|
+
*
|
|
19
|
+
* To apply the {@link PinchZoomModifier3D} to a {@link SciChart3DSurface} and add pinch zoom behavior,
|
|
20
|
+
* use the following code:
|
|
21
|
+
*
|
|
22
|
+
* ```ts
|
|
23
|
+
* const sciChartS3Durface: SciChart3DSurface;
|
|
24
|
+
* sciChart3DSurface.chartModifiers.add(new PinchZoomModifier3D());
|
|
25
|
+
* ```
|
|
26
|
+
*
|
|
27
|
+
* @remarks The speed of zoom can be modified via the {@link PinchZoomModifier3D.mouseWheelSensitivity} property.
|
|
28
|
+
*/
|
|
29
|
+
export declare class PinchZoomModifier3D extends ChartModifierBase3D {
|
|
30
|
+
readonly type: EChart3DModifierType;
|
|
31
|
+
/**
|
|
32
|
+
* Defines the sensitivity of zooming
|
|
33
|
+
*/
|
|
34
|
+
growFactor: number;
|
|
35
|
+
/**
|
|
36
|
+
* touch points X coordinates difference
|
|
37
|
+
*/
|
|
38
|
+
protected previousHorizontalTouchPointsDistance: number;
|
|
39
|
+
/**
|
|
40
|
+
* touch points Y coordinates difference
|
|
41
|
+
*/
|
|
42
|
+
protected previousVerticalTouchPointsDistance: number;
|
|
43
|
+
/**
|
|
44
|
+
* Creates an instance of the {@link MouseWheelZoomModifier3D}
|
|
45
|
+
* @param options optional parameters of type {@link IMouseWheelZoomModifier3DOptions} used to configure the modifier
|
|
46
|
+
*/
|
|
47
|
+
constructor(options?: IPinchZoomModifier3DOptions);
|
|
48
|
+
/**
|
|
49
|
+
* @inheritDoc
|
|
50
|
+
*/
|
|
51
|
+
modifierMouseDown(args: ModifierMouseArgs): void;
|
|
52
|
+
/**
|
|
53
|
+
* @inheritDoc
|
|
54
|
+
*/
|
|
55
|
+
modifierMouseMove(args: ModifierMouseArgs): void;
|
|
56
|
+
/**
|
|
57
|
+
* @inheritDoc
|
|
58
|
+
*/
|
|
59
|
+
modifierMouseUp(args: ModifierMouseArgs): void;
|
|
60
|
+
/**
|
|
61
|
+
* @inheritDoc
|
|
62
|
+
*/
|
|
63
|
+
toJSON(): {
|
|
64
|
+
type: string;
|
|
65
|
+
options: Required<Omit<IChartModifierBase3DOptions, never>>;
|
|
66
|
+
};
|
|
67
|
+
/**
|
|
68
|
+
* Performs the zoom operation around the mouse point
|
|
69
|
+
* @param mousePoint The X,Y location of the mouse at the time of the zoom
|
|
70
|
+
* @param horizontalDistance horizontal distance between points
|
|
71
|
+
* @param verticalDistance vertical distance between points
|
|
72
|
+
*/
|
|
73
|
+
protected performZoom(mousePoint: Point, horizontalDistance: number, verticalDistance: number): void;
|
|
74
|
+
/**
|
|
75
|
+
* Handles pointer event becoming inactive
|
|
76
|
+
* @param args pointer event properties
|
|
77
|
+
*/
|
|
78
|
+
protected removeFromActiveTouchEvents(args: ModifierMouseArgs): void;
|
|
79
|
+
protected performModifierAction(args: ModifierMouseArgs): void;
|
|
80
|
+
protected getIsActionAllowed(args: ModifierMouseArgs): boolean;
|
|
81
|
+
}
|
|
@@ -0,0 +1,164 @@
|
|
|
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.PinchZoomModifier3D = void 0;
|
|
19
|
+
var ChartModifierType_1 = require("../../types/ChartModifierType");
|
|
20
|
+
var CameraController_1 = require("../CameraController");
|
|
21
|
+
var ChartModifierBase3D_1 = require("./ChartModifierBase3D");
|
|
22
|
+
/**
|
|
23
|
+
* @summary The {@link PinchZoomModifier3D} provides pinch zooming behavior on a 3D {@link SciChart3DSurface}
|
|
24
|
+
* within SciChart - High Performance {@link https://www.scichart.com/javascript-chart-features | JavaScript 3D Charts}
|
|
25
|
+
* @description
|
|
26
|
+
*
|
|
27
|
+
* To apply the {@link PinchZoomModifier3D} to a {@link SciChart3DSurface} and add pinch zoom behavior,
|
|
28
|
+
* use the following code:
|
|
29
|
+
*
|
|
30
|
+
* ```ts
|
|
31
|
+
* const sciChartS3Durface: SciChart3DSurface;
|
|
32
|
+
* sciChart3DSurface.chartModifiers.add(new PinchZoomModifier3D());
|
|
33
|
+
* ```
|
|
34
|
+
*
|
|
35
|
+
* @remarks The speed of zoom can be modified via the {@link PinchZoomModifier3D.mouseWheelSensitivity} property.
|
|
36
|
+
*/
|
|
37
|
+
var PinchZoomModifier3D = /** @class */ (function (_super) {
|
|
38
|
+
__extends(PinchZoomModifier3D, _super);
|
|
39
|
+
/**
|
|
40
|
+
* Creates an instance of the {@link MouseWheelZoomModifier3D}
|
|
41
|
+
* @param options optional parameters of type {@link IMouseWheelZoomModifier3DOptions} used to configure the modifier
|
|
42
|
+
*/
|
|
43
|
+
function PinchZoomModifier3D(options) {
|
|
44
|
+
var _this = this;
|
|
45
|
+
var _a;
|
|
46
|
+
_this = _super.call(this, options) || this;
|
|
47
|
+
/**
|
|
48
|
+
* Defines the sensitivity of zooming
|
|
49
|
+
*/
|
|
50
|
+
_this.growFactor = 0.5;
|
|
51
|
+
_this.type = ChartModifierType_1.EChart3DModifierType.PinchZoom;
|
|
52
|
+
_this.growFactor = (_a = options === null || options === void 0 ? void 0 : options.growFactor) !== null && _a !== void 0 ? _a : _this.growFactor;
|
|
53
|
+
return _this;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* @inheritDoc
|
|
57
|
+
*/
|
|
58
|
+
PinchZoomModifier3D.prototype.modifierMouseDown = function (args) {
|
|
59
|
+
_super.prototype.modifierMouseDown.call(this, args);
|
|
60
|
+
if (!this.isAttached) {
|
|
61
|
+
throw new Error("Should not call PinchZoomModifier3D.modifierMouseDown if not attached");
|
|
62
|
+
}
|
|
63
|
+
var isTouchEvent = args.pointerType === "touch" || args.pointerType === "pen";
|
|
64
|
+
if (isTouchEvent) {
|
|
65
|
+
this.activePointerEvents.set(args.pointerId, args);
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
/**
|
|
69
|
+
* @inheritDoc
|
|
70
|
+
*/
|
|
71
|
+
PinchZoomModifier3D.prototype.modifierMouseMove = function (args) {
|
|
72
|
+
var _a;
|
|
73
|
+
_super.prototype.modifierMouseMove.call(this, args);
|
|
74
|
+
var lastPoint = (_a = this.activePointerEvents.get(args.pointerId)) === null || _a === void 0 ? void 0 : _a.mousePoint;
|
|
75
|
+
// update saved pointer coordinates
|
|
76
|
+
if (this.activePointerEvents.has(args.pointerId)) {
|
|
77
|
+
this.activePointerEvents.set(args.pointerId, args);
|
|
78
|
+
}
|
|
79
|
+
var isActionAllowed = this.getIsActionAllowed(args);
|
|
80
|
+
if (isActionAllowed) {
|
|
81
|
+
// this.parentSurface.setZoomState(EZoomState.UserZooming);
|
|
82
|
+
this.performModifierAction(args);
|
|
83
|
+
}
|
|
84
|
+
};
|
|
85
|
+
/**
|
|
86
|
+
* @inheritDoc
|
|
87
|
+
*/
|
|
88
|
+
PinchZoomModifier3D.prototype.modifierMouseUp = function (args) {
|
|
89
|
+
_super.prototype.modifierMouseUp.call(this, args);
|
|
90
|
+
this.removeFromActiveTouchEvents(args);
|
|
91
|
+
};
|
|
92
|
+
/**
|
|
93
|
+
* @inheritDoc
|
|
94
|
+
*/
|
|
95
|
+
PinchZoomModifier3D.prototype.toJSON = function () {
|
|
96
|
+
var json = _super.prototype.toJSON.call(this);
|
|
97
|
+
var options = {
|
|
98
|
+
growFactor: this.growFactor
|
|
99
|
+
};
|
|
100
|
+
Object.assign(json.options, options);
|
|
101
|
+
return json;
|
|
102
|
+
};
|
|
103
|
+
/**
|
|
104
|
+
* Performs the zoom operation around the mouse point
|
|
105
|
+
* @param mousePoint The X,Y location of the mouse at the time of the zoom
|
|
106
|
+
* @param horizontalDistance horizontal distance between points
|
|
107
|
+
* @param verticalDistance vertical distance between points
|
|
108
|
+
*/
|
|
109
|
+
PinchZoomModifier3D.prototype.performZoom = function (mousePoint, horizontalDistance, verticalDistance) {
|
|
110
|
+
var scs = this.parentSurface;
|
|
111
|
+
if (!scs) {
|
|
112
|
+
return;
|
|
113
|
+
}
|
|
114
|
+
var camera = scs.camera;
|
|
115
|
+
if (!camera) {
|
|
116
|
+
return;
|
|
117
|
+
}
|
|
118
|
+
var currentTotalDistance = Math.sqrt(Math.pow(horizontalDistance, 2) + Math.pow(verticalDistance, 2));
|
|
119
|
+
var prevTotalDistance = Math.sqrt(Math.pow(this.previousHorizontalTouchPointsDistance, 2) + Math.pow(this.previousVerticalTouchPointsDistance, 2));
|
|
120
|
+
var radius = camera.radius;
|
|
121
|
+
var delta = (prevTotalDistance - currentTotalDistance) * this.growFactor;
|
|
122
|
+
var zoomFactor = (radius + delta) / radius;
|
|
123
|
+
if (camera.projectionMode === CameraController_1.ECameraProjectionMode.Perspective) {
|
|
124
|
+
camera.radius *= zoomFactor;
|
|
125
|
+
}
|
|
126
|
+
else {
|
|
127
|
+
camera.orthoWidth *= zoomFactor;
|
|
128
|
+
camera.orthoHeight *= zoomFactor;
|
|
129
|
+
}
|
|
130
|
+
};
|
|
131
|
+
/**
|
|
132
|
+
* Handles pointer event becoming inactive
|
|
133
|
+
* @param args pointer event properties
|
|
134
|
+
*/
|
|
135
|
+
PinchZoomModifier3D.prototype.removeFromActiveTouchEvents = function (args) {
|
|
136
|
+
// Remove this event from the target's cache
|
|
137
|
+
this.activePointerEvents.delete(args.pointerId);
|
|
138
|
+
// reset distance values
|
|
139
|
+
if (this.activePointerEvents.size < 2) {
|
|
140
|
+
this.previousHorizontalTouchPointsDistance = undefined;
|
|
141
|
+
this.previousVerticalTouchPointsDistance = undefined;
|
|
142
|
+
}
|
|
143
|
+
};
|
|
144
|
+
PinchZoomModifier3D.prototype.performModifierAction = function (args) {
|
|
145
|
+
var _a = Array.from(this.activePointerEvents.values()), firstTouchPoint = _a[0].mousePoint, secondTouchPoint = _a[1].mousePoint;
|
|
146
|
+
// Calculate projections of distance between the touch points
|
|
147
|
+
var currentHorizontalTouchPointsDistance = Math.abs(firstTouchPoint.x - secondTouchPoint.x);
|
|
148
|
+
var currentVerticalTouchPointsDistance = Math.abs(firstTouchPoint.y - secondTouchPoint.y);
|
|
149
|
+
if (this.previousHorizontalTouchPointsDistance !== undefined &&
|
|
150
|
+
this.previousVerticalTouchPointsDistance !== undefined) {
|
|
151
|
+
this.performZoom(args.mousePoint, currentHorizontalTouchPointsDistance, currentVerticalTouchPointsDistance);
|
|
152
|
+
}
|
|
153
|
+
// Cache the distance for the next move event
|
|
154
|
+
this.previousHorizontalTouchPointsDistance = currentHorizontalTouchPointsDistance;
|
|
155
|
+
this.previousVerticalTouchPointsDistance = currentVerticalTouchPointsDistance;
|
|
156
|
+
};
|
|
157
|
+
PinchZoomModifier3D.prototype.getIsActionAllowed = function (args) {
|
|
158
|
+
var isTouchEvent = args.pointerType === "touch" || args.pointerType === "pen";
|
|
159
|
+
// check for pinch gestures if there are multiple active touches
|
|
160
|
+
return isTouchEvent && this.activePointerEvents.size >= 2;
|
|
161
|
+
};
|
|
162
|
+
return PinchZoomModifier3D;
|
|
163
|
+
}(ChartModifierBase3D_1.ChartModifierBase3D));
|
|
164
|
+
exports.PinchZoomModifier3D = PinchZoomModifier3D;
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { ModifierMouseArgs } from "../../Charting/ChartModifiers/ModifierMouseArgs";
|
|
2
|
+
import { EChart3DModifierType } from "../../types/ChartModifierType";
|
|
3
|
+
import { TooltipSvgAnnotation3D, TTooltip3DDataTemplate, TTooltip3DSvgTemplate } from "../Visuals/Annotations/TooltipSvgAnnotation3D";
|
|
4
|
+
import { IRenderableSeries3D } from "../Visuals/RenderableSeries/BaseRenderableSeries3D";
|
|
5
|
+
import { ChartModifierBase3D, IChartModifierBase3DOptions } from "./ChartModifierBase3D";
|
|
6
|
+
/**
|
|
7
|
+
* Optional parameters passed to the constructor of {@link TooltipModifier3D} to configure it
|
|
8
|
+
*/
|
|
9
|
+
export interface ITooltipModifier3DOptions extends IChartModifierBase3DOptions {
|
|
10
|
+
crosshairStroke?: string;
|
|
11
|
+
crosshairStrokeThickness?: number;
|
|
12
|
+
isCrosshairVisible?: boolean;
|
|
13
|
+
showTooltip?: boolean;
|
|
14
|
+
tooltipTitle?: string;
|
|
15
|
+
tooltipSvgTemplate?: TTooltip3DSvgTemplate;
|
|
16
|
+
tooltipContainerBackground?: string;
|
|
17
|
+
tooltipTextStroke?: string;
|
|
18
|
+
tooltipLegendTemplate?: TTooltip3DSvgTemplate;
|
|
19
|
+
tooltipLegendOffsetX?: number;
|
|
20
|
+
tooltipLegendOffsetY?: number;
|
|
21
|
+
placementDivId?: string;
|
|
22
|
+
tooltipDataTemplate?: TTooltip3DDataTemplate;
|
|
23
|
+
}
|
|
24
|
+
export declare class TooltipModifier3D extends ChartModifierBase3D {
|
|
25
|
+
/**
|
|
26
|
+
* @inheritDoc
|
|
27
|
+
*/
|
|
28
|
+
readonly type = EChart3DModifierType.Tooltip;
|
|
29
|
+
/**
|
|
30
|
+
* Gets or sets whether we should display the tooltip. Default is true
|
|
31
|
+
*/
|
|
32
|
+
showTooltip: boolean;
|
|
33
|
+
tooltipTitle?: string;
|
|
34
|
+
protected includedSeriesMap: Map<IRenderableSeries3D, boolean>;
|
|
35
|
+
protected tooltipAnnotation: TooltipSvgAnnotation3D;
|
|
36
|
+
private crosshairEntity;
|
|
37
|
+
private crosshairStrokeProperty;
|
|
38
|
+
private crosshairStrokeThicknessProperty;
|
|
39
|
+
private isCrosshairVisibleProperty;
|
|
40
|
+
private tooltipSvgTemplateProperty?;
|
|
41
|
+
private tooltipLegendTemplateProperty?;
|
|
42
|
+
private tooltipContainerBackgroundProperty?;
|
|
43
|
+
private tooltipTextStrokeProperty?;
|
|
44
|
+
private tooltipLegendOffsetXProperty?;
|
|
45
|
+
private tooltipLegendOffsetYProperty?;
|
|
46
|
+
private placementDivIdProperty?;
|
|
47
|
+
private tooltipDataTemplateProperty?;
|
|
48
|
+
constructor(options?: ITooltipModifier3DOptions);
|
|
49
|
+
includeSeries(series: IRenderableSeries3D, isIncluded: boolean): void;
|
|
50
|
+
getIncludedSeries(): IRenderableSeries3D[];
|
|
51
|
+
get isCrosshairVisible(): boolean;
|
|
52
|
+
set isCrosshairVisible(isVisible: boolean);
|
|
53
|
+
get crosshairStroke(): string;
|
|
54
|
+
set crosshairStroke(stroke: string);
|
|
55
|
+
get crosshairStrokeThickness(): number;
|
|
56
|
+
set crosshairStrokeThickness(strokeThickness: number);
|
|
57
|
+
get tooltipSvgTemplate(): TTooltip3DSvgTemplate;
|
|
58
|
+
set tooltipSvgTemplate(value: TTooltip3DSvgTemplate);
|
|
59
|
+
get tooltipLegendTemplate(): TTooltip3DSvgTemplate;
|
|
60
|
+
set tooltipLegendTemplate(value: TTooltip3DSvgTemplate);
|
|
61
|
+
get tooltipDataTemplate(): TTooltip3DDataTemplate;
|
|
62
|
+
set tooltipDataTemplate(value: TTooltip3DDataTemplate);
|
|
63
|
+
get tooltipContainerBackground(): string;
|
|
64
|
+
set tooltipContainerBackground(value: string);
|
|
65
|
+
get tooltipLegendOffsetX(): number;
|
|
66
|
+
set tooltipLegendOffsetX(value: number);
|
|
67
|
+
get tooltipLegendOffsetY(): number;
|
|
68
|
+
set tooltipLegendOffsetY(value: number);
|
|
69
|
+
get tooltipTextStroke(): string;
|
|
70
|
+
set tooltipTextStroke(value: string);
|
|
71
|
+
/**
|
|
72
|
+
* Gets or sets the parent div element reference or id for the Tooltip
|
|
73
|
+
*/
|
|
74
|
+
get placementDivId(): string;
|
|
75
|
+
/**
|
|
76
|
+
* Gets or sets the parent div element reference or id for the Tooltip
|
|
77
|
+
*/
|
|
78
|
+
set placementDivId(value: string);
|
|
79
|
+
/** @inheritDoc */
|
|
80
|
+
onAttach(): void;
|
|
81
|
+
/** @inheritDoc */
|
|
82
|
+
onDetach(): void;
|
|
83
|
+
/** @inheritDoc */
|
|
84
|
+
modifierMouseMove(args: ModifierMouseArgs): void;
|
|
85
|
+
}
|
|
86
|
+
/** Relocate the tooltip so that it is always within the seriesViewRect */
|
|
87
|
+
export declare const adjustTooltipPosition3D: (width: number, height: number, svgAnnotation: TooltipSvgAnnotation3D) => void;
|