scichart 2.1.2267 → 2.1.2273
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/Axis/CategoryAxisBase.d.ts +1 -0
- package/Charting/Visuals/Axis/CategoryAxisBase.js +23 -14
- package/Charting/Visuals/RenderableSeries/StackedColumnCollection.js +2 -1
- 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
|
@@ -177,22 +177,20 @@ var CategoryAxisBase = /** @class */ (function (_super) {
|
|
|
177
177
|
var coordCalc = this.getCurrentCoordinateCalculator();
|
|
178
178
|
return Math.min(Math.max(1, this.maxAutoTicks), coordCalc.baseXValues.size());
|
|
179
179
|
};
|
|
180
|
-
CategoryAxisBase.prototype.
|
|
180
|
+
CategoryAxisBase.prototype.generateDefaultXValuesForCategoryAxis = function () {
|
|
181
181
|
var _this = this;
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
(0, appendDoubleVectorFromJsArray_1.appendDoubleVectorFromJsArray)(this.webAssemblyContext2D, defaultBaseXValues, xValues);
|
|
191
|
-
}
|
|
192
|
-
coordCalc.baseXValues = defaultBaseXValues;
|
|
193
|
-
}
|
|
194
|
-
return;
|
|
182
|
+
var defaultBaseXValues = new this.webAssemblyContext2D.SCRTDoubleVector();
|
|
183
|
+
if (this.defaultXValues && this.defaultXValues.length > 0) {
|
|
184
|
+
(0, appendDoubleVectorFromJsArray_1.appendDoubleVectorFromJsArray)(this.webAssemblyContext2D, defaultBaseXValues, this.defaultXValues);
|
|
185
|
+
}
|
|
186
|
+
else {
|
|
187
|
+
var length_1 = Math.ceil(this.visibleRange.diff);
|
|
188
|
+
var xValues = Array.from(Array(length_1), function (_, i) { return _this.defaultXStart + i * _this.defaultXStep; });
|
|
189
|
+
(0, appendDoubleVectorFromJsArray_1.appendDoubleVectorFromJsArray)(this.webAssemblyContext2D, defaultBaseXValues, xValues);
|
|
195
190
|
}
|
|
191
|
+
return defaultBaseXValues;
|
|
192
|
+
};
|
|
193
|
+
CategoryAxisBase.prototype.setBaseXValues = function (coordCalc, renderableSeries) {
|
|
196
194
|
if (renderableSeries.type === SeriesType_1.ESeriesType.UniformHeatmapSeries) {
|
|
197
195
|
throw Error("Category Axis is not supported for UniformHeatmapRenderableSeries");
|
|
198
196
|
}
|
|
@@ -202,9 +200,20 @@ var CategoryAxisBase = /** @class */ (function (_super) {
|
|
|
202
200
|
throw Error("BaseStackedCollection should have at least one BaseStackedRenderableSeries");
|
|
203
201
|
}
|
|
204
202
|
var firstStackedRS = stackedCollection.get(0);
|
|
203
|
+
if (!(firstStackedRS === null || firstStackedRS === void 0 ? void 0 : firstStackedRS.dataSeries)) {
|
|
204
|
+
if (!coordCalc.baseXValues)
|
|
205
|
+
coordCalc.baseXValues = this.generateDefaultXValuesForCategoryAxis();
|
|
206
|
+
return;
|
|
207
|
+
}
|
|
205
208
|
coordCalc.baseXValues = firstStackedRS.dataSeries.getNativeXValues();
|
|
206
209
|
}
|
|
207
210
|
else {
|
|
211
|
+
// Not stacked renderable series
|
|
212
|
+
if (!(renderableSeries === null || renderableSeries === void 0 ? void 0 : renderableSeries.dataSeries)) {
|
|
213
|
+
if (!coordCalc.baseXValues)
|
|
214
|
+
coordCalc.baseXValues = this.generateDefaultXValuesForCategoryAxis();
|
|
215
|
+
return;
|
|
216
|
+
}
|
|
208
217
|
coordCalc.baseXValues = renderableSeries.dataSeries.getNativeXValues();
|
|
209
218
|
}
|
|
210
219
|
};
|
|
@@ -275,7 +275,8 @@ var StackedColumnCollection = /** @class */ (function (_super) {
|
|
|
275
275
|
StackedColumnCollection.prototype.checkXValuesCorrect = function () {
|
|
276
276
|
var length = this.getDataSeriesValuesCount();
|
|
277
277
|
this.getVisibleSeries().forEach(function (el) {
|
|
278
|
-
|
|
278
|
+
var _a;
|
|
279
|
+
if (!(((_a = el.dataSeries) === null || _a === void 0 ? void 0 : _a.count()) === length)) {
|
|
279
280
|
throw Error("All stacked series in on collection should have the same amount of X Values");
|
|
280
281
|
}
|
|
281
282
|
});
|
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.1.
|
|
3
|
+
export declare const libraryVersion = "2.1.2273";
|
|
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-02-
|
|
4
|
+
var buildStamp = "2022-02-14T00:00:00";
|
|
5
5
|
var result;
|
|
6
6
|
// tslint:disable-next-line:no-var-requires
|
|
7
|
-
exports.libraryVersion = "2.1.
|
|
7
|
+
exports.libraryVersion = "2.1.2273";
|
|
8
8
|
var checkBuildStamp = function (wasmContext) {
|
|
9
9
|
if (result !== undefined)
|
|
10
10
|
return result;
|