scichart 2.2.2417 → 3.0.0-beta.224
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 +83 -10
- 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 +40 -0
- package/Charting/ChartModifiers/RolloverModifier.js +40 -3
- package/Charting/ChartModifiers/RubberBandXyZoomModifier.js +2 -1
- 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 +92 -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 +16 -17
- 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/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 +225 -7
- package/Charting/Visuals/SciChartSurface.js +782 -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 +199 -30
- 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/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 +8 -0
- package/utils/translate.js +27 -5
- package/utils/zeroArray2D.d.ts +5 -0
- package/utils/zeroArray2D.js +5 -0
|
@@ -28,6 +28,11 @@ export declare type TSciChartConfig = {
|
|
|
28
28
|
testWasm?: TSciChart | TSciChart3D;
|
|
29
29
|
};
|
|
30
30
|
export interface ISurfaceOptionsBase {
|
|
31
|
+
/**
|
|
32
|
+
* Allows you to set custom Id for the surface;
|
|
33
|
+
* @remarks If skipped the Id will be auto-generated
|
|
34
|
+
*/
|
|
35
|
+
id?: string;
|
|
31
36
|
/**
|
|
32
37
|
* Optional - The theme applied to the {@link SciChartSurface} on startup
|
|
33
38
|
* @remarks see {@link IThemeProvider} for properties which can affect SciChart theme. Two default
|
|
@@ -124,7 +129,6 @@ export declare abstract class SciChartSurfaceBase implements ISciChartSurfaceBas
|
|
|
124
129
|
*/
|
|
125
130
|
static setLicenseCallback(callback: (queryString: string) => Promise<Response>): void;
|
|
126
131
|
static resolveOptions(options: ISurfaceOptionsBase): ISurfaceOptionsBase;
|
|
127
|
-
readonly id: string;
|
|
128
132
|
/**
|
|
129
133
|
* A propertyChanged EventHandler. See {@link EventHandler} for how to subscribe to and be
|
|
130
134
|
* notified when a property changes on the {@link SciChartSurfaceBase}
|
|
@@ -176,8 +180,10 @@ export declare abstract class SciChartSurfaceBase implements ISciChartSurfaceBas
|
|
|
176
180
|
protected isInitializedProperty: boolean;
|
|
177
181
|
protected isDeletedProperty: boolean;
|
|
178
182
|
protected backgroundProperty: string;
|
|
183
|
+
protected idProperty: string;
|
|
179
184
|
protected widthAspect: number;
|
|
180
185
|
protected heightAspect: number;
|
|
186
|
+
protected disableAspect: boolean;
|
|
181
187
|
protected loaderJson: any;
|
|
182
188
|
private readonly sharedWasmContext;
|
|
183
189
|
private readonly suspendableIdProperty;
|
|
@@ -191,6 +197,14 @@ export declare abstract class SciChartSurfaceBase implements ISciChartSurfaceBas
|
|
|
191
197
|
* @param canvases A list of {@link TSciChartSurfaceCanvases} to draw to
|
|
192
198
|
*/
|
|
193
199
|
protected constructor(webAssemblyContext: TSciChart | TSciChart3D, canvases?: TSciChartSurfaceCanvases);
|
|
200
|
+
/**
|
|
201
|
+
* Gets or sets the SciChartSurface Id
|
|
202
|
+
*/
|
|
203
|
+
get id(): string;
|
|
204
|
+
/**
|
|
205
|
+
* Gets or sets the SciChartSurface Id
|
|
206
|
+
*/
|
|
207
|
+
set id(value: string);
|
|
194
208
|
/**
|
|
195
209
|
* Gets or sets the SciChartSurface Background as an HTML color code
|
|
196
210
|
*/
|
|
@@ -294,6 +308,7 @@ export declare abstract class SciChartSurfaceBase implements ISciChartSurfaceBas
|
|
|
294
308
|
* @inheritDoc
|
|
295
309
|
*/
|
|
296
310
|
onDpiChanged(args: TDpiChangedEventArgs): void;
|
|
311
|
+
get chartModifierGroups(): string[];
|
|
297
312
|
protected applyOptions(options: I2DSurfaceOptions): void;
|
|
298
313
|
/**
|
|
299
314
|
* Detaches a {@link ChartModifierBase2D} from the {@link SciChartSurfaceBase}
|
|
@@ -11,6 +11,7 @@ var ObservableArray_1 = require("../../Core/ObservableArray");
|
|
|
11
11
|
var PropertyChangedEventArgs_1 = require("../../Core/PropertyChangedEventArgs");
|
|
12
12
|
var WebGlHelper_1 = require("../../Core/WebGlHelper");
|
|
13
13
|
var BaseType_1 = require("../../types/BaseType");
|
|
14
|
+
var array_1 = require("../../utils/array");
|
|
14
15
|
var guid_1 = require("../../utils/guid");
|
|
15
16
|
var ChartModifierBase_1 = require("../ChartModifiers/ChartModifierBase");
|
|
16
17
|
var SciChartJSDarkv2Theme_1 = require("../Themes/SciChartJSDarkv2Theme");
|
|
@@ -46,13 +47,14 @@ var SciChartSurfaceBase = /** @class */ (function () {
|
|
|
46
47
|
* @param canvases A list of {@link TSciChartSurfaceCanvases} to draw to
|
|
47
48
|
*/
|
|
48
49
|
function SciChartSurfaceBase(webAssemblyContext, canvases) {
|
|
49
|
-
var _this = this;
|
|
50
50
|
if (canvases === void 0) { canvases = {}; }
|
|
51
|
-
|
|
51
|
+
var _this = this;
|
|
52
52
|
this.themeProviderProperty = SciChartSurfaceBase.DEFAULT_THEME;
|
|
53
53
|
this.previousThemeProviderProperty = SciChartSurfaceBase.DEFAULT_THEME;
|
|
54
54
|
this.isInitializedProperty = false;
|
|
55
55
|
this.isDeletedProperty = false;
|
|
56
|
+
this.backgroundProperty = SciChartSurfaceBase.DEFAULT_THEME.sciChartBackground;
|
|
57
|
+
this.idProperty = (0, guid_1.generateGuid)();
|
|
56
58
|
this.suspendableIdProperty = (0, guid_1.generateGuid)();
|
|
57
59
|
this.isAlphaEnabledProperty = true;
|
|
58
60
|
this.deletables = [];
|
|
@@ -140,6 +142,22 @@ var SciChartSurfaceBase = /** @class */ (function () {
|
|
|
140
142
|
}
|
|
141
143
|
return options;
|
|
142
144
|
};
|
|
145
|
+
Object.defineProperty(SciChartSurfaceBase.prototype, "id", {
|
|
146
|
+
/**
|
|
147
|
+
* Gets or sets the SciChartSurface Id
|
|
148
|
+
*/
|
|
149
|
+
get: function () {
|
|
150
|
+
return this.idProperty;
|
|
151
|
+
},
|
|
152
|
+
/**
|
|
153
|
+
* Gets or sets the SciChartSurface Id
|
|
154
|
+
*/
|
|
155
|
+
set: function (value) {
|
|
156
|
+
this.idProperty = value;
|
|
157
|
+
},
|
|
158
|
+
enumerable: false,
|
|
159
|
+
configurable: true
|
|
160
|
+
});
|
|
143
161
|
Object.defineProperty(SciChartSurfaceBase.prototype, "background", {
|
|
144
162
|
/**
|
|
145
163
|
* Gets or sets the SciChartSurface Background as an HTML color code
|
|
@@ -334,9 +352,23 @@ var SciChartSurfaceBase = /** @class */ (function () {
|
|
|
334
352
|
SciChartSurfaceBase.prototype.onDpiChanged = function (args) {
|
|
335
353
|
this.invalidateElement();
|
|
336
354
|
};
|
|
355
|
+
Object.defineProperty(SciChartSurfaceBase.prototype, "chartModifierGroups", {
|
|
356
|
+
get: function () {
|
|
357
|
+
var arr = this.chartModifiers
|
|
358
|
+
.asArray()
|
|
359
|
+
.filter(function (cm) { return cm.modifierGroup !== undefined; })
|
|
360
|
+
.map(function (el) { return el.modifierGroup; });
|
|
361
|
+
return (0, array_1.getUniqueValues)(arr);
|
|
362
|
+
},
|
|
363
|
+
enumerable: false,
|
|
364
|
+
configurable: true
|
|
365
|
+
});
|
|
337
366
|
SciChartSurfaceBase.prototype.applyOptions = function (options) {
|
|
367
|
+
var _a;
|
|
368
|
+
this.idProperty = (_a = options === null || options === void 0 ? void 0 : options.id) !== null && _a !== void 0 ? _a : this.idProperty;
|
|
338
369
|
this.widthAspect = options === null || options === void 0 ? void 0 : options.widthAspect;
|
|
339
370
|
this.heightAspect = options === null || options === void 0 ? void 0 : options.heightAspect;
|
|
371
|
+
this.disableAspect = options === null || options === void 0 ? void 0 : options.disableAspect;
|
|
340
372
|
};
|
|
341
373
|
/**
|
|
342
374
|
* Detaches a {@link ChartModifierBase2D} from the {@link SciChartSurfaceBase}
|
|
@@ -68,7 +68,7 @@ var CanvasTexture = /** @class */ (function () {
|
|
|
68
68
|
* Get an HTML5 {@link CanvasRenderingContext2D} to draw on.
|
|
69
69
|
*/
|
|
70
70
|
CanvasTexture.prototype.getContext = function () {
|
|
71
|
-
return this.canvas.getContext("2d");
|
|
71
|
+
return this.canvas.getContext("2d", { willReadFrequently: true });
|
|
72
72
|
};
|
|
73
73
|
/**
|
|
74
74
|
* Get the SciChart WebAssembly / WebGL {@link TSRTexture | Texture}
|
|
@@ -84,9 +84,6 @@ var DpiHelper = /** @class */ (function () {
|
|
|
84
84
|
console.log("setWidth ".concat(canvas.id, " backBuffer=").concat(desiredWidth * DpiHelper.PIXEL_RATIO, " display=").concat(desiredWidth));
|
|
85
85
|
}
|
|
86
86
|
// https://www.khronos.org/webgl/wiki/HandlingHighDPI
|
|
87
|
-
//
|
|
88
|
-
// Display size set by style
|
|
89
|
-
canvas.style.width = desiredWidth + "px";
|
|
90
87
|
// Size of drawingbuffer is set by width, height
|
|
91
88
|
canvas.width = desiredWidth * DpiHelper.PIXEL_RATIO;
|
|
92
89
|
};
|
|
@@ -100,9 +97,6 @@ var DpiHelper = /** @class */ (function () {
|
|
|
100
97
|
console.log("setHeight ".concat(canvas.id, " backBuffer=").concat(desiredHeight * DpiHelper.PIXEL_RATIO, " display=").concat(desiredHeight));
|
|
101
98
|
}
|
|
102
99
|
// https://www.khronos.org/webgl/wiki/HandlingHighDPI
|
|
103
|
-
//
|
|
104
|
-
// Display size set by style
|
|
105
|
-
canvas.style.height = desiredHeight + "px";
|
|
106
100
|
// Size of drawingbuffer is set by width, height
|
|
107
101
|
canvas.height = desiredHeight * DpiHelper.PIXEL_RATIO;
|
|
108
102
|
};
|
|
@@ -118,7 +112,9 @@ var DpiHelper = /** @class */ (function () {
|
|
|
118
112
|
if (dpiScale === void 0) { dpiScale = DpiHelper.PIXEL_RATIO; }
|
|
119
113
|
var dpiAdjusted = __assign({}, textStyle);
|
|
120
114
|
dpiAdjusted.fontSize = Math.round(dpiAdjusted.fontSize * dpiScale);
|
|
121
|
-
|
|
115
|
+
if (textStyle.padding) {
|
|
116
|
+
dpiAdjusted.padding = DpiHelper.adjustThickness(textStyle.padding, dpiScale);
|
|
117
|
+
}
|
|
122
118
|
return dpiAdjusted;
|
|
123
119
|
};
|
|
124
120
|
DpiHelper.adjustStrokeSize = function (gridLineStyle, dpiScale) {
|
|
@@ -14,6 +14,17 @@ export declare class TextureManager implements IDeletable {
|
|
|
14
14
|
private ctx;
|
|
15
15
|
constructor(webAssemblyContext: TSciChart);
|
|
16
16
|
createSimpleTextTexture(text: string, textStyle: TTextStyle, backgroundColor?: string, displayVertically?: boolean, displayMirrored?: boolean, opacity?: number): TTextureObject;
|
|
17
|
+
/**
|
|
18
|
+
* Create a text texture supporting multiline and arbitrary rotation
|
|
19
|
+
* @param text
|
|
20
|
+
* @param textStyle
|
|
21
|
+
* @param rotation
|
|
22
|
+
* @param lineSpacing Expressed as a fraction of the font size. Default 1.1
|
|
23
|
+
* @param backgroundColor
|
|
24
|
+
* @param opacity
|
|
25
|
+
* @returns
|
|
26
|
+
*/
|
|
27
|
+
createTextTextureNative(text: string[], textStyle: TTextStyle, rotation?: number, lineSpacing?: number, backgroundColor?: string, opacity?: number): TTextureObject;
|
|
17
28
|
/**
|
|
18
29
|
* Create a text texture supporting multiline and arbitrary rotation
|
|
19
30
|
* @param text
|
|
@@ -5,6 +5,8 @@ var app_1 = require("../../../constants/app");
|
|
|
5
5
|
var AxisAlignment_1 = require("../../../types/AxisAlignment");
|
|
6
6
|
var LabelAlignment_1 = require("../../../types/LabelAlignment");
|
|
7
7
|
var font_1 = require("../../../utils/font");
|
|
8
|
+
var parseColor_1 = require("../../../utils/parseColor");
|
|
9
|
+
var NativeObject_1 = require("../Helpers/NativeObject");
|
|
8
10
|
var DpiHelper_1 = require("./DpiHelper");
|
|
9
11
|
/** @ignore */
|
|
10
12
|
var DEFAULT_HEIGHT = 1080;
|
|
@@ -21,7 +23,7 @@ var TextureManager = /** @class */ (function () {
|
|
|
21
23
|
this.canvas = document.createElement("canvas");
|
|
22
24
|
this.canvas.width = DEFAULT_WIDTH;
|
|
23
25
|
this.canvas.height = DEFAULT_HEIGHT;
|
|
24
|
-
this.ctx = this.canvas.getContext("2d");
|
|
26
|
+
this.ctx = this.canvas.getContext("2d", { willReadFrequently: true });
|
|
25
27
|
}
|
|
26
28
|
}
|
|
27
29
|
TextureManager.prototype.createSimpleTextTexture = function (text, textStyle, backgroundColor, displayVertically, displayMirrored, opacity) {
|
|
@@ -36,6 +38,32 @@ var TextureManager = /** @class */ (function () {
|
|
|
36
38
|
}
|
|
37
39
|
return this.createTextTexture([text], textStyle, rotation, undefined, backgroundColor, opacity);
|
|
38
40
|
};
|
|
41
|
+
/**
|
|
42
|
+
* Create a text texture supporting multiline and arbitrary rotation
|
|
43
|
+
* @param text
|
|
44
|
+
* @param textStyle
|
|
45
|
+
* @param rotation
|
|
46
|
+
* @param lineSpacing Expressed as a fraction of the font size. Default 1.1
|
|
47
|
+
* @param backgroundColor
|
|
48
|
+
* @param opacity
|
|
49
|
+
* @returns
|
|
50
|
+
*/
|
|
51
|
+
TextureManager.prototype.createTextTextureNative = function (text, textStyle, rotation, lineSpacing, backgroundColor, opacity) {
|
|
52
|
+
var fontStyle = textStyle.fontStyle, fontWeight = textStyle.fontWeight, fontFamily = textStyle.fontFamily, fontSizePx = textStyle.fontSize, padding = textStyle.padding, alignment = textStyle.alignment, color = textStyle.color;
|
|
53
|
+
var nativeContext = this.webAssemblyContext.SCRTGetMainRenderContext2D();
|
|
54
|
+
// TODO support rotation, spacing and alignment
|
|
55
|
+
var fontKey = (0, NativeObject_1.getFontKey)(this.webAssemblyContext, { fontFamily: fontFamily, fontSize: fontSizePx !== null && fontSizePx !== void 0 ? fontSizePx : 12 });
|
|
56
|
+
var bgColor = backgroundColor ? (0, parseColor_1.parseColorToUIntArgb)(backgroundColor) : 0;
|
|
57
|
+
var bitmapTexture = nativeContext.CreateTextTextureColored(fontKey, text.join("\n"), (0, parseColor_1.parseColorToUIntArgb)(color), bgColor);
|
|
58
|
+
this.webAssemblyContext.SCRTSetTextureLinearSamplerEnabled(bitmapTexture, false);
|
|
59
|
+
var textureWidth = bitmapTexture.GetWidth();
|
|
60
|
+
var textureHeight = bitmapTexture.GetHeight();
|
|
61
|
+
return {
|
|
62
|
+
bitmapTexture: bitmapTexture,
|
|
63
|
+
textureWidth: textureWidth,
|
|
64
|
+
textureHeight: textureHeight
|
|
65
|
+
};
|
|
66
|
+
};
|
|
39
67
|
/**
|
|
40
68
|
* Create a text texture supporting multiline and arbitrary rotation
|
|
41
69
|
* @param text
|
|
@@ -47,6 +75,9 @@ var TextureManager = /** @class */ (function () {
|
|
|
47
75
|
* @returns
|
|
48
76
|
*/
|
|
49
77
|
TextureManager.prototype.createTextTexture = function (text, textStyle, rotation, lineSpacing, backgroundColor, opacity) {
|
|
78
|
+
if (app_1.IS_TEST_ENV) {
|
|
79
|
+
return { bitmapTexture: undefined, textureWidth: 1, textureHeight: 1 };
|
|
80
|
+
}
|
|
50
81
|
var fontStyle = textStyle.fontStyle, fontWeight = textStyle.fontWeight, fontFamily = textStyle.fontFamily, fontSizePx = textStyle.fontSize, padding = textStyle.padding, alignment = textStyle.alignment, color = textStyle.color;
|
|
51
82
|
this.ctx.globalAlpha = opacity !== null && opacity !== void 0 ? opacity : 1;
|
|
52
83
|
this.ctx.textBaseline = "top";
|
|
@@ -168,12 +199,15 @@ var TextureManager = /** @class */ (function () {
|
|
|
168
199
|
return this.createTextureFromCtxBuffer(width, height);
|
|
169
200
|
};
|
|
170
201
|
TextureManager.prototype.getTextureContext = function (width, height) {
|
|
202
|
+
if (app_1.IS_TEST_ENV)
|
|
203
|
+
return undefined;
|
|
171
204
|
if (width > this.canvas.width) {
|
|
172
205
|
this.canvas.width = width;
|
|
173
206
|
}
|
|
174
207
|
if (height > this.canvas.height) {
|
|
175
208
|
this.canvas.height = height;
|
|
176
209
|
}
|
|
210
|
+
// TODO it's not clear if this is actually required, and it's slow.
|
|
177
211
|
this.ctx.clearRect(0, 0, this.canvas.width, this.canvas.height);
|
|
178
212
|
return this.ctx;
|
|
179
213
|
};
|
|
@@ -263,6 +297,8 @@ exports.TextureManager = TextureManager;
|
|
|
263
297
|
var measureTextHeight = function (fontSizePx) { return fontSizePx; };
|
|
264
298
|
exports.measureTextHeight = measureTextHeight;
|
|
265
299
|
var measureTextWidth = function (ctx, text) {
|
|
300
|
+
if (app_1.IS_TEST_ENV)
|
|
301
|
+
return 1;
|
|
266
302
|
var textMeasure = ctx.measureText(text);
|
|
267
303
|
return Math.ceil(textMeasure.width);
|
|
268
304
|
};
|
|
@@ -195,16 +195,6 @@ var createMaster = function () {
|
|
|
195
195
|
if (dest) {
|
|
196
196
|
dest.sciChartSurface.renderSurface.onRenderTimeElapsed();
|
|
197
197
|
}
|
|
198
|
-
// sciChartDestinations.forEach((dest, index) => {
|
|
199
|
-
// const { canvasElementId, sciChartSurface } = dest;
|
|
200
|
-
// const chart = wasmContext.SCRTGetGlobalSampleChartInterface();
|
|
201
|
-
// if (chart.GetCurrentDestination()) {
|
|
202
|
-
// const currDestID = chart.GetCurrentDestination().GetID();
|
|
203
|
-
// if (currDestID === canvasElementId) {
|
|
204
|
-
// (sciChartSurface as SciChartSurface).renderSurface.onRenderTimeElapsed();
|
|
205
|
-
// }
|
|
206
|
-
// }
|
|
207
|
-
// });
|
|
208
198
|
},
|
|
209
199
|
Update: function (deltaTime) {
|
|
210
200
|
// Logger.log("sciChartInitCommon.ts Update");
|
|
@@ -214,6 +204,8 @@ var createMaster = function () {
|
|
|
214
204
|
}
|
|
215
205
|
};
|
|
216
206
|
var chartInitObj = wasmContext.SCRTSampleChartInterface.implement(chartInitializer);
|
|
207
|
+
var frameRenderer2D = new wasmContext.SCRTFrameRenderer2D();
|
|
208
|
+
chartInitObj.SetFrameRenderer(frameRenderer2D);
|
|
217
209
|
wasmContext.SCRTSetGlobalSampleChartInterface(chartInitObj);
|
|
218
210
|
/// create an object that native side can trigger the copy to from...
|
|
219
211
|
var canvasCopyObj = wasmContext.SCRTCopyToDestinationInterface.implement({
|
|
@@ -221,6 +213,11 @@ var createMaster = function () {
|
|
|
221
213
|
});
|
|
222
214
|
wasmContext.SCRTSetGlobalCopyToDestinationInterface(canvasCopyObj);
|
|
223
215
|
wasmContext.TSRSetDrawRequestsEnabled(true);
|
|
216
|
+
// SCJS-1321 fixes cutting 3d chart issue. 3D wasm and vice versa doesn't know about domMasterCanvas width/height
|
|
217
|
+
// when creating one 3d chart and one 2d chart on the same screen. So we tell the other wasm about existing master canvas size
|
|
218
|
+
if (SciChartSurfaceBase_1.SciChartSurfaceBase.domMasterCanvas) {
|
|
219
|
+
wasmContext.TSRSetMainWindowSize(SciChartSurfaceBase_1.SciChartSurfaceBase.domMasterCanvas.width, SciChartSurfaceBase_1.SciChartSurfaceBase.domMasterCanvas.height);
|
|
220
|
+
}
|
|
224
221
|
// @ts-ignore
|
|
225
222
|
wasmContext.callMain();
|
|
226
223
|
})
|
|
@@ -86,6 +86,8 @@ var initDrawEngineSingleChart = function (wasmContext, canvases, resolve, theme)
|
|
|
86
86
|
}
|
|
87
87
|
};
|
|
88
88
|
var chartInitObj = wasmContext.SCRTSampleChartInterface.implement(chartInitializer);
|
|
89
|
+
var frameRenderer2D = new wasmContext.SCRTFrameRenderer2D();
|
|
90
|
+
chartInitObj.SetFrameRenderer(frameRenderer2D);
|
|
89
91
|
chartInitObj.SetFPSCounterEnabled(false);
|
|
90
92
|
wasmContext.SCRTSetGlobalSampleChartInterface(chartInitObj);
|
|
91
93
|
// @ts-ignore
|
|
@@ -311,6 +311,8 @@ var dolicenseChallenge = function (licenseContext, sciChartSurface) { return __a
|
|
|
311
311
|
expirySeconds = setChallengeResponse(token, licenseContext);
|
|
312
312
|
if (expirySeconds > 0) {
|
|
313
313
|
key = (0, exports.getLicenseCookie)().key;
|
|
314
|
+
if (!key)
|
|
315
|
+
key = getRuntimeLicenseKey();
|
|
314
316
|
timeNow = Math.floor(new Date().getTime() / 1000);
|
|
315
317
|
setLicenseCookie(key, token, expirySeconds, timeNow);
|
|
316
318
|
debug("License validated");
|
|
@@ -352,14 +354,13 @@ var dolicenseChallenge = function (licenseContext, sciChartSurface) { return __a
|
|
|
352
354
|
checkStatus = licensingClasses_1.LicenseCheckStatus.NoLicense;
|
|
353
355
|
licenseContext.SCRTCredentials.ResetRuntimeLicense();
|
|
354
356
|
isRuntimeKey = false;
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
// callbacks3D.updateLicenseDisplay3D();
|
|
357
|
+
licenseManager2dState_1.licenseManager2dState.setIsDev(true);
|
|
358
|
+
checkStatus = licensingClasses_1.LicenseCheckStatus.LookingForLicenseWizard;
|
|
359
|
+
getlicenseFromWizard(licenseContext, sciChartSurface);
|
|
360
|
+
if (licenseContext2D !== undefined) {
|
|
361
|
+
(0, exports.updateLicenseDisplay)((0, exports.getLicenseInfo)(licenseContext2D), sciChartSurface2D, true, false);
|
|
362
|
+
}
|
|
363
|
+
callbacks3D.updateLicenseDisplay3D();
|
|
363
364
|
return [2 /*return*/];
|
|
364
365
|
}
|
|
365
366
|
// Failed to connect. Retry
|
|
@@ -528,7 +529,6 @@ var applyLicense = function (licenseContext, sciChartSurface) {
|
|
|
528
529
|
}
|
|
529
530
|
else if (checkStatus === licensingClasses_1.LicenseCheckStatus.NoLicense) {
|
|
530
531
|
checkStatus = licensingClasses_1.LicenseCheckStatus.ValidatingDeveloperLicense;
|
|
531
|
-
setLicenseCookie(licenseKey, "", 0, 0);
|
|
532
532
|
dolicenseChallenge(licenseContext, sciChartSurface);
|
|
533
533
|
}
|
|
534
534
|
}
|
|
@@ -9,6 +9,7 @@ var ECanvasType;
|
|
|
9
9
|
ECanvasType[ECanvasType["canvas2D"] = 1] = "canvas2D";
|
|
10
10
|
ECanvasType[ECanvasType["svg"] = 2] = "svg";
|
|
11
11
|
})(ECanvasType || (ECanvasType = {}));
|
|
12
|
+
var DEFAULT_ASPECT_RATIO = 1.5;
|
|
12
13
|
var getCanvas2dId = function (divElementId) { return "".concat(divElementId, "_2D"); };
|
|
13
14
|
var getCanvasSizes = function (divWidth, divHeight, maxHeight, aspectWidth, aspectHeight) {
|
|
14
15
|
if (aspectWidth === void 0) { aspectWidth = 0; }
|
|
@@ -22,7 +23,7 @@ var getCanvasSizes = function (divWidth, divHeight, maxHeight, aspectWidth, aspe
|
|
|
22
23
|
aspectRatio = undefined;
|
|
23
24
|
}
|
|
24
25
|
else {
|
|
25
|
-
aspectRatio =
|
|
26
|
+
aspectRatio = DEFAULT_ASPECT_RATIO;
|
|
26
27
|
}
|
|
27
28
|
var width = Math.round(divWidth || 600);
|
|
28
29
|
if (aspectRatio) {
|
|
@@ -82,6 +83,11 @@ var initCanvas = function (divElement, aspectWidth, aspectHeight, activeCanvas,
|
|
|
82
83
|
var divWidth = chartRoot.offsetWidth, divHeight = chartRoot.offsetHeight;
|
|
83
84
|
var maxHeight = getMaxHeight(chartRoot);
|
|
84
85
|
var _a = getCanvasSizes(divWidth, divHeight, maxHeight, aspectWidth, aspectHeight), width = _a.width, height = _a.height, aspectRatio = _a.aspectRatio;
|
|
86
|
+
// if aspect ration is defined we use is to calc height
|
|
87
|
+
if (!disableAspect && aspectRatio) {
|
|
88
|
+
// @ts-ignore
|
|
89
|
+
chartRoot.style.aspectRatio = "".concat(aspectRatio);
|
|
90
|
+
}
|
|
85
91
|
// set canvasSize for parent div because of all children in absolute
|
|
86
92
|
var canvasWebGL;
|
|
87
93
|
if (activeCanvas === ECanvasType.canvasWebGL) {
|
|
@@ -90,6 +96,8 @@ var initCanvas = function (divElement, aspectWidth, aspectHeight, activeCanvas,
|
|
|
90
96
|
canvasWebGL.id = "".concat(divElementId, "_WebGL");
|
|
91
97
|
canvasWebGL.style.position = "absolute";
|
|
92
98
|
canvasWebGL.style.display = "block";
|
|
99
|
+
canvasWebGL.style.width = "100%";
|
|
100
|
+
canvasWebGL.style.height = "100%";
|
|
93
101
|
var gl = WebGlHelper_1.WebGlHelper.getContext(canvasWebGL, {
|
|
94
102
|
premultipliedAlpha: true,
|
|
95
103
|
antialias: SciChartSurfaceBase_1.SciChartSurfaceBase.AntiAliasWebGlBackbuffer
|
|
@@ -99,6 +107,8 @@ var initCanvas = function (divElement, aspectWidth, aspectHeight, activeCanvas,
|
|
|
99
107
|
// 2D Canvas
|
|
100
108
|
var canvas2D = document.createElement("canvas");
|
|
101
109
|
canvas2D.id = getCanvas2dId(divElementId);
|
|
110
|
+
canvas2D.style.width = "100%";
|
|
111
|
+
canvas2D.style.height = "100%";
|
|
102
112
|
DpiHelper_1.DpiHelper.setSize(canvas2D, width, height);
|
|
103
113
|
canvas2D.style.position = "absolute";
|
|
104
114
|
if (activeCanvas !== ECanvasType.canvas2D) {
|
|
@@ -121,6 +131,8 @@ var initCanvas = function (divElement, aspectWidth, aspectHeight, activeCanvas,
|
|
|
121
131
|
svgRootElement.setAttribute("xmlns", "http://www.w3.org/2000/svg");
|
|
122
132
|
svgRootElement.style.position = "absolute";
|
|
123
133
|
svgRootElement.style.display = "block";
|
|
134
|
+
svgRootElement.style.width = "100%";
|
|
135
|
+
svgRootElement.style.height = "100%";
|
|
124
136
|
if (activeCanvas !== ECanvasType.svg) {
|
|
125
137
|
svgRootElement.style.pointerEvents = "none";
|
|
126
138
|
}
|
|
@@ -135,12 +147,14 @@ var initCanvas = function (divElement, aspectWidth, aspectHeight, activeCanvas,
|
|
|
135
147
|
svgAdornerLayer.style.position = "absolute";
|
|
136
148
|
svgAdornerLayer.style.display = "block";
|
|
137
149
|
svgAdornerLayer.style.pointerEvents = "none";
|
|
150
|
+
svgAdornerLayer.style.width = "100%";
|
|
151
|
+
svgAdornerLayer.style.height = "100%";
|
|
138
152
|
chartRoot.appendChild(svgAdornerLayer);
|
|
139
153
|
// Root Div Element
|
|
140
154
|
var divRootElement = document.createElement("div");
|
|
141
155
|
divRootElement.id = "".concat(divElementId, "_div");
|
|
142
156
|
divRootElement.style.width = "100%";
|
|
143
|
-
divRootElement.style.height = ""
|
|
157
|
+
divRootElement.style.height = "100%";
|
|
144
158
|
divRootElement.style.position = "relative";
|
|
145
159
|
divRootElement.style.pointerEvents = "none";
|
|
146
160
|
divRootElement.style.textAlign = "center";
|
|
@@ -186,16 +200,6 @@ var subscribeToResize = function (chartRoot, aspect, sciChartSurface, disableAsp
|
|
|
186
200
|
console.error("ResizeObserver is not supported");
|
|
187
201
|
newWidth = 900;
|
|
188
202
|
}
|
|
189
|
-
// if aspect ration is defined we use is to calc height
|
|
190
|
-
if (!disableAspect) {
|
|
191
|
-
if (aspect) {
|
|
192
|
-
newHeight = Math.round(newWidth / aspect);
|
|
193
|
-
}
|
|
194
|
-
else if (!newHeight) {
|
|
195
|
-
// hardcoded aspect ration if newHeight is not defined
|
|
196
|
-
newHeight = (newWidth * 2) / 3;
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
203
|
// check max-height
|
|
200
204
|
var maxHeight = getMaxHeight(chartRoot);
|
|
201
205
|
if (maxHeight && newHeight > maxHeight) {
|
|
@@ -32,6 +32,10 @@ export interface ICameraOptions {
|
|
|
32
32
|
* Gets or sets the camera target (Look-at) as a {@link Vector3} in World Space
|
|
33
33
|
*/
|
|
34
34
|
target?: Vector3;
|
|
35
|
+
/**
|
|
36
|
+
* When true, will output position, target to console
|
|
37
|
+
*/
|
|
38
|
+
debugPositions?: boolean;
|
|
35
39
|
}
|
|
36
40
|
/**
|
|
37
41
|
* Defines the interface to a {@link CameraController} - a Class which manipulates and manages
|
|
@@ -169,6 +173,7 @@ export declare class CameraController implements ICameraController {
|
|
|
169
173
|
private projectionModeProperty;
|
|
170
174
|
private targetProperty;
|
|
171
175
|
private readonly webAssemblyContext;
|
|
176
|
+
private debugPositionsProperty;
|
|
172
177
|
/**
|
|
173
178
|
* Creates an instance of the {@link CameraController}
|
|
174
179
|
* @param webAssemblyContext The {@link TSciChart3D | SciChart 3D WebAssembly Context}
|
|
@@ -29,6 +29,7 @@ var CameraController = /** @class */ (function () {
|
|
|
29
29
|
* @param options optional parameters of type {@link ICameraOptions} passed to the constructor
|
|
30
30
|
*/
|
|
31
31
|
function CameraController(webAssemblyContext, options) {
|
|
32
|
+
var _a;
|
|
32
33
|
this.aspectRatioProperty = 1.5;
|
|
33
34
|
this.farClipProperty = 4000;
|
|
34
35
|
this.fieldOfViewProperty = 60;
|
|
@@ -46,6 +47,7 @@ var CameraController = /** @class */ (function () {
|
|
|
46
47
|
this.position = (options === null || options === void 0 ? void 0 : options.position) || this.position;
|
|
47
48
|
this.target = (options === null || options === void 0 ? void 0 : options.target) || this.target;
|
|
48
49
|
this.id = (options === null || options === void 0 ? void 0 : options.id) || this.id;
|
|
50
|
+
this.debugPositionsProperty = (_a = options === null || options === void 0 ? void 0 : options.debugPositions) !== null && _a !== void 0 ? _a : false;
|
|
49
51
|
}
|
|
50
52
|
Object.defineProperty(CameraController.prototype, "id", {
|
|
51
53
|
/**
|
|
@@ -496,6 +498,10 @@ var CameraController = /** @class */ (function () {
|
|
|
496
498
|
*/
|
|
497
499
|
CameraController.prototype.notifyPropertyChanged = function (propertyName) {
|
|
498
500
|
var _a;
|
|
501
|
+
if (this.debugPositionsProperty &&
|
|
502
|
+
(propertyName === Constants_1.PROPERTY.CAMERA_POSITION || propertyName === Constants_1.PROPERTY.CAMERA_TARGET)) {
|
|
503
|
+
console.log("SciChart.js Camera P=".concat(this.position.toString(), ", T=").concat(this.target.toString()));
|
|
504
|
+
}
|
|
499
505
|
(_a = this.propertyChanged) === null || _a === void 0 ? void 0 : _a.raiseEvent(new PropertyChangedEventArgs_1.PropertyChangedEventArgs(propertyName));
|
|
500
506
|
};
|
|
501
507
|
/**
|
|
@@ -43,8 +43,9 @@ var ResetCamera3DModifier = /** @class */ (function (_super) {
|
|
|
43
43
|
* @param options optional parameters of type {@link IResetCamera3DOptions} used to configure the modifier
|
|
44
44
|
*/
|
|
45
45
|
function ResetCamera3DModifier(options) {
|
|
46
|
+
var _this = this;
|
|
46
47
|
var _a, _b, _c;
|
|
47
|
-
|
|
48
|
+
_this = _super.call(this, options) || this;
|
|
48
49
|
/**
|
|
49
50
|
* When true, the Zoom operations are animated. See also {@link animationDuration} and {@link easingFunction}
|
|
50
51
|
*/
|
|
@@ -425,11 +425,13 @@ var AxisBase3D = /** @class */ (function (_super) {
|
|
|
425
425
|
};
|
|
426
426
|
AxisBase3D.prototype.getTicks = function () {
|
|
427
427
|
var maxAutoTicks = this.getMaxAutoTicks();
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
428
|
+
if (this.autoTicks) {
|
|
429
|
+
var delta = this.deltaCalculator.getDeltaFromRange(this.visibleRange.min, this.visibleRange.max, this.minorsPerMajor, maxAutoTicks);
|
|
430
|
+
this.minorDeltaProperty = delta.min;
|
|
431
|
+
this.majorDeltaProperty = delta.max;
|
|
432
|
+
}
|
|
433
|
+
var majorTicks = this.tickProvider.getMajorTicks(this.minorDeltaProperty, this.majorDeltaProperty, this.visibleRange);
|
|
434
|
+
var minorTicks = this.tickProvider.getMinorTicks(this.minorDeltaProperty, this.majorDeltaProperty, this.visibleRange);
|
|
433
435
|
return {
|
|
434
436
|
majorTicks: majorTicks,
|
|
435
437
|
minorTicks: minorTicks
|
|
@@ -43,8 +43,9 @@ var NumericAxis3D = /** @class */ (function (_super) {
|
|
|
43
43
|
* @param options optional parameters of type {@link INumericAxis3dOptions} to configure the axis
|
|
44
44
|
*/
|
|
45
45
|
function NumericAxis3D(webAssemblyContext, options) {
|
|
46
|
+
var _this = this;
|
|
46
47
|
var _a, _b;
|
|
47
|
-
|
|
48
|
+
_this = _super.call(this, webAssemblyContext, options) || this;
|
|
48
49
|
/**
|
|
49
50
|
* @inheritDoc
|
|
50
51
|
*/
|
|
@@ -54,6 +54,13 @@ var ScatterPointsSceneEntity = /** @class */ (function (_super) {
|
|
|
54
54
|
this.pointScales = (0, Deleter_1.deleteSafe)(this.pointScales);
|
|
55
55
|
_super.prototype.delete.call(this);
|
|
56
56
|
};
|
|
57
|
+
/**
|
|
58
|
+
* @inheritDoc
|
|
59
|
+
*/
|
|
60
|
+
ScatterPointsSceneEntity.prototype.Render = function () {
|
|
61
|
+
this.nativeEntity.SetOpacity(this.parentSeries.opacity);
|
|
62
|
+
_super.prototype.Render.call(this);
|
|
63
|
+
};
|
|
57
64
|
/**
|
|
58
65
|
* @inheritDoc
|
|
59
66
|
*/
|
|
@@ -50,8 +50,8 @@ function debugProps(props) {
|
|
|
50
50
|
// console.log(` m_fShininess ${props.m_fShininess}`);
|
|
51
51
|
// console.log(` m_fHighlight ${props.m_fHighlight}`);
|
|
52
52
|
// console.log(` m_fHardNormals ${props.m_fHardNormals}`);
|
|
53
|
-
// console.log(` m_vContourColor ${toString(props.m_vContourColor)}`);
|
|
54
|
-
// console.log(` m_vWireframeStroke ${toString(props.m_vWireframeStroke)}`);
|
|
53
|
+
// // console.log(` m_vContourColor ${toString(props.m_vContourColor)}`);
|
|
54
|
+
// // console.log(` m_vWireframeStroke ${toString(props.m_vWireframeStroke)}`);
|
|
55
55
|
// console.log(` m_fContourOffset ${props.m_fContourOffset}`);
|
|
56
56
|
// console.log(` m_fContourInterval ${props.m_fContourInterval}`);
|
|
57
57
|
// console.log(` m_fContourThickness ${props.m_fContourThickness}`);
|
|
@@ -116,8 +116,9 @@ var SurfaceMeshSceneEntity = /** @class */ (function (_super) {
|
|
|
116
116
|
* @param parentSeries The parent {@link BaseRenderableSeries3D} which this entity maps to
|
|
117
117
|
*/
|
|
118
118
|
function SurfaceMeshSceneEntity(webAssemblyContext, parentSeries) {
|
|
119
|
+
var _this = this;
|
|
119
120
|
var _a;
|
|
120
|
-
|
|
121
|
+
_this = _super.call(this, webAssemblyContext, parentSeries, new SurfaceMeshSceneEntityState()) || this;
|
|
121
122
|
/**
|
|
122
123
|
* @inheritDoc
|
|
123
124
|
*/
|
|
@@ -157,6 +158,8 @@ var SurfaceMeshSceneEntity = /** @class */ (function (_super) {
|
|
|
157
158
|
console.log("Cannot draw a SurfaceMeshRenderableSeries3D without a meshColorPalette or dataSeries!");
|
|
158
159
|
return;
|
|
159
160
|
}
|
|
161
|
+
// Set opacity
|
|
162
|
+
this.nativeEntity.SetOpacity(this.parentSeries.opacity);
|
|
160
163
|
// Setup Properties for grid mesh
|
|
161
164
|
//
|
|
162
165
|
var props;
|
|
@@ -215,7 +218,6 @@ var SurfaceMeshSceneEntity = /** @class */ (function (_super) {
|
|
|
215
218
|
props.m_fHighlight = this.parentSeries.highlight;
|
|
216
219
|
props.m_fShininess = this.parentSeries.shininess;
|
|
217
220
|
props.m_fLightingAmount = this.parentSeries.lightingFactor;
|
|
218
|
-
// console.log("..setting GridDrawingProps");
|
|
219
221
|
debugProps(props);
|
|
220
222
|
this.nativeEntity.SetGridDrawingProperties(props);
|
|
221
223
|
}
|
|
@@ -91,7 +91,7 @@ export interface IBaseRenderableSeries3DOptions {
|
|
|
91
91
|
*/
|
|
92
92
|
readonly id?: string;
|
|
93
93
|
/**
|
|
94
|
-
* The {@link BaseDataSeries3D | DataSeries} which provides a datasource for this {@link
|
|
94
|
+
* The {@link BaseDataSeries3D | DataSeries} which provides a datasource for this {@link IRenderableSeries3D} to draw
|
|
95
95
|
*/
|
|
96
96
|
dataSeries?: BaseDataSeries3D;
|
|
97
97
|
/**
|
|
@@ -100,7 +100,7 @@ export interface IBaseRenderableSeries3DOptions {
|
|
|
100
100
|
*/
|
|
101
101
|
pointMarker?: BasePointMarker3D;
|
|
102
102
|
/**
|
|
103
|
-
* Gets or sets whether the {@link
|
|
103
|
+
* Gets or sets whether the {@link IRenderableSeries3D} is visible or not
|
|
104
104
|
*/
|
|
105
105
|
isVisible?: boolean;
|
|
106
106
|
/**
|
|
@@ -111,6 +111,11 @@ export interface IBaseRenderableSeries3DOptions {
|
|
|
111
111
|
* Gets or sets an optional Shininess factor, passed to 3D rendering shaders to make shiny objects
|
|
112
112
|
*/
|
|
113
113
|
shininess?: number;
|
|
114
|
+
/**
|
|
115
|
+
* Gets or sets the opacity of the {@link IRenderableSeries3D}
|
|
116
|
+
* @remarks Value range 0.0 to 1.0. Default = 1.
|
|
117
|
+
*/
|
|
118
|
+
opacity?: number;
|
|
114
119
|
}
|
|
115
120
|
/**
|
|
116
121
|
* @summary Defines the base class to a 3D Render Series (or 3D Chart Type) in SciChart's High Performance Real-time
|
|
@@ -23,14 +23,15 @@ var BaseRenderableSeries3D = /** @class */ (function () {
|
|
|
23
23
|
* @protected
|
|
24
24
|
*/
|
|
25
25
|
function BaseRenderableSeries3D(webAssemblyContext, options) {
|
|
26
|
-
var _a;
|
|
26
|
+
var _a, _b;
|
|
27
27
|
this.id = (_a = options === null || options === void 0 ? void 0 : options.id) !== null && _a !== void 0 ? _a : (0, guid_1.generateGuid)();
|
|
28
28
|
this.webAssemblyContext = webAssemblyContext;
|
|
29
29
|
this.dataSeriesProperty = (options === null || options === void 0 ? void 0 : options.dataSeries) || undefined;
|
|
30
30
|
this.isVisibleProperty = (options === null || options === void 0 ? void 0 : options.isVisible) !== undefined ? options === null || options === void 0 ? void 0 : options.isVisible : true;
|
|
31
31
|
this.pointMarkerProperty = (options === null || options === void 0 ? void 0 : options.pointMarker) || undefined;
|
|
32
32
|
this.strokeProperty = (options === null || options === void 0 ? void 0 : options.stroke) || "#FFFFFF";
|
|
33
|
-
this.shininessProperty = (options === null || options === void 0 ? void 0 : options.shininess)
|
|
33
|
+
this.shininessProperty = (options === null || options === void 0 ? void 0 : options.shininess) === undefined ? 64 : options.shininess;
|
|
34
|
+
this.opacityProperty = (_b = options === null || options === void 0 ? void 0 : options.opacity) !== null && _b !== void 0 ? _b : 1;
|
|
34
35
|
this.pointMarkerPropertyChanged = this.pointMarkerPropertyChanged.bind(this);
|
|
35
36
|
this.onDpiChanged = this.onDpiChanged.bind(this);
|
|
36
37
|
}
|