scichart 2.0.2139 → 2.0.2185
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/buildAnnotations.js +11 -10
- package/Builder/buildAxis.js +7 -6
- package/Builder/buildDataSeries.js +3 -6
- package/Builder/buildModifiers.js +17 -16
- package/Builder/buildSeries.d.ts +1 -1
- package/Builder/buildSeries.js +21 -20
- package/Builder/buildSurface.js +29 -27
- package/Builder/chartBuilder.d.ts +10 -162
- package/Builder/chartBuilder.js +9 -6
- package/Builder/classFactory.js +12 -6
- package/Charting/ChartModifiers/ChartModifierBase.js +1 -1
- package/Charting/ChartModifiers/ChartModifierBase2D.d.ts +1 -1
- package/Charting/ChartModifiers/ChartModifierBase2D.js +11 -6
- package/Charting/ChartModifiers/CursorModifier.d.ts +23 -3
- package/Charting/ChartModifiers/CursorModifier.js +72 -40
- package/Charting/ChartModifiers/DataPointSelectionModifier.d.ts +1 -1
- package/Charting/ChartModifiers/DataPointSelectionModifier.js +18 -16
- package/Charting/ChartModifiers/LegendModifier.d.ts +1 -1
- package/Charting/ChartModifiers/LegendModifier.js +4 -1
- package/Charting/ChartModifiers/ModifierMouseArgs.js +4 -3
- package/Charting/ChartModifiers/MouseWheelZoomModifier.d.ts +52 -2
- package/Charting/ChartModifiers/MouseWheelZoomModifier.js +105 -10
- package/Charting/ChartModifiers/OverviewRangeSelectionModifier.d.ts +2 -2
- package/Charting/ChartModifiers/OverviewRangeSelectionModifier.js +13 -10
- package/Charting/ChartModifiers/PinchZoomModifier.d.ts +1 -1
- package/Charting/ChartModifiers/PinchZoomModifier.js +4 -2
- package/Charting/ChartModifiers/RolloverModifier.d.ts +1 -1
- package/Charting/ChartModifiers/RolloverModifier.js +27 -20
- package/Charting/ChartModifiers/RubberBandXyZoomModifier.d.ts +1 -1
- package/Charting/ChartModifiers/RubberBandXyZoomModifier.js +11 -9
- package/Charting/ChartModifiers/SeriesSelectionModifier.d.ts +1 -1
- package/Charting/ChartModifiers/SeriesSelectionModifier.js +9 -7
- package/Charting/ChartModifiers/XAxisDragModifier.d.ts +1 -1
- package/Charting/ChartModifiers/XAxisDragModifier.js +12 -10
- package/Charting/ChartModifiers/YAxisDragModifier.d.ts +1 -1
- package/Charting/ChartModifiers/YAxisDragModifier.js +12 -10
- package/Charting/ChartModifiers/ZoomExtentsModifier.d.ts +17 -1
- package/Charting/ChartModifiers/ZoomExtentsModifier.js +65 -10
- package/Charting/ChartModifiers/ZoomPanModifier.d.ts +4 -2
- package/Charting/ChartModifiers/ZoomPanModifier.js +25 -21
- package/Charting/Drawing/BaseCache.js +2 -2
- package/Charting/Drawing/BrushCache.js +12 -7
- package/Charting/Drawing/PaletteCache.js +4 -2
- package/Charting/Drawing/Pen2DCache.js +14 -9
- package/Charting/Drawing/SolidBrushCache.js +2 -2
- package/Charting/Drawing/TextureCache.js +4 -2
- package/Charting/Drawing/WebGlBrush.js +1 -1
- package/Charting/Drawing/WebGlPen.js +2 -2
- package/Charting/Drawing/WebGlRenderContext2D.js +5 -5
- package/Charting/LayoutManager/AxisLayoutHelpers.js +6 -4
- package/Charting/LayoutManager/BaseAxisLayoutStrategy.js +4 -4
- package/Charting/LayoutManager/BaseCenteredAxisLayoutStrategy.d.ts +1 -1
- package/Charting/LayoutManager/BaseCenteredAxisLayoutStrategy.js +3 -1
- package/Charting/LayoutManager/BottomAlignedInnerAxisLayoutStrategy.js +6 -4
- package/Charting/LayoutManager/BottomAlignedOuterAxisLayoutStrategy.js +6 -4
- package/Charting/LayoutManager/BottomAlignedOuterHorizontallyStackedAxisLayoutStrategy.js +7 -5
- package/Charting/LayoutManager/CentralAxesLayoutManager.js +7 -3
- package/Charting/LayoutManager/LayoutManager.js +2 -2
- package/Charting/LayoutManager/LeftAlignedInnerAxisLayoutStrategy.js +6 -4
- package/Charting/LayoutManager/LeftAlignedOuterAxisLayoutStrategy.js +6 -4
- package/Charting/LayoutManager/LeftAlignedOuterVerticallyStackedAxisLayoutStrategy.js +7 -5
- package/Charting/LayoutManager/RightAlignedInnerAxisLayoutStrategy.js +6 -4
- package/Charting/LayoutManager/RightAlignedOuterAxisLayoutStrategy.js +6 -4
- package/Charting/LayoutManager/RightAlignedOuterVerticallyStackedAxisLayoutStrategy.js +7 -5
- package/Charting/LayoutManager/SynchronizedLayoutManager.js +4 -2
- package/Charting/LayoutManager/TopAlignedInnerAxisLayoutStrategy.js +6 -4
- package/Charting/LayoutManager/TopAlignedOuterAxisLayoutStrategy.js +6 -4
- package/Charting/LayoutManager/TopAlignedOuterHorizontallyStackedAxisLayoutStrategy.js +7 -5
- package/Charting/Model/BaseDataSeries.d.ts +2 -2
- package/Charting/Model/BaseDataSeries.js +23 -20
- package/Charting/Model/BaseHeatmapDataSeries.js +5 -5
- package/Charting/Model/ChartData/HeatmapSeriesInfo.js +4 -2
- package/Charting/Model/ChartData/OhlcSeriesInfo.js +3 -1
- package/Charting/Model/ChartData/SeriesInfo.d.ts +1 -0
- package/Charting/Model/ChartData/SeriesInfo.js +15 -0
- package/Charting/Model/ChartData/StackedXySeriesInfo.js +3 -1
- package/Charting/Model/ChartData/XySeriesInfo.js +3 -1
- package/Charting/Model/ChartData/XyySeriesInfo.js +3 -1
- package/Charting/Model/DataPointSelectionPaletteProvider.js +2 -2
- package/Charting/Model/Filters/OhlcCustomFilter.js +7 -2
- package/Charting/Model/Filters/OhlcFilterBase.js +3 -1
- package/Charting/Model/Filters/OhlcScaleOffsetFilter.js +3 -1
- package/Charting/Model/Filters/XyCustomFilter.js +3 -1
- package/Charting/Model/Filters/XyFilterBase.js +9 -6
- package/Charting/Model/Filters/XyLinearTrendFilter.js +3 -1
- package/Charting/Model/Filters/XyMovingAverageFilter.js +3 -1
- package/Charting/Model/Filters/XyRatioFilter.js +6 -4
- package/Charting/Model/Filters/XyScaleOffsetFilter.js +3 -1
- package/Charting/Model/Filters/XyyCustomFilter.js +3 -1
- package/Charting/Model/Filters/XyyFilterBase.js +7 -5
- package/Charting/Model/Filters/XyyScaleOffsetFilter.js +3 -1
- package/Charting/Model/Filters/XyzCustomFilter.js +3 -1
- package/Charting/Model/Filters/XyzFilterBase.js +7 -5
- package/Charting/Model/Filters/XyzScaleOffsetFilter.js +3 -1
- package/Charting/Model/OhlcDataSeries.d.ts +2 -2
- package/Charting/Model/OhlcDataSeries.js +27 -25
- package/Charting/Model/PaletteFactory.js +3 -3
- package/Charting/Model/UniformHeatmapDataSeries.js +3 -1
- package/Charting/Model/XyDataSeries.js +9 -7
- package/Charting/Model/XyyDataSeries.d.ts +2 -2
- package/Charting/Model/XyyDataSeries.js +15 -13
- package/Charting/Model/XyzDataSeries.d.ts +2 -2
- package/Charting/Model/XyzDataSeries.js +15 -13
- package/Charting/Numerics/CoordinateCalculators/CategoryCoordinateCalculator.js +3 -1
- package/Charting/Numerics/CoordinateCalculators/FlippedCategoryCoordinateCalculator.js +3 -1
- package/Charting/Numerics/CoordinateCalculators/FlippedNumericCoordinateCalculator.js +3 -1
- package/Charting/Numerics/CoordinateCalculators/LogarithmicCoordinateCalculator.js +3 -1
- package/Charting/Numerics/CoordinateCalculators/NumericCoordinateCalculator.js +3 -1
- package/Charting/Numerics/TickCoordinateProviders/DefaultTickCoordinatesProvider.js +3 -1
- package/Charting/Numerics/TickProviders/LogarithmicTickProvider.js +7 -5
- package/Charting/Numerics/TickProviders/NumericTickProvider.js +4 -2
- package/Charting/Services/SciChartRenderer.d.ts +1 -0
- package/Charting/Services/SciChartRenderer.js +41 -22
- package/Charting/Services/Workers/TextureWorker.d.ts +16 -0
- package/Charting/Services/Workers/TextureWorker.js +138 -0
- package/Charting/Services/Workers/TextureWorkerSource.d.ts +1 -0
- package/Charting/Services/Workers/TextureWorkerSource.js +133 -0
- package/Charting/Themes/SciChartJSDarkTheme.js +3 -1
- package/Charting/Themes/SciChartJSDarkv2Theme.js +3 -1
- package/Charting/Themes/SciChartJSLightTheme.js +3 -1
- package/Charting/Visuals/Annotations/AnnotationBase.d.ts +1 -1
- package/Charting/Visuals/Annotations/AnnotationBase.js +71 -41
- package/Charting/Visuals/Annotations/AxisMarkerAnnotation.d.ts +28 -1
- package/Charting/Visuals/Annotations/AxisMarkerAnnotation.js +11 -9
- package/Charting/Visuals/Annotations/BoxAnnotation.d.ts +1 -1
- package/Charting/Visuals/Annotations/BoxAnnotation.js +18 -16
- package/Charting/Visuals/Annotations/CursorTooltipSvgAnnotation.d.ts +1 -1
- package/Charting/Visuals/Annotations/CursorTooltipSvgAnnotation.js +36 -14
- package/Charting/Visuals/Annotations/CustomAnnotation.d.ts +1 -1
- package/Charting/Visuals/Annotations/CustomAnnotation.js +3 -1
- package/Charting/Visuals/Annotations/HorizontalLineAnnotation.js +8 -6
- package/Charting/Visuals/Annotations/LineAnnotation.d.ts +1 -1
- package/Charting/Visuals/Annotations/LineAnnotation.js +21 -17
- package/Charting/Visuals/Annotations/OverviewCustomResizableAnnotation.js +20 -17
- package/Charting/Visuals/Annotations/RenderContextAnnotationBase.js +3 -1
- package/Charting/Visuals/Annotations/RolloverLegendSvgAnnotation.js +3 -1
- package/Charting/Visuals/Annotations/RolloverMarkerSvgAnnotation.js +4 -2
- package/Charting/Visuals/Annotations/RolloverTooltipSvgAnnotation.js +17 -15
- package/Charting/Visuals/Annotations/SvgAnnotationBase.d.ts +1 -1
- package/Charting/Visuals/Annotations/SvgAnnotationBase.js +23 -13
- package/Charting/Visuals/Annotations/TextAnnotation.d.ts +1 -1
- package/Charting/Visuals/Annotations/TextAnnotation.js +4 -2
- package/Charting/Visuals/Annotations/VerticalLineAnnotation.js +8 -6
- package/Charting/Visuals/Axis/AxisBase2D.d.ts +89 -58
- package/Charting/Visuals/Axis/AxisBase2D.js +118 -66
- package/Charting/Visuals/Axis/AxisCore.d.ts +7 -4
- package/Charting/Visuals/Axis/AxisCore.js +18 -32
- package/Charting/Visuals/Axis/AxisRenderer.d.ts +63 -0
- package/Charting/Visuals/Axis/AxisRenderer.js +92 -16
- package/Charting/Visuals/Axis/AxisTitleRenderer.js +7 -3
- package/Charting/Visuals/Axis/CategoryAxis.js +5 -2
- package/Charting/Visuals/Axis/CategoryAxisBase.js +10 -8
- package/Charting/Visuals/Axis/DeltaCalculator/CategoryDeltaCalculator.js +3 -1
- package/Charting/Visuals/Axis/DeltaCalculator/LogarithmicDeltaCalculator.js +3 -1
- package/Charting/Visuals/Axis/DeltaCalculator/NumericDeltaCalculator.js +3 -1
- package/Charting/Visuals/Axis/LabelProvider/DateLabelProvider.js +5 -3
- package/Charting/Visuals/Axis/LabelProvider/LabelCache.d.ts +41 -0
- package/Charting/Visuals/Axis/LabelProvider/LabelCache.js +164 -0
- package/Charting/Visuals/Axis/LabelProvider/LabelProvider.d.ts +1 -1
- package/Charting/Visuals/Axis/LabelProvider/LabelProviderBase2D.d.ts +57 -7
- package/Charting/Visuals/Axis/LabelProvider/LabelProviderBase2D.js +171 -74
- package/Charting/Visuals/Axis/LabelProvider/LogarithmicLabelProvider.js +5 -3
- package/Charting/Visuals/Axis/LabelProvider/NumericLabelProvider.js +5 -3
- package/Charting/Visuals/Axis/LabelProvider/SmartDateLabelProvider.js +30 -37
- package/Charting/Visuals/Axis/LabelProvider/TextLabelProvider.d.ts +5 -2
- package/Charting/Visuals/Axis/LabelProvider/TextLabelProvider.js +86 -5
- package/Charting/Visuals/Axis/LogarithmicAxis.d.ts +1 -3
- package/Charting/Visuals/Axis/LogarithmicAxis.js +14 -14
- package/Charting/Visuals/Axis/NumericAxis.js +5 -2
- package/Charting/Visuals/Axis/getAxisById.js +1 -1
- package/Charting/Visuals/Helpers/createNativeRect.js +2 -1
- package/Charting/Visuals/Helpers/createPen.js +4 -3
- package/Charting/Visuals/Helpers/createSolidBrush.js +5 -4
- package/Charting/Visuals/Helpers/drawBorder.js +6 -5
- package/Charting/Visuals/Helpers/drawLabel.js +10 -6
- package/Charting/Visuals/Legend/SciChartLegend.js +4 -2
- package/Charting/Visuals/Legend/SciChartLegendBase.js +16 -14
- package/Charting/Visuals/Legend/SciChartPieLegend.js +6 -4
- package/Charting/Visuals/PointMarkers/BasePointMarker.js +3 -3
- package/Charting/Visuals/PointMarkers/CrossPointMarker.js +3 -1
- package/Charting/Visuals/PointMarkers/EllipsePointMarker.js +3 -1
- package/Charting/Visuals/PointMarkers/SpritePointMarker.js +3 -1
- package/Charting/Visuals/PointMarkers/SquarePointMarker.js +3 -1
- package/Charting/Visuals/PointMarkers/TrianglePointMarker.js +3 -1
- package/Charting/Visuals/PointMarkers/XPointMarker.js +3 -1
- package/Charting/Visuals/RenderableSeries/Animations/BandAnimation.d.ts +2 -2
- package/Charting/Visuals/RenderableSeries/Animations/BandAnimation.js +8 -6
- package/Charting/Visuals/RenderableSeries/Animations/BandAnimationStyle.js +6 -4
- package/Charting/Visuals/RenderableSeries/Animations/BaseAnimationStyle.js +1 -1
- package/Charting/Visuals/RenderableSeries/Animations/BubbleAnimation.d.ts +2 -2
- package/Charting/Visuals/RenderableSeries/Animations/BubbleAnimation.js +5 -3
- package/Charting/Visuals/RenderableSeries/Animations/CandlestickAnimation.d.ts +1 -1
- package/Charting/Visuals/RenderableSeries/Animations/CandlestickAnimation.js +5 -3
- package/Charting/Visuals/RenderableSeries/Animations/CandlestickAnimationStyle.js +5 -3
- package/Charting/Visuals/RenderableSeries/Animations/ColumnAnimation.d.ts +2 -2
- package/Charting/Visuals/RenderableSeries/Animations/ColumnAnimation.js +6 -4
- package/Charting/Visuals/RenderableSeries/Animations/ColumnAnimationStyle.js +4 -2
- package/Charting/Visuals/RenderableSeries/Animations/CustomPointMarkerStyle.js +3 -1
- package/Charting/Visuals/RenderableSeries/Animations/FadeAnimation.d.ts +2 -2
- package/Charting/Visuals/RenderableSeries/Animations/FadeAnimation.js +5 -3
- package/Charting/Visuals/RenderableSeries/Animations/LineAnimation.d.ts +2 -2
- package/Charting/Visuals/RenderableSeries/Animations/LineAnimation.js +5 -3
- package/Charting/Visuals/RenderableSeries/Animations/MountainAnimation.d.ts +2 -2
- package/Charting/Visuals/RenderableSeries/Animations/MountainAnimation.js +6 -4
- package/Charting/Visuals/RenderableSeries/Animations/MountainAnimationStyle.js +4 -2
- package/Charting/Visuals/RenderableSeries/Animations/OhlcAnimation.d.ts +2 -2
- package/Charting/Visuals/RenderableSeries/Animations/OhlcAnimation.js +7 -5
- package/Charting/Visuals/RenderableSeries/Animations/OhlcAnimationStyle.js +5 -3
- package/Charting/Visuals/RenderableSeries/Animations/PointMarkerStyle.js +5 -3
- package/Charting/Visuals/RenderableSeries/Animations/ScaleAnimation.d.ts +3 -3
- package/Charting/Visuals/RenderableSeries/Animations/ScaleAnimation.js +5 -3
- package/Charting/Visuals/RenderableSeries/Animations/ScatterAnimation.d.ts +2 -2
- package/Charting/Visuals/RenderableSeries/Animations/ScatterAnimation.js +5 -3
- package/Charting/Visuals/RenderableSeries/Animations/{BaseAnimation.d.ts → SeriesAnimation.d.ts} +4 -3
- package/Charting/Visuals/RenderableSeries/Animations/{BaseAnimation.js → SeriesAnimation.js} +16 -16
- package/Charting/Visuals/RenderableSeries/Animations/SweepAnimation.d.ts +2 -2
- package/Charting/Visuals/RenderableSeries/Animations/SweepAnimation.js +5 -3
- package/Charting/Visuals/RenderableSeries/Animations/WaveAnimation.d.ts +3 -3
- package/Charting/Visuals/RenderableSeries/Animations/WaveAnimation.js +5 -3
- package/Charting/Visuals/RenderableSeries/Animations/animationHelpers.d.ts +8 -8
- package/Charting/Visuals/RenderableSeries/Animations/animationHelpers.js +2 -2
- package/Charting/Visuals/RenderableSeries/BaseBandRenderableSeries.js +3 -1
- package/Charting/Visuals/RenderableSeries/BaseLineRenderableSeries.js +3 -1
- package/Charting/Visuals/RenderableSeries/BaseMountainRenderableSeries.js +3 -1
- package/Charting/Visuals/RenderableSeries/BaseOhlcRenderableSeries.js +3 -1
- package/Charting/Visuals/RenderableSeries/BaseRenderableSeries.d.ts +9 -9
- package/Charting/Visuals/RenderableSeries/BaseRenderableSeries.js +18 -17
- package/Charting/Visuals/RenderableSeries/BaseStackedCollection.d.ts +7 -7
- package/Charting/Visuals/RenderableSeries/BaseStackedCollection.js +8 -6
- package/Charting/Visuals/RenderableSeries/BaseStackedRenderableSeries.d.ts +7 -7
- package/Charting/Visuals/RenderableSeries/BaseStackedRenderableSeries.js +4 -4
- package/Charting/Visuals/RenderableSeries/DrawingProviders/BandSeriesDrawingProvider.js +20 -18
- package/Charting/Visuals/RenderableSeries/DrawingProviders/BaseSeriesDrawingProvider.js +12 -12
- package/Charting/Visuals/RenderableSeries/DrawingProviders/BubbleSeriesDrawingProvider.js +4 -2
- package/Charting/Visuals/RenderableSeries/DrawingProviders/ColumnSeriesDrawingProvider.js +12 -10
- package/Charting/Visuals/RenderableSeries/DrawingProviders/LineSeriesDrawingProvider.js +9 -7
- package/Charting/Visuals/RenderableSeries/DrawingProviders/MountainSeriesDrawingProvider.js +10 -8
- package/Charting/Visuals/RenderableSeries/DrawingProviders/OhlcSeriesDrawingProvider.js +20 -18
- package/Charting/Visuals/RenderableSeries/DrawingProviders/PointMarkerDrawingProvider.js +6 -4
- package/Charting/Visuals/RenderableSeries/DrawingProviders/UniformContoursDrawingProvider.js +9 -7
- package/Charting/Visuals/RenderableSeries/DrawingProviders/UniformHeatmapDrawingProvider.js +6 -4
- package/Charting/Visuals/RenderableSeries/FastBandRenderableSeries.js +3 -1
- package/Charting/Visuals/RenderableSeries/FastBubbleRenderableSeries.js +3 -1
- package/Charting/Visuals/RenderableSeries/FastCandlestickRenderableSeries.js +3 -1
- package/Charting/Visuals/RenderableSeries/FastColumnRenderableSeries.js +6 -3
- package/Charting/Visuals/RenderableSeries/FastLineRenderableSeries.js +3 -1
- package/Charting/Visuals/RenderableSeries/FastMountainRenderableSeries.js +3 -1
- package/Charting/Visuals/RenderableSeries/FastOhlcRenderableSeries.js +3 -1
- package/Charting/Visuals/RenderableSeries/GlowEffect.js +3 -1
- package/Charting/Visuals/RenderableSeries/HitTest/BandSeriesHitTestProvider.js +3 -1
- package/Charting/Visuals/RenderableSeries/HitTest/BaseHitTestProvider.js +1 -1
- package/Charting/Visuals/RenderableSeries/HitTest/BubbleSeriesHitTestProvider.js +4 -2
- package/Charting/Visuals/RenderableSeries/HitTest/ColumnSeriesHitTestProvider.js +4 -2
- package/Charting/Visuals/RenderableSeries/HitTest/LineSeriesHitTestProvider.js +8 -6
- package/Charting/Visuals/RenderableSeries/HitTest/MountainSeriesHitTestProvider.js +3 -1
- package/Charting/Visuals/RenderableSeries/HitTest/OhlcSeriesHitTestProvider.js +4 -2
- package/Charting/Visuals/RenderableSeries/HitTest/ScatterSeriesHitTestProvider.js +6 -4
- package/Charting/Visuals/RenderableSeries/HitTest/StackedColumnSeriesHitTestProvider.js +7 -5
- package/Charting/Visuals/RenderableSeries/HitTest/StackedMountainSeriesHitTestProvider.js +3 -1
- package/Charting/Visuals/RenderableSeries/HitTest/UniformHeatmapHitTestProvider.js +3 -1
- package/Charting/Visuals/RenderableSeries/HitTest/hitTestHelpers.js +12 -12
- package/Charting/Visuals/RenderableSeries/IBaseRenderableSeriesOptions.d.ts +2 -2
- package/Charting/Visuals/RenderableSeries/IRenderableSeries.d.ts +3 -3
- package/Charting/Visuals/RenderableSeries/RolloverModifier/RolloverModifierRenderableSeriesProps.d.ts +5 -0
- package/Charting/Visuals/RenderableSeries/RolloverModifier/RolloverModifierRenderableSeriesProps.js +31 -7
- package/Charting/Visuals/RenderableSeries/ShaderEffect.js +4 -4
- package/Charting/Visuals/RenderableSeries/ShadowEffect.js +4 -2
- package/Charting/Visuals/RenderableSeries/SplineBandRenderableSeries.d.ts +4 -4
- package/Charting/Visuals/RenderableSeries/SplineBandRenderableSeries.js +6 -4
- package/Charting/Visuals/RenderableSeries/SplineLineRenderableSeries.d.ts +4 -4
- package/Charting/Visuals/RenderableSeries/SplineLineRenderableSeries.js +5 -3
- package/Charting/Visuals/RenderableSeries/SplineMountainRenderableSeries.d.ts +4 -4
- package/Charting/Visuals/RenderableSeries/SplineMountainRenderableSeries.js +5 -3
- package/Charting/Visuals/RenderableSeries/StackedColumnCollection.js +6 -4
- package/Charting/Visuals/RenderableSeries/StackedColumnRenderableSeries.js +11 -9
- package/Charting/Visuals/RenderableSeries/StackedMountainCollection.js +7 -5
- package/Charting/Visuals/RenderableSeries/StackedMountainRenderableSeries.js +11 -9
- package/Charting/Visuals/RenderableSeries/UniformContoursRenderableSeries.js +6 -4
- package/Charting/Visuals/RenderableSeries/UniformHeatmapRenderableSeries.js +5 -2
- package/Charting/Visuals/RenderableSeries/XyScatterRenderableSeries.js +3 -1
- package/Charting/Visuals/RubberBandSvgRect/RubberBandSvgRect.js +3 -3
- package/Charting/Visuals/SciChartDefaults.d.ts +11 -0
- package/Charting/Visuals/SciChartDefaults.js +18 -0
- package/Charting/Visuals/SciChartOverview.js +13 -7
- package/Charting/Visuals/SciChartPieSurface/PieSegment/PieSegment.js +1 -1
- package/Charting/Visuals/SciChartPieSurface/SciChartPieSurface.js +27 -24
- package/Charting/Visuals/SciChartSurface.d.ts +13 -0
- package/Charting/Visuals/SciChartSurface.js +52 -14
- package/Charting/Visuals/SciChartSurfaceBase.js +15 -11
- package/Charting/Visuals/TextureManager/CanvasTexture.js +5 -5
- package/Charting/Visuals/TextureManager/DpiHelper.js +3 -3
- package/Charting/Visuals/TextureManager/TextureManager.d.ts +1 -0
- package/Charting/Visuals/TextureManager/TextureManager.js +16 -12
- package/Charting/Visuals/createMaster.js +6 -5
- package/Charting/Visuals/createSingle.js +6 -4
- package/Charting/Visuals/licenseManager2D.js +65 -48
- package/Charting/Visuals/loader.js +1 -1
- package/Charting/Visuals/sciChartInitCommon.js +12 -12
- package/Charting3D/CameraController.js +6 -6
- package/Charting3D/ChartModifiers/ChartModifierBase3D.js +3 -1
- package/Charting3D/ChartModifiers/MouseWheelZoomModifier3D.js +3 -1
- package/Charting3D/ChartModifiers/OrbitModifier3D.js +3 -1
- package/Charting3D/ChartModifiers/ResetCamera3DModifier.d.ts +79 -0
- package/Charting3D/ChartModifiers/ResetCamera3DModifier.js +143 -0
- package/Charting3D/Model/DataSeries/BaseGridDataSeries3D.js +4 -2
- package/Charting3D/Model/DataSeries/UniformGridDataSeries3D.js +3 -1
- package/Charting3D/Model/DataSeries/XyzDataSeries3D.js +6 -4
- package/Charting3D/Vector3.js +1 -1
- package/Charting3D/Visuals/Axis/AxisBase3D.js +9 -7
- package/Charting3D/Visuals/Axis/AxisCubeEntity.js +20 -15
- package/Charting3D/Visuals/Axis/NumericAxis3D.d.ts +5 -0
- package/Charting3D/Visuals/Axis/NumericAxis3D.js +29 -1
- package/Charting3D/Visuals/DefaultViewportManager3D.js +3 -1
- package/Charting3D/Visuals/GizmoEntity.js +3 -1
- package/Charting3D/Visuals/PointMarkers/BaseMeshPointMarker3D.js +3 -1
- package/Charting3D/Visuals/PointMarkers/BaseTexturePointMarker3D.js +3 -1
- package/Charting3D/Visuals/PointMarkers/DefaultPointMarkers.js +3 -1
- package/Charting3D/Visuals/Primitives/BaseSceneEntity3D.js +2 -2
- package/Charting3D/Visuals/Primitives/RenderableSeriesSceneEntity.js +3 -1
- package/Charting3D/Visuals/Primitives/ScatterPointsSceneEntity.js +7 -5
- package/Charting3D/Visuals/Primitives/SurfaceMeshSceneEntity.js +22 -20
- package/Charting3D/Visuals/RenderableSeries/BaseRenderableSeries3D.js +3 -3
- package/Charting3D/Visuals/RenderableSeries/ScatterRenderableSeries3D.js +3 -1
- package/Charting3D/Visuals/RenderableSeries/SurfaceMesh/GradientColorPalette.js +3 -1
- package/Charting3D/Visuals/RenderableSeries/SurfaceMesh/SolidColorBrushPalette.js +5 -3
- package/Charting3D/Visuals/RenderableSeries/SurfaceMesh/SurfaceMeshRenderableSeries3D.js +3 -1
- package/Charting3D/Visuals/RootSceneEntity.js +3 -1
- package/Charting3D/Visuals/SciChart3DRenderer.d.ts +1 -0
- package/Charting3D/Visuals/SciChart3DRenderer.js +11 -2
- package/Charting3D/Visuals/SciChart3DSurface.d.ts +22 -0
- package/Charting3D/Visuals/SciChart3DSurface.js +64 -11
- package/Charting3D/Visuals/createMaster3d.js +8 -7
- package/Charting3D/Visuals/createSingle3d.js +5 -4
- package/Charting3D/Visuals/licenseManager3D.js +7 -6
- package/Core/Animations/AnimationFiniteStateMachine.d.ts +27 -14
- package/Core/Animations/AnimationFiniteStateMachine.js +51 -16
- package/Core/Animations/Animator.d.ts +1 -9
- package/Core/Animations/Animator.js +1 -9
- package/Core/Animations/DoubleAnimator.d.ts +2 -8
- package/Core/Animations/DoubleAnimator.js +2 -8
- package/Core/Animations/GenericAnimation.d.ts +74 -0
- package/Core/Animations/GenericAnimation.js +74 -0
- package/Core/Animations/NumberRangeAnimator.d.ts +4 -3
- package/Core/Animations/NumberRangeAnimator.js +23 -3
- package/Core/Guard.js +4 -4
- package/Core/Mouse/MouseManager.js +1 -1
- package/Core/NumberRange.js +8 -9
- package/Core/Point.js +1 -1
- package/_wasm/scichart.browser.js +1 -1
- package/_wasm/scichart2d.js +1 -1
- package/_wasm/scichart2d.wasm +0 -0
- package/_wasm/scichart3d.js +95 -95
- package/_wasm/scichart3d.wasm +0 -0
- package/index.js +1 -0
- package/package.json +2 -2
- package/types/AxisAlignment.js +6 -4
- package/types/ChartModifierType.d.ts +2 -1
- package/types/ChartModifierType.js +1 -0
- package/utils/array.js +2 -1
- package/utils/calcAverage.js +4 -2
- package/utils/colorUtil.js +4 -4
- package/utils/convertColor.js +6 -4
- package/utils/convertToPixel.js +2 -1
- package/utils/date.js +26 -17
- package/utils/font.js +4 -3
- package/utils/guid.js +2 -1
- package/utils/hasAllProperties.js +2 -1
- package/utils/includedAxis.d.ts +3 -0
- package/utils/includedAxis.js +23 -0
- package/utils/math.js +6 -3
- package/utils/number.js +18 -13
- package/utils/parseColor.js +7 -5
- package/utils/pointUtil.js +24 -15
- package/utils/random.js +2 -1
- package/utils/randomPricesDataSource.js +7 -5
- package/utils/svgString.js +2 -1
- package/utils/translate.js +10 -5
- package/utils/tsrExtensions.js +4 -2
- package/utils/zeroArray2D.js +3 -2
|
@@ -13,19 +13,19 @@ var BaseType_1 = require("../types/BaseType");
|
|
|
13
13
|
var chartBuilder_1 = require("./chartBuilder");
|
|
14
14
|
var classFactory_1 = require("./classFactory");
|
|
15
15
|
// register annotations
|
|
16
|
-
classFactory_1.registerType(BaseType_1.EBaseType.Annotation, IAnnotation_1.EAnnotationType.RenderContextAxisMarkerAnnotation, function (options) { return new AxisMarkerAnnotation_1.AxisMarkerAnnotation(options); }, true);
|
|
17
|
-
classFactory_1.registerType(BaseType_1.EBaseType.Annotation, IAnnotation_1.EAnnotationType.RenderContextBoxAnnotation, function (options) { return new BoxAnnotation_1.BoxAnnotation(options); }, true);
|
|
18
|
-
classFactory_1.registerType(BaseType_1.EBaseType.Annotation, IAnnotation_1.EAnnotationType.RenderContextHorizontalLineAnnotation, function (options) { return new HorizontalLineAnnotation_1.HorizontalLineAnnotation(options); }, true);
|
|
19
|
-
classFactory_1.registerType(BaseType_1.EBaseType.Annotation, IAnnotation_1.EAnnotationType.RenderContextLineAnnotation, function (options) { return new LineAnnotation_1.LineAnnotation(options); }, true);
|
|
20
|
-
classFactory_1.registerType(BaseType_1.EBaseType.Annotation, IAnnotation_1.EAnnotationType.RenderContextVerticalLineAnnotation, function (options) { return new VerticalLineAnnotation_1.VerticalLineAnnotation(options); }, true);
|
|
21
|
-
classFactory_1.registerType(BaseType_1.EBaseType.Annotation, IAnnotation_1.EAnnotationType.SVGTextAnnotation, function (options) { return new TextAnnotation_1.TextAnnotation(options); }, true);
|
|
22
|
-
classFactory_1.registerType(BaseType_1.EBaseType.Annotation, IAnnotation_1.EAnnotationType.SVGCustomAnnotation, function (options) { return new CustomAnnotation_1.CustomAnnotation(options); }, true);
|
|
16
|
+
(0, classFactory_1.registerType)(BaseType_1.EBaseType.Annotation, IAnnotation_1.EAnnotationType.RenderContextAxisMarkerAnnotation, function (options) { return new AxisMarkerAnnotation_1.AxisMarkerAnnotation(options); }, true);
|
|
17
|
+
(0, classFactory_1.registerType)(BaseType_1.EBaseType.Annotation, IAnnotation_1.EAnnotationType.RenderContextBoxAnnotation, function (options) { return new BoxAnnotation_1.BoxAnnotation(options); }, true);
|
|
18
|
+
(0, classFactory_1.registerType)(BaseType_1.EBaseType.Annotation, IAnnotation_1.EAnnotationType.RenderContextHorizontalLineAnnotation, function (options) { return new HorizontalLineAnnotation_1.HorizontalLineAnnotation(options); }, true);
|
|
19
|
+
(0, classFactory_1.registerType)(BaseType_1.EBaseType.Annotation, IAnnotation_1.EAnnotationType.RenderContextLineAnnotation, function (options) { return new LineAnnotation_1.LineAnnotation(options); }, true);
|
|
20
|
+
(0, classFactory_1.registerType)(BaseType_1.EBaseType.Annotation, IAnnotation_1.EAnnotationType.RenderContextVerticalLineAnnotation, function (options) { return new VerticalLineAnnotation_1.VerticalLineAnnotation(options); }, true);
|
|
21
|
+
(0, classFactory_1.registerType)(BaseType_1.EBaseType.Annotation, IAnnotation_1.EAnnotationType.SVGTextAnnotation, function (options) { return new TextAnnotation_1.TextAnnotation(options); }, true);
|
|
22
|
+
(0, classFactory_1.registerType)(BaseType_1.EBaseType.Annotation, IAnnotation_1.EAnnotationType.SVGCustomAnnotation, function (options) { return new CustomAnnotation_1.CustomAnnotation(options); }, true);
|
|
23
23
|
/**
|
|
24
24
|
* Build one or more annotations from a definition that can be pure data.
|
|
25
25
|
* @param definition One or an array of {@link TAnnotationDefinition}
|
|
26
26
|
* @returns An array of annotations
|
|
27
27
|
*/
|
|
28
|
-
|
|
28
|
+
var buildAnnotations = function (definition) {
|
|
29
29
|
if (typeof definition === "string") {
|
|
30
30
|
definition = JSON.parse(definition, chartBuilder_1.chartReviver);
|
|
31
31
|
}
|
|
@@ -33,11 +33,12 @@ exports.buildAnnotations = function (definition) {
|
|
|
33
33
|
if (Array.isArray(definition)) {
|
|
34
34
|
for (var _i = 0, definition_1 = definition; _i < definition_1.length; _i++) {
|
|
35
35
|
var annotation = definition_1[_i];
|
|
36
|
-
annotations.push(classFactory_1.createType(BaseType_1.EBaseType.Annotation, annotation.type, null, annotation.options));
|
|
36
|
+
annotations.push((0, classFactory_1.createType)(BaseType_1.EBaseType.Annotation, annotation.type, null, annotation.options));
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
else {
|
|
40
|
-
annotations.push(classFactory_1.createType(BaseType_1.EBaseType.Annotation, definition.type, null, definition.options));
|
|
40
|
+
annotations.push((0, classFactory_1.createType)(BaseType_1.EBaseType.Annotation, definition.type, null, definition.options));
|
|
41
41
|
}
|
|
42
42
|
return annotations;
|
|
43
43
|
};
|
|
44
|
+
exports.buildAnnotations = buildAnnotations;
|
package/Builder/buildAxis.js
CHANGED
|
@@ -15,18 +15,18 @@ var LabelProviderType_1 = require("../types/LabelProviderType");
|
|
|
15
15
|
var chartBuilder_1 = require("./chartBuilder");
|
|
16
16
|
var classFactory_1 = require("./classFactory");
|
|
17
17
|
// register LabelProviders
|
|
18
|
-
classFactory_1.registerType(BaseType_1.EBaseType.LabelProvider, LabelProviderType_1.ELabelProviderType.Numeric, function (options) { return new NumericLabelProvider_1.NumericLabelProvider(options); }, true);
|
|
19
|
-
classFactory_1.registerType(BaseType_1.EBaseType.LabelProvider, LabelProviderType_1.ELabelProviderType.Date, function (options) { return new DateLabelProvider_1.DateLabelProvider(options); }, true);
|
|
20
|
-
classFactory_1.registerType(BaseType_1.EBaseType.LabelProvider, LabelProviderType_1.ELabelProviderType.Logarithmic, function (options) { return new LogarithmicLabelProvider_1.LogarithmicLabelProvider(options); }, true);
|
|
21
|
-
classFactory_1.registerType(BaseType_1.EBaseType.LabelProvider, LabelProviderType_1.ELabelProviderType.SmartDate, function (options) { return new SmartDateLabelProvider_1.SmartDateLabelProvider(); }, true);
|
|
22
|
-
classFactory_1.registerType(BaseType_1.EBaseType.LabelProvider, LabelProviderType_1.ELabelProviderType.Text, function (options) { return new TextLabelProvider_1.TextLabelProvider(options); }, true);
|
|
18
|
+
(0, classFactory_1.registerType)(BaseType_1.EBaseType.LabelProvider, LabelProviderType_1.ELabelProviderType.Numeric, function (options) { return new NumericLabelProvider_1.NumericLabelProvider(options); }, true);
|
|
19
|
+
(0, classFactory_1.registerType)(BaseType_1.EBaseType.LabelProvider, LabelProviderType_1.ELabelProviderType.Date, function (options) { return new DateLabelProvider_1.DateLabelProvider(options); }, true);
|
|
20
|
+
(0, classFactory_1.registerType)(BaseType_1.EBaseType.LabelProvider, LabelProviderType_1.ELabelProviderType.Logarithmic, function (options) { return new LogarithmicLabelProvider_1.LogarithmicLabelProvider(options); }, true);
|
|
21
|
+
(0, classFactory_1.registerType)(BaseType_1.EBaseType.LabelProvider, LabelProviderType_1.ELabelProviderType.SmartDate, function (options) { return new SmartDateLabelProvider_1.SmartDateLabelProvider(); }, true);
|
|
22
|
+
(0, classFactory_1.registerType)(BaseType_1.EBaseType.LabelProvider, LabelProviderType_1.ELabelProviderType.Text, function (options) { return new TextLabelProvider_1.TextLabelProvider(options); }, true);
|
|
23
23
|
/**
|
|
24
24
|
* Build one or more axes from a definition that can be pure data.
|
|
25
25
|
* @param wasmContext A {@link TSciChart | SciChart 2D WebAssembly Context} or {@link TSciChart | SciChart 3D WebAssembly Context}
|
|
26
26
|
* @param definition One or an array of {@link TAxisDefinition}
|
|
27
27
|
* @returns An array of {@link AxisBase2D}.
|
|
28
28
|
*/
|
|
29
|
-
|
|
29
|
+
var buildAxes = function (wasmContext, definition) {
|
|
30
30
|
if (typeof definition === "string") {
|
|
31
31
|
definition = JSON.parse(definition, chartBuilder_1.chartReviver);
|
|
32
32
|
}
|
|
@@ -42,6 +42,7 @@ exports.buildAxes = function (wasmContext, definition) {
|
|
|
42
42
|
}
|
|
43
43
|
return axes;
|
|
44
44
|
};
|
|
45
|
+
exports.buildAxes = buildAxes;
|
|
45
46
|
var buildAxis = function (wasmContext, definition) {
|
|
46
47
|
var axis;
|
|
47
48
|
switch (definition.type) {
|
|
@@ -36,7 +36,7 @@ function hasOwnProperty(obj, prop) {
|
|
|
36
36
|
* @param sharedData Optional {@link TSharedDataDefinition} to define shared data which can be referenced by the data series
|
|
37
37
|
* @returns An {@link IDataSeries}
|
|
38
38
|
*/
|
|
39
|
-
|
|
39
|
+
var buildDataSeries = function (wasmContext, seriesDefinition, sharedData) {
|
|
40
40
|
if (typeof seriesDefinition === "string") {
|
|
41
41
|
seriesDefinition = JSON.parse(seriesDefinition, chartBuilder_1.chartReviver);
|
|
42
42
|
}
|
|
@@ -97,11 +97,7 @@ exports.buildDataSeries = function (wasmContext, seriesDefinition, sharedData) {
|
|
|
97
97
|
var highValues = sharedData[data.highDataId];
|
|
98
98
|
var lowValues = sharedData[data.lowDataId];
|
|
99
99
|
var closeValues = sharedData[data.closeDataId];
|
|
100
|
-
dataSeries = new OhlcDataSeries_1.OhlcDataSeries(wasmContext, __assign({ xValues: xValues,
|
|
101
|
-
openValues: openValues,
|
|
102
|
-
highValues: highValues,
|
|
103
|
-
lowValues: lowValues,
|
|
104
|
-
closeValues: closeValues }, data));
|
|
100
|
+
dataSeries = new OhlcDataSeries_1.OhlcDataSeries(wasmContext, __assign({ xValues: xValues, openValues: openValues, highValues: highValues, lowValues: lowValues, closeValues: closeValues }, data));
|
|
105
101
|
}
|
|
106
102
|
else {
|
|
107
103
|
dataSeries = new OhlcDataSeries_1.OhlcDataSeries(wasmContext, data);
|
|
@@ -126,6 +122,7 @@ exports.buildDataSeries = function (wasmContext, seriesDefinition, sharedData) {
|
|
|
126
122
|
}
|
|
127
123
|
return dataSeries;
|
|
128
124
|
};
|
|
125
|
+
exports.buildDataSeries = buildDataSeries;
|
|
129
126
|
var buildFilter = function (dataSeries, definition) {
|
|
130
127
|
if (definition.type === DataFilterType_1.EDataFilterType.OhlcScaleOffset) {
|
|
131
128
|
return new OhlcScaleOffsetFilter_1.OhlcScaleOffsetFilter(dataSeries, definition.options);
|
|
@@ -19,25 +19,25 @@ var ChartModifierType_1 = require("../types/ChartModifierType");
|
|
|
19
19
|
var chartBuilder_1 = require("./chartBuilder");
|
|
20
20
|
var classFactory_1 = require("./classFactory");
|
|
21
21
|
// register modifiers
|
|
22
|
-
classFactory_1.registerType(BaseType_1.EBaseType.Chart2DModifier, ChartModifierType_1.EChart2DModifierType.Cursor, function (options) { return new CursorModifier_1.CursorModifier(options); }, true);
|
|
23
|
-
classFactory_1.registerType(BaseType_1.EBaseType.Chart2DModifier, ChartModifierType_1.EChart2DModifierType.DataPointSelection, function (options) { return new DataPointSelectionModifier_1.DataPointSelectionModifier(options); }, true);
|
|
24
|
-
classFactory_1.registerType(BaseType_1.EBaseType.Chart2DModifier, ChartModifierType_1.EChart2DModifierType.MouseWheelZoom, function (options) { return new MouseWheelZoomModifier_1.MouseWheelZoomModifier(options); }, true);
|
|
25
|
-
classFactory_1.registerType(BaseType_1.EBaseType.Chart2DModifier, ChartModifierType_1.EChart2DModifierType.PinchZoom, function (options) { return new PinchZoomModifier_1.PinchZoomModifier(options); }, true);
|
|
26
|
-
classFactory_1.registerType(BaseType_1.EBaseType.Chart2DModifier, ChartModifierType_1.EChart2DModifierType.Rollover, function (options) { return new RolloverModifier_1.RolloverModifier(options); }, true);
|
|
27
|
-
classFactory_1.registerType(BaseType_1.EBaseType.Chart2DModifier, ChartModifierType_1.EChart2DModifierType.RubberBandXYZoom, function (options) { return new RubberBandXyZoomModifier_1.RubberBandXyZoomModifier(options); }, true);
|
|
28
|
-
classFactory_1.registerType(BaseType_1.EBaseType.Chart2DModifier, ChartModifierType_1.EChart2DModifierType.SeriesSelection, function (options) { return new SeriesSelectionModifier_1.SeriesSelectionModifier(options); }, true);
|
|
29
|
-
classFactory_1.registerType(BaseType_1.EBaseType.Chart2DModifier, ChartModifierType_1.EChart2DModifierType.XAxisDrag, function (options) { return new XAxisDragModifier_1.XAxisDragModifier(options); }, true);
|
|
30
|
-
classFactory_1.registerType(BaseType_1.EBaseType.Chart2DModifier, ChartModifierType_1.EChart2DModifierType.YAxisDrag, function (options) { return new YAxisDragModifier_1.YAxisDragModifier(options); }, true);
|
|
31
|
-
classFactory_1.registerType(BaseType_1.EBaseType.Chart2DModifier, ChartModifierType_1.EChart2DModifierType.ZoomExtents, function (options) { return new ZoomExtentsModifier_1.ZoomExtentsModifier(options); }, true);
|
|
32
|
-
classFactory_1.registerType(BaseType_1.EBaseType.Chart2DModifier, ChartModifierType_1.EChart2DModifierType.ZoomPan, function (options) { return new ZoomPanModifier_1.ZoomPanModifier(options); }, true);
|
|
33
|
-
classFactory_1.registerType(BaseType_1.EBaseType.Chart2DModifier, ChartModifierType_1.EChart2DModifierType.OverviewRangeSelection, function (options) { return new OverviewRangeSelectionModifier_1.OverviewRangeSelectionModifier(options); }, true);
|
|
34
|
-
classFactory_1.registerType(BaseType_1.EBaseType.Chart2DModifier, ChartModifierType_1.EChart2DModifierType.Legend, function (options) { return new LegendModifier_1.LegendModifier(options); }, true);
|
|
22
|
+
(0, classFactory_1.registerType)(BaseType_1.EBaseType.Chart2DModifier, ChartModifierType_1.EChart2DModifierType.Cursor, function (options) { return new CursorModifier_1.CursorModifier(options); }, true);
|
|
23
|
+
(0, classFactory_1.registerType)(BaseType_1.EBaseType.Chart2DModifier, ChartModifierType_1.EChart2DModifierType.DataPointSelection, function (options) { return new DataPointSelectionModifier_1.DataPointSelectionModifier(options); }, true);
|
|
24
|
+
(0, classFactory_1.registerType)(BaseType_1.EBaseType.Chart2DModifier, ChartModifierType_1.EChart2DModifierType.MouseWheelZoom, function (options) { return new MouseWheelZoomModifier_1.MouseWheelZoomModifier(options); }, true);
|
|
25
|
+
(0, classFactory_1.registerType)(BaseType_1.EBaseType.Chart2DModifier, ChartModifierType_1.EChart2DModifierType.PinchZoom, function (options) { return new PinchZoomModifier_1.PinchZoomModifier(options); }, true);
|
|
26
|
+
(0, classFactory_1.registerType)(BaseType_1.EBaseType.Chart2DModifier, ChartModifierType_1.EChart2DModifierType.Rollover, function (options) { return new RolloverModifier_1.RolloverModifier(options); }, true);
|
|
27
|
+
(0, classFactory_1.registerType)(BaseType_1.EBaseType.Chart2DModifier, ChartModifierType_1.EChart2DModifierType.RubberBandXYZoom, function (options) { return new RubberBandXyZoomModifier_1.RubberBandXyZoomModifier(options); }, true);
|
|
28
|
+
(0, classFactory_1.registerType)(BaseType_1.EBaseType.Chart2DModifier, ChartModifierType_1.EChart2DModifierType.SeriesSelection, function (options) { return new SeriesSelectionModifier_1.SeriesSelectionModifier(options); }, true);
|
|
29
|
+
(0, classFactory_1.registerType)(BaseType_1.EBaseType.Chart2DModifier, ChartModifierType_1.EChart2DModifierType.XAxisDrag, function (options) { return new XAxisDragModifier_1.XAxisDragModifier(options); }, true);
|
|
30
|
+
(0, classFactory_1.registerType)(BaseType_1.EBaseType.Chart2DModifier, ChartModifierType_1.EChart2DModifierType.YAxisDrag, function (options) { return new YAxisDragModifier_1.YAxisDragModifier(options); }, true);
|
|
31
|
+
(0, classFactory_1.registerType)(BaseType_1.EBaseType.Chart2DModifier, ChartModifierType_1.EChart2DModifierType.ZoomExtents, function (options) { return new ZoomExtentsModifier_1.ZoomExtentsModifier(options); }, true);
|
|
32
|
+
(0, classFactory_1.registerType)(BaseType_1.EBaseType.Chart2DModifier, ChartModifierType_1.EChart2DModifierType.ZoomPan, function (options) { return new ZoomPanModifier_1.ZoomPanModifier(options); }, true);
|
|
33
|
+
(0, classFactory_1.registerType)(BaseType_1.EBaseType.Chart2DModifier, ChartModifierType_1.EChart2DModifierType.OverviewRangeSelection, function (options) { return new OverviewRangeSelectionModifier_1.OverviewRangeSelectionModifier(options); }, true);
|
|
34
|
+
(0, classFactory_1.registerType)(BaseType_1.EBaseType.Chart2DModifier, ChartModifierType_1.EChart2DModifierType.Legend, function (options) { return new LegendModifier_1.LegendModifier(options); }, true);
|
|
35
35
|
/**
|
|
36
36
|
* Build one or more chart modifiers from a definition that can be pure data.
|
|
37
37
|
* @param definition One or an array of {@link TModifierDefinition}
|
|
38
38
|
* @returns An array of modifiers
|
|
39
39
|
*/
|
|
40
|
-
|
|
40
|
+
var buildModifiers = function (definition) {
|
|
41
41
|
if (typeof definition === "string") {
|
|
42
42
|
definition = JSON.parse(definition, chartBuilder_1.chartReviver);
|
|
43
43
|
}
|
|
@@ -53,11 +53,12 @@ exports.buildModifiers = function (definition) {
|
|
|
53
53
|
}
|
|
54
54
|
return modifiers;
|
|
55
55
|
};
|
|
56
|
+
exports.buildModifiers = buildModifiers;
|
|
56
57
|
var buildModifier = function (definition) {
|
|
57
58
|
if (definition.type === ChartModifierType_1.EChart2DModifierType.Custom) {
|
|
58
|
-
return classFactory_1.createType(BaseType_1.EBaseType.Chart2DModifier, definition.customType, null, definition.options);
|
|
59
|
+
return (0, classFactory_1.createType)(BaseType_1.EBaseType.Chart2DModifier, definition.customType, null, definition.options);
|
|
59
60
|
}
|
|
60
61
|
else {
|
|
61
|
-
return classFactory_1.createType(BaseType_1.EBaseType.Chart2DModifier, definition.type, null, definition.options);
|
|
62
|
+
return (0, classFactory_1.createType)(BaseType_1.EBaseType.Chart2DModifier, definition.type, null, definition.options);
|
|
62
63
|
}
|
|
63
64
|
};
|
package/Builder/buildSeries.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { ISelectedPointOptions } from "../Charting/Model/DataPointSelectionPalet
|
|
|
2
2
|
import { IUniformHeatmapSeriesOptions } from "../Charting/Model/UniformHeatmapDataSeries";
|
|
3
3
|
import { IPointMarkerOptions } from "../Charting/Visuals/PointMarkers/BasePointMarker";
|
|
4
4
|
import { ISpritePointMarkerOptions } from "../Charting/Visuals/PointMarkers/SpritePointMarker";
|
|
5
|
-
import { IBaseAnimationOptions } from "../Charting/Visuals/RenderableSeries/Animations/
|
|
5
|
+
import { IBaseAnimationOptions } from "../Charting/Visuals/RenderableSeries/Animations/SeriesAnimation";
|
|
6
6
|
import { IFadeAnimationOptions } from "../Charting/Visuals/RenderableSeries/Animations/FadeAnimation";
|
|
7
7
|
import { IScaleAnimationOptions } from "../Charting/Visuals/RenderableSeries/Animations/ScaleAnimation";
|
|
8
8
|
import { ISweepAnimationOptions } from "../Charting/Visuals/RenderableSeries/Animations/SweepAnimation";
|
package/Builder/buildSeries.js
CHANGED
|
@@ -40,26 +40,26 @@ var PointMarkerType_1 = require("../types/PointMarkerType");
|
|
|
40
40
|
var SeriesType_1 = require("../types/SeriesType");
|
|
41
41
|
var ShaderEffectType_1 = require("../types/ShaderEffectType");
|
|
42
42
|
var buildDataSeries_1 = require("./buildDataSeries");
|
|
43
|
-
var chartBuilder_1 = require("./chartBuilder");
|
|
44
43
|
var classFactory_1 = require("./classFactory");
|
|
45
|
-
|
|
46
|
-
classFactory_1.registerWasmType(BaseType_1.EBaseType.PointMarker, PointMarkerType_1.EPointMarkerType.
|
|
47
|
-
classFactory_1.registerWasmType(BaseType_1.EBaseType.PointMarker, PointMarkerType_1.EPointMarkerType.
|
|
48
|
-
classFactory_1.registerWasmType(BaseType_1.EBaseType.PointMarker, PointMarkerType_1.EPointMarkerType.
|
|
49
|
-
classFactory_1.registerWasmType(BaseType_1.EBaseType.PointMarker, PointMarkerType_1.EPointMarkerType.
|
|
50
|
-
classFactory_1.registerWasmType(BaseType_1.EBaseType.PointMarker, PointMarkerType_1.EPointMarkerType.
|
|
51
|
-
classFactory_1.registerWasmType(BaseType_1.EBaseType.
|
|
52
|
-
classFactory_1.registerWasmType(BaseType_1.EBaseType.ShaderEffect, ShaderEffectType_1.EShaderEffectType.
|
|
53
|
-
classFactory_1.
|
|
54
|
-
classFactory_1.registerType(BaseType_1.EBaseType.Animation, AnimationType_1.EAnimationType.
|
|
55
|
-
classFactory_1.registerType(BaseType_1.EBaseType.Animation, AnimationType_1.EAnimationType.
|
|
56
|
-
classFactory_1.registerType(BaseType_1.EBaseType.Animation, AnimationType_1.EAnimationType.
|
|
44
|
+
var chartBuilder_1 = require("./chartBuilder");
|
|
45
|
+
(0, classFactory_1.registerWasmType)(BaseType_1.EBaseType.PointMarker, PointMarkerType_1.EPointMarkerType.Cross, function (wasm, options) { return new CrossPointMarker_1.CrossPointMarker(wasm, options); }, true);
|
|
46
|
+
(0, classFactory_1.registerWasmType)(BaseType_1.EBaseType.PointMarker, PointMarkerType_1.EPointMarkerType.Ellipse, function (wasm, options) { return new EllipsePointMarker_1.EllipsePointMarker(wasm, options); }, true);
|
|
47
|
+
(0, classFactory_1.registerWasmType)(BaseType_1.EBaseType.PointMarker, PointMarkerType_1.EPointMarkerType.Sprite, function (wasm, options) { return new SpritePointMarker_1.SpritePointMarker(wasm, options); }, true);
|
|
48
|
+
(0, classFactory_1.registerWasmType)(BaseType_1.EBaseType.PointMarker, PointMarkerType_1.EPointMarkerType.Square, function (wasm, options) { return new SquarePointMarker_1.SquarePointMarker(wasm, options); }, true);
|
|
49
|
+
(0, classFactory_1.registerWasmType)(BaseType_1.EBaseType.PointMarker, PointMarkerType_1.EPointMarkerType.Triangle, function (wasm, options) { return new TrianglePointMarker_1.TrianglePointMarker(wasm, options); }, true);
|
|
50
|
+
(0, classFactory_1.registerWasmType)(BaseType_1.EBaseType.PointMarker, PointMarkerType_1.EPointMarkerType.X, function (wasm, options) { return new XPointMarker_1.XPointMarker(wasm, options); }, true);
|
|
51
|
+
(0, classFactory_1.registerWasmType)(BaseType_1.EBaseType.ShaderEffect, ShaderEffectType_1.EShaderEffectType.Glow, function (wasm, options) { return new GlowEffect_1.GlowEffect(wasm, options); }, true);
|
|
52
|
+
(0, classFactory_1.registerWasmType)(BaseType_1.EBaseType.ShaderEffect, ShaderEffectType_1.EShaderEffectType.Shadow, function (wasm, options) { return new ShadowEffect_1.ShadowEffect(wasm, options); }, true);
|
|
53
|
+
(0, classFactory_1.registerType)(BaseType_1.EBaseType.Animation, AnimationType_1.EAnimationType.Fade, function (options) { return new FadeAnimation_1.FadeAnimation(options); }, true);
|
|
54
|
+
(0, classFactory_1.registerType)(BaseType_1.EBaseType.Animation, AnimationType_1.EAnimationType.Scale, function (options) { return new ScaleAnimation_1.ScaleAnimation(options); }, true);
|
|
55
|
+
(0, classFactory_1.registerType)(BaseType_1.EBaseType.Animation, AnimationType_1.EAnimationType.Sweep, function (options) { return new SweepAnimation_1.SweepAnimation(options); }, true);
|
|
56
|
+
(0, classFactory_1.registerType)(BaseType_1.EBaseType.Animation, AnimationType_1.EAnimationType.Wave, function (options) { return new WaveAnimation_1.WaveAnimation(options); }, true);
|
|
57
57
|
// Metadata
|
|
58
|
-
classFactory_1.registerType(BaseType_1.EBaseType.MetadataGenerator, "Template", function (template) { return new IPointMetadata_1.TemplateMetadataGenerator(template); }, true);
|
|
58
|
+
(0, classFactory_1.registerType)(BaseType_1.EBaseType.MetadataGenerator, "Template", function (template) { return new IPointMetadata_1.TemplateMetadataGenerator(template); }, true);
|
|
59
59
|
// PaletteProviders
|
|
60
60
|
// Default palette provider is not required as it is created automatically if none is provided.
|
|
61
|
-
classFactory_1.registerWasmType(BaseType_1.EBaseType.PaletteProvider, PaletteProviderType_1.EPaletteProviderType.Gradient, function (wasmContext, gradientBrush) { return PaletteFactory_1.PaletteFactory.createGradient(wasmContext, gradientBrush); }, true);
|
|
62
|
-
classFactory_1.registerType(BaseType_1.EBaseType.PaletteProvider, PaletteProviderType_1.EPaletteProviderType.DataPointSelection, function (selectedStyle) { return new DataPointSelectionPaletteProvider_1.DataPointSelectionPaletteProvider(selectedStyle); }, true);
|
|
61
|
+
(0, classFactory_1.registerWasmType)(BaseType_1.EBaseType.PaletteProvider, PaletteProviderType_1.EPaletteProviderType.Gradient, function (wasmContext, gradientBrush) { return PaletteFactory_1.PaletteFactory.createGradient(wasmContext, gradientBrush); }, true);
|
|
62
|
+
(0, classFactory_1.registerType)(BaseType_1.EBaseType.PaletteProvider, PaletteProviderType_1.EPaletteProviderType.DataPointSelection, function (selectedStyle) { return new DataPointSelectionPaletteProvider_1.DataPointSelectionPaletteProvider(selectedStyle); }, true);
|
|
63
63
|
/**
|
|
64
64
|
* Build one or more renderable series from a definition that can be pure data.
|
|
65
65
|
* @param wasmContext A {@link TSciChart | SciChart 2D WebAssembly Context} or {@link TSciChart | SciChart 3D WebAssembly Context}
|
|
@@ -67,7 +67,7 @@ classFactory_1.registerType(BaseType_1.EBaseType.PaletteProvider, PaletteProvide
|
|
|
67
67
|
* @param sharedData Optional {@link TSharedDataDefinition} to define shared data which can be referenced by the renderable series
|
|
68
68
|
* @returns An array of {@link IRenderableSeries}.
|
|
69
69
|
*/
|
|
70
|
-
|
|
70
|
+
var buildSeries = function (wasmContext, definition, sharedData) {
|
|
71
71
|
if (typeof definition === "string") {
|
|
72
72
|
definition = JSON.parse(definition, chartBuilder_1.chartReviver);
|
|
73
73
|
}
|
|
@@ -128,16 +128,16 @@ exports.buildSeries = function (wasmContext, definition, sharedData) {
|
|
|
128
128
|
}
|
|
129
129
|
else if (seriesDef.type === SeriesType_1.ESeriesType.StackedColumnCollection) {
|
|
130
130
|
var col = new StackedColumnCollection_1.StackedColumnCollection(wasmContext, seriesDef.options);
|
|
131
|
-
col.add.apply(col, exports.buildSeries(wasmContext, seriesDef.series, sharedData));
|
|
131
|
+
col.add.apply(col, (0, exports.buildSeries)(wasmContext, seriesDef.series, sharedData));
|
|
132
132
|
series = col;
|
|
133
133
|
}
|
|
134
134
|
else if (seriesDef.type === SeriesType_1.ESeriesType.StackedMountainCollection) {
|
|
135
135
|
var col = new StackedMountainCollection_1.StackedMountainCollection(wasmContext, seriesDef.options);
|
|
136
|
-
col.add.apply(col, exports.buildSeries(wasmContext, seriesDef.series, sharedData));
|
|
136
|
+
col.add.apply(col, (0, exports.buildSeries)(wasmContext, seriesDef.series, sharedData));
|
|
137
137
|
series = col;
|
|
138
138
|
}
|
|
139
139
|
if (series) {
|
|
140
|
-
var dataSeries = buildDataSeries_1.buildDataSeries(wasmContext, seriesDef, sharedData);
|
|
140
|
+
var dataSeries = (0, buildDataSeries_1.buildDataSeries)(wasmContext, seriesDef, sharedData);
|
|
141
141
|
if (dataSeries) {
|
|
142
142
|
series.dataSeries = dataSeries;
|
|
143
143
|
}
|
|
@@ -148,3 +148,4 @@ exports.buildSeries = function (wasmContext, definition, sharedData) {
|
|
|
148
148
|
}
|
|
149
149
|
return result;
|
|
150
150
|
};
|
|
151
|
+
exports.buildSeries = buildSeries;
|
package/Builder/buildSurface.js
CHANGED
|
@@ -69,36 +69,36 @@ var buildSeries_1 = require("./buildSeries");
|
|
|
69
69
|
var chartBuilder_1 = require("./chartBuilder");
|
|
70
70
|
var classFactory_1 = require("./classFactory");
|
|
71
71
|
// register themes
|
|
72
|
-
classFactory_1.registerType(BaseType_1.EBaseType.ThemeProvider, "Light", function () { return new SciChartJSLightTheme_1.SciChartJSLightTheme(); }, true);
|
|
73
|
-
classFactory_1.registerType(BaseType_1.EBaseType.ThemeProvider, "DarkV2", function () { return new SciChartJSDarkv2Theme_1.SciChartJSDarkv2Theme(); }, true);
|
|
74
|
-
classFactory_1.registerType(BaseType_1.EBaseType.ThemeProvider, "Dark", function () { return new SciChartJSDarkTheme_1.SciChartJSDarkTheme(); }, true);
|
|
72
|
+
(0, classFactory_1.registerType)(BaseType_1.EBaseType.ThemeProvider, "Light", function () { return new SciChartJSLightTheme_1.SciChartJSLightTheme(); }, true);
|
|
73
|
+
(0, classFactory_1.registerType)(BaseType_1.EBaseType.ThemeProvider, "DarkV2", function () { return new SciChartJSDarkv2Theme_1.SciChartJSDarkv2Theme(); }, true);
|
|
74
|
+
(0, classFactory_1.registerType)(BaseType_1.EBaseType.ThemeProvider, "Dark", function () { return new SciChartJSDarkTheme_1.SciChartJSDarkTheme(); }, true);
|
|
75
75
|
// register Layout managers
|
|
76
|
-
classFactory_1.registerType(BaseType_1.EBaseType.LayoutManager, LayoutMangerType_1.ELayoutManagerType.Default, function (options) { return new LayoutManager_1.LayoutManager(options); }, true);
|
|
76
|
+
(0, classFactory_1.registerType)(BaseType_1.EBaseType.LayoutManager, LayoutMangerType_1.ELayoutManagerType.Default, function (options) { return new LayoutManager_1.LayoutManager(options); }, true);
|
|
77
77
|
// TODO builder api support for VerticalGroup and synced layoutmanagers
|
|
78
78
|
// registerType(EBaseType.LayoutManager, ELayoutManagerType.Synchronised, (options?: any) => new SynchronizedLayoutManager(options), true);
|
|
79
|
-
classFactory_1.registerType(BaseType_1.EBaseType.LayoutManager, LayoutMangerType_1.ELayoutManagerType.CentralAxes, function (options) { return new CentralAxesLayoutManager_1.CentralAxesLayoutManager(options); }, true);
|
|
79
|
+
(0, classFactory_1.registerType)(BaseType_1.EBaseType.LayoutManager, LayoutMangerType_1.ELayoutManagerType.CentralAxes, function (options) { return new CentralAxesLayoutManager_1.CentralAxesLayoutManager(options); }, true);
|
|
80
80
|
// register Layout Strategies
|
|
81
|
-
classFactory_1.registerType(BaseType_1.EBaseType.LayoutStrategy, LayoutStrategyType_1.ELayoutStrategyType.BottomInner, function (options) { return new BottomAlignedInnerAxisLayoutStrategy_1.BottomAlignedInnerAxisLayoutStrategy(options); }, true);
|
|
82
|
-
classFactory_1.registerType(BaseType_1.EBaseType.LayoutStrategy, LayoutStrategyType_1.ELayoutStrategyType.BottomOuter, function (options) { return new BottomAlignedOuterAxisLayoutStrategy_1.BottomAlignedOuterAxisLayoutStrategy(); }, true);
|
|
83
|
-
classFactory_1.registerType(BaseType_1.EBaseType.LayoutStrategy, LayoutStrategyType_1.ELayoutStrategyType.BottomStacked, function (options) { return new BottomAlignedOuterHorizontallyStackedAxisLayoutStrategy_1.BottomAlignedOuterHorizontallyStackedAxisLayoutStrategy(); }, true);
|
|
84
|
-
classFactory_1.registerType(BaseType_1.EBaseType.LayoutStrategy, LayoutStrategyType_1.ELayoutStrategyType.LeftInner, function (options) { return new LeftAlignedInnerAxisLayoutStrategy_1.LeftAlignedInnerAxisLayoutStrategy(options); }, true);
|
|
85
|
-
classFactory_1.registerType(BaseType_1.EBaseType.LayoutStrategy, LayoutStrategyType_1.ELayoutStrategyType.LeftOuter, function (options) { return new LeftAlignedOuterAxisLayoutStrategy_1.LeftAlignedOuterAxisLayoutStrategy(); }, true);
|
|
86
|
-
classFactory_1.registerType(BaseType_1.EBaseType.LayoutStrategy, LayoutStrategyType_1.ELayoutStrategyType.LeftStacked, function (options) { return new LeftAlignedOuterVerticallyStackedAxisLayoutStrategy_1.LeftAlignedOuterVerticallyStackedAxisLayoutStrategy(); }, true);
|
|
87
|
-
classFactory_1.registerType(BaseType_1.EBaseType.LayoutStrategy, LayoutStrategyType_1.ELayoutStrategyType.RightInner, function (options) { return new RightAlignedInnerAxisLayoutStrategy_1.RightAlignedInnerAxisLayoutStrategy(options); }, true);
|
|
88
|
-
classFactory_1.registerType(BaseType_1.EBaseType.LayoutStrategy, LayoutStrategyType_1.ELayoutStrategyType.RightOuter, function (options) { return new RightAlignedOuterAxisLayoutStrategy_1.RightAlignedOuterAxisLayoutStrategy(); }, true);
|
|
89
|
-
classFactory_1.registerType(BaseType_1.EBaseType.LayoutStrategy, LayoutStrategyType_1.ELayoutStrategyType.RightStacked, function (options) { return new RightAlignedOuterVerticallyStackedAxisLayoutStrategy_1.RightAlignedOuterVerticallyStackedAxisLayoutStrategy(); }, true);
|
|
90
|
-
classFactory_1.registerType(BaseType_1.EBaseType.LayoutStrategy, LayoutStrategyType_1.ELayoutStrategyType.TopInner, function (options) { return new TopAlignedInnerAxisLayoutStrategy_1.TopAlignedInnerAxisLayoutStrategy(options); }, true);
|
|
91
|
-
classFactory_1.registerType(BaseType_1.EBaseType.LayoutStrategy, LayoutStrategyType_1.ELayoutStrategyType.TopOuter, function (options) { return new TopAlignedOuterAxisLayoutStrategy_1.TopAlignedOuterAxisLayoutStrategy(); }, true);
|
|
92
|
-
classFactory_1.registerType(BaseType_1.EBaseType.LayoutStrategy, LayoutStrategyType_1.ELayoutStrategyType.TopStacked, function (options) { return new TopAlignedOuterHorizontallyStackedAxisLayoutStrategy_1.TopAlignedOuterHorizontallyStackedAxisLayoutStrategy(); }, true);
|
|
81
|
+
(0, classFactory_1.registerType)(BaseType_1.EBaseType.LayoutStrategy, LayoutStrategyType_1.ELayoutStrategyType.BottomInner, function (options) { return new BottomAlignedInnerAxisLayoutStrategy_1.BottomAlignedInnerAxisLayoutStrategy(options); }, true);
|
|
82
|
+
(0, classFactory_1.registerType)(BaseType_1.EBaseType.LayoutStrategy, LayoutStrategyType_1.ELayoutStrategyType.BottomOuter, function (options) { return new BottomAlignedOuterAxisLayoutStrategy_1.BottomAlignedOuterAxisLayoutStrategy(); }, true);
|
|
83
|
+
(0, classFactory_1.registerType)(BaseType_1.EBaseType.LayoutStrategy, LayoutStrategyType_1.ELayoutStrategyType.BottomStacked, function (options) { return new BottomAlignedOuterHorizontallyStackedAxisLayoutStrategy_1.BottomAlignedOuterHorizontallyStackedAxisLayoutStrategy(); }, true);
|
|
84
|
+
(0, classFactory_1.registerType)(BaseType_1.EBaseType.LayoutStrategy, LayoutStrategyType_1.ELayoutStrategyType.LeftInner, function (options) { return new LeftAlignedInnerAxisLayoutStrategy_1.LeftAlignedInnerAxisLayoutStrategy(options); }, true);
|
|
85
|
+
(0, classFactory_1.registerType)(BaseType_1.EBaseType.LayoutStrategy, LayoutStrategyType_1.ELayoutStrategyType.LeftOuter, function (options) { return new LeftAlignedOuterAxisLayoutStrategy_1.LeftAlignedOuterAxisLayoutStrategy(); }, true);
|
|
86
|
+
(0, classFactory_1.registerType)(BaseType_1.EBaseType.LayoutStrategy, LayoutStrategyType_1.ELayoutStrategyType.LeftStacked, function (options) { return new LeftAlignedOuterVerticallyStackedAxisLayoutStrategy_1.LeftAlignedOuterVerticallyStackedAxisLayoutStrategy(); }, true);
|
|
87
|
+
(0, classFactory_1.registerType)(BaseType_1.EBaseType.LayoutStrategy, LayoutStrategyType_1.ELayoutStrategyType.RightInner, function (options) { return new RightAlignedInnerAxisLayoutStrategy_1.RightAlignedInnerAxisLayoutStrategy(options); }, true);
|
|
88
|
+
(0, classFactory_1.registerType)(BaseType_1.EBaseType.LayoutStrategy, LayoutStrategyType_1.ELayoutStrategyType.RightOuter, function (options) { return new RightAlignedOuterAxisLayoutStrategy_1.RightAlignedOuterAxisLayoutStrategy(); }, true);
|
|
89
|
+
(0, classFactory_1.registerType)(BaseType_1.EBaseType.LayoutStrategy, LayoutStrategyType_1.ELayoutStrategyType.RightStacked, function (options) { return new RightAlignedOuterVerticallyStackedAxisLayoutStrategy_1.RightAlignedOuterVerticallyStackedAxisLayoutStrategy(); }, true);
|
|
90
|
+
(0, classFactory_1.registerType)(BaseType_1.EBaseType.LayoutStrategy, LayoutStrategyType_1.ELayoutStrategyType.TopInner, function (options) { return new TopAlignedInnerAxisLayoutStrategy_1.TopAlignedInnerAxisLayoutStrategy(options); }, true);
|
|
91
|
+
(0, classFactory_1.registerType)(BaseType_1.EBaseType.LayoutStrategy, LayoutStrategyType_1.ELayoutStrategyType.TopOuter, function (options) { return new TopAlignedOuterAxisLayoutStrategy_1.TopAlignedOuterAxisLayoutStrategy(); }, true);
|
|
92
|
+
(0, classFactory_1.registerType)(BaseType_1.EBaseType.LayoutStrategy, LayoutStrategyType_1.ELayoutStrategyType.TopStacked, function (options) { return new TopAlignedOuterHorizontallyStackedAxisLayoutStrategy_1.TopAlignedOuterHorizontallyStackedAxisLayoutStrategy(); }, true);
|
|
93
93
|
// register loaders
|
|
94
|
-
classFactory_1.registerType(BaseType_1.EBaseType.Loader, "Default", function () { return new loader_1.DefaultSciChartLoader(); }, true);
|
|
94
|
+
(0, classFactory_1.registerType)(BaseType_1.EBaseType.Loader, "Default", function () { return new loader_1.DefaultSciChartLoader(); }, true);
|
|
95
95
|
/**
|
|
96
96
|
* Construct a chart with {@link SciChartSurface} using a {@link ISciChart2DDefinition} which can be pure data.
|
|
97
97
|
* @remarks This method is async and must be awaited
|
|
98
98
|
* @param divElementId The Div Element ID where the {@link SciChartSurface} will reside
|
|
99
99
|
* @param definition the {@link ISciChart2DDefinition}
|
|
100
100
|
*/
|
|
101
|
-
|
|
101
|
+
var build2DChart = function (divElementId, definition) { return __awaiter(void 0, void 0, void 0, function () {
|
|
102
102
|
var _a, wasmContext, sciChartSurface;
|
|
103
103
|
var _b, _c, _d, _e, _f;
|
|
104
104
|
return __generator(this, function (_g) {
|
|
@@ -111,31 +111,31 @@ exports.build2DChart = function (divElementId, definition) { return __awaiter(vo
|
|
|
111
111
|
case 1:
|
|
112
112
|
_a = _g.sent(), wasmContext = _a.wasmContext, sciChartSurface = _a.sciChartSurface;
|
|
113
113
|
if (definition.xAxes) {
|
|
114
|
-
(_b = sciChartSurface.xAxes).add.apply(_b, buildAxis_1.buildAxes(wasmContext, definition.xAxes));
|
|
114
|
+
(_b = sciChartSurface.xAxes).add.apply(_b, (0, buildAxis_1.buildAxes)(wasmContext, definition.xAxes));
|
|
115
115
|
}
|
|
116
116
|
if (sciChartSurface.xAxes.size() === 0) {
|
|
117
117
|
sciChartSurface.xAxes.add(new NumericAxis_1.NumericAxis(wasmContext));
|
|
118
118
|
}
|
|
119
119
|
if (definition.yAxes) {
|
|
120
|
-
(_c = sciChartSurface.yAxes).add.apply(_c, buildAxis_1.buildAxes(wasmContext, definition.yAxes));
|
|
120
|
+
(_c = sciChartSurface.yAxes).add.apply(_c, (0, buildAxis_1.buildAxes)(wasmContext, definition.yAxes));
|
|
121
121
|
}
|
|
122
122
|
if (sciChartSurface.yAxes.size() === 0) {
|
|
123
123
|
sciChartSurface.yAxes.add(new NumericAxis_1.NumericAxis(wasmContext));
|
|
124
124
|
}
|
|
125
125
|
if (definition.series) {
|
|
126
|
-
(_d = sciChartSurface.renderableSeries).add.apply(_d, buildSeries_1.buildSeries(wasmContext, definition.series, definition.sharedData));
|
|
126
|
+
(_d = sciChartSurface.renderableSeries).add.apply(_d, (0, buildSeries_1.buildSeries)(wasmContext, definition.series, definition.sharedData));
|
|
127
127
|
}
|
|
128
128
|
if (definition.modifiers) {
|
|
129
|
-
(_e = sciChartSurface.chartModifiers).add.apply(_e, buildModifiers_1.buildModifiers(definition.modifiers));
|
|
129
|
+
(_e = sciChartSurface.chartModifiers).add.apply(_e, (0, buildModifiers_1.buildModifiers)(definition.modifiers));
|
|
130
130
|
}
|
|
131
131
|
if (definition.annotations) {
|
|
132
|
-
(_f = sciChartSurface.annotations).add.apply(_f, buildAnnotations_1.buildAnnotations(definition.annotations));
|
|
132
|
+
(_f = sciChartSurface.annotations).add.apply(_f, (0, buildAnnotations_1.buildAnnotations)(definition.annotations));
|
|
133
133
|
}
|
|
134
134
|
if (definition.onCreated) {
|
|
135
135
|
if (typeof definition.onCreated === "string") {
|
|
136
136
|
sciChartSurface.onCreatedName = definition.onCreated;
|
|
137
137
|
// @ts-ignore
|
|
138
|
-
definition.onCreated = classFactory_1.getFunction(BaseType_1.EBaseType.OnCreateFunction, definition.onCreated);
|
|
138
|
+
definition.onCreated = (0, classFactory_1.getFunction)(BaseType_1.EBaseType.OnCreateFunction, definition.onCreated);
|
|
139
139
|
}
|
|
140
140
|
// @ts-ignore
|
|
141
141
|
definition.onCreated(sciChartSurface);
|
|
@@ -144,13 +144,14 @@ exports.build2DChart = function (divElementId, definition) { return __awaiter(vo
|
|
|
144
144
|
}
|
|
145
145
|
});
|
|
146
146
|
}); };
|
|
147
|
+
exports.build2DChart = build2DChart;
|
|
147
148
|
/**
|
|
148
149
|
* Construct a chart with {@link SciChartPieSurface} using a {@link ISciChartPieDefinition} which can be pure data.
|
|
149
150
|
* @remarks This method is async and must be awaited
|
|
150
151
|
* @param divElementId The Div Element ID where the {@link SciChartPieSurface} will reside
|
|
151
152
|
* @param definition the {@link ISciChartPieDefinition}
|
|
152
153
|
*/
|
|
153
|
-
|
|
154
|
+
var buildPieChart = function (divElementId, definition) { return __awaiter(void 0, void 0, void 0, function () {
|
|
154
155
|
var scps, _i, _a, segmentOption, segment;
|
|
155
156
|
return __generator(this, function (_b) {
|
|
156
157
|
switch (_b.label) {
|
|
@@ -172,7 +173,7 @@ exports.buildPieChart = function (divElementId, definition) { return __awaiter(v
|
|
|
172
173
|
if (typeof definition.onCreated === "string") {
|
|
173
174
|
scps.onCreatedName = definition.onCreated;
|
|
174
175
|
// @ts-ignore
|
|
175
|
-
definition.onCreated = classFactory_1.getFunction(BaseType_1.EBaseType.OnCreateFunction, definition.onCreated);
|
|
176
|
+
definition.onCreated = (0, classFactory_1.getFunction)(BaseType_1.EBaseType.OnCreateFunction, definition.onCreated);
|
|
176
177
|
}
|
|
177
178
|
// @ts-ignore
|
|
178
179
|
definition.onCreated(scps);
|
|
@@ -181,3 +182,4 @@ exports.buildPieChart = function (divElementId, definition) { return __awaiter(v
|
|
|
181
182
|
}
|
|
182
183
|
});
|
|
183
184
|
}); };
|
|
185
|
+
exports.buildPieChart = buildPieChart;
|
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
import { SciChartPieSurface } from "../Charting/Visuals/SciChartPieSurface/SciChartPieSurface";
|
|
2
|
-
import {
|
|
3
|
-
import { EBaseType } from "../types/BaseType";
|
|
2
|
+
import { TWebAssemblyChart } from "../Charting/Visuals/SciChartSurface";
|
|
4
3
|
import { ESciChartSurfaceType } from "../types/SciChartSurfaceType";
|
|
5
|
-
import { TAnnotationDefinition } from "./buildAnnotations";
|
|
6
|
-
import { TAxisDefinition } from "./buildAxis";
|
|
7
|
-
import { TModifierDefinition } from "./buildModifiers";
|
|
8
|
-
import { TSeriesDefinition } from "./buildSeries";
|
|
9
4
|
import { ISciChart2DDefinition, ISciChartPieDefinition } from "./buildSurface";
|
|
10
5
|
export declare type TSurfaceDefinition = ISciChart2DDefinition | {
|
|
11
6
|
type?: ESciChartSurfaceType.Default2D;
|
|
@@ -37,171 +32,24 @@ export declare const chartBuilder: {
|
|
|
37
32
|
/** @inheritdoc */
|
|
38
33
|
build2DChart: (divElementId: string, definition: string | ISciChart2DDefinition) => Promise<{
|
|
39
34
|
wasmContext: import("../types/TSciChart").TSciChart;
|
|
40
|
-
sciChartSurface: SciChartSurface;
|
|
35
|
+
sciChartSurface: import("../Charting/Visuals/SciChartSurface").SciChartSurface;
|
|
41
36
|
}>;
|
|
42
37
|
/** @inheritdoc */
|
|
43
38
|
buildPieChart: (divElementId: string, definition: string | ISciChartPieDefinition) => Promise<SciChartPieSurface>;
|
|
44
39
|
/** @inheritdoc */
|
|
45
|
-
buildSeries: (wasmContext: import("../types/TSciChart").TSciChart, definition:
|
|
46
|
-
type: import("../types/SeriesType").ESeriesType.BandSeries;
|
|
47
|
-
options?: import("../Charting/Visuals/RenderableSeries/FastBandRenderableSeries").IBandRenderableSeriesOptions;
|
|
48
|
-
xyyData?: import("./buildDataSeries").TXyySeriesData;
|
|
49
|
-
} | {
|
|
50
|
-
type: import("../types/SeriesType").ESeriesType.BubbleSeries;
|
|
51
|
-
options?: import("../Charting/Visuals/RenderableSeries/FastBubbleRenderableSeries").IBubbleRenderableSeriesOptions;
|
|
52
|
-
xyzData?: import("./buildDataSeries").TXyzSeriesData;
|
|
53
|
-
} | {
|
|
54
|
-
type: import("../types/SeriesType").ESeriesType.ColumnSeries;
|
|
55
|
-
options?: import("../Charting/Visuals/RenderableSeries/FastColumnRenderableSeries").IColumnRenderableSeriesOptions;
|
|
56
|
-
xyData?: import("./buildDataSeries").TXySeriesData;
|
|
57
|
-
} | {
|
|
58
|
-
type: import("../types/SeriesType").ESeriesType.CandlestickSeries;
|
|
59
|
-
options?: import("../Charting/Visuals/RenderableSeries/FastCandlestickRenderableSeries").ICandlestickRenderableSeriesOptions;
|
|
60
|
-
ohlcData?: import("./buildDataSeries").TOhlcSeriesData;
|
|
61
|
-
} | {
|
|
62
|
-
type: import("../types/SeriesType").ESeriesType.LineSeries;
|
|
63
|
-
options?: import("../Charting/Visuals/RenderableSeries/FastLineRenderableSeries").IFastLineRenderableSeriesOptions;
|
|
64
|
-
xyData?: import("./buildDataSeries").TXySeriesData;
|
|
65
|
-
} | {
|
|
66
|
-
type: import("../types/SeriesType").ESeriesType.MountainSeries;
|
|
67
|
-
options?: import("../Charting/Visuals/RenderableSeries/FastMountainRenderableSeries").IMountainRenderableSeriesOptions;
|
|
68
|
-
xyData?: import("./buildDataSeries").TXySeriesData;
|
|
69
|
-
} | {
|
|
70
|
-
type: import("../types/SeriesType").ESeriesType.OhlcSeries;
|
|
71
|
-
options?: import("../Charting/Visuals/RenderableSeries/FastOhlcRenderableSeries").IOhlcRenderableSeriesOptions;
|
|
72
|
-
ohlcData?: import("./buildDataSeries").TOhlcSeriesData;
|
|
73
|
-
} | {
|
|
74
|
-
type: import("../types/SeriesType").ESeriesType.ScatterSeries;
|
|
75
|
-
options?: import("../Charting/Visuals/RenderableSeries/XyScatterRenderableSeries").IXyScatterRenderableSeriesOptions;
|
|
76
|
-
xyData?: import("./buildDataSeries").TXySeriesData;
|
|
77
|
-
} | {
|
|
78
|
-
type: import("../types/SeriesType").ESeriesType.SplineBandSeries;
|
|
79
|
-
options?: import("../Charting/Visuals/RenderableSeries/SplineBandRenderableSeries").ISplineBandRenderableSeriesOptions;
|
|
80
|
-
xyyData?: import("./buildDataSeries").TXyySeriesData;
|
|
81
|
-
} | {
|
|
82
|
-
type: import("../types/SeriesType").ESeriesType.SplineLineSeries;
|
|
83
|
-
options?: import("../Charting/Visuals/RenderableSeries/SplineLineRenderableSeries").ISplineLineRenderableSeriesOptions;
|
|
84
|
-
xyData?: import("./buildDataSeries").TXySeriesData;
|
|
85
|
-
} | {
|
|
86
|
-
type: import("../types/SeriesType").ESeriesType.SplineMountainSeries;
|
|
87
|
-
options?: import("../Charting/Visuals/RenderableSeries/SplineMountainRenderableSeries").ISplineMountainRenderableSeriesOptions;
|
|
88
|
-
xyData?: import("./buildDataSeries").TXySeriesData;
|
|
89
|
-
} | {
|
|
90
|
-
type: import("../types/SeriesType").ESeriesType.UniformHeatmapSeries;
|
|
91
|
-
options?: import("../Charting/Visuals/RenderableSeries/UniformHeatmapRenderableSeries").IHeatmapRenderableSeriesOptions;
|
|
92
|
-
heatmapData?: import("../Charting/Model/UniformHeatmapDataSeries").IUniformHeatmapSeriesOptions;
|
|
93
|
-
} | {
|
|
94
|
-
type: import("../types/SeriesType").ESeriesType.UniformContoursSeries;
|
|
95
|
-
options?: import("../Charting/Visuals/RenderableSeries/UniformContoursRenderableSeries").IContoursRenderableSeriesOptions;
|
|
96
|
-
heatmapData?: import("../Charting/Model/UniformHeatmapDataSeries").IUniformHeatmapSeriesOptions;
|
|
97
|
-
} | {
|
|
98
|
-
type: import("../types/SeriesType").ESeriesType.StackedColumnSeries;
|
|
99
|
-
options?: import("../Charting/Visuals/RenderableSeries/StackedColumnRenderableSeries").IStackedColumnRenderableSeriesOptions;
|
|
100
|
-
xyData?: import("./buildDataSeries").TXySeriesData;
|
|
101
|
-
} | {
|
|
102
|
-
type: import("../types/SeriesType").ESeriesType.StackedMountainSeries;
|
|
103
|
-
options?: import("../Charting/Visuals/RenderableSeries/StackedMountainRenderableSeries").IStackedMountainRenderableSeriesOptions;
|
|
104
|
-
xyData?: import("./buildDataSeries").TXySeriesData;
|
|
105
|
-
} | {
|
|
106
|
-
type: import("../types/SeriesType").ESeriesType.StackedColumnCollection;
|
|
107
|
-
options?: import("../Charting/Visuals/RenderableSeries/StackedColumnCollection").IStackedColumnCollectionOptions;
|
|
108
|
-
series?: TSeriesDefinition[];
|
|
109
|
-
} | {
|
|
110
|
-
type: import("../types/SeriesType").ESeriesType.StackedMountainCollection;
|
|
111
|
-
options?: import("../Charting/Visuals/RenderableSeries/BaseStackedCollection").IBaseStackedCollectionOptions;
|
|
112
|
-
series?: TSeriesDefinition[];
|
|
113
|
-
} | TSeriesDefinition[], sharedData?: Record<string | number, number[]>) => import("../Charting/Visuals/RenderableSeries/IRenderableSeries").IRenderableSeries[];
|
|
40
|
+
buildSeries: (wasmContext: import("../types/TSciChart").TSciChart, definition: import("./buildSeries").TSeriesDefinition | import("./buildSeries").TSeriesDefinition[], sharedData?: import("./buildDataSeries").TSharedDataDefinition) => import("../Charting/Visuals/RenderableSeries/IRenderableSeries").IRenderableSeries[];
|
|
114
41
|
/** @inheritdoc */
|
|
115
|
-
buildDataSeries: (wasmContext: import("../types/TSciChart").TSciChart, seriesDefinition: TSeriesDefinition, sharedData?:
|
|
42
|
+
buildDataSeries: (wasmContext: import("../types/TSciChart").TSciChart, seriesDefinition: import("./buildSeries").TSeriesDefinition, sharedData?: import("./buildDataSeries").TSharedDataDefinition) => import("../Charting/Model/IDataSeries").IDataSeries;
|
|
116
43
|
/** @inheritdoc */
|
|
117
|
-
buildModifiers: (definition:
|
|
118
|
-
type: import("../types/ChartModifierType").EChart2DModifierType.Cursor;
|
|
119
|
-
options?: import("../Charting/ChartModifiers/CursorModifier").ICursorModifierOptions;
|
|
120
|
-
} | {
|
|
121
|
-
type: import("../types/ChartModifierType").EChart2DModifierType.DataPointSelection;
|
|
122
|
-
options?: import("../Charting/ChartModifiers/DataPointSelectionModifier").IDataPointSelectionModifierOptions;
|
|
123
|
-
} | {
|
|
124
|
-
type: import("../types/ChartModifierType").EChart2DModifierType.Legend;
|
|
125
|
-
options?: import("../Charting/ChartModifiers/LegendModifier").ILegendModifierOptions;
|
|
126
|
-
} | {
|
|
127
|
-
type: import("../types/ChartModifierType").EChart2DModifierType.MouseWheelZoom;
|
|
128
|
-
options?: import("../Charting/ChartModifiers/MouseWheelZoomModifier").IMouseWheelZoomModifierOptions;
|
|
129
|
-
} | {
|
|
130
|
-
type: import("../types/ChartModifierType").EChart2DModifierType.PinchZoom;
|
|
131
|
-
options?: import("../Charting/ChartModifiers/PinchZoomModifier").IPinchZoomModifierOptions;
|
|
132
|
-
} | {
|
|
133
|
-
type: import("../types/ChartModifierType").EChart2DModifierType.Rollover;
|
|
134
|
-
options?: import("../Charting/ChartModifiers/RolloverModifier").IRolloverModifierOptions;
|
|
135
|
-
} | {
|
|
136
|
-
type: import("../types/ChartModifierType").EChart2DModifierType.RubberBandXYZoom;
|
|
137
|
-
options?: import("../Charting/ChartModifiers/RubberBandXyZoomModifier").IRubberBandXyZoomModifierOptions;
|
|
138
|
-
} | {
|
|
139
|
-
type: import("../types/ChartModifierType").EChart2DModifierType.SeriesSelection;
|
|
140
|
-
options?: import("../Charting/ChartModifiers/SeriesSelectionModifier").ISeriesSelectionModifierOptions;
|
|
141
|
-
} | {
|
|
142
|
-
type: import("../types/ChartModifierType").EChart2DModifierType.XAxisDrag;
|
|
143
|
-
options?: import("../Charting/ChartModifiers/XAxisDragModifier").IXAxisDragModifierOptions;
|
|
144
|
-
} | {
|
|
145
|
-
type: import("../types/ChartModifierType").EChart2DModifierType.YAxisDrag;
|
|
146
|
-
options?: import("../Charting/ChartModifiers/YAxisDragModifier").IYAxisDragModifierOptions;
|
|
147
|
-
} | {
|
|
148
|
-
type: import("../types/ChartModifierType").EChart2DModifierType.ZoomExtents;
|
|
149
|
-
options?: import("../Charting/ChartModifiers/ZoomExtentsModifier").IZoomExtentsModifierOptions;
|
|
150
|
-
} | {
|
|
151
|
-
type: import("../types/ChartModifierType").EChart2DModifierType.ZoomPan;
|
|
152
|
-
options?: import("../Charting/ChartModifiers/ChartModifierBase2D").IChartModifierBaseOptions;
|
|
153
|
-
} | {
|
|
154
|
-
type: import("../types/ChartModifierType").EChart2DModifierType.OverviewRangeSelection;
|
|
155
|
-
/**
|
|
156
|
-
* This is just something to call to ensure that all the registrations are run before a surface is created
|
|
157
|
-
*/
|
|
158
|
-
options?: import("../Charting/ChartModifiers/OverviewRangeSelectionModifier").IRangeSelectionModifierOptions;
|
|
159
|
-
} | {
|
|
160
|
-
type: import("../types/ChartModifierType").EChart2DModifierType.Custom;
|
|
161
|
-
customType?: string;
|
|
162
|
-
options?: import("../Charting/ChartModifiers/ChartModifierBase2D").IChartModifierBaseOptions;
|
|
163
|
-
} | TModifierDefinition[]) => import("../Charting/ChartModifiers/ChartModifierBase2D").ChartModifierBase2D[];
|
|
44
|
+
buildModifiers: (definition: import("./buildModifiers").TModifierDefinition | import("./buildModifiers").TModifierDefinition[]) => import("../Charting/ChartModifiers/ChartModifierBase2D").ChartModifierBase2D[];
|
|
164
45
|
/** @inheritdoc */
|
|
165
|
-
buildAxes: (wasmContext: import("../types/TSciChart").TSciChart, definition:
|
|
166
|
-
type: import("../types/AxisType").EAxisType.NumericAxis;
|
|
167
|
-
options?: import("../Charting/Visuals/Axis/NumericAxis").INumericAxisOptions;
|
|
168
|
-
} | {
|
|
169
|
-
type: import("../types/AxisType").EAxisType.LogarithmicAxis;
|
|
170
|
-
options?: import("../Charting/Visuals/Axis/LogarithmicAxis").ILogarithmicAxisOptions;
|
|
171
|
-
} | {
|
|
172
|
-
type: import("../types/AxisType").EAxisType.CategoryAxis;
|
|
173
|
-
options?: import("../Charting/Visuals/Axis/CategoryAxis").ICategoryAxisOptions;
|
|
174
|
-
} | TAxisDefinition[]) => import("../Charting/Visuals/Axis/AxisBase2D").AxisBase2D[];
|
|
46
|
+
buildAxes: (wasmContext: import("../types/TSciChart").TSciChart, definition: import("./buildAxis").TAxisDefinition | import("./buildAxis").TAxisDefinition[]) => import("../Charting/Visuals/Axis/AxisBase2D").AxisBase2D[];
|
|
175
47
|
/** @inheritdoc */
|
|
176
|
-
buildAnnotations: (definition:
|
|
177
|
-
type: import("../Charting/Visuals/Annotations/IAnnotation").EAnnotationType.RenderContextAxisMarkerAnnotation;
|
|
178
|
-
options?: import("../Charting/Visuals/Annotations/AxisMarkerAnnotation").IAxisMarkerAnnotationOptions;
|
|
179
|
-
} | {
|
|
180
|
-
type: import("../Charting/Visuals/Annotations/IAnnotation").EAnnotationType.RenderContextBoxAnnotation;
|
|
181
|
-
options?: import("../Charting/Visuals/Annotations/BoxAnnotation").IBoxAnnotationOptions;
|
|
182
|
-
} | {
|
|
183
|
-
/**
|
|
184
|
-
* The reviver function needed when parsing definitions to JSON
|
|
185
|
-
*/
|
|
186
|
-
type: import("../Charting/Visuals/Annotations/IAnnotation").EAnnotationType.RenderContextHorizontalLineAnnotation;
|
|
187
|
-
options?: import("../Charting/Visuals/Annotations/LineAnnotation").ILineAnnotationOptions;
|
|
188
|
-
} | {
|
|
189
|
-
type: import("../Charting/Visuals/Annotations/IAnnotation").EAnnotationType.RenderContextLineAnnotation;
|
|
190
|
-
options?: import("../Charting/Visuals/Annotations/LineAnnotation").ILineAnnotationOptions;
|
|
191
|
-
} | {
|
|
192
|
-
type: import("../Charting/Visuals/Annotations/IAnnotation").EAnnotationType.RenderContextVerticalLineAnnotation;
|
|
193
|
-
options?: import("../Charting/Visuals/Annotations/LineAnnotation").ILineAnnotationOptions;
|
|
194
|
-
} | {
|
|
195
|
-
type: import("../Charting/Visuals/Annotations/IAnnotation").EAnnotationType.SVGTextAnnotation;
|
|
196
|
-
options?: import("../Charting/Visuals/Annotations/TextAnnotation").ITextAnnotationOptions;
|
|
197
|
-
} | {
|
|
198
|
-
type: import("../Charting/Visuals/Annotations/IAnnotation").EAnnotationType.SVGCustomAnnotation;
|
|
199
|
-
options?: import("../Charting/Visuals/Annotations/CustomAnnotation").ICustomAnnotationOptions;
|
|
200
|
-
} | TAnnotationDefinition[]) => any[];
|
|
48
|
+
buildAnnotations: (definition: import("./buildAnnotations").TAnnotationDefinition | import("./buildAnnotations").TAnnotationDefinition[]) => any[];
|
|
201
49
|
/** @inheritdoc */
|
|
202
|
-
registerType: <T extends object>(baseType: EBaseType, type: string, constructor: (options?: any) => T, overWrite?: boolean) => void;
|
|
50
|
+
registerType: <T extends object>(baseType: import("../types/BaseType").EBaseType, type: string, constructor: (options?: any) => T, overWrite?: boolean) => void;
|
|
203
51
|
/** @inheritdoc */
|
|
204
|
-
registerWasmType: <T_1 extends object>(baseType: EBaseType, type: string, constructor: (wasmContext: import("../types/TSciChart").TSciChart | import("../types/TSciChart3D").TSciChart3D, options?: any) => T_1, overWrite?: boolean) => void;
|
|
52
|
+
registerWasmType: <T_1 extends object>(baseType: import("../types/BaseType").EBaseType, type: string, constructor: (wasmContext: import("../types/TSciChart").TSciChart | import("../types/TSciChart3D").TSciChart3D, options?: any) => T_1, overWrite?: boolean) => void;
|
|
205
53
|
/** @inheritdoc */
|
|
206
|
-
registerFunction: <T_2 extends Function>(baseType: EBaseType, type: string, constructor: T_2, overWrite?: boolean) => void;
|
|
54
|
+
registerFunction: <T_2 extends Function>(baseType: import("../types/BaseType").EBaseType, type: string, constructor: T_2, overWrite?: boolean) => void;
|
|
207
55
|
};
|