@illgrenoble/webx-client 1.9.2 → 1.9.4
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/dist/input/GuacamoleKeyboard.js +118 -99
- package/dist/input/WebXKeyboard.d.ts +0 -16
- package/dist/input/WebXKeyboard.js +3 -27
- package/dist/input/WebXKeyboard.js.map +1 -1
- package/package.json +1 -1
- package/dist/display/WebXMaterialProvider.d.ts +0 -8
- package/dist/display/WebXMaterialProvider.js +0 -71
- package/dist/display/WebXMaterialProvider.js.map +0 -1
- package/dist/input/WebXNewKeyboard.d.ts +0 -62
- package/dist/input/WebXNewKeyboard.js +0 -94
- package/dist/input/WebXNewKeyboard.js.map +0 -1
- package/dist/input/keyboard/WebXKeyEvent.d.ts +0 -79
- package/dist/input/keyboard/WebXKeyEvent.js +0 -324
- package/dist/input/keyboard/WebXKeyEvent.js.map +0 -1
- package/dist/input/keyboard/WebXKeyPressEvent.d.ts +0 -30
- package/dist/input/keyboard/WebXKeyPressEvent.js +0 -44
- package/dist/input/keyboard/WebXKeyPressEvent.js.map +0 -1
- package/dist/input/keyboard/WebXKeyUpEvent.d.ts +0 -33
- package/dist/input/keyboard/WebXKeyUpEvent.js +0 -31
- package/dist/input/keyboard/WebXKeyUpEvent.js.map +0 -1
- package/dist/input/keyboard/WebXKeyboardModifierState.d.ts +0 -108
- package/dist/input/keyboard/WebXKeyboardModifierState.js +0 -148
- package/dist/input/keyboard/WebXKeyboardModifierState.js.map +0 -1
- package/dist/input/keyboard/WebXKeyboardUtils.d.ts +0 -25
- package/dist/input/keyboard/WebXKeyboardUtils.js +0 -63
- package/dist/input/keyboard/WebXKeyboardUtils.js.map +0 -1
- package/dist/input/keyboard/WebXKeydownEvent.d.ts +0 -46
- package/dist/input/keyboard/WebXKeydownEvent.js +0 -66
- package/dist/input/keyboard/WebXKeydownEvent.js.map +0 -1
- package/dist/input/keyboard/index.d.ts +0 -6
- package/dist/input/keyboard/index.js +0 -23
- package/dist/input/keyboard/index.js.map +0 -1
- package/dist/lib/GuacamoleKeyboard.js +0 -1290
- package/dist/lib/GuacamoleKeyboard.js.map +0 -1
- package/dist/message/WebXPollMessage.d.ts +0 -4
- package/dist/message/WebXPollMessage.js +0 -12
- package/dist/message/WebXPollMessage.js.map +0 -1
- package/dist/src/WebXClient.d.ts +0 -261
- package/dist/src/WebXClient.js +0 -571
- package/dist/src/WebXClient.js.map +0 -1
- package/dist/src/WebXEngine.d.ts +0 -4
- package/dist/src/WebXEngine.js +0 -7
- package/dist/src/WebXEngine.js.map +0 -1
- package/dist/src/display/WebXCursor.d.ts +0 -88
- package/dist/src/display/WebXCursor.js +0 -150
- package/dist/src/display/WebXCursor.js.map +0 -1
- package/dist/src/display/WebXCursorFactory.d.ts +0 -36
- package/dist/src/display/WebXCursorFactory.js +0 -59
- package/dist/src/display/WebXCursorFactory.js.map +0 -1
- package/dist/src/display/WebXDisplay.d.ts +0 -226
- package/dist/src/display/WebXDisplay.js +0 -424
- package/dist/src/display/WebXDisplay.js.map +0 -1
- package/dist/src/display/WebXMaterial.d.ts +0 -14
- package/dist/src/display/WebXMaterial.js +0 -140
- package/dist/src/display/WebXMaterial.js.map +0 -1
- package/dist/src/display/WebXSubImage.d.ts +0 -50
- package/dist/src/display/WebXSubImage.js +0 -26
- package/dist/src/display/WebXSubImage.js.map +0 -1
- package/dist/src/display/WebXTextureFactory.d.ts +0 -54
- package/dist/src/display/WebXTextureFactory.js +0 -160
- package/dist/src/display/WebXTextureFactory.js.map +0 -1
- package/dist/src/display/WebXWindow.d.ts +0 -241
- package/dist/src/display/WebXWindow.js +0 -438
- package/dist/src/display/WebXWindow.js.map +0 -1
- package/dist/src/display/WebXWindowProperties.d.ts +0 -44
- package/dist/src/display/WebXWindowProperties.js +0 -25
- package/dist/src/display/WebXWindowProperties.js.map +0 -1
- package/dist/src/display/index.d.ts +0 -7
- package/dist/src/display/index.js +0 -24
- package/dist/src/display/index.js.map +0 -1
- package/dist/src/index.d.ts +0 -7
- package/dist/src/index.js +0 -24
- package/dist/src/index.js.map +0 -1
- package/dist/src/input/WebXKeyboard.d.ts +0 -265
- package/dist/src/input/WebXKeyboard.js +0 -632
- package/dist/src/input/WebXKeyboard.js.map +0 -1
- package/dist/src/input/WebXMouse.d.ts +0 -125
- package/dist/src/input/WebXMouse.js +0 -231
- package/dist/src/input/WebXMouse.js.map +0 -1
- package/dist/src/input/index.d.ts +0 -4
- package/dist/src/input/index.js +0 -21
- package/dist/src/input/index.js.map +0 -1
- package/dist/src/input/keyboard/WebXKeyEvent.d.ts +0 -79
- package/dist/src/input/keyboard/WebXKeyEvent.js +0 -324
- package/dist/src/input/keyboard/WebXKeyEvent.js.map +0 -1
- package/dist/src/input/keyboard/WebXKeyPressEvent.d.ts +0 -30
- package/dist/src/input/keyboard/WebXKeyPressEvent.js +0 -44
- package/dist/src/input/keyboard/WebXKeyPressEvent.js.map +0 -1
- package/dist/src/input/keyboard/WebXKeyUpEvent.d.ts +0 -33
- package/dist/src/input/keyboard/WebXKeyUpEvent.js +0 -31
- package/dist/src/input/keyboard/WebXKeyUpEvent.js.map +0 -1
- package/dist/src/input/keyboard/WebXKeyboardModifierState.d.ts +0 -108
- package/dist/src/input/keyboard/WebXKeyboardModifierState.js +0 -148
- package/dist/src/input/keyboard/WebXKeyboardModifierState.js.map +0 -1
- package/dist/src/input/keyboard/WebXKeyboardUtils.d.ts +0 -25
- package/dist/src/input/keyboard/WebXKeyboardUtils.js +0 -63
- package/dist/src/input/keyboard/WebXKeyboardUtils.js.map +0 -1
- package/dist/src/input/keyboard/WebXKeydownEvent.d.ts +0 -46
- package/dist/src/input/keyboard/WebXKeydownEvent.js +0 -66
- package/dist/src/input/keyboard/WebXKeydownEvent.js.map +0 -1
- package/dist/src/input/keyboard/index.d.ts +0 -6
- package/dist/src/input/keyboard/index.js +0 -23
- package/dist/src/input/keyboard/index.js.map +0 -1
- package/dist/src/input/mouse/WebXMouseState.d.ts +0 -190
- package/dist/src/input/mouse/WebXMouseState.js +0 -217
- package/dist/src/input/mouse/WebXMouseState.js.map +0 -1
- package/dist/src/input/mouse/index.d.ts +0 -1
- package/dist/src/input/mouse/index.js +0 -18
- package/dist/src/input/mouse/index.js.map +0 -1
- package/dist/src/instruction/WebXClipboardInstruction.d.ts +0 -18
- package/dist/src/instruction/WebXClipboardInstruction.js +0 -23
- package/dist/src/instruction/WebXClipboardInstruction.js.map +0 -1
- package/dist/src/instruction/WebXConnectInstruction.d.ts +0 -19
- package/dist/src/instruction/WebXConnectInstruction.js +0 -24
- package/dist/src/instruction/WebXConnectInstruction.js.map +0 -1
- package/dist/src/instruction/WebXCursorImageInstruction.d.ts +0 -18
- package/dist/src/instruction/WebXCursorImageInstruction.js +0 -23
- package/dist/src/instruction/WebXCursorImageInstruction.js.map +0 -1
- package/dist/src/instruction/WebXDataAckInstruction.d.ts +0 -25
- package/dist/src/instruction/WebXDataAckInstruction.js +0 -26
- package/dist/src/instruction/WebXDataAckInstruction.js.map +0 -1
- package/dist/src/instruction/WebXImageInstruction.d.ts +0 -18
- package/dist/src/instruction/WebXImageInstruction.js +0 -23
- package/dist/src/instruction/WebXImageInstruction.js.map +0 -1
- package/dist/src/instruction/WebXInstruction.d.ts +0 -29
- package/dist/src/instruction/WebXInstruction.js +0 -28
- package/dist/src/instruction/WebXInstruction.js.map +0 -1
- package/dist/src/instruction/WebXInstructionResponse.d.ts +0 -66
- package/dist/src/instruction/WebXInstructionResponse.js +0 -78
- package/dist/src/instruction/WebXInstructionResponse.js.map +0 -1
- package/dist/src/instruction/WebXInstructionType.d.ts +0 -63
- package/dist/src/instruction/WebXInstructionType.js +0 -96
- package/dist/src/instruction/WebXInstructionType.js.map +0 -1
- package/dist/src/instruction/WebXKeyboardInstruction.d.ts +0 -23
- package/dist/src/instruction/WebXKeyboardInstruction.js +0 -25
- package/dist/src/instruction/WebXKeyboardInstruction.js.map +0 -1
- package/dist/src/instruction/WebXMouseInstruction.d.ts +0 -28
- package/dist/src/instruction/WebXMouseInstruction.js +0 -27
- package/dist/src/instruction/WebXMouseInstruction.js.map +0 -1
- package/dist/src/instruction/WebXPongInstruction.d.ts +0 -18
- package/dist/src/instruction/WebXPongInstruction.js +0 -23
- package/dist/src/instruction/WebXPongInstruction.js.map +0 -1
- package/dist/src/instruction/WebXQualityInstruction.d.ts +0 -19
- package/dist/src/instruction/WebXQualityInstruction.js +0 -24
- package/dist/src/instruction/WebXQualityInstruction.js.map +0 -1
- package/dist/src/instruction/WebXScreenInstruction.d.ts +0 -12
- package/dist/src/instruction/WebXScreenInstruction.js +0 -20
- package/dist/src/instruction/WebXScreenInstruction.js.map +0 -1
- package/dist/src/instruction/WebXShapeInstruction.d.ts +0 -18
- package/dist/src/instruction/WebXShapeInstruction.js +0 -23
- package/dist/src/instruction/WebXShapeInstruction.js.map +0 -1
- package/dist/src/instruction/WebXWindowsInstruction.d.ts +0 -13
- package/dist/src/instruction/WebXWindowsInstruction.js +0 -21
- package/dist/src/instruction/WebXWindowsInstruction.js.map +0 -1
- package/dist/src/instruction/index.d.ts +0 -15
- package/dist/src/instruction/index.js +0 -32
- package/dist/src/instruction/index.js.map +0 -1
- package/dist/src/message/WebXClipboardMessage.d.ts +0 -19
- package/dist/src/message/WebXClipboardMessage.js +0 -23
- package/dist/src/message/WebXClipboardMessage.js.map +0 -1
- package/dist/src/message/WebXConnectionMessage.d.ts +0 -12
- package/dist/src/message/WebXConnectionMessage.js +0 -20
- package/dist/src/message/WebXConnectionMessage.js.map +0 -1
- package/dist/src/message/WebXCursorImageMessage.d.ts +0 -46
- package/dist/src/message/WebXCursorImageMessage.js +0 -35
- package/dist/src/message/WebXCursorImageMessage.js.map +0 -1
- package/dist/src/message/WebXImageMessage.d.ts +0 -41
- package/dist/src/message/WebXImageMessage.js +0 -33
- package/dist/src/message/WebXImageMessage.js.map +0 -1
- package/dist/src/message/WebXMessage.d.ts +0 -24
- package/dist/src/message/WebXMessage.js +0 -23
- package/dist/src/message/WebXMessage.js.map +0 -1
- package/dist/src/message/WebXMessageType.d.ts +0 -59
- package/dist/src/message/WebXMessageType.js +0 -64
- package/dist/src/message/WebXMessageType.js.map +0 -1
- package/dist/src/message/WebXMouseMessage.d.ts +0 -30
- package/dist/src/message/WebXMouseMessage.js +0 -29
- package/dist/src/message/WebXMouseMessage.js.map +0 -1
- package/dist/src/message/WebXNopMessage.d.ts +0 -10
- package/dist/src/message/WebXNopMessage.js +0 -18
- package/dist/src/message/WebXNopMessage.js.map +0 -1
- package/dist/src/message/WebXPingMessage.d.ts +0 -13
- package/dist/src/message/WebXPingMessage.js +0 -21
- package/dist/src/message/WebXPingMessage.js.map +0 -1
- package/dist/src/message/WebXQualityMessage.d.ts +0 -39
- package/dist/src/message/WebXQualityMessage.js +0 -32
- package/dist/src/message/WebXQualityMessage.js.map +0 -1
- package/dist/src/message/WebXScreenMessage.d.ts +0 -37
- package/dist/src/message/WebXScreenMessage.js +0 -29
- package/dist/src/message/WebXScreenMessage.js.map +0 -1
- package/dist/src/message/WebXShapeMessage.d.ts +0 -31
- package/dist/src/message/WebXShapeMessage.js +0 -29
- package/dist/src/message/WebXShapeMessage.js.map +0 -1
- package/dist/src/message/WebXSubImagesMessage.d.ts +0 -31
- package/dist/src/message/WebXSubImagesMessage.js +0 -29
- package/dist/src/message/WebXSubImagesMessage.js.map +0 -1
- package/dist/src/message/WebXWindowsMessage.d.ts +0 -21
- package/dist/src/message/WebXWindowsMessage.js +0 -25
- package/dist/src/message/WebXWindowsMessage.js.map +0 -1
- package/dist/src/message/index.d.ts +0 -14
- package/dist/src/message/index.js +0 -31
- package/dist/src/message/index.js.map +0 -1
- package/dist/src/tracer/WebXDebugImageMessageHandler.d.ts +0 -48
- package/dist/src/tracer/WebXDebugImageMessageHandler.js +0 -102
- package/dist/src/tracer/WebXDebugImageMessageHandler.js.map +0 -1
- package/dist/src/tracer/WebXHandler.d.ts +0 -14
- package/dist/src/tracer/WebXHandler.js +0 -3
- package/dist/src/tracer/WebXHandler.js.map +0 -1
- package/dist/src/tracer/WebXInstructionHandler.d.ts +0 -21
- package/dist/src/tracer/WebXInstructionHandler.js +0 -13
- package/dist/src/tracer/WebXInstructionHandler.js.map +0 -1
- package/dist/src/tracer/WebXMessageHandler.d.ts +0 -21
- package/dist/src/tracer/WebXMessageHandler.js +0 -13
- package/dist/src/tracer/WebXMessageHandler.js.map +0 -1
- package/dist/src/tracer/WebXStatsHandler.d.ts +0 -23
- package/dist/src/tracer/WebXStatsHandler.js +0 -13
- package/dist/src/tracer/WebXStatsHandler.js.map +0 -1
- package/dist/src/tracer/index.d.ts +0 -5
- package/dist/src/tracer/index.js +0 -22
- package/dist/src/tracer/index.js.map +0 -1
- package/dist/src/transport/WebXBinarySerializer.d.ts +0 -31
- package/dist/src/transport/WebXBinarySerializer.js +0 -63
- package/dist/src/transport/WebXBinarySerializer.js.map +0 -1
- package/dist/src/transport/WebXInstructionBuffer.d.ts +0 -55
- package/dist/src/transport/WebXInstructionBuffer.js +0 -109
- package/dist/src/transport/WebXInstructionBuffer.js.map +0 -1
- package/dist/src/transport/WebXInstructionEncoder.d.ts +0 -181
- package/dist/src/transport/WebXInstructionEncoder.js +0 -294
- package/dist/src/transport/WebXInstructionEncoder.js.map +0 -1
- package/dist/src/transport/WebXMessageBuffer.d.ts +0 -80
- package/dist/src/transport/WebXMessageBuffer.js +0 -104
- package/dist/src/transport/WebXMessageBuffer.js.map +0 -1
- package/dist/src/transport/WebXMessageDecoder.d.ts +0 -108
- package/dist/src/transport/WebXMessageDecoder.js +0 -332
- package/dist/src/transport/WebXMessageDecoder.js.map +0 -1
- package/dist/src/transport/index.d.ts +0 -5
- package/dist/src/transport/index.js +0 -22
- package/dist/src/transport/index.js.map +0 -1
- package/dist/src/tunnel/WebXTunnel.d.ts +0 -93
- package/dist/src/tunnel/WebXTunnel.js +0 -156
- package/dist/src/tunnel/WebXTunnel.js.map +0 -1
- package/dist/src/tunnel/WebXWebSocketTunnel.d.ts +0 -40
- package/dist/src/tunnel/WebXWebSocketTunnel.js +0 -88
- package/dist/src/tunnel/WebXWebSocketTunnel.js.map +0 -1
- package/dist/src/tunnel/index.d.ts +0 -2
- package/dist/src/tunnel/index.js +0 -19
- package/dist/src/tunnel/index.js.map +0 -1
- package/dist/src/utils/WebXColorGenerator.d.ts +0 -24
- package/dist/src/utils/WebXColorGenerator.js +0 -46
- package/dist/src/utils/WebXColorGenerator.js.map +0 -1
- package/dist/src/utils/WebXVersion.d.ts +0 -34
- package/dist/src/utils/WebXVersion.js +0 -25
- package/dist/src/utils/WebXVersion.js.map +0 -1
- package/dist/src/utils/index.d.ts +0 -2
- package/dist/src/utils/index.js +0 -19
- package/dist/src/utils/index.js.map +0 -1
- package/dist/tracer/DemoVisualMessageHandler.d.ts +0 -15
- package/dist/tracer/DemoVisualMessageHandler.js +0 -55
- package/dist/tracer/DemoVisualMessageHandler.js.map +0 -1
- package/dist/tracer/WebXVisualMessageHandler.d.ts +0 -15
- package/dist/tracer/WebXVisualMessageHandler.js +0 -55
- package/dist/tracer/WebXVisualMessageHandler.js.map +0 -1
- package/dist/tunnel/WebXDefaultQoSHandler.d.ts +0 -16
- package/dist/tunnel/WebXDefaultQoSHandler.js +0 -57
- package/dist/tunnel/WebXDefaultQoSHandler.js.map +0 -1
- package/dist/tunnel/WebXQoSHandler.d.ts +0 -6
- package/dist/tunnel/WebXQoSHandler.js +0 -7
- package/dist/tunnel/WebXQoSHandler.js.map +0 -1
- package/dist/tunnel/WebXSocketIOTunnel.d.ts +0 -15
- package/dist/tunnel/WebXSocketIOTunnel.js +0 -41
- package/dist/tunnel/WebXSocketIOTunnel.js.map +0 -1
- package/dist/utils/ColorGenerator.d.ts +0 -24
- package/dist/utils/ColorGenerator.js +0 -46
- package/dist/utils/ColorGenerator.js.map +0 -1
- package/dist/utils/Config.d.ts +0 -4
- package/dist/utils/Config.js +0 -10
- package/dist/utils/Config.js.map +0 -1
- package/dist/utils/WebXAsyncExec.d.ts +0 -5
- package/dist/utils/WebXAsyncExec.js +0 -18
- package/dist/utils/WebXAsyncExec.js.map +0 -1
- package/dist/utils/WebXColourGenerator.d.ts +0 -5
- package/dist/utils/WebXColourGenerator.js +0 -27
- package/dist/utils/WebXColourGenerator.js.map +0 -1
- package/dist/utils/WebXFileSize.d.ts +0 -3
- package/dist/utils/WebXFileSize.js +0 -14
- package/dist/utils/WebXFileSize.js.map +0 -1
package/dist/src/WebXClient.js
DELETED
|
@@ -1,571 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.WebXClient = void 0;
|
|
13
|
-
const instruction_1 = require("./instruction");
|
|
14
|
-
const message_1 = require("./message");
|
|
15
|
-
const display_1 = require("./display");
|
|
16
|
-
const input_1 = require("./input");
|
|
17
|
-
const tracer_1 = require("./tracer");
|
|
18
|
-
const transport_1 = require("./transport");
|
|
19
|
-
const WebXEngine_1 = require("./WebXEngine");
|
|
20
|
-
const { version } = require('../package.json');
|
|
21
|
-
// import * as Guacamole from 'guacamole-common-js';
|
|
22
|
-
const Guacamole = require("../lib/GuacamoleKeyboard");
|
|
23
|
-
class WebXConnectionHandler {
|
|
24
|
-
constructor() {
|
|
25
|
-
this._connected = false;
|
|
26
|
-
this._connectionCallback = () => { };
|
|
27
|
-
this._connectionError = () => { };
|
|
28
|
-
}
|
|
29
|
-
onConnected(timeoutMs) {
|
|
30
|
-
this._timeoutMs = timeoutMs || 10000;
|
|
31
|
-
return new Promise((resolve, reject) => {
|
|
32
|
-
if (this._connected) {
|
|
33
|
-
resolve();
|
|
34
|
-
}
|
|
35
|
-
else {
|
|
36
|
-
this._connectionCallback = () => {
|
|
37
|
-
window.clearTimeout(this._timeout);
|
|
38
|
-
this._timeout = null;
|
|
39
|
-
resolve();
|
|
40
|
-
};
|
|
41
|
-
this._connectionError = () => {
|
|
42
|
-
this._timeout = null;
|
|
43
|
-
reject(new Error("Connection timed out"));
|
|
44
|
-
};
|
|
45
|
-
this._createTimer();
|
|
46
|
-
}
|
|
47
|
-
});
|
|
48
|
-
}
|
|
49
|
-
setConnected() {
|
|
50
|
-
this._connected = true;
|
|
51
|
-
this._connectionCallback();
|
|
52
|
-
}
|
|
53
|
-
resetTimer() {
|
|
54
|
-
if (this._timeout) {
|
|
55
|
-
window.clearTimeout(this._timeout);
|
|
56
|
-
this._timeout = null;
|
|
57
|
-
this._createTimer();
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
dispose() {
|
|
61
|
-
if (this._timeout) {
|
|
62
|
-
window.clearTimeout(this._timeout);
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
_createTimer() {
|
|
66
|
-
this._timeout = window.setTimeout(() => {
|
|
67
|
-
this._connectionError();
|
|
68
|
-
}, this._timeoutMs);
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
/**
|
|
72
|
-
* The main client class for interacting with the WebX Engine.
|
|
73
|
-
*
|
|
74
|
-
* This class provides methods to connect to the WebX Engine, manage the display,
|
|
75
|
-
* handle user input (mouse and keyboard), and send/receive instructions and messages.
|
|
76
|
-
*/
|
|
77
|
-
class WebXClient {
|
|
78
|
-
/**
|
|
79
|
-
* Gets the WebXTunnel instance used for communication with the WebX Engine.
|
|
80
|
-
*/
|
|
81
|
-
get tunnel() {
|
|
82
|
-
return this._tunnel;
|
|
83
|
-
}
|
|
84
|
-
/**
|
|
85
|
-
* Gets the map of registered tracer handlers.
|
|
86
|
-
*/
|
|
87
|
-
get tracers() {
|
|
88
|
-
return this._tracers;
|
|
89
|
-
}
|
|
90
|
-
/**
|
|
91
|
-
* Gets the WebXDisplay instance used for rendering the display.
|
|
92
|
-
*/
|
|
93
|
-
get display() {
|
|
94
|
-
return this._display;
|
|
95
|
-
}
|
|
96
|
-
/**
|
|
97
|
-
* Gets the WebXMouse instance used for handling mouse input.
|
|
98
|
-
*/
|
|
99
|
-
get mouse() {
|
|
100
|
-
return this._mouse;
|
|
101
|
-
}
|
|
102
|
-
/**
|
|
103
|
-
* Gets the WebXKeyboard instance used for handling keyboard input.
|
|
104
|
-
*/
|
|
105
|
-
get keyboard() {
|
|
106
|
-
return this._keyboard;
|
|
107
|
-
}
|
|
108
|
-
/**
|
|
109
|
-
* Handles notification that clipboard data that has been received from the server.
|
|
110
|
-
* @param handler the handler when clipboard data is received from the server
|
|
111
|
-
*/
|
|
112
|
-
set clipboardHandler(handler) {
|
|
113
|
-
this._clipboardHandler = handler;
|
|
114
|
-
}
|
|
115
|
-
/**
|
|
116
|
-
* Gets the max quality index of the display.
|
|
117
|
-
*/
|
|
118
|
-
get maxQualityIndex() {
|
|
119
|
-
return this._maxQualityIndex;
|
|
120
|
-
}
|
|
121
|
-
/**
|
|
122
|
-
* Creates a new instance of the WebXClient.
|
|
123
|
-
*
|
|
124
|
-
* @param _tunnel The WebXTunnel instance used for communication with the WebX Engine.
|
|
125
|
-
*/
|
|
126
|
-
constructor(_tunnel) {
|
|
127
|
-
this._tunnel = _tunnel;
|
|
128
|
-
this._tracers = new Map();
|
|
129
|
-
this._clipboardHandler = (clipboardContent) => { };
|
|
130
|
-
this._connectionHandler = new WebXConnectionHandler();
|
|
131
|
-
this._maxQualityIndex = 10;
|
|
132
|
-
this._textureFactory = new display_1.WebXTextureFactory(this._tunnel);
|
|
133
|
-
this._cursorFactory = new display_1.WebXCursorFactory(this._tunnel);
|
|
134
|
-
}
|
|
135
|
-
/**
|
|
136
|
-
* Connects to the WebX Engine and initializes the communication tunnel.
|
|
137
|
-
*
|
|
138
|
-
* @param onCloseCallback Callback function to execute when the connection is closed.
|
|
139
|
-
* @param data Additional data to send during the connection process.
|
|
140
|
-
*/
|
|
141
|
-
connect(onCloseCallback, data) {
|
|
142
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
143
|
-
this._onCloseCallback = onCloseCallback;
|
|
144
|
-
this._tunnel.handleMessage = this._handleMessage.bind(this);
|
|
145
|
-
this._tunnel.handleReceivedBytes = this._handleReceivedBytes.bind(this);
|
|
146
|
-
this._tunnel.handleSentBytes = this._handleSentBytes.bind(this);
|
|
147
|
-
this._tunnel.onClosed = this._onTunnelClosed.bind(this);
|
|
148
|
-
yield this._tunnel.connect(Object.assign(Object.assign({}, data), { 'client-version': version }), new transport_1.WebXBinarySerializer(this._textureFactory));
|
|
149
|
-
});
|
|
150
|
-
}
|
|
151
|
-
/**
|
|
152
|
-
* Disconnects from the WebX Engine and cleans up resources.
|
|
153
|
-
*/
|
|
154
|
-
disconnect() {
|
|
155
|
-
this._tunnel.disconnect();
|
|
156
|
-
}
|
|
157
|
-
/**
|
|
158
|
-
* Initializes the WebX display and input devices.
|
|
159
|
-
*
|
|
160
|
-
* @param containerElement The HTML element to render the display.
|
|
161
|
-
* @param config Optional configuration for the WebX client.
|
|
162
|
-
* @returns A promise that resolves to the initialized WebXDisplay instance.
|
|
163
|
-
*/
|
|
164
|
-
initialise(containerElement, config) {
|
|
165
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
166
|
-
try {
|
|
167
|
-
config = Object.assign({ useDefaultMouseAdapter: true, useDefaultKeyboardAdapter: true, waitForConnectionWithTimeout: 10000 }, config);
|
|
168
|
-
const { useDefaultMouseAdapter, useDefaultKeyboardAdapter, waitForConnectionWithTimeout } = config;
|
|
169
|
-
// Wait for connection (requires webx-relay >= 1.2.0)
|
|
170
|
-
if (waitForConnectionWithTimeout > 0) {
|
|
171
|
-
yield this._connectionHandler.onConnected(waitForConnectionWithTimeout);
|
|
172
|
-
}
|
|
173
|
-
// Request 1. : Get screen size
|
|
174
|
-
const screenMessage = yield this._getScreenMessage();
|
|
175
|
-
const { width, height } = screenMessage.screenSize;
|
|
176
|
-
this._maxQualityIndex = screenMessage.maxQualityIndex;
|
|
177
|
-
WebXEngine_1.WebXEngine.version = screenMessage.engineVersion;
|
|
178
|
-
// Initialise the display
|
|
179
|
-
this._display = this.createDisplay(containerElement, width, height);
|
|
180
|
-
// Request 2. : Get visible windows
|
|
181
|
-
// Sec request for visible windows
|
|
182
|
-
const windowsMessage = yield this._sendRequest(new instruction_1.WebXWindowsInstruction());
|
|
183
|
-
// Requests 3. - N : Initialise all windows and wait for them to be visible (requests for window images)
|
|
184
|
-
yield this._display.updateWindows(windowsMessage.windows);
|
|
185
|
-
this._display.showScreen();
|
|
186
|
-
// Create mouse and add listeners
|
|
187
|
-
if (useDefaultMouseAdapter) {
|
|
188
|
-
this._mouse = this.createMouse(containerElement);
|
|
189
|
-
this._addMouseListeners();
|
|
190
|
-
}
|
|
191
|
-
// Create keyboard and add listeners
|
|
192
|
-
if (useDefaultKeyboardAdapter) {
|
|
193
|
-
this._keyboard = this.createKeyboard(document.body);
|
|
194
|
-
this._addKeyboardListeners();
|
|
195
|
-
}
|
|
196
|
-
return this._display;
|
|
197
|
-
}
|
|
198
|
-
catch (error) {
|
|
199
|
-
this._dispose();
|
|
200
|
-
throw new Error(`Failed to initialise display: ${error.message}`);
|
|
201
|
-
}
|
|
202
|
-
});
|
|
203
|
-
}
|
|
204
|
-
/**
|
|
205
|
-
* Creates a new WebXDisplay instance.
|
|
206
|
-
*
|
|
207
|
-
* @param containerElement The HTML element to render the display.
|
|
208
|
-
* @param screenWidth The width of the screen.
|
|
209
|
-
* @param screenHeight The height of the screen.
|
|
210
|
-
* @returns The created WebXDisplay instance.
|
|
211
|
-
*/
|
|
212
|
-
createDisplay(containerElement, screenWidth, screenHeight) {
|
|
213
|
-
return new display_1.WebXDisplay(containerElement, screenWidth, screenHeight, this._textureFactory, this._cursorFactory);
|
|
214
|
-
}
|
|
215
|
-
/**
|
|
216
|
-
* Create a new mouse and bind it to an element
|
|
217
|
-
* @param element the element to attach the mouse to
|
|
218
|
-
*/
|
|
219
|
-
createMouse(element) {
|
|
220
|
-
return new input_1.WebXMouse(element);
|
|
221
|
-
}
|
|
222
|
-
/**
|
|
223
|
-
* Create a new keyboard and bind it to an element
|
|
224
|
-
* @param element the element to attach the keyboard to
|
|
225
|
-
*/
|
|
226
|
-
createKeyboard(element) {
|
|
227
|
-
return new Guacamole.Keyboard(element);
|
|
228
|
-
}
|
|
229
|
-
/**
|
|
230
|
-
* Sends a mouse event to the WebX Engine.
|
|
231
|
-
*
|
|
232
|
-
* @param mouseState The state of the mouse to send in the event.
|
|
233
|
-
*/
|
|
234
|
-
sendMouse(mouseState) {
|
|
235
|
-
this._display.setMousePosition(mouseState.x, mouseState.y);
|
|
236
|
-
this._sendInstruction(new instruction_1.WebXMouseInstruction(mouseState.x, mouseState.y, mouseState.getButtonMask()));
|
|
237
|
-
}
|
|
238
|
-
/**
|
|
239
|
-
* Sends a key event to the WebX Engine.
|
|
240
|
-
*
|
|
241
|
-
* @param key The key code to send.
|
|
242
|
-
* @param pressed Whether the key is pressed (true) or released (false).
|
|
243
|
-
*/
|
|
244
|
-
sendKeyEvent(key, pressed) {
|
|
245
|
-
this._sendInstruction(new instruction_1.WebXKeyboardInstruction(key, pressed));
|
|
246
|
-
}
|
|
247
|
-
/**
|
|
248
|
-
* Sends a key down event
|
|
249
|
-
* @param key {number} the key to send
|
|
250
|
-
*/
|
|
251
|
-
sendKeyDown(key) {
|
|
252
|
-
this.sendKeyEvent(key, true);
|
|
253
|
-
}
|
|
254
|
-
/**
|
|
255
|
-
* Sends a key up event
|
|
256
|
-
* @param key {number} the key to send
|
|
257
|
-
*/
|
|
258
|
-
sendKeyUp(key) {
|
|
259
|
-
this.sendKeyEvent(key, false);
|
|
260
|
-
}
|
|
261
|
-
/**
|
|
262
|
-
* Sends the clipboard content to the WebX Engine.
|
|
263
|
-
* @param clipboardContent the current clipboard content
|
|
264
|
-
*/
|
|
265
|
-
sendClipboardContent(clipboardContent) {
|
|
266
|
-
this._sendInstruction(new instruction_1.WebXClipboardInstruction(clipboardContent));
|
|
267
|
-
}
|
|
268
|
-
/**
|
|
269
|
-
* Registers a new tracer handler.
|
|
270
|
-
*
|
|
271
|
-
* @param name The unique name of the tracer.
|
|
272
|
-
* @param handler The tracer handler instance.
|
|
273
|
-
*/
|
|
274
|
-
registerTracer(name, handler) {
|
|
275
|
-
this._tracers.set(name, handler);
|
|
276
|
-
}
|
|
277
|
-
createDebugImageMessageHandler() {
|
|
278
|
-
if (this._display) {
|
|
279
|
-
return new tracer_1.WebXDebugImageMessageHandler(this._display);
|
|
280
|
-
}
|
|
281
|
-
console.log('Cannot create DebugImageMessageHandler as display is null');
|
|
282
|
-
return null;
|
|
283
|
-
}
|
|
284
|
-
/**
|
|
285
|
-
* Resets the input devices (mouse and keyboard).
|
|
286
|
-
*/
|
|
287
|
-
resetInputs() {
|
|
288
|
-
if (this._mouse) {
|
|
289
|
-
this._mouse.reset();
|
|
290
|
-
}
|
|
291
|
-
if (this._keyboard) {
|
|
292
|
-
this._keyboard.reset();
|
|
293
|
-
}
|
|
294
|
-
}
|
|
295
|
-
/**
|
|
296
|
-
* Resizes the WebX display to fit the container.
|
|
297
|
-
*/
|
|
298
|
-
resizeDisplay() {
|
|
299
|
-
if (this._display) {
|
|
300
|
-
this._display.resize();
|
|
301
|
-
}
|
|
302
|
-
}
|
|
303
|
-
/**
|
|
304
|
-
* Unregisters a tracer handler.
|
|
305
|
-
*
|
|
306
|
-
* @param name The name of the tracer to unregister.
|
|
307
|
-
*/
|
|
308
|
-
unregisterTracer(name) {
|
|
309
|
-
const tracer = this._tracers.get(name);
|
|
310
|
-
if (tracer) {
|
|
311
|
-
// perform cleanup
|
|
312
|
-
tracer.destroy();
|
|
313
|
-
this._tracers.delete(name);
|
|
314
|
-
}
|
|
315
|
-
}
|
|
316
|
-
/**
|
|
317
|
-
* Sets the quality index for the WebX Engine.
|
|
318
|
-
*
|
|
319
|
-
* @param qualityIndex The quality index to set.
|
|
320
|
-
*/
|
|
321
|
-
setQualityIndex(qualityIndex) {
|
|
322
|
-
const qualityInstruction = new instruction_1.WebXQualityInstruction(qualityIndex);
|
|
323
|
-
this._sendInstruction(qualityInstruction);
|
|
324
|
-
}
|
|
325
|
-
/**
|
|
326
|
-
* Creates a screenshot of the current display.
|
|
327
|
-
* @param type The type of the screenshot (e.g., 'image/png').
|
|
328
|
-
* @param quality The quality of the screenshot (0 to 1).
|
|
329
|
-
*
|
|
330
|
-
* @returns A promise that resolves to image data in Blob form.
|
|
331
|
-
*/
|
|
332
|
-
createScreenshot(type, quality) {
|
|
333
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
334
|
-
return new Promise((resolve, reject) => {
|
|
335
|
-
try {
|
|
336
|
-
this.display.render();
|
|
337
|
-
this.display.renderer.domElement.toBlob((blob) => {
|
|
338
|
-
resolve(blob);
|
|
339
|
-
}, type, quality);
|
|
340
|
-
}
|
|
341
|
-
catch (error) {
|
|
342
|
-
reject(error);
|
|
343
|
-
}
|
|
344
|
-
});
|
|
345
|
-
});
|
|
346
|
-
}
|
|
347
|
-
/**
|
|
348
|
-
* Retrieves the screen message from the WebX Engine.
|
|
349
|
-
*
|
|
350
|
-
* This method attempts to get the screen message, retrying up to 3 times
|
|
351
|
-
* if the initial attempts fail.
|
|
352
|
-
*
|
|
353
|
-
* @returns A promise that resolves to the WebXScreenMessage.
|
|
354
|
-
*/
|
|
355
|
-
_getScreenMessage() {
|
|
356
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
357
|
-
// Perform retries on the first instruction (client can sometimes be activated before the server connection$
|
|
358
|
-
// has been fully made (difficult to judge when the webx-engine subscribes to the webx-relay instruction publisher
|
|
359
|
-
let retry = 0;
|
|
360
|
-
while (retry < 3) {
|
|
361
|
-
try {
|
|
362
|
-
return yield this._sendRequest(new instruction_1.WebXScreenInstruction(), 5000);
|
|
363
|
-
}
|
|
364
|
-
catch (error) {
|
|
365
|
-
retry++;
|
|
366
|
-
console.log(`Failed to initialise screen size at attempt ${retry}/3...`);
|
|
367
|
-
if (retry == 3 || !this._tunnel.isConnected()) {
|
|
368
|
-
throw new Error(`unable to get screen size: ${error.message}`);
|
|
369
|
-
}
|
|
370
|
-
}
|
|
371
|
-
}
|
|
372
|
-
});
|
|
373
|
-
}
|
|
374
|
-
/**
|
|
375
|
-
* Sends an instruction to the WebX Engine.
|
|
376
|
-
*
|
|
377
|
-
* This method sends the provided instruction to the WebX Engine if the tunnel
|
|
378
|
-
* is connected.
|
|
379
|
-
*
|
|
380
|
-
* @param command The instruction to send.
|
|
381
|
-
*/
|
|
382
|
-
_sendInstruction(command) {
|
|
383
|
-
if (this._tunnel.isConnected()) {
|
|
384
|
-
this._tunnel.sendInstruction(command);
|
|
385
|
-
this._tracers.forEach((value) => {
|
|
386
|
-
if (value instanceof tracer_1.WebXInstructionHandler) {
|
|
387
|
-
value.handle(command);
|
|
388
|
-
}
|
|
389
|
-
});
|
|
390
|
-
}
|
|
391
|
-
}
|
|
392
|
-
/**
|
|
393
|
-
* Sends a request to the WebX Engine and returns the response.
|
|
394
|
-
*
|
|
395
|
-
* This method sends the provided request to the WebX Engine and returns a promise
|
|
396
|
-
* that resolves to the response message.
|
|
397
|
-
*
|
|
398
|
-
* @param command The request to send.
|
|
399
|
-
* @param timeout Optional timeout for the request.
|
|
400
|
-
* @returns A promise that resolves to the WebXMessage.
|
|
401
|
-
*/
|
|
402
|
-
_sendRequest(command, timeout) {
|
|
403
|
-
if (this._tunnel.isConnected()) {
|
|
404
|
-
return this._tunnel.sendRequest(command, timeout);
|
|
405
|
-
}
|
|
406
|
-
}
|
|
407
|
-
/**
|
|
408
|
-
* Handles incoming messages from the WebX Engine.
|
|
409
|
-
*
|
|
410
|
-
* This method processes messages received from the WebX Engine and takes
|
|
411
|
-
* appropriate actions based on the message type.
|
|
412
|
-
*
|
|
413
|
-
* @param message The received message.
|
|
414
|
-
*/
|
|
415
|
-
_handleMessage(message) {
|
|
416
|
-
if (message.type === message_1.WebXMessageType.CONNECTION) {
|
|
417
|
-
this._connectionHandler.setConnected();
|
|
418
|
-
return;
|
|
419
|
-
}
|
|
420
|
-
else if (message.type === message_1.WebXMessageType.NOP) {
|
|
421
|
-
this._connectionHandler.resetTimer();
|
|
422
|
-
}
|
|
423
|
-
if (!this._display) {
|
|
424
|
-
return;
|
|
425
|
-
}
|
|
426
|
-
if (message.type === message_1.WebXMessageType.WINDOWS) {
|
|
427
|
-
const windows = message.windows;
|
|
428
|
-
this._display.updateWindows(windows);
|
|
429
|
-
}
|
|
430
|
-
else if (message.type === message_1.WebXMessageType.IMAGE) {
|
|
431
|
-
const imageMessage = message;
|
|
432
|
-
// console.log(`Updating image ${windowId} [${texture.image.width}, ${texture.image.height}]\n`);
|
|
433
|
-
this._display.updateImage(imageMessage.windowId, imageMessage.depth, imageMessage.colorMap, imageMessage.alphaMap);
|
|
434
|
-
}
|
|
435
|
-
else if (message.type === message_1.WebXMessageType.SUBIMAGES) {
|
|
436
|
-
const subImagesMessage = message;
|
|
437
|
-
// console.log(`Updating sub images ${windowId}\n`);
|
|
438
|
-
this._display.updateSubImages(subImagesMessage.windowId, subImagesMessage.subImages);
|
|
439
|
-
}
|
|
440
|
-
else if (message.type === message_1.WebXMessageType.SHAPE) {
|
|
441
|
-
const shapeMessage = message;
|
|
442
|
-
// console.log(`Updating shape for ${shapeMessage.windowId}\n`);
|
|
443
|
-
this._display.updateShape(shapeMessage.windowId, shapeMessage.stencilMap);
|
|
444
|
-
}
|
|
445
|
-
else if (message.type === message_1.WebXMessageType.MOUSE) {
|
|
446
|
-
const mouseMessage = message;
|
|
447
|
-
if (mouseMessage.x > 0 && mouseMessage.y > 0) {
|
|
448
|
-
this._display.setMousePosition(mouseMessage.x, mouseMessage.y);
|
|
449
|
-
}
|
|
450
|
-
this._display.setMouseCursor(mouseMessage.cursorId);
|
|
451
|
-
}
|
|
452
|
-
else if (message.type === message_1.WebXMessageType.CLIPBOARD) {
|
|
453
|
-
const clipboardMessage = message;
|
|
454
|
-
this._clipboardHandler(clipboardMessage.clipboardContent);
|
|
455
|
-
}
|
|
456
|
-
this._tracers.forEach((value) => {
|
|
457
|
-
if (value instanceof tracer_1.WebXMessageHandler) {
|
|
458
|
-
value.handle(message);
|
|
459
|
-
}
|
|
460
|
-
});
|
|
461
|
-
}
|
|
462
|
-
/**
|
|
463
|
-
* Handles received bytes from the WebX Engine.
|
|
464
|
-
*
|
|
465
|
-
* This method processes the received bytes and updates the tracers with the
|
|
466
|
-
* received data.
|
|
467
|
-
*
|
|
468
|
-
* @param data The received data as an ArrayBuffer.
|
|
469
|
-
*/
|
|
470
|
-
_handleReceivedBytes(data) {
|
|
471
|
-
this._tracers.forEach((value) => {
|
|
472
|
-
if (value instanceof tracer_1.WebXStatsHandler) {
|
|
473
|
-
value.handle({ received: data.byteLength, sent: 0 });
|
|
474
|
-
}
|
|
475
|
-
});
|
|
476
|
-
}
|
|
477
|
-
/**
|
|
478
|
-
* Handles sent bytes to the WebX Engine.
|
|
479
|
-
*
|
|
480
|
-
* This method processes the sent bytes and updates the tracers with the
|
|
481
|
-
* sent data.
|
|
482
|
-
*
|
|
483
|
-
* @param data The sent data as an ArrayBuffer.
|
|
484
|
-
*/
|
|
485
|
-
_handleSentBytes(data) {
|
|
486
|
-
this._tracers.forEach((value) => {
|
|
487
|
-
if (value instanceof tracer_1.WebXStatsHandler) {
|
|
488
|
-
value.handle({ received: 0, sent: data.byteLength });
|
|
489
|
-
}
|
|
490
|
-
});
|
|
491
|
-
}
|
|
492
|
-
/**
|
|
493
|
-
* Handles the quality of the connection to the WebX Engine.
|
|
494
|
-
*
|
|
495
|
-
* This method processes the quality data and updates the tracers with the
|
|
496
|
-
* quality information.
|
|
497
|
-
*
|
|
498
|
-
* @param data The quality data as an ArrayBuffer.
|
|
499
|
-
*/
|
|
500
|
-
_handleQuality(data) {
|
|
501
|
-
this._tracers.forEach((value) => {
|
|
502
|
-
if (value instanceof tracer_1.WebXStatsHandler) {
|
|
503
|
-
value.handle({ received: 0, sent: data.byteLength });
|
|
504
|
-
}
|
|
505
|
-
});
|
|
506
|
-
}
|
|
507
|
-
/**
|
|
508
|
-
* Handles the tunnel closed event.
|
|
509
|
-
*
|
|
510
|
-
* This method performs cleanup and executes the onCloseCallback when the
|
|
511
|
-
* tunnel is closed.
|
|
512
|
-
*/
|
|
513
|
-
_onTunnelClosed() {
|
|
514
|
-
this._dispose();
|
|
515
|
-
if (this._onCloseCallback) {
|
|
516
|
-
this._onCloseCallback();
|
|
517
|
-
}
|
|
518
|
-
}
|
|
519
|
-
/**
|
|
520
|
-
* Disposes of the WebX client resources.
|
|
521
|
-
*
|
|
522
|
-
* This method cleans up the display, mouse, and keyboard resources.
|
|
523
|
-
*/
|
|
524
|
-
_dispose() {
|
|
525
|
-
this._connectionHandler.dispose();
|
|
526
|
-
if (this._display) {
|
|
527
|
-
this._display.dispose();
|
|
528
|
-
}
|
|
529
|
-
if (this._mouse) {
|
|
530
|
-
this._mouse.dispose();
|
|
531
|
-
}
|
|
532
|
-
if (this._keyboard) {
|
|
533
|
-
this._keyboard.dispose();
|
|
534
|
-
}
|
|
535
|
-
}
|
|
536
|
-
/**
|
|
537
|
-
* Adds mouse event listeners to the WebX client.
|
|
538
|
-
*
|
|
539
|
-
* This method sets up the mouse event listeners for mouse move, mouse out,
|
|
540
|
-
* mouse down, and mouse up events.
|
|
541
|
-
*/
|
|
542
|
-
_addMouseListeners() {
|
|
543
|
-
this._mouse.onMouseMove = this._mouse.onMouseOut = (mouseState) => {
|
|
544
|
-
const scale = this._display.scale;
|
|
545
|
-
mouseState.x = mouseState.x / scale;
|
|
546
|
-
mouseState.y = mouseState.y / scale;
|
|
547
|
-
this.sendMouse(mouseState);
|
|
548
|
-
};
|
|
549
|
-
this._mouse.onMouseDown = this._mouse.onMouseUp = (mouseState) => {
|
|
550
|
-
const scale = this._display.scale;
|
|
551
|
-
mouseState.x = mouseState.x / scale;
|
|
552
|
-
mouseState.y = mouseState.y / scale;
|
|
553
|
-
this.sendMouse(mouseState);
|
|
554
|
-
};
|
|
555
|
-
}
|
|
556
|
-
/**
|
|
557
|
-
* Adds keyboard event listeners to the WebX client.
|
|
558
|
-
*
|
|
559
|
-
* This method sets up the keyboard event listeners for key down and key up events.
|
|
560
|
-
*/
|
|
561
|
-
_addKeyboardListeners() {
|
|
562
|
-
this._keyboard.onkeydown = key => {
|
|
563
|
-
this.sendKeyDown(key);
|
|
564
|
-
};
|
|
565
|
-
this._keyboard.onkeyup = key => {
|
|
566
|
-
this.sendKeyUp(key);
|
|
567
|
-
};
|
|
568
|
-
}
|
|
569
|
-
}
|
|
570
|
-
exports.WebXClient = WebXClient;
|
|
571
|
-
//# sourceMappingURL=WebXClient.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"WebXClient.js","sourceRoot":"","sources":["../../src/WebXClient.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,+CAQuB;AACvB,uCAUmB;AACnB,uCAA6E;AAC7E,mCAAkD;AAClD,qCAMkB;AAClB,2CAAiD;AAEjD,6CAAwC;AACxC,MAAM,EAAC,OAAO,EAAC,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC;AAC7C,oDAAoD;AACpD,sDAAsD;AAEtD,MAAM,qBAAqB;IAA3B;QACU,eAAU,GAAG,KAAK,CAAC;QAGnB,wBAAmB,GAAe,GAAG,EAAE,GAAE,CAAC,CAAC;QAC3C,qBAAgB,GAAe,GAAG,EAAE,GAAE,CAAC,CAAC;IAmDlD,CAAC;IAjDQ,WAAW,CAAC,SAAkB;QACnC,IAAI,CAAC,UAAU,GAAG,SAAS,IAAI,KAAK,CAAC;QAErC,OAAO,IAAI,OAAO,CAAO,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;YAC3C,I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 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"WebXEngine.js","sourceRoot":"","sources":["../../src/WebXEngine.ts"],"names":[],"mappings":";;;AAEA,MAAa,UAAU;CAItB;AAJD,gCAIC"}
|