scichart 2.2.2407 → 2.2.2410
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/DataPointSelectionModifier.js +0 -6
- package/Charting/ChartModifiers/PinchZoomModifier.js +0 -2
- package/Charting/ChartModifiers/XAxisDragModifier.js +0 -2
- package/Charting/ChartModifiers/YAxisDragModifier.js +0 -2
- package/Charting/ChartModifiers/ZoomPanModifier.js +0 -3
- package/Core/BuildStamp.d.ts +1 -1
- package/Core/BuildStamp.js +2 -2
- package/Core/Mouse/MouseManager.js +14 -5
- package/_wasm/scichart.browser.js +1 -1
- package/_wasm/scichart2d.js +1 -1
- package/_wasm/scichart2d.wasm +0 -0
- package/_wasm/scichart3d.js +1 -1
- package/_wasm/scichart3d.wasm +0 -0
- package/package.json +1 -1
|
@@ -203,9 +203,6 @@ var DataPointSelectionModifier = /** @class */ (function (_super) {
|
|
|
203
203
|
this.startPoint = pointFromTrans;
|
|
204
204
|
this.isClicked = true;
|
|
205
205
|
}
|
|
206
|
-
if (args.isMaster) {
|
|
207
|
-
args.target.setPointerCapture(args.pointerId);
|
|
208
|
-
}
|
|
209
206
|
args.handled = true;
|
|
210
207
|
};
|
|
211
208
|
/**
|
|
@@ -250,9 +247,6 @@ var DataPointSelectionModifier = /** @class */ (function (_super) {
|
|
|
250
247
|
}
|
|
251
248
|
this.isClicked = false;
|
|
252
249
|
this.selectionRect.isHidden = true;
|
|
253
|
-
if (args.isMaster) {
|
|
254
|
-
args.target.releasePointerCapture(args.pointerId);
|
|
255
|
-
}
|
|
256
250
|
}
|
|
257
251
|
};
|
|
258
252
|
Object.defineProperty(DataPointSelectionModifier.prototype, "selectionStrokeThickness", {
|
|
@@ -81,7 +81,6 @@ var PinchZoomModifier = /** @class */ (function (_super) {
|
|
|
81
81
|
}
|
|
82
82
|
this.activeTouchEvents.set(args.pointerId, args);
|
|
83
83
|
args.handled = true;
|
|
84
|
-
args.target.setPointerCapture(args.pointerId);
|
|
85
84
|
};
|
|
86
85
|
/**
|
|
87
86
|
* @inheritDoc
|
|
@@ -164,7 +163,6 @@ var PinchZoomModifier = /** @class */ (function (_super) {
|
|
|
164
163
|
PinchZoomModifier.prototype.removeFromActiveTouchEvents = function (args) {
|
|
165
164
|
// Remove this event from the target's cache
|
|
166
165
|
this.activeTouchEvents.delete(args.pointerId);
|
|
167
|
-
args.target.releasePointerCapture(args.pointerId);
|
|
168
166
|
// reset distance values
|
|
169
167
|
if (this.activeTouchEvents.size < 2) {
|
|
170
168
|
this.previousHorizontalTouchPointsDistance = undefined;
|
|
@@ -134,7 +134,6 @@ var XAxisDragModifier = /** @class */ (function (_super) {
|
|
|
134
134
|
this.updateCursor(args.mousePoint);
|
|
135
135
|
this.pointFrom = undefined;
|
|
136
136
|
this.isClickedOverXAxis = false;
|
|
137
|
-
args.target.releasePointerCapture(args.pointerId);
|
|
138
137
|
};
|
|
139
138
|
XAxisDragModifier.prototype.toJSON = function () {
|
|
140
139
|
var json = _super.prototype.toJSON.call(this);
|
|
@@ -218,7 +217,6 @@ var XAxisDragModifier = /** @class */ (function (_super) {
|
|
|
218
217
|
this.initialVisibleRanges = initialVisibleRanges;
|
|
219
218
|
this.pointFrom = args.mousePoint;
|
|
220
219
|
args.handled = true;
|
|
221
|
-
args.target.setPointerCapture(args.pointerId);
|
|
222
220
|
};
|
|
223
221
|
return XAxisDragModifier;
|
|
224
222
|
}(ChartModifierBase2D_1.ChartModifierBase2D));
|
|
@@ -133,7 +133,6 @@ var YAxisDragModifier = /** @class */ (function (_super) {
|
|
|
133
133
|
this.updateCursor(args.mousePoint);
|
|
134
134
|
this.pointFrom = undefined;
|
|
135
135
|
this.isClickedOverYAxis = false;
|
|
136
|
-
args.target.releasePointerCapture(args.pointerId);
|
|
137
136
|
};
|
|
138
137
|
YAxisDragModifier.prototype.toJSON = function () {
|
|
139
138
|
var json = _super.prototype.toJSON.call(this);
|
|
@@ -217,7 +216,6 @@ var YAxisDragModifier = /** @class */ (function (_super) {
|
|
|
217
216
|
this.initialVisibleRanges = initialVisibleRanges;
|
|
218
217
|
this.pointFrom = args.mousePoint;
|
|
219
218
|
args.handled = true;
|
|
220
|
-
args.target.setPointerCapture(args.pointerId);
|
|
221
219
|
};
|
|
222
220
|
return YAxisDragModifier;
|
|
223
221
|
}(ChartModifierBase2D_1.ChartModifierBase2D));
|
|
@@ -94,7 +94,6 @@ var ZoomPanModifier = /** @class */ (function (_super) {
|
|
|
94
94
|
this.parentSurface.setZoomState(ZoomState_1.EZoomState.UserZooming);
|
|
95
95
|
args.handled = true;
|
|
96
96
|
this.lastPoint = args.mousePoint;
|
|
97
|
-
args.target.setPointerCapture(args.pointerId);
|
|
98
97
|
};
|
|
99
98
|
/** @inheritDoc */
|
|
100
99
|
ZoomPanModifier.prototype.modifierMouseMove = function (args) {
|
|
@@ -131,7 +130,6 @@ var ZoomPanModifier = /** @class */ (function (_super) {
|
|
|
131
130
|
ZoomPanModifier.prototype.modifierMouseUp = function (args) {
|
|
132
131
|
_super.prototype.modifierMouseUp.call(this, args);
|
|
133
132
|
this.lastPoint = undefined;
|
|
134
|
-
args.target.releasePointerCapture(args.pointerId);
|
|
135
133
|
this.activeTouchEvents.delete(args.pointerId);
|
|
136
134
|
// delegate drag and pan handling to the next active pointer in order of event occurrence
|
|
137
135
|
if (this.activeTouchEvents.size > 0) {
|
|
@@ -144,7 +142,6 @@ var ZoomPanModifier = /** @class */ (function (_super) {
|
|
|
144
142
|
ZoomPanModifier.prototype.modifierPointerCancel = function (args) {
|
|
145
143
|
_super.prototype.modifierPointerCancel.call(this, args);
|
|
146
144
|
this.lastPoint = undefined;
|
|
147
|
-
args.target.releasePointerCapture(args.pointerId);
|
|
148
145
|
this.activeTouchEvents.clear();
|
|
149
146
|
};
|
|
150
147
|
/** @inheritDoc */
|
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 = "2.2.
|
|
3
|
+
export declare const libraryVersion = "2.2.2410";
|
|
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 = "2022-08-
|
|
4
|
+
var buildStamp = "2022-08-23T00:00:00";
|
|
5
5
|
var result;
|
|
6
6
|
// tslint:disable-next-line:no-var-requires
|
|
7
|
-
exports.libraryVersion = "2.2.
|
|
7
|
+
exports.libraryVersion = "2.2.2410";
|
|
8
8
|
var checkBuildStamp = function (wasmContext) {
|
|
9
9
|
if (result !== undefined)
|
|
10
10
|
return result;
|
|
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.MouseManager = void 0;
|
|
4
4
|
var ModifierMouseArgs_1 = require("../../Charting/ChartModifiers/ModifierMouseArgs");
|
|
5
5
|
var SciChartSurfaceBase_1 = require("../../Charting/Visuals/SciChartSurfaceBase");
|
|
6
|
-
var ExecuteOn_1 = require("../../types/ExecuteOn");
|
|
7
6
|
var array_1 = require("../../utils/array");
|
|
8
7
|
var Guard_1 = require("../Guard");
|
|
9
8
|
/**
|
|
@@ -82,10 +81,8 @@ var MouseManager = /** @class */ (function () {
|
|
|
82
81
|
* @param event The {@link PointerEvent}
|
|
83
82
|
*/
|
|
84
83
|
MouseManager.prototype.onPointerDown = function (event) {
|
|
85
|
-
// prevent
|
|
86
|
-
|
|
87
|
-
event.preventDefault();
|
|
88
|
-
}
|
|
84
|
+
// prevent default browser actions (like fast scroll for mouse wheel click and dragging of selected elements)
|
|
85
|
+
event.preventDefault();
|
|
89
86
|
var modifierEvent = ModifierMouseArgs_1.ModifierMouseArgs.fromPointerEvent(event);
|
|
90
87
|
this.modifierMouseDown(modifierEvent);
|
|
91
88
|
};
|
|
@@ -142,6 +139,9 @@ var MouseManager = /** @class */ (function () {
|
|
|
142
139
|
};
|
|
143
140
|
MouseManager.prototype.modifierPointerCancel = function (args) {
|
|
144
141
|
var _this = this;
|
|
142
|
+
if (args.isMaster) {
|
|
143
|
+
args.target.releasePointerCapture(args.pointerId);
|
|
144
|
+
}
|
|
145
145
|
this.chartModifiers.forEach(function (cm) {
|
|
146
146
|
if (cm.canReceiveMouseEvents && (!args.handled || cm.receiveHandledEvents)) {
|
|
147
147
|
if (args.isMaster || (!args.isMaster && cm.modifierGroup === args.modifierGroup)) {
|
|
@@ -200,6 +200,11 @@ var MouseManager = /** @class */ (function () {
|
|
|
200
200
|
*/
|
|
201
201
|
MouseManager.prototype.modifierMouseDown = function (args) {
|
|
202
202
|
var _this = this;
|
|
203
|
+
var _a;
|
|
204
|
+
// allow capturing mouse events outside when pointer is of canvas
|
|
205
|
+
if (args.isMaster) {
|
|
206
|
+
(_a = args.target) === null || _a === void 0 ? void 0 : _a.setPointerCapture(args.pointerId);
|
|
207
|
+
}
|
|
203
208
|
var updateModifiers = function () {
|
|
204
209
|
_this.chartModifiers.forEach(function (cm) {
|
|
205
210
|
if (cm.canReceiveMouseEvents && (!args.handled || cm.receiveHandledEvents)) {
|
|
@@ -255,6 +260,10 @@ var MouseManager = /** @class */ (function () {
|
|
|
255
260
|
*/
|
|
256
261
|
MouseManager.prototype.modifierMouseUp = function (args) {
|
|
257
262
|
var _this = this;
|
|
263
|
+
var _a;
|
|
264
|
+
if (args.isMaster) {
|
|
265
|
+
(_a = args.target) === null || _a === void 0 ? void 0 : _a.releasePointerCapture(args.pointerId);
|
|
266
|
+
}
|
|
258
267
|
// Annotation Adorners
|
|
259
268
|
if (this.sciChartSurface.surfaceType === SciChartSurfaceBase_1.ESurfaceType.SciChartSurfaceType) {
|
|
260
269
|
var scs = this.sciChartSurface;
|