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.
- package/Charting/ChartModifiers/RolloverModifier.d.ts +11 -0
- package/Charting/ChartModifiers/RolloverModifier.js +59 -46
- package/Charting/ChartModifiers/ZoomExtentsModifier.js +2 -2
- package/Charting/ChartModifiers/ZoomPanModifier.js +2 -0
- package/Charting/Model/BaseDataSeries.js +3 -6
- package/Charting/Model/HlcDataSeries.js +4 -5
- package/Charting/Model/OhlcDataSeries.js +2 -3
- package/Charting/Model/XyyDataSeries.js +2 -2
- package/Charting/Services/ChartTitleRenderer.js +1 -8
- package/Charting/Services/TitleRenderer.d.ts +5 -4
- package/Charting/Services/TitleRenderer.js +24 -19
- package/Charting/Visuals/Annotations/OverviewCustomResizableAnnotation.js +2 -0
- package/Charting/Visuals/Axis/AxisCore.d.ts +17 -11
- package/Charting/Visuals/Axis/AxisCore.js +14 -9
- package/Charting/Visuals/Axis/AxisTitleRenderer.d.ts +3 -3
- package/Charting/Visuals/Axis/AxisTitleRenderer.js +2 -8
- package/Charting/Visuals/Axis/IAxisCoreOptions.d.ts +2 -2
- package/Charting/Visuals/RenderableSeries/HitTest/BandSeriesHitTestProvider.js +11 -4
- package/Charting/Visuals/RenderableSeries/HitTest/BaseHitTestProvider.js +11 -4
- package/Charting/Visuals/RenderableSeries/HitTest/LineSeriesHitTestProvider.js +11 -4
- package/Charting/Visuals/SciChartSurface.js +1 -1
- package/Charting3D/Model/DataSeries/UniformGridDataSeries3D.d.ts +1 -1
- package/Charting3D/Model/DataSeries/UniformGridDataSeries3D.js +1 -1
- package/Core/BuildStamp.d.ts +1 -1
- package/Core/BuildStamp.js +2 -2
- package/Core/ObservableArray.d.ts +11 -5
- package/Core/ObservableArray.js +25 -6
- package/_wasm/scichart.browser.js +1 -1
- package/_wasm/scichart2d.js +7 -7
- package/_wasm/scichart2d.wasm +0 -0
- package/_wasm/scichart3d.js +16 -16
- package/_wasm/scichart3d.wasm +0 -0
- package/index.d.ts +2 -0
- package/index.js +13 -11
- package/index.min.js +1 -1
- package/package.json +1 -1
- package/types/TextStyle.d.ts +2 -0
- package/types/TextStyle.js +1 -1
- package/utils/date.js +2 -0
- package/utils/text.d.ts +3 -2
- 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
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
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
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
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
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
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
|
-
|
|
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}, @
|
|
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}, @
|
|
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
|
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 = "3.1.
|
|
3
|
+
export declare const libraryVersion = "3.1.348";
|
|
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 = "2023-
|
|
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.
|
|
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
|
package/Core/ObservableArray.js
CHANGED
|
@@ -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
|