@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
|
@@ -31,28 +31,137 @@ export declare class WebXMouseState {
|
|
|
31
31
|
* wheel.
|
|
32
32
|
*/
|
|
33
33
|
private _down;
|
|
34
|
+
/**
|
|
35
|
+
* Whether the shift button is currently pressed.
|
|
36
|
+
*/
|
|
34
37
|
private _shift;
|
|
38
|
+
/**
|
|
39
|
+
* Whether the ctrl button is currently pressed.
|
|
40
|
+
*/
|
|
35
41
|
private _ctrl;
|
|
42
|
+
/**
|
|
43
|
+
* Whether the alt button is currently pressed.
|
|
44
|
+
*/
|
|
36
45
|
private _alt;
|
|
46
|
+
/**
|
|
47
|
+
* Gets the current X position of the mouse pointer.
|
|
48
|
+
*
|
|
49
|
+
* @returns The X-coordinate as a number.
|
|
50
|
+
*/
|
|
37
51
|
get x(): number;
|
|
52
|
+
/**
|
|
53
|
+
* Sets the current X position of the mouse pointer.
|
|
54
|
+
*
|
|
55
|
+
* @param value The new X-coordinate as a number.
|
|
56
|
+
*/
|
|
38
57
|
set x(value: number);
|
|
58
|
+
/**
|
|
59
|
+
* Gets the current Y position of the mouse pointer.
|
|
60
|
+
*
|
|
61
|
+
* @returns The Y-coordinate as a number.
|
|
62
|
+
*/
|
|
39
63
|
get y(): number;
|
|
64
|
+
/**
|
|
65
|
+
* Sets the current Y position of the mouse pointer.
|
|
66
|
+
*
|
|
67
|
+
* @param value The new Y-coordinate as a number.
|
|
68
|
+
*/
|
|
40
69
|
set y(value: number);
|
|
70
|
+
/**
|
|
71
|
+
* Gets whether the left mouse button is currently pressed.
|
|
72
|
+
*
|
|
73
|
+
* @returns True if the left button is pressed, false otherwise.
|
|
74
|
+
*/
|
|
41
75
|
get left(): boolean;
|
|
76
|
+
/**
|
|
77
|
+
* Sets whether the left mouse button is currently pressed.
|
|
78
|
+
*
|
|
79
|
+
* @param value True to indicate the left button is pressed, false otherwise.
|
|
80
|
+
*/
|
|
42
81
|
set left(value: boolean);
|
|
82
|
+
/**
|
|
83
|
+
* Gets whether the middle mouse button is currently pressed.
|
|
84
|
+
*
|
|
85
|
+
* @returns True if the middle button is pressed, false otherwise.
|
|
86
|
+
*/
|
|
43
87
|
get middle(): boolean;
|
|
88
|
+
/**
|
|
89
|
+
* Sets whether the middle mouse button is currently pressed.
|
|
90
|
+
*
|
|
91
|
+
* @param value True to indicate the middle button is pressed, false otherwise.
|
|
92
|
+
*/
|
|
44
93
|
set middle(value: boolean);
|
|
94
|
+
/**
|
|
95
|
+
* Gets whether the right mouse button is currently pressed.
|
|
96
|
+
*
|
|
97
|
+
* @returns True if the right button is pressed, false otherwise.
|
|
98
|
+
*/
|
|
45
99
|
get right(): boolean;
|
|
100
|
+
/**
|
|
101
|
+
* Sets whether the right mouse button is currently pressed.
|
|
102
|
+
*
|
|
103
|
+
* @param value True to indicate the right button is pressed, false otherwise.
|
|
104
|
+
*/
|
|
46
105
|
set right(value: boolean);
|
|
106
|
+
/**
|
|
107
|
+
* Gets whether the up mouse button (scroll up) is currently pressed.
|
|
108
|
+
*
|
|
109
|
+
* @returns True if the up button is pressed, false otherwise.
|
|
110
|
+
*/
|
|
47
111
|
get up(): boolean;
|
|
112
|
+
/**
|
|
113
|
+
* Sets whether the up mouse button (scroll up) is currently pressed.
|
|
114
|
+
*
|
|
115
|
+
* @param value True to indicate the up button is pressed, false otherwise.
|
|
116
|
+
*/
|
|
48
117
|
set up(value: boolean);
|
|
118
|
+
/**
|
|
119
|
+
* Gets whether the down mouse button (scroll down) is currently pressed.
|
|
120
|
+
*
|
|
121
|
+
* @returns True if the down button is pressed, false otherwise.
|
|
122
|
+
*/
|
|
49
123
|
get down(): boolean;
|
|
124
|
+
/**
|
|
125
|
+
* Sets whether the down mouse button (scroll down) is currently pressed.
|
|
126
|
+
*
|
|
127
|
+
* @param value True to indicate the down button is pressed, false otherwise.
|
|
128
|
+
*/
|
|
50
129
|
set down(value: boolean);
|
|
130
|
+
/**
|
|
131
|
+
* Gets whether the shift key is currently pressed.
|
|
132
|
+
*
|
|
133
|
+
* @returns True if the shift key is pressed, false otherwise.
|
|
134
|
+
*/
|
|
51
135
|
get shift(): boolean;
|
|
136
|
+
/**
|
|
137
|
+
* Sets whether the shift key is currently pressed.
|
|
138
|
+
*
|
|
139
|
+
* @param value True to indicate the shift key is pressed, false otherwise.
|
|
140
|
+
*/
|
|
52
141
|
set shift(value: boolean);
|
|
142
|
+
/**
|
|
143
|
+
* Gets whether the ctrl key is currently pressed.
|
|
144
|
+
*
|
|
145
|
+
* @returns True if the ctrl key is pressed, false otherwise.
|
|
146
|
+
*/
|
|
53
147
|
get ctrl(): boolean;
|
|
148
|
+
/**
|
|
149
|
+
* Sets whether the ctrl key is currently pressed.
|
|
150
|
+
*
|
|
151
|
+
* @param value True to indicate the ctrl key is pressed, false otherwise.
|
|
152
|
+
*/
|
|
54
153
|
set ctrl(value: boolean);
|
|
154
|
+
/**
|
|
155
|
+
* Gets whether the alt key is currently pressed.
|
|
156
|
+
*
|
|
157
|
+
* @returns True if the alt key is pressed, false otherwise.
|
|
158
|
+
*/
|
|
55
159
|
get alt(): boolean;
|
|
160
|
+
/**
|
|
161
|
+
* Sets whether the alt key is currently pressed.
|
|
162
|
+
*
|
|
163
|
+
* @param value True to indicate the alt key is pressed, false otherwise.
|
|
164
|
+
*/
|
|
56
165
|
set alt(value: boolean);
|
|
57
166
|
/**
|
|
58
167
|
* Create a new mouse state instance
|
|
@@ -68,11 +177,13 @@ export declare class WebXMouseState {
|
|
|
68
177
|
down: boolean;
|
|
69
178
|
});
|
|
70
179
|
/**
|
|
71
|
-
*
|
|
180
|
+
* Releases all mouse buttons by setting their states to false.
|
|
72
181
|
*/
|
|
73
182
|
releaseButtons(): void;
|
|
74
183
|
/**
|
|
75
|
-
*
|
|
184
|
+
* Generates a bitmask representing the current state of mouse buttons and modifiers.
|
|
185
|
+
*
|
|
186
|
+
* @returns A number representing the button mask.
|
|
76
187
|
*/
|
|
77
188
|
getButtonMask(): number;
|
|
78
189
|
}
|
|
@@ -2,63 +2,163 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.WebXMouseState = void 0;
|
|
4
4
|
class WebXMouseState {
|
|
5
|
+
/**
|
|
6
|
+
* Gets the current X position of the mouse pointer.
|
|
7
|
+
*
|
|
8
|
+
* @returns The X-coordinate as a number.
|
|
9
|
+
*/
|
|
5
10
|
get x() {
|
|
6
11
|
return this._x;
|
|
7
12
|
}
|
|
13
|
+
/**
|
|
14
|
+
* Sets the current X position of the mouse pointer.
|
|
15
|
+
*
|
|
16
|
+
* @param value The new X-coordinate as a number.
|
|
17
|
+
*/
|
|
8
18
|
set x(value) {
|
|
9
19
|
this._x = value;
|
|
10
20
|
}
|
|
21
|
+
/**
|
|
22
|
+
* Gets the current Y position of the mouse pointer.
|
|
23
|
+
*
|
|
24
|
+
* @returns The Y-coordinate as a number.
|
|
25
|
+
*/
|
|
11
26
|
get y() {
|
|
12
27
|
return this._y;
|
|
13
28
|
}
|
|
29
|
+
/**
|
|
30
|
+
* Sets the current Y position of the mouse pointer.
|
|
31
|
+
*
|
|
32
|
+
* @param value The new Y-coordinate as a number.
|
|
33
|
+
*/
|
|
14
34
|
set y(value) {
|
|
15
35
|
this._y = value;
|
|
16
36
|
}
|
|
37
|
+
/**
|
|
38
|
+
* Gets whether the left mouse button is currently pressed.
|
|
39
|
+
*
|
|
40
|
+
* @returns True if the left button is pressed, false otherwise.
|
|
41
|
+
*/
|
|
17
42
|
get left() {
|
|
18
43
|
return this._left;
|
|
19
44
|
}
|
|
45
|
+
/**
|
|
46
|
+
* Sets whether the left mouse button is currently pressed.
|
|
47
|
+
*
|
|
48
|
+
* @param value True to indicate the left button is pressed, false otherwise.
|
|
49
|
+
*/
|
|
20
50
|
set left(value) {
|
|
21
51
|
this._left = value;
|
|
22
52
|
}
|
|
53
|
+
/**
|
|
54
|
+
* Gets whether the middle mouse button is currently pressed.
|
|
55
|
+
*
|
|
56
|
+
* @returns True if the middle button is pressed, false otherwise.
|
|
57
|
+
*/
|
|
23
58
|
get middle() {
|
|
24
59
|
return this._middle;
|
|
25
60
|
}
|
|
61
|
+
/**
|
|
62
|
+
* Sets whether the middle mouse button is currently pressed.
|
|
63
|
+
*
|
|
64
|
+
* @param value True to indicate the middle button is pressed, false otherwise.
|
|
65
|
+
*/
|
|
26
66
|
set middle(value) {
|
|
27
67
|
this._middle = value;
|
|
28
68
|
}
|
|
69
|
+
/**
|
|
70
|
+
* Gets whether the right mouse button is currently pressed.
|
|
71
|
+
*
|
|
72
|
+
* @returns True if the right button is pressed, false otherwise.
|
|
73
|
+
*/
|
|
29
74
|
get right() {
|
|
30
75
|
return this._right;
|
|
31
76
|
}
|
|
77
|
+
/**
|
|
78
|
+
* Sets whether the right mouse button is currently pressed.
|
|
79
|
+
*
|
|
80
|
+
* @param value True to indicate the right button is pressed, false otherwise.
|
|
81
|
+
*/
|
|
32
82
|
set right(value) {
|
|
33
83
|
this._right = value;
|
|
34
84
|
}
|
|
85
|
+
/**
|
|
86
|
+
* Gets whether the up mouse button (scroll up) is currently pressed.
|
|
87
|
+
*
|
|
88
|
+
* @returns True if the up button is pressed, false otherwise.
|
|
89
|
+
*/
|
|
35
90
|
get up() {
|
|
36
91
|
return this._up;
|
|
37
92
|
}
|
|
93
|
+
/**
|
|
94
|
+
* Sets whether the up mouse button (scroll up) is currently pressed.
|
|
95
|
+
*
|
|
96
|
+
* @param value True to indicate the up button is pressed, false otherwise.
|
|
97
|
+
*/
|
|
38
98
|
set up(value) {
|
|
39
99
|
this._up = value;
|
|
40
100
|
}
|
|
101
|
+
/**
|
|
102
|
+
* Gets whether the down mouse button (scroll down) is currently pressed.
|
|
103
|
+
*
|
|
104
|
+
* @returns True if the down button is pressed, false otherwise.
|
|
105
|
+
*/
|
|
41
106
|
get down() {
|
|
42
107
|
return this._down;
|
|
43
108
|
}
|
|
109
|
+
/**
|
|
110
|
+
* Sets whether the down mouse button (scroll down) is currently pressed.
|
|
111
|
+
*
|
|
112
|
+
* @param value True to indicate the down button is pressed, false otherwise.
|
|
113
|
+
*/
|
|
44
114
|
set down(value) {
|
|
45
115
|
this._down = value;
|
|
46
116
|
}
|
|
117
|
+
/**
|
|
118
|
+
* Gets whether the shift key is currently pressed.
|
|
119
|
+
*
|
|
120
|
+
* @returns True if the shift key is pressed, false otherwise.
|
|
121
|
+
*/
|
|
47
122
|
get shift() {
|
|
48
123
|
return this._shift;
|
|
49
124
|
}
|
|
125
|
+
/**
|
|
126
|
+
* Sets whether the shift key is currently pressed.
|
|
127
|
+
*
|
|
128
|
+
* @param value True to indicate the shift key is pressed, false otherwise.
|
|
129
|
+
*/
|
|
50
130
|
set shift(value) {
|
|
51
131
|
this._shift = value;
|
|
52
132
|
}
|
|
133
|
+
/**
|
|
134
|
+
* Gets whether the ctrl key is currently pressed.
|
|
135
|
+
*
|
|
136
|
+
* @returns True if the ctrl key is pressed, false otherwise.
|
|
137
|
+
*/
|
|
53
138
|
get ctrl() {
|
|
54
139
|
return this._ctrl;
|
|
55
140
|
}
|
|
141
|
+
/**
|
|
142
|
+
* Sets whether the ctrl key is currently pressed.
|
|
143
|
+
*
|
|
144
|
+
* @param value True to indicate the ctrl key is pressed, false otherwise.
|
|
145
|
+
*/
|
|
56
146
|
set ctrl(value) {
|
|
57
147
|
this._ctrl = value;
|
|
58
148
|
}
|
|
149
|
+
/**
|
|
150
|
+
* Gets whether the alt key is currently pressed.
|
|
151
|
+
*
|
|
152
|
+
* @returns True if the alt key is pressed, false otherwise.
|
|
153
|
+
*/
|
|
59
154
|
get alt() {
|
|
60
155
|
return this._alt;
|
|
61
156
|
}
|
|
157
|
+
/**
|
|
158
|
+
* Sets whether the alt key is currently pressed.
|
|
159
|
+
*
|
|
160
|
+
* @param value True to indicate the alt key is pressed, false otherwise.
|
|
161
|
+
*/
|
|
62
162
|
set alt(value) {
|
|
63
163
|
this._alt = value;
|
|
64
164
|
}
|
|
@@ -77,7 +177,7 @@ class WebXMouseState {
|
|
|
77
177
|
this._down = down;
|
|
78
178
|
}
|
|
79
179
|
/**
|
|
80
|
-
*
|
|
180
|
+
* Releases all mouse buttons by setting their states to false.
|
|
81
181
|
*/
|
|
82
182
|
releaseButtons() {
|
|
83
183
|
this._left = false;
|
|
@@ -85,7 +185,9 @@ class WebXMouseState {
|
|
|
85
185
|
this._right = false;
|
|
86
186
|
}
|
|
87
187
|
/**
|
|
88
|
-
*
|
|
188
|
+
* Generates a bitmask representing the current state of mouse buttons and modifiers.
|
|
189
|
+
*
|
|
190
|
+
* @returns A number representing the button mask.
|
|
89
191
|
*/
|
|
90
192
|
getButtonMask() {
|
|
91
193
|
let mask = 0;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WebXMouseState.js","sourceRoot":"","sources":["../../../src/input/mouse/WebXMouseState.ts"],"names":[],"mappings":";;;AAAA,MAAa,cAAc;
|
|
1
|
+
{"version":3,"file":"WebXMouseState.js","sourceRoot":"","sources":["../../../src/input/mouse/WebXMouseState.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,4 +1,19 @@
|
|
|
1
1
|
import { WebXInstruction } from './WebXInstruction';
|
|
2
|
+
/**
|
|
3
|
+
* Represents an instruction to establish a connection with the WebX Engine.
|
|
4
|
+
*
|
|
5
|
+
* This instruction is used to initiate the connection process and send any
|
|
6
|
+
* necessary connection parameters.
|
|
7
|
+
*/
|
|
2
8
|
export declare class WebXConnectInstruction extends WebXInstruction {
|
|
3
|
-
|
|
9
|
+
/**
|
|
10
|
+
* The connection parameters to be sent with the instruction.
|
|
11
|
+
*/
|
|
12
|
+
readonly parameters: any;
|
|
13
|
+
/**
|
|
14
|
+
* Constructs a new WebXConnectInstruction.
|
|
15
|
+
*
|
|
16
|
+
* @param parameters The connection parameters.
|
|
17
|
+
*/
|
|
18
|
+
constructor(parameters: any);
|
|
4
19
|
}
|
|
@@ -3,9 +3,21 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.WebXConnectInstruction = void 0;
|
|
4
4
|
const WebXInstruction_1 = require("./WebXInstruction");
|
|
5
5
|
const WebXInstructionType_1 = require("./WebXInstructionType");
|
|
6
|
+
/**
|
|
7
|
+
* Represents an instruction to establish a connection with the WebX Engine.
|
|
8
|
+
*
|
|
9
|
+
* This instruction is used to initiate the connection process and send any
|
|
10
|
+
* necessary connection parameters.
|
|
11
|
+
*/
|
|
6
12
|
class WebXConnectInstruction extends WebXInstruction_1.WebXInstruction {
|
|
7
|
-
|
|
13
|
+
/**
|
|
14
|
+
* Constructs a new WebXConnectInstruction.
|
|
15
|
+
*
|
|
16
|
+
* @param parameters The connection parameters.
|
|
17
|
+
*/
|
|
18
|
+
constructor(parameters) {
|
|
8
19
|
super(WebXInstructionType_1.WebXInstructionType.CONNECT);
|
|
20
|
+
this.parameters = parameters;
|
|
9
21
|
}
|
|
10
22
|
}
|
|
11
23
|
exports.WebXConnectInstruction = WebXConnectInstruction;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WebXConnectInstruction.js","sourceRoot":"","sources":["../../src/instruction/WebXConnectInstruction.ts"],"names":[],"mappings":";;;AAAA,uDAAoD;AACpD,+DAA4D;AAE5D,MAAa,sBAAuB,SAAQ,iCAAe;
|
|
1
|
+
{"version":3,"file":"WebXConnectInstruction.js","sourceRoot":"","sources":["../../src/instruction/WebXConnectInstruction.ts"],"names":[],"mappings":";;;AAAA,uDAAoD;AACpD,+DAA4D;AAE5D;;;;;GAKG;AACH,MAAa,sBAAuB,SAAQ,iCAAe;IAMzD;;;;OAIG;IACH,YAAY,UAAe;QACzB,KAAK,CAAC,yCAAmB,CAAC,OAAO,CAAC,CAAC;QACnC,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;IAC/B,CAAC;CACF;AAfD,wDAeC"}
|
|
@@ -1,6 +1,18 @@
|
|
|
1
1
|
import { WebXInstruction } from './WebXInstruction';
|
|
2
|
+
/**
|
|
3
|
+
* Represents an instruction to request a cursor image.
|
|
4
|
+
*
|
|
5
|
+
* This instruction is used to fetch the cursor image data from the WebX Engine.
|
|
6
|
+
*/
|
|
2
7
|
export declare class WebXCursorImageInstruction extends WebXInstruction {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
8
|
+
/**
|
|
9
|
+
* The ID of the cursor for which the image is requested.
|
|
10
|
+
*/
|
|
11
|
+
readonly cursorId: number;
|
|
12
|
+
/**
|
|
13
|
+
* Constructs a new WebXCursorImageInstruction.
|
|
14
|
+
*
|
|
15
|
+
* @param cursorId The ID of the cursor.
|
|
16
|
+
*/
|
|
17
|
+
constructor(cursorId: number);
|
|
6
18
|
}
|
|
@@ -3,13 +3,20 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.WebXCursorImageInstruction = void 0;
|
|
4
4
|
const WebXInstruction_1 = require("./WebXInstruction");
|
|
5
5
|
const WebXInstructionType_1 = require("./WebXInstructionType");
|
|
6
|
+
/**
|
|
7
|
+
* Represents an instruction to request a cursor image.
|
|
8
|
+
*
|
|
9
|
+
* This instruction is used to fetch the cursor image data from the WebX Engine.
|
|
10
|
+
*/
|
|
6
11
|
class WebXCursorImageInstruction extends WebXInstruction_1.WebXInstruction {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
12
|
+
/**
|
|
13
|
+
* Constructs a new WebXCursorImageInstruction.
|
|
14
|
+
*
|
|
15
|
+
* @param cursorId The ID of the cursor.
|
|
16
|
+
*/
|
|
17
|
+
constructor(cursorId) {
|
|
11
18
|
super(WebXInstructionType_1.WebXInstructionType.CURSOR_IMAGE);
|
|
12
|
-
this.
|
|
19
|
+
this.cursorId = cursorId;
|
|
13
20
|
}
|
|
14
21
|
}
|
|
15
22
|
exports.WebXCursorImageInstruction = WebXCursorImageInstruction;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WebXCursorImageInstruction.js","sourceRoot":"","sources":["../../src/instruction/WebXCursorImageInstruction.ts"],"names":[],"mappings":";;;AAAA,uDAAoD;AACpD,+DAA4D;AAE5D,MAAa,0BAA2B,SAAQ,iCAAe;
|
|
1
|
+
{"version":3,"file":"WebXCursorImageInstruction.js","sourceRoot":"","sources":["../../src/instruction/WebXCursorImageInstruction.ts"],"names":[],"mappings":";;;AAAA,uDAAoD;AACpD,+DAA4D;AAE5D;;;;GAIG;AACH,MAAa,0BAA2B,SAAQ,iCAAe;IAM7D;;;;OAIG;IACH,YAAY,QAAgB;QAC1B,KAAK,CAAC,yCAAmB,CAAC,YAAY,CAAC,CAAC;QACxC,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAC3B,CAAC;CACF;AAfD,gEAeC"}
|
|
@@ -1,8 +1,25 @@
|
|
|
1
1
|
import { WebXInstruction } from './WebXInstruction';
|
|
2
|
+
/**
|
|
3
|
+
* Represents an instruction to acknowledge received data.
|
|
4
|
+
*
|
|
5
|
+
* This instruction is used to notify the WebX Engine that a specific amount
|
|
6
|
+
* of data has been successfully received.
|
|
7
|
+
*/
|
|
2
8
|
export declare class WebXDataAckInstruction extends WebXInstruction {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
9
|
+
/**
|
|
10
|
+
* The timestamp in milliseconds: timestamp originates from the message containing the sent the data (ie timestamp of
|
|
11
|
+
* the WebX Engine).
|
|
12
|
+
*/
|
|
13
|
+
readonly timestampMs: Uint8Array;
|
|
14
|
+
/**
|
|
15
|
+
* The length of the data.
|
|
16
|
+
*/
|
|
17
|
+
readonly dataLength: number;
|
|
18
|
+
/**
|
|
19
|
+
* Constructs a new WebXDataAckInstruction.
|
|
20
|
+
*
|
|
21
|
+
* @param timestampMs The timestamp in milliseconds.
|
|
22
|
+
* @param dataLength The length of the data.
|
|
23
|
+
*/
|
|
24
|
+
constructor(timestampMs: Uint8Array, dataLength: number);
|
|
8
25
|
}
|
|
@@ -3,17 +3,23 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.WebXDataAckInstruction = void 0;
|
|
4
4
|
const WebXInstruction_1 = require("./WebXInstruction");
|
|
5
5
|
const WebXInstructionType_1 = require("./WebXInstructionType");
|
|
6
|
+
/**
|
|
7
|
+
* Represents an instruction to acknowledge received data.
|
|
8
|
+
*
|
|
9
|
+
* This instruction is used to notify the WebX Engine that a specific amount
|
|
10
|
+
* of data has been successfully received.
|
|
11
|
+
*/
|
|
6
12
|
class WebXDataAckInstruction extends WebXInstruction_1.WebXInstruction {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
constructor(
|
|
13
|
+
/**
|
|
14
|
+
* Constructs a new WebXDataAckInstruction.
|
|
15
|
+
*
|
|
16
|
+
* @param timestampMs The timestamp in milliseconds.
|
|
17
|
+
* @param dataLength The length of the data.
|
|
18
|
+
*/
|
|
19
|
+
constructor(timestampMs, dataLength) {
|
|
14
20
|
super(WebXInstructionType_1.WebXInstructionType.DATA_ACK);
|
|
15
|
-
this.
|
|
16
|
-
this.
|
|
21
|
+
this.timestampMs = timestampMs;
|
|
22
|
+
this.dataLength = dataLength;
|
|
17
23
|
}
|
|
18
24
|
}
|
|
19
25
|
exports.WebXDataAckInstruction = WebXDataAckInstruction;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WebXDataAckInstruction.js","sourceRoot":"","sources":["../../src/instruction/WebXDataAckInstruction.ts"],"names":[],"mappings":";;;AAAA,uDAAoD;AACpD,+DAA4D;AAE5D,MAAa,sBAAuB,SAAQ,iCAAe;
|
|
1
|
+
{"version":3,"file":"WebXDataAckInstruction.js","sourceRoot":"","sources":["../../src/instruction/WebXDataAckInstruction.ts"],"names":[],"mappings":";;;AAAA,uDAAoD;AACpD,+DAA4D;AAE5D;;;;;GAKG;AACH,MAAa,sBAAuB,SAAQ,iCAAe;IAYzD;;;;;OAKG;IACH,YAAY,WAAuB,EAAE,UAAkB;QACrD,KAAK,CAAC,yCAAmB,CAAC,QAAQ,CAAC,CAAC;QACpC,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;IAC/B,CAAC;CACF;AAvBD,wDAuBC"}
|
|
@@ -1,7 +1,18 @@
|
|
|
1
1
|
import { WebXInstruction } from './WebXInstruction';
|
|
2
|
+
/**
|
|
3
|
+
* Represents an instruction to request an image for a specific window.
|
|
4
|
+
*
|
|
5
|
+
* This instruction is used to fetch the image data for a window from the WebX Engine.
|
|
6
|
+
*/
|
|
2
7
|
export declare class WebXImageInstruction extends WebXInstruction {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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
|
+
*/
|
|
6
17
|
constructor(windowId: number);
|
|
7
18
|
}
|
|
@@ -3,16 +3,20 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.WebXImageInstruction = void 0;
|
|
4
4
|
const WebXInstruction_1 = require("./WebXInstruction");
|
|
5
5
|
const WebXInstructionType_1 = require("./WebXInstructionType");
|
|
6
|
+
/**
|
|
7
|
+
* Represents an instruction to request an image for a specific window.
|
|
8
|
+
*
|
|
9
|
+
* This instruction is used to fetch the image data for a window from the WebX Engine.
|
|
10
|
+
*/
|
|
6
11
|
class WebXImageInstruction extends WebXInstruction_1.WebXInstruction {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}
|
|
12
|
+
/**
|
|
13
|
+
* Constructs a new WebXImageInstruction.
|
|
14
|
+
*
|
|
15
|
+
* @param windowId The ID of the window.
|
|
16
|
+
*/
|
|
13
17
|
constructor(windowId) {
|
|
14
18
|
super(WebXInstructionType_1.WebXInstructionType.IMAGE);
|
|
15
|
-
this.
|
|
19
|
+
this.windowId = windowId;
|
|
16
20
|
}
|
|
17
21
|
}
|
|
18
22
|
exports.WebXImageInstruction = WebXImageInstruction;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WebXImageInstruction.js","sourceRoot":"","sources":["../../src/instruction/WebXImageInstruction.ts"],"names":[],"mappings":";;;AAAA,uDAAoD;AACpD,+DAA4D;AAE5D,MAAa,oBAAqB,SAAQ,iCAAe;
|
|
1
|
+
{"version":3,"file":"WebXImageInstruction.js","sourceRoot":"","sources":["../../src/instruction/WebXImageInstruction.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"}
|
|
@@ -1,13 +1,29 @@
|
|
|
1
1
|
import { WebXInstructionType } from './WebXInstructionType';
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
/**
|
|
3
|
+
* Base class for all WebX instructions.
|
|
4
|
+
*
|
|
5
|
+
* Instructions are either commands sent to the WebX Engine to perform specific actions or responses to messages from the engine.
|
|
6
|
+
* Commands include connecting the engine, requesting window layout, handling input, requesting window image data.
|
|
7
|
+
* Responses include acknowledging received data or ping messages.
|
|
8
|
+
*/
|
|
9
|
+
export declare abstract class WebXInstruction {
|
|
4
10
|
private static _INSTRUCTION_COUNTER;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
/**
|
|
12
|
+
* The unique ID of the instruction.
|
|
13
|
+
*/
|
|
14
|
+
readonly id: number;
|
|
15
|
+
/**
|
|
16
|
+
* Indicates whether the instruction is synchronous or asynchronous.
|
|
17
|
+
*/
|
|
18
|
+
synchronous: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* The type of the instruction.
|
|
21
|
+
*/
|
|
22
|
+
readonly type: WebXInstructionType;
|
|
23
|
+
/**
|
|
24
|
+
* Constructs a new WebXInstruction.
|
|
25
|
+
*
|
|
26
|
+
* @param type The type of the instruction.
|
|
27
|
+
*/
|
|
28
|
+
constructor(type: WebXInstructionType);
|
|
13
29
|
}
|