scichart 2.2.2417 → 3.0.0-beta.230
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/buildDataSeries.d.ts +16 -1
- package/Builder/buildDataSeries.js +24 -1
- package/Builder/buildSeries.d.ts +60 -3
- package/Builder/buildSeries.js +28 -1
- package/Builder/buildSurface.d.ts +28 -2
- package/Builder/buildSurface.js +53 -31
- package/Builder/chartBuilder.d.ts +20 -7
- package/Builder/chartBuilder.js +37 -3
- package/Charting/ChartModifiers/ChartModifierBase.d.ts +21 -0
- package/Charting/ChartModifiers/ChartModifierBase.js +12 -0
- package/Charting/ChartModifiers/ChartModifierBase2D.js +2 -1
- package/Charting/ChartModifiers/CursorModifier.d.ts +92 -19
- package/Charting/ChartModifiers/CursorModifier.js +147 -58
- package/Charting/ChartModifiers/DataPointSelectionModifier.js +2 -1
- package/Charting/ChartModifiers/LegendModifier.js +2 -1
- package/Charting/ChartModifiers/ModifierMouseArgs.d.ts +6 -1
- package/Charting/ChartModifiers/ModifierMouseArgs.js +13 -3
- package/Charting/ChartModifiers/MouseWheelZoomModifier.d.ts +2 -2
- package/Charting/ChartModifiers/MouseWheelZoomModifier.js +16 -4
- package/Charting/ChartModifiers/OverviewRangeSelectionModifier.d.ts +2 -1
- package/Charting/ChartModifiers/OverviewRangeSelectionModifier.js +8 -4
- package/Charting/ChartModifiers/PinchZoomModifier.js +2 -1
- package/Charting/ChartModifiers/RolloverModifier.d.ts +43 -21
- package/Charting/ChartModifiers/RolloverModifier.js +48 -29
- package/Charting/ChartModifiers/RubberBandXyZoomModifier.d.ts +9 -6
- package/Charting/ChartModifiers/RubberBandXyZoomModifier.js +10 -8
- package/Charting/ChartModifiers/SeriesSelectionModifier.js +2 -1
- package/Charting/ChartModifiers/XAxisDragModifier.d.ts +1 -1
- package/Charting/ChartModifiers/XAxisDragModifier.js +2 -1
- package/Charting/ChartModifiers/YAxisDragModifier.d.ts +1 -1
- package/Charting/ChartModifiers/YAxisDragModifier.js +2 -1
- package/Charting/ChartModifiers/ZoomExtentsModifier.js +2 -1
- package/Charting/ChartModifiers/ZoomPanModifier.js +2 -1
- package/Charting/ChartModifiers/constants.d.ts +3 -1
- package/Charting/ChartModifiers/constants.js +2 -0
- package/Charting/Drawing/BatchRenderContext.d.ts +6 -0
- package/Charting/Drawing/BatchRenderContext.js +40 -0
- package/Charting/Drawing/RenderSurface.d.ts +2 -1
- package/Charting/Drawing/RenderSurface.js +3 -2
- package/Charting/Drawing/WebGlRenderContext2D.d.ts +19 -4
- package/Charting/Drawing/WebGlRenderContext2D.js +70 -41
- package/Charting/LayoutManager/BaseCenteredAxisLayoutStrategy.js +2 -1
- package/Charting/LayoutManager/BottomAlignedInnerAxisLayoutStrategy.js +1 -1
- package/Charting/LayoutManager/CentralAxesLayoutManager.js +2 -1
- package/Charting/LayoutManager/LayoutManager.d.ts +2 -1
- package/Charting/LayoutManager/LayoutManager.js +6 -5
- package/Charting/LayoutManager/LeftAlignedInnerAxisLayoutStrategy.js +1 -1
- package/Charting/LayoutManager/RightAlignedInnerAxisLayoutStrategy.js +1 -1
- package/Charting/LayoutManager/TopAlignedInnerAxisLayoutStrategy.js +1 -1
- package/Charting/Model/BaseDataSeries.d.ts +10 -1
- package/Charting/Model/BaseDataSeries.js +9 -8
- package/Charting/Model/BaseHeatmapDataSeries.d.ts +18 -5
- package/Charting/Model/BaseHeatmapDataSeries.js +21 -13
- package/Charting/Model/ChartData/SeriesInfo.d.ts +6 -0
- package/Charting/Model/ChartData/SeriesInfo.js +5 -0
- package/Charting/Model/ChartData/XyySeriesInfo.d.ts +2 -0
- package/Charting/Model/ChartData/XyySeriesInfo.js +2 -0
- package/Charting/Model/DataDistributionCalculator/DataDistributionCalculator.js +4 -3
- package/Charting/Model/Filters/HlcCustomFilter.js +12 -9
- package/Charting/Model/Filters/HlcFilterBase.js +2 -1
- package/Charting/Model/Filters/HlcScaleOffsetFilter.js +2 -1
- package/Charting/Model/Filters/OhlcCustomFilter.js +12 -9
- package/Charting/Model/Filters/OhlcScaleOffsetFilter.js +2 -1
- package/Charting/Model/Filters/XyCustomFilter.js +12 -9
- package/Charting/Model/Filters/XyFilterBase.d.ts +14 -5
- package/Charting/Model/Filters/XyFilterBase.js +47 -15
- package/Charting/Model/Filters/XyMovingAverageFilter.js +2 -1
- package/Charting/Model/Filters/XyRatioFilter.js +2 -1
- package/Charting/Model/Filters/XyScaleOffsetFilter.js +2 -1
- package/Charting/Model/Filters/XyyCustomFilter.js +12 -9
- package/Charting/Model/Filters/XyyFilterBase.js +2 -1
- package/Charting/Model/Filters/XyyScaleOffsetFilter.js +2 -1
- package/Charting/Model/Filters/XyzCustomFilter.js +12 -9
- package/Charting/Model/Filters/XyzFilterBase.js +2 -1
- package/Charting/Model/Filters/XyzScaleOffsetFilter.js +2 -1
- package/Charting/Model/IDataSeries.d.ts +9 -1
- package/Charting/Model/IDataSeries.js +8 -0
- package/Charting/Model/NonUniformHeatmapDataSeries.d.ts +112 -0
- package/Charting/Model/NonUniformHeatmapDataSeries.js +261 -0
- package/Charting/Model/PaletteFactory.d.ts +40 -4
- package/Charting/Model/PaletteFactory.js +37 -11
- package/Charting/Model/XyTextDataSeries.d.ts +121 -0
- package/Charting/Model/XyTextDataSeries.js +274 -0
- package/Charting/Numerics/CoordinateCalculators/CoordinateCalculatorBase.d.ts +1 -1
- package/Charting/Numerics/Resamplers/ExtremeResamplerHelper.js +1 -1
- package/Charting/Services/RenderPassData.d.ts +15 -5
- package/Charting/Services/RenderPassData.js +27 -5
- package/Charting/Services/SciChartRenderer.d.ts +2 -1
- package/Charting/Services/SciChartRenderer.js +91 -29
- package/Charting/Themes/IThemeProvider.d.ts +61 -0
- package/Charting/Themes/IThemeProvider.js +67 -1
- package/Charting/Themes/SciChartJSDarkTheme.d.ts +4 -0
- package/Charting/Themes/SciChartJSDarkTheme.js +6 -2
- package/Charting/Themes/SciChartJSDarkv2Theme.js +3 -0
- package/Charting/Themes/SciChartJSLightTheme.d.ts +8 -0
- package/Charting/Themes/SciChartJSLightTheme.js +8 -0
- package/Charting/Themes/SciChartJsNavyTheme.d.ts +10 -0
- package/Charting/Themes/SciChartJsNavyTheme.js +49 -0
- package/Charting/Visuals/Annotations/AdornerLayer.js +4 -8
- package/Charting/Visuals/Annotations/AnnotationBase.d.ts +80 -7
- package/Charting/Visuals/Annotations/AnnotationBase.js +238 -28
- package/Charting/Visuals/Annotations/AnnotationClickEventArgs.d.ts +11 -0
- package/Charting/Visuals/Annotations/AnnotationClickEventArgs.js +12 -0
- package/Charting/Visuals/Annotations/AxisMarkerAnnotation.d.ts +1 -0
- package/Charting/Visuals/Annotations/AxisMarkerAnnotation.js +18 -19
- package/Charting/Visuals/Annotations/BoxAnnotation.d.ts +1 -0
- package/Charting/Visuals/Annotations/BoxAnnotation.js +69 -67
- package/Charting/Visuals/Annotations/CursorTooltipSvgAnnotation.d.ts +2 -2
- package/Charting/Visuals/Annotations/CursorTooltipSvgAnnotation.js +20 -20
- package/Charting/Visuals/Annotations/CustomAnnotation.d.ts +1 -1
- package/Charting/Visuals/Annotations/CustomAnnotation.js +3 -2
- package/Charting/Visuals/Annotations/HorizontalLineAnnotation.js +6 -3
- package/Charting/Visuals/Annotations/IAdornerProvider.d.ts +12 -0
- package/Charting/Visuals/Annotations/IAnnotation.d.ts +9 -0
- package/Charting/Visuals/Annotations/IAnnotation.js +9 -0
- package/Charting/Visuals/Annotations/LineAnnotation.d.ts +1 -0
- package/Charting/Visuals/Annotations/LineAnnotation.js +29 -35
- package/Charting/Visuals/Annotations/NativeTextAnnotation.d.ts +193 -0
- package/Charting/Visuals/Annotations/NativeTextAnnotation.js +536 -0
- package/Charting/Visuals/Annotations/OverviewCustomResizableAnnotation.d.ts +4 -2
- package/Charting/Visuals/Annotations/OverviewCustomResizableAnnotation.js +19 -14
- package/Charting/Visuals/Annotations/RolloverLegendSvgAnnotation.d.ts +2 -2
- package/Charting/Visuals/Annotations/RolloverLegendSvgAnnotation.js +9 -8
- package/Charting/Visuals/Annotations/RolloverMarkerSvgAnnotation.d.ts +2 -2
- package/Charting/Visuals/Annotations/RolloverMarkerSvgAnnotation.js +6 -6
- package/Charting/Visuals/Annotations/RolloverTooltipSvgAnnotation.d.ts +2 -2
- package/Charting/Visuals/Annotations/RolloverTooltipSvgAnnotation.js +20 -21
- package/Charting/Visuals/Annotations/SvgAnnotationBase.d.ts +13 -2
- package/Charting/Visuals/Annotations/SvgAnnotationBase.js +34 -42
- package/Charting/Visuals/Annotations/TextAnnotation.d.ts +2 -2
- package/Charting/Visuals/Annotations/TextAnnotation.js +41 -22
- package/Charting/Visuals/Annotations/VerticalLineAnnotation.js +6 -3
- package/Charting/Visuals/Annotations/annotationHelpers.d.ts +6 -6
- package/Charting/Visuals/Annotations/annotationHelpers.js +7 -6
- package/Charting/Visuals/Annotations/constants.d.ts +13 -1
- package/Charting/Visuals/Annotations/constants.js +12 -0
- package/Charting/Visuals/Axis/AxisBase2D.d.ts +24 -4
- package/Charting/Visuals/Axis/AxisBase2D.js +115 -38
- package/Charting/Visuals/Axis/AxisCore.d.ts +10 -5
- package/Charting/Visuals/Axis/AxisCore.js +11 -10
- package/Charting/Visuals/Axis/AxisRenderer.js +114 -20
- package/Charting/Visuals/Axis/CategoryAxis.js +2 -1
- package/Charting/Visuals/Axis/CategoryAxisBase.d.ts +15 -15
- package/Charting/Visuals/Axis/CategoryAxisBase.js +14 -12
- package/Charting/Visuals/Axis/DateTimeNumericAxis.js +2 -1
- package/Charting/Visuals/Axis/DeltaCalculator/DateTimeDeltaCalculator.js +2 -1
- package/Charting/Visuals/Axis/LabelProvider/DateLabelProvider.js +2 -1
- package/Charting/Visuals/Axis/LabelProvider/LabelCache.js +2 -0
- package/Charting/Visuals/Axis/LabelProvider/LabelProviderBase2D.d.ts +14 -0
- package/Charting/Visuals/Axis/LabelProvider/LabelProviderBase2D.js +140 -33
- package/Charting/Visuals/Axis/LabelProvider/LogarithmicLabelProvider.js +2 -1
- package/Charting/Visuals/Axis/LabelProvider/NumericLabelProvider.js +2 -1
- package/Charting/Visuals/Axis/LabelProvider/PieLabelProvider.js +2 -1
- package/Charting/Visuals/Axis/LabelProvider/SmartDateLabelProvider.d.ts +31 -1
- package/Charting/Visuals/Axis/LabelProvider/SmartDateLabelProvider.js +64 -42
- package/Charting/Visuals/Axis/LabelProvider/TextLabelProvider.d.ts +2 -2
- package/Charting/Visuals/Axis/LabelProvider/TextLabelProvider.js +16 -19
- package/Charting/Visuals/Axis/LogarithmicAxis.js +9 -6
- package/Charting/Visuals/Axis/NumericAxis.js +3 -3
- package/Charting/Visuals/Axis/constants.d.ts +1 -0
- package/Charting/Visuals/Axis/constants.js +1 -0
- package/Charting/Visuals/HeatmapLegend.d.ts +95 -0
- package/Charting/Visuals/HeatmapLegend.js +192 -0
- package/Charting/Visuals/Helpers/NativeObject.d.ts +15 -2
- package/Charting/Visuals/Helpers/NativeObject.js +72 -6
- package/Charting/Visuals/I2DSurfaceOptions.d.ts +46 -0
- package/Charting/Visuals/PointMarkers/BasePointMarker.d.ts +5 -0
- package/Charting/Visuals/PointMarkers/BasePointMarker.js +28 -0
- package/Charting/Visuals/PointMarkers/IPointMarker.d.ts +8 -0
- package/Charting/Visuals/RenderableSeries/Animations/BandAnimation.js +2 -1
- package/Charting/Visuals/RenderableSeries/Animations/BandAnimationStyle.js +2 -1
- package/Charting/Visuals/RenderableSeries/Animations/BubbleAnimation.js +2 -1
- package/Charting/Visuals/RenderableSeries/Animations/CandlestickAnimation.js +2 -1
- package/Charting/Visuals/RenderableSeries/Animations/CandlestickAnimationStyle.js +2 -1
- package/Charting/Visuals/RenderableSeries/Animations/ColumnAnimation.js +2 -1
- package/Charting/Visuals/RenderableSeries/Animations/ColumnAnimationStyle.js +2 -1
- package/Charting/Visuals/RenderableSeries/Animations/CustomPointMarkerStyle.js +2 -1
- package/Charting/Visuals/RenderableSeries/Animations/FadeAnimation.js +2 -1
- package/Charting/Visuals/RenderableSeries/Animations/LineAnimation.js +2 -1
- package/Charting/Visuals/RenderableSeries/Animations/MountainAnimation.js +2 -1
- package/Charting/Visuals/RenderableSeries/Animations/MountainAnimationStyle.js +2 -1
- package/Charting/Visuals/RenderableSeries/Animations/OhlcAnimation.js +2 -1
- package/Charting/Visuals/RenderableSeries/Animations/OhlcAnimationStyle.js +2 -1
- package/Charting/Visuals/RenderableSeries/Animations/PointMarkerStyle.js +2 -1
- package/Charting/Visuals/RenderableSeries/Animations/ScaleAnimation.js +2 -1
- package/Charting/Visuals/RenderableSeries/Animations/ScatterAnimation.js +2 -1
- package/Charting/Visuals/RenderableSeries/Animations/SeriesAnimation.d.ts +8 -2
- package/Charting/Visuals/RenderableSeries/Animations/SeriesAnimation.js +3 -3
- package/Charting/Visuals/RenderableSeries/Animations/WaveAnimation.js +2 -1
- package/Charting/Visuals/RenderableSeries/BaseBandRenderableSeries.d.ts +7 -0
- package/Charting/Visuals/RenderableSeries/BaseBandRenderableSeries.js +42 -10
- package/Charting/Visuals/RenderableSeries/BaseHeatmapRenderableSeries.d.ts +128 -0
- package/Charting/Visuals/RenderableSeries/BaseHeatmapRenderableSeries.js +201 -0
- package/Charting/Visuals/RenderableSeries/BaseLineRenderableSeries.d.ts +26 -0
- package/Charting/Visuals/RenderableSeries/BaseLineRenderableSeries.js +39 -3
- package/Charting/Visuals/RenderableSeries/BaseMountainRenderableSeries.d.ts +7 -0
- package/Charting/Visuals/RenderableSeries/BaseMountainRenderableSeries.js +17 -2
- package/Charting/Visuals/RenderableSeries/BaseOhlcRenderableSeries.d.ts +2 -0
- package/Charting/Visuals/RenderableSeries/BaseOhlcRenderableSeries.js +15 -2
- package/Charting/Visuals/RenderableSeries/BaseRenderableSeries.d.ts +10 -0
- package/Charting/Visuals/RenderableSeries/BaseRenderableSeries.js +93 -17
- package/Charting/Visuals/RenderableSeries/BaseStackedCollection.d.ts +8 -1
- package/Charting/Visuals/RenderableSeries/BaseStackedCollection.js +21 -1
- package/Charting/Visuals/RenderableSeries/BaseStackedRenderableSeries.d.ts +1 -0
- package/Charting/Visuals/RenderableSeries/BaseStackedRenderableSeries.js +4 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/BandSeriesDataLabelProvider.d.ts +43 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/BandSeriesDataLabelProvider.js +142 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/BaseDataLabelProvider.d.ts +92 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/BaseDataLabelProvider.js +129 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/BubbleSeriesDataLabelProvider.d.ts +17 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/BubbleSeriesDataLabelProvider.js +62 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/ColumnSeriesDataLabelProvider.d.ts +47 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/ColumnSeriesDataLabelProvider.js +125 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/ContoursDataLabelProvider.d.ts +71 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/ContoursDataLabelProvider.js +221 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/DataLabelLayoutManager.d.ts +5 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/DataLabelLayoutManager.js +2 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/DataLabelProvider.d.ts +208 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/DataLabelProvider.js +410 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/DataLabelState.d.ts +40 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/DataLabelState.js +141 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/HeatMapDataLabelProvider.d.ts +63 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/HeatMapDataLabelProvider.js +198 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/LineSeriesDataLabelProvider.d.ts +35 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/LineSeriesDataLabelProvider.js +92 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/NonUniformHeatmapDataLabelProvider.d.ts +12 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/NonUniformHeatmapDataLabelProvider.js +134 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/TextDataLabelProvider.d.ts +56 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/TextDataLabelProvider.js +167 -0
- package/Charting/Visuals/RenderableSeries/DrawingProviders/BandSeriesDrawingProvider.d.ts +0 -1
- package/Charting/Visuals/RenderableSeries/DrawingProviders/BandSeriesDrawingProvider.js +1 -2
- package/Charting/Visuals/RenderableSeries/DrawingProviders/BaseSeriesDrawingProvider.d.ts +5 -2
- package/Charting/Visuals/RenderableSeries/DrawingProviders/BaseSeriesDrawingProvider.js +47 -40
- package/Charting/Visuals/RenderableSeries/DrawingProviders/BubbleSeriesDrawingProvider.js +1 -1
- package/Charting/Visuals/RenderableSeries/DrawingProviders/ColumnSeriesDrawingProvider.d.ts +1 -0
- package/Charting/Visuals/RenderableSeries/DrawingProviders/ColumnSeriesDrawingProvider.js +18 -5
- package/Charting/Visuals/RenderableSeries/DrawingProviders/ErrorSeriesDrawingProvider.d.ts +0 -1
- package/Charting/Visuals/RenderableSeries/DrawingProviders/ErrorSeriesDrawingProvider.js +14 -27
- package/Charting/Visuals/RenderableSeries/DrawingProviders/LineSeriesDrawingProvider.d.ts +17 -4
- package/Charting/Visuals/RenderableSeries/DrawingProviders/LineSeriesDrawingProvider.js +34 -11
- package/Charting/Visuals/RenderableSeries/DrawingProviders/NonUniformHeatmapDrawingProvider.d.ts +36 -0
- package/Charting/Visuals/RenderableSeries/DrawingProviders/NonUniformHeatmapDrawingProvider.js +493 -0
- package/Charting/Visuals/RenderableSeries/DrawingProviders/PointMarkerDrawingProvider.d.ts +5 -2
- package/Charting/Visuals/RenderableSeries/DrawingProviders/PointMarkerDrawingProvider.js +8 -5
- package/Charting/Visuals/RenderableSeries/DrawingProviders/UniformContoursDrawingProvider.js +4 -4
- package/Charting/Visuals/RenderableSeries/DrawingProviders/UniformHeatmapDrawingProvider.d.ts +3 -0
- package/Charting/Visuals/RenderableSeries/DrawingProviders/UniformHeatmapDrawingProvider.js +15 -4
- package/Charting/Visuals/RenderableSeries/FastBandRenderableSeries.js +2 -1
- package/Charting/Visuals/RenderableSeries/FastBubbleRenderableSeries.d.ts +21 -0
- package/Charting/Visuals/RenderableSeries/FastBubbleRenderableSeries.js +40 -4
- package/Charting/Visuals/RenderableSeries/FastCandlestickRenderableSeries.d.ts +2 -0
- package/Charting/Visuals/RenderableSeries/FastCandlestickRenderableSeries.js +18 -3
- package/Charting/Visuals/RenderableSeries/FastColumnRenderableSeries.d.ts +36 -2
- package/Charting/Visuals/RenderableSeries/FastColumnRenderableSeries.js +77 -8
- package/Charting/Visuals/RenderableSeries/FastErrorBarsRenderableSeries.js +2 -1
- package/Charting/Visuals/RenderableSeries/FastImpulseRenderableSeries.d.ts +7 -0
- package/Charting/Visuals/RenderableSeries/FastImpulseRenderableSeries.js +16 -4
- package/Charting/Visuals/RenderableSeries/FastLineRenderableSeries.js +2 -1
- package/Charting/Visuals/RenderableSeries/FastMountainRenderableSeries.js +2 -1
- package/Charting/Visuals/RenderableSeries/FastOhlcRenderableSeries.js +2 -1
- package/Charting/Visuals/RenderableSeries/FastTextRenderableSeries.d.ts +17 -0
- package/Charting/Visuals/RenderableSeries/FastTextRenderableSeries.js +45 -0
- package/Charting/Visuals/RenderableSeries/HeatmapColorMap.js +3 -2
- package/Charting/Visuals/RenderableSeries/HitTest/BandSeriesHitTestProvider.js +35 -5
- package/Charting/Visuals/RenderableSeries/HitTest/BaseHitTestProvider.js +17 -1
- package/Charting/Visuals/RenderableSeries/HitTest/HitTestInfo.d.ts +8 -0
- package/Charting/Visuals/RenderableSeries/HitTest/MountainSeriesHitTestProvider.js +7 -1
- package/Charting/Visuals/RenderableSeries/HitTest/NonUniformHeatmapHitTestProvider.d.ts +20 -0
- package/Charting/Visuals/RenderableSeries/HitTest/NonUniformHeatmapHitTestProvider.js +86 -0
- package/Charting/Visuals/RenderableSeries/HitTest/TextSeriesHitTestProvider.d.ts +6 -0
- package/Charting/Visuals/RenderableSeries/HitTest/TextSeriesHitTestProvider.js +56 -0
- package/Charting/Visuals/RenderableSeries/HitTest/UniformHeatmapHitTestProvider.js +1 -1
- package/Charting/Visuals/RenderableSeries/HitTest/hitTestHelpers.d.ts +7 -1
- package/Charting/Visuals/RenderableSeries/HitTest/hitTestHelpers.js +34 -2
- package/Charting/Visuals/RenderableSeries/IBaseRenderableSeriesOptions.d.ts +6 -1
- package/Charting/Visuals/RenderableSeries/IRenderableSeries.d.ts +12 -0
- package/Charting/Visuals/RenderableSeries/NonUniformHeatmapRenderableSeries.d.ts +74 -0
- package/Charting/Visuals/RenderableSeries/NonUniformHeatmapRenderableSeries.js +99 -0
- package/Charting/Visuals/RenderableSeries/RolloverModifier/RolloverModifierRenderableSeriesProps.d.ts +7 -2
- package/Charting/Visuals/RenderableSeries/ShaderEffect.js +2 -2
- package/Charting/Visuals/RenderableSeries/SplineBandRenderableSeries.js +2 -1
- package/Charting/Visuals/RenderableSeries/SplineLineRenderableSeries.d.ts +2 -3
- package/Charting/Visuals/RenderableSeries/SplineLineRenderableSeries.js +2 -1
- package/Charting/Visuals/RenderableSeries/SplineMountainRenderableSeries.js +2 -1
- package/Charting/Visuals/RenderableSeries/StackedColumnCollection.js +2 -1
- package/Charting/Visuals/RenderableSeries/StackedColumnRenderableSeries.d.ts +3 -0
- package/Charting/Visuals/RenderableSeries/StackedColumnRenderableSeries.js +13 -2
- package/Charting/Visuals/RenderableSeries/StackedMountainCollection.js +4 -1
- package/Charting/Visuals/RenderableSeries/StackedMountainRenderableSeries.d.ts +7 -0
- package/Charting/Visuals/RenderableSeries/StackedMountainRenderableSeries.js +33 -9
- package/Charting/Visuals/RenderableSeries/UniformContoursRenderableSeries.d.ts +5 -0
- package/Charting/Visuals/RenderableSeries/UniformContoursRenderableSeries.js +7 -1
- package/Charting/Visuals/RenderableSeries/UniformHeatmapRenderableSeries.d.ts +2 -75
- package/Charting/Visuals/RenderableSeries/UniformHeatmapRenderableSeries.js +8 -130
- package/Charting/Visuals/RenderableSeries/XyScatterRenderableSeries.d.ts +5 -0
- package/Charting/Visuals/RenderableSeries/XyScatterRenderableSeries.js +7 -1
- package/Charting/Visuals/RenderableSeries/constants.d.ts +5 -1
- package/Charting/Visuals/RenderableSeries/constants.js +4 -0
- package/Charting/Visuals/RubberBandSvgRect/RubberBandSvgRect.js +3 -3
- package/Charting/Visuals/SciChartDefaults.d.ts +4 -0
- package/Charting/Visuals/SciChartDefaults.js +4 -0
- package/Charting/Visuals/SciChartOverview.js +5 -3
- package/Charting/Visuals/SciChartPieSurface/PieSegment/IPieSegment.d.ts +4 -0
- package/Charting/Visuals/SciChartPieSurface/PieSegment/PieSegment.d.ts +13 -0
- package/Charting/Visuals/SciChartPieSurface/PieSegment/PieSegment.js +22 -4
- package/Charting/Visuals/SciChartPieSurface/PieSegment/constants.d.ts +2 -1
- package/Charting/Visuals/SciChartPieSurface/PieSegment/constants.js +1 -0
- package/Charting/Visuals/SciChartPieSurface/SciChartPieSurface.d.ts +5 -0
- package/Charting/Visuals/SciChartPieSurface/SciChartPieSurface.js +17 -19
- package/Charting/Visuals/SciChartSurface.d.ts +238 -7
- package/Charting/Visuals/SciChartSurface.js +800 -28
- package/Charting/Visuals/SciChartSurfaceBase.d.ts +16 -1
- package/Charting/Visuals/SciChartSurfaceBase.js +34 -2
- package/Charting/Visuals/TextureManager/CanvasTexture.js +1 -1
- package/Charting/Visuals/TextureManager/DpiHelper.js +3 -7
- package/Charting/Visuals/TextureManager/TextureManager.d.ts +11 -0
- package/Charting/Visuals/TextureManager/TextureManager.js +37 -1
- package/Charting/Visuals/createMaster.js +7 -10
- package/Charting/Visuals/createSingle.js +2 -0
- package/Charting/Visuals/licenseManager2D.js +9 -9
- package/Charting/Visuals/sciChartInitCommon.js +16 -12
- package/Charting3D/CameraController.d.ts +5 -0
- package/Charting3D/CameraController.js +6 -0
- package/Charting3D/ChartModifiers/ResetCamera3DModifier.js +2 -1
- package/Charting3D/Visuals/Axis/AxisBase3D.js +7 -5
- package/Charting3D/Visuals/Axis/NumericAxis3D.js +2 -1
- package/Charting3D/Visuals/Primitives/ScatterPointsSceneEntity.d.ts +4 -0
- package/Charting3D/Visuals/Primitives/ScatterPointsSceneEntity.js +7 -0
- package/Charting3D/Visuals/Primitives/SurfaceMeshSceneEntity.js +6 -4
- package/Charting3D/Visuals/RenderableSeries/BaseRenderableSeries3D.d.ts +7 -2
- package/Charting3D/Visuals/RenderableSeries/BaseRenderableSeries3D.js +3 -2
- package/Charting3D/Visuals/RenderableSeries/SurfaceMesh/SurfaceMeshRenderableSeries3D.d.ts +0 -5
- package/Charting3D/Visuals/RenderableSeries/SurfaceMesh/SurfaceMeshRenderableSeries3D.js +12 -11
- package/Charting3D/Visuals/SciChart3DSurface.d.ts +2 -2
- package/Charting3D/Visuals/SciChart3DSurface.js +18 -11
- package/Charting3D/Visuals/createMaster3d.js +10 -18
- package/Charting3D/Visuals/createSingle3d.js +12 -10
- package/Core/Animations/GenericAnimation.d.ts +2 -0
- package/Core/Animations/GenericAnimation.js +3 -0
- package/Core/Animations/NumberRangeAnimator.js +7 -2
- package/Core/BuildStamp.d.ts +1 -1
- package/Core/BuildStamp.js +2 -2
- package/Core/Mouse/MouseManager.d.ts +20 -0
- package/Core/Mouse/MouseManager.js +201 -30
- package/Core/Telemetry.js +1 -1
- package/README.md +91 -403
- package/_wasm/scichart.browser.js +1 -1
- package/_wasm/scichart2d.data +0 -0
- package/_wasm/scichart2d.js +280 -267
- package/_wasm/scichart2d.wasm +0 -0
- package/_wasm/scichart3d.data +0 -0
- package/_wasm/scichart3d.js +280 -268
- package/_wasm/scichart3d.wasm +0 -0
- package/constants/performanceWarnings.d.ts +2 -0
- package/constants/performanceWarnings.js +3 -1
- package/package.json +2 -2
- package/types/AutoColorMode.d.ts +9 -0
- package/types/AutoColorMode.js +13 -0
- package/types/BaseType.d.ts +3 -1
- package/types/BaseType.js +2 -0
- package/types/DataLabelProviderType.d.ts +15 -0
- package/types/DataLabelProviderType.js +19 -0
- package/types/DataLabelSkipMode.d.ts +21 -0
- package/types/DataLabelSkipMode.js +25 -0
- package/types/DefaultRenderLayer.d.ts +10 -0
- package/types/DefaultRenderLayer.js +14 -0
- package/types/MousePosition.d.ts +1 -1
- package/types/MousePosition.js +1 -1
- package/types/SeriesType.d.ts +7 -1
- package/types/SeriesType.js +6 -0
- package/types/SvgClippingMode.d.ts +17 -0
- package/types/SvgClippingMode.js +21 -0
- package/types/TDataLabelStyle.d.ts +16 -0
- package/types/TDataLabelStyle.js +2 -0
- package/types/TSciChart.d.ts +214 -118
- package/types/TSciChart3D.d.ts +104 -70
- package/types/TextPosition.d.ts +17 -0
- package/types/TextPosition.js +39 -0
- package/types/ThemeProviderType.d.ts +3 -1
- package/types/ThemeProviderType.js +2 -0
- package/utils/ccall/appendDoubleVectorFromJsArray.d.ts +10 -1
- package/utils/ccall/appendDoubleVectorFromJsArray.js +24 -1
- package/utils/memoize.d.ts +1 -0
- package/utils/memoize.js +26 -0
- package/utils/number.d.ts +1 -0
- package/utils/number.js +5 -1
- package/utils/parseColor.d.ts +2 -0
- package/utils/parseColor.js +3 -3
- package/utils/text.d.ts +5 -0
- package/utils/text.js +48 -0
- package/utils/translate.d.ts +12 -2
- package/utils/translate.js +67 -11
- package/utils/zeroArray2D.d.ts +5 -0
- package/utils/zeroArray2D.js +5 -0
|
@@ -38,8 +38,9 @@ exports.MIN_LOG_AXIS_VALUE = 0.0000000001;
|
|
|
38
38
|
var LogarithmicAxis = /** @class */ (function (_super) {
|
|
39
39
|
__extends(LogarithmicAxis, _super);
|
|
40
40
|
function LogarithmicAxis(wasmContext, options) {
|
|
41
|
+
var _this = this;
|
|
41
42
|
var _a, _b, _c;
|
|
42
|
-
|
|
43
|
+
_this = _super.call(this, wasmContext, options) || this;
|
|
43
44
|
_this.type = AxisType_1.EAxisType.LogarithmicAxis;
|
|
44
45
|
_this.logBaseProperty = 10;
|
|
45
46
|
_this.tickProvider = new LogarithmicTickProvider_1.LogarithmicTickProvider(wasmContext);
|
|
@@ -76,9 +77,12 @@ var LogarithmicAxis = /** @class */ (function (_super) {
|
|
|
76
77
|
* Gets or sets the Logarithmic Base for the axis. Defaults to 10
|
|
77
78
|
*/
|
|
78
79
|
set: function (logBase) {
|
|
79
|
-
this.logBaseProperty
|
|
80
|
-
|
|
81
|
-
|
|
80
|
+
if (this.logBaseProperty !== logBase) {
|
|
81
|
+
this.logBaseProperty = logBase;
|
|
82
|
+
this.clearCoordCalcCache();
|
|
83
|
+
this.updateLogarithmicBase(this.logBase);
|
|
84
|
+
this.notifyPropertyChanged(constants_1.PROPERTY.LOG_BASE);
|
|
85
|
+
}
|
|
82
86
|
},
|
|
83
87
|
enumerable: false,
|
|
84
88
|
configurable: true
|
|
@@ -273,9 +277,8 @@ var LogarithmicAxis = /** @class */ (function (_super) {
|
|
|
273
277
|
var min = this.visibleRange.min;
|
|
274
278
|
var max = this.visibleRange.max;
|
|
275
279
|
var size = this.axisLength;
|
|
276
|
-
var shouldFlip = this.isXAxis !== this.flippedCoordinatesProperty;
|
|
277
280
|
var direction = this.isXAxis ? XyDirection_1.EXyDirection.XDirection : XyDirection_1.EXyDirection.YDirection;
|
|
278
|
-
return new LogarithmicCoordinateCalculator_1.LogarithmicCoordinateCalculator(this.webAssemblyContext2D, size, min, max, direction, this.logBase,
|
|
281
|
+
return new LogarithmicCoordinateCalculator_1.LogarithmicCoordinateCalculator(this.webAssemblyContext2D, size, min, max, direction, this.logBase, this.isXAxis !== this.flippedCoordinates, this.offset);
|
|
279
282
|
};
|
|
280
283
|
LogarithmicAxis.prototype.getMaxXRange = function () {
|
|
281
284
|
var maximumRange = this.getXDataRange();
|
|
@@ -39,8 +39,9 @@ var NumericAxis = /** @class */ (function (_super) {
|
|
|
39
39
|
* @param options Optional parameters of type {@link INumericAxisOptions} used to configure the axis at instantiation time
|
|
40
40
|
*/
|
|
41
41
|
function NumericAxis(webAssemblyContext, options) {
|
|
42
|
+
var _this = this;
|
|
42
43
|
var _a;
|
|
43
|
-
|
|
44
|
+
_this = _super.call(this, webAssemblyContext, options) || this;
|
|
44
45
|
_this.type = AxisType_1.EAxisType.NumericAxis;
|
|
45
46
|
_this.tickProvider = new NumericTickProvider_1.NumericTickProvider(_this.webAssemblyContext2D);
|
|
46
47
|
_this.labelProvider =
|
|
@@ -56,8 +57,7 @@ var NumericAxis = /** @class */ (function (_super) {
|
|
|
56
57
|
var max = this.visibleRange.max;
|
|
57
58
|
var offset = this.offset;
|
|
58
59
|
var size = this.axisLength;
|
|
59
|
-
|
|
60
|
-
return shouldFlip
|
|
60
|
+
return this.isXAxis !== this.flippedCoordinates
|
|
61
61
|
? new FlippedNumericCoordinateCalculator_1.FlippedNumericCoordinateCalculator(this.webAssemblyContext2D, size, min, max, offset, this.allowFastMath)
|
|
62
62
|
: new NumericCoordinateCalculator_1.NumericCoordinateCalculator(this.webAssemblyContext2D, size, min, max, offset, this.allowFastMath);
|
|
63
63
|
};
|
|
@@ -42,6 +42,7 @@ export declare enum PROPERTY {
|
|
|
42
42
|
TICK_TEXT_BRUSH = "TICK_TEXT_BRUSH",
|
|
43
43
|
VISIBLE_RANGE = "VISIBLE_RANGE",
|
|
44
44
|
VISIBLE_RANGE_LIMIT = "VISIBLE_RANGE_LIMIT",
|
|
45
|
+
VISIBLE_RANGE_SIZE_LIMIT = "VISIBLE_RANGE_SIZE_LIMIT",
|
|
45
46
|
TICK_PROVIDER = "TICK_PROVIDER",
|
|
46
47
|
VIEW_RECT = "VIEW_RECT",
|
|
47
48
|
ZOOMEXTENTS_RANGE = "ZOOMEXTENTS_RANGE"
|
|
@@ -46,6 +46,7 @@ var PROPERTY;
|
|
|
46
46
|
PROPERTY["TICK_TEXT_BRUSH"] = "TICK_TEXT_BRUSH";
|
|
47
47
|
PROPERTY["VISIBLE_RANGE"] = "VISIBLE_RANGE";
|
|
48
48
|
PROPERTY["VISIBLE_RANGE_LIMIT"] = "VISIBLE_RANGE_LIMIT";
|
|
49
|
+
PROPERTY["VISIBLE_RANGE_SIZE_LIMIT"] = "VISIBLE_RANGE_SIZE_LIMIT";
|
|
49
50
|
PROPERTY["TICK_PROVIDER"] = "TICK_PROVIDER";
|
|
50
51
|
PROPERTY["VIEW_RECT"] = "VIEW_RECT";
|
|
51
52
|
PROPERTY["ZOOMEXTENTS_RANGE"] = "ZOOMEXTENTS_RANGE";
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { IDeletable } from "../../Core/IDeletable";
|
|
2
|
+
import { TGradientStop } from "../../types/TGradientStop";
|
|
3
|
+
import { EThemeProviderType } from "../../types/ThemeProviderType";
|
|
4
|
+
import { TSciChart } from "../../types/TSciChart";
|
|
5
|
+
import { IThemePartial, IThemeProvider } from "../Themes/IThemeProvider";
|
|
6
|
+
import { IAxisBase2dOptions } from "./Axis/AxisBase2D";
|
|
7
|
+
import { HeatmapColorMap, IHeatmapColorMapOptions } from "./RenderableSeries/HeatmapColorMap";
|
|
8
|
+
import { SciChartSurface, TWebAssemblyChart } from "./SciChartSurface";
|
|
9
|
+
export interface IHeatmapLegendOptions {
|
|
10
|
+
/**
|
|
11
|
+
* Optional - options applied to the yaxis used in the inner {@link SciChartSurface} in the {@link HeatmapLegend} control
|
|
12
|
+
*/
|
|
13
|
+
yAxisOptions?: IAxisBase2dOptions;
|
|
14
|
+
/**
|
|
15
|
+
* Optional - The theme applied to the inner {@link SciChartSurface} on startup
|
|
16
|
+
* @remarks see {@link IThemeProvider} for properties which can affect SciChart theme. Two default
|
|
17
|
+
* themes are included out of the box {@link SciChartJSLightTheme} and {@link SciChartJSDarkTheme}.
|
|
18
|
+
* Custom themes may be created by implementing {@link IThemeProvider}
|
|
19
|
+
*/
|
|
20
|
+
theme?: IThemeProvider | ({
|
|
21
|
+
type: string | EThemeProviderType;
|
|
22
|
+
} & IThemePartial);
|
|
23
|
+
/**
|
|
24
|
+
* The {@link HeatmapColorMap} instance, which maps heatmap z-values to colors
|
|
25
|
+
* or an {@link IHeatmapColorMapOptions} object which will be used to build a HeatmapColorMap
|
|
26
|
+
*/
|
|
27
|
+
colorMap?: HeatmapColorMap | IHeatmapColorMapOptions;
|
|
28
|
+
}
|
|
29
|
+
export declare type THeatmapLegend = {
|
|
30
|
+
wasmContext: TSciChart;
|
|
31
|
+
heatmapLegend: HeatmapLegend;
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* @summary The HeatmapLegend displays a control which hosts a {@link SciChartSurface} in a specific Div on the chart.
|
|
35
|
+
* The legend contains a gradient fill and can be used in conjunction with {@link UniformHeatmapRenderableSeries},
|
|
36
|
+
* {@link NonUniformHeatmapRenderableSeries} or {@link SurfaceMeshRenderableSeries3D} to allow the user to see what colors map
|
|
37
|
+
* to what values on the heatmap or surface.
|
|
38
|
+
* @remarks This control will expand to fit its parent Div. Suggest placing the div to the right and floating 100px wide to
|
|
39
|
+
* create a good effect.
|
|
40
|
+
*/
|
|
41
|
+
export declare class HeatmapLegend implements IDeletable {
|
|
42
|
+
/**
|
|
43
|
+
* Asynchronously creates a {@link HeatmapLegend} and @link TSciChart | WebAssembly Context} to occupy the div by element ID in your DOM.
|
|
44
|
+
* @remarks This method is async and must be awaited
|
|
45
|
+
* @param divElement The Div Element ID or reference where the {@link HeatmapLegend} will reside
|
|
46
|
+
* @param options Optional - Optional parameters for chart creation. See {@link IHeatmapLegendOptions} for more details
|
|
47
|
+
*/
|
|
48
|
+
static create(divElement: string | HTMLDivElement, options?: IHeatmapLegendOptions): Promise<THeatmapLegend>;
|
|
49
|
+
private readonly SIZE;
|
|
50
|
+
private readonly wasmContext;
|
|
51
|
+
private sciChartSurface;
|
|
52
|
+
/**
|
|
53
|
+
* Creates a new HeatmapLegend wrapping a SciChartSurface. Use the {@link HeatmapLegend.create()} function to create this asynchronously
|
|
54
|
+
* @param sciChartSurface
|
|
55
|
+
* @param options
|
|
56
|
+
*/
|
|
57
|
+
constructor(sciChartSurface: SciChartSurface, options?: IHeatmapLegendOptions);
|
|
58
|
+
/**
|
|
59
|
+
* Deletes the {@link HeatmapLegend} control, its {@link innerSciChartSurface} and all associated webassembly memory
|
|
60
|
+
*/
|
|
61
|
+
delete(): void;
|
|
62
|
+
/**
|
|
63
|
+
* Returns the inner {@link SciChartSurface} which renders the heatmap legend
|
|
64
|
+
*/
|
|
65
|
+
get innerSciChartSurface(): TWebAssemblyChart;
|
|
66
|
+
/**
|
|
67
|
+
* Gets the default {@link TGradientStop | GradientStops} to apply to the inner {@link SciChartSurface}
|
|
68
|
+
* @protected
|
|
69
|
+
*/
|
|
70
|
+
getDefaultGradientStops(): TGradientStop[];
|
|
71
|
+
/**
|
|
72
|
+
* Gets the default options to apply to the inner {@link SciChartSurface} xAxis. Must conform to {@link IAxisBase2dOptions} interface
|
|
73
|
+
* @protected
|
|
74
|
+
*/
|
|
75
|
+
getDefaultXAxisOptions(): {
|
|
76
|
+
drawMajorGridLines: boolean;
|
|
77
|
+
drawMinorGridLines: boolean;
|
|
78
|
+
drawMajorTickLines: boolean;
|
|
79
|
+
drawMinorTickLines: boolean;
|
|
80
|
+
drawLabels: boolean;
|
|
81
|
+
};
|
|
82
|
+
/**
|
|
83
|
+
* Gets the default options to apply to the inner {@link SciChartSurface} yAxis. Must conform to {@link IAxisBase2dOptions} interface
|
|
84
|
+
* @protected
|
|
85
|
+
*/
|
|
86
|
+
getDefaultYAxisOptions(): {
|
|
87
|
+
maxAutoTicks: number;
|
|
88
|
+
drawMajorGridLines: boolean;
|
|
89
|
+
drawMinorGridLines: boolean;
|
|
90
|
+
drawLabels: boolean;
|
|
91
|
+
drawMajorTickLines: boolean;
|
|
92
|
+
drawMinorTickLines: boolean;
|
|
93
|
+
};
|
|
94
|
+
getZValues(minimum: number, maximum: number): number[][];
|
|
95
|
+
}
|
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
14
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
15
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
16
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
17
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
18
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
19
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
20
|
+
});
|
|
21
|
+
};
|
|
22
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
23
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
24
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
25
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
26
|
+
function step(op) {
|
|
27
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
28
|
+
while (_) try {
|
|
29
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
30
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
31
|
+
switch (op[0]) {
|
|
32
|
+
case 0: case 1: t = op; break;
|
|
33
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
34
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
35
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
36
|
+
default:
|
|
37
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
38
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
39
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
40
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
41
|
+
if (t[2]) _.ops.pop();
|
|
42
|
+
_.trys.pop(); continue;
|
|
43
|
+
}
|
|
44
|
+
op = body.call(thisArg, _);
|
|
45
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
46
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
50
|
+
exports.HeatmapLegend = void 0;
|
|
51
|
+
var Guard_1 = require("../../Core/Guard");
|
|
52
|
+
var NumberRange_1 = require("../../Core/NumberRange");
|
|
53
|
+
var zeroArray2D_1 = require("../../utils/zeroArray2D");
|
|
54
|
+
var UniformHeatmapDataSeries_1 = require("../Model/UniformHeatmapDataSeries");
|
|
55
|
+
var NumericAxis_1 = require("./Axis/NumericAxis");
|
|
56
|
+
var HeatmapColorMap_1 = require("./RenderableSeries/HeatmapColorMap");
|
|
57
|
+
var UniformHeatmapRenderableSeries_1 = require("./RenderableSeries/UniformHeatmapRenderableSeries");
|
|
58
|
+
var SciChartSurface_1 = require("./SciChartSurface");
|
|
59
|
+
var Deleter_1 = require("../../Core/Deleter");
|
|
60
|
+
/**
|
|
61
|
+
* @summary The HeatmapLegend displays a control which hosts a {@link SciChartSurface} in a specific Div on the chart.
|
|
62
|
+
* The legend contains a gradient fill and can be used in conjunction with {@link UniformHeatmapRenderableSeries},
|
|
63
|
+
* {@link NonUniformHeatmapRenderableSeries} or {@link SurfaceMeshRenderableSeries3D} to allow the user to see what colors map
|
|
64
|
+
* to what values on the heatmap or surface.
|
|
65
|
+
* @remarks This control will expand to fit its parent Div. Suggest placing the div to the right and floating 100px wide to
|
|
66
|
+
* create a good effect.
|
|
67
|
+
*/
|
|
68
|
+
var HeatmapLegend = /** @class */ (function () {
|
|
69
|
+
/**
|
|
70
|
+
* Creates a new HeatmapLegend wrapping a SciChartSurface. Use the {@link HeatmapLegend.create()} function to create this asynchronously
|
|
71
|
+
* @param sciChartSurface
|
|
72
|
+
* @param options
|
|
73
|
+
*/
|
|
74
|
+
function HeatmapLegend(sciChartSurface, options) {
|
|
75
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
76
|
+
this.SIZE = 100;
|
|
77
|
+
Guard_1.Guard.notNull(sciChartSurface, "sciChartSurface");
|
|
78
|
+
this.sciChartSurface = sciChartSurface;
|
|
79
|
+
this.wasmContext = sciChartSurface.webAssemblyContext2D;
|
|
80
|
+
var minimum = (_b = (_a = options === null || options === void 0 ? void 0 : options.colorMap) === null || _a === void 0 ? void 0 : _a.minimum) !== null && _b !== void 0 ? _b : 0;
|
|
81
|
+
var maximum = (_d = (_c = options === null || options === void 0 ? void 0 : options.colorMap) === null || _c === void 0 ? void 0 : _c.maximum) !== null && _d !== void 0 ? _d : 100;
|
|
82
|
+
var gradientStops = (_f = (_e = options === null || options === void 0 ? void 0 : options.colorMap) === null || _e === void 0 ? void 0 : _e.gradientStops) !== null && _f !== void 0 ? _f : this.getDefaultGradientStops();
|
|
83
|
+
// Add an XAxis and YAxis. Ensure properties are set via options
|
|
84
|
+
sciChartSurface.xAxes.add(new NumericAxis_1.NumericAxis(this.wasmContext, __assign({}, this.getDefaultXAxisOptions())));
|
|
85
|
+
sciChartSurface.yAxes.add(new NumericAxis_1.NumericAxis(this.wasmContext, __assign(__assign(__assign({}, this.getDefaultYAxisOptions()), options === null || options === void 0 ? void 0 : options.yAxisOptions), { visibleRange: new NumberRange_1.NumberRange(minimum, maximum) })));
|
|
86
|
+
// Create a 1D array of size 100, 1. This will be filled with values from 0...99 which will
|
|
87
|
+
// be mapped to colours according to the colorMap below.
|
|
88
|
+
var zValues = this.getZValues(minimum, maximum);
|
|
89
|
+
// Add a heatmap with 1D data. This contains a 1x100 array of values equal to 0...99.
|
|
90
|
+
// the values are mapped ot a colormap with the same gradient stops as the 3d chart. result is a 3d chart heat legend
|
|
91
|
+
sciChartSurface.renderableSeries.add(new UniformHeatmapRenderableSeries_1.UniformHeatmapRenderableSeries(this.wasmContext, {
|
|
92
|
+
dataSeries: new UniformHeatmapDataSeries_1.UniformHeatmapDataSeries(this.wasmContext, {
|
|
93
|
+
xStart: 0,
|
|
94
|
+
xStep: 1,
|
|
95
|
+
yStart: minimum,
|
|
96
|
+
yStep: (maximum - minimum) / this.SIZE,
|
|
97
|
+
zValues: zValues
|
|
98
|
+
}),
|
|
99
|
+
useLinearTextureFiltering: true,
|
|
100
|
+
colorMap: (_g = options === null || options === void 0 ? void 0 : options.colorMap) !== null && _g !== void 0 ? _g : new HeatmapColorMap_1.HeatmapColorMap({
|
|
101
|
+
minimum: minimum,
|
|
102
|
+
maximum: maximum,
|
|
103
|
+
gradientStops: gradientStops
|
|
104
|
+
})
|
|
105
|
+
}));
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* Asynchronously creates a {@link HeatmapLegend} and @link TSciChart | WebAssembly Context} to occupy the div by element ID in your DOM.
|
|
109
|
+
* @remarks This method is async and must be awaited
|
|
110
|
+
* @param divElement The Div Element ID or reference where the {@link HeatmapLegend} will reside
|
|
111
|
+
* @param options Optional - Optional parameters for chart creation. See {@link IHeatmapLegendOptions} for more details
|
|
112
|
+
*/
|
|
113
|
+
HeatmapLegend.create = function (divElement, options) {
|
|
114
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
115
|
+
var _a, sciChartSurface, wasmContext, heatmapLegend;
|
|
116
|
+
return __generator(this, function (_b) {
|
|
117
|
+
switch (_b.label) {
|
|
118
|
+
case 0: return [4 /*yield*/, SciChartSurface_1.SciChartSurface.create(divElement, {
|
|
119
|
+
theme: options === null || options === void 0 ? void 0 : options.theme
|
|
120
|
+
})];
|
|
121
|
+
case 1:
|
|
122
|
+
_a = _b.sent(), sciChartSurface = _a.sciChartSurface, wasmContext = _a.wasmContext;
|
|
123
|
+
heatmapLegend = new HeatmapLegend(sciChartSurface, options);
|
|
124
|
+
return [2 /*return*/, { wasmContext: wasmContext, heatmapLegend: heatmapLegend }];
|
|
125
|
+
}
|
|
126
|
+
});
|
|
127
|
+
});
|
|
128
|
+
};
|
|
129
|
+
/**
|
|
130
|
+
* Deletes the {@link HeatmapLegend} control, its {@link innerSciChartSurface} and all associated webassembly memory
|
|
131
|
+
*/
|
|
132
|
+
HeatmapLegend.prototype.delete = function () {
|
|
133
|
+
this.sciChartSurface = (0, Deleter_1.deleteSafe)(this.sciChartSurface);
|
|
134
|
+
};
|
|
135
|
+
Object.defineProperty(HeatmapLegend.prototype, "innerSciChartSurface", {
|
|
136
|
+
/**
|
|
137
|
+
* Returns the inner {@link SciChartSurface} which renders the heatmap legend
|
|
138
|
+
*/
|
|
139
|
+
get: function () {
|
|
140
|
+
return { sciChartSurface: this.sciChartSurface, wasmContext: this.wasmContext };
|
|
141
|
+
},
|
|
142
|
+
enumerable: false,
|
|
143
|
+
configurable: true
|
|
144
|
+
});
|
|
145
|
+
/**
|
|
146
|
+
* Gets the default {@link TGradientStop | GradientStops} to apply to the inner {@link SciChartSurface}
|
|
147
|
+
* @protected
|
|
148
|
+
*/
|
|
149
|
+
HeatmapLegend.prototype.getDefaultGradientStops = function () {
|
|
150
|
+
return [
|
|
151
|
+
{ offset: 1, color: "Red" },
|
|
152
|
+
{ offset: 0, color: "Blue" }
|
|
153
|
+
];
|
|
154
|
+
};
|
|
155
|
+
/**
|
|
156
|
+
* Gets the default options to apply to the inner {@link SciChartSurface} xAxis. Must conform to {@link IAxisBase2dOptions} interface
|
|
157
|
+
* @protected
|
|
158
|
+
*/
|
|
159
|
+
HeatmapLegend.prototype.getDefaultXAxisOptions = function () {
|
|
160
|
+
return {
|
|
161
|
+
drawMajorGridLines: false,
|
|
162
|
+
drawMinorGridLines: false,
|
|
163
|
+
drawMajorTickLines: false,
|
|
164
|
+
drawMinorTickLines: false,
|
|
165
|
+
drawLabels: false
|
|
166
|
+
};
|
|
167
|
+
};
|
|
168
|
+
/**
|
|
169
|
+
* Gets the default options to apply to the inner {@link SciChartSurface} yAxis. Must conform to {@link IAxisBase2dOptions} interface
|
|
170
|
+
* @protected
|
|
171
|
+
*/
|
|
172
|
+
HeatmapLegend.prototype.getDefaultYAxisOptions = function () {
|
|
173
|
+
return {
|
|
174
|
+
maxAutoTicks: 5,
|
|
175
|
+
drawMajorGridLines: false,
|
|
176
|
+
drawMinorGridLines: false,
|
|
177
|
+
drawLabels: true,
|
|
178
|
+
drawMajorTickLines: true,
|
|
179
|
+
drawMinorTickLines: true
|
|
180
|
+
};
|
|
181
|
+
};
|
|
182
|
+
HeatmapLegend.prototype.getZValues = function (minimum, maximum) {
|
|
183
|
+
var legendHeatmapData = (0, zeroArray2D_1.zeroArray2D)([this.SIZE, 1]);
|
|
184
|
+
var step = (maximum - minimum) / (this.SIZE - 1);
|
|
185
|
+
for (var i = 0, j = minimum; i < this.SIZE; i++, j += step) {
|
|
186
|
+
legendHeatmapData[i][0] = j;
|
|
187
|
+
}
|
|
188
|
+
return legendHeatmapData;
|
|
189
|
+
};
|
|
190
|
+
return HeatmapLegend;
|
|
191
|
+
}());
|
|
192
|
+
exports.HeatmapLegend = HeatmapLegend;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { IDeletable } from "../../../Core/IDeletable";
|
|
2
|
-
import { SCRTColorVertex, SCRTRectVertex, TSciChart, VectorColorVertex, VectorRectVertex } from "../../../types/TSciChart";
|
|
2
|
+
import { SCRTColorVertex, SCRTFontKey, SCRTRectVertex, TSciChart, TSRTextBounds, TSRVector4, VectorColorVertex, VectorRectVertex } from "../../../types/TSciChart";
|
|
3
|
+
import { TTextStyle } from "../Axis/AxisCore";
|
|
3
4
|
export declare const freeCache: (wasmContext: TSciChart) => IDeletable;
|
|
4
5
|
/**
|
|
5
6
|
* Returns an empty vector of Rectangles
|
|
@@ -9,5 +10,17 @@ export declare const freeCache: (wasmContext: TSciChart) => IDeletable;
|
|
|
9
10
|
*/
|
|
10
11
|
export declare const getVectorRectVertex: (wasmContext: TSciChart, maxSize?: number) => VectorRectVertex;
|
|
11
12
|
export declare const getVectorColorVertex: (wasmContext: TSciChart, maxSize?: number) => VectorColorVertex;
|
|
12
|
-
export declare const getVertex: (wasmContext: TSciChart, x: number, y: number) => SCRTColorVertex;
|
|
13
|
+
export declare const getVertex: (wasmContext: TSciChart, x: number, y: number, colour?: number) => SCRTColorVertex;
|
|
14
|
+
export declare const getTextBounds: (wasmContext: TSciChart) => TSRTextBounds;
|
|
13
15
|
export declare const getNativeRect: (wasmContext: TSciChart, xTopLeft: number, yTopLeft: number, xBottomRight: number, yBottomRight: number) => SCRTRectVertex;
|
|
16
|
+
export declare const getVector4: (wasmContext: TSciChart, x: number, y: number, z: number, w: number) => TSRVector4;
|
|
17
|
+
/**
|
|
18
|
+
* get a fontKey required to aquire a native font
|
|
19
|
+
* @param webAssemblyContext
|
|
20
|
+
* @param labelStyle
|
|
21
|
+
* @param transformed set true to get an alternative instance of the font which can be used multiple times while transformations are in effect,
|
|
22
|
+
* without disrupting global font rendering
|
|
23
|
+
* @returns
|
|
24
|
+
*/
|
|
25
|
+
export declare const getFontKey: (webAssemblyContext: TSciChart, labelStyle: TTextStyle, advanced?: boolean, transformed?: boolean) => SCRTFontKey;
|
|
26
|
+
export declare const getAllFontKeys: (webAssemblyContext: TSciChart) => SCRTFontKey[];
|
|
@@ -1,18 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getNativeRect = exports.getVertex = exports.getVectorColorVertex = exports.getVectorRectVertex = exports.freeCache = void 0;
|
|
3
|
+
exports.getAllFontKeys = exports.getFontKey = exports.getVector4 = exports.getNativeRect = exports.getTextBounds = exports.getVertex = exports.getVectorColorVertex = exports.getVectorRectVertex = exports.freeCache = void 0;
|
|
4
4
|
var Deleter_1 = require("../../../Core/Deleter");
|
|
5
|
+
var LabelCache_1 = require("../Axis/LabelProvider/LabelCache");
|
|
5
6
|
var objectCache = new Map();
|
|
6
7
|
var getCache = function (wasmContext) {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
var canvasId = wasmContext.canvas.id;
|
|
8
|
+
var _a, _b;
|
|
9
|
+
var canvasId = (_b = (_a = wasmContext === null || wasmContext === void 0 ? void 0 : wasmContext.canvas) === null || _a === void 0 ? void 0 : _a.id) !== null && _b !== void 0 ? _b : "TEST";
|
|
10
10
|
if (!objectCache.has(canvasId)) {
|
|
11
11
|
objectCache.set(canvasId, {
|
|
12
12
|
vecRects: undefined,
|
|
13
13
|
vecColorVertex: undefined,
|
|
14
14
|
vertex: undefined,
|
|
15
|
-
rect: undefined
|
|
15
|
+
rect: undefined,
|
|
16
|
+
vector4: undefined,
|
|
17
|
+
textBounds: undefined,
|
|
18
|
+
keyCache: new Map()
|
|
16
19
|
});
|
|
17
20
|
}
|
|
18
21
|
return objectCache.get(canvasId);
|
|
@@ -29,6 +32,9 @@ var freeCache = function (wasmContext) {
|
|
|
29
32
|
(0, Deleter_1.deleteSafe)(cache.vecColorVertex);
|
|
30
33
|
(0, Deleter_1.deleteSafe)(cache.vertex);
|
|
31
34
|
(0, Deleter_1.deleteSafe)(cache.rect);
|
|
35
|
+
(0, Deleter_1.deleteSafe)(cache.vector4);
|
|
36
|
+
(0, Deleter_1.deleteSafe)(cache.textBounds);
|
|
37
|
+
cache.keyCache.forEach(function (key) { return (0, Deleter_1.deleteSafe)(key); });
|
|
32
38
|
}
|
|
33
39
|
objectCache.delete(canvasId);
|
|
34
40
|
}
|
|
@@ -71,7 +77,7 @@ var getVectorColorVertex = function (wasmContext, maxSize) {
|
|
|
71
77
|
return vecColorVertex;
|
|
72
78
|
};
|
|
73
79
|
exports.getVectorColorVertex = getVectorColorVertex;
|
|
74
|
-
var getVertex = function (wasmContext, x, y) {
|
|
80
|
+
var getVertex = function (wasmContext, x, y, colour) {
|
|
75
81
|
var cache = getCache(wasmContext);
|
|
76
82
|
if (!cache)
|
|
77
83
|
return undefined;
|
|
@@ -82,10 +88,23 @@ var getVertex = function (wasmContext, x, y) {
|
|
|
82
88
|
}
|
|
83
89
|
else {
|
|
84
90
|
vertex.SetPosition(x, y);
|
|
91
|
+
vertex.m_uiColor = colour !== null && colour !== void 0 ? colour : 4294967295; // masked color
|
|
85
92
|
}
|
|
86
93
|
return vertex;
|
|
87
94
|
};
|
|
88
95
|
exports.getVertex = getVertex;
|
|
96
|
+
var getTextBounds = function (wasmContext) {
|
|
97
|
+
var cache = getCache(wasmContext);
|
|
98
|
+
if (!cache)
|
|
99
|
+
return undefined;
|
|
100
|
+
var textBounds = cache.textBounds;
|
|
101
|
+
if (!textBounds) {
|
|
102
|
+
textBounds = new wasmContext.TSRTextBounds();
|
|
103
|
+
cache.textBounds = textBounds;
|
|
104
|
+
}
|
|
105
|
+
return textBounds;
|
|
106
|
+
};
|
|
107
|
+
exports.getTextBounds = getTextBounds;
|
|
89
108
|
var getNativeRect = function (wasmContext, xTopLeft, yTopLeft, xBottomRight, yBottomRight) {
|
|
90
109
|
var cache = getCache(wasmContext);
|
|
91
110
|
var rect = cache.rect;
|
|
@@ -99,3 +118,50 @@ var getNativeRect = function (wasmContext, xTopLeft, yTopLeft, xBottomRight, yBo
|
|
|
99
118
|
return rect;
|
|
100
119
|
};
|
|
101
120
|
exports.getNativeRect = getNativeRect;
|
|
121
|
+
var getVector4 = function (wasmContext, x, y, z, w) {
|
|
122
|
+
var cache = getCache(wasmContext);
|
|
123
|
+
var vector4 = cache.vector4;
|
|
124
|
+
if (!vector4) {
|
|
125
|
+
vector4 = new wasmContext.TSRVector4(x, y, z, w);
|
|
126
|
+
cache.vector4 = vector4;
|
|
127
|
+
}
|
|
128
|
+
else {
|
|
129
|
+
vector4.Assign(x, y, z, w);
|
|
130
|
+
}
|
|
131
|
+
return vector4;
|
|
132
|
+
};
|
|
133
|
+
exports.getVector4 = getVector4;
|
|
134
|
+
/**
|
|
135
|
+
* get a fontKey required to aquire a native font
|
|
136
|
+
* @param webAssemblyContext
|
|
137
|
+
* @param labelStyle
|
|
138
|
+
* @param transformed set true to get an alternative instance of the font which can be used multiple times while transformations are in effect,
|
|
139
|
+
* without disrupting global font rendering
|
|
140
|
+
* @returns
|
|
141
|
+
*/
|
|
142
|
+
var getFontKey = function (webAssemblyContext, labelStyle, advanced, transformed) {
|
|
143
|
+
if (advanced === void 0) { advanced = false; }
|
|
144
|
+
if (transformed === void 0) { transformed = false; }
|
|
145
|
+
var cache = getCache(webAssemblyContext);
|
|
146
|
+
if (!cache)
|
|
147
|
+
return undefined;
|
|
148
|
+
var keyCache = cache.keyCache;
|
|
149
|
+
var newStyle = {
|
|
150
|
+
fontFamily: labelStyle.fontFamily,
|
|
151
|
+
fontSize: labelStyle.fontSize,
|
|
152
|
+
extras: (advanced ? "advanced" : "") + (transformed ? "transformed" : ""),
|
|
153
|
+
providerId: undefined
|
|
154
|
+
};
|
|
155
|
+
var styleId = LabelCache_1.labelCache.getStyleId(newStyle);
|
|
156
|
+
if (!keyCache.has(styleId)) {
|
|
157
|
+
var fontKey = new webAssemblyContext.SCRTFontKey(labelStyle.fontFamily, labelStyle.fontSize, transformed, advanced);
|
|
158
|
+
keyCache.set(styleId, fontKey);
|
|
159
|
+
}
|
|
160
|
+
return keyCache.get(styleId);
|
|
161
|
+
};
|
|
162
|
+
exports.getFontKey = getFontKey;
|
|
163
|
+
var getAllFontKeys = function (webAssemblyContext) {
|
|
164
|
+
var cache = getCache(webAssemblyContext);
|
|
165
|
+
return Array.from(cache.keyCache.values());
|
|
166
|
+
};
|
|
167
|
+
exports.getAllFontKeys = getAllFontKeys;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { TLayoutManagerDefinition } from "../../Builder/buildSurface";
|
|
2
|
+
import { Rect } from "../../Core/Rect";
|
|
2
3
|
import { Thickness } from "../../Core/Thickness";
|
|
4
|
+
import { EAutoColorMode } from "../../types/AutoColorMode";
|
|
3
5
|
import { TBorder } from "../../types/TBorder";
|
|
6
|
+
import { ECoordinateMode } from "./Annotations/AnnotationBase";
|
|
4
7
|
import { ISurfaceOptionsBase } from "./SciChartSurfaceBase";
|
|
5
8
|
/**
|
|
6
9
|
* Options passed to a {@link SciChartSurface} in the {@link SciChartSurface.create} function
|
|
@@ -38,4 +41,47 @@ export interface I2DSurfaceOptions extends ISurfaceOptionsBase {
|
|
|
38
41
|
*/
|
|
39
42
|
canvasBorder?: TBorder;
|
|
40
43
|
drawSeriesBehindAxis?: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* Optional - Controls how often series colours set to AUTO_COLOR will be resolved. Default OnAddRemoveSeries
|
|
46
|
+
*/
|
|
47
|
+
autoColorMode?: EAutoColorMode;
|
|
48
|
+
}
|
|
49
|
+
export interface I2DSubSurfaceOptions extends I2DSurfaceOptions {
|
|
50
|
+
/**
|
|
51
|
+
* A rectangle defining the position and size of a subchart.
|
|
52
|
+
* If {@link coordinateMode} is Relative (the default) then the values give the size as a proportion of the parent div, and all properties must be between 0 and 1 inclusive.
|
|
53
|
+
* If {@link coordinateMode} is DataValue, values will be converted to coordinates using {@link parentXAxisId} and {@link parentYAxisId}. Subchart will be clpped to the parent SeriesViewRect
|
|
54
|
+
* Can only be set if this is a subChart. See {@link addSubChart}
|
|
55
|
+
*/
|
|
56
|
+
position?: Rect;
|
|
57
|
+
/** An id or div element that will wrap the subchart. This can contain top, left, bottom and right section divs. The chart will shrink to fit the sections */
|
|
58
|
+
subChartContainerId?: string | HTMLDivElement;
|
|
59
|
+
/** Whether other surfaces, including the parent, will be visible underneath this surface */
|
|
60
|
+
isTransparent?: boolean;
|
|
61
|
+
/** Sets if the subchart is visible, allowing you to hide a subchart without removing it from the parent surface */
|
|
62
|
+
isVisible?: boolean;
|
|
63
|
+
/**
|
|
64
|
+
* Sets additional absolute padding between the SciChartSubSurface and its parent, in order top, right, bottom, left
|
|
65
|
+
* {@link subPosition} is applied first, then this padding is added.
|
|
66
|
+
*/
|
|
67
|
+
subChartPadding?: Thickness;
|
|
68
|
+
/**
|
|
69
|
+
* Gets or sets the {@link ECoordinateMode} used when calculating the actual position based on the {@link subPosition}
|
|
70
|
+
* Default Relative
|
|
71
|
+
*/
|
|
72
|
+
coordinateMode?: ECoordinateMode;
|
|
73
|
+
/**
|
|
74
|
+
* Sets the AxisId used to determing which X Axis should be used when calculating the actual position based on the {@link subPosition}
|
|
75
|
+
* if {@link coordinateMode} is DataValue
|
|
76
|
+
*/
|
|
77
|
+
parentXAxisId?: string;
|
|
78
|
+
/**
|
|
79
|
+
* Sets the AxisId used to determing which Y Axis should be used when calculating the actual position based on the {@link subPosition}
|
|
80
|
+
* if {@link coordinateMode} is DataValue
|
|
81
|
+
*/
|
|
82
|
+
parentYAxisId?: string;
|
|
83
|
+
/**
|
|
84
|
+
* Gets or sets scale property for all sections
|
|
85
|
+
*/
|
|
86
|
+
sectionScale?: number;
|
|
41
87
|
}
|
|
@@ -2,6 +2,7 @@ import { TPointMarkerDefinition } from "../../../Builder/buildSeries";
|
|
|
2
2
|
import { ICacheable } from "../../../Core/ICacheable";
|
|
3
3
|
import { EPointMarkerType } from "../../../types/PointMarkerType";
|
|
4
4
|
import { TSciChart } from "../../../types/TSciChart";
|
|
5
|
+
import { IThemeProvider } from "../../Themes/IThemeProvider";
|
|
5
6
|
import { BasePointMarkerStyle } from "../RenderableSeries/Animations/BasePointMarkerStyle";
|
|
6
7
|
import { CanvasTexture } from "../TextureManager/CanvasTexture";
|
|
7
8
|
import { TDpiChangedEventArgs } from "../TextureManager/DpiHelper";
|
|
@@ -166,6 +167,10 @@ export declare abstract class BasePointMarker implements IPointMarker, ICacheabl
|
|
|
166
167
|
*/
|
|
167
168
|
onDpiChanged(args: TDpiChangedEventArgs): void;
|
|
168
169
|
/** @inheritDoc */
|
|
170
|
+
resolveAutoColors(index: number, maxSeries: number, theme: IThemeProvider): void;
|
|
171
|
+
/** @inheritDoc */
|
|
172
|
+
adjustAutoColor(propertyName: string, color: string): string;
|
|
173
|
+
/** @inheritDoc */
|
|
169
174
|
resumeUpdates(): void;
|
|
170
175
|
/** @inheritDoc */
|
|
171
176
|
suspendUpdates(): void;
|
|
@@ -4,6 +4,7 @@ exports.BasePointMarker = void 0;
|
|
|
4
4
|
var app_1 = require("../../../constants/app");
|
|
5
5
|
var Deleter_1 = require("../../../Core/Deleter");
|
|
6
6
|
var WebGlRenderContext2D_1 = require("../../Drawing/WebGlRenderContext2D");
|
|
7
|
+
var IThemeProvider_1 = require("../../Themes/IThemeProvider");
|
|
7
8
|
var PointMarkerStyle_1 = require("../RenderableSeries/Animations/PointMarkerStyle");
|
|
8
9
|
var SciChartSurfaceBase_1 = require("../SciChartSurfaceBase");
|
|
9
10
|
var CanvasTexture_1 = require("../TextureManager/CanvasTexture");
|
|
@@ -48,6 +49,12 @@ var BasePointMarker = /** @class */ (function () {
|
|
|
48
49
|
* Gets or sets the point-marker fill as an HTML Color Code
|
|
49
50
|
*/
|
|
50
51
|
get: function () {
|
|
52
|
+
if (this.fillProperty === IThemeProvider_1.AUTO_COLOR) {
|
|
53
|
+
return "#00000000";
|
|
54
|
+
}
|
|
55
|
+
if (this.fillProperty.startsWith(IThemeProvider_1.AUTO_COLOR)) {
|
|
56
|
+
return this.fillProperty.substring(IThemeProvider_1.AUTO_COLOR.length);
|
|
57
|
+
}
|
|
51
58
|
return this.fillProperty;
|
|
52
59
|
},
|
|
53
60
|
/**
|
|
@@ -66,6 +73,12 @@ var BasePointMarker = /** @class */ (function () {
|
|
|
66
73
|
* Gets or sets the point-marker stroke as an HTML Color Code
|
|
67
74
|
*/
|
|
68
75
|
get: function () {
|
|
76
|
+
if (this.strokeProperty === IThemeProvider_1.AUTO_COLOR) {
|
|
77
|
+
return "#00000000";
|
|
78
|
+
}
|
|
79
|
+
if (this.strokeProperty.startsWith(IThemeProvider_1.AUTO_COLOR)) {
|
|
80
|
+
return this.strokeProperty.substring(IThemeProvider_1.AUTO_COLOR.length);
|
|
81
|
+
}
|
|
69
82
|
return this.strokeProperty;
|
|
70
83
|
},
|
|
71
84
|
/**
|
|
@@ -268,6 +281,21 @@ var BasePointMarker = /** @class */ (function () {
|
|
|
268
281
|
this.invalidateCache();
|
|
269
282
|
};
|
|
270
283
|
/** @inheritDoc */
|
|
284
|
+
BasePointMarker.prototype.resolveAutoColors = function (index, maxSeries, theme) {
|
|
285
|
+
if (this.strokeProperty.startsWith(IThemeProvider_1.AUTO_COLOR)) {
|
|
286
|
+
var color = theme.getStrokeColor(index, maxSeries, this.webAssemblyContext);
|
|
287
|
+
this.stroke = IThemeProvider_1.AUTO_COLOR + this.adjustAutoColor("stroke", color);
|
|
288
|
+
}
|
|
289
|
+
if (this.fillProperty.startsWith(IThemeProvider_1.AUTO_COLOR)) {
|
|
290
|
+
var color = theme.getFillColor(index, maxSeries, this.webAssemblyContext);
|
|
291
|
+
this.fill = IThemeProvider_1.AUTO_COLOR + this.adjustAutoColor("fill", color);
|
|
292
|
+
}
|
|
293
|
+
};
|
|
294
|
+
/** @inheritDoc */
|
|
295
|
+
BasePointMarker.prototype.adjustAutoColor = function (propertyName, color) {
|
|
296
|
+
return color;
|
|
297
|
+
};
|
|
298
|
+
/** @inheritDoc */
|
|
271
299
|
BasePointMarker.prototype.resumeUpdates = function () {
|
|
272
300
|
this.isUpdateSuspended = false;
|
|
273
301
|
this.recreateSpriteTextures();
|