scichart 3.1.333 → 3.1.346

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 (39) 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/_wasm/scichart.browser.js +1 -1
  27. package/_wasm/scichart2d.js +7 -7
  28. package/_wasm/scichart2d.wasm +0 -0
  29. package/_wasm/scichart3d.js +7 -7
  30. package/_wasm/scichart3d.wasm +0 -0
  31. package/index.d.ts +2 -0
  32. package/index.js +13 -11
  33. package/index.min.js +1 -1
  34. package/package.json +1 -1
  35. package/types/TextStyle.d.ts +2 -0
  36. package/types/TextStyle.js +1 -1
  37. package/utils/date.js +2 -0
  38. package/utils/text.d.ts +3 -2
  39. 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.346";
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-05-19T00: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.346";
8
8
  var checkBuildStamp = function (wasmContext) {
9
9
  if (result !== undefined)
10
10
  return result;