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.
@@ -86,5 +86,6 @@ export declare abstract class CategoryAxisBase extends AxisBase2D {
86
86
  */
87
87
  protected getXDataRange(): NumberRange;
88
88
  protected getMaxAutoTicks(): number;
89
+ private generateDefaultXValuesForCategoryAxis;
89
90
  private setBaseXValues;
90
91
  }
@@ -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.setBaseXValues = function (coordCalc, renderableSeries) {
180
+ CategoryAxisBase.prototype.generateDefaultXValuesForCategoryAxis = function () {
181
181
  var _this = this;
182
- if (!(renderableSeries === null || renderableSeries === void 0 ? void 0 : renderableSeries.dataSeries)) {
183
- if (!coordCalc.baseXValues) {
184
- var defaultBaseXValues = new this.webAssemblyContext2D.SCRTDoubleVector();
185
- if (this.defaultXValues && this.defaultXValues.length > 0) {
186
- (0, appendDoubleVectorFromJsArray_1.appendDoubleVectorFromJsArray)(this.webAssemblyContext2D, defaultBaseXValues, this.defaultXValues);
187
- }
188
- else {
189
- var xValues = Array.from(Array(this.visibleRange.diff), function (_, i) { return _this.defaultXStart + i * _this.defaultXStep; });
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
- if (!(el.dataSeries.count() === length)) {
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
  });
@@ -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.2267";
3
+ export declare const libraryVersion = "2.1.2273";
4
4
  export declare const checkBuildStamp: (wasmContext: TSciChart | TSciChart3D) => boolean;
@@ -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-01T00:00:00";
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.2267";
7
+ exports.libraryVersion = "2.1.2273";
8
8
  var checkBuildStamp = function (wasmContext) {
9
9
  if (result !== undefined)
10
10
  return result;