scichart 2.2.2397 → 2.2.2407

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.
Files changed (33) hide show
  1. package/Charting/ChartModifiers/SeriesSelectionModifier.d.ts +1 -0
  2. package/Charting/ChartModifiers/SeriesSelectionModifier.js +4 -0
  3. package/Charting/Model/BaseDataSeries.js +3 -0
  4. package/Charting/Visuals/Axis/AxisBase2D.js +1 -1
  5. package/Charting/Visuals/Axis/DateTimeNumericAxis.js +1 -1
  6. package/Charting/Visuals/Axis/DeltaCalculator/DateTimeDeltaCalculator.d.ts +5 -3
  7. package/Charting/Visuals/Axis/DeltaCalculator/DateTimeDeltaCalculator.js +11 -6
  8. package/Charting/Visuals/RenderableSeries/HitTest/BandSeriesHitTestProvider.js +9 -0
  9. package/Charting/Visuals/RenderableSeries/HitTest/BaseHitTestProvider.js +6 -0
  10. package/Charting/Visuals/RenderableSeries/HitTest/BubbleSeriesHitTestProvider.js +6 -0
  11. package/Charting/Visuals/RenderableSeries/HitTest/ColumnSeriesHitTestProvider.js +6 -0
  12. package/Charting/Visuals/RenderableSeries/HitTest/ErrorSeriesHitTestProvider.js +6 -0
  13. package/Charting/Visuals/RenderableSeries/HitTest/ImpulseSeriesHitTestProvider.js +6 -0
  14. package/Charting/Visuals/RenderableSeries/HitTest/LineSeriesHitTestProvider.js +6 -0
  15. package/Charting/Visuals/RenderableSeries/HitTest/MountainSeriesHitTestProvider.js +3 -0
  16. package/Charting/Visuals/RenderableSeries/HitTest/OhlcSeriesHitTestProvider.js +6 -0
  17. package/Charting/Visuals/RenderableSeries/HitTest/ScatterSeriesHitTestProvider.js +6 -0
  18. package/Charting/Visuals/RenderableSeries/HitTest/StackedColumnSeriesHitTestProvider.js +6 -0
  19. package/Charting/Visuals/RenderableSeries/HitTest/StackedMountainSeriesHitTestProvider.js +6 -0
  20. package/Charting/Visuals/RenderableSeries/HitTest/UniformHeatmapHitTestProvider.js +3 -0
  21. package/Charting/Visuals/licenseManager2D.d.ts +1 -1
  22. package/Charting/Visuals/licenseManager2D.js +44 -41
  23. package/Charting3D/Visuals/licenseManager3D.js +1 -1
  24. package/Core/BuildStamp.d.ts +1 -1
  25. package/Core/BuildStamp.js +2 -2
  26. package/README.md +3 -2
  27. package/_wasm/scichart.browser.js +1 -1
  28. package/_wasm/scichart2d.js +1 -1
  29. package/_wasm/scichart2d.wasm +0 -0
  30. package/_wasm/scichart3d.js +1 -1
  31. package/_wasm/scichart3d.wasm +0 -0
  32. package/package.json +1 -1
  33. package/utils/number.js +2 -0
@@ -124,6 +124,7 @@ export declare class SeriesSelectionModifier extends ChartModifierBase2D {
124
124
  type: string;
125
125
  options: Required<Omit<IChartModifierBaseOptions, never>>;
126
126
  };
127
+ getAllSeries(): IRenderableSeries[];
127
128
  /**
128
129
  * This function called when the user sets series.isSelected = true elsewhere in code and we want to sync the modifier
129
130
  */
@@ -270,6 +270,10 @@ var SeriesSelectionModifier = /** @class */ (function (_super) {
270
270
  Object.assign(json.options, options);
271
271
  return json;
272
272
  };
273
+ SeriesSelectionModifier.prototype.getAllSeries = function () {
274
+ // Series Selection should only operate on visible series
275
+ return _super.prototype.getAllSeries.call(this).filter(function (rs) { return rs.isVisible; });
276
+ };
273
277
  /**
274
278
  * This function called when the user sets series.isSelected = true elsewhere in code and we want to sync the modifier
275
279
  */
@@ -541,6 +541,9 @@ isSorted) {
541
541
  if (!(0, isRealNumber_1.isRealNumber)(minMax.minD) || !(0, isRealNumber_1.isRealNumber)(minMax.maxD)) {
542
542
  return undefined;
543
543
  }
544
+ if (minMax.minD === minMax.maxD) {
545
+ return new NumberRange_1.NumberRange(minMax.minD - 1, minMax.minD + 1);
546
+ }
544
547
  return new NumberRange_1.NumberRange(minMax.minD, minMax.maxD);
545
548
  }
546
549
  finally {
@@ -645,12 +645,12 @@ var AxisBase2D = /** @class */ (function (_super) {
645
645
  // nativeTitleRect = createNativeRect(this.webAssemblyContext2D, 0, 0 - shift, viewTitleRect.width, viewTitleRect.height + additionalSize);
646
646
  // }
647
647
  nativeAxisRect = (0, createNativeRect_1.createNativeRect)(_this.webAssemblyContext2D, 0, 0, viewAxisRect.width, viewAxisRect.height);
648
- nativeTitleRect = (0, createNativeRect_1.createNativeRect)(_this.webAssemblyContext2D, 0, 0, viewTitleRect.width, viewTitleRect.height);
649
648
  if (nativeAxisRect) {
650
649
  var vecRects = (0, NativeObject_1.getVectorRectVertex)(_this.webAssemblyContext2D);
651
650
  vecRects.push_back(nativeAxisRect);
652
651
  renderContext.drawRects(vecRects, brush, viewAxisRect.left, viewAxisRect.top);
653
652
  }
653
+ nativeTitleRect = (0, createNativeRect_1.createNativeRect)(_this.webAssemblyContext2D, 0, 0, viewTitleRect.width, viewTitleRect.height);
654
654
  if (nativeTitleRect) {
655
655
  var vecRects = (0, NativeObject_1.getVectorRectVertex)(_this.webAssemblyContext2D);
656
656
  vecRects.push_back(nativeTitleRect);
@@ -25,7 +25,7 @@ var DateTimeNumericAxis = /** @class */ (function (_super) {
25
25
  var _a;
26
26
  var _this = _super.call(this, webAssemblyContext, options) || this;
27
27
  _this.labelProvider = (_a = options === null || options === void 0 ? void 0 : options.labelProvider) !== null && _a !== void 0 ? _a : new SmartDateLabelProvider_1.SmartDateLabelProvider();
28
- _this.deltaCalculator = new DateTimeDeltaCalculator_1.DateTimeDeltaCalculator({
28
+ _this.deltaCalculator = new DateTimeDeltaCalculator_1.DateTimeDeltaCalculator(webAssemblyContext, {
29
29
  possibleDeltas: options === null || options === void 0 ? void 0 : options.possibleDeltas,
30
30
  minTicks: options === null || options === void 0 ? void 0 : options.minTicks
31
31
  });
@@ -1,5 +1,7 @@
1
1
  import { NumberRange } from "../../../../Core/NumberRange";
2
- import { DeltaCalculator } from "./DeltaCalculator";
2
+ import { TSciChart } from "../../../../types/TSciChart";
3
+ import { TSciChart3D } from "../../../../types/TSciChart3D";
4
+ import { NumericDeltaCalculator } from "./NumericDeltaCalculator";
3
5
  export interface IDeltaCalculatorOptions {
4
6
  possibleDeltas?: number[];
5
7
  minTicks?: number;
@@ -8,12 +10,12 @@ export interface IDeltaCalculatorOptions {
8
10
  * The DateTimeDeltaCalculator is respinsible for calculating {@link AxisCore.minorDelta} and {@link AxisCore.majorDelta} on
9
11
  * {@link NumericAxis} types.
10
12
  */
11
- export declare class DateTimeDeltaCalculator extends DeltaCalculator {
13
+ export declare class DateTimeDeltaCalculator extends NumericDeltaCalculator {
12
14
  private possibleDeltasProperty;
13
15
  private minTicksProperty;
14
16
  private prevIndex;
15
17
  private currIndex;
16
- constructor(options?: IDeltaCalculatorOptions);
18
+ constructor(webAssemblyContext: TSciChart | TSciChart3D, options?: IDeltaCalculatorOptions);
17
19
  /**
18
20
  * Gets or sets deltas array
19
21
  */
@@ -17,16 +17,16 @@ var __extends = (this && this.__extends) || (function () {
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
18
  exports.DateTimeDeltaCalculator = void 0;
19
19
  var NumberRange_1 = require("../../../../Core/NumberRange");
20
- var DeltaCalculator_1 = require("./DeltaCalculator");
20
+ var NumericDeltaCalculator_1 = require("./NumericDeltaCalculator");
21
21
  /**
22
22
  * The DateTimeDeltaCalculator is respinsible for calculating {@link AxisCore.minorDelta} and {@link AxisCore.majorDelta} on
23
23
  * {@link NumericAxis} types.
24
24
  */
25
25
  var DateTimeDeltaCalculator = /** @class */ (function (_super) {
26
26
  __extends(DateTimeDeltaCalculator, _super);
27
- function DateTimeDeltaCalculator(options) {
27
+ function DateTimeDeltaCalculator(webAssemblyContext, options) {
28
28
  var _a;
29
- var _this = _super.call(this) || this;
29
+ var _this = _super.call(this, webAssemblyContext) || this;
30
30
  _this.possibleDeltasProperty = [
31
31
  1,
32
32
  2,
@@ -55,7 +55,8 @@ var DateTimeDeltaCalculator = /** @class */ (function (_super) {
55
55
  2 * 30 * 24 * 60 * 60,
56
56
  4 * 30 * 24 * 60 * 60,
57
57
  6 * 30 * 24 * 60 * 60,
58
- 12 * 30 * 24 * 60 * 60
58
+ 365.25 * 24 * 60 * 60
59
+ // Years also need special handling
59
60
  ];
60
61
  _this.currIndex = 12;
61
62
  _this.possibleDeltasProperty = (_a = options === null || options === void 0 ? void 0 : options.possibleDeltas) !== null && _a !== void 0 ? _a : _this.possibleDeltasProperty;
@@ -105,11 +106,15 @@ var DateTimeDeltaCalculator = /** @class */ (function (_super) {
105
106
  _this.prevIndex = index;
106
107
  return calculateDelta(deltas, index - 1);
107
108
  }
108
- if (ticksCount > maxTicks && index < deltas.length && index !== _this.prevIndex) {
109
+ if (ticksCount > maxTicks && index < deltas.length - 1 && index !== _this.prevIndex) {
109
110
  if (!_this.prevIndex)
110
111
  _this.prevIndex = index;
111
112
  return calculateDelta(deltas, index + 1);
112
113
  }
114
+ else if (ticksCount > maxTicks && index === deltas.length - 1) {
115
+ var yearDelta = _super.prototype.getDeltaFromRange.call(_this, min / delta, max / delta, minorsPerMajor, maxTicks);
116
+ return yearDelta.max * delta;
117
+ }
113
118
  else {
114
119
  if (_this.currIndex !== index) {
115
120
  _this.currIndex = index;
@@ -121,5 +126,5 @@ var DateTimeDeltaCalculator = /** @class */ (function (_super) {
121
126
  return new NumberRange_1.NumberRange(delta / minorsPerMajor, delta);
122
127
  };
123
128
  return DateTimeDeltaCalculator;
124
- }(DeltaCalculator_1.DeltaCalculator));
129
+ }(NumericDeltaCalculator_1.NumericDeltaCalculator));
125
130
  exports.DateTimeDeltaCalculator = DateTimeDeltaCalculator;
@@ -39,6 +39,9 @@ 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
+ if (!dataSeries) {
43
+ return HitTestInfo_1.HitTestInfo.empty();
44
+ }
42
45
  var nearestPointIndex = hitTestHelpers_1.hitTestHelpers.getNearestXPoint(this.webAssemblyContext, xCoordinateCalculator, dataSeries, xHitCoord, dataSeries.dataDistributionCalculator.isSortedAscending);
43
46
  var xNativeValues = dataSeries.getNativeXValues();
44
47
  var yNativeValues = dataSeries.getNativeYValues();
@@ -68,6 +71,9 @@ var BandSeriesHitTestProvider = /** @class */ (function (_super) {
68
71
  var xHitCoord = isVerticalChart ? hitTestPoint.y : hitTestPoint.x;
69
72
  var yHitCoord = isVerticalChart ? hitTestPoint.x : hitTestPoint.y;
70
73
  var dataSeries = this.parentSeries.dataSeries;
74
+ if (!dataSeries) {
75
+ return HitTestInfo_1.HitTestInfo.empty();
76
+ }
71
77
  var nearestPointIndex = hitTestHelpers_1.hitTestHelpers.getNearestXyyPoint(xCoordinateCalculator, yCoordinateCalculator, dataSeries, xHitCoord, yHitCoord);
72
78
  var hitTestInfo = hitTestHelpers_1.hitTestHelpers.createHitTestInfo(this.parentSeries, xCoordinateCalculator, yCoordinateCalculator, isVerticalChart, dataSeries, dataSeries.getNativeXValues(), dataSeries.getNativeYValues(), xHitCoord, yHitCoord, nearestPointIndex, hitTestRadius);
73
79
  if (nearestPointIndex >= 0) {
@@ -94,6 +100,9 @@ var BandSeriesHitTestProvider = /** @class */ (function (_super) {
94
100
  var xHitCoord = isVerticalChart ? hitTestPoint.y : hitTestPoint.x;
95
101
  var yHitCoord = isVerticalChart ? hitTestPoint.x : hitTestPoint.y;
96
102
  var dataSeries = this.parentSeries.dataSeries;
103
+ if (!dataSeries) {
104
+ return HitTestInfo_1.HitTestInfo.empty();
105
+ }
97
106
  var nearestPointIndex = hitTestHelpers_1.hitTestHelpers.getNearestXPoint(this.webAssemblyContext, xCoordinateCalculator, dataSeries, xHitCoord, dataSeries.dataDistributionCalculator.isSortedAscending);
98
107
  var hitTestInfo = hitTestHelpers_1.hitTestHelpers.createHitTestInfo(this.parentSeries, xCoordinateCalculator, yCoordinateCalculator, isVerticalChart, dataSeries, dataSeries.getNativeXValues(), dataSeries.getNativeYValues(), xHitCoord, yHitCoord, nearestPointIndex, 0);
99
108
  if (nearestPointIndex >= 0) {
@@ -40,6 +40,9 @@ var BaseHitTestProvider = /** @class */ (function () {
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
+ if (!dataSeries) {
44
+ return HitTestInfo_1.HitTestInfo.empty();
45
+ }
43
46
  var nearestPointIndex = hitTestHelpers_1.hitTestHelpers.getNearestXyPoint(xCoordinateCalculator, yCoordinateCalculator, dataSeries, xHitCoord, yHitCoord);
44
47
  var xNativeValues = dataSeries.getNativeXValues();
45
48
  var yNativeValues = dataSeries.getNativeYValues();
@@ -71,6 +74,9 @@ var BaseHitTestProvider = /** @class */ (function () {
71
74
  var xHitCoord = isVerticalChart ? hitTestPoint.y : hitTestPoint.x;
72
75
  var yHitCoord = isVerticalChart ? hitTestPoint.x : hitTestPoint.y;
73
76
  var dataSeries = this.parentSeries.dataSeries;
77
+ if (!dataSeries) {
78
+ return HitTestInfo_1.HitTestInfo.empty();
79
+ }
74
80
  var nearestPointIndex = hitTestHelpers_1.hitTestHelpers.getNearestXPoint(this.webAssemblyContext, xCoordinateCalculator, dataSeries, xHitCoord, dataSeries.dataDistributionCalculator.isSortedAscending);
75
81
  var hitTestInfo = hitTestHelpers_1.hitTestHelpers.createHitTestInfo(this.parentSeries, xCoordinateCalculator, yCoordinateCalculator, isVerticalChart, dataSeries, dataSeries.getNativeXValues(), dataSeries.getNativeYValues(), xHitCoord, yHitCoord, nearestPointIndex, 0);
76
82
  hitTestInfo.isHit = hitTestInfo.isWithinDataBounds;
@@ -42,6 +42,9 @@ var BubbleSeriesHitTestProvider = /** @class */ (function (_super) {
42
42
  var xHitCoord = isVerticalChart ? hitTestPoint.y : hitTestPoint.x;
43
43
  var yHitCoord = isVerticalChart ? hitTestPoint.x : hitTestPoint.y;
44
44
  var dataSeries = this.parentSeries.dataSeries;
45
+ if (!dataSeries) {
46
+ return HitTestInfo_1.HitTestInfo.empty();
47
+ }
45
48
  var nearestPointIndex = hitTestHelpers_1.hitTestHelpers.getNearestXyPoint(xCoordinateCalculator, yCoordinateCalculator, dataSeries, xHitCoord, yHitCoord);
46
49
  var xNativeValues = dataSeries.getNativeXValues();
47
50
  var yNativeValues = dataSeries.getNativeYValues();
@@ -86,6 +89,9 @@ var BubbleSeriesHitTestProvider = /** @class */ (function (_super) {
86
89
  var xHitCoord = isVerticalChart ? hitTestPoint.y : hitTestPoint.x;
87
90
  var yHitCoord = isVerticalChart ? hitTestPoint.x : hitTestPoint.y;
88
91
  var dataSeries = this.parentSeries.dataSeries;
92
+ if (!dataSeries) {
93
+ return HitTestInfo_1.HitTestInfo.empty();
94
+ }
89
95
  var xNativeValues = dataSeries.getNativeXValues();
90
96
  var yNativeValues = dataSeries.getNativeYValues();
91
97
  var zNativeValues = dataSeries.getNativeZValues();
@@ -40,6 +40,9 @@ 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
+ if (!dataSeries) {
44
+ return HitTestInfo_1.HitTestInfo.empty();
45
+ }
43
46
  var nearestPointIndex = hitTestHelpers_1.hitTestHelpers.getNearestXPoint(this.webAssemblyContext, xCoordinateCalculator, dataSeries, xHitCoord, dataSeries.dataDistributionCalculator.isSortedAscending);
44
47
  var xNativeValues = dataSeries.getNativeXValues();
45
48
  var yNativeValues = dataSeries.getNativeYValues();
@@ -71,6 +74,9 @@ var ColumnSeriesHitTestProvider = /** @class */ (function (_super) {
71
74
  var xHitCoord = isVerticalChart ? hitTestPoint.y : hitTestPoint.x;
72
75
  var yHitCoord = isVerticalChart ? hitTestPoint.x : hitTestPoint.y;
73
76
  var dataSeries = this.parentSeries.dataSeries;
77
+ if (!dataSeries) {
78
+ return HitTestInfo_1.HitTestInfo.empty();
79
+ }
74
80
  var xNativeValues = dataSeries.getNativeXValues();
75
81
  var yNativeValues = dataSeries.getNativeYValues();
76
82
  var nearestPointIndex = hitTestHelpers_1.hitTestHelpers.getNearestXPoint(this.webAssemblyContext, xCoordinateCalculator, dataSeries, xHitCoord, dataSeries.dataDistributionCalculator.isSortedAscending);
@@ -42,6 +42,9 @@ var ErrorSeriesHitTestProvider = /** @class */ (function (_super) {
42
42
  var xHitCoord = isVerticalChart ? hitTestPoint.y : hitTestPoint.x;
43
43
  var yHitCoord = isVerticalChart ? hitTestPoint.x : hitTestPoint.y;
44
44
  var dataSeries = this.parentSeries.dataSeries;
45
+ if (!dataSeries) {
46
+ return HitTestInfo_1.HitTestInfo.empty();
47
+ }
45
48
  // TODO handle horizontal direction
46
49
  var nearestPointIndex = hitTestHelpers_1.hitTestHelpers.getNearestXPoint(this.webAssemblyContext, xCoordinateCalculator, dataSeries, xHitCoord, dataSeries.dataDistributionCalculator.isSortedAscending);
47
50
  var xNativeValues = dataSeries.getNativeXValues();
@@ -77,6 +80,9 @@ var ErrorSeriesHitTestProvider = /** @class */ (function (_super) {
77
80
  var xHitCoord = isVerticalChart ? hitTestPoint.y : hitTestPoint.x;
78
81
  var yHitCoord = isVerticalChart ? hitTestPoint.x : hitTestPoint.y;
79
82
  var dataSeries = this.parentSeries.dataSeries;
83
+ if (!dataSeries) {
84
+ return HitTestInfo_1.HitTestInfo.empty();
85
+ }
80
86
  var xNativeValues = dataSeries.getNativeXValues();
81
87
  var yNativeValues = dataSeries.getNativeYValues();
82
88
  var lowNativeValues = dataSeries.getNativeLowValues();
@@ -42,6 +42,9 @@ var ImpulseSeriesHitTestProvider = /** @class */ (function (_super) {
42
42
  var xHitCoord = isVerticalChart ? hitTestPoint.y : hitTestPoint.x;
43
43
  var yHitCoord = isVerticalChart ? hitTestPoint.x : hitTestPoint.y;
44
44
  var dataSeries = this.parentSeries.dataSeries;
45
+ if (!dataSeries) {
46
+ return HitTestInfo_1.HitTestInfo.empty();
47
+ }
45
48
  var nearestXyPointIndex = hitTestHelpers_1.hitTestHelpers.getNearestXyPoint(xCoordinateCalculator, yCoordinateCalculator, dataSeries, xHitCoord, yHitCoord);
46
49
  var nearestPointIndex = hitTestHelpers_1.hitTestHelpers.getNearestXPoint(this.webAssemblyContext, xCoordinateCalculator, dataSeries, xHitCoord, dataSeries.dataDistributionCalculator.isSortedAscending);
47
50
  var xNativeValues = dataSeries.getNativeXValues();
@@ -77,6 +80,9 @@ var ImpulseSeriesHitTestProvider = /** @class */ (function (_super) {
77
80
  var xHitCoord = isVerticalChart ? hitTestPoint.y : hitTestPoint.x;
78
81
  var yHitCoord = isVerticalChart ? hitTestPoint.x : hitTestPoint.y;
79
82
  var dataSeries = this.parentSeries.dataSeries;
83
+ if (!dataSeries) {
84
+ return HitTestInfo_1.HitTestInfo.empty();
85
+ }
80
86
  var xNativeValues = dataSeries.getNativeXValues();
81
87
  var yNativeValues = dataSeries.getNativeYValues();
82
88
  var nearestPointIndex = hitTestHelpers_1.hitTestHelpers.getNearestXPoint(this.webAssemblyContext, xCoordinateCalculator, dataSeries, xHitCoord, dataSeries.dataDistributionCalculator.isSortedAscending);
@@ -51,6 +51,9 @@ 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
+ if (!dataSeries) {
55
+ return HitTestInfo_1.HitTestInfo.empty();
56
+ }
54
57
  var nearestPointIndex = hitTestHelpers_1.hitTestHelpers.getNearestXPoint(this.webAssemblyContext, xCoordinateCalculator, dataSeries, xHitCoord, dataSeries.dataDistributionCalculator.isSortedAscending);
55
58
  var xNativeValues = dataSeries.getNativeXValues();
56
59
  var yNativeValues = dataSeries.getNativeYValues();
@@ -81,6 +84,9 @@ var LineSeriesHitTestProvider = /** @class */ (function (_super) {
81
84
  LineSeriesHitTestProvider.prototype.hitTestUnsorted = function (xHitCoord, yHitCoord, hitTestRadius) {
82
85
  var _a = this.currentRenderPassData, xCoordinateCalculator = _a.xCoordinateCalculator, yCoordinateCalculator = _a.yCoordinateCalculator, isVerticalChart = _a.isVerticalChart;
83
86
  var dataSeries = this.parentSeries.dataSeries;
87
+ if (!dataSeries) {
88
+ return HitTestInfo_1.HitTestInfo.empty();
89
+ }
84
90
  var nearestPointIndex = hitTestHelpers_1.hitTestHelpers.getNearestXyPoint(xCoordinateCalculator, yCoordinateCalculator, dataSeries, xHitCoord, yHitCoord);
85
91
  var xNativeValues = dataSeries.getNativeXValues();
86
92
  var yNativeValues = dataSeries.getNativeYValues();
@@ -40,6 +40,9 @@ 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
+ if (!dataSeries) {
44
+ return HitTestInfo_1.HitTestInfo.empty();
45
+ }
43
46
  var nearestPointIndex = hitTestHelpers_1.hitTestHelpers.getNearestXPoint(this.webAssemblyContext, xCoordinateCalculator, dataSeries, xHitCoord, dataSeries.dataDistributionCalculator.isSortedAscending);
44
47
  var xNativeValues = dataSeries.getNativeXValues();
45
48
  var yNativeValues = dataSeries.getNativeYValues();
@@ -42,6 +42,9 @@ 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
+ if (!dataSeries) {
46
+ return HitTestInfo_1.HitTestInfo.empty();
47
+ }
45
48
  var nearestPointIndex = hitTestHelpers_1.hitTestHelpers.getNearestXPoint(this.webAssemblyContext, xCoordinateCalculator, dataSeries, xHitCoord, dataSeries.dataDistributionCalculator.isSortedAscending);
46
49
  var xNativeValues = dataSeries.getNativeXValues();
47
50
  var yNativeValues = dataSeries.getNativeYValues();
@@ -78,6 +81,9 @@ var OhlcSeriesHitTestProvider = /** @class */ (function (_super) {
78
81
  var xHitCoord = isVerticalChart ? hitTestPoint.y : hitTestPoint.x;
79
82
  var yHitCoord = isVerticalChart ? hitTestPoint.x : hitTestPoint.y;
80
83
  var dataSeries = this.parentSeries.dataSeries;
84
+ if (!dataSeries) {
85
+ return HitTestInfo_1.HitTestInfo.empty();
86
+ }
81
87
  var xNativeValues = dataSeries.getNativeXValues();
82
88
  var yNativeValues = dataSeries.getNativeYValues();
83
89
  var nearestPointIndex = hitTestHelpers_1.hitTestHelpers.getNearestXPoint(this.webAssemblyContext, xCoordinateCalculator, dataSeries, xHitCoord, dataSeries.dataDistributionCalculator.isSortedAscending);
@@ -41,6 +41,9 @@ var ScatterSeriesHitTestProvider = /** @class */ (function (_super) {
41
41
  var xHitCoord = isVerticalChart ? hitTestPoint.y : hitTestPoint.x;
42
42
  var yHitCoord = isVerticalChart ? hitTestPoint.x : hitTestPoint.y;
43
43
  var dataSeries = this.parentSeries.dataSeries;
44
+ if (!dataSeries) {
45
+ return HitTestInfo_1.HitTestInfo.empty();
46
+ }
44
47
  var nearestPointIndex = hitTestHelpers_1.hitTestHelpers.getNearestXyPoint(xCoordinateCalculator, yCoordinateCalculator, dataSeries, xHitCoord, yHitCoord);
45
48
  var xNativeValues = dataSeries.getNativeXValues();
46
49
  var yNativeValues = dataSeries.getNativeYValues();
@@ -72,6 +75,9 @@ var ScatterSeriesHitTestProvider = /** @class */ (function (_super) {
72
75
  var xHitCoord = isVerticalChart ? hitTestPoint.y : hitTestPoint.x;
73
76
  var yHitCoord = isVerticalChart ? hitTestPoint.x : hitTestPoint.y;
74
77
  var dataSeries = this.parentSeries.dataSeries;
78
+ if (!dataSeries) {
79
+ return HitTestInfo_1.HitTestInfo.empty();
80
+ }
75
81
  var xNativeValues = dataSeries.getNativeXValues();
76
82
  var yNativeValues = dataSeries.getNativeYValues();
77
83
  var nearestPointIndex = hitTestHelpers_1.hitTestHelpers.getNearestXPoint(this.webAssemblyContext, xCoordinateCalculator, dataSeries, xHitCoord, dataSeries.dataDistributionCalculator.isSortedAscending);
@@ -40,6 +40,9 @@ 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
+ if (!dataSeries) {
44
+ return HitTestInfo_1.HitTestInfo.empty();
45
+ }
43
46
  var nearestPointIndex = hitTestHelpers_1.hitTestHelpers.getNearestXPoint(this.webAssemblyContext, xCoordinateCalculator, dataSeries, xHitCoord, dataSeries.dataDistributionCalculator.isSortedAscending);
44
47
  var xNativeValues = dataSeries.getNativeXValues();
45
48
  var yNativeValues = dataSeries.getNativeYValues();
@@ -98,6 +101,9 @@ var StackedColumnSeriesHitTestProvider = /** @class */ (function (_super) {
98
101
  var xHitCoord = isVerticalChart ? hitTestPoint.y : hitTestPoint.x;
99
102
  var yHitCoord = isVerticalChart ? hitTestPoint.x : hitTestPoint.y;
100
103
  var dataSeries = this.parentSeries.dataSeries;
104
+ if (!dataSeries) {
105
+ return HitTestInfo_1.HitTestInfo.empty();
106
+ }
101
107
  var nearestPointIndex = hitTestHelpers_1.hitTestHelpers.getNearestXPoint(this.webAssemblyContext, xCoordinateCalculator, dataSeries, xHitCoord, dataSeries.dataDistributionCalculator.isSortedAscending);
102
108
  var xNativeValues = dataSeries.getNativeXValues();
103
109
  var yNativeValues = dataSeries.getNativeYValues();
@@ -39,6 +39,9 @@ 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
+ if (!dataSeries) {
43
+ return HitTestInfo_1.HitTestInfo.empty();
44
+ }
42
45
  var nearestPointIndex = hitTestHelpers_1.hitTestHelpers.getNearestXPoint(this.webAssemblyContext, xCoordinateCalculator, dataSeries, xHitCoord, dataSeries.dataDistributionCalculator.isSortedAscending);
43
46
  var xNativeValues = dataSeries.getNativeXValues();
44
47
  var accumulatedValues = this.parentSeries.accumulatedValues;
@@ -69,6 +72,9 @@ var StackedMountainSeriesHitTestProvider = /** @class */ (function (_super) {
69
72
  var xHitCoord = isVerticalChart ? hitTestPoint.y : hitTestPoint.x;
70
73
  var yHitCoord = isVerticalChart ? hitTestPoint.x : hitTestPoint.y;
71
74
  var dataSeries = this.parentSeries.dataSeries;
75
+ if (!dataSeries) {
76
+ return HitTestInfo_1.HitTestInfo.empty();
77
+ }
72
78
  var nearestPointIndex = hitTestHelpers_1.hitTestHelpers.getNearestXPoint(this.webAssemblyContext, xCoordinateCalculator, dataSeries, xHitCoord, dataSeries.dataDistributionCalculator.isSortedAscending);
73
79
  var xNativeValues = dataSeries.getNativeXValues();
74
80
  var yNativeValues = dataSeries.getNativeYValues();
@@ -40,6 +40,9 @@ var UniformHeatmapHitTestProvider = /** @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
+ if (!dataSeries) {
44
+ return HitTestInfo_1.HitTestInfo.empty();
45
+ }
43
46
  var heatmapPoint = hitTestHelpers_1.hitTestHelpers.getNearestHeatmapPoint(xCoordinateCalculator, yCoordinateCalculator, dataSeries, xHitCoord, yHitCoord);
44
47
  var xIndex = heatmapPoint.xIndex, yIndex = heatmapPoint.yIndex, zValue = heatmapPoint.zValue;
45
48
  var hitTestInfo = new HitTestInfo_1.HitTestInfo(this.parentSeries);
@@ -34,7 +34,7 @@ interface ILicenseCookie {
34
34
  lastValidated: Date;
35
35
  }
36
36
  export declare const getLicenseCookie: () => ILicenseCookie;
37
- export declare const applyLicense: (licenseContext: TLicenseContext) => void;
37
+ export declare const applyLicense: (licenseContext: TLicenseContext, sciChartSurface: SciChartSurfaceBase) => void;
38
38
  export declare type TLicenseContext = {
39
39
  SCRTCredentials: {
40
40
  GetLicenseType: () => SCRTLicenseType;