@illgrenoble/webx-client 0.9.0 → 1.0.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/dist/WebXClient.d.ts +148 -16
- package/dist/WebXClient.js +148 -22
- package/dist/WebXClient.js.map +1 -1
- package/dist/display/WebXCursor.d.ts +65 -0
- package/dist/display/WebXCursor.js +65 -0
- package/dist/display/WebXCursor.js.map +1 -1
- package/dist/display/WebXCursorFactory.d.ts +18 -0
- package/dist/display/WebXCursorFactory.js +39 -16
- package/dist/display/WebXCursorFactory.js.map +1 -1
- package/dist/display/WebXDisplay.d.ts +139 -8
- package/dist/display/WebXDisplay.js +140 -8
- package/dist/display/WebXDisplay.js.map +1 -1
- package/dist/display/WebXSubImage.d.ts +42 -11
- package/dist/display/WebXSubImage.js +18 -12
- package/dist/display/WebXSubImage.js.map +1 -1
- package/dist/display/WebXTextureFactory.d.ts +30 -0
- package/dist/display/WebXTextureFactory.js +56 -19
- package/dist/display/WebXTextureFactory.js.map +1 -1
- package/dist/display/WebXWindow.d.ts +152 -0
- package/dist/display/WebXWindow.js +152 -0
- package/dist/display/WebXWindow.js.map +1 -1
- package/dist/display/WebXWindowProperties.d.ts +31 -6
- package/dist/display/WebXWindowProperties.js +16 -9
- package/dist/display/WebXWindowProperties.js.map +1 -1
- package/dist/input/WebXKeyboard.d.ts +40 -5
- package/dist/input/WebXKeyboard.js +52 -14
- package/dist/input/WebXKeyboard.js.map +1 -1
- package/dist/input/WebXMouse.d.ts +9 -0
- package/dist/input/WebXMouse.js +9 -4
- package/dist/input/WebXMouse.js.map +1 -1
- package/dist/input/keyboard/WebXKeyEvent.d.ts +35 -3
- package/dist/input/keyboard/WebXKeyEvent.js +115 -3
- package/dist/input/keyboard/WebXKeyEvent.js.map +1 -1
- package/dist/input/keyboard/WebXKeyPressEvent.d.ts +25 -8
- package/dist/input/keyboard/WebXKeyPressEvent.js +29 -11
- package/dist/input/keyboard/WebXKeyPressEvent.js.map +1 -1
- package/dist/input/keyboard/WebXKeyUpEvent.d.ts +30 -9
- package/dist/input/keyboard/WebXKeyUpEvent.js +19 -16
- package/dist/input/keyboard/WebXKeyUpEvent.js.map +1 -1
- package/dist/input/keyboard/WebXKeyboardModifierState.d.ts +69 -8
- package/dist/input/keyboard/WebXKeyboardModifierState.js +69 -8
- package/dist/input/keyboard/WebXKeyboardModifierState.js.map +1 -1
- package/dist/input/keyboard/WebXKeyboardUtils.d.ts +18 -2
- package/dist/input/keyboard/WebXKeyboardUtils.js +18 -2
- package/dist/input/keyboard/WebXKeyboardUtils.js.map +1 -1
- package/dist/input/keyboard/WebXKeydownEvent.d.ts +26 -9
- package/dist/input/keyboard/WebXKeydownEvent.js +17 -22
- package/dist/input/keyboard/WebXKeydownEvent.js.map +1 -1
- package/dist/input/mouse/WebXMouseState.d.ts +113 -2
- package/dist/input/mouse/WebXMouseState.js +104 -2
- package/dist/input/mouse/WebXMouseState.js.map +1 -1
- package/dist/instruction/WebXConnectInstruction.d.ts +16 -1
- package/dist/instruction/WebXConnectInstruction.js +13 -1
- package/dist/instruction/WebXConnectInstruction.js.map +1 -1
- package/dist/instruction/WebXCursorImageInstruction.d.ts +15 -3
- package/dist/instruction/WebXCursorImageInstruction.js +12 -5
- package/dist/instruction/WebXCursorImageInstruction.js.map +1 -1
- package/dist/instruction/WebXDataAckInstruction.d.ts +22 -5
- package/dist/instruction/WebXDataAckInstruction.js +15 -9
- package/dist/instruction/WebXDataAckInstruction.js.map +1 -1
- package/dist/instruction/WebXImageInstruction.d.ts +14 -3
- package/dist/instruction/WebXImageInstruction.js +11 -7
- package/dist/instruction/WebXImageInstruction.js.map +1 -1
- package/dist/instruction/WebXInstruction.d.ts +26 -10
- package/dist/instruction/WebXInstruction.js +19 -25
- package/dist/instruction/WebXInstruction.js.map +1 -1
- package/dist/instruction/WebXInstructionResponse.d.ts +55 -2
- package/dist/instruction/WebXInstructionResponse.js +40 -2
- package/dist/instruction/WebXInstructionResponse.js.map +1 -1
- package/dist/instruction/WebXInstructionType.d.ts +40 -0
- package/dist/instruction/WebXInstructionType.js +40 -0
- package/dist/instruction/WebXInstructionType.js.map +1 -1
- package/dist/instruction/WebXKeyboardInstruction.d.ts +19 -6
- package/dist/instruction/WebXKeyboardInstruction.js +13 -14
- package/dist/instruction/WebXKeyboardInstruction.js.map +1 -1
- package/dist/instruction/WebXMouseInstruction.d.ts +24 -9
- package/dist/instruction/WebXMouseInstruction.js +15 -21
- package/dist/instruction/WebXMouseInstruction.js.map +1 -1
- package/dist/instruction/WebXPongInstruction.d.ts +15 -3
- package/dist/instruction/WebXPongInstruction.js +12 -5
- package/dist/instruction/WebXPongInstruction.js.map +1 -1
- package/dist/instruction/WebXQualityInstruction.d.ts +16 -4
- package/dist/instruction/WebXQualityInstruction.js +13 -8
- package/dist/instruction/WebXQualityInstruction.js.map +1 -1
- package/dist/instruction/WebXScreenInstruction.d.ts +8 -0
- package/dist/instruction/WebXScreenInstruction.js +8 -0
- package/dist/instruction/WebXScreenInstruction.js.map +1 -1
- package/dist/instruction/WebXWindowsInstruction.d.ts +9 -0
- package/dist/instruction/WebXWindowsInstruction.js +9 -0
- package/dist/instruction/WebXWindowsInstruction.js.map +1 -1
- package/dist/message/WebXCursorImageMessage.d.ts +42 -13
- package/dist/message/WebXCursorImageMessage.js +24 -25
- package/dist/message/WebXCursorImageMessage.js.map +1 -1
- package/dist/message/WebXImageMessage.d.ts +37 -11
- package/dist/message/WebXImageMessage.js +22 -21
- package/dist/message/WebXImageMessage.js.map +1 -1
- package/dist/message/WebXMessage.d.ts +22 -6
- package/dist/message/WebXMessage.js +15 -9
- package/dist/message/WebXMessage.js.map +1 -1
- package/dist/message/WebXMessageType.d.ts +35 -0
- package/dist/message/WebXMessageType.js +35 -0
- package/dist/message/WebXMessageType.js.map +1 -1
- package/dist/message/WebXMouseMessage.d.ts +27 -7
- package/dist/message/WebXMouseMessage.js +18 -13
- package/dist/message/WebXMouseMessage.js.map +1 -1
- package/dist/message/WebXPingMessage.d.ts +9 -0
- package/dist/message/WebXPingMessage.js +9 -0
- package/dist/message/WebXPingMessage.js.map +1 -1
- package/dist/message/WebXQualityMessage.d.ts +36 -11
- package/dist/message/WebXQualityMessage.js +21 -21
- package/dist/message/WebXQualityMessage.js.map +1 -1
- package/dist/message/WebXScreenMessage.d.ts +17 -3
- package/dist/message/WebXScreenMessage.js +14 -5
- package/dist/message/WebXScreenMessage.js.map +1 -1
- package/dist/message/WebXSubImagesMessage.d.ts +27 -7
- package/dist/message/WebXSubImagesMessage.js +18 -13
- package/dist/message/WebXSubImagesMessage.js.map +1 -1
- package/dist/message/WebXWindowsMessage.d.ts +17 -3
- package/dist/message/WebXWindowsMessage.js +14 -5
- package/dist/message/WebXWindowsMessage.js.map +1 -1
- package/dist/tracer/WebXDebugImageMessageHandler.d.ts +30 -0
- package/dist/tracer/WebXDebugImageMessageHandler.js +30 -0
- package/dist/tracer/WebXDebugImageMessageHandler.js.map +1 -1
- package/dist/tracer/WebXHandler.d.ts +11 -0
- package/dist/tracer/WebXInstructionHandler.d.ts +17 -0
- package/dist/tracer/WebXInstructionHandler.js +6 -0
- package/dist/tracer/WebXInstructionHandler.js.map +1 -1
- package/dist/tracer/WebXMessageHandler.d.ts +17 -0
- package/dist/tracer/WebXMessageHandler.js +6 -0
- package/dist/tracer/WebXMessageHandler.js.map +1 -1
- package/dist/tracer/WebXStatsHandler.d.ts +16 -0
- package/dist/tracer/WebXStatsHandler.js +6 -0
- package/dist/tracer/WebXStatsHandler.js.map +1 -1
- package/dist/transport/WebXBinarySerializer.d.ts +20 -0
- package/dist/transport/WebXBinarySerializer.js +20 -0
- package/dist/transport/WebXBinarySerializer.js.map +1 -1
- package/dist/transport/WebXInstructionBuffer.d.ts +19 -0
- package/dist/transport/WebXInstructionBuffer.js +19 -0
- package/dist/transport/WebXInstructionBuffer.js.map +1 -1
- package/dist/transport/WebXInstructionEncoder.d.ts +138 -0
- package/dist/transport/WebXInstructionEncoder.js +138 -110
- package/dist/transport/WebXInstructionEncoder.js.map +1 -1
- package/dist/transport/WebXMessageBuffer.d.ts +63 -8
- package/dist/transport/WebXMessageBuffer.js +51 -16
- package/dist/transport/WebXMessageBuffer.js.map +1 -1
- package/dist/transport/WebXMessageDecoder.d.ts +69 -0
- package/dist/transport/WebXMessageDecoder.js +96 -18
- package/dist/transport/WebXMessageDecoder.js.map +1 -1
- package/dist/tunnel/WebXTunnel.d.ts +71 -0
- package/dist/tunnel/WebXTunnel.js +51 -4
- package/dist/tunnel/WebXTunnel.js.map +1 -1
- package/dist/tunnel/WebXWebSocketTunnel.d.ts +26 -0
- package/dist/tunnel/WebXWebSocketTunnel.js +26 -0
- package/dist/tunnel/WebXWebSocketTunnel.js.map +1 -1
- package/dist/utils/ColorGenerator.d.ts +19 -0
- package/dist/utils/ColorGenerator.js +19 -0
- package/dist/utils/ColorGenerator.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,13 @@
|
|
|
1
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
|
+
*/
|
|
2
8
|
export declare class WebXWindowsInstruction extends WebXInstruction {
|
|
9
|
+
/**
|
|
10
|
+
* Constructs a new WebXWindowsInstruction.
|
|
11
|
+
*/
|
|
3
12
|
constructor();
|
|
4
13
|
}
|
|
@@ -3,7 +3,16 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.WebXWindowsInstruction = void 0;
|
|
4
4
|
const WebXInstruction_1 = require("./WebXInstruction");
|
|
5
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
|
+
*/
|
|
6
12
|
class WebXWindowsInstruction extends WebXInstruction_1.WebXInstruction {
|
|
13
|
+
/**
|
|
14
|
+
* Constructs a new WebXWindowsInstruction.
|
|
15
|
+
*/
|
|
7
16
|
constructor() {
|
|
8
17
|
super(WebXInstructionType_1.WebXInstructionType.WINDOWS);
|
|
9
18
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WebXWindowsInstruction.js","sourceRoot":"","sources":["../../src/instruction/WebXWindowsInstruction.ts"],"names":[],"mappings":";;;AAAA,uDAAoD;AACpD,+DAA4D;AAE5D,MAAa,sBAAuB,SAAQ,iCAAe;IACzD;QACE,KAAK,CAAC,yCAAmB,CAAC,OAAO,CAAC,CAAC;IACrC,CAAC;CACF;
|
|
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"}
|
|
@@ -1,17 +1,46 @@
|
|
|
1
1
|
import { WebXMessage } from './WebXMessage';
|
|
2
2
|
import { Texture } from 'three';
|
|
3
|
+
/**
|
|
4
|
+
* Represents a message containing cursor image data.
|
|
5
|
+
*
|
|
6
|
+
* This message is received from the WebX Engine and contains details about
|
|
7
|
+
* the cursor's appearance, including its texture and hotspot coordinates.
|
|
8
|
+
*/
|
|
3
9
|
export declare class WebXCursorImageMessage extends WebXMessage {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
10
|
+
/**
|
|
11
|
+
* The ID of the cursor associated with this message.
|
|
12
|
+
*/
|
|
13
|
+
readonly cursorId: number;
|
|
14
|
+
/**
|
|
15
|
+
* The x-coordinate of the cursor's hotspot.
|
|
16
|
+
*/
|
|
17
|
+
readonly xHot: number;
|
|
18
|
+
/**
|
|
19
|
+
* The y-coordinate of the cursor's hotspot.
|
|
20
|
+
*/
|
|
21
|
+
readonly yHot: number;
|
|
22
|
+
/**
|
|
23
|
+
* The texture of the cursor.
|
|
24
|
+
*/
|
|
25
|
+
readonly texture: Texture;
|
|
26
|
+
/**
|
|
27
|
+
* The x-coordinate of the cursor's position.
|
|
28
|
+
*/
|
|
29
|
+
readonly x: number;
|
|
30
|
+
/**
|
|
31
|
+
* The y-coordinate of the cursor's position.
|
|
32
|
+
*/
|
|
33
|
+
readonly y: number;
|
|
34
|
+
/**
|
|
35
|
+
* Constructs a new WebXCursorImageMessage.
|
|
36
|
+
*
|
|
37
|
+
* @param cursorId The ID of the cursor.
|
|
38
|
+
* @param xHot The x-coordinate of the cursor's hotspot.
|
|
39
|
+
* @param yHot The y-coordinate of the cursor's hotspot.
|
|
40
|
+
* @param texture The texture of the cursor.
|
|
41
|
+
* @param x The x-coordinate of the cursor's position.
|
|
42
|
+
* @param y The y-coordinate of the cursor's position.
|
|
43
|
+
* @param commandId The ID of the command associated with this message.
|
|
44
|
+
*/
|
|
45
|
+
constructor(x: number, y: number, xHot: number, yHot: number, cursorId: number, texture: Texture, commandId: number);
|
|
17
46
|
}
|
|
@@ -3,33 +3,32 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.WebXCursorImageMessage = void 0;
|
|
4
4
|
const WebXMessage_1 = require("./WebXMessage");
|
|
5
5
|
const WebXMessageType_1 = require("./WebXMessageType");
|
|
6
|
+
/**
|
|
7
|
+
* Represents a message containing cursor image data.
|
|
8
|
+
*
|
|
9
|
+
* This message is received from the WebX Engine and contains details about
|
|
10
|
+
* the cursor's appearance, including its texture and hotspot coordinates.
|
|
11
|
+
*/
|
|
6
12
|
class WebXCursorImageMessage extends WebXMessage_1.WebXMessage {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
get cursorId() {
|
|
20
|
-
return this._cursorId;
|
|
21
|
-
}
|
|
22
|
-
get texture() {
|
|
23
|
-
return this._texture;
|
|
24
|
-
}
|
|
25
|
-
constructor(_x, _y, _xHot, _yHot, _cursorId, _texture, commandId) {
|
|
13
|
+
/**
|
|
14
|
+
* Constructs a new WebXCursorImageMessage.
|
|
15
|
+
*
|
|
16
|
+
* @param cursorId The ID of the cursor.
|
|
17
|
+
* @param xHot The x-coordinate of the cursor's hotspot.
|
|
18
|
+
* @param yHot The y-coordinate of the cursor's hotspot.
|
|
19
|
+
* @param texture The texture of the cursor.
|
|
20
|
+
* @param x The x-coordinate of the cursor's position.
|
|
21
|
+
* @param y The y-coordinate of the cursor's position.
|
|
22
|
+
* @param commandId The ID of the command associated with this message.
|
|
23
|
+
*/
|
|
24
|
+
constructor(x, y, xHot, yHot, cursorId, texture, commandId) {
|
|
26
25
|
super(WebXMessageType_1.WebXMessageType.CURSOR_IMAGE, commandId);
|
|
27
|
-
this.
|
|
28
|
-
this.
|
|
29
|
-
this.
|
|
30
|
-
this.
|
|
31
|
-
this.
|
|
32
|
-
this.
|
|
26
|
+
this.x = x;
|
|
27
|
+
this.y = y;
|
|
28
|
+
this.xHot = xHot;
|
|
29
|
+
this.yHot = yHot;
|
|
30
|
+
this.cursorId = cursorId;
|
|
31
|
+
this.texture = texture;
|
|
33
32
|
}
|
|
34
33
|
}
|
|
35
34
|
exports.WebXCursorImageMessage = WebXCursorImageMessage;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WebXCursorImageMessage.js","sourceRoot":"","sources":["../../src/message/WebXCursorImageMessage.ts"],"names":[],"mappings":";;;AAAA,+CAA4C;AAC5C,uDAAoD;AAGpD,MAAa,sBAAuB,SAAQ,yBAAW;
|
|
1
|
+
{"version":3,"file":"WebXCursorImageMessage.js","sourceRoot":"","sources":["../../src/message/WebXCursorImageMessage.ts"],"names":[],"mappings":";;;AAAA,+CAA4C;AAC5C,uDAAoD;AAGpD;;;;;GAKG;AACH,MAAa,sBAAuB,SAAQ,yBAAW;IA+BrD;;;;;;;;;;OAUG;IACH,YAAY,CAAS,EAAE,CAAS,EAAE,IAAY,EAAE,IAAY,EAAE,QAAgB,EAAE,OAAgB,EAAE,SAAiB;QACjH,KAAK,CAAC,iCAAe,CAAC,YAAY,EAAE,SAAS,CAAC,CAAC;QAC/C,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC;QACX,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC;QACX,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;CACF;AAnDD,wDAmDC"}
|
|
@@ -1,15 +1,41 @@
|
|
|
1
1
|
import { WebXMessage } from './WebXMessage';
|
|
2
2
|
import { Texture } from 'three';
|
|
3
|
+
/**
|
|
4
|
+
* Represents a message containing image data for a window.
|
|
5
|
+
*
|
|
6
|
+
* This message is received from the WebX Engine and contains the color and
|
|
7
|
+
* alpha textures for a specific window.
|
|
8
|
+
*/
|
|
3
9
|
export declare class WebXImageMessage extends WebXMessage {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
10
|
+
/**
|
|
11
|
+
* The ID of the window associated with this image.
|
|
12
|
+
*/
|
|
13
|
+
readonly windowId: number;
|
|
14
|
+
/**
|
|
15
|
+
* The depth of the image (e.g., 24-bit or 32-bit).
|
|
16
|
+
*/
|
|
17
|
+
readonly depth: number;
|
|
18
|
+
/**
|
|
19
|
+
* The color texture of the image.
|
|
20
|
+
*/
|
|
21
|
+
readonly colorMap: Texture;
|
|
22
|
+
/**
|
|
23
|
+
* The alpha texture of the image.
|
|
24
|
+
*/
|
|
25
|
+
readonly alphaMap: Texture;
|
|
26
|
+
/**
|
|
27
|
+
* The size of the image.
|
|
28
|
+
*/
|
|
29
|
+
readonly size: number;
|
|
30
|
+
/**
|
|
31
|
+
* Constructs a new WebXImageMessage.
|
|
32
|
+
*
|
|
33
|
+
* @param windowId The ID of the window.
|
|
34
|
+
* @param depth The depth of the image.
|
|
35
|
+
* @param colorMap The color texture.
|
|
36
|
+
* @param alphaMap The alpha texture.
|
|
37
|
+
* @param commandId The ID of the command associated with this message.
|
|
38
|
+
* @param size The size of the image.
|
|
39
|
+
*/
|
|
40
|
+
constructor(windowId: number, depth: number, colorMap: Texture, alphaMap: Texture, commandId: number, size: number);
|
|
15
41
|
}
|
|
@@ -3,29 +3,30 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.WebXImageMessage = void 0;
|
|
4
4
|
const WebXMessage_1 = require("./WebXMessage");
|
|
5
5
|
const WebXMessageType_1 = require("./WebXMessageType");
|
|
6
|
+
/**
|
|
7
|
+
* Represents a message containing image data for a window.
|
|
8
|
+
*
|
|
9
|
+
* This message is received from the WebX Engine and contains the color and
|
|
10
|
+
* alpha textures for a specific window.
|
|
11
|
+
*/
|
|
6
12
|
class WebXImageMessage extends WebXMessage_1.WebXMessage {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}
|
|
19
|
-
get size() {
|
|
20
|
-
return this._size;
|
|
21
|
-
}
|
|
22
|
-
constructor(_windowId, _depth, _colorMap, _alphaMap, commandId, _size) {
|
|
13
|
+
/**
|
|
14
|
+
* Constructs a new WebXImageMessage.
|
|
15
|
+
*
|
|
16
|
+
* @param windowId The ID of the window.
|
|
17
|
+
* @param depth The depth of the image.
|
|
18
|
+
* @param colorMap The color texture.
|
|
19
|
+
* @param alphaMap The alpha texture.
|
|
20
|
+
* @param commandId The ID of the command associated with this message.
|
|
21
|
+
* @param size The size of the image.
|
|
22
|
+
*/
|
|
23
|
+
constructor(windowId, depth, colorMap, alphaMap, commandId, size) {
|
|
23
24
|
super(WebXMessageType_1.WebXMessageType.IMAGE, commandId);
|
|
24
|
-
this.
|
|
25
|
-
this.
|
|
26
|
-
this.
|
|
27
|
-
this.
|
|
28
|
-
this.
|
|
25
|
+
this.windowId = windowId;
|
|
26
|
+
this.depth = depth;
|
|
27
|
+
this.colorMap = colorMap;
|
|
28
|
+
this.alphaMap = alphaMap;
|
|
29
|
+
this.size = size;
|
|
29
30
|
}
|
|
30
31
|
}
|
|
31
32
|
exports.WebXImageMessage = WebXImageMessage;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WebXImageMessage.js","sourceRoot":"","sources":["../../src/message/WebXImageMessage.ts"],"names":[],"mappings":";;;AAAA,+CAA4C;AAC5C,uDAAoD;AAGpD,MAAa,gBAAiB,SAAQ,yBAAW;
|
|
1
|
+
{"version":3,"file":"WebXImageMessage.js","sourceRoot":"","sources":["../../src/message/WebXImageMessage.ts"],"names":[],"mappings":";;;AAAA,+CAA4C;AAC5C,uDAAoD;AAGpD;;;;;GAKG;AACH,MAAa,gBAAiB,SAAQ,yBAAW;IA0B/C;;;;;;;;;OASG;IACH,YAAY,QAAgB,EAAE,KAAa,EAAE,QAAiB,EAAE,QAAiB,EAAE,SAAiB,EAAE,IAAY;QAChH,KAAK,CAAC,iCAAe,CAAC,KAAK,EAAE,SAAS,CAAC,CAAC;QACxC,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACnB,CAAC;CACF;AA5CD,4CA4CC"}
|
|
@@ -1,8 +1,24 @@
|
|
|
1
1
|
import { WebXMessageType } from './WebXMessageType';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
/**
|
|
3
|
+
* Base class for all WebX messages.
|
|
4
|
+
*
|
|
5
|
+
* Messages are data structures received from the WebX Engine, containing
|
|
6
|
+
* information about the state of the remote desktop or responses to instructions.
|
|
7
|
+
*/
|
|
8
|
+
export declare abstract class WebXMessage {
|
|
9
|
+
/**
|
|
10
|
+
* The type of the message.
|
|
11
|
+
*/
|
|
12
|
+
readonly type: WebXMessageType;
|
|
13
|
+
/**
|
|
14
|
+
* The ID of the command associated with this message.
|
|
15
|
+
*/
|
|
16
|
+
readonly commandId: number;
|
|
17
|
+
/**
|
|
18
|
+
* Constructs a new WebXMessage.
|
|
19
|
+
*
|
|
20
|
+
* @param type The type of the message.
|
|
21
|
+
* @param commandId The ID of the command associated with this message.
|
|
22
|
+
*/
|
|
23
|
+
constructor(type: WebXMessageType, commandId?: number);
|
|
8
24
|
}
|
|
@@ -1,16 +1,22 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.WebXMessage = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Base class for all WebX messages.
|
|
6
|
+
*
|
|
7
|
+
* Messages are data structures received from the WebX Engine, containing
|
|
8
|
+
* information about the state of the remote desktop or responses to instructions.
|
|
9
|
+
*/
|
|
4
10
|
class WebXMessage {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
constructor(
|
|
12
|
-
this.
|
|
13
|
-
this.
|
|
11
|
+
/**
|
|
12
|
+
* Constructs a new WebXMessage.
|
|
13
|
+
*
|
|
14
|
+
* @param type The type of the message.
|
|
15
|
+
* @param commandId The ID of the command associated with this message.
|
|
16
|
+
*/
|
|
17
|
+
constructor(type, commandId = 0) {
|
|
18
|
+
this.type = type;
|
|
19
|
+
this.commandId = commandId;
|
|
14
20
|
}
|
|
15
21
|
}
|
|
16
22
|
exports.WebXMessage = WebXMessage;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WebXMessage.js","sourceRoot":"","sources":["../../src/message/WebXMessage.ts"],"names":[],"mappings":";;;AAEA,
|
|
1
|
+
{"version":3,"file":"WebXMessage.js","sourceRoot":"","sources":["../../src/message/WebXMessage.ts"],"names":[],"mappings":";;;AAEA;;;;;GAKG;AACH,MAAsB,WAAW;IAW/B;;;;;OAKG;IACH,YAAY,IAAqB,EAAE,YAAoB,CAAC;QACtD,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;IAC7B,CAAC;CACF;AArBD,kCAqBC"}
|
|
@@ -1,12 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Enum representing the types of WebX messages.
|
|
3
|
+
*
|
|
4
|
+
* These types are used to categorize messages received from the WebX Engine.
|
|
5
|
+
*/
|
|
1
6
|
export declare enum WebXMessageType {
|
|
7
|
+
/**
|
|
8
|
+
* Message indicating a connection event (handled by the WebX Relay).
|
|
9
|
+
*/
|
|
2
10
|
CONNECTION = 1,
|
|
11
|
+
/**
|
|
12
|
+
* Message containing information about visible windows.
|
|
13
|
+
*/
|
|
3
14
|
WINDOWS = 2,
|
|
15
|
+
/**
|
|
16
|
+
* Message containing image data for a window.
|
|
17
|
+
*/
|
|
4
18
|
IMAGE = 3,
|
|
19
|
+
/**
|
|
20
|
+
* Message containing screen information.
|
|
21
|
+
*/
|
|
5
22
|
SCREEN = 4,
|
|
23
|
+
/**
|
|
24
|
+
* Message containing sub-image data for a window.
|
|
25
|
+
*/
|
|
6
26
|
SUBIMAGES = 5,
|
|
27
|
+
/**
|
|
28
|
+
* Message containing mouse state updates.
|
|
29
|
+
*/
|
|
7
30
|
MOUSE = 6,
|
|
31
|
+
/**
|
|
32
|
+
* Message containing cursor image data.
|
|
33
|
+
*/
|
|
8
34
|
CURSOR_IMAGE = 7,
|
|
35
|
+
/**
|
|
36
|
+
* Ping message for connection health checks.
|
|
37
|
+
*/
|
|
9
38
|
PING = 8,
|
|
39
|
+
/**
|
|
40
|
+
* Message indicating a disconnection event (handled by the WebX Relay).
|
|
41
|
+
*/
|
|
10
42
|
DISCONNECT = 9,
|
|
43
|
+
/**
|
|
44
|
+
* Message containing quality-related information.
|
|
45
|
+
*/
|
|
11
46
|
QUALITY = 10
|
|
12
47
|
}
|
|
@@ -1,17 +1,52 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.WebXMessageType = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Enum representing the types of WebX messages.
|
|
6
|
+
*
|
|
7
|
+
* These types are used to categorize messages received from the WebX Engine.
|
|
8
|
+
*/
|
|
4
9
|
var WebXMessageType;
|
|
5
10
|
(function (WebXMessageType) {
|
|
11
|
+
/**
|
|
12
|
+
* Message indicating a connection event (handled by the WebX Relay).
|
|
13
|
+
*/
|
|
6
14
|
WebXMessageType[WebXMessageType["CONNECTION"] = 1] = "CONNECTION";
|
|
15
|
+
/**
|
|
16
|
+
* Message containing information about visible windows.
|
|
17
|
+
*/
|
|
7
18
|
WebXMessageType[WebXMessageType["WINDOWS"] = 2] = "WINDOWS";
|
|
19
|
+
/**
|
|
20
|
+
* Message containing image data for a window.
|
|
21
|
+
*/
|
|
8
22
|
WebXMessageType[WebXMessageType["IMAGE"] = 3] = "IMAGE";
|
|
23
|
+
/**
|
|
24
|
+
* Message containing screen information.
|
|
25
|
+
*/
|
|
9
26
|
WebXMessageType[WebXMessageType["SCREEN"] = 4] = "SCREEN";
|
|
27
|
+
/**
|
|
28
|
+
* Message containing sub-image data for a window.
|
|
29
|
+
*/
|
|
10
30
|
WebXMessageType[WebXMessageType["SUBIMAGES"] = 5] = "SUBIMAGES";
|
|
31
|
+
/**
|
|
32
|
+
* Message containing mouse state updates.
|
|
33
|
+
*/
|
|
11
34
|
WebXMessageType[WebXMessageType["MOUSE"] = 6] = "MOUSE";
|
|
35
|
+
/**
|
|
36
|
+
* Message containing cursor image data.
|
|
37
|
+
*/
|
|
12
38
|
WebXMessageType[WebXMessageType["CURSOR_IMAGE"] = 7] = "CURSOR_IMAGE";
|
|
39
|
+
/**
|
|
40
|
+
* Ping message for connection health checks.
|
|
41
|
+
*/
|
|
13
42
|
WebXMessageType[WebXMessageType["PING"] = 8] = "PING";
|
|
43
|
+
/**
|
|
44
|
+
* Message indicating a disconnection event (handled by the WebX Relay).
|
|
45
|
+
*/
|
|
14
46
|
WebXMessageType[WebXMessageType["DISCONNECT"] = 9] = "DISCONNECT";
|
|
47
|
+
/**
|
|
48
|
+
* Message containing quality-related information.
|
|
49
|
+
*/
|
|
15
50
|
WebXMessageType[WebXMessageType["QUALITY"] = 10] = "QUALITY";
|
|
16
51
|
})(WebXMessageType || (exports.WebXMessageType = WebXMessageType = {}));
|
|
17
52
|
//# sourceMappingURL=WebXMessageType.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WebXMessageType.js","sourceRoot":"","sources":["../../src/message/WebXMessageType.ts"],"names":[],"mappings":";;;AAAA,IAAY,
|
|
1
|
+
{"version":3,"file":"WebXMessageType.js","sourceRoot":"","sources":["../../src/message/WebXMessageType.ts"],"names":[],"mappings":";;;AAAA;;;;GAIG;AACH,IAAY,eAkDX;AAlDD,WAAY,eAAe;IACzB;;OAEG;IACH,iEAAc,CAAA;IAEd;;OAEG;IACH,2DAAW,CAAA;IAEX;;OAEG;IACH,uDAAS,CAAA;IAET;;OAEG;IACH,yDAAU,CAAA;IAEV;;OAEG;IACH,+DAAa,CAAA;IAEb;;OAEG;IACH,uDAAS,CAAA;IAET;;OAEG;IACH,qEAAgB,CAAA;IAEhB;;OAEG;IACH,qDAAQ,CAAA;IAER;;OAEG;IACH,iEAAc,CAAA;IAEd;;OAEG;IACH,4DAAY,CAAA;AACd,CAAC,EAlDW,eAAe,+BAAf,eAAe,QAkD1B"}
|
|
@@ -1,10 +1,30 @@
|
|
|
1
1
|
import { WebXMessage } from './WebXMessage';
|
|
2
|
+
/**
|
|
3
|
+
* Represents a message containing mouse state updates.
|
|
4
|
+
*
|
|
5
|
+
* This message is received from the WebX Engine and contains details about
|
|
6
|
+
* the mouse position and cursor ID.
|
|
7
|
+
*/
|
|
2
8
|
export declare class WebXMouseMessage extends WebXMessage {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
9
|
+
/**
|
|
10
|
+
* The x-coordinate of the mouse pointer.
|
|
11
|
+
*/
|
|
12
|
+
readonly x: number;
|
|
13
|
+
/**
|
|
14
|
+
* The y-coordinate of the mouse pointer.
|
|
15
|
+
*/
|
|
16
|
+
readonly y: number;
|
|
17
|
+
/**
|
|
18
|
+
* The ID of the cursor associated with the mouse pointer.
|
|
19
|
+
*/
|
|
20
|
+
readonly cursorId: number;
|
|
21
|
+
/**
|
|
22
|
+
* Constructs a new WebXMouseMessage.
|
|
23
|
+
*
|
|
24
|
+
* @param x The x-coordinate of the mouse pointer.
|
|
25
|
+
* @param y The y-coordinate of the mouse pointer.
|
|
26
|
+
* @param cursorId The ID of the cursor.
|
|
27
|
+
* @param commandId The ID of the command associated with this message.
|
|
28
|
+
*/
|
|
29
|
+
constructor(x: number, y: number, cursorId: number, commandId: number);
|
|
10
30
|
}
|
|
@@ -3,21 +3,26 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.WebXMouseMessage = void 0;
|
|
4
4
|
const WebXMessage_1 = require("./WebXMessage");
|
|
5
5
|
const WebXMessageType_1 = require("./WebXMessageType");
|
|
6
|
+
/**
|
|
7
|
+
* Represents a message containing mouse state updates.
|
|
8
|
+
*
|
|
9
|
+
* This message is received from the WebX Engine and contains details about
|
|
10
|
+
* the mouse position and cursor ID.
|
|
11
|
+
*/
|
|
6
12
|
class WebXMouseMessage extends WebXMessage_1.WebXMessage {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
constructor(_x, _y, _cursorId, commandId) {
|
|
13
|
+
/**
|
|
14
|
+
* Constructs a new WebXMouseMessage.
|
|
15
|
+
*
|
|
16
|
+
* @param x The x-coordinate of the mouse pointer.
|
|
17
|
+
* @param y The y-coordinate of the mouse pointer.
|
|
18
|
+
* @param cursorId The ID of the cursor.
|
|
19
|
+
* @param commandId The ID of the command associated with this message.
|
|
20
|
+
*/
|
|
21
|
+
constructor(x, y, cursorId, commandId) {
|
|
17
22
|
super(WebXMessageType_1.WebXMessageType.MOUSE, commandId);
|
|
18
|
-
this.
|
|
19
|
-
this.
|
|
20
|
-
this.
|
|
23
|
+
this.x = x;
|
|
24
|
+
this.y = y;
|
|
25
|
+
this.cursorId = cursorId;
|
|
21
26
|
}
|
|
22
27
|
}
|
|
23
28
|
exports.WebXMouseMessage = WebXMouseMessage;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WebXMouseMessage.js","sourceRoot":"","sources":["../../src/message/WebXMouseMessage.ts"],"names":[],"mappings":";;;AAAA,+CAA4C;AAC5C,uDAAoD;AAEpD,MAAa,gBAAiB,SAAQ,yBAAW;
|
|
1
|
+
{"version":3,"file":"WebXMouseMessage.js","sourceRoot":"","sources":["../../src/message/WebXMouseMessage.ts"],"names":[],"mappings":";;;AAAA,+CAA4C;AAC5C,uDAAoD;AAEpD;;;;;GAKG;AACH,MAAa,gBAAiB,SAAQ,yBAAW;IAgB/C;;;;;;;OAOG;IACH,YAAY,CAAS,EAAE,CAAS,EAAE,QAAgB,EAAE,SAAiB;QACnE,KAAK,CAAC,iCAAe,CAAC,KAAK,EAAE,SAAS,CAAC,CAAC;QACxC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC;QACX,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC;QACX,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAC3B,CAAC;CACF;AA9BD,4CA8BC"}
|
|
@@ -1,4 +1,13 @@
|
|
|
1
1
|
import { WebXMessage } from './WebXMessage';
|
|
2
|
+
/**
|
|
3
|
+
* Represents a ping message for connection health checks.
|
|
4
|
+
*
|
|
5
|
+
* This message is sent by the WebX Engine to ensure the connection is active. The client responds with
|
|
6
|
+
* an WebXPongInstruction.
|
|
7
|
+
*/
|
|
2
8
|
export declare class WebXPingMessage extends WebXMessage {
|
|
9
|
+
/**
|
|
10
|
+
* Constructs a new WebXPingMessage.
|
|
11
|
+
*/
|
|
3
12
|
constructor();
|
|
4
13
|
}
|
|
@@ -3,7 +3,16 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.WebXPingMessage = void 0;
|
|
4
4
|
const WebXMessage_1 = require("./WebXMessage");
|
|
5
5
|
const WebXMessageType_1 = require("./WebXMessageType");
|
|
6
|
+
/**
|
|
7
|
+
* Represents a ping message for connection health checks.
|
|
8
|
+
*
|
|
9
|
+
* This message is sent by the WebX Engine to ensure the connection is active. The client responds with
|
|
10
|
+
* an WebXPongInstruction.
|
|
11
|
+
*/
|
|
6
12
|
class WebXPingMessage extends WebXMessage_1.WebXMessage {
|
|
13
|
+
/**
|
|
14
|
+
* Constructs a new WebXPingMessage.
|
|
15
|
+
*/
|
|
7
16
|
constructor() {
|
|
8
17
|
super(WebXMessageType_1.WebXMessageType.PING);
|
|
9
18
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WebXPingMessage.js","sourceRoot":"","sources":["../../src/message/WebXPingMessage.ts"],"names":[],"mappings":";;;AAAA,+CAA4C;AAC5C,uDAAoD;AAEpD,MAAa,eAAgB,SAAQ,yBAAW;IAC9C;QACE,KAAK,CAAC,iCAAe,CAAC,IAAI,CAAC,CAAC;IAC9B,CAAC;CACF;
|
|
1
|
+
{"version":3,"file":"WebXPingMessage.js","sourceRoot":"","sources":["../../src/message/WebXPingMessage.ts"],"names":[],"mappings":";;;AAAA,+CAA4C;AAC5C,uDAAoD;AAEpD;;;;;GAKG;AACH,MAAa,eAAgB,SAAQ,yBAAW;IAC9C;;OAEG;IACH;QACE,KAAK,CAAC,iCAAe,CAAC,IAAI,CAAC,CAAC;IAC9B,CAAC;CACF;AAPD,0CAOC"}
|
|
@@ -1,14 +1,39 @@
|
|
|
1
1
|
import { WebXMessage } from './WebXMessage';
|
|
2
|
+
/**
|
|
3
|
+
* Represents a message containing quality-related information.
|
|
4
|
+
*
|
|
5
|
+
* This message is received from the WebX Engine and contains details about
|
|
6
|
+
* the quality settings.
|
|
7
|
+
*/
|
|
2
8
|
export declare class WebXQualityMessage extends WebXMessage {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
9
|
+
/**
|
|
10
|
+
* The quality index.
|
|
11
|
+
*/
|
|
12
|
+
readonly index: number;
|
|
13
|
+
/**
|
|
14
|
+
* The frames per second (FPS) for image rendering.
|
|
15
|
+
*/
|
|
16
|
+
readonly imageFPS: number;
|
|
17
|
+
/**
|
|
18
|
+
* The quality level for RGB data.
|
|
19
|
+
*/
|
|
20
|
+
readonly rgbQuality: number;
|
|
21
|
+
/**
|
|
22
|
+
* The quality level for alpha data.
|
|
23
|
+
*/
|
|
24
|
+
readonly alphaQuality: number;
|
|
25
|
+
/**
|
|
26
|
+
* The maximum bandwidth in Mbps for window image updates.
|
|
27
|
+
*/
|
|
28
|
+
readonly maxMbps: number;
|
|
29
|
+
/**
|
|
30
|
+
* Constructs a new WebXQualityMessage.
|
|
31
|
+
*
|
|
32
|
+
* @param index The quality index.
|
|
33
|
+
* @param imageFPS The frames per second for image rendering.
|
|
34
|
+
* @param rgbQuality The quality level for RGB data.
|
|
35
|
+
* @param alphaQuality The quality level for alpha data.
|
|
36
|
+
* @param maxMbps The maximum bandwidth in Mbps.
|
|
37
|
+
*/
|
|
38
|
+
constructor(index: number, imageFPS: number, rgbQuality: number, alphaQuality: number, maxMbps: number);
|
|
14
39
|
}
|