scichart 3.1.333 → 3.1.348

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 (41) hide show
  1. package/Charting/ChartModifiers/RolloverModifier.d.ts +11 -0
  2. package/Charting/ChartModifiers/RolloverModifier.js +59 -46
  3. package/Charting/ChartModifiers/ZoomExtentsModifier.js +2 -2
  4. package/Charting/ChartModifiers/ZoomPanModifier.js +2 -0
  5. package/Charting/Model/BaseDataSeries.js +3 -6
  6. package/Charting/Model/HlcDataSeries.js +4 -5
  7. package/Charting/Model/OhlcDataSeries.js +2 -3
  8. package/Charting/Model/XyyDataSeries.js +2 -2
  9. package/Charting/Services/ChartTitleRenderer.js +1 -8
  10. package/Charting/Services/TitleRenderer.d.ts +5 -4
  11. package/Charting/Services/TitleRenderer.js +24 -19
  12. package/Charting/Visuals/Annotations/OverviewCustomResizableAnnotation.js +2 -0
  13. package/Charting/Visuals/Axis/AxisCore.d.ts +17 -11
  14. package/Charting/Visuals/Axis/AxisCore.js +14 -9
  15. package/Charting/Visuals/Axis/AxisTitleRenderer.d.ts +3 -3
  16. package/Charting/Visuals/Axis/AxisTitleRenderer.js +2 -8
  17. package/Charting/Visuals/Axis/IAxisCoreOptions.d.ts +2 -2
  18. package/Charting/Visuals/RenderableSeries/HitTest/BandSeriesHitTestProvider.js +11 -4
  19. package/Charting/Visuals/RenderableSeries/HitTest/BaseHitTestProvider.js +11 -4
  20. package/Charting/Visuals/RenderableSeries/HitTest/LineSeriesHitTestProvider.js +11 -4
  21. package/Charting/Visuals/SciChartSurface.js +1 -1
  22. package/Charting3D/Model/DataSeries/UniformGridDataSeries3D.d.ts +1 -1
  23. package/Charting3D/Model/DataSeries/UniformGridDataSeries3D.js +1 -1
  24. package/Core/BuildStamp.d.ts +1 -1
  25. package/Core/BuildStamp.js +2 -2
  26. package/Core/ObservableArray.d.ts +11 -5
  27. package/Core/ObservableArray.js +25 -6
  28. package/_wasm/scichart.browser.js +1 -1
  29. package/_wasm/scichart2d.js +7 -7
  30. package/_wasm/scichart2d.wasm +0 -0
  31. package/_wasm/scichart3d.js +16 -16
  32. package/_wasm/scichart3d.wasm +0 -0
  33. package/index.d.ts +2 -0
  34. package/index.js +13 -11
  35. package/index.min.js +1 -1
  36. package/package.json +1 -1
  37. package/types/TextStyle.d.ts +2 -0
  38. package/types/TextStyle.js +1 -1
  39. package/utils/date.js +2 -0
  40. package/utils/text.d.ts +3 -2
  41. package/utils/text.js +45 -2
@@ -128,10 +128,17 @@ var BandSeriesHitTestProvider = /** @class */ (function (_super) {
128
128
  }
129
129
  if (dataSeries.dataDistributionCalculator.isSortedAscending && nearestPointIndex >= 0) {
130
130
  var dataSeriesCount = xNativeValues.size();
131
- var xValue = xNativeValues.get(nearestPointIndex);
132
- var xHitValue = xCoordinateCalculator.getDataValue(xHitCoord);
133
- if (!(nearestPointIndex === dataSeriesCount - 1 && xHitValue >= xValue) &&
134
- !(nearestPointIndex === 0 && xHitValue <= xValue)) {
131
+ var nearestXCoord = xCoordinateCalculator.getCoordinate(xCoordinateCalculator.isCategoryCoordinateCalculator
132
+ ? nearestPointIndex
133
+ : xNativeValues.get(nearestPointIndex));
134
+ if (!(nearestPointIndex === dataSeriesCount - 1 &&
135
+ (xCoordinateCalculator.hasFlippedCoordinates
136
+ ? xHitCoord >= nearestXCoord
137
+ : xHitCoord <= nearestXCoord)) &&
138
+ !(nearestPointIndex === 0 &&
139
+ (xCoordinateCalculator.hasFlippedCoordinates
140
+ ? xHitCoord <= nearestXCoord
141
+ : xHitCoord >= nearestXCoord))) {
135
142
  var hitRes = hitTestHelpers_1.hitTestHelpers.testIsHitForLine(xCoordinateCalculator, yCoordinateCalculator, xNativeValues, yNativeValues, nearestPointIndex, xHitCoord, yHitCoord, 0);
136
143
  hitTestInfo.point2dataSeriesIndex = hitRes.secondPointIndex;
137
144
  if (hitRes.secondPointIndex !== undefined) {
@@ -84,10 +84,17 @@ var BaseHitTestProvider = /** @class */ (function () {
84
84
  hitTestInfo.isHit = hitTestInfo.isWithinDataBounds;
85
85
  if (dataSeries.dataDistributionCalculator.isSortedAscending && nearestPointIndex >= 0) {
86
86
  var dataSeriesCount = xNativeValues.size();
87
- var xValue = xNativeValues.get(nearestPointIndex);
88
- var xHitValue = xCoordinateCalculator.getDataValue(xHitCoord);
89
- if (!(nearestPointIndex === dataSeriesCount - 1 && xHitValue >= xValue) &&
90
- !(nearestPointIndex === 0 && xHitValue <= xValue)) {
87
+ var nearestXCoord = xCoordinateCalculator.getCoordinate(xCoordinateCalculator.isCategoryCoordinateCalculator
88
+ ? nearestPointIndex
89
+ : xNativeValues.get(nearestPointIndex));
90
+ if (!(nearestPointIndex === dataSeriesCount - 1 &&
91
+ (xCoordinateCalculator.hasFlippedCoordinates
92
+ ? xHitCoord >= nearestXCoord
93
+ : xHitCoord <= nearestXCoord)) &&
94
+ !(nearestPointIndex === 0 &&
95
+ (xCoordinateCalculator.hasFlippedCoordinates
96
+ ? xHitCoord <= nearestXCoord
97
+ : xHitCoord >= nearestXCoord))) {
91
98
  var hitRes = hitTestHelpers_1.hitTestHelpers.testIsHitForLine(xCoordinateCalculator, yCoordinateCalculator, xNativeValues, yNativeValues, nearestPointIndex, xHitCoord, yHitCoord, 0);
92
99
  hitTestInfo.point2dataSeriesIndex = hitRes.secondPointIndex;
93
100
  hitTestInfo.point2xValue = xNativeValues.get(hitRes.secondPointIndex);
@@ -60,10 +60,17 @@ var LineSeriesHitTestProvider = /** @class */ (function (_super) {
60
60
  var hitTestInfo = hitTestHelpers_1.hitTestHelpers.createHitTestInfo(this.parentSeries, xCoordinateCalculator, yCoordinateCalculator, isVerticalChart, dataSeries, xNativeValues, yNativeValues, xHitCoord, yHitCoord, nearestPointIndex, hitTestRadius);
61
61
  if (nearestPointIndex >= 0) {
62
62
  var dataSeriesCount = xNativeValues.size();
63
- var xValue = xNativeValues.get(nearestPointIndex);
64
- var xHitValue = xCoordinateCalculator.getDataValue(xHitCoord);
65
- if ((nearestPointIndex === dataSeriesCount - 1 && xHitValue >= xValue) ||
66
- (nearestPointIndex === 0 && xHitValue <= xValue)) {
63
+ var nearestXCoord = xCoordinateCalculator.getCoordinate(xCoordinateCalculator.isCategoryCoordinateCalculator
64
+ ? nearestPointIndex
65
+ : xNativeValues.get(nearestPointIndex));
66
+ if ((nearestPointIndex === dataSeriesCount - 1 &&
67
+ (xCoordinateCalculator.hasFlippedCoordinates
68
+ ? xHitCoord >= nearestXCoord
69
+ : xHitCoord <= nearestXCoord)) ||
70
+ (nearestPointIndex === 0 &&
71
+ (xCoordinateCalculator.hasFlippedCoordinates
72
+ ? xHitCoord <= nearestXCoord
73
+ : xHitCoord >= nearestXCoord))) {
67
74
  hitTestInfo.isHit = hitTestHelpers_1.hitTestHelpers.testIsHitForPoint(xCoordinateCalculator, yCoordinateCalculator, xNativeValues, yNativeValues, nearestPointIndex, xHitCoord, yHitCoord, hitTestRadius);
68
75
  }
69
76
  else {
@@ -179,7 +179,7 @@ var SciChartSurface = /** @class */ (function (_super) {
179
179
  lineSpacing: 1.1,
180
180
  padding: Thickness_1.Thickness.fromString("10 4 10 4"),
181
181
  multilineAlignment: TextPosition_1.EMultiLineAlignment.Center,
182
- // rotation: 0,
182
+ rotation: undefined,
183
183
  alignment: TextStyle_1.ETextAlignment.Center,
184
184
  position: TextStyle_1.ETitlePosition.Top,
185
185
  placeWithinChart: false,
@@ -30,7 +30,7 @@ export interface IUniformGridDataSeries3DOptions extends IBaseGridDataSeries3DOp
30
30
  * @description
31
31
  * The {@link SurfaceMeshRenderableSeries3D} requires a 2D array of numbers to map to Y-values (heights).
32
32
  *
33
- * The {@link xStart}, @{link xStep} properties define the extents of the data in the X-direction, and {@link yStart}, {@link yStep}
33
+ * The {@link xStart}, {@link xStep} properties define the extents of the data in the X-direction, and {@link yStart}, {@link yStep}
34
34
  * define the extents of the data in the Y-direction.
35
35
  *
36
36
  * Y-values may be updated via manipulating the array returned by {@link getYValues}, or by setting a new array to {@link setYValues}. When
@@ -26,7 +26,7 @@ var BaseGridDataSeries3D_1 = require("./BaseGridDataSeries3D");
26
26
  * @description
27
27
  * The {@link SurfaceMeshRenderableSeries3D} requires a 2D array of numbers to map to Y-values (heights).
28
28
  *
29
- * The {@link xStart}, @{link xStep} properties define the extents of the data in the X-direction, and {@link yStart}, {@link yStep}
29
+ * The {@link xStart}, {@link xStep} properties define the extents of the data in the X-direction, and {@link yStart}, {@link yStep}
30
30
  * define the extents of the data in the Y-direction.
31
31
  *
32
32
  * Y-values may be updated via manipulating the array returned by {@link getYValues}, or by setting a new array to {@link setYValues}. When
@@ -1,4 +1,4 @@
1
1
  import { TSciChart } from "../types/TSciChart";
2
2
  import { TSciChart3D } from "../types/TSciChart3D";
3
- export declare const libraryVersion = "3.1.333";
3
+ export declare const libraryVersion = "3.1.348";
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 = "2023-04-19T00:00:00";
4
+ var buildStamp = "2023-07-04T00:00:00";
5
5
  var result;
6
6
  // tslint:disable-next-line:no-var-requires
7
- exports.libraryVersion = "3.1.333";
7
+ exports.libraryVersion = "3.1.348";
8
8
  var checkBuildStamp = function (wasmContext) {
9
9
  if (result !== undefined)
10
10
  return result;
@@ -41,18 +41,24 @@ export declare class ObservableArray<T extends {
41
41
  contains(item: T): boolean;
42
42
  /**
43
43
  * Removes an item at the specified index. Raises the {@link collectionChanged} event to subscribers
44
- * @param index
44
+ * @param index The item to remove
45
+ * @param callDeleteOnChildren When true, if the items in the array implement the {@link IDeletable} interface,
46
+ * the delete() function will be called. Defaults to false for backward compatibility
45
47
  */
46
- removeAt(index: number): void;
48
+ removeAt(index: number, callDeleteOnChildren?: boolean): void;
47
49
  /**
48
50
  * Removes an item by value. Raises the {@link collectionChanged} event to subscribers
49
- * @param item
51
+ * @param item The item to remove
52
+ * @param callDeleteOnChildren When true, if the items in the array implement the {@link IDeletable} interface,
53
+ * the delete() function will be called. Defaults to false for backward compatibility
50
54
  */
51
- remove(item: T): void;
55
+ remove(item: T, callDeleteOnChildren?: boolean): void;
52
56
  /**
53
57
  * Clears the array. Raises the {@link collectionChanged} event to subscribers
58
+ * @param callDeleteOnChildren When true, if the items in the array implement the {@link IDeletable} interface,
59
+ * the delete() function will be called. Defaults to false for backward compatibility
54
60
  */
55
- clear(): void;
61
+ clear(callDeleteOnChildren?: boolean): void;
56
62
  /**
57
63
  * Gets an item at index
58
64
  * @param index
@@ -64,35 +64,54 @@ var ObservableArray = /** @class */ (function () {
64
64
  };
65
65
  /**
66
66
  * Removes an item at the specified index. Raises the {@link collectionChanged} event to subscribers
67
- * @param index
67
+ * @param index The item to remove
68
+ * @param callDeleteOnChildren When true, if the items in the array implement the {@link IDeletable} interface,
69
+ * the delete() function will be called. Defaults to false for backward compatibility
68
70
  */
69
- ObservableArray.prototype.removeAt = function (index) {
71
+ ObservableArray.prototype.removeAt = function (index, callDeleteOnChildren) {
72
+ if (callDeleteOnChildren === void 0) { callDeleteOnChildren = false; }
70
73
  if (index < 0 || index >= this.items.length) {
71
74
  return;
72
75
  }
73
76
  var item = this.items[index];
74
77
  this.items.splice(index, 1);
75
78
  this.collectionChanged.raiseEvent(new ObservableArrayChangedArgs_1.ObservableArrayChangedArgs(ObservableArrayChangedArgs_1.EObservableArrayChangedAction.Remove, undefined, [item]));
79
+ // @ts-ignore
80
+ if (callDeleteOnChildren && (item === null || item === void 0 ? void 0 : item.delete))
81
+ item.delete();
76
82
  };
77
83
  /**
78
84
  * Removes an item by value. Raises the {@link collectionChanged} event to subscribers
79
- * @param item
85
+ * @param item The item to remove
86
+ * @param callDeleteOnChildren When true, if the items in the array implement the {@link IDeletable} interface,
87
+ * the delete() function will be called. Defaults to false for backward compatibility
80
88
  */
81
- ObservableArray.prototype.remove = function (item) {
89
+ ObservableArray.prototype.remove = function (item, callDeleteOnChildren) {
90
+ if (callDeleteOnChildren === void 0) { callDeleteOnChildren = false; }
82
91
  for (var index = 0; index < this.size(); index++) {
83
92
  if (this.items[index] === item) {
84
- this.removeAt(index);
93
+ this.removeAt(index, callDeleteOnChildren);
85
94
  break;
86
95
  }
87
96
  }
88
97
  };
89
98
  /**
90
99
  * Clears the array. Raises the {@link collectionChanged} event to subscribers
100
+ * @param callDeleteOnChildren When true, if the items in the array implement the {@link IDeletable} interface,
101
+ * the delete() function will be called. Defaults to false for backward compatibility
91
102
  */
92
- ObservableArray.prototype.clear = function () {
103
+ ObservableArray.prototype.clear = function (callDeleteOnChildren) {
104
+ if (callDeleteOnChildren === void 0) { callDeleteOnChildren = false; }
93
105
  var oldItems = this.items;
94
106
  this.items = [];
95
107
  this.collectionChanged.raiseEvent(new ObservableArrayChangedArgs_1.ObservableArrayChangedArgs(ObservableArrayChangedArgs_1.EObservableArrayChangedAction.Reset, undefined, oldItems));
108
+ if (callDeleteOnChildren) {
109
+ oldItems === null || oldItems === void 0 ? void 0 : oldItems.forEach(function (item) {
110
+ // @ts-ignore
111
+ if (item === null || item === void 0 ? void 0 : item.delete)
112
+ item.delete();
113
+ });
114
+ }
96
115
  };
97
116
  /**
98
117
  * Gets an item at index