scichart 3.1.348 → 3.2.434
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/buildSurface.d.ts +2 -2
- package/Builder/chartBuilder.d.ts +4 -4
- package/Charting/ChartModifiers/ChartModifierBase.d.ts +19 -5
- package/Charting/ChartModifiers/ChartModifierBase.js +64 -7
- package/Charting/ChartModifiers/CursorModifier.d.ts +9 -9
- package/Charting/ChartModifiers/CursorModifier.js +13 -1
- package/Charting/ChartModifiers/DataPointSelectionModifier.d.ts +1 -0
- package/Charting/ChartModifiers/DataPointSelectionModifier.js +6 -1
- package/Charting/ChartModifiers/LegendModifier.d.ts +10 -25
- package/Charting/ChartModifiers/LegendModifier.js +10 -20
- package/Charting/ChartModifiers/MouseWheelZoomModifier.js +20 -11
- package/Charting/ChartModifiers/OverviewRangeSelectionModifier.d.ts +5 -5
- 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 +4 -7
- package/Charting/ChartModifiers/RubberBandXyZoomModifier.js +6 -8
- package/Charting/ChartModifiers/SeriesSelectionModifier.js +39 -29
- package/Charting/ChartModifiers/XAxisDragModifier.d.ts +1 -1
- package/Charting/ChartModifiers/XAxisDragModifier.js +3 -3
- package/Charting/ChartModifiers/YAxisDragModifier.d.ts +2 -4
- package/Charting/ChartModifiers/YAxisDragModifier.js +7 -8
- 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 +45 -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/Filters/HlcFilterBase.d.ts +6 -2
- package/Charting/Model/Filters/HlcFilterBase.js +17 -1
- package/Charting/Model/Filters/IFilterBase.d.ts +24 -0
- package/Charting/Model/Filters/IFilterBase.js +2 -0
- package/Charting/Model/Filters/OhlcFilterBase.d.ts +6 -2
- package/Charting/Model/Filters/OhlcFilterBase.js +17 -1
- package/Charting/Model/Filters/XyFilterBase.d.ts +6 -5
- package/Charting/Model/Filters/XyFilterBase.js +17 -1
- package/Charting/Model/Filters/XyyFilterBase.d.ts +6 -2
- package/Charting/Model/Filters/XyyFilterBase.js +17 -1
- package/Charting/Model/Filters/XyzFilterBase.d.ts +6 -2
- package/Charting/Model/Filters/XyzFilterBase.js +17 -1
- 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 +50 -26
- 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 +4 -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/NativeTextAnnotation.js +4 -0
- 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 +23 -8
- package/Charting/Visuals/Axis/AxisBase2D.js +46 -10
- package/Charting/Visuals/Axis/AxisCore.d.ts +6 -3
- 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/ManualLegend.d.ts +56 -0
- package/Charting/Visuals/Legend/ManualLegend.js +138 -0
- package/Charting/Visuals/Legend/SciChartLegend.js +4 -3
- package/Charting/Visuals/Legend/SciChartLegendBase.d.ts +65 -4
- package/Charting/Visuals/Legend/SciChartLegendBase.js +111 -23
- package/Charting/Visuals/Legend/SciChartPieLegend.js +1 -1
- package/Charting/Visuals/PointMarkers/BasePointMarker.d.ts +13 -1
- package/Charting/Visuals/PointMarkers/BasePointMarker.js +77 -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 +3 -2
- package/Charting/Visuals/RenderableSeries/BaseRenderableSeries.js +101 -69
- package/Charting/Visuals/RenderableSeries/BaseStackedCollection.js +18 -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 +5 -4
- package/Charting/Visuals/RenderableSeries/DrawingProviders/BaseSeriesDrawingProvider.js +70 -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/HoveredChangedArgs.d.ts +6 -1
- package/Charting/Visuals/RenderableSeries/HoveredChangedArgs.js +2 -1
- package/Charting/Visuals/RenderableSeries/IRenderableSeries.d.ts +1 -1
- package/Charting/Visuals/RenderableSeries/SelectionChangedArgs.d.ts +6 -1
- package/Charting/Visuals/RenderableSeries/SelectionChangedArgs.js +2 -1
- package/Charting/Visuals/RenderableSeries/ShaderEffect.d.ts +3 -2
- package/Charting/Visuals/RenderableSeries/ShaderEffect.js +29 -9
- package/Charting/Visuals/RenderableSeries/SplineBandRenderableSeries.js +50 -1
- package/Charting/Visuals/RenderableSeries/SplineLineRenderableSeries.js +13 -1
- package/Charting/Visuals/RenderableSeries/SplineMountainRenderableSeries.js +13 -1
- 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 +7 -1
- package/Charting/Visuals/RubberBandSvgRect/RubberBandSvgRect.js +38 -12
- 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 +16 -3
- package/Charting/Visuals/SciChartPieSurface/SciChartPieSurface.js +125 -60
- package/Charting/Visuals/SciChartSurface.d.ts +4 -41
- package/Charting/Visuals/SciChartSurface.js +52 -66
- package/Charting/Visuals/SciChartSurfaceBase.d.ts +117 -13
- package/Charting/Visuals/SciChartSurfaceBase.js +177 -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 +7 -2
- package/Charting/Visuals/createMaster.js +140 -45
- package/Charting/Visuals/createSingle.d.ts +0 -2
- package/Charting/Visuals/createSingle.js +46 -11
- 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/ResetCamera3DModifier.d.ts +1 -1
- package/Charting3D/ChartModifiers/ResetCamera3DModifier.js +1 -2
- package/Charting3D/ChartModifiers/TooltipModifier3D.d.ts +122 -0
- package/Charting3D/ChartModifiers/TooltipModifier3D.js +427 -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/BaseGridDataSeries3D.d.ts +1 -1
- package/Charting3D/Model/DataSeries/BaseGridDataSeries3D.js +2 -2
- package/Charting3D/Model/DataSeries/IPointMetadata3D.d.ts +7 -2
- 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 +29 -3
- package/Charting3D/Visuals/Axis/AxisBase3D.js +46 -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/Axis/NumericAxis3D.d.ts +3 -2
- package/Charting3D/Visuals/Axis/NumericAxis3D.js +7 -3
- 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 +190 -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 +23 -2
- package/Charting3D/Visuals/Primitives/SurfaceMeshSceneEntity.d.ts +3 -0
- package/Charting3D/Visuals/Primitives/SurfaceMeshSceneEntity.js +17 -1
- package/Charting3D/Visuals/RenderableSeries/BaseRenderableSeries3D.d.ts +21 -1
- package/Charting3D/Visuals/RenderableSeries/BaseRenderableSeries3D.js +78 -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 +1 -0
- package/Charting3D/Visuals/SciChart3DRenderer.js +26 -0
- package/Charting3D/Visuals/SciChart3DSurface.d.ts +55 -7
- package/Charting3D/Visuals/SciChart3DSurface.js +136 -13
- 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 +81 -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 +34 -0
- package/Core/DeletableEntity.js +138 -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 +53 -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 +42 -2
- package/index.dev.js +68876 -0
- package/index.js +81 -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 +92 -0
- package/utils/MemoryUsageHelper.js +221 -0
- package/utils/array.d.ts +8 -0
- package/utils/array.js +58 -1
- package/utils/colorUtil.d.ts +7 -0
- package/utils/colorUtil.js +13 -1
- package/utils/logger.d.ts +2 -0
- package/utils/logger.js +11 -0
- package/utils/parseColor.js +19 -4
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { ISciChartSurfaceBase } from "../SciChartSurfaceBase";
|
|
2
|
+
import { ELegendType, ILegendOptionsBase, SciChartLegendBase, TLegendItem } from "./SciChartLegendBase";
|
|
3
|
+
export interface IManualLegendOptions extends ILegendOptionsBase {
|
|
4
|
+
/**
|
|
5
|
+
* Sets whether the legend has visibility checkboxes in it or not
|
|
6
|
+
*/
|
|
7
|
+
showCheckboxes?: boolean;
|
|
8
|
+
/**
|
|
9
|
+
* Sets whether Series markers are visible or not
|
|
10
|
+
*/
|
|
11
|
+
showSeriesMarkers?: boolean;
|
|
12
|
+
items?: TLegendItem[];
|
|
13
|
+
/**
|
|
14
|
+
* Callback when a legend item checkbox is checked or unchecked
|
|
15
|
+
* @param item
|
|
16
|
+
* @param isChecked
|
|
17
|
+
*/
|
|
18
|
+
isCheckedChangedCallback?: (item: TLegendItem, isChecked: boolean) => void;
|
|
19
|
+
}
|
|
20
|
+
export declare class ManualLegend extends SciChartLegendBase {
|
|
21
|
+
type: ELegendType;
|
|
22
|
+
legendItemCheckedChangedCallback: (item: TLegendItem, isChecked: boolean) => void;
|
|
23
|
+
private itemsProperty;
|
|
24
|
+
private showCheckboxesProperty;
|
|
25
|
+
private showSeriesMarkersProperty;
|
|
26
|
+
constructor(options?: IManualLegendOptions, sciChartSurface?: ISciChartSurfaceBase);
|
|
27
|
+
/**
|
|
28
|
+
* Gets or sets whether series visibility checkboxes should be shown
|
|
29
|
+
*/
|
|
30
|
+
get showCheckboxes(): boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Gets or sets whether series visibility checkboxes should be shown
|
|
33
|
+
*/
|
|
34
|
+
set showCheckboxes(value: boolean);
|
|
35
|
+
/**
|
|
36
|
+
* Gets or sets whether series markers should be shown
|
|
37
|
+
*/
|
|
38
|
+
get showSeriesMarkers(): boolean;
|
|
39
|
+
/**
|
|
40
|
+
* Gets or sets whether series markers should be shown
|
|
41
|
+
*/
|
|
42
|
+
set showSeriesMarkers(value: boolean);
|
|
43
|
+
/**
|
|
44
|
+
* Gets or sets the items to be displayed in the legend
|
|
45
|
+
*/
|
|
46
|
+
get items(): TLegendItem[];
|
|
47
|
+
/**
|
|
48
|
+
* Gets or sets the items to be displayed in the legend
|
|
49
|
+
*/
|
|
50
|
+
set items(value: TLegendItem[]);
|
|
51
|
+
applyTheme(): void;
|
|
52
|
+
protected getInnerHTML(): string;
|
|
53
|
+
protected addEventListeners(): void;
|
|
54
|
+
protected addEventListenerToItem(item: TLegendItem): void;
|
|
55
|
+
protected removeEventListeners(): void;
|
|
56
|
+
}
|
|
@@ -0,0 +1,138 @@
|
|
|
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.ManualLegend = void 0;
|
|
19
|
+
var Thickness_1 = require("../../../Core/Thickness");
|
|
20
|
+
var SciChartLegendBase_1 = require("./SciChartLegendBase");
|
|
21
|
+
var ManualLegend = /** @class */ (function (_super) {
|
|
22
|
+
__extends(ManualLegend, _super);
|
|
23
|
+
function ManualLegend(options, sciChartSurface) {
|
|
24
|
+
var _this = this;
|
|
25
|
+
var _a, _b, _c;
|
|
26
|
+
_this = _super.call(this, options) || this;
|
|
27
|
+
_this.type = SciChartLegendBase_1.ELegendType.ManualLegend;
|
|
28
|
+
_this.itemsProperty = [];
|
|
29
|
+
_this.showCheckboxesProperty = false;
|
|
30
|
+
_this.showSeriesMarkersProperty = true;
|
|
31
|
+
_this.showCheckboxesProperty = (_a = options === null || options === void 0 ? void 0 : options.showCheckboxes) !== null && _a !== void 0 ? _a : _this.showCheckboxes;
|
|
32
|
+
_this.showSeriesMarkersProperty = (_b = options === null || options === void 0 ? void 0 : options.showSeriesMarkers) !== null && _b !== void 0 ? _b : _this.showSeriesMarkers;
|
|
33
|
+
_this.itemsProperty = (_c = options === null || options === void 0 ? void 0 : options.items) !== null && _c !== void 0 ? _c : _this.items;
|
|
34
|
+
_this.legendItemCheckedChangedCallback = options === null || options === void 0 ? void 0 : options.isCheckedChangedCallback;
|
|
35
|
+
if (sciChartSurface) {
|
|
36
|
+
_this.attachTo(sciChartSurface);
|
|
37
|
+
}
|
|
38
|
+
return _this;
|
|
39
|
+
}
|
|
40
|
+
Object.defineProperty(ManualLegend.prototype, "showCheckboxes", {
|
|
41
|
+
/**
|
|
42
|
+
* Gets or sets whether series visibility checkboxes should be shown
|
|
43
|
+
*/
|
|
44
|
+
get: function () {
|
|
45
|
+
return this.showCheckboxesProperty;
|
|
46
|
+
},
|
|
47
|
+
/**
|
|
48
|
+
* Gets or sets whether series visibility checkboxes should be shown
|
|
49
|
+
*/
|
|
50
|
+
set: function (value) {
|
|
51
|
+
this.showCheckboxesProperty = value;
|
|
52
|
+
this.notifyPropertyChanged();
|
|
53
|
+
},
|
|
54
|
+
enumerable: false,
|
|
55
|
+
configurable: true
|
|
56
|
+
});
|
|
57
|
+
Object.defineProperty(ManualLegend.prototype, "showSeriesMarkers", {
|
|
58
|
+
/**
|
|
59
|
+
* Gets or sets whether series markers should be shown
|
|
60
|
+
*/
|
|
61
|
+
get: function () {
|
|
62
|
+
return this.showSeriesMarkersProperty;
|
|
63
|
+
},
|
|
64
|
+
/**
|
|
65
|
+
* Gets or sets whether series markers should be shown
|
|
66
|
+
*/
|
|
67
|
+
set: function (value) {
|
|
68
|
+
this.showSeriesMarkersProperty = value;
|
|
69
|
+
this.notifyPropertyChanged();
|
|
70
|
+
},
|
|
71
|
+
enumerable: false,
|
|
72
|
+
configurable: true
|
|
73
|
+
});
|
|
74
|
+
Object.defineProperty(ManualLegend.prototype, "items", {
|
|
75
|
+
/**
|
|
76
|
+
* Gets or sets the items to be displayed in the legend
|
|
77
|
+
*/
|
|
78
|
+
get: function () {
|
|
79
|
+
return this.itemsProperty;
|
|
80
|
+
},
|
|
81
|
+
/**
|
|
82
|
+
* Gets or sets the items to be displayed in the legend
|
|
83
|
+
*/
|
|
84
|
+
set: function (value) {
|
|
85
|
+
this.itemsProperty = value;
|
|
86
|
+
this.notifyPropertyChanged();
|
|
87
|
+
},
|
|
88
|
+
enumerable: false,
|
|
89
|
+
configurable: true
|
|
90
|
+
});
|
|
91
|
+
ManualLegend.prototype.applyTheme = function () { };
|
|
92
|
+
ManualLegend.prototype.getInnerHTML = function () {
|
|
93
|
+
var _a, _b;
|
|
94
|
+
var backgroundColor = (_a = this.backgroundColor) !== null && _a !== void 0 ? _a : this.parentSurfaceProperty.themeProvider.legendBackgroundBrush;
|
|
95
|
+
var color = (_b = this.textColor) !== null && _b !== void 0 ? _b : this.parentSurfaceProperty.themeProvider.labelForegroundBrush;
|
|
96
|
+
var _c = this.parentSurfaceProperty.getSeriesViewRectPadding(false), left = _c.left, top = _c.top, right = _c.right, bottom = _c.bottom;
|
|
97
|
+
var margin = this.isExternal()
|
|
98
|
+
? new Thickness_1.Thickness(this.margin, this.margin, this.margin, this.margin)
|
|
99
|
+
: new Thickness_1.Thickness(top + this.margin, right + this.margin, bottom + this.margin, left + this.margin);
|
|
100
|
+
return this.getLegendHTML(this.placement, color, backgroundColor, margin, this.orientation, this.showCheckboxes, this.showSeriesMarkers, this.items);
|
|
101
|
+
};
|
|
102
|
+
ManualLegend.prototype.addEventListeners = function () {
|
|
103
|
+
var _this = this;
|
|
104
|
+
this.items.forEach(function (item) { return _this.addEventListenerToItem(item); });
|
|
105
|
+
};
|
|
106
|
+
ManualLegend.prototype.addEventListenerToItem = function (item) {
|
|
107
|
+
var _this = this;
|
|
108
|
+
var el = this.parentDiv.querySelector("[id='".concat(item.id, "']"));
|
|
109
|
+
if (el) {
|
|
110
|
+
var onChangeEventListener_1 = function (e) {
|
|
111
|
+
item.checked = el.checked;
|
|
112
|
+
if (_this.legendItemCheckedChangedCallback) {
|
|
113
|
+
_this.legendItemCheckedChangedCallback(item, item.checked);
|
|
114
|
+
}
|
|
115
|
+
};
|
|
116
|
+
el.addEventListener("change", onChangeEventListener_1);
|
|
117
|
+
var eventSubscriptionItem = {
|
|
118
|
+
element: el,
|
|
119
|
+
eventType: "change",
|
|
120
|
+
eventListener: onChangeEventListener_1,
|
|
121
|
+
delete: function () { return el.removeEventListener("change", onChangeEventListener_1); }
|
|
122
|
+
};
|
|
123
|
+
var eventListenersForRenderableSeries = this.eventListenersCollection.get(item.id);
|
|
124
|
+
if (eventListenersForRenderableSeries) {
|
|
125
|
+
eventListenersForRenderableSeries.push(eventSubscriptionItem);
|
|
126
|
+
}
|
|
127
|
+
else {
|
|
128
|
+
this.eventListenersCollection.set(item.id, [eventSubscriptionItem]);
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
};
|
|
132
|
+
ManualLegend.prototype.removeEventListeners = function () {
|
|
133
|
+
var _this = this;
|
|
134
|
+
this.items.forEach(function (item) { return _this.removeEventListenerFromSeries(item.id); });
|
|
135
|
+
};
|
|
136
|
+
return ManualLegend;
|
|
137
|
+
}(SciChartLegendBase_1.SciChartLegendBase));
|
|
138
|
+
exports.ManualLegend = ManualLegend;
|
|
@@ -118,8 +118,9 @@ var SciChartLegend = /** @class */ (function (_super) {
|
|
|
118
118
|
};
|
|
119
119
|
/** @inheritDoc */
|
|
120
120
|
SciChartLegend.prototype.getInnerHTML = function () {
|
|
121
|
-
var
|
|
122
|
-
var
|
|
121
|
+
var _a, _b;
|
|
122
|
+
var backgroundColor = (_a = this.backgroundColor) !== null && _a !== void 0 ? _a : this.parentSurfaceProperty.themeProvider.legendBackgroundBrush;
|
|
123
|
+
var color = (_b = this.textColor) !== null && _b !== void 0 ? _b : this.parentSurfaceProperty.themeProvider.labelForegroundBrush;
|
|
123
124
|
var legendItems = this.renderableSeriesArray.map(function (rs, index) {
|
|
124
125
|
var _a;
|
|
125
126
|
return ({
|
|
@@ -130,7 +131,7 @@ var SciChartLegend = /** @class */ (function (_super) {
|
|
|
130
131
|
gradient: undefined
|
|
131
132
|
});
|
|
132
133
|
});
|
|
133
|
-
var
|
|
134
|
+
var _c = this.parentSurfaceProperty.getSeriesViewRectPadding(false), left = _c.left, top = _c.top, right = _c.right, bottom = _c.bottom;
|
|
134
135
|
var margin = this.isExternal()
|
|
135
136
|
? new Thickness_1.Thickness(this.margin, this.margin, this.margin, this.margin)
|
|
136
137
|
: new Thickness_1.Thickness(top + this.margin, right + this.margin, bottom + this.margin, left + this.margin);
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { DeletableEntity } from "../../../Core/DeletableEntity";
|
|
1
2
|
import { GradientParams } from "../../../Core/GradientParams";
|
|
2
3
|
import { IDeletable } from "../../../Core/IDeletable";
|
|
3
4
|
import { Rect } from "../../../Core/Rect";
|
|
@@ -9,6 +10,7 @@ export declare type TLegendItem = {
|
|
|
9
10
|
color: string;
|
|
10
11
|
checked: boolean;
|
|
11
12
|
gradient?: GradientParams;
|
|
13
|
+
showMarker?: boolean;
|
|
12
14
|
};
|
|
13
15
|
export interface IEventSubscriptionItem extends IDeletable {
|
|
14
16
|
element: HTMLElement;
|
|
@@ -36,17 +38,51 @@ export declare enum ELegendPlacement {
|
|
|
36
38
|
*/
|
|
37
39
|
export declare enum ELegendType {
|
|
38
40
|
SciChartLegend = "SciChartLegend",
|
|
41
|
+
ManualLegend = "ManualLegend",
|
|
39
42
|
SciChartPieLegend = "SciChartPieLegend"
|
|
40
43
|
}
|
|
44
|
+
export interface ILegendOptionsBase {
|
|
45
|
+
/**
|
|
46
|
+
* Sets the initial orientation of the legend. See {@link ELegendOrientation} for a list of values
|
|
47
|
+
*/
|
|
48
|
+
orientation?: ELegendOrientation;
|
|
49
|
+
/**
|
|
50
|
+
* Sets whether the legend is initially visible or not
|
|
51
|
+
*/
|
|
52
|
+
showLegend?: boolean;
|
|
53
|
+
/**
|
|
54
|
+
* Sets whether the legend has visibility checkboxes in it or not
|
|
55
|
+
*/
|
|
56
|
+
showCheckboxes?: boolean;
|
|
57
|
+
/**
|
|
58
|
+
* Sets whether Series markers are visible or not
|
|
59
|
+
*/
|
|
60
|
+
showSeriesMarkers?: boolean;
|
|
61
|
+
/**
|
|
62
|
+
* Sets the initial legend placement in the parent chart surface. See {@link ELegendPlacement} for a list of values
|
|
63
|
+
*/
|
|
64
|
+
placement?: ELegendPlacement;
|
|
65
|
+
/**
|
|
66
|
+
* Sets the margin for the legend control
|
|
67
|
+
*/
|
|
68
|
+
margin?: number;
|
|
69
|
+
/**
|
|
70
|
+
* The parent div element Id or reference, the Legend will be appended to this element
|
|
71
|
+
*/
|
|
72
|
+
placementDivId?: string | HTMLDivElement;
|
|
73
|
+
/** Sets the legend background color. Defaults to theme.legendBackgroundBrush */
|
|
74
|
+
backgroundColor?: string;
|
|
75
|
+
/** Sets the legend text color. Defaults to theme.labelForegroundBrush */
|
|
76
|
+
textColor?: string;
|
|
77
|
+
}
|
|
41
78
|
/**
|
|
42
79
|
* Base class for legends in the SciChart library
|
|
43
80
|
*/
|
|
44
|
-
export declare abstract class SciChartLegendBase implements IDeletable {
|
|
81
|
+
export declare abstract class SciChartLegendBase extends DeletableEntity implements IDeletable {
|
|
45
82
|
abstract readonly type: ELegendType;
|
|
46
83
|
protected rootDiv: HTMLDivElement;
|
|
47
84
|
protected parentDiv: HTMLDivElement;
|
|
48
85
|
protected div: HTMLDivElement;
|
|
49
|
-
protected seriesViewRect: Rect;
|
|
50
86
|
protected invalidateParentSurface: () => void;
|
|
51
87
|
protected orientationProperty: ELegendOrientation;
|
|
52
88
|
protected showLegendProperty: boolean;
|
|
@@ -55,7 +91,10 @@ export declare abstract class SciChartLegendBase implements IDeletable {
|
|
|
55
91
|
protected isDirty: boolean;
|
|
56
92
|
protected parentSurfaceProperty: ISciChartSurfaceBase;
|
|
57
93
|
protected placementDivIdProperty: string | HTMLDivElement;
|
|
94
|
+
protected backgroundColorProperty: string;
|
|
95
|
+
protected textColorProperty: string;
|
|
58
96
|
protected eventListenersCollection: Map<string, IEventSubscriptionItem[]>;
|
|
97
|
+
constructor(options?: ILegendOptionsBase);
|
|
59
98
|
/** @inheritDoc */
|
|
60
99
|
abstract applyTheme(): void;
|
|
61
100
|
setInvalidateParentSurface(value: () => void): void;
|
|
@@ -65,14 +104,19 @@ export declare abstract class SciChartLegendBase implements IDeletable {
|
|
|
65
104
|
*/
|
|
66
105
|
setRootDiv(rootDivProperty: HTMLDivElement): void;
|
|
67
106
|
/**
|
|
68
|
-
*
|
|
69
|
-
* @param seriesViewRect
|
|
107
|
+
* @deprecated
|
|
70
108
|
*/
|
|
71
109
|
setSeriesViewRect(seriesViewRect: Rect): void;
|
|
72
110
|
/**
|
|
73
111
|
* Sets the parent {@link ISciChartSurfaceBase}
|
|
74
112
|
*/
|
|
75
113
|
setParentSurface(scs: ISciChartSurfaceBase): void;
|
|
114
|
+
/**
|
|
115
|
+
* Attach this legend to a SciChartSurfaceBase
|
|
116
|
+
* @param sciChartSurface
|
|
117
|
+
*/
|
|
118
|
+
attachTo(sciChartSurface: ISciChartSurfaceBase): void;
|
|
119
|
+
detach(): void;
|
|
76
120
|
/**
|
|
77
121
|
* Update the legend
|
|
78
122
|
*/
|
|
@@ -121,6 +165,23 @@ export declare abstract class SciChartLegendBase implements IDeletable {
|
|
|
121
165
|
* Gets or sets the parent div element reference or id for the Legend
|
|
122
166
|
*/
|
|
123
167
|
set placementDivId(value: string | HTMLDivElement);
|
|
168
|
+
/**
|
|
169
|
+
* Gets or sets the backgroundColor as an html color code
|
|
170
|
+
*/
|
|
171
|
+
get backgroundColor(): string;
|
|
172
|
+
/**
|
|
173
|
+
* Gets or sets the backgroundColor as an html color code
|
|
174
|
+
*/
|
|
175
|
+
set backgroundColor(value: string);
|
|
176
|
+
/**
|
|
177
|
+
* Gets or sets the textColor as an html color code
|
|
178
|
+
*/
|
|
179
|
+
get textColor(): string;
|
|
180
|
+
/**
|
|
181
|
+
* Gets or sets the textColor as an html color code
|
|
182
|
+
*/
|
|
183
|
+
set textColor(value: string);
|
|
184
|
+
clear(): void;
|
|
124
185
|
/** @inheritDoc */
|
|
125
186
|
delete(): void;
|
|
126
187
|
/**
|
|
@@ -1,7 +1,23 @@
|
|
|
1
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
|
+
})();
|
|
2
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
18
|
exports.getLegendContainerHtml = exports.getLegendItemHtml = exports.SciChartLegendBase = exports.ELegendType = exports.ELegendPlacement = exports.ELegendOrientation = void 0;
|
|
4
19
|
var app_1 = require("../../../constants/app");
|
|
20
|
+
var DeletableEntity_1 = require("../../../Core/DeletableEntity");
|
|
5
21
|
var html_1 = require("../../../utils/html");
|
|
6
22
|
/**
|
|
7
23
|
* Enumeration constants to define legend orientation
|
|
@@ -28,24 +44,28 @@ var ELegendPlacement;
|
|
|
28
44
|
var ELegendType;
|
|
29
45
|
(function (ELegendType) {
|
|
30
46
|
ELegendType["SciChartLegend"] = "SciChartLegend";
|
|
47
|
+
ELegendType["ManualLegend"] = "ManualLegend";
|
|
31
48
|
ELegendType["SciChartPieLegend"] = "SciChartPieLegend";
|
|
32
49
|
})(ELegendType = exports.ELegendType || (exports.ELegendType = {}));
|
|
33
50
|
/**
|
|
34
51
|
* Base class for legends in the SciChart library
|
|
35
52
|
*/
|
|
36
|
-
var SciChartLegendBase = /** @class */ (function () {
|
|
37
|
-
|
|
53
|
+
var SciChartLegendBase = /** @class */ (function (_super) {
|
|
54
|
+
__extends(SciChartLegendBase, _super);
|
|
55
|
+
function SciChartLegendBase(options) {
|
|
38
56
|
var _this = this;
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
57
|
+
var _a, _b, _c, _d, _e;
|
|
58
|
+
_this = _super.call(this) || this;
|
|
59
|
+
_this.orientationProperty = ELegendOrientation.Vertical;
|
|
60
|
+
_this.showLegendProperty = true;
|
|
61
|
+
_this.placementProperty = ELegendPlacement.TopLeft;
|
|
62
|
+
_this.marginProperty = 10;
|
|
63
|
+
_this.isDirty = true;
|
|
64
|
+
_this.eventListenersCollection = new Map();
|
|
45
65
|
/**
|
|
46
66
|
* removes event listeners from a specific {@link IRenderableSeries} series
|
|
47
67
|
*/
|
|
48
|
-
|
|
68
|
+
_this.removeEventListenerFromSeries = function (renderableSeriesId) {
|
|
49
69
|
var _a;
|
|
50
70
|
(_a = _this.eventListenersCollection.get(renderableSeriesId)) === null || _a === void 0 ? void 0 : _a.forEach(function (_a) {
|
|
51
71
|
var element = _a.element, eventListener = _a.eventListener, eventType = _a.eventType;
|
|
@@ -53,6 +73,15 @@ var SciChartLegendBase = /** @class */ (function () {
|
|
|
53
73
|
});
|
|
54
74
|
_this.eventListenersCollection.delete(renderableSeriesId);
|
|
55
75
|
};
|
|
76
|
+
_this.orientationProperty = (_a = options === null || options === void 0 ? void 0 : options.orientation) !== null && _a !== void 0 ? _a : _this.orientationProperty;
|
|
77
|
+
_this.showLegendProperty = (_b = options === null || options === void 0 ? void 0 : options.showLegend) !== null && _b !== void 0 ? _b : _this.showLegend;
|
|
78
|
+
_this.placementProperty = (_c = options === null || options === void 0 ? void 0 : options.placement) !== null && _c !== void 0 ? _c : _this.placement;
|
|
79
|
+
_this.marginProperty = (_d = options === null || options === void 0 ? void 0 : options.margin) !== null && _d !== void 0 ? _d : _this.margin;
|
|
80
|
+
_this.placementDivIdProperty = (_e = options === null || options === void 0 ? void 0 : options.placementDivId) !== null && _e !== void 0 ? _e : _this.placementDivId;
|
|
81
|
+
// No default here as need theme from parent surface
|
|
82
|
+
_this.backgroundColorProperty = options === null || options === void 0 ? void 0 : options.backgroundColor;
|
|
83
|
+
_this.textColorProperty = options === null || options === void 0 ? void 0 : options.textColor;
|
|
84
|
+
return _this;
|
|
56
85
|
}
|
|
57
86
|
SciChartLegendBase.prototype.setInvalidateParentSurface = function (value) {
|
|
58
87
|
this.invalidateParentSurface = value;
|
|
@@ -65,21 +94,42 @@ var SciChartLegendBase = /** @class */ (function () {
|
|
|
65
94
|
this.rootDiv = rootDivProperty;
|
|
66
95
|
};
|
|
67
96
|
/**
|
|
68
|
-
*
|
|
69
|
-
* @param seriesViewRect
|
|
97
|
+
* @deprecated
|
|
70
98
|
*/
|
|
71
|
-
SciChartLegendBase.prototype.setSeriesViewRect = function (seriesViewRect) {
|
|
72
|
-
if (this.seriesViewRect !== seriesViewRect) {
|
|
73
|
-
this.seriesViewRect = seriesViewRect;
|
|
74
|
-
this.notifyPropertyChanged();
|
|
75
|
-
}
|
|
76
|
-
};
|
|
99
|
+
SciChartLegendBase.prototype.setSeriesViewRect = function (seriesViewRect) { };
|
|
77
100
|
/**
|
|
78
101
|
* Sets the parent {@link ISciChartSurfaceBase}
|
|
79
102
|
*/
|
|
80
103
|
SciChartLegendBase.prototype.setParentSurface = function (scs) {
|
|
81
104
|
this.parentSurfaceProperty = scs;
|
|
82
105
|
};
|
|
106
|
+
/**
|
|
107
|
+
* Attach this legend to a SciChartSurfaceBase
|
|
108
|
+
* @param sciChartSurface
|
|
109
|
+
*/
|
|
110
|
+
SciChartLegendBase.prototype.attachTo = function (sciChartSurface) {
|
|
111
|
+
var _this = this;
|
|
112
|
+
this.setParentSurface(sciChartSurface);
|
|
113
|
+
this.setRootDiv(sciChartSurface.domDivContainer);
|
|
114
|
+
this.setInvalidateParentSurface(sciChartSurface.invalidateElement);
|
|
115
|
+
sciChartSurface.rendered.subscribe(function () {
|
|
116
|
+
_this.update();
|
|
117
|
+
});
|
|
118
|
+
sciChartSurface.addDeletable({
|
|
119
|
+
delete: function () {
|
|
120
|
+
_this.delete();
|
|
121
|
+
_this.setRootDiv(undefined);
|
|
122
|
+
_this.setInvalidateParentSurface(undefined);
|
|
123
|
+
_this.setParentSurface(undefined);
|
|
124
|
+
}
|
|
125
|
+
});
|
|
126
|
+
};
|
|
127
|
+
SciChartLegendBase.prototype.detach = function () {
|
|
128
|
+
this.setRootDiv(undefined);
|
|
129
|
+
this.setInvalidateParentSurface(undefined);
|
|
130
|
+
this.setParentSurface(undefined);
|
|
131
|
+
this.delete();
|
|
132
|
+
};
|
|
83
133
|
/**
|
|
84
134
|
* Update the legend
|
|
85
135
|
*/
|
|
@@ -87,7 +137,7 @@ var SciChartLegendBase = /** @class */ (function () {
|
|
|
87
137
|
if (!this.isDirty && this.div) {
|
|
88
138
|
return;
|
|
89
139
|
}
|
|
90
|
-
this.
|
|
140
|
+
this.clear();
|
|
91
141
|
if (this.showLegend) {
|
|
92
142
|
this.create();
|
|
93
143
|
}
|
|
@@ -178,15 +228,48 @@ var SciChartLegendBase = /** @class */ (function () {
|
|
|
178
228
|
* Gets or sets the parent div element reference or id for the Legend
|
|
179
229
|
*/
|
|
180
230
|
set: function (value) {
|
|
181
|
-
this.
|
|
231
|
+
this.clear();
|
|
182
232
|
this.placementDivIdProperty = value;
|
|
183
233
|
this.notifyPropertyChanged();
|
|
184
234
|
},
|
|
185
235
|
enumerable: false,
|
|
186
236
|
configurable: true
|
|
187
237
|
});
|
|
188
|
-
|
|
189
|
-
|
|
238
|
+
Object.defineProperty(SciChartLegendBase.prototype, "backgroundColor", {
|
|
239
|
+
/**
|
|
240
|
+
* Gets or sets the backgroundColor as an html color code
|
|
241
|
+
*/
|
|
242
|
+
get: function () {
|
|
243
|
+
return this.backgroundColorProperty;
|
|
244
|
+
},
|
|
245
|
+
/**
|
|
246
|
+
* Gets or sets the backgroundColor as an html color code
|
|
247
|
+
*/
|
|
248
|
+
set: function (value) {
|
|
249
|
+
this.backgroundColorProperty = value;
|
|
250
|
+
this.notifyPropertyChanged();
|
|
251
|
+
},
|
|
252
|
+
enumerable: false,
|
|
253
|
+
configurable: true
|
|
254
|
+
});
|
|
255
|
+
Object.defineProperty(SciChartLegendBase.prototype, "textColor", {
|
|
256
|
+
/**
|
|
257
|
+
* Gets or sets the textColor as an html color code
|
|
258
|
+
*/
|
|
259
|
+
get: function () {
|
|
260
|
+
return this.textColorProperty;
|
|
261
|
+
},
|
|
262
|
+
/**
|
|
263
|
+
* Gets or sets the textColor as an html color code
|
|
264
|
+
*/
|
|
265
|
+
set: function (value) {
|
|
266
|
+
this.textColorProperty = value;
|
|
267
|
+
this.notifyPropertyChanged();
|
|
268
|
+
},
|
|
269
|
+
enumerable: false,
|
|
270
|
+
configurable: true
|
|
271
|
+
});
|
|
272
|
+
SciChartLegendBase.prototype.clear = function () {
|
|
190
273
|
var _a;
|
|
191
274
|
if (this.div) {
|
|
192
275
|
this.removeEventListeners();
|
|
@@ -195,6 +278,10 @@ var SciChartLegendBase = /** @class */ (function () {
|
|
|
195
278
|
this.parentDiv = undefined;
|
|
196
279
|
}
|
|
197
280
|
};
|
|
281
|
+
/** @inheritDoc */
|
|
282
|
+
SciChartLegendBase.prototype.delete = function () {
|
|
283
|
+
this.clear();
|
|
284
|
+
};
|
|
198
285
|
/**
|
|
199
286
|
* Gets if the Legend in placed externally
|
|
200
287
|
*/
|
|
@@ -215,7 +302,8 @@ var SciChartLegendBase = /** @class */ (function () {
|
|
|
215
302
|
SciChartLegendBase.prototype.getLegendHTML = function (placement, textColor, backgroundColor, margin, orientation, showCheckboxes, showSeriesMarkers, items) {
|
|
216
303
|
var _this = this;
|
|
217
304
|
var body = items.reduce(function (prev, curr) {
|
|
218
|
-
|
|
305
|
+
var _a;
|
|
306
|
+
return (prev + _this.getLegendItemHTML(orientation, showCheckboxes, (_a = curr.showMarker) !== null && _a !== void 0 ? _a : showSeriesMarkers, curr));
|
|
219
307
|
}, "");
|
|
220
308
|
return (0, exports.getLegendContainerHtml)(placement, textColor, backgroundColor, margin, body);
|
|
221
309
|
};
|
|
@@ -262,7 +350,7 @@ var SciChartLegendBase = /** @class */ (function () {
|
|
|
262
350
|
return this.rootDiv;
|
|
263
351
|
};
|
|
264
352
|
return SciChartLegendBase;
|
|
265
|
-
}());
|
|
353
|
+
}(DeletableEntity_1.DeletableEntity));
|
|
266
354
|
exports.SciChartLegendBase = SciChartLegendBase;
|
|
267
355
|
var getLegendItemHtml = function (orientation, showCheckboxes, showSeriesMarkers, item) {
|
|
268
356
|
var display = orientation === ELegendOrientation.Vertical ? "flex" : "inline-flex";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { TPointMarkerDefinition } from "../../../Builder/buildSeries";
|
|
2
|
+
import { DeletableEntity } from "../../../Core/DeletableEntity";
|
|
2
3
|
import { ICacheable } from "../../../Core/ICacheable";
|
|
3
4
|
import { EPointMarkerType } from "../../../types/PointMarkerType";
|
|
4
5
|
import { TSciChart } from "../../../types/TSciChart";
|
|
@@ -36,6 +37,8 @@ export interface IPointMarkerOptions {
|
|
|
36
37
|
* The opacity of the point-marker
|
|
37
38
|
*/
|
|
38
39
|
opacity?: number;
|
|
40
|
+
/** Set true to make the point marker render only for the last point on the data series */
|
|
41
|
+
lastPointOnly?: boolean;
|
|
39
42
|
}
|
|
40
43
|
/**
|
|
41
44
|
* The Base class for a PointMarker in SciChart - High Performance {@link https://www.scichart.com/javascript-chart-features | JavaScript Charts}.
|
|
@@ -45,7 +48,7 @@ export interface IPointMarkerOptions {
|
|
|
45
48
|
* @remarks
|
|
46
49
|
* See derived types of {@link BasePointMarker} for specific point-marker types.
|
|
47
50
|
*/
|
|
48
|
-
export declare abstract class BasePointMarker implements IPointMarker, ICacheable {
|
|
51
|
+
export declare abstract class BasePointMarker extends DeletableEntity implements IPointMarker, ICacheable {
|
|
49
52
|
abstract type: EPointMarkerType;
|
|
50
53
|
/**
|
|
51
54
|
* Callback to invalidate the parent 2D {@link SciChartSurface}
|
|
@@ -62,6 +65,7 @@ export declare abstract class BasePointMarker implements IPointMarker, ICacheabl
|
|
|
62
65
|
private strokeProperty;
|
|
63
66
|
private strokeThicknessProperty;
|
|
64
67
|
private widthProperty;
|
|
68
|
+
private lastPointOnlyProperty;
|
|
65
69
|
private spriteTextures;
|
|
66
70
|
private isUpdateSuspended;
|
|
67
71
|
/**
|
|
@@ -119,6 +123,14 @@ export declare abstract class BasePointMarker implements IPointMarker, ICacheabl
|
|
|
119
123
|
* Gets or sets the opacity of the point-marker
|
|
120
124
|
*/
|
|
121
125
|
set opacity(opacity: number);
|
|
126
|
+
/**
|
|
127
|
+
* Set true to make the point marker render only for the last point on the data series
|
|
128
|
+
*/
|
|
129
|
+
get lastPointOnly(): boolean;
|
|
130
|
+
/**
|
|
131
|
+
* Set true to make the point marker render only for the last point on the data series
|
|
132
|
+
*/
|
|
133
|
+
set lastPointOnly(lastPointOnly: boolean);
|
|
122
134
|
/**
|
|
123
135
|
* Gets a {@link CanvasTexture} object which represents the point-marker sprite instance to draw
|
|
124
136
|
* @remarks note {@link CanvasTexture} implements {@link IDeletable} and must be deleted manually to free memory
|