scichart 2.2.2415 → 2.2.2416
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/Visuals/RenderableSeries/SplineBandRenderableSeries.js +13 -1
- package/Charting/Visuals/RenderableSeries/SplineLineRenderableSeries.js +8 -0
- package/Charting/Visuals/RenderableSeries/SplineMountainRenderableSeries.js +8 -0
- package/Core/BuildStamp.d.ts +1 -1
- package/Core/BuildStamp.js +2 -2
- 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/package.json +1 -1
|
@@ -18,6 +18,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
18
18
|
exports.SplineBandRenderableSeries = void 0;
|
|
19
19
|
var Deleter_1 = require("../../../Core/Deleter");
|
|
20
20
|
var SeriesType_1 = require("../../../types/SeriesType");
|
|
21
|
+
var appendDoubleVectorFromJsArray_1 = require("../../../utils/ccall/appendDoubleVectorFromJsArray");
|
|
21
22
|
var animationHelpers_1 = require("./Animations/animationHelpers");
|
|
22
23
|
var BaseBandRenderableSeries_1 = require("./BaseBandRenderableSeries");
|
|
23
24
|
var constants_1 = require("./constants");
|
|
@@ -105,7 +106,18 @@ var SplineBandRenderableSeries = /** @class */ (function (_super) {
|
|
|
105
106
|
var y1Values = dataSeries.getNativeY1Values();
|
|
106
107
|
var initialSize = xValues.size();
|
|
107
108
|
this.webAssemblyContext.SCRTSplineHelperCubicSpline(xValues, yValues, this.xSplineValues, this.ySplineValues, initialSize, this.interpolationPoints, dataSeries.dataDistributionCalculator.containsNaN);
|
|
108
|
-
|
|
109
|
+
if (yValues.get(0) !== this.ySplineValues.get(0)) {
|
|
110
|
+
console.warn("Spline interpolation could not be calculated. Data may contain duplicate x values");
|
|
111
|
+
this.xSplineValues.resizeFast(initialSize);
|
|
112
|
+
this.webAssemblyContext.SCRTMemCopy(this.xSplineValues.dataPtr(0), dataSeries.getNativeXValues().dataPtr(0), initialSize * appendDoubleVectorFromJsArray_1.SIZEOF_NUMBER);
|
|
113
|
+
this.ySplineValues.resizeFast(initialSize);
|
|
114
|
+
this.webAssemblyContext.SCRTMemCopy(this.ySplineValues.dataPtr(0), dataSeries.getNativeYValues().dataPtr(0), initialSize * appendDoubleVectorFromJsArray_1.SIZEOF_NUMBER);
|
|
115
|
+
this.y1SplineValues.resizeFast(initialSize);
|
|
116
|
+
this.webAssemblyContext.SCRTMemCopy(this.y1SplineValues.dataPtr(0), dataSeries.getNativeY1Values().dataPtr(0), initialSize * appendDoubleVectorFromJsArray_1.SIZEOF_NUMBER);
|
|
117
|
+
}
|
|
118
|
+
else {
|
|
119
|
+
this.webAssemblyContext.SCRTSplineHelperCubicSpline(xValues, y1Values, this.xSplineValues, this.y1SplineValues, initialSize, this.interpolationPoints, dataSeries.dataDistributionCalculator.containsNaN);
|
|
120
|
+
}
|
|
109
121
|
this.recalculateSpline = false;
|
|
110
122
|
};
|
|
111
123
|
/** @inheritDoc */
|
|
@@ -18,6 +18,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
18
18
|
exports.SplineLineRenderableSeries = void 0;
|
|
19
19
|
var Deleter_1 = require("../../../Core/Deleter");
|
|
20
20
|
var SeriesType_1 = require("../../../types/SeriesType");
|
|
21
|
+
var appendDoubleVectorFromJsArray_1 = require("../../../utils/ccall/appendDoubleVectorFromJsArray");
|
|
21
22
|
var animationHelpers_1 = require("./Animations/animationHelpers");
|
|
22
23
|
var BaseLineRenderableSeries_1 = require("./BaseLineRenderableSeries");
|
|
23
24
|
var constants_1 = require("./constants");
|
|
@@ -100,6 +101,13 @@ var SplineLineRenderableSeries = /** @class */ (function (_super) {
|
|
|
100
101
|
var yValues = dataSeries.getNativeYValues();
|
|
101
102
|
var initialSize = xValues.size();
|
|
102
103
|
this.webAssemblyContext.SCRTSplineHelperCubicSpline(xValues, yValues, this.xSplineValues, this.ySplineValues, initialSize, this.interpolationPoints, dataSeries.dataDistributionCalculator.containsNaN);
|
|
104
|
+
if (yValues.get(0) !== this.ySplineValues.get(0)) {
|
|
105
|
+
console.warn("Spline interpolation could not be calculated. Data may contain duplicate x values");
|
|
106
|
+
this.xSplineValues.resizeFast(initialSize);
|
|
107
|
+
this.webAssemblyContext.SCRTMemCopy(this.xSplineValues.dataPtr(0), dataSeries.getNativeXValues().dataPtr(0), initialSize * appendDoubleVectorFromJsArray_1.SIZEOF_NUMBER);
|
|
108
|
+
this.ySplineValues.resizeFast(initialSize);
|
|
109
|
+
this.webAssemblyContext.SCRTMemCopy(this.ySplineValues.dataPtr(0), dataSeries.getNativeYValues().dataPtr(0), initialSize * appendDoubleVectorFromJsArray_1.SIZEOF_NUMBER);
|
|
110
|
+
}
|
|
103
111
|
this.recalculateSpline = false;
|
|
104
112
|
};
|
|
105
113
|
/** @inheritDoc */
|
|
@@ -18,6 +18,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
18
18
|
exports.SplineMountainRenderableSeries = void 0;
|
|
19
19
|
var Deleter_1 = require("../../../Core/Deleter");
|
|
20
20
|
var SeriesType_1 = require("../../../types/SeriesType");
|
|
21
|
+
var appendDoubleVectorFromJsArray_1 = require("../../../utils/ccall/appendDoubleVectorFromJsArray");
|
|
21
22
|
var animationHelpers_1 = require("./Animations/animationHelpers");
|
|
22
23
|
var BaseMountainRenderableSeries_1 = require("./BaseMountainRenderableSeries");
|
|
23
24
|
var constants_1 = require("./constants");
|
|
@@ -100,6 +101,13 @@ var SplineMountainRenderableSeries = /** @class */ (function (_super) {
|
|
|
100
101
|
var yValues = dataSeries.getNativeYValues();
|
|
101
102
|
var initialSize = xValues.size();
|
|
102
103
|
this.webAssemblyContext.SCRTSplineHelperCubicSpline(xValues, yValues, this.xSplineValues, this.ySplineValues, initialSize, this.interpolationPoints, dataSeries.dataDistributionCalculator.containsNaN);
|
|
104
|
+
if (yValues.get(0) !== this.ySplineValues.get(0)) {
|
|
105
|
+
console.warn("Spline interpolation could not be calculated. Data may contain duplicate x values");
|
|
106
|
+
this.xSplineValues.resizeFast(initialSize);
|
|
107
|
+
this.webAssemblyContext.SCRTMemCopy(this.xSplineValues.dataPtr(0), dataSeries.getNativeXValues().dataPtr(0), initialSize * appendDoubleVectorFromJsArray_1.SIZEOF_NUMBER);
|
|
108
|
+
this.ySplineValues.resizeFast(initialSize);
|
|
109
|
+
this.webAssemblyContext.SCRTMemCopy(this.ySplineValues.dataPtr(0), dataSeries.getNativeYValues().dataPtr(0), initialSize * appendDoubleVectorFromJsArray_1.SIZEOF_NUMBER);
|
|
110
|
+
}
|
|
103
111
|
this.recalculateSpline = false;
|
|
104
112
|
};
|
|
105
113
|
/** @inheritDoc */
|
package/Core/BuildStamp.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { TSciChart } from "../types/TSciChart";
|
|
2
2
|
import { TSciChart3D } from "../types/TSciChart3D";
|
|
3
|
-
export declare const libraryVersion = "2.2.
|
|
3
|
+
export declare const libraryVersion = "2.2.2416";
|
|
4
4
|
export declare const checkBuildStamp: (wasmContext: TSciChart | TSciChart3D) => boolean;
|
package/Core/BuildStamp.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.checkBuildStamp = exports.libraryVersion = void 0;
|
|
4
|
-
var buildStamp = "2022-
|
|
4
|
+
var buildStamp = "2022-11-30T00:00:00";
|
|
5
5
|
var result;
|
|
6
6
|
// tslint:disable-next-line:no-var-requires
|
|
7
|
-
exports.libraryVersion = "2.2.
|
|
7
|
+
exports.libraryVersion = "2.2.2416";
|
|
8
8
|
var checkBuildStamp = function (wasmContext) {
|
|
9
9
|
if (result !== undefined)
|
|
10
10
|
return result;
|