@illgrenoble/webx-client 1.8.1 → 1.9.0
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/README.md +1 -1
- package/dist/WebXClient.d.ts +0 -1
- package/dist/WebXClient.js +8 -3
- package/dist/WebXClient.js.map +1 -1
- package/dist/WebXEngine.d.ts +4 -0
- package/dist/WebXEngine.js +7 -0
- package/dist/WebXEngine.js.map +1 -0
- package/dist/display/WebXCursor.d.ts +1 -0
- package/dist/display/WebXCursor.js +9 -0
- package/dist/display/WebXCursor.js.map +1 -1
- package/dist/display/WebXDisplay.d.ts +18 -0
- package/dist/display/WebXDisplay.js +47 -4
- package/dist/display/WebXDisplay.js.map +1 -1
- package/dist/display/WebXMaterial.d.ts +14 -0
- package/dist/display/WebXMaterial.js +140 -0
- package/dist/display/WebXMaterial.js.map +1 -0
- package/dist/display/WebXMaterialProvider.d.ts +8 -0
- package/dist/display/WebXMaterialProvider.js +71 -0
- package/dist/display/WebXMaterialProvider.js.map +1 -0
- package/dist/display/WebXTextureFactory.d.ts +10 -0
- package/dist/display/WebXTextureFactory.js +21 -0
- package/dist/display/WebXTextureFactory.js.map +1 -1
- package/dist/display/WebXWindow.d.ts +32 -0
- package/dist/display/WebXWindow.js +84 -6
- package/dist/display/WebXWindow.js.map +1 -1
- package/dist/display/WebXWindowProperties.d.ts +5 -0
- package/dist/display/WebXWindowProperties.js +1 -0
- package/dist/display/WebXWindowProperties.js.map +1 -1
- package/dist/input/GuacamoleKeyboard.js +1532 -0
- package/dist/input/WebXKeyboard.d.ts +10 -232
- package/dist/input/WebXKeyboard.js +31 -594
- package/dist/input/WebXKeyboard.js.map +1 -1
- package/dist/input/WebXNewKeyboard.d.ts +62 -0
- package/dist/input/WebXNewKeyboard.js +94 -0
- package/dist/input/WebXNewKeyboard.js.map +1 -0
- package/dist/input/index.d.ts +0 -1
- package/dist/input/index.js +0 -1
- package/dist/input/index.js.map +1 -1
- package/dist/input/keyboard/WebXKeyboardUtils.js +1 -2
- package/dist/input/keyboard/WebXKeyboardUtils.js.map +1 -1
- package/dist/instruction/WebXInstructionType.d.ts +5 -1
- package/dist/instruction/WebXInstructionType.js +6 -0
- package/dist/instruction/WebXInstructionType.js.map +1 -1
- package/dist/instruction/WebXShapeInstruction.d.ts +18 -0
- package/dist/instruction/WebXShapeInstruction.js +23 -0
- package/dist/instruction/WebXShapeInstruction.js.map +1 -0
- package/dist/instruction/index.d.ts +1 -0
- package/dist/instruction/index.js +1 -0
- package/dist/instruction/index.js.map +1 -1
- package/dist/lib/GuacamoleKeyboard.js +1290 -0
- package/dist/lib/GuacamoleKeyboard.js.map +1 -0
- package/dist/message/WebXMessageType.d.ts +5 -1
- package/dist/message/WebXMessageType.js +4 -0
- package/dist/message/WebXMessageType.js.map +1 -1
- package/dist/message/WebXShapeMessage.d.ts +31 -0
- package/dist/message/WebXShapeMessage.js +29 -0
- package/dist/message/WebXShapeMessage.js.map +1 -0
- package/dist/message/index.d.ts +1 -0
- package/dist/message/index.js +1 -0
- package/dist/message/index.js.map +1 -1
- package/dist/src/WebXClient.d.ts +261 -0
- package/dist/src/WebXClient.js +571 -0
- package/dist/src/WebXClient.js.map +1 -0
- package/dist/src/WebXEngine.d.ts +4 -0
- package/dist/src/WebXEngine.js +7 -0
- package/dist/src/WebXEngine.js.map +1 -0
- package/dist/src/display/WebXCursor.d.ts +88 -0
- package/dist/src/display/WebXCursor.js +150 -0
- package/dist/src/display/WebXCursor.js.map +1 -0
- package/dist/src/display/WebXCursorFactory.d.ts +36 -0
- package/dist/src/display/WebXCursorFactory.js +59 -0
- package/dist/src/display/WebXCursorFactory.js.map +1 -0
- package/dist/src/display/WebXDisplay.d.ts +226 -0
- package/dist/src/display/WebXDisplay.js +424 -0
- package/dist/src/display/WebXDisplay.js.map +1 -0
- package/dist/src/display/WebXMaterial.d.ts +14 -0
- package/dist/src/display/WebXMaterial.js +140 -0
- package/dist/src/display/WebXMaterial.js.map +1 -0
- package/dist/src/display/WebXSubImage.d.ts +50 -0
- package/dist/src/display/WebXSubImage.js +26 -0
- package/dist/src/display/WebXSubImage.js.map +1 -0
- package/dist/src/display/WebXTextureFactory.d.ts +54 -0
- package/dist/src/display/WebXTextureFactory.js +160 -0
- package/dist/src/display/WebXTextureFactory.js.map +1 -0
- package/dist/src/display/WebXWindow.d.ts +241 -0
- package/dist/src/display/WebXWindow.js +438 -0
- package/dist/src/display/WebXWindow.js.map +1 -0
- package/dist/src/display/WebXWindowProperties.d.ts +44 -0
- package/dist/src/display/WebXWindowProperties.js +25 -0
- package/dist/src/display/WebXWindowProperties.js.map +1 -0
- package/dist/src/display/index.d.ts +7 -0
- package/dist/src/display/index.js +24 -0
- package/dist/src/display/index.js.map +1 -0
- package/dist/src/index.d.ts +7 -0
- package/dist/src/index.js +24 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/input/WebXKeyboard.d.ts +265 -0
- package/dist/src/input/WebXKeyboard.js +632 -0
- package/dist/src/input/WebXKeyboard.js.map +1 -0
- package/dist/src/input/WebXMouse.d.ts +125 -0
- package/dist/src/input/WebXMouse.js +231 -0
- package/dist/src/input/WebXMouse.js.map +1 -0
- package/dist/src/input/index.d.ts +4 -0
- package/dist/src/input/index.js +21 -0
- package/dist/src/input/index.js.map +1 -0
- package/dist/src/input/keyboard/WebXKeyEvent.d.ts +79 -0
- package/dist/src/input/keyboard/WebXKeyEvent.js +324 -0
- package/dist/src/input/keyboard/WebXKeyEvent.js.map +1 -0
- package/dist/src/input/keyboard/WebXKeyPressEvent.d.ts +30 -0
- package/dist/src/input/keyboard/WebXKeyPressEvent.js +44 -0
- package/dist/src/input/keyboard/WebXKeyPressEvent.js.map +1 -0
- package/dist/src/input/keyboard/WebXKeyUpEvent.d.ts +33 -0
- package/dist/src/input/keyboard/WebXKeyUpEvent.js +31 -0
- package/dist/src/input/keyboard/WebXKeyUpEvent.js.map +1 -0
- package/dist/src/input/keyboard/WebXKeyboardModifierState.d.ts +108 -0
- package/dist/src/input/keyboard/WebXKeyboardModifierState.js +148 -0
- package/dist/src/input/keyboard/WebXKeyboardModifierState.js.map +1 -0
- package/dist/src/input/keyboard/WebXKeyboardUtils.d.ts +25 -0
- package/dist/src/input/keyboard/WebXKeyboardUtils.js +63 -0
- package/dist/src/input/keyboard/WebXKeyboardUtils.js.map +1 -0
- package/dist/src/input/keyboard/WebXKeydownEvent.d.ts +46 -0
- package/dist/src/input/keyboard/WebXKeydownEvent.js +66 -0
- package/dist/src/input/keyboard/WebXKeydownEvent.js.map +1 -0
- package/dist/src/input/keyboard/index.d.ts +6 -0
- package/dist/src/input/keyboard/index.js +23 -0
- package/dist/src/input/keyboard/index.js.map +1 -0
- package/dist/src/input/mouse/WebXMouseState.d.ts +190 -0
- package/dist/src/input/mouse/WebXMouseState.js +217 -0
- package/dist/src/input/mouse/WebXMouseState.js.map +1 -0
- package/dist/src/input/mouse/index.d.ts +1 -0
- package/dist/src/input/mouse/index.js +18 -0
- package/dist/src/input/mouse/index.js.map +1 -0
- package/dist/src/instruction/WebXClipboardInstruction.d.ts +18 -0
- package/dist/src/instruction/WebXClipboardInstruction.js +23 -0
- package/dist/src/instruction/WebXClipboardInstruction.js.map +1 -0
- package/dist/src/instruction/WebXConnectInstruction.d.ts +19 -0
- package/dist/src/instruction/WebXConnectInstruction.js +24 -0
- package/dist/src/instruction/WebXConnectInstruction.js.map +1 -0
- package/dist/src/instruction/WebXCursorImageInstruction.d.ts +18 -0
- package/dist/src/instruction/WebXCursorImageInstruction.js +23 -0
- package/dist/src/instruction/WebXCursorImageInstruction.js.map +1 -0
- package/dist/src/instruction/WebXDataAckInstruction.d.ts +25 -0
- package/dist/src/instruction/WebXDataAckInstruction.js +26 -0
- package/dist/src/instruction/WebXDataAckInstruction.js.map +1 -0
- package/dist/src/instruction/WebXImageInstruction.d.ts +18 -0
- package/dist/src/instruction/WebXImageInstruction.js +23 -0
- package/dist/src/instruction/WebXImageInstruction.js.map +1 -0
- package/dist/src/instruction/WebXInstruction.d.ts +29 -0
- package/dist/src/instruction/WebXInstruction.js +28 -0
- package/dist/src/instruction/WebXInstruction.js.map +1 -0
- package/dist/src/instruction/WebXInstructionResponse.d.ts +66 -0
- package/dist/src/instruction/WebXInstructionResponse.js +78 -0
- package/dist/src/instruction/WebXInstructionResponse.js.map +1 -0
- package/dist/src/instruction/WebXInstructionType.d.ts +63 -0
- package/dist/src/instruction/WebXInstructionType.js +96 -0
- package/dist/src/instruction/WebXInstructionType.js.map +1 -0
- package/dist/src/instruction/WebXKeyboardInstruction.d.ts +23 -0
- package/dist/src/instruction/WebXKeyboardInstruction.js +25 -0
- package/dist/src/instruction/WebXKeyboardInstruction.js.map +1 -0
- package/dist/src/instruction/WebXMouseInstruction.d.ts +28 -0
- package/dist/src/instruction/WebXMouseInstruction.js +27 -0
- package/dist/src/instruction/WebXMouseInstruction.js.map +1 -0
- package/dist/src/instruction/WebXPongInstruction.d.ts +18 -0
- package/dist/src/instruction/WebXPongInstruction.js +23 -0
- package/dist/src/instruction/WebXPongInstruction.js.map +1 -0
- package/dist/src/instruction/WebXQualityInstruction.d.ts +19 -0
- package/dist/src/instruction/WebXQualityInstruction.js +24 -0
- package/dist/src/instruction/WebXQualityInstruction.js.map +1 -0
- package/dist/src/instruction/WebXScreenInstruction.d.ts +12 -0
- package/dist/src/instruction/WebXScreenInstruction.js +20 -0
- package/dist/src/instruction/WebXScreenInstruction.js.map +1 -0
- package/dist/src/instruction/WebXShapeInstruction.d.ts +18 -0
- package/dist/src/instruction/WebXShapeInstruction.js +23 -0
- package/dist/src/instruction/WebXShapeInstruction.js.map +1 -0
- package/dist/src/instruction/WebXWindowsInstruction.d.ts +13 -0
- package/dist/src/instruction/WebXWindowsInstruction.js +21 -0
- package/dist/src/instruction/WebXWindowsInstruction.js.map +1 -0
- package/dist/src/instruction/index.d.ts +15 -0
- package/dist/src/instruction/index.js +32 -0
- package/dist/src/instruction/index.js.map +1 -0
- package/dist/src/message/WebXClipboardMessage.d.ts +19 -0
- package/dist/src/message/WebXClipboardMessage.js +23 -0
- package/dist/src/message/WebXClipboardMessage.js.map +1 -0
- package/dist/src/message/WebXConnectionMessage.d.ts +12 -0
- package/dist/src/message/WebXConnectionMessage.js +20 -0
- package/dist/src/message/WebXConnectionMessage.js.map +1 -0
- package/dist/src/message/WebXCursorImageMessage.d.ts +46 -0
- package/dist/src/message/WebXCursorImageMessage.js +35 -0
- package/dist/src/message/WebXCursorImageMessage.js.map +1 -0
- package/dist/src/message/WebXImageMessage.d.ts +41 -0
- package/dist/src/message/WebXImageMessage.js +33 -0
- package/dist/src/message/WebXImageMessage.js.map +1 -0
- package/dist/src/message/WebXMessage.d.ts +24 -0
- package/dist/src/message/WebXMessage.js +23 -0
- package/dist/src/message/WebXMessage.js.map +1 -0
- package/dist/src/message/WebXMessageType.d.ts +59 -0
- package/dist/src/message/WebXMessageType.js +64 -0
- package/dist/src/message/WebXMessageType.js.map +1 -0
- package/dist/src/message/WebXMouseMessage.d.ts +30 -0
- package/dist/src/message/WebXMouseMessage.js +29 -0
- package/dist/src/message/WebXMouseMessage.js.map +1 -0
- package/dist/src/message/WebXNopMessage.d.ts +10 -0
- package/dist/src/message/WebXNopMessage.js +18 -0
- package/dist/src/message/WebXNopMessage.js.map +1 -0
- package/dist/src/message/WebXPingMessage.d.ts +13 -0
- package/dist/src/message/WebXPingMessage.js +21 -0
- package/dist/src/message/WebXPingMessage.js.map +1 -0
- package/dist/src/message/WebXQualityMessage.d.ts +39 -0
- package/dist/src/message/WebXQualityMessage.js +32 -0
- package/dist/src/message/WebXQualityMessage.js.map +1 -0
- package/dist/src/message/WebXScreenMessage.d.ts +37 -0
- package/dist/src/message/WebXScreenMessage.js +29 -0
- package/dist/src/message/WebXScreenMessage.js.map +1 -0
- package/dist/src/message/WebXShapeMessage.d.ts +31 -0
- package/dist/src/message/WebXShapeMessage.js +29 -0
- package/dist/src/message/WebXShapeMessage.js.map +1 -0
- package/dist/src/message/WebXSubImagesMessage.d.ts +31 -0
- package/dist/src/message/WebXSubImagesMessage.js +29 -0
- package/dist/src/message/WebXSubImagesMessage.js.map +1 -0
- package/dist/src/message/WebXWindowsMessage.d.ts +21 -0
- package/dist/src/message/WebXWindowsMessage.js +25 -0
- package/dist/src/message/WebXWindowsMessage.js.map +1 -0
- package/dist/src/message/index.d.ts +14 -0
- package/dist/src/message/index.js +31 -0
- package/dist/src/message/index.js.map +1 -0
- package/dist/src/tracer/WebXDebugImageMessageHandler.d.ts +48 -0
- package/dist/src/tracer/WebXDebugImageMessageHandler.js +102 -0
- package/dist/src/tracer/WebXDebugImageMessageHandler.js.map +1 -0
- package/dist/src/tracer/WebXHandler.d.ts +14 -0
- package/dist/src/tracer/WebXHandler.js +3 -0
- package/dist/src/tracer/WebXHandler.js.map +1 -0
- package/dist/src/tracer/WebXInstructionHandler.d.ts +21 -0
- package/dist/src/tracer/WebXInstructionHandler.js +13 -0
- package/dist/src/tracer/WebXInstructionHandler.js.map +1 -0
- package/dist/src/tracer/WebXMessageHandler.d.ts +21 -0
- package/dist/src/tracer/WebXMessageHandler.js +13 -0
- package/dist/src/tracer/WebXMessageHandler.js.map +1 -0
- package/dist/src/tracer/WebXStatsHandler.d.ts +23 -0
- package/dist/src/tracer/WebXStatsHandler.js +13 -0
- package/dist/src/tracer/WebXStatsHandler.js.map +1 -0
- package/dist/src/tracer/index.d.ts +5 -0
- package/dist/src/tracer/index.js +22 -0
- package/dist/src/tracer/index.js.map +1 -0
- package/dist/src/transport/WebXBinarySerializer.d.ts +31 -0
- package/dist/src/transport/WebXBinarySerializer.js +63 -0
- package/dist/src/transport/WebXBinarySerializer.js.map +1 -0
- package/dist/src/transport/WebXInstructionBuffer.d.ts +55 -0
- package/dist/src/transport/WebXInstructionBuffer.js +109 -0
- package/dist/src/transport/WebXInstructionBuffer.js.map +1 -0
- package/dist/src/transport/WebXInstructionEncoder.d.ts +181 -0
- package/dist/src/transport/WebXInstructionEncoder.js +294 -0
- package/dist/src/transport/WebXInstructionEncoder.js.map +1 -0
- package/dist/src/transport/WebXMessageBuffer.d.ts +80 -0
- package/dist/src/transport/WebXMessageBuffer.js +104 -0
- package/dist/src/transport/WebXMessageBuffer.js.map +1 -0
- package/dist/src/transport/WebXMessageDecoder.d.ts +108 -0
- package/dist/src/transport/WebXMessageDecoder.js +332 -0
- package/dist/src/transport/WebXMessageDecoder.js.map +1 -0
- package/dist/src/transport/index.d.ts +5 -0
- package/dist/src/transport/index.js +22 -0
- package/dist/src/transport/index.js.map +1 -0
- package/dist/src/tunnel/WebXTunnel.d.ts +93 -0
- package/dist/src/tunnel/WebXTunnel.js +156 -0
- package/dist/src/tunnel/WebXTunnel.js.map +1 -0
- package/dist/src/tunnel/WebXWebSocketTunnel.d.ts +40 -0
- package/dist/src/tunnel/WebXWebSocketTunnel.js +88 -0
- package/dist/src/tunnel/WebXWebSocketTunnel.js.map +1 -0
- package/dist/src/tunnel/index.d.ts +2 -0
- package/dist/src/tunnel/index.js +19 -0
- package/dist/src/tunnel/index.js.map +1 -0
- package/dist/src/utils/WebXColorGenerator.d.ts +24 -0
- package/dist/src/utils/WebXColorGenerator.js +46 -0
- package/dist/src/utils/WebXColorGenerator.js.map +1 -0
- package/dist/src/utils/WebXVersion.d.ts +34 -0
- package/dist/src/utils/WebXVersion.js +25 -0
- package/dist/src/utils/WebXVersion.js.map +1 -0
- package/dist/src/utils/index.d.ts +2 -0
- package/dist/src/utils/index.js +19 -0
- package/dist/src/utils/index.js.map +1 -0
- package/dist/tracer/WebXDebugImageMessageHandler.js +1 -0
- package/dist/tracer/WebXDebugImageMessageHandler.js.map +1 -1
- package/dist/transport/WebXInstructionEncoder.d.ts +14 -0
- package/dist/transport/WebXInstructionEncoder.js +23 -0
- package/dist/transport/WebXInstructionEncoder.js.map +1 -1
- package/dist/transport/WebXMessageDecoder.d.ts +7 -0
- package/dist/transport/WebXMessageDecoder.js +34 -3
- package/dist/transport/WebXMessageDecoder.js.map +1 -1
- package/dist/utils/WebXVersion.d.ts +4 -0
- package/dist/utils/WebXVersion.js +1 -0
- package/dist/utils/WebXVersion.js.map +1 -1
- package/package.json +5 -3
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WebXInstructionResponse = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Represents a response to a WebX instruction.
|
|
6
|
+
*
|
|
7
|
+
* This class encapsulates the result of executing an instruction, including
|
|
8
|
+
* any data returned by the WebX Engine.
|
|
9
|
+
*/
|
|
10
|
+
class WebXInstructionResponse {
|
|
11
|
+
/**
|
|
12
|
+
* Constructs a new WebXInstructionResponse.
|
|
13
|
+
*
|
|
14
|
+
* @param instruction The WebX instruction associated with this response.
|
|
15
|
+
* @param timeoutMs The timeout duration in milliseconds.
|
|
16
|
+
*/
|
|
17
|
+
constructor(instruction, timeoutMs) {
|
|
18
|
+
/**
|
|
19
|
+
* The ID of the timeout.
|
|
20
|
+
*/
|
|
21
|
+
this._timeoutId = 0;
|
|
22
|
+
this.instructionId = instruction.id;
|
|
23
|
+
this.data = null;
|
|
24
|
+
if (timeoutMs) {
|
|
25
|
+
this._timeoutMs = timeoutMs;
|
|
26
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
27
|
+
// @ts-ignore
|
|
28
|
+
this._timeoutId = setTimeout(() => {
|
|
29
|
+
this.reject('Request failed due to timeout');
|
|
30
|
+
}, this._timeoutMs);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Registers a callback to be invoked when a response is received.
|
|
35
|
+
*
|
|
36
|
+
* @param onResponseReceived The callback to be invoked.
|
|
37
|
+
* @returns The current instance of WebXInstructionResponse.
|
|
38
|
+
*/
|
|
39
|
+
then(onResponseReceived) {
|
|
40
|
+
this._onResponseReceived = onResponseReceived;
|
|
41
|
+
return this;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Registers a callback to be invoked when an error occurs.
|
|
45
|
+
*
|
|
46
|
+
* @param onError The callback to be invoked.
|
|
47
|
+
* @returns The current instance of WebXInstructionResponse.
|
|
48
|
+
*/
|
|
49
|
+
catch(onError) {
|
|
50
|
+
this._onError = onError;
|
|
51
|
+
return this;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Resolves the response with the provided message.
|
|
55
|
+
*
|
|
56
|
+
* @param message The response message.
|
|
57
|
+
*/
|
|
58
|
+
resolve(message) {
|
|
59
|
+
if (this._timeoutId > 0) {
|
|
60
|
+
clearTimeout(this._timeoutId);
|
|
61
|
+
}
|
|
62
|
+
if (this._onResponseReceived != null) {
|
|
63
|
+
this._onResponseReceived(message);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Rejects the response with the provided error message.
|
|
68
|
+
*
|
|
69
|
+
* @param error The error message.
|
|
70
|
+
*/
|
|
71
|
+
reject(error) {
|
|
72
|
+
if (this._onError) {
|
|
73
|
+
this._onError(new Error(error));
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
exports.WebXInstructionResponse = WebXInstructionResponse;
|
|
78
|
+
//# sourceMappingURL=WebXInstructionResponse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WebXInstructionResponse.js","sourceRoot":"","sources":["../../../src/instruction/WebXInstructionResponse.ts"],"names":[],"mappings":";;;AAEA;;;;;GAKG;AACH,MAAa,uBAAuB;IA+BlC;;;;;OAKG;IACH,YAAY,WAA4B,EAAE,SAAkB;QAX5D;;WAEG;QACc,eAAU,GAAW,CAAC,CAAC;QAStC,IAAI,CAAC,aAAa,GAAG,WAAW,CAAC,EAAE,CAAC;QACpC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QAEjB,IAAI,SAAS,EAAE,CAAC;YACd,IAAI,CAAC,UAAU,GAAG,SAAS,CAAC;YAC5B,6DAA6D;YAC7D,aAAa;YACb,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC,GAAG,EAAE;gBAChC,IAAI,CAAC,MAAM,CAAC,+BAA+B,CAAC,CAAC;YAC/C,CAAC,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC;QACtB,CAAC;IACH,CAAC;IAED;;;;;OAKG;IACH,IAAI,CAAC,kBAAwC;QAC3C,IAAI,CAAC,mBAAmB,GAAG,kBAAkB,CAAC;QAC9C,OAAO,IAAI,CAAC;IACd,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,OAA+B;QACnC,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC;QACxB,OAAO,IAAI,CAAC;IACd,CAAC;IAED;;;;OAIG;IACH,OAAO,CAAC,OAAU;QAChB,IAAI,IAAI,CAAC,UAAU,GAAG,CAAC,EAAE,CAAC;YACxB,YAAY,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QAChC,CAAC;QACD,IAAI,IAAI,CAAC,mBAAmB,IAAI,IAAI,EAAE,CAAC;YACrC,IAAI,CAAC,mBAAmB,CAAC,OAAO,CAAC,CAAC;QACpC,CAAC;IACH,CAAC;IAED;;;;OAIG;IACH,MAAM,CAAC,KAAa;QAClB,IAAI,IAAI,CAAC,QAAQ,EAAE,CAAC;YAClB,IAAI,CAAC,QAAQ,CAAC,IAAI,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC;QAClC,CAAC;IACH,CAAC;CACF;AAjGD,0DAiGC"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Enum representing the types of WebX instructions.
|
|
3
|
+
*
|
|
4
|
+
* These types are used to categorize instructions sent to the WebX Engine.
|
|
5
|
+
*/
|
|
6
|
+
export declare enum WebXInstructionType {
|
|
7
|
+
/**
|
|
8
|
+
* Instruction to connect to the WebX Engine.
|
|
9
|
+
*/
|
|
10
|
+
CONNECT = 1,
|
|
11
|
+
/**
|
|
12
|
+
* Instruction to request visible window layout.
|
|
13
|
+
*/
|
|
14
|
+
WINDOWS = 2,
|
|
15
|
+
/**
|
|
16
|
+
* Instruction to request window image data.
|
|
17
|
+
*/
|
|
18
|
+
IMAGE = 3,
|
|
19
|
+
/**
|
|
20
|
+
* Instruction to request the screen settings.
|
|
21
|
+
*/
|
|
22
|
+
SCREEN = 4,
|
|
23
|
+
/**
|
|
24
|
+
* Instruction to send a mouse event.
|
|
25
|
+
*/
|
|
26
|
+
MOUSE = 5,
|
|
27
|
+
/**
|
|
28
|
+
* Instruction to send a keyboard event.
|
|
29
|
+
*/
|
|
30
|
+
KEYBOARD = 6,
|
|
31
|
+
/**
|
|
32
|
+
* Instruction to request the cursor image.
|
|
33
|
+
*/
|
|
34
|
+
CURSOR_IMAGE = 7,
|
|
35
|
+
/**
|
|
36
|
+
* Instruction to set the quality index.
|
|
37
|
+
*/
|
|
38
|
+
QUALITY = 8,
|
|
39
|
+
/**
|
|
40
|
+
* Instruction to respond to a ping message.
|
|
41
|
+
*/
|
|
42
|
+
PONG = 9,
|
|
43
|
+
/**
|
|
44
|
+
* Instruction to acknowledge data.
|
|
45
|
+
*/
|
|
46
|
+
DATA_ACK = 10,
|
|
47
|
+
/**
|
|
48
|
+
* Instruction to send clipboard data to the WebX Engine.
|
|
49
|
+
*/
|
|
50
|
+
CLIPBOARD = 11,
|
|
51
|
+
/**
|
|
52
|
+
* Instruction to request the window shape image (stencil image).
|
|
53
|
+
*/
|
|
54
|
+
SHAPE = 12
|
|
55
|
+
}
|
|
56
|
+
export declare namespace WebXInstructionType {
|
|
57
|
+
/**
|
|
58
|
+
* Converts a string representation of a WebX instruction type to its corresponding enum value.
|
|
59
|
+
* @param value the string representation of the instruction type.
|
|
60
|
+
* @returns the corresponding WebXInstructionType enum value.
|
|
61
|
+
*/
|
|
62
|
+
function fromString(value: string): WebXInstructionType;
|
|
63
|
+
}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WebXInstructionType = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Enum representing the types of WebX instructions.
|
|
6
|
+
*
|
|
7
|
+
* These types are used to categorize instructions sent to the WebX Engine.
|
|
8
|
+
*/
|
|
9
|
+
var WebXInstructionType;
|
|
10
|
+
(function (WebXInstructionType) {
|
|
11
|
+
/**
|
|
12
|
+
* Instruction to connect to the WebX Engine.
|
|
13
|
+
*/
|
|
14
|
+
WebXInstructionType[WebXInstructionType["CONNECT"] = 1] = "CONNECT";
|
|
15
|
+
/**
|
|
16
|
+
* Instruction to request visible window layout.
|
|
17
|
+
*/
|
|
18
|
+
WebXInstructionType[WebXInstructionType["WINDOWS"] = 2] = "WINDOWS";
|
|
19
|
+
/**
|
|
20
|
+
* Instruction to request window image data.
|
|
21
|
+
*/
|
|
22
|
+
WebXInstructionType[WebXInstructionType["IMAGE"] = 3] = "IMAGE";
|
|
23
|
+
/**
|
|
24
|
+
* Instruction to request the screen settings.
|
|
25
|
+
*/
|
|
26
|
+
WebXInstructionType[WebXInstructionType["SCREEN"] = 4] = "SCREEN";
|
|
27
|
+
/**
|
|
28
|
+
* Instruction to send a mouse event.
|
|
29
|
+
*/
|
|
30
|
+
WebXInstructionType[WebXInstructionType["MOUSE"] = 5] = "MOUSE";
|
|
31
|
+
/**
|
|
32
|
+
* Instruction to send a keyboard event.
|
|
33
|
+
*/
|
|
34
|
+
WebXInstructionType[WebXInstructionType["KEYBOARD"] = 6] = "KEYBOARD";
|
|
35
|
+
/**
|
|
36
|
+
* Instruction to request the cursor image.
|
|
37
|
+
*/
|
|
38
|
+
WebXInstructionType[WebXInstructionType["CURSOR_IMAGE"] = 7] = "CURSOR_IMAGE";
|
|
39
|
+
/**
|
|
40
|
+
* Instruction to set the quality index.
|
|
41
|
+
*/
|
|
42
|
+
WebXInstructionType[WebXInstructionType["QUALITY"] = 8] = "QUALITY";
|
|
43
|
+
/**
|
|
44
|
+
* Instruction to respond to a ping message.
|
|
45
|
+
*/
|
|
46
|
+
WebXInstructionType[WebXInstructionType["PONG"] = 9] = "PONG";
|
|
47
|
+
/**
|
|
48
|
+
* Instruction to acknowledge data.
|
|
49
|
+
*/
|
|
50
|
+
WebXInstructionType[WebXInstructionType["DATA_ACK"] = 10] = "DATA_ACK";
|
|
51
|
+
/**
|
|
52
|
+
* Instruction to send clipboard data to the WebX Engine.
|
|
53
|
+
*/
|
|
54
|
+
WebXInstructionType[WebXInstructionType["CLIPBOARD"] = 11] = "CLIPBOARD";
|
|
55
|
+
/**
|
|
56
|
+
* Instruction to request the window shape image (stencil image).
|
|
57
|
+
*/
|
|
58
|
+
WebXInstructionType[WebXInstructionType["SHAPE"] = 12] = "SHAPE";
|
|
59
|
+
})(WebXInstructionType || (exports.WebXInstructionType = WebXInstructionType = {}));
|
|
60
|
+
(function (WebXInstructionType) {
|
|
61
|
+
/**
|
|
62
|
+
* Converts a string representation of a WebX instruction type to its corresponding enum value.
|
|
63
|
+
* @param value the string representation of the instruction type.
|
|
64
|
+
* @returns the corresponding WebXInstructionType enum value.
|
|
65
|
+
*/
|
|
66
|
+
function fromString(value) {
|
|
67
|
+
switch (value) {
|
|
68
|
+
case 'CONNECT':
|
|
69
|
+
return WebXInstructionType.CONNECT;
|
|
70
|
+
case 'WINDOWS':
|
|
71
|
+
return WebXInstructionType.WINDOWS;
|
|
72
|
+
case 'IMAGE':
|
|
73
|
+
return WebXInstructionType.IMAGE;
|
|
74
|
+
case 'SCREEN':
|
|
75
|
+
return WebXInstructionType.SCREEN;
|
|
76
|
+
case 'MOUSE':
|
|
77
|
+
return WebXInstructionType.MOUSE;
|
|
78
|
+
case 'KEYBOARD':
|
|
79
|
+
return WebXInstructionType.KEYBOARD;
|
|
80
|
+
case 'CURSOR_IMAGE':
|
|
81
|
+
return WebXInstructionType.CURSOR_IMAGE;
|
|
82
|
+
case 'QUALITY':
|
|
83
|
+
return WebXInstructionType.QUALITY;
|
|
84
|
+
case 'PONG':
|
|
85
|
+
return WebXInstructionType.PONG;
|
|
86
|
+
case 'DATA_ACK':
|
|
87
|
+
return WebXInstructionType.DATA_ACK;
|
|
88
|
+
case 'CLIPBOARD':
|
|
89
|
+
return WebXInstructionType.CLIPBOARD;
|
|
90
|
+
case 'SHAPE':
|
|
91
|
+
return WebXInstructionType.SHAPE;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
WebXInstructionType.fromString = fromString;
|
|
95
|
+
})(WebXInstructionType || (exports.WebXInstructionType = WebXInstructionType = {}));
|
|
96
|
+
//# sourceMappingURL=WebXInstructionType.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WebXInstructionType.js","sourceRoot":"","sources":["../../../src/instruction/WebXInstructionType.ts"],"names":[],"mappings":";;;AAAA;;;;GAIG;AACH,IAAY,mBA6DX;AA7DD,WAAY,mBAAmB;IAE7B;;OAEG;IACH,mEAAW,CAAA;IAEX;;OAEG;IACH,mEAAW,CAAA;IAEX;;OAEG;IACH,+DAAS,CAAA;IAET;;OAEG;IACH,iEAAU,CAAA;IAEV;;OAEG;IACH,+DAAS,CAAA;IAET;;OAEG;IACH,qEAAY,CAAA;IAEZ;;OAEG;IACH,6EAAgB,CAAA;IAEhB;;OAEG;IACH,mEAAW,CAAA;IAEX;;OAEG;IACH,6DAAQ,CAAA;IAER;;OAEG;IACH,sEAAa,CAAA;IAEb;;OAEG;IACH,wEAAc,CAAA;IAEd;;OAEG;IACH,gEAAU,CAAA;AACZ,CAAC,EA7DW,mBAAmB,mCAAnB,mBAAmB,QA6D9B;AAED,WAAiB,mBAAmB;IAClC;;;;OAIG;IACH,SAAgB,UAAU,CAAC,KAAa;QACtC,QAAQ,KAAK,EAAE,CAAC;YACd,KAAK,SAAS;gBACZ,OAAO,mBAAmB,CAAC,OAAO,CAAC;YACrC,KAAK,SAAS;gBACZ,OAAO,mBAAmB,CAAC,OAAO,CAAC;YACrC,KAAK,OAAO;gBACV,OAAO,mBAAmB,CAAC,KAAK,CAAC;YACnC,KAAK,QAAQ;gBACX,OAAO,mBAAmB,CAAC,MAAM,CAAC;YACpC,KAAK,OAAO;gBACV,OAAO,mBAAmB,CAAC,KAAK,CAAC;YACnC,KAAK,UAAU;gBACb,OAAO,mBAAmB,CAAC,QAAQ,CAAC;YACtC,KAAK,cAAc;gBACjB,OAAO,mBAAmB,CAAC,YAAY,CAAC;YAC1C,KAAK,SAAS;gBACZ,OAAO,mBAAmB,CAAC,OAAO,CAAC;YACrC,KAAK,MAAM;gBACT,OAAO,mBAAmB,CAAC,IAAI,CAAC;YAClC,KAAK,UAAU;gBACb,OAAO,mBAAmB,CAAC,QAAQ,CAAC;YACtC,KAAK,WAAW;gBACd,OAAO,mBAAmB,CAAC,SAAS,CAAC;YACvC,KAAK,OAAO;gBACV,OAAO,mBAAmB,CAAC,KAAK,CAAC;QACrC,CAAC;IACH,CAAC;IA3Be,8BAAU,aA2BzB,CAAA;AACH,CAAC,EAlCgB,mBAAmB,mCAAnB,mBAAmB,QAkCnC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { WebXInstruction } from './WebXInstruction';
|
|
2
|
+
/**
|
|
3
|
+
* Represents an instruction to update the keyboard state in the WebX Engine.
|
|
4
|
+
*
|
|
5
|
+
* This instruction is used to send key press or release events to the WebX Engine.
|
|
6
|
+
*/
|
|
7
|
+
export declare class WebXKeyboardInstruction extends WebXInstruction {
|
|
8
|
+
/**
|
|
9
|
+
* The key code of the key being pressed or released.
|
|
10
|
+
*/
|
|
11
|
+
readonly key: number;
|
|
12
|
+
/**
|
|
13
|
+
* Whether the key is being pressed (true) or released (false).
|
|
14
|
+
*/
|
|
15
|
+
readonly pressed: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Constructs a new WebXKeyboardInstruction.
|
|
18
|
+
*
|
|
19
|
+
* @param key The key code of the key being pressed or released.
|
|
20
|
+
* @param pressed Whether the key is being pressed (true) or released (false).
|
|
21
|
+
*/
|
|
22
|
+
constructor(key: number, pressed: boolean);
|
|
23
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WebXKeyboardInstruction = void 0;
|
|
4
|
+
const WebXInstruction_1 = require("./WebXInstruction");
|
|
5
|
+
const WebXInstructionType_1 = require("./WebXInstructionType");
|
|
6
|
+
/**
|
|
7
|
+
* Represents an instruction to update the keyboard state in the WebX Engine.
|
|
8
|
+
*
|
|
9
|
+
* This instruction is used to send key press or release events to the WebX Engine.
|
|
10
|
+
*/
|
|
11
|
+
class WebXKeyboardInstruction extends WebXInstruction_1.WebXInstruction {
|
|
12
|
+
/**
|
|
13
|
+
* Constructs a new WebXKeyboardInstruction.
|
|
14
|
+
*
|
|
15
|
+
* @param key The key code of the key being pressed or released.
|
|
16
|
+
* @param pressed Whether the key is being pressed (true) or released (false).
|
|
17
|
+
*/
|
|
18
|
+
constructor(key, pressed) {
|
|
19
|
+
super(WebXInstructionType_1.WebXInstructionType.KEYBOARD);
|
|
20
|
+
this.key = key;
|
|
21
|
+
this.pressed = pressed;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
exports.WebXKeyboardInstruction = WebXKeyboardInstruction;
|
|
25
|
+
//# sourceMappingURL=WebXKeyboardInstruction.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WebXKeyboardInstruction.js","sourceRoot":"","sources":["../../../src/instruction/WebXKeyboardInstruction.ts"],"names":[],"mappings":";;;AAAA,uDAAoD;AACpD,+DAA4D;AAE5D;;;;GAIG;AACH,MAAa,uBAAwB,SAAQ,iCAAe;IAW1D;;;;;OAKG;IACH,YAAY,GAAW,EAAE,OAAgB;QACvC,KAAK,CAAC,yCAAmB,CAAC,QAAQ,CAAC,CAAC;QACpC,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;QACf,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;CACF;AAtBD,0DAsBC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { WebXInstruction } from './WebXInstruction';
|
|
2
|
+
/**
|
|
3
|
+
* Represents an instruction to update the mouse state in the WebX Engine.
|
|
4
|
+
*
|
|
5
|
+
* This instruction is used to send mouse movement or button state changes to the WebX Engine.
|
|
6
|
+
*/
|
|
7
|
+
export declare class WebXMouseInstruction extends WebXInstruction {
|
|
8
|
+
/**
|
|
9
|
+
* The x-coordinate of the mouse pointer.
|
|
10
|
+
*/
|
|
11
|
+
readonly x: number;
|
|
12
|
+
/**
|
|
13
|
+
* The y-coordinate of the mouse pointer.
|
|
14
|
+
*/
|
|
15
|
+
readonly y: number;
|
|
16
|
+
/**
|
|
17
|
+
* The button mask representing the state of mouse buttons.
|
|
18
|
+
*/
|
|
19
|
+
readonly buttonMask: number;
|
|
20
|
+
/**
|
|
21
|
+
* Constructs a new WebXMouseInstruction.
|
|
22
|
+
*
|
|
23
|
+
* @param x The x-coordinate of the mouse pointer.
|
|
24
|
+
* @param y The y-coordinate of the mouse pointer.
|
|
25
|
+
* @param buttonMask The button mask representing the state of mouse buttons.
|
|
26
|
+
*/
|
|
27
|
+
constructor(x: number, y: number, buttonMask: number);
|
|
28
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WebXMouseInstruction = void 0;
|
|
4
|
+
const WebXInstruction_1 = require("./WebXInstruction");
|
|
5
|
+
const WebXInstructionType_1 = require("./WebXInstructionType");
|
|
6
|
+
/**
|
|
7
|
+
* Represents an instruction to update the mouse state in the WebX Engine.
|
|
8
|
+
*
|
|
9
|
+
* This instruction is used to send mouse movement or button state changes to the WebX Engine.
|
|
10
|
+
*/
|
|
11
|
+
class WebXMouseInstruction extends WebXInstruction_1.WebXInstruction {
|
|
12
|
+
/**
|
|
13
|
+
* Constructs a new WebXMouseInstruction.
|
|
14
|
+
*
|
|
15
|
+
* @param x The x-coordinate of the mouse pointer.
|
|
16
|
+
* @param y The y-coordinate of the mouse pointer.
|
|
17
|
+
* @param buttonMask The button mask representing the state of mouse buttons.
|
|
18
|
+
*/
|
|
19
|
+
constructor(x, y, buttonMask) {
|
|
20
|
+
super(WebXInstructionType_1.WebXInstructionType.MOUSE);
|
|
21
|
+
this.x = x;
|
|
22
|
+
this.y = y;
|
|
23
|
+
this.buttonMask = buttonMask;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
exports.WebXMouseInstruction = WebXMouseInstruction;
|
|
27
|
+
//# sourceMappingURL=WebXMouseInstruction.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WebXMouseInstruction.js","sourceRoot":"","sources":["../../../src/instruction/WebXMouseInstruction.ts"],"names":[],"mappings":";;;AAAA,uDAAoD;AACpD,+DAA4D;AAE5D;;;;GAIG;AACH,MAAa,oBAAqB,SAAQ,iCAAe;IAgBvD;;;;;;OAMG;IACH,YAAY,CAAS,EAAE,CAAS,EAAE,UAAkB;QAClD,KAAK,CAAC,yCAAmB,CAAC,KAAK,CAAC,CAAC;QACjC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC;QACX,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC;QACX,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;IAC/B,CAAC;CACF;AA7BD,oDA6BC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { WebXInstruction } from './WebXInstruction';
|
|
2
|
+
/**
|
|
3
|
+
* Represents an instruction to respond to a ping from the WebX Engine.
|
|
4
|
+
*
|
|
5
|
+
* This instruction is used to acknowledge a ping and maintain the connection.
|
|
6
|
+
*/
|
|
7
|
+
export declare class WebXPongInstruction extends WebXInstruction {
|
|
8
|
+
/**
|
|
9
|
+
* The timestamp in milliseconds (copied from the message from the engine).
|
|
10
|
+
*/
|
|
11
|
+
readonly timestampMs: Uint8Array;
|
|
12
|
+
/**
|
|
13
|
+
* Constructs a new WebXPongInstruction.
|
|
14
|
+
*
|
|
15
|
+
* @param timestampMs The timestamp in milliseconds.
|
|
16
|
+
*/
|
|
17
|
+
constructor(timestampMs: Uint8Array);
|
|
18
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WebXPongInstruction = void 0;
|
|
4
|
+
const WebXInstruction_1 = require("./WebXInstruction");
|
|
5
|
+
const WebXInstructionType_1 = require("./WebXInstructionType");
|
|
6
|
+
/**
|
|
7
|
+
* Represents an instruction to respond to a ping from the WebX Engine.
|
|
8
|
+
*
|
|
9
|
+
* This instruction is used to acknowledge a ping and maintain the connection.
|
|
10
|
+
*/
|
|
11
|
+
class WebXPongInstruction extends WebXInstruction_1.WebXInstruction {
|
|
12
|
+
/**
|
|
13
|
+
* Constructs a new WebXPongInstruction.
|
|
14
|
+
*
|
|
15
|
+
* @param timestampMs The timestamp in milliseconds.
|
|
16
|
+
*/
|
|
17
|
+
constructor(timestampMs) {
|
|
18
|
+
super(WebXInstructionType_1.WebXInstructionType.PONG);
|
|
19
|
+
this.timestampMs = timestampMs;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
exports.WebXPongInstruction = WebXPongInstruction;
|
|
23
|
+
//# sourceMappingURL=WebXPongInstruction.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WebXPongInstruction.js","sourceRoot":"","sources":["../../../src/instruction/WebXPongInstruction.ts"],"names":[],"mappings":";;;AAAA,uDAAoD;AACpD,+DAA4D;AAE5D;;;;GAIG;AACH,MAAa,mBAAoB,SAAQ,iCAAe;IAMtD;;;;OAIG;IACH,YAAY,WAAuB;QACjC,KAAK,CAAC,yCAAmB,CAAC,IAAI,CAAC,CAAC;QAChC,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;IACjC,CAAC;CACF;AAfD,kDAeC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { WebXInstruction } from './WebXInstruction';
|
|
2
|
+
/**
|
|
3
|
+
* Represents an instruction to set the quality index in the WebX client.
|
|
4
|
+
*
|
|
5
|
+
* This instruction is used to adjust the quality of the remote desktop display.
|
|
6
|
+
* The quality index determines the quality of the images and the refresh rate of the windows.
|
|
7
|
+
*/
|
|
8
|
+
export declare class WebXQualityInstruction extends WebXInstruction {
|
|
9
|
+
/**
|
|
10
|
+
* The quality index to set.
|
|
11
|
+
*/
|
|
12
|
+
readonly qualityIndex: number;
|
|
13
|
+
/**
|
|
14
|
+
* Constructs a new WebXQualityInstruction.
|
|
15
|
+
*
|
|
16
|
+
* @param qualityIndex The quality index to set.
|
|
17
|
+
*/
|
|
18
|
+
constructor(qualityIndex: number);
|
|
19
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WebXQualityInstruction = void 0;
|
|
4
|
+
const WebXInstruction_1 = require("./WebXInstruction");
|
|
5
|
+
const WebXInstructionType_1 = require("./WebXInstructionType");
|
|
6
|
+
/**
|
|
7
|
+
* Represents an instruction to set the quality index in the WebX client.
|
|
8
|
+
*
|
|
9
|
+
* This instruction is used to adjust the quality of the remote desktop display.
|
|
10
|
+
* The quality index determines the quality of the images and the refresh rate of the windows.
|
|
11
|
+
*/
|
|
12
|
+
class WebXQualityInstruction extends WebXInstruction_1.WebXInstruction {
|
|
13
|
+
/**
|
|
14
|
+
* Constructs a new WebXQualityInstruction.
|
|
15
|
+
*
|
|
16
|
+
* @param qualityIndex The quality index to set.
|
|
17
|
+
*/
|
|
18
|
+
constructor(qualityIndex) {
|
|
19
|
+
super(WebXInstructionType_1.WebXInstructionType.QUALITY);
|
|
20
|
+
this.qualityIndex = qualityIndex;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
exports.WebXQualityInstruction = WebXQualityInstruction;
|
|
24
|
+
//# sourceMappingURL=WebXQualityInstruction.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WebXQualityInstruction.js","sourceRoot":"","sources":["../../../src/instruction/WebXQualityInstruction.ts"],"names":[],"mappings":";;;AAAA,uDAAoD;AACpD,+DAA4D;AAE5D;;;;;GAKG;AACH,MAAa,sBAAuB,SAAQ,iCAAe;IAMzD;;;;OAIG;IACH,YAAY,YAAoB;QAC9B,KAAK,CAAC,yCAAmB,CAAC,OAAO,CAAC,CAAC;QACnC,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;IACnC,CAAC;CACF;AAfD,wDAeC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { WebXInstruction } from './WebXInstruction';
|
|
2
|
+
/**
|
|
3
|
+
* Represents an instruction to request screen information from the WebX Engine.
|
|
4
|
+
*
|
|
5
|
+
* This instruction is used to retrieve the screen size.
|
|
6
|
+
*/
|
|
7
|
+
export declare class WebXScreenInstruction extends WebXInstruction {
|
|
8
|
+
/**
|
|
9
|
+
* Constructs a new WebXScreenInstruction.
|
|
10
|
+
*/
|
|
11
|
+
constructor();
|
|
12
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WebXScreenInstruction = void 0;
|
|
4
|
+
const WebXInstruction_1 = require("./WebXInstruction");
|
|
5
|
+
const WebXInstructionType_1 = require("./WebXInstructionType");
|
|
6
|
+
/**
|
|
7
|
+
* Represents an instruction to request screen information from the WebX Engine.
|
|
8
|
+
*
|
|
9
|
+
* This instruction is used to retrieve the screen size.
|
|
10
|
+
*/
|
|
11
|
+
class WebXScreenInstruction extends WebXInstruction_1.WebXInstruction {
|
|
12
|
+
/**
|
|
13
|
+
* Constructs a new WebXScreenInstruction.
|
|
14
|
+
*/
|
|
15
|
+
constructor() {
|
|
16
|
+
super(WebXInstructionType_1.WebXInstructionType.SCREEN);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
exports.WebXScreenInstruction = WebXScreenInstruction;
|
|
20
|
+
//# sourceMappingURL=WebXScreenInstruction.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WebXScreenInstruction.js","sourceRoot":"","sources":["../../../src/instruction/WebXScreenInstruction.ts"],"names":[],"mappings":";;;AAAA,uDAAoD;AACpD,+DAA4D;AAE5D;;;;GAIG;AACH,MAAa,qBAAsB,SAAQ,iCAAe;IACxD;;OAEG;IACH;QACE,KAAK,CAAC,yCAAmB,CAAC,MAAM,CAAC,CAAC;IACpC,CAAC;CACF;AAPD,sDAOC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { WebXInstruction } from './WebXInstruction';
|
|
2
|
+
/**
|
|
3
|
+
* Represents an instruction to request a shape image for a specific window (stencil image).
|
|
4
|
+
*
|
|
5
|
+
* This instruction is used to fetch the stencil image data for a window from the WebX Engine.
|
|
6
|
+
*/
|
|
7
|
+
export declare class WebXShapeInstruction extends WebXInstruction {
|
|
8
|
+
/**
|
|
9
|
+
* The ID of the window for which the image is requested.
|
|
10
|
+
*/
|
|
11
|
+
readonly windowId: number;
|
|
12
|
+
/**
|
|
13
|
+
* Constructs a new WebXImageInstruction.
|
|
14
|
+
*
|
|
15
|
+
* @param windowId The ID of the window.
|
|
16
|
+
*/
|
|
17
|
+
constructor(windowId: number);
|
|
18
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WebXShapeInstruction = void 0;
|
|
4
|
+
const WebXInstruction_1 = require("./WebXInstruction");
|
|
5
|
+
const WebXInstructionType_1 = require("./WebXInstructionType");
|
|
6
|
+
/**
|
|
7
|
+
* Represents an instruction to request a shape image for a specific window (stencil image).
|
|
8
|
+
*
|
|
9
|
+
* This instruction is used to fetch the stencil image data for a window from the WebX Engine.
|
|
10
|
+
*/
|
|
11
|
+
class WebXShapeInstruction extends WebXInstruction_1.WebXInstruction {
|
|
12
|
+
/**
|
|
13
|
+
* Constructs a new WebXImageInstruction.
|
|
14
|
+
*
|
|
15
|
+
* @param windowId The ID of the window.
|
|
16
|
+
*/
|
|
17
|
+
constructor(windowId) {
|
|
18
|
+
super(WebXInstructionType_1.WebXInstructionType.SHAPE);
|
|
19
|
+
this.windowId = windowId;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
exports.WebXShapeInstruction = WebXShapeInstruction;
|
|
23
|
+
//# sourceMappingURL=WebXShapeInstruction.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WebXShapeInstruction.js","sourceRoot":"","sources":["../../../src/instruction/WebXShapeInstruction.ts"],"names":[],"mappings":";;;AAAA,uDAAoD;AACpD,+DAA4D;AAE5D;;;;GAIG;AACH,MAAa,oBAAqB,SAAQ,iCAAe;IAMvD;;;;OAIG;IACH,YAAY,QAAgB;QAC1B,KAAK,CAAC,yCAAmB,CAAC,KAAK,CAAC,CAAC;QACjC,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAC3B,CAAC;CACF;AAfD,oDAeC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { WebXInstruction } from './WebXInstruction';
|
|
2
|
+
/**
|
|
3
|
+
* Represents an instruction to request the list of visible windows.
|
|
4
|
+
*
|
|
5
|
+
* This instruction is used to fetch information about all currently visible
|
|
6
|
+
* windows from the WebX Engine.
|
|
7
|
+
*/
|
|
8
|
+
export declare class WebXWindowsInstruction extends WebXInstruction {
|
|
9
|
+
/**
|
|
10
|
+
* Constructs a new WebXWindowsInstruction.
|
|
11
|
+
*/
|
|
12
|
+
constructor();
|
|
13
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WebXWindowsInstruction = void 0;
|
|
4
|
+
const WebXInstruction_1 = require("./WebXInstruction");
|
|
5
|
+
const WebXInstructionType_1 = require("./WebXInstructionType");
|
|
6
|
+
/**
|
|
7
|
+
* Represents an instruction to request the list of visible windows.
|
|
8
|
+
*
|
|
9
|
+
* This instruction is used to fetch information about all currently visible
|
|
10
|
+
* windows from the WebX Engine.
|
|
11
|
+
*/
|
|
12
|
+
class WebXWindowsInstruction extends WebXInstruction_1.WebXInstruction {
|
|
13
|
+
/**
|
|
14
|
+
* Constructs a new WebXWindowsInstruction.
|
|
15
|
+
*/
|
|
16
|
+
constructor() {
|
|
17
|
+
super(WebXInstructionType_1.WebXInstructionType.WINDOWS);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
exports.WebXWindowsInstruction = WebXWindowsInstruction;
|
|
21
|
+
//# sourceMappingURL=WebXWindowsInstruction.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WebXWindowsInstruction.js","sourceRoot":"","sources":["../../../src/instruction/WebXWindowsInstruction.ts"],"names":[],"mappings":";;;AAAA,uDAAoD;AACpD,+DAA4D;AAE5D;;;;;GAKG;AACH,MAAa,sBAAuB,SAAQ,iCAAe;IACzD;;OAEG;IACH;QACE,KAAK,CAAC,yCAAmB,CAAC,OAAO,CAAC,CAAC;IACrC,CAAC;CACF;AAPD,wDAOC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export * from './WebXInstruction';
|
|
2
|
+
export * from './WebXInstructionResponse';
|
|
3
|
+
export * from './WebXInstructionType';
|
|
4
|
+
export * from './WebXConnectInstruction';
|
|
5
|
+
export * from './WebXScreenInstruction';
|
|
6
|
+
export * from './WebXWindowsInstruction';
|
|
7
|
+
export * from './WebXImageInstruction';
|
|
8
|
+
export * from './WebXMouseInstruction';
|
|
9
|
+
export * from './WebXKeyboardInstruction';
|
|
10
|
+
export * from './WebXCursorImageInstruction';
|
|
11
|
+
export * from './WebXQualityInstruction';
|
|
12
|
+
export * from './WebXPongInstruction';
|
|
13
|
+
export * from './WebXDataAckInstruction';
|
|
14
|
+
export * from './WebXClipboardInstruction';
|
|
15
|
+
export * from './WebXShapeInstruction';
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./WebXInstruction"), exports);
|
|
18
|
+
__exportStar(require("./WebXInstructionResponse"), exports);
|
|
19
|
+
__exportStar(require("./WebXInstructionType"), exports);
|
|
20
|
+
__exportStar(require("./WebXConnectInstruction"), exports);
|
|
21
|
+
__exportStar(require("./WebXScreenInstruction"), exports);
|
|
22
|
+
__exportStar(require("./WebXWindowsInstruction"), exports);
|
|
23
|
+
__exportStar(require("./WebXImageInstruction"), exports);
|
|
24
|
+
__exportStar(require("./WebXMouseInstruction"), exports);
|
|
25
|
+
__exportStar(require("./WebXKeyboardInstruction"), exports);
|
|
26
|
+
__exportStar(require("./WebXCursorImageInstruction"), exports);
|
|
27
|
+
__exportStar(require("./WebXQualityInstruction"), exports);
|
|
28
|
+
__exportStar(require("./WebXPongInstruction"), exports);
|
|
29
|
+
__exportStar(require("./WebXDataAckInstruction"), exports);
|
|
30
|
+
__exportStar(require("./WebXClipboardInstruction"), exports);
|
|
31
|
+
__exportStar(require("./WebXShapeInstruction"), exports);
|
|
32
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/instruction/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,4DAA0C;AAC1C,wDAAsC;AACtC,2DAAyC;AACzC,0DAAwC;AACxC,2DAAyC;AACzC,yDAAuC;AACvC,yDAAuC;AACvC,4DAA0C;AAC1C,+DAA6C;AAC7C,2DAAyC;AACzC,wDAAsC;AACtC,2DAAyC;AACzC,6DAA2C;AAC3C,yDAAuC"}
|