scichart 2.0.2204 → 2.1.2267
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Charting/ChartModifiers/DataPointSelectionModifier.js +0 -1
- package/Charting/ChartModifiers/LegendModifier.d.ts +2 -2
- package/Charting/ChartModifiers/RolloverModifier.d.ts +5 -3
- package/Charting/ChartModifiers/RolloverModifier.js +38 -80
- package/Charting/Drawing/BrushCache.d.ts +8 -2
- package/Charting/Drawing/BrushCache.js +16 -8
- package/Charting/Drawing/WebGlRenderContext2D.d.ts +1 -0
- package/Charting/Drawing/WebGlRenderContext2D.js +4 -1
- package/Charting/LayoutManager/BaseAxisLayoutStrategy.d.ts +2 -0
- package/Charting/LayoutManager/BaseAxisLayoutStrategy.js +33 -0
- package/Charting/LayoutManager/BottomAlignedOuterHorizontallyStackedAxisLayoutStrategy.js +18 -2
- package/Charting/LayoutManager/LeftAlignedOuterVerticallyStackedAxisLayoutStrategy.js +19 -2
- package/Charting/LayoutManager/RightAlignedOuterVerticallyStackedAxisLayoutStrategy.js +18 -2
- package/Charting/LayoutManager/TopAlignedOuterHorizontallyStackedAxisLayoutStrategy.js +18 -2
- package/Charting/Model/BaseDataSeries.d.ts +42 -15
- package/Charting/Model/BaseDataSeries.js +77 -28
- package/Charting/Model/BaseHeatmapDataSeries.d.ts +31 -23
- package/Charting/Model/BaseHeatmapDataSeries.js +45 -18
- package/Charting/Model/DataDistributionCalculator/DataDistributionCalculator.d.ts +23 -0
- package/Charting/Model/DataDistributionCalculator/DataDistributionCalculator.js +122 -0
- package/Charting/Model/DataDistributionCalculator/IDataDistributionCalculator.d.ts +57 -0
- package/Charting/Model/DataDistributionCalculator/IDataDistributionCalculator.js +2 -0
- package/Charting/Model/Filters/OhlcFilterBase.d.ts +2 -2
- package/Charting/Model/Filters/XyFilterBase.d.ts +3 -3
- package/Charting/Model/Filters/XyMovingAverageFilter.js +1 -1
- package/Charting/Model/Filters/XyyFilterBase.d.ts +4 -4
- package/Charting/Model/Filters/XyzFilterBase.d.ts +4 -4
- package/Charting/Model/IDataSeries.d.ts +37 -5
- package/Charting/Model/OhlcDataSeries.d.ts +12 -11
- package/Charting/Model/OhlcDataSeries.js +47 -44
- package/Charting/Model/PointSeries/BasePointSeriesResampled.d.ts +21 -0
- package/Charting/Model/PointSeries/BasePointSeriesResampled.js +56 -0
- package/Charting/Model/PointSeries/BasePointSeriesWrapped.d.ts +14 -0
- package/Charting/Model/PointSeries/BasePointSeriesWrapped.js +23 -0
- package/Charting/Model/PointSeries/IPointSeries.d.ts +31 -0
- package/Charting/Model/PointSeries/IPointSeries.js +2 -0
- package/Charting/Model/PointSeries/OhlcPointSeriesResampled.d.ts +13 -0
- package/Charting/Model/PointSeries/OhlcPointSeriesResampled.js +59 -0
- package/Charting/Model/PointSeries/OhlcPointSeriesWrapped.d.ts +11 -0
- package/Charting/Model/PointSeries/OhlcPointSeriesWrapped.js +32 -0
- package/Charting/Model/PointSeries/XyPointSeriesResampled.d.ts +7 -0
- package/Charting/Model/PointSeries/XyPointSeriesResampled.js +27 -0
- package/Charting/Model/PointSeries/XyPointSeriesWrapped.d.ts +6 -0
- package/Charting/Model/PointSeries/XyPointSeriesWrapped.js +27 -0
- package/Charting/Model/PointSeries/XyyPointSeriesResampled.d.ts +10 -0
- package/Charting/Model/PointSeries/XyyPointSeriesResampled.js +48 -0
- package/Charting/Model/PointSeries/XyyPointSeriesWrapped.d.ts +8 -0
- package/Charting/Model/PointSeries/XyyPointSeriesWrapped.js +29 -0
- package/Charting/Model/PointSeries/XyzPointSeriesWrapped.d.ts +8 -0
- package/Charting/Model/PointSeries/XyzPointSeriesWrapped.js +29 -0
- package/Charting/Model/XyDataSeries.d.ts +3 -2
- package/Charting/Model/XyDataSeries.js +26 -26
- package/Charting/Model/XyyDataSeries.d.ts +5 -5
- package/Charting/Model/XyyDataSeries.js +30 -27
- package/Charting/Model/XyzDataSeries.d.ts +5 -5
- package/Charting/Model/XyzDataSeries.js +30 -27
- package/Charting/Numerics/CoordinateCalculators/CategoryCoordinateCalculator.d.ts +2 -2
- package/Charting/Numerics/CoordinateCalculators/FlippedCategoryCoordinateCalculator.d.ts +2 -2
- package/Charting/Numerics/CoordinateCalculators/FlippedNumericCoordinateCalculator.d.ts +2 -1
- package/Charting/Numerics/CoordinateCalculators/FlippedNumericCoordinateCalculator.js +6 -2
- package/Charting/Numerics/CoordinateCalculators/NumericCoordinateCalculator.d.ts +2 -1
- package/Charting/Numerics/CoordinateCalculators/NumericCoordinateCalculator.js +6 -2
- package/Charting/Numerics/Resamplers/ExtremeResamplerHelper.d.ts +54 -0
- package/Charting/Numerics/Resamplers/ExtremeResamplerHelper.js +234 -0
- package/Charting/Numerics/Resamplers/ResamplingMode.d.ts +37 -0
- package/Charting/Numerics/Resamplers/ResamplingMode.js +41 -0
- package/Charting/Numerics/Resamplers/ResamplingParams.d.ts +39 -0
- package/Charting/Numerics/Resamplers/ResamplingParams.js +52 -0
- package/Charting/Services/RenderPassData.d.ts +6 -1
- package/Charting/Services/RenderPassData.js +5 -1
- package/Charting/Services/RenderPassInfo.d.ts +18 -0
- package/Charting/Services/RenderPassInfo.js +14 -0
- package/Charting/Services/SciChartRenderer.d.ts +14 -1
- package/Charting/Services/SciChartRenderer.js +125 -31
- package/Charting/Visuals/Annotations/AnnotationBase.d.ts +1 -1
- package/Charting/Visuals/Annotations/RolloverMarkerSvgAnnotation.js +1 -1
- package/Charting/Visuals/Annotations/SvgAnnotationBase.js +7 -2
- package/Charting/Visuals/Axis/AxisBase2D.d.ts +23 -0
- package/Charting/Visuals/Axis/AxisBase2D.js +71 -24
- package/Charting/Visuals/Axis/AxisCore.d.ts +11 -0
- package/Charting/Visuals/Axis/AxisCore.js +39 -18
- package/Charting/Visuals/Axis/AxisRenderer.d.ts +1 -0
- package/Charting/Visuals/Axis/AxisRenderer.js +37 -10
- package/Charting/Visuals/Axis/CategoryAxisBase.d.ts +51 -0
- package/Charting/Visuals/Axis/CategoryAxisBase.js +85 -20
- package/Charting/Visuals/Axis/IAxisCoreOptions.d.ts +5 -0
- package/Charting/Visuals/Axis/LabelProvider/SmartDateLabelProvider.js +7 -4
- package/Charting/Visuals/Axis/NumericAxis.js +2 -2
- package/Charting/Visuals/Axis/constants.d.ts +1 -0
- package/Charting/Visuals/Axis/constants.js +1 -0
- package/Charting/Visuals/Legend/SciChartLegend.d.ts +6 -0
- package/Charting/Visuals/Legend/SciChartLegend.js +30 -13
- package/Charting/Visuals/Legend/SciChartLegendBase.d.ts +20 -6
- package/Charting/Visuals/Legend/SciChartLegendBase.js +22 -4
- package/Charting/Visuals/Legend/SciChartPieLegend.d.ts +2 -0
- package/Charting/Visuals/Legend/SciChartPieLegend.js +17 -6
- package/Charting/Visuals/RenderableSeries/Animations/FadeAnimation.d.ts +2 -2
- package/Charting/Visuals/RenderableSeries/Animations/ScaleAnimation.d.ts +2 -2
- package/Charting/Visuals/RenderableSeries/Animations/SeriesAnimation.d.ts +3 -3
- package/Charting/Visuals/RenderableSeries/Animations/SweepAnimation.d.ts +2 -2
- package/Charting/Visuals/RenderableSeries/Animations/WaveAnimation.d.ts +2 -2
- package/Charting/Visuals/RenderableSeries/Animations/animationHelpers.d.ts +6 -6
- package/Charting/Visuals/RenderableSeries/Animations/animationHelpers.js +2 -2
- package/Charting/Visuals/RenderableSeries/BaseBandRenderableSeries.d.ts +9 -2
- package/Charting/Visuals/RenderableSeries/BaseBandRenderableSeries.js +45 -1
- package/Charting/Visuals/RenderableSeries/BaseLineRenderableSeries.d.ts +1 -0
- package/Charting/Visuals/RenderableSeries/BaseLineRenderableSeries.js +1 -0
- package/Charting/Visuals/RenderableSeries/BaseMountainRenderableSeries.d.ts +1 -0
- package/Charting/Visuals/RenderableSeries/BaseMountainRenderableSeries.js +1 -0
- package/Charting/Visuals/RenderableSeries/BaseOhlcRenderableSeries.d.ts +12 -5
- package/Charting/Visuals/RenderableSeries/BaseOhlcRenderableSeries.js +113 -0
- package/Charting/Visuals/RenderableSeries/BaseRenderableSeries.d.ts +42 -6
- package/Charting/Visuals/RenderableSeries/BaseRenderableSeries.js +129 -21
- package/Charting/Visuals/RenderableSeries/BaseStackedCollection.d.ts +36 -4
- package/Charting/Visuals/RenderableSeries/BaseStackedCollection.js +51 -3
- package/Charting/Visuals/RenderableSeries/BaseStackedRenderableSeries.d.ts +38 -4
- package/Charting/Visuals/RenderableSeries/BaseStackedRenderableSeries.js +54 -3
- package/Charting/Visuals/RenderableSeries/DrawingProviders/BandSeriesDrawingProvider.d.ts +1 -1
- package/Charting/Visuals/RenderableSeries/DrawingProviders/BandSeriesDrawingProvider.js +8 -14
- package/Charting/Visuals/RenderableSeries/DrawingProviders/BaseSeriesDrawingProvider.js +4 -3
- package/Charting/Visuals/RenderableSeries/DrawingProviders/BubbleSeriesDrawingProvider.js +5 -11
- package/Charting/Visuals/RenderableSeries/DrawingProviders/ColumnSeriesDrawingProvider.d.ts +1 -0
- package/Charting/Visuals/RenderableSeries/DrawingProviders/ColumnSeriesDrawingProvider.js +31 -19
- package/Charting/Visuals/RenderableSeries/DrawingProviders/LineSeriesDrawingProvider.d.ts +2 -1
- package/Charting/Visuals/RenderableSeries/DrawingProviders/LineSeriesDrawingProvider.js +17 -21
- package/Charting/Visuals/RenderableSeries/DrawingProviders/MountainSeriesDrawingProvider.js +16 -15
- package/Charting/Visuals/RenderableSeries/DrawingProviders/OhlcSeriesDrawingProvider.js +9 -15
- package/Charting/Visuals/RenderableSeries/DrawingProviders/PointMarkerDrawingProvider.d.ts +4 -3
- package/Charting/Visuals/RenderableSeries/DrawingProviders/PointMarkerDrawingProvider.js +16 -21
- package/Charting/Visuals/RenderableSeries/DrawingProviders/UniformContoursDrawingProvider.js +2 -9
- package/Charting/Visuals/RenderableSeries/DrawingProviders/UniformHeatmapDrawingProvider.js +0 -7
- package/Charting/Visuals/RenderableSeries/FastBubbleRenderableSeries.d.ts +11 -2
- package/Charting/Visuals/RenderableSeries/FastBubbleRenderableSeries.js +17 -0
- package/Charting/Visuals/RenderableSeries/FastColumnRenderableSeries.d.ts +1 -0
- package/Charting/Visuals/RenderableSeries/FastColumnRenderableSeries.js +1 -0
- package/Charting/Visuals/RenderableSeries/FastLineRenderableSeries.d.ts +1 -0
- package/Charting/Visuals/RenderableSeries/FastLineRenderableSeries.js +6 -0
- package/Charting/Visuals/RenderableSeries/HitTest/BandSeriesHitTestProvider.js +2 -2
- package/Charting/Visuals/RenderableSeries/HitTest/BaseHitTestProvider.js +1 -1
- package/Charting/Visuals/RenderableSeries/HitTest/BubbleSeriesHitTestProvider.js +1 -1
- package/Charting/Visuals/RenderableSeries/HitTest/ColumnSeriesHitTestProvider.js +2 -2
- package/Charting/Visuals/RenderableSeries/HitTest/LineSeriesHitTestProvider.js +2 -2
- package/Charting/Visuals/RenderableSeries/HitTest/MountainSeriesHitTestProvider.js +1 -1
- package/Charting/Visuals/RenderableSeries/HitTest/OhlcSeriesHitTestProvider.js +2 -2
- package/Charting/Visuals/RenderableSeries/HitTest/ScatterSeriesHitTestProvider.js +1 -1
- package/Charting/Visuals/RenderableSeries/HitTest/StackedColumnSeriesHitTestProvider.js +2 -2
- package/Charting/Visuals/RenderableSeries/HitTest/StackedMountainSeriesHitTestProvider.js +2 -2
- package/Charting/Visuals/RenderableSeries/HitTest/hitTestHelpers.d.ts +6 -6
- package/Charting/Visuals/RenderableSeries/HitTest/hitTestHelpers.js +1 -1
- package/Charting/Visuals/RenderableSeries/IBaseRenderableSeriesOptions.d.ts +12 -1
- package/Charting/Visuals/RenderableSeries/IRenderableSeries.d.ts +38 -2
- package/Charting/Visuals/RenderableSeries/ISpline.d.ts +3 -3
- package/Charting/Visuals/RenderableSeries/SplineBandRenderableSeries.d.ts +4 -4
- package/Charting/Visuals/RenderableSeries/SplineBandRenderableSeries.js +5 -5
- package/Charting/Visuals/RenderableSeries/SplineLineRenderableSeries.d.ts +3 -3
- package/Charting/Visuals/RenderableSeries/SplineLineRenderableSeries.js +3 -3
- package/Charting/Visuals/RenderableSeries/SplineMountainRenderableSeries.d.ts +3 -3
- package/Charting/Visuals/RenderableSeries/SplineMountainRenderableSeries.js +3 -3
- package/Charting/Visuals/RenderableSeries/StackedColumnCollection.js +0 -6
- package/Charting/Visuals/RenderableSeries/StackedMountainCollection.d.ts +1 -1
- package/Charting/Visuals/RenderableSeries/StackedMountainCollection.js +1 -7
- package/Charting/Visuals/RenderableSeries/UniformContoursRenderableSeries.d.ts +5 -0
- package/Charting/Visuals/RenderableSeries/UniformContoursRenderableSeries.js +6 -0
- package/Charting/Visuals/RenderableSeries/UniformHeatmapRenderableSeries.d.ts +5 -0
- package/Charting/Visuals/RenderableSeries/UniformHeatmapRenderableSeries.js +6 -0
- package/Charting/Visuals/RenderableSeries/XyScatterRenderableSeries.d.ts +5 -3
- package/Charting/Visuals/RenderableSeries/XyScatterRenderableSeries.js +6 -3
- package/Charting/Visuals/RenderableSeries/constants.d.ts +3 -0
- package/Charting/Visuals/RenderableSeries/constants.js +3 -0
- package/Charting/Visuals/SciChartDefaults.d.ts +9 -1
- package/Charting/Visuals/SciChartDefaults.js +9 -1
- package/Charting/Visuals/SciChartPieSurface/SciChartPieSurface.d.ts +4 -2
- package/Charting/Visuals/SciChartPieSurface/SciChartPieSurface.js +46 -32
- package/Charting/Visuals/SciChartSurface.d.ts +4 -4
- package/Charting/Visuals/SciChartSurface.js +18 -11
- package/Charting/Visuals/SciChartSurfaceBase.d.ts +3 -2
- package/Charting/Visuals/SciChartSurfaceBase.js +4 -4
- package/Charting/Visuals/createMaster.d.ts +1 -1
- package/Charting/Visuals/createMaster.js +11 -6
- package/Charting/Visuals/createSingle.d.ts +1 -1
- package/Charting/Visuals/createSingle.js +2 -2
- package/Charting/Visuals/licenseManager2D.js +21 -20
- package/Charting/Visuals/licenseManager2dState.d.ts +4 -0
- package/Charting/Visuals/licenseManager2dState.js +12 -0
- package/Charting/Visuals/loader.js +2 -0
- package/Charting/Visuals/sciChartInitCommon.d.ts +2 -2
- package/Charting/Visuals/sciChartInitCommon.js +22 -12
- package/Charting3D/Model/DataSeries/XyzDataSeries3D.d.ts +7 -7
- package/Charting3D/Model/DataSeries/XyzDataSeries3D.js +3 -3
- package/Charting3D/Visuals/SciChart3DSurface.d.ts +2 -2
- package/Charting3D/Visuals/SciChart3DSurface.js +3 -3
- package/Charting3D/Visuals/createMaster3d.d.ts +1 -1
- package/Charting3D/Visuals/createMaster3d.js +11 -6
- package/Charting3D/Visuals/createSingle3d.d.ts +1 -1
- package/Charting3D/Visuals/createSingle3d.js +2 -2
- package/Core/BuildStamp.d.ts +1 -1
- package/Core/BuildStamp.js +2 -2
- package/Core/NumberRange.d.ts +1 -0
- package/Core/NumberRange.js +8 -0
- package/Core/OneTimePerformanceWarning.d.ts +6 -0
- package/Core/OneTimePerformanceWarning.js +19 -0
- package/Core/storage/localStorageApi.d.ts +9 -0
- package/Core/storage/localStorageApi.js +32 -0
- package/README.md +223 -1
- package/_wasm/scichart.browser.js +1 -1
- package/_wasm/scichart2d.js +95 -95
- package/_wasm/scichart2d.wasm +0 -0
- package/_wasm/scichart3d.js +13 -13
- package/_wasm/scichart3d.wasm +0 -0
- package/constants/performanceWarnings.d.ts +5 -0
- package/constants/performanceWarnings.js +8 -0
- package/package.json +1 -1
- package/types/NumberArray.d.ts +1 -0
- package/types/NumberArray.js +5 -1
- package/types/SearchMode.d.ts +21 -0
- package/types/SearchMode.js +25 -0
- package/types/TSciChart.d.ts +144 -40
- package/types/TSciChart3D.d.ts +66 -28
- package/types/TStackedAxisLength.d.ts +4 -0
- package/types/TStackedAxisLength.js +4 -0
- package/utils/array.d.ts +7 -0
- package/utils/array.js +19 -1
- package/utils/calcAverage.d.ts +2 -2
- package/utils/ccall/appendDoubleVectorFromJsArray.d.ts +19 -0
- package/utils/ccall/appendDoubleVectorFromJsArray.js +91 -0
- package/utils/hash.d.ts +7 -0
- package/utils/hash.js +35 -0
- package/utils/tooltip.d.ts +42 -0
- package/utils/tooltip.js +119 -0
- package/utils/ccall/fillDoubleVectorFromJsArray.d.ts +0 -3
- package/utils/ccall/fillDoubleVectorFromJsArray.js +0 -33
- package/utils/performance.d.ts +0 -5
- package/utils/performance.js +0 -11
|
@@ -110,14 +110,11 @@ var UniformHeatmapDrawingProvider = /** @class */ (function (_super) {
|
|
|
110
110
|
var yMax = renderPassData.yCoordinateCalculator.getCoordinate(yRange.max);
|
|
111
111
|
var nativeContext = renderContext.getNativeContext();
|
|
112
112
|
var viewRect = this.parentSeries.parentSurface.seriesViewRect;
|
|
113
|
-
nativeContext.PushMatrix();
|
|
114
|
-
nativeContext.PushState();
|
|
115
113
|
var textureWidth = Math.abs(xMin - xMax);
|
|
116
114
|
if (isVerticalChart) {
|
|
117
115
|
nativeContext.Rotate(-90);
|
|
118
116
|
var xTrans = hasFlippedXCoordinates ? -viewRect.y - xMin : -textureWidth - viewRect.y - xMin;
|
|
119
117
|
nativeContext.Translate(xTrans, viewRect.x);
|
|
120
|
-
nativeContext.SetClipRect(viewRect.x, viewRect.y, viewRect.width, viewRect.height);
|
|
121
118
|
var x = hasFlippedXCoordinates ? 0 : textureWidth;
|
|
122
119
|
var width = hasFlippedXCoordinates ? textureWidth : 0;
|
|
123
120
|
var y = yMin;
|
|
@@ -126,12 +123,8 @@ var UniformHeatmapDrawingProvider = /** @class */ (function (_super) {
|
|
|
126
123
|
// Maybe to use nativeContext.Scale(-1, 1);???
|
|
127
124
|
}
|
|
128
125
|
else {
|
|
129
|
-
nativeContext.Translate(viewRect.x, viewRect.y);
|
|
130
|
-
nativeContext.SetClipRect(viewRect.x, viewRect.y, viewRect.width, viewRect.height);
|
|
131
126
|
this.drawHeatmap(nativeContext, xMin, yMin, xMax, yMax);
|
|
132
127
|
}
|
|
133
|
-
nativeContext.PopMatrix();
|
|
134
|
-
nativeContext.PopState();
|
|
135
128
|
}
|
|
136
129
|
};
|
|
137
130
|
UniformHeatmapDrawingProvider.prototype.createPaletteTexture = function (width, height, gradientStops, globalOpacity, hasNaNs) {
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { ESeriesType } from "../../../types/SeriesType";
|
|
2
|
-
import {
|
|
2
|
+
import { IPointMarkerPaletteProvider } from "../../Model/IPaletteProvider";
|
|
3
|
+
import { SCRTDoubleVector, TSciChart } from "../../../types/TSciChart";
|
|
4
|
+
import { IPointSeries } from "../../Model/PointSeries/IPointSeries";
|
|
5
|
+
import { ResamplingParams } from "../../Numerics/Resamplers/ResamplingParams";
|
|
3
6
|
import { IThemeProvider } from "../../Themes/IThemeProvider";
|
|
4
7
|
import { BaseRenderableSeries } from "./BaseRenderableSeries";
|
|
5
8
|
import { IHitTestProvider } from "./HitTest/IHitTestProvider";
|
|
@@ -41,6 +44,10 @@ export declare class FastBubbleRenderableSeries extends BaseRenderableSeries {
|
|
|
41
44
|
*/
|
|
42
45
|
constructor(webAssemblyContext: TSciChart, options?: IBubbleRenderableSeriesOptions);
|
|
43
46
|
/** @inheritDoc */
|
|
47
|
+
get paletteProvider(): IPointMarkerPaletteProvider;
|
|
48
|
+
/** @inheritDoc */
|
|
49
|
+
set paletteProvider(paletteProvider: IPointMarkerPaletteProvider);
|
|
50
|
+
/** @inheritDoc */
|
|
44
51
|
applyTheme(themeProvider: IThemeProvider): void;
|
|
45
52
|
/**
|
|
46
53
|
* Gets the bubble diameter in pixels for the point index, by looking up the Z-value in the
|
|
@@ -53,7 +60,9 @@ export declare class FastBubbleRenderableSeries extends BaseRenderableSeries {
|
|
|
53
60
|
/**
|
|
54
61
|
* Returns the {@link XyyDataSeries.getNativeZValues} for the associated {@link dataSeries}
|
|
55
62
|
*/
|
|
56
|
-
getNativeZValues():
|
|
63
|
+
getNativeZValues(): SCRTDoubleVector;
|
|
64
|
+
/** @inheritDoc */
|
|
65
|
+
toPointSeries(resamplingParams?: ResamplingParams): IPointSeries;
|
|
57
66
|
/** @inheritDoc */
|
|
58
67
|
protected newHitTestProvider(): IHitTestProvider;
|
|
59
68
|
}
|
|
@@ -17,6 +17,7 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
exports.FastBubbleRenderableSeries = void 0;
|
|
19
19
|
var SeriesType_1 = require("../../../types/SeriesType");
|
|
20
|
+
var XyzPointSeriesWrapped_1 = require("../../Model/PointSeries/XyzPointSeriesWrapped");
|
|
20
21
|
var EllipsePointMarker_1 = require("../PointMarkers/EllipsePointMarker");
|
|
21
22
|
var BaseRenderableSeries_1 = require("./BaseRenderableSeries");
|
|
22
23
|
var BubbleSeriesDrawingProvider_1 = require("./DrawingProviders/BubbleSeriesDrawingProvider");
|
|
@@ -69,6 +70,18 @@ var FastBubbleRenderableSeries = /** @class */ (function (_super) {
|
|
|
69
70
|
}
|
|
70
71
|
return _this;
|
|
71
72
|
}
|
|
73
|
+
Object.defineProperty(FastBubbleRenderableSeries.prototype, "paletteProvider", {
|
|
74
|
+
/** @inheritDoc */
|
|
75
|
+
get: function () {
|
|
76
|
+
return this.paletteProviderProperty;
|
|
77
|
+
},
|
|
78
|
+
/** @inheritDoc */
|
|
79
|
+
set: function (paletteProvider) {
|
|
80
|
+
this.setPaletteProvider(paletteProvider);
|
|
81
|
+
},
|
|
82
|
+
enumerable: false,
|
|
83
|
+
configurable: true
|
|
84
|
+
});
|
|
72
85
|
/** @inheritDoc */
|
|
73
86
|
FastBubbleRenderableSeries.prototype.applyTheme = function (themeProvider) {
|
|
74
87
|
_super.prototype.applyTheme.call(this, themeProvider);
|
|
@@ -96,6 +109,10 @@ var FastBubbleRenderableSeries = /** @class */ (function (_super) {
|
|
|
96
109
|
return this.dataSeries.getNativeZValues();
|
|
97
110
|
};
|
|
98
111
|
/** @inheritDoc */
|
|
112
|
+
FastBubbleRenderableSeries.prototype.toPointSeries = function (resamplingParams) {
|
|
113
|
+
return new XyzPointSeriesWrapped_1.XyzPointSeriesWrapped(this.dataSeries);
|
|
114
|
+
};
|
|
115
|
+
/** @inheritDoc */
|
|
99
116
|
FastBubbleRenderableSeries.prototype.newHitTestProvider = function () {
|
|
100
117
|
return new BubbleSeriesHitTestProvider_1.BubbleSeriesHitTestProvider(this, this.webAssemblyContext);
|
|
101
118
|
};
|
|
@@ -83,6 +83,7 @@ export declare class FastColumnRenderableSeries extends BaseRenderableSeries {
|
|
|
83
83
|
* @inheritDoc
|
|
84
84
|
*/
|
|
85
85
|
getYRange(xVisibleRange: NumberRange, isXCategoryAxis?: boolean): NumberRange;
|
|
86
|
+
/** @inheritDoc */
|
|
86
87
|
toJSON(excludeData?: boolean): import("../../../Builder/buildSeries").TSeriesDefinition;
|
|
87
88
|
/** @inheritDoc */
|
|
88
89
|
protected newHitTestProvider(): IHitTestProvider;
|
|
@@ -149,6 +149,7 @@ var FastColumnRenderableSeries = /** @class */ (function (_super) {
|
|
|
149
149
|
}
|
|
150
150
|
return new NumberRange_1.NumberRange(Math.min(yRange.min, this.zeroLineY), Math.max(yRange.max, this.zeroLineY));
|
|
151
151
|
};
|
|
152
|
+
/** @inheritDoc */
|
|
152
153
|
FastColumnRenderableSeries.prototype.toJSON = function (excludeData) {
|
|
153
154
|
if (excludeData === void 0) { excludeData = false; }
|
|
154
155
|
var json = _super.prototype.toJSON.call(this, excludeData);
|
|
@@ -33,4 +33,5 @@ export declare class FastLineRenderableSeries extends BaseLineRenderableSeries {
|
|
|
33
33
|
* @param options optional parameters of type {@link IFastLineRenderableSeriesOptions} applied when constructing the series type
|
|
34
34
|
*/
|
|
35
35
|
constructor(webAssemblyContext: TSciChart, options?: IFastLineRenderableSeriesOptions);
|
|
36
|
+
delete(): void;
|
|
36
37
|
}
|
|
@@ -16,6 +16,7 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
16
16
|
})();
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
exports.FastLineRenderableSeries = void 0;
|
|
19
|
+
var Deleter_1 = require("../../../Core/Deleter");
|
|
19
20
|
var SeriesType_1 = require("../../../types/SeriesType");
|
|
20
21
|
var BaseLineRenderableSeries_1 = require("./BaseLineRenderableSeries");
|
|
21
22
|
/**
|
|
@@ -57,6 +58,11 @@ var FastLineRenderableSeries = /** @class */ (function (_super) {
|
|
|
57
58
|
}
|
|
58
59
|
return _this;
|
|
59
60
|
}
|
|
61
|
+
FastLineRenderableSeries.prototype.delete = function () {
|
|
62
|
+
_super.prototype.delete.call(this);
|
|
63
|
+
this.resamplerHelper = (0, Deleter_1.deleteSafe)(this.resamplerHelper);
|
|
64
|
+
this.pointSeries = (0, Deleter_1.deleteSafe)(this.pointSeries);
|
|
65
|
+
};
|
|
60
66
|
return FastLineRenderableSeries;
|
|
61
67
|
}(BaseLineRenderableSeries_1.BaseLineRenderableSeries));
|
|
62
68
|
exports.FastLineRenderableSeries = FastLineRenderableSeries;
|
|
@@ -39,7 +39,7 @@ var BandSeriesHitTestProvider = /** @class */ (function (_super) {
|
|
|
39
39
|
var xHitCoord = isVerticalChart ? hitTestPoint.y : hitTestPoint.x;
|
|
40
40
|
var yHitCoord = isVerticalChart ? hitTestPoint.x : hitTestPoint.y;
|
|
41
41
|
var dataSeries = this.parentSeries.dataSeries;
|
|
42
|
-
var nearestPointIndex = hitTestHelpers_1.hitTestHelpers.getNearestXPoint(this.webAssemblyContext, xCoordinateCalculator, dataSeries, xHitCoord, dataSeries.
|
|
42
|
+
var nearestPointIndex = hitTestHelpers_1.hitTestHelpers.getNearestXPoint(this.webAssemblyContext, xCoordinateCalculator, dataSeries, xHitCoord, dataSeries.dataDistributionCalculator.isSortedAscending);
|
|
43
43
|
var xNativeValues = dataSeries.getNativeXValues();
|
|
44
44
|
var yNativeValues = dataSeries.getNativeYValues();
|
|
45
45
|
var hitTestInfo = hitTestHelpers_1.hitTestHelpers.createHitTestInfo(this.parentSeries, xCoordinateCalculator, yCoordinateCalculator, isVerticalChart, dataSeries, xNativeValues, yNativeValues, xHitCoord, yHitCoord, nearestPointIndex, 0);
|
|
@@ -94,7 +94,7 @@ var BandSeriesHitTestProvider = /** @class */ (function (_super) {
|
|
|
94
94
|
var xHitCoord = isVerticalChart ? hitTestPoint.y : hitTestPoint.x;
|
|
95
95
|
var yHitCoord = isVerticalChart ? hitTestPoint.x : hitTestPoint.y;
|
|
96
96
|
var dataSeries = this.parentSeries.dataSeries;
|
|
97
|
-
var nearestPointIndex = hitTestHelpers_1.hitTestHelpers.getNearestXPoint(this.webAssemblyContext, xCoordinateCalculator, dataSeries, xHitCoord, dataSeries.
|
|
97
|
+
var nearestPointIndex = hitTestHelpers_1.hitTestHelpers.getNearestXPoint(this.webAssemblyContext, xCoordinateCalculator, dataSeries, xHitCoord, dataSeries.dataDistributionCalculator.isSortedAscending);
|
|
98
98
|
var hitTestInfo = hitTestHelpers_1.hitTestHelpers.createHitTestInfo(this.parentSeries, xCoordinateCalculator, yCoordinateCalculator, isVerticalChart, dataSeries, dataSeries.getNativeXValues(), dataSeries.getNativeYValues(), xHitCoord, yHitCoord, nearestPointIndex, 0);
|
|
99
99
|
if (nearestPointIndex >= 0) {
|
|
100
100
|
hitTestInfo.isHit = hitTestInfo.isWithinDataBounds;
|
|
@@ -71,7 +71,7 @@ var BaseHitTestProvider = /** @class */ (function () {
|
|
|
71
71
|
var xHitCoord = isVerticalChart ? hitTestPoint.y : hitTestPoint.x;
|
|
72
72
|
var yHitCoord = isVerticalChart ? hitTestPoint.x : hitTestPoint.y;
|
|
73
73
|
var dataSeries = this.parentSeries.dataSeries;
|
|
74
|
-
var nearestPointIndex = hitTestHelpers_1.hitTestHelpers.getNearestXPoint(this.webAssemblyContext, xCoordinateCalculator, dataSeries, xHitCoord, dataSeries.
|
|
74
|
+
var nearestPointIndex = hitTestHelpers_1.hitTestHelpers.getNearestXPoint(this.webAssemblyContext, xCoordinateCalculator, dataSeries, xHitCoord, dataSeries.dataDistributionCalculator.isSortedAscending);
|
|
75
75
|
var hitTestInfo = hitTestHelpers_1.hitTestHelpers.createHitTestInfo(this.parentSeries, xCoordinateCalculator, yCoordinateCalculator, isVerticalChart, dataSeries, dataSeries.getNativeXValues(), dataSeries.getNativeYValues(), xHitCoord, yHitCoord, nearestPointIndex, 0);
|
|
76
76
|
hitTestInfo.isHit = hitTestInfo.isWithinDataBounds;
|
|
77
77
|
return hitTestInfo;
|
|
@@ -89,7 +89,7 @@ var BubbleSeriesHitTestProvider = /** @class */ (function (_super) {
|
|
|
89
89
|
var xNativeValues = dataSeries.getNativeXValues();
|
|
90
90
|
var yNativeValues = dataSeries.getNativeYValues();
|
|
91
91
|
var zNativeValues = dataSeries.getNativeZValues();
|
|
92
|
-
var nearestPointIndex = hitTestHelpers_1.hitTestHelpers.getNearestXPoint(this.webAssemblyContext, xCoordinateCalculator, dataSeries, xHitCoord, dataSeries.
|
|
92
|
+
var nearestPointIndex = hitTestHelpers_1.hitTestHelpers.getNearestXPoint(this.webAssemblyContext, xCoordinateCalculator, dataSeries, xHitCoord, dataSeries.dataDistributionCalculator.isSortedAscending);
|
|
93
93
|
var hitTestInfo = hitTestHelpers_1.hitTestHelpers.createHitTestInfo(this.parentSeries, xCoordinateCalculator, yCoordinateCalculator, isVerticalChart, dataSeries, xNativeValues, yNativeValues, xHitCoord, yHitCoord, nearestPointIndex, 0);
|
|
94
94
|
if (nearestPointIndex >= 0) {
|
|
95
95
|
hitTestInfo.zValue = zNativeValues.get(nearestPointIndex);
|
|
@@ -40,7 +40,7 @@ var ColumnSeriesHitTestProvider = /** @class */ (function (_super) {
|
|
|
40
40
|
var xHitCoord = isVerticalChart ? hitTestPoint.y : hitTestPoint.x;
|
|
41
41
|
var yHitCoord = isVerticalChart ? hitTestPoint.x : hitTestPoint.y;
|
|
42
42
|
var dataSeries = this.parentSeries.dataSeries;
|
|
43
|
-
var nearestPointIndex = hitTestHelpers_1.hitTestHelpers.getNearestXPoint(this.webAssemblyContext, xCoordinateCalculator, dataSeries, xHitCoord, dataSeries.
|
|
43
|
+
var nearestPointIndex = hitTestHelpers_1.hitTestHelpers.getNearestXPoint(this.webAssemblyContext, xCoordinateCalculator, dataSeries, xHitCoord, dataSeries.dataDistributionCalculator.isSortedAscending);
|
|
44
44
|
var xNativeValues = dataSeries.getNativeXValues();
|
|
45
45
|
var yNativeValues = dataSeries.getNativeYValues();
|
|
46
46
|
var hitTestInfo = hitTestHelpers_1.hitTestHelpers.createHitTestInfo(this.parentSeries, xCoordinateCalculator, yCoordinateCalculator, isVerticalChart, dataSeries, xNativeValues, yNativeValues, xHitCoord, yHitCoord, nearestPointIndex, 0);
|
|
@@ -73,7 +73,7 @@ var ColumnSeriesHitTestProvider = /** @class */ (function (_super) {
|
|
|
73
73
|
var dataSeries = this.parentSeries.dataSeries;
|
|
74
74
|
var xNativeValues = dataSeries.getNativeXValues();
|
|
75
75
|
var yNativeValues = dataSeries.getNativeYValues();
|
|
76
|
-
var nearestPointIndex = hitTestHelpers_1.hitTestHelpers.getNearestXPoint(this.webAssemblyContext, xCoordinateCalculator, dataSeries, xHitCoord, dataSeries.
|
|
76
|
+
var nearestPointIndex = hitTestHelpers_1.hitTestHelpers.getNearestXPoint(this.webAssemblyContext, xCoordinateCalculator, dataSeries, xHitCoord, dataSeries.dataDistributionCalculator.isSortedAscending);
|
|
77
77
|
var hitTestInfo = hitTestHelpers_1.hitTestHelpers.createHitTestInfo(this.parentSeries, xCoordinateCalculator, yCoordinateCalculator, isVerticalChart, dataSeries, xNativeValues, yNativeValues, xHitCoord, yHitCoord, nearestPointIndex, 0);
|
|
78
78
|
var isCategoryAxis = xCoordinateCalculator.isCategoryCoordinateCalculator;
|
|
79
79
|
if (nearestPointIndex >= 0) {
|
|
@@ -40,7 +40,7 @@ var LineSeriesHitTestProvider = /** @class */ (function (_super) {
|
|
|
40
40
|
var isVerticalChart = this.currentRenderPassData.isVerticalChart;
|
|
41
41
|
var xHitCoord = isVerticalChart ? hitTestPoint.y : hitTestPoint.x;
|
|
42
42
|
var yHitCoord = isVerticalChart ? hitTestPoint.x : hitTestPoint.y;
|
|
43
|
-
var isSortedData = this.parentSeries.dataSeries.
|
|
43
|
+
var isSortedData = this.parentSeries.dataSeries.dataDistributionCalculator.isSortedAscending;
|
|
44
44
|
if (isSortedData) {
|
|
45
45
|
return this.hitTestSorted(xHitCoord, yHitCoord, hitTestRadius);
|
|
46
46
|
}
|
|
@@ -51,7 +51,7 @@ var LineSeriesHitTestProvider = /** @class */ (function (_super) {
|
|
|
51
51
|
LineSeriesHitTestProvider.prototype.hitTestSorted = function (xHitCoord, yHitCoord, hitTestRadius) {
|
|
52
52
|
var _a = this.currentRenderPassData, xCoordinateCalculator = _a.xCoordinateCalculator, yCoordinateCalculator = _a.yCoordinateCalculator, isVerticalChart = _a.isVerticalChart;
|
|
53
53
|
var dataSeries = this.parentSeries.dataSeries;
|
|
54
|
-
var nearestPointIndex = hitTestHelpers_1.hitTestHelpers.getNearestXPoint(this.webAssemblyContext, xCoordinateCalculator, dataSeries, xHitCoord, dataSeries.
|
|
54
|
+
var nearestPointIndex = hitTestHelpers_1.hitTestHelpers.getNearestXPoint(this.webAssemblyContext, xCoordinateCalculator, dataSeries, xHitCoord, dataSeries.dataDistributionCalculator.isSortedAscending);
|
|
55
55
|
var xNativeValues = dataSeries.getNativeXValues();
|
|
56
56
|
var yNativeValues = dataSeries.getNativeYValues();
|
|
57
57
|
var hitTestInfo = hitTestHelpers_1.hitTestHelpers.createHitTestInfo(this.parentSeries, xCoordinateCalculator, yCoordinateCalculator, isVerticalChart, dataSeries, xNativeValues, yNativeValues, xHitCoord, yHitCoord, nearestPointIndex, hitTestRadius);
|
|
@@ -40,7 +40,7 @@ var MountainSeriesHitTestProvider = /** @class */ (function (_super) {
|
|
|
40
40
|
var yHitCoord = isVerticalChart ? hitTestPoint.x : hitTestPoint.y;
|
|
41
41
|
var renderableSeries = this.parentSeries;
|
|
42
42
|
var dataSeries = renderableSeries.dataSeries;
|
|
43
|
-
var nearestPointIndex = hitTestHelpers_1.hitTestHelpers.getNearestXPoint(this.webAssemblyContext, xCoordinateCalculator, dataSeries, xHitCoord, dataSeries.
|
|
43
|
+
var nearestPointIndex = hitTestHelpers_1.hitTestHelpers.getNearestXPoint(this.webAssemblyContext, xCoordinateCalculator, dataSeries, xHitCoord, dataSeries.dataDistributionCalculator.isSortedAscending);
|
|
44
44
|
var xNativeValues = dataSeries.getNativeXValues();
|
|
45
45
|
var yNativeValues = dataSeries.getNativeYValues();
|
|
46
46
|
var hitTestInfo = hitTestHelpers_1.hitTestHelpers.createHitTestInfo(renderableSeries, xCoordinateCalculator, yCoordinateCalculator, isVerticalChart, dataSeries, xNativeValues, yNativeValues, xHitCoord, yHitCoord, nearestPointIndex, 0);
|
|
@@ -42,7 +42,7 @@ var OhlcSeriesHitTestProvider = /** @class */ (function (_super) {
|
|
|
42
42
|
var yHitCoord = isVerticalChart ? hitTestPoint.x : hitTestPoint.y;
|
|
43
43
|
var renderableSeries = this.parentSeries;
|
|
44
44
|
var dataSeries = this.parentSeries.dataSeries;
|
|
45
|
-
var nearestPointIndex = hitTestHelpers_1.hitTestHelpers.getNearestXPoint(this.webAssemblyContext, xCoordinateCalculator, dataSeries, xHitCoord, dataSeries.
|
|
45
|
+
var nearestPointIndex = hitTestHelpers_1.hitTestHelpers.getNearestXPoint(this.webAssemblyContext, xCoordinateCalculator, dataSeries, xHitCoord, dataSeries.dataDistributionCalculator.isSortedAscending);
|
|
46
46
|
var xNativeValues = dataSeries.getNativeXValues();
|
|
47
47
|
var yNativeValues = dataSeries.getNativeYValues();
|
|
48
48
|
var hitTestInfo = hitTestHelpers_1.hitTestHelpers.createHitTestInfo(this.parentSeries, xCoordinateCalculator, yCoordinateCalculator, isVerticalChart, dataSeries, xNativeValues, yNativeValues, xHitCoord, yHitCoord, nearestPointIndex, hitTestRadius);
|
|
@@ -80,7 +80,7 @@ var OhlcSeriesHitTestProvider = /** @class */ (function (_super) {
|
|
|
80
80
|
var dataSeries = this.parentSeries.dataSeries;
|
|
81
81
|
var xNativeValues = dataSeries.getNativeXValues();
|
|
82
82
|
var yNativeValues = dataSeries.getNativeYValues();
|
|
83
|
-
var nearestPointIndex = hitTestHelpers_1.hitTestHelpers.getNearestXPoint(this.webAssemblyContext, xCoordinateCalculator, dataSeries, xHitCoord, dataSeries.
|
|
83
|
+
var nearestPointIndex = hitTestHelpers_1.hitTestHelpers.getNearestXPoint(this.webAssemblyContext, xCoordinateCalculator, dataSeries, xHitCoord, dataSeries.dataDistributionCalculator.isSortedAscending);
|
|
84
84
|
var hitTestInfo = hitTestHelpers_1.hitTestHelpers.createHitTestInfo(this.parentSeries, xCoordinateCalculator, yCoordinateCalculator, isVerticalChart, dataSeries, xNativeValues, yNativeValues, xHitCoord, yHitCoord, nearestPointIndex, 0);
|
|
85
85
|
if (nearestPointIndex >= 0) {
|
|
86
86
|
hitTestInfo.openValue = dataSeries.getNativeOpenValues().get(nearestPointIndex);
|
|
@@ -74,7 +74,7 @@ var ScatterSeriesHitTestProvider = /** @class */ (function (_super) {
|
|
|
74
74
|
var dataSeries = this.parentSeries.dataSeries;
|
|
75
75
|
var xNativeValues = dataSeries.getNativeXValues();
|
|
76
76
|
var yNativeValues = dataSeries.getNativeYValues();
|
|
77
|
-
var nearestPointIndex = hitTestHelpers_1.hitTestHelpers.getNearestXPoint(this.webAssemblyContext, xCoordinateCalculator, dataSeries, xHitCoord, dataSeries.
|
|
77
|
+
var nearestPointIndex = hitTestHelpers_1.hitTestHelpers.getNearestXPoint(this.webAssemblyContext, xCoordinateCalculator, dataSeries, xHitCoord, dataSeries.dataDistributionCalculator.isSortedAscending);
|
|
78
78
|
var hitTestInfo = hitTestHelpers_1.hitTestHelpers.createHitTestInfo(this.parentSeries, xCoordinateCalculator, yCoordinateCalculator, isVerticalChart, dataSeries, xNativeValues, yNativeValues, xHitCoord, yHitCoord, nearestPointIndex, 0);
|
|
79
79
|
if (nearestPointIndex >= 0) {
|
|
80
80
|
var isCategoryAxis = xCoordinateCalculator.isCategoryCoordinateCalculator;
|
|
@@ -40,7 +40,7 @@ var StackedColumnSeriesHitTestProvider = /** @class */ (function (_super) {
|
|
|
40
40
|
var xHitCoord = isVerticalChart ? hitTestPoint.y : hitTestPoint.x;
|
|
41
41
|
var yHitCoord = isVerticalChart ? hitTestPoint.x : hitTestPoint.y;
|
|
42
42
|
var dataSeries = this.parentSeries.dataSeries;
|
|
43
|
-
var nearestPointIndex = hitTestHelpers_1.hitTestHelpers.getNearestXPoint(this.webAssemblyContext, xCoordinateCalculator, dataSeries, xHitCoord, dataSeries.
|
|
43
|
+
var nearestPointIndex = hitTestHelpers_1.hitTestHelpers.getNearestXPoint(this.webAssemblyContext, xCoordinateCalculator, dataSeries, xHitCoord, dataSeries.dataDistributionCalculator.isSortedAscending);
|
|
44
44
|
var xNativeValues = dataSeries.getNativeXValues();
|
|
45
45
|
var yNativeValues = dataSeries.getNativeYValues();
|
|
46
46
|
var _b = this.parentSeries, accumulatedValues = _b.accumulatedValues, getGroupIndex = _b.getGroupIndex, getGroupsCount = _b.getGroupsCount, getColumnWidth = _b.getColumnWidth;
|
|
@@ -98,7 +98,7 @@ var StackedColumnSeriesHitTestProvider = /** @class */ (function (_super) {
|
|
|
98
98
|
var xHitCoord = isVerticalChart ? hitTestPoint.y : hitTestPoint.x;
|
|
99
99
|
var yHitCoord = isVerticalChart ? hitTestPoint.x : hitTestPoint.y;
|
|
100
100
|
var dataSeries = this.parentSeries.dataSeries;
|
|
101
|
-
var nearestPointIndex = hitTestHelpers_1.hitTestHelpers.getNearestXPoint(this.webAssemblyContext, xCoordinateCalculator, dataSeries, xHitCoord, dataSeries.
|
|
101
|
+
var nearestPointIndex = hitTestHelpers_1.hitTestHelpers.getNearestXPoint(this.webAssemblyContext, xCoordinateCalculator, dataSeries, xHitCoord, dataSeries.dataDistributionCalculator.isSortedAscending);
|
|
102
102
|
var xNativeValues = dataSeries.getNativeXValues();
|
|
103
103
|
var yNativeValues = dataSeries.getNativeYValues();
|
|
104
104
|
var _b = this.parentSeries, accumulatedValues = _b.accumulatedValues, getGroupIndex = _b.getGroupIndex, getGroupsCount = _b.getGroupsCount, getColumnWidth = _b.getColumnWidth;
|
|
@@ -39,7 +39,7 @@ var StackedMountainSeriesHitTestProvider = /** @class */ (function (_super) {
|
|
|
39
39
|
var xHitCoord = isVerticalChart ? hitTestPoint.y : hitTestPoint.x;
|
|
40
40
|
var yHitCoord = isVerticalChart ? hitTestPoint.x : hitTestPoint.y;
|
|
41
41
|
var dataSeries = this.parentSeries.dataSeries;
|
|
42
|
-
var nearestPointIndex = hitTestHelpers_1.hitTestHelpers.getNearestXPoint(this.webAssemblyContext, xCoordinateCalculator, dataSeries, xHitCoord, dataSeries.
|
|
42
|
+
var nearestPointIndex = hitTestHelpers_1.hitTestHelpers.getNearestXPoint(this.webAssemblyContext, xCoordinateCalculator, dataSeries, xHitCoord, dataSeries.dataDistributionCalculator.isSortedAscending);
|
|
43
43
|
var xNativeValues = dataSeries.getNativeXValues();
|
|
44
44
|
var accumulatedValues = this.parentSeries.accumulatedValues;
|
|
45
45
|
var hitTestInfo = hitTestHelpers_1.hitTestHelpers.createHitTestInfo(this.parentSeries, xCoordinateCalculator, yCoordinateCalculator, isVerticalChart, dataSeries, xNativeValues, accumulatedValues, xHitCoord, yHitCoord, nearestPointIndex, 0);
|
|
@@ -69,7 +69,7 @@ var StackedMountainSeriesHitTestProvider = /** @class */ (function (_super) {
|
|
|
69
69
|
var xHitCoord = isVerticalChart ? hitTestPoint.y : hitTestPoint.x;
|
|
70
70
|
var yHitCoord = isVerticalChart ? hitTestPoint.x : hitTestPoint.y;
|
|
71
71
|
var dataSeries = this.parentSeries.dataSeries;
|
|
72
|
-
var nearestPointIndex = hitTestHelpers_1.hitTestHelpers.getNearestXPoint(this.webAssemblyContext, xCoordinateCalculator, dataSeries, xHitCoord, dataSeries.
|
|
72
|
+
var nearestPointIndex = hitTestHelpers_1.hitTestHelpers.getNearestXPoint(this.webAssemblyContext, xCoordinateCalculator, dataSeries, xHitCoord, dataSeries.dataDistributionCalculator.isSortedAscending);
|
|
73
73
|
var xNativeValues = dataSeries.getNativeXValues();
|
|
74
74
|
var yNativeValues = dataSeries.getNativeYValues();
|
|
75
75
|
var accumulatedValues = this.parentSeries.accumulatedValues;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SCRTDoubleVector, TSciChart } from "../../../../types/TSciChart";
|
|
2
2
|
import { BaseDataSeries } from "../../../Model/BaseDataSeries";
|
|
3
3
|
import { IDataSeries } from "../../../Model/IDataSeries";
|
|
4
4
|
import { OhlcDataSeries } from "../../../Model/OhlcDataSeries";
|
|
@@ -11,7 +11,7 @@ import { FastColumnRenderableSeries } from "../FastColumnRenderableSeries";
|
|
|
11
11
|
import { IRenderableSeries } from "../IRenderableSeries";
|
|
12
12
|
import { HitTestInfo } from "./HitTestInfo";
|
|
13
13
|
export declare const hitTestHelpers: {
|
|
14
|
-
createHitTestInfo: (renderableSeries: IRenderableSeries, xCoordinateCalculator: CoordinateCalculatorBase, yCoordinateCalculator: CoordinateCalculatorBase, isVerticalChart: boolean, dataSeries: BaseDataSeries, xNativeValues:
|
|
14
|
+
createHitTestInfo: (renderableSeries: IRenderableSeries, xCoordinateCalculator: CoordinateCalculatorBase, yCoordinateCalculator: CoordinateCalculatorBase, isVerticalChart: boolean, dataSeries: BaseDataSeries, xNativeValues: SCRTDoubleVector, yNativeValues: SCRTDoubleVector, xHitCoord: number, yHitCoord: number, nearestPointIndex: number, hitTestRadius: number) => HitTestInfo;
|
|
15
15
|
getNearestXPoint: (webAssemblyContext: TSciChart, xCoordinateCalculator: CoordinateCalculatorBase, dataSeries: IDataSeries, xHitCoord: number, isSorted: boolean) => number;
|
|
16
16
|
getNearestXyPoint: (xCoordinateCalculator: CoordinateCalculatorBase, yCoordinateCalculator: CoordinateCalculatorBase, dataSeries: IDataSeries, xHitCoord: number, yHitCoord: number) => number;
|
|
17
17
|
getNearestXyyPoint: (xCoordinateCalculator: CoordinateCalculatorBase, yCoordinateCalculator: CoordinateCalculatorBase, dataSeries: XyyDataSeries, xHitCoord: number, yHitCoord: number) => number;
|
|
@@ -20,16 +20,16 @@ export declare const hitTestHelpers: {
|
|
|
20
20
|
yIndex: number;
|
|
21
21
|
zValue: number;
|
|
22
22
|
};
|
|
23
|
-
testIsHitForPoint: (xCoordinateCalculator: CoordinateCalculatorBase, yCoordinateCalculator: CoordinateCalculatorBase, xValues:
|
|
24
|
-
testIsHitForLine: (xCoordinateCalculator: CoordinateCalculatorBase, yCoordinateCalculator: CoordinateCalculatorBase, xValues:
|
|
23
|
+
testIsHitForPoint: (xCoordinateCalculator: CoordinateCalculatorBase, yCoordinateCalculator: CoordinateCalculatorBase, xValues: SCRTDoubleVector, yValues: SCRTDoubleVector, pointIndex: number, xHitCoord: number, yHitCoord: number, hitTestRadius: number) => boolean;
|
|
24
|
+
testIsHitForLine: (xCoordinateCalculator: CoordinateCalculatorBase, yCoordinateCalculator: CoordinateCalculatorBase, xValues: SCRTDoubleVector, yValues: SCRTDoubleVector, pointIndex: number, xHitCoord: number, yHitCoord: number, hitTestRadius: number) => {
|
|
25
25
|
isHit: boolean;
|
|
26
26
|
secondPointIndex: number;
|
|
27
27
|
};
|
|
28
|
-
testIsHitForBand: (isDigitalLine: boolean, xCoordinateCalculator: CoordinateCalculatorBase, yCoordinateCalculator: CoordinateCalculatorBase, xValues:
|
|
28
|
+
testIsHitForBand: (isDigitalLine: boolean, xCoordinateCalculator: CoordinateCalculatorBase, yCoordinateCalculator: CoordinateCalculatorBase, xValues: SCRTDoubleVector, getYValue: (index: number) => number, getY1Value: (index: number) => number, pointIndex: number, xHitCoord: number, yHitCoord: number) => {
|
|
29
29
|
isHit: boolean;
|
|
30
30
|
secondPointIndex: number;
|
|
31
31
|
};
|
|
32
|
-
testIsHitForColumn: (xCoordinateCalculator: CoordinateCalculatorBase, yCoordinateCalculator: CoordinateCalculatorBase, renderableSeries: FastColumnRenderableSeries, xValues:
|
|
32
|
+
testIsHitForColumn: (xCoordinateCalculator: CoordinateCalculatorBase, yCoordinateCalculator: CoordinateCalculatorBase, renderableSeries: FastColumnRenderableSeries, xValues: SCRTDoubleVector, yValues: SCRTDoubleVector, pointIndex: number, xHitCoord: number, yHitCoord: number) => boolean;
|
|
33
33
|
testIsHitForOHLC: (xCoordinateCalculator: CoordinateCalculatorBase, yCoordinateCalculator: CoordinateCalculatorBase, renderableSeries: FastColumnRenderableSeries | BaseOhlcRenderableSeries, dataSeries: OhlcDataSeries, pointIndex: number, xHitCoord: number, yHitCoord: number, hitTestRadius: number) => {
|
|
34
34
|
isHit: boolean;
|
|
35
35
|
openValue: number;
|
|
@@ -53,7 +53,7 @@ var createHitTestInfo = function (renderableSeries, xCoordinateCalculator, yCoor
|
|
|
53
53
|
hitTestInfo.yValue = yValue;
|
|
54
54
|
var xFirstValue = isCategoryAxis ? 0 : xNativeValues.get(0);
|
|
55
55
|
var xLastValue = isCategoryAxis ? xNativeValues.size() - 1 : xNativeValues.get(xNativeValues.size() - 1);
|
|
56
|
-
if (!dataSeries.
|
|
56
|
+
if (!dataSeries.dataDistributionCalculator.isSortedAscending) {
|
|
57
57
|
for (var i = 0; i < dataSeries.count(); i++) {
|
|
58
58
|
if (xNativeValues.get(i) < xFirstValue) {
|
|
59
59
|
xFirstValue = xNativeValues.get(i);
|
|
@@ -2,6 +2,7 @@ import { TAnimationDefinition, TEffectDefinition, TPaletteProviderDefinition, TP
|
|
|
2
2
|
import { ELineDrawMode } from "../../Drawing/WebGlRenderContext2D";
|
|
3
3
|
import { IDataSeries } from "../../Model/IDataSeries";
|
|
4
4
|
import { IPaletteProvider } from "../../Model/IPaletteProvider";
|
|
5
|
+
import { EResamplingMode } from "../../Numerics/Resamplers/ResamplingMode";
|
|
5
6
|
import { IPointMarker } from "../PointMarkers/IPointMarker";
|
|
6
7
|
import { SeriesAnimation } from "./Animations/SeriesAnimation";
|
|
7
8
|
import { IRenderableSeries } from "./IRenderableSeries";
|
|
@@ -137,7 +138,7 @@ export interface IBaseRenderableSeriesOptions {
|
|
|
137
138
|
*/
|
|
138
139
|
drawNaNAs?: ELineDrawMode;
|
|
139
140
|
/**
|
|
140
|
-
* An animation that runs on the start, child class to {@link
|
|
141
|
+
* An animation that runs on the start, child class to {@link SeriesAnimation}
|
|
141
142
|
*/
|
|
142
143
|
animation?: SeriesAnimation | TAnimationDefinition;
|
|
143
144
|
/**
|
|
@@ -156,4 +157,14 @@ export interface IBaseRenderableSeriesOptions {
|
|
|
156
157
|
* Optional callback function when hovered changed. Also see {@link IRenderableSeries.hovered} event handler
|
|
157
158
|
*/
|
|
158
159
|
onHoveredChanged?: TSeriesHoverChangedCallback | string;
|
|
160
|
+
/**
|
|
161
|
+
* Gets or sets the {@link EResamplingMode} used when drawing this series.
|
|
162
|
+
* Default value is AUTO.
|
|
163
|
+
* To disable resampling for this series, set mode to NONE.
|
|
164
|
+
*/
|
|
165
|
+
resamplingMode?: EResamplingMode;
|
|
166
|
+
/**
|
|
167
|
+
* Gets or sets the resampling precision for this series
|
|
168
|
+
*/
|
|
169
|
+
resamplingPrecision?: number;
|
|
159
170
|
}
|
|
@@ -3,11 +3,14 @@ import { EventHandler } from "../../../Core/EventHandler";
|
|
|
3
3
|
import { IDeletable } from "../../../Core/IDeletable";
|
|
4
4
|
import { NumberRange } from "../../../Core/NumberRange";
|
|
5
5
|
import { ESeriesType } from "../../../types/SeriesType";
|
|
6
|
-
import {
|
|
6
|
+
import { SCRTDoubleVector } from "../../../types/TSciChart";
|
|
7
7
|
import { ELineDrawMode, WebGlRenderContext2D } from "../../Drawing/WebGlRenderContext2D";
|
|
8
8
|
import { SeriesInfo } from "../../Model/ChartData/SeriesInfo";
|
|
9
9
|
import { IDataSeries } from "../../Model/IDataSeries";
|
|
10
10
|
import { IPaletteProvider } from "../../Model/IPaletteProvider";
|
|
11
|
+
import { IPointSeries } from "../../Model/PointSeries/IPointSeries";
|
|
12
|
+
import { EResamplingMode } from "../../Numerics/Resamplers/ResamplingMode";
|
|
13
|
+
import { ResamplingParams } from "../../Numerics/Resamplers/ResamplingParams";
|
|
11
14
|
import { RenderPassData } from "../../Services/RenderPassData";
|
|
12
15
|
import { IThemeable } from "../../Themes/IThemeable";
|
|
13
16
|
import { IThemeProvider } from "../../Themes/IThemeProvider";
|
|
@@ -46,6 +49,10 @@ export interface IRenderableSeries extends IDeletable, IThemeable, INotifyOnDpiC
|
|
|
46
49
|
* Returns true if the series is a stacked series or not
|
|
47
50
|
*/
|
|
48
51
|
readonly isStacked: boolean;
|
|
52
|
+
/**
|
|
53
|
+
* Returns true if the series supports resampling
|
|
54
|
+
*/
|
|
55
|
+
readonly supportsResampling: boolean;
|
|
49
56
|
/**
|
|
50
57
|
* Returns true if the series uses spline interpolation
|
|
51
58
|
*/
|
|
@@ -219,6 +226,20 @@ export interface IRenderableSeries extends IDeletable, IThemeable, INotifyOnDpiC
|
|
|
219
226
|
* gets if the animation is currently running
|
|
220
227
|
*/
|
|
221
228
|
isRunningAnimation: boolean;
|
|
229
|
+
/**
|
|
230
|
+
* Readonly. When true, resampling modes are enabled for faster drawing performance.
|
|
231
|
+
*/
|
|
232
|
+
enableDrawingOptimisations: boolean;
|
|
233
|
+
/**
|
|
234
|
+
* Gets or sets the {@link EResamplingMode} used when drawing this series.
|
|
235
|
+
* Default value is Auto.
|
|
236
|
+
* To disable resampling set mode = None.
|
|
237
|
+
*/
|
|
238
|
+
resamplingMode: EResamplingMode;
|
|
239
|
+
/**
|
|
240
|
+
* Gets or sets the resampling precision for this series
|
|
241
|
+
*/
|
|
242
|
+
resamplingPrecision: number;
|
|
222
243
|
/**
|
|
223
244
|
* Called when the {@link BaseRenderableSeries} must be drawn
|
|
224
245
|
* @param renderContext The {@link WebGL2RenderingContext} with methods for drawing on the WebGL Canvas via our WebAssembly Rendering Engine
|
|
@@ -279,7 +300,7 @@ export interface IRenderableSeries extends IDeletable, IThemeable, INotifyOnDpiC
|
|
|
279
300
|
/**
|
|
280
301
|
* Returns the {@link IDataSeries.getNativeXValues} for the associated {@link dataSeries}
|
|
281
302
|
*/
|
|
282
|
-
getNativeXValues():
|
|
303
|
+
getNativeXValues(): SCRTDoubleVector;
|
|
283
304
|
/**
|
|
284
305
|
* Checks is the point is out of the data range. For sorted data only. Is used to hide tooltips for {@link RolloverModifier}
|
|
285
306
|
* @param xValue The X value of the point
|
|
@@ -314,4 +335,19 @@ export interface IRenderableSeries extends IDeletable, IThemeable, INotifyOnDpiC
|
|
|
314
335
|
* @param excludeData if set true, data values will not be included in the json.
|
|
315
336
|
*/
|
|
316
337
|
toJSON(excludeData?: boolean): TSeriesDefinition;
|
|
338
|
+
/**
|
|
339
|
+
* Returns a dataset for drawing on the viewport
|
|
340
|
+
* @param resamplingParams The resampling parameters
|
|
341
|
+
*/
|
|
342
|
+
toPointSeries(resamplingParams?: ResamplingParams): IPointSeries;
|
|
343
|
+
/**
|
|
344
|
+
* Returns the indices range of data points in xRange of the associated {@link IDataSeries}
|
|
345
|
+
* @param xRange The X-Axis Range currently in view
|
|
346
|
+
* @param isCategoryData If True the renderable series uses {@link CategoryAxis}
|
|
347
|
+
*/
|
|
348
|
+
getIndicesRange(xRange: NumberRange, isCategoryData?: boolean): NumberRange;
|
|
349
|
+
/**
|
|
350
|
+
* Gets the RenderPassData instance used for this render pass
|
|
351
|
+
*/
|
|
352
|
+
getCurrentRenderPassData(): RenderPassData;
|
|
317
353
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SCRTDoubleVector } from "../../../types/TSciChart";
|
|
2
2
|
export interface ISpline {
|
|
3
3
|
/**
|
|
4
4
|
* X spline values
|
|
5
5
|
*/
|
|
6
|
-
xSplineValues:
|
|
6
|
+
xSplineValues: SCRTDoubleVector;
|
|
7
7
|
/**
|
|
8
8
|
* Y spline values
|
|
9
9
|
*/
|
|
10
|
-
ySplineValues:
|
|
10
|
+
ySplineValues: SCRTDoubleVector;
|
|
11
11
|
/**
|
|
12
12
|
* the interpolationPoints being used for the Spline
|
|
13
13
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SeriesAnimationFiniteStateMachine } from "../../../Core/Animations/AnimationFiniteStateMachine";
|
|
2
2
|
import { NumberRange } from "../../../Core/NumberRange";
|
|
3
3
|
import { ESeriesType } from "../../../types/SeriesType";
|
|
4
|
-
import {
|
|
4
|
+
import { SCRTDoubleVector, TSciChart } from "../../../types/TSciChart";
|
|
5
5
|
import { SeriesAnimation } from "./Animations/SeriesAnimation";
|
|
6
6
|
import { BaseBandRenderableSeries, IBaseBandRenderableSeriesOptions } from "./BaseBandRenderableSeries";
|
|
7
7
|
import { ISpline } from "./ISpline";
|
|
@@ -40,9 +40,9 @@ export interface ISplineBandRenderableSeriesOptions extends IBaseBandRenderableS
|
|
|
40
40
|
*/
|
|
41
41
|
export declare class SplineBandRenderableSeries extends BaseBandRenderableSeries implements ISpline {
|
|
42
42
|
readonly type = ESeriesType.SplineBandSeries;
|
|
43
|
-
xSplineValues:
|
|
44
|
-
ySplineValues:
|
|
45
|
-
y1SplineValues:
|
|
43
|
+
xSplineValues: SCRTDoubleVector;
|
|
44
|
+
ySplineValues: SCRTDoubleVector;
|
|
45
|
+
y1SplineValues: SCRTDoubleVector;
|
|
46
46
|
private recalculateSpline;
|
|
47
47
|
private interpolationPointsProperty;
|
|
48
48
|
/**
|
|
@@ -58,9 +58,9 @@ var SplineBandRenderableSeries = /** @class */ (function (_super) {
|
|
|
58
58
|
_this.type = SeriesType_1.ESeriesType.SplineBandSeries;
|
|
59
59
|
_this.recalculateSpline = true;
|
|
60
60
|
_this.interpolationPointsProperty = 10;
|
|
61
|
-
_this.xSplineValues = new webAssemblyContext.
|
|
62
|
-
_this.ySplineValues = new webAssemblyContext.
|
|
63
|
-
_this.y1SplineValues = new webAssemblyContext.
|
|
61
|
+
_this.xSplineValues = new webAssemblyContext.SCRTDoubleVector();
|
|
62
|
+
_this.ySplineValues = new webAssemblyContext.SCRTDoubleVector();
|
|
63
|
+
_this.y1SplineValues = new webAssemblyContext.SCRTDoubleVector();
|
|
64
64
|
_this.interpolationPointsProperty = (_a = options === null || options === void 0 ? void 0 : options.interpolationPoints) !== null && _a !== void 0 ? _a : _this.interpolationPointsProperty;
|
|
65
65
|
// Must be called here for the series type to be available
|
|
66
66
|
if ((_b = _this.paletteProvider) === null || _b === void 0 ? void 0 : _b.onAttached) {
|
|
@@ -104,8 +104,8 @@ var SplineBandRenderableSeries = /** @class */ (function (_super) {
|
|
|
104
104
|
var yValues = dataSeries.getNativeYValues();
|
|
105
105
|
var y1Values = dataSeries.getNativeY1Values();
|
|
106
106
|
var initialSize = xValues.size();
|
|
107
|
-
this.webAssemblyContext.SCRTSplineHelperCubicSpline(xValues, yValues, this.xSplineValues, this.ySplineValues, initialSize, this.interpolationPoints, dataSeries.containsNaN);
|
|
108
|
-
this.webAssemblyContext.SCRTSplineHelperCubicSpline(xValues, y1Values, this.xSplineValues, this.y1SplineValues, initialSize, this.interpolationPoints, dataSeries.containsNaN);
|
|
107
|
+
this.webAssemblyContext.SCRTSplineHelperCubicSpline(xValues, yValues, this.xSplineValues, this.ySplineValues, initialSize, this.interpolationPoints, dataSeries.dataDistributionCalculator.containsNaN);
|
|
108
|
+
this.webAssemblyContext.SCRTSplineHelperCubicSpline(xValues, y1Values, this.xSplineValues, this.y1SplineValues, initialSize, this.interpolationPoints, dataSeries.dataDistributionCalculator.containsNaN);
|
|
109
109
|
this.recalculateSpline = false;
|
|
110
110
|
};
|
|
111
111
|
/** @inheritDoc */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SeriesAnimationFiniteStateMachine } from "../../../Core/Animations/AnimationFiniteStateMachine";
|
|
2
2
|
import { NumberRange } from "../../../Core/NumberRange";
|
|
3
3
|
import { ESeriesType } from "../../../types/SeriesType";
|
|
4
|
-
import {
|
|
4
|
+
import { SCRTDoubleVector, TSciChart } from "../../../types/TSciChart";
|
|
5
5
|
import { SeriesAnimation } from "./Animations/SeriesAnimation";
|
|
6
6
|
import { BaseLineRenderableSeries } from "./BaseLineRenderableSeries";
|
|
7
7
|
import { TPalettingState } from "./DrawingProviders/BaseSeriesDrawingProvider";
|
|
@@ -37,8 +37,8 @@ export interface ISplineLineRenderableSeriesOptions extends IBaseRenderableSerie
|
|
|
37
37
|
*/
|
|
38
38
|
export declare class SplineLineRenderableSeries extends BaseLineRenderableSeries implements ISpline {
|
|
39
39
|
readonly type = ESeriesType.SplineLineSeries;
|
|
40
|
-
xSplineValues:
|
|
41
|
-
ySplineValues:
|
|
40
|
+
xSplineValues: SCRTDoubleVector;
|
|
41
|
+
ySplineValues: SCRTDoubleVector;
|
|
42
42
|
private interpolationPointsProperty;
|
|
43
43
|
private recalculateSpline;
|
|
44
44
|
/**
|
|
@@ -56,8 +56,8 @@ var SplineLineRenderableSeries = /** @class */ (function (_super) {
|
|
|
56
56
|
_this.type = SeriesType_1.ESeriesType.SplineLineSeries;
|
|
57
57
|
_this.interpolationPointsProperty = 10;
|
|
58
58
|
_this.recalculateSpline = true;
|
|
59
|
-
_this.xSplineValues = new webAssemblyContext.
|
|
60
|
-
_this.ySplineValues = new webAssemblyContext.
|
|
59
|
+
_this.xSplineValues = new webAssemblyContext.SCRTDoubleVector();
|
|
60
|
+
_this.ySplineValues = new webAssemblyContext.SCRTDoubleVector();
|
|
61
61
|
_this.interpolationPointsProperty = (_a = options === null || options === void 0 ? void 0 : options.interpolationPoints) !== null && _a !== void 0 ? _a : _this.interpolationPointsProperty;
|
|
62
62
|
// Must be called here for the series type to be available
|
|
63
63
|
if ((_b = _this.paletteProvider) === null || _b === void 0 ? void 0 : _b.onAttached) {
|
|
@@ -99,7 +99,7 @@ var SplineLineRenderableSeries = /** @class */ (function (_super) {
|
|
|
99
99
|
var xValues = this.xAxis.isCategoryAxis ? dataSeries.getNativeIndexes() : dataSeries.getNativeXValues();
|
|
100
100
|
var yValues = dataSeries.getNativeYValues();
|
|
101
101
|
var initialSize = xValues.size();
|
|
102
|
-
this.webAssemblyContext.SCRTSplineHelperCubicSpline(xValues, yValues, this.xSplineValues, this.ySplineValues, initialSize, this.interpolationPoints, dataSeries.containsNaN);
|
|
102
|
+
this.webAssemblyContext.SCRTSplineHelperCubicSpline(xValues, yValues, this.xSplineValues, this.ySplineValues, initialSize, this.interpolationPoints, dataSeries.dataDistributionCalculator.containsNaN);
|
|
103
103
|
this.recalculateSpline = false;
|
|
104
104
|
};
|
|
105
105
|
/** @inheritDoc */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SeriesAnimationFiniteStateMachine } from "../../../Core/Animations/AnimationFiniteStateMachine";
|
|
2
2
|
import { NumberRange } from "../../../Core/NumberRange";
|
|
3
3
|
import { ESeriesType } from "../../../types/SeriesType";
|
|
4
|
-
import {
|
|
4
|
+
import { SCRTDoubleVector, TSciChart } from "../../../types/TSciChart";
|
|
5
5
|
import { SeriesAnimation } from "./Animations/SeriesAnimation";
|
|
6
6
|
import { BaseMountainRenderableSeries, IBaseMountainRenderableSeriesOptions } from "./BaseMountainRenderableSeries";
|
|
7
7
|
import { ISpline } from "./ISpline";
|
|
@@ -38,8 +38,8 @@ export interface ISplineMountainRenderableSeriesOptions extends IBaseMountainRen
|
|
|
38
38
|
*/
|
|
39
39
|
export declare class SplineMountainRenderableSeries extends BaseMountainRenderableSeries implements ISpline {
|
|
40
40
|
readonly type = ESeriesType.SplineMountainSeries;
|
|
41
|
-
xSplineValues:
|
|
42
|
-
ySplineValues:
|
|
41
|
+
xSplineValues: SCRTDoubleVector;
|
|
42
|
+
ySplineValues: SCRTDoubleVector;
|
|
43
43
|
private recalculateSpline;
|
|
44
44
|
private interpolationPointsProperty;
|
|
45
45
|
/**
|
|
@@ -56,8 +56,8 @@ var SplineMountainRenderableSeries = /** @class */ (function (_super) {
|
|
|
56
56
|
_this.type = SeriesType_1.ESeriesType.SplineMountainSeries;
|
|
57
57
|
_this.recalculateSpline = true;
|
|
58
58
|
_this.interpolationPointsProperty = 10;
|
|
59
|
-
_this.xSplineValues = new webAssemblyContext.
|
|
60
|
-
_this.ySplineValues = new webAssemblyContext.
|
|
59
|
+
_this.xSplineValues = new webAssemblyContext.SCRTDoubleVector();
|
|
60
|
+
_this.ySplineValues = new webAssemblyContext.SCRTDoubleVector();
|
|
61
61
|
_this.interpolationPointsProperty = (_a = options === null || options === void 0 ? void 0 : options.interpolationPoints) !== null && _a !== void 0 ? _a : _this.interpolationPointsProperty;
|
|
62
62
|
// Must be called here for the series type to be available
|
|
63
63
|
if ((_b = _this.paletteProvider) === null || _b === void 0 ? void 0 : _b.onAttached) {
|
|
@@ -99,7 +99,7 @@ var SplineMountainRenderableSeries = /** @class */ (function (_super) {
|
|
|
99
99
|
var xValues = this.xAxis.isCategoryAxis ? dataSeries.getNativeIndexes() : dataSeries.getNativeXValues();
|
|
100
100
|
var yValues = dataSeries.getNativeYValues();
|
|
101
101
|
var initialSize = xValues.size();
|
|
102
|
-
this.webAssemblyContext.SCRTSplineHelperCubicSpline(xValues, yValues, this.xSplineValues, this.ySplineValues, initialSize, this.interpolationPoints, dataSeries.containsNaN);
|
|
102
|
+
this.webAssemblyContext.SCRTSplineHelperCubicSpline(xValues, yValues, this.xSplineValues, this.ySplineValues, initialSize, this.interpolationPoints, dataSeries.dataDistributionCalculator.containsNaN);
|
|
103
103
|
this.recalculateSpline = false;
|
|
104
104
|
};
|
|
105
105
|
/** @inheritDoc */
|