@illgrenoble/webx-client 1.12.0 → 1.12.1
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 +0 -1
- package/dist/display/WebXDisplay.d.ts +0 -1
- package/dist/renderer/WebXCanvasRenderer.d.ts +0 -1
- package/dist/webx-client.cjs +1 -5391
- package/dist/webx-client.esm.js +1 -5322
- package/package.json +4 -3
- package/dist/GuacamoleKeyboard.js +0 -1551
- package/dist/WebXClient.js +0 -513
- package/dist/WebXClient.js.map +0 -1
- package/dist/WebXConnectionHandler.js +0 -96
- package/dist/WebXConnectionHandler.js.map +0 -1
- package/dist/WebXEngine.js +0 -7
- package/dist/WebXEngine.js.map +0 -1
- package/dist/display/WebXCursor.js +0 -139
- package/dist/display/WebXCursor.js.map +0 -1
- package/dist/display/WebXCursorFactory.js +0 -59
- package/dist/display/WebXCursorFactory.js.map +0 -1
- package/dist/display/WebXDisplay.js +0 -507
- package/dist/display/WebXDisplay.js.map +0 -1
- package/dist/display/WebXDisplayOverlay.js +0 -31
- package/dist/display/WebXDisplayOverlay.js.map +0 -1
- package/dist/display/WebXMaterial.js +0 -142
- package/dist/display/WebXMaterial.js.map +0 -1
- package/dist/display/WebXSubImage.d.ts +0 -50
- package/dist/display/WebXSubImage.js +0 -26
- package/dist/display/WebXSubImage.js.map +0 -1
- package/dist/display/WebXTexture.d.ts +0 -6
- package/dist/display/WebXTextureFactory.d.ts +0 -54
- package/dist/display/WebXTextureFactory.js +0 -160
- package/dist/display/WebXTextureFactory.js.map +0 -1
- package/dist/display/WebXTextureFunc.d.ts +0 -3
- package/dist/display/WebXWindow.js +0 -478
- package/dist/display/WebXWindow.js.map +0 -1
- package/dist/display/WebXWindowProperties.d.ts +0 -44
- package/dist/display/WebXWindowProperties.js +0 -25
- package/dist/display/WebXWindowProperties.js.map +0 -1
- package/dist/display/index.js +0 -24
- package/dist/display/index.js.map +0 -1
- package/dist/index.js +0 -25
- package/dist/index.js.map +0 -1
- package/dist/input/GuacamoleKeyboard.js +0 -1551
- package/dist/input/WebXKeyboard.js +0 -44
- package/dist/input/WebXKeyboard.js.map +0 -1
- package/dist/input/WebXMouse.js +0 -231
- package/dist/input/WebXMouse.js.map +0 -1
- package/dist/input/index.js +0 -20
- package/dist/input/index.js.map +0 -1
- package/dist/input/mouse/WebXMouseState.js +0 -217
- package/dist/input/mouse/WebXMouseState.js.map +0 -1
- package/dist/input/mouse/index.js +0 -18
- package/dist/input/mouse/index.js.map +0 -1
- package/dist/instruction/WebXClipboardInstruction.js +0 -23
- package/dist/instruction/WebXClipboardInstruction.js.map +0 -1
- package/dist/instruction/WebXConnectInstruction.js +0 -24
- package/dist/instruction/WebXConnectInstruction.js.map +0 -1
- package/dist/instruction/WebXCursorImageInstruction.js +0 -23
- package/dist/instruction/WebXCursorImageInstruction.js.map +0 -1
- package/dist/instruction/WebXDataAckInstruction.js +0 -26
- package/dist/instruction/WebXDataAckInstruction.js.map +0 -1
- package/dist/instruction/WebXImageInstruction.js +0 -23
- package/dist/instruction/WebXImageInstruction.js.map +0 -1
- package/dist/instruction/WebXInstruction.js +0 -28
- package/dist/instruction/WebXInstruction.js.map +0 -1
- package/dist/instruction/WebXInstructionResponse.js +0 -78
- package/dist/instruction/WebXInstructionResponse.js.map +0 -1
- package/dist/instruction/WebXInstructionType.js +0 -96
- package/dist/instruction/WebXInstructionType.js.map +0 -1
- package/dist/instruction/WebXKeyboardInstruction.js +0 -25
- package/dist/instruction/WebXKeyboardInstruction.js.map +0 -1
- package/dist/instruction/WebXMouseInstruction.js +0 -27
- package/dist/instruction/WebXMouseInstruction.js.map +0 -1
- package/dist/instruction/WebXPongInstruction.js +0 -23
- package/dist/instruction/WebXPongInstruction.js.map +0 -1
- package/dist/instruction/WebXQualityInstruction.js +0 -24
- package/dist/instruction/WebXQualityInstruction.js.map +0 -1
- package/dist/instruction/WebXScreenInstruction.js +0 -20
- package/dist/instruction/WebXScreenInstruction.js.map +0 -1
- package/dist/instruction/WebXShapeInstruction.js +0 -23
- package/dist/instruction/WebXShapeInstruction.js.map +0 -1
- package/dist/instruction/WebXWindowsInstruction.js +0 -21
- package/dist/instruction/WebXWindowsInstruction.js.map +0 -1
- package/dist/instruction/index.js +0 -32
- package/dist/instruction/index.js.map +0 -1
- package/dist/message/WebXClipboardMessage.js +0 -23
- package/dist/message/WebXClipboardMessage.js.map +0 -1
- package/dist/message/WebXConnectionMessage.js +0 -21
- package/dist/message/WebXConnectionMessage.js.map +0 -1
- package/dist/message/WebXCursorImageMessage.js +0 -35
- package/dist/message/WebXCursorImageMessage.js.map +0 -1
- package/dist/message/WebXImageMessage.js +0 -33
- package/dist/message/WebXImageMessage.js.map +0 -1
- package/dist/message/WebXMessage.js +0 -23
- package/dist/message/WebXMessage.js.map +0 -1
- package/dist/message/WebXMessageType.js +0 -64
- package/dist/message/WebXMessageType.js.map +0 -1
- package/dist/message/WebXMouseMessage.js +0 -29
- package/dist/message/WebXMouseMessage.js.map +0 -1
- package/dist/message/WebXNopMessage.js +0 -18
- package/dist/message/WebXNopMessage.js.map +0 -1
- package/dist/message/WebXPingMessage.js +0 -21
- package/dist/message/WebXPingMessage.js.map +0 -1
- package/dist/message/WebXQualityMessage.js +0 -32
- package/dist/message/WebXQualityMessage.js.map +0 -1
- package/dist/message/WebXScreenMessage.js +0 -29
- package/dist/message/WebXScreenMessage.js.map +0 -1
- package/dist/message/WebXShapeMessage.js +0 -29
- package/dist/message/WebXShapeMessage.js.map +0 -1
- package/dist/message/WebXSubImagesMessage.js +0 -29
- package/dist/message/WebXSubImagesMessage.js.map +0 -1
- package/dist/message/WebXWindowsMessage.js +0 -25
- package/dist/message/WebXWindowsMessage.js.map +0 -1
- package/dist/message/index.js +0 -31
- package/dist/message/index.js.map +0 -1
- package/dist/renderer/WebXAlphaStencilBlender.d.ts +0 -30
- package/dist/renderer/WebXAlphaStencilBlender.js +0 -136
- package/dist/renderer/WebXAlphaStencilBlender.js.map +0 -1
- package/dist/renderer/WebXCanvasRenderer.js +0 -190
- package/dist/renderer/WebXCanvasRenderer.js.map +0 -1
- package/dist/renderer/WebXImageBlenderFunc.d.ts +0 -8
- package/dist/renderer/WebXWindowCanvas.js +0 -312
- package/dist/renderer/WebXWindowCanvas.js.map +0 -1
- package/dist/renderer/index.js +0 -20
- package/dist/renderer/index.js.map +0 -1
- package/dist/tracer/WebXDebugImageMessageHandler.js +0 -102
- package/dist/tracer/WebXDebugImageMessageHandler.js.map +0 -1
- package/dist/tracer/WebXHandler.js +0 -3
- package/dist/tracer/WebXHandler.js.map +0 -1
- package/dist/tracer/WebXInstructionHandler.js +0 -13
- package/dist/tracer/WebXInstructionHandler.js.map +0 -1
- package/dist/tracer/WebXMessageHandler.js +0 -13
- package/dist/tracer/WebXMessageHandler.js.map +0 -1
- package/dist/tracer/WebXStatsHandler.js +0 -13
- package/dist/tracer/WebXStatsHandler.js.map +0 -1
- package/dist/tracer/index.js +0 -22
- package/dist/tracer/index.js.map +0 -1
- package/dist/transport/WebXBinarySerializer.js +0 -63
- package/dist/transport/WebXBinarySerializer.js.map +0 -1
- package/dist/transport/WebXInstructionBuffer.js +0 -109
- package/dist/transport/WebXInstructionBuffer.js.map +0 -1
- package/dist/transport/WebXInstructionEncoder.js +0 -294
- package/dist/transport/WebXInstructionEncoder.js.map +0 -1
- package/dist/transport/WebXMessageBuffer.js +0 -104
- package/dist/transport/WebXMessageBuffer.js.map +0 -1
- package/dist/transport/WebXMessageDecoder.js +0 -333
- package/dist/transport/WebXMessageDecoder.js.map +0 -1
- package/dist/transport/index.js +0 -22
- package/dist/transport/index.js.map +0 -1
- package/dist/tunnel/WebXTunnel.js +0 -156
- package/dist/tunnel/WebXTunnel.js.map +0 -1
- package/dist/tunnel/WebXWebSocketTunnel.js +0 -88
- package/dist/tunnel/WebXWebSocketTunnel.js.map +0 -1
- package/dist/tunnel/index.js +0 -19
- package/dist/tunnel/index.js.map +0 -1
- package/dist/utils/WebXColorGenerator.js +0 -46
- package/dist/utils/WebXColorGenerator.js.map +0 -1
- package/dist/utils/WebXVersion.js +0 -25
- package/dist/utils/WebXVersion.js.map +0 -1
- package/dist/utils/index.js +0 -19
- package/dist/utils/index.js.map +0 -1
- package/dist/webx-client.cjs.map +0 -1
- package/dist/webx-client.esm.js.map +0 -1
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.WebXKeyboard = void 0;
|
|
4
|
-
const Guacamole = require('./GuacamoleKeyboard');
|
|
5
|
-
/**
|
|
6
|
-
* Represents the keyboard input device in the WebX client.
|
|
7
|
-
*
|
|
8
|
-
* This class handles keyboard events, such as key presses and releases,
|
|
9
|
-
* and provides methods to interact with the keyboard state.
|
|
10
|
-
*/
|
|
11
|
-
class WebXKeyboard {
|
|
12
|
-
set onKeyDown(onKeyDown) {
|
|
13
|
-
this._keyboard.onkeydown = onKeyDown;
|
|
14
|
-
}
|
|
15
|
-
set onKeyUp(onKeyUp) {
|
|
16
|
-
this._keyboard.onkeyup = onKeyUp;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* Constructs a new WebXKeyboard instance.
|
|
20
|
-
* This creates a Guacamole.Keyboard instance and attaches event listeners.
|
|
21
|
-
*
|
|
22
|
-
* @param element The HTML element to attach the keyboard events to.
|
|
23
|
-
*/
|
|
24
|
-
constructor(element) {
|
|
25
|
-
this._keyboard = new Guacamole.Keyboard(element);
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* Disposes of the keyboard instance and removes event listeners.
|
|
29
|
-
*/
|
|
30
|
-
dispose() {
|
|
31
|
-
this._keyboard.onkeydown = null;
|
|
32
|
-
this._keyboard.onkeyup = null;
|
|
33
|
-
this._keyboard.dispose();
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* Resets the keyboard state.
|
|
37
|
-
* This clears any pressed keys and resets the keyboard to its initial state.
|
|
38
|
-
*/
|
|
39
|
-
reset() {
|
|
40
|
-
this._keyboard.reset();
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
exports.WebXKeyboard = WebXKeyboard;
|
|
44
|
-
//# sourceMappingURL=WebXKeyboard.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"WebXKeyboard.js","sourceRoot":"","sources":["../../src/input/WebXKeyboard.ts"],"names":[],"mappings":";;;AAAA,MAAM,SAAS,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAAC;AAEjD;;;;;GAKG;AACH,MAAa,YAAY;IAIvB,IAAW,SAAS,CAAC,SAA6B;QAChD,IAAI,CAAC,SAAS,CAAC,SAAS,GAAG,SAAS,CAAC;IACvC,CAAC;IAED,IAAW,OAAO,CAAC,OAA2B;QAC5C,IAAI,CAAC,SAAS,CAAC,OAAO,GAAG,OAAO,CAAC;IACnC,CAAC;IAED;;;;;OAKG;IACH,YAAY,OAA+B;QACzC,IAAI,CAAC,SAAS,GAAG,IAAI,SAAS,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;IACnD,CAAC;IAED;;OAEG;IACI,OAAO;QACZ,IAAI,CAAC,SAAS,CAAC,SAAS,GAAG,IAAI,CAAC;QAChC,IAAI,CAAC,SAAS,CAAC,OAAO,GAAG,IAAI,CAAC;QAC9B,IAAI,CAAC,SAAS,CAAC,OAAO,EAAE,CAAC;IAC3B,CAAC;IAED;;;OAGG;IACI,KAAK;QACV,IAAI,CAAC,SAAS,CAAC,KAAK,EAAE,CAAC;IACzB,CAAC;CAEF;AAvCD,oCAuCC"}
|
package/dist/input/WebXMouse.js
DELETED
|
@@ -1,231 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.WebXMouse = void 0;
|
|
4
|
-
const mouse_1 = require("./mouse");
|
|
5
|
-
class WebXMouse {
|
|
6
|
-
/**
|
|
7
|
-
* Provides cross-browser mouse events for a given element
|
|
8
|
-
* @param _element The element to use to provide mouse events
|
|
9
|
-
*/
|
|
10
|
-
constructor(_element) {
|
|
11
|
-
this._element = _element;
|
|
12
|
-
this._contextMenuHandler = this._handleContextMenu.bind(this);
|
|
13
|
-
this._mouseMoveHandler = this._handleMouseMove.bind(this);
|
|
14
|
-
this._mouseDownHandler = this._handleMouseDown.bind(this);
|
|
15
|
-
this._mouseUpHandler = this._handleMouseUp.bind(this);
|
|
16
|
-
this._mouseOutHandler = this._handleMouseOut.bind(this);
|
|
17
|
-
this._mouseWheelHandler = this._handleMouseWheel.bind(this);
|
|
18
|
-
this._bindListeners();
|
|
19
|
-
this._createDefaultState();
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* Called when the client is disposed: removes any bound listeners
|
|
23
|
-
*/
|
|
24
|
-
dispose() {
|
|
25
|
-
this._unbindListeners();
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* Cancel an event
|
|
29
|
-
* @param event the event to cancel
|
|
30
|
-
*/
|
|
31
|
-
_cancelEvent(event) {
|
|
32
|
-
event.stopPropagation();
|
|
33
|
-
if (event.preventDefault) {
|
|
34
|
-
event.preventDefault();
|
|
35
|
-
}
|
|
36
|
-
event.returnValue = false;
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* Bind the mouse listeners to the given element
|
|
40
|
-
*/
|
|
41
|
-
_bindListeners() {
|
|
42
|
-
const element = this._element;
|
|
43
|
-
element.addEventListener('contextmenu', this._contextMenuHandler, false);
|
|
44
|
-
element.addEventListener('mousemove', this._mouseMoveHandler);
|
|
45
|
-
element.addEventListener('mousedown', this._mouseDownHandler);
|
|
46
|
-
element.addEventListener('mouseup', this._mouseUpHandler);
|
|
47
|
-
element.addEventListener('mouseout', this._mouseOutHandler);
|
|
48
|
-
['DOMMouseScroll', 'mousewheel', 'wheel'].forEach(listener => {
|
|
49
|
-
element.addEventListener(listener, this._mouseWheelHandler, { passive: false });
|
|
50
|
-
});
|
|
51
|
-
this.reset = this.reset.bind(this);
|
|
52
|
-
}
|
|
53
|
-
/**
|
|
54
|
-
* Unbinds the mouse listeners
|
|
55
|
-
*/
|
|
56
|
-
_unbindListeners() {
|
|
57
|
-
const element = this._element;
|
|
58
|
-
element.removeEventListener('contextmenu', this._contextMenuHandler, false);
|
|
59
|
-
element.removeEventListener('mousemove', this._mouseMoveHandler);
|
|
60
|
-
element.removeEventListener('mousedown', this._mouseDownHandler);
|
|
61
|
-
element.removeEventListener('mouseup', this._mouseUpHandler);
|
|
62
|
-
element.removeEventListener('mouseout', this._mouseOutHandler);
|
|
63
|
-
['DOMMouseScroll', 'mousewheel', 'wheel'].forEach(listener => {
|
|
64
|
-
element.removeEventListener(listener, this._mouseWheelHandler);
|
|
65
|
-
});
|
|
66
|
-
this.reset = this.reset.bind(this);
|
|
67
|
-
}
|
|
68
|
-
/**
|
|
69
|
-
* Creates the default state
|
|
70
|
-
*/
|
|
71
|
-
_createDefaultState() {
|
|
72
|
-
this._currentState = new mouse_1.WebXMouseState({
|
|
73
|
-
x: 0,
|
|
74
|
-
y: 0,
|
|
75
|
-
left: false,
|
|
76
|
-
middle: false,
|
|
77
|
-
right: false,
|
|
78
|
-
up: false,
|
|
79
|
-
down: false
|
|
80
|
-
});
|
|
81
|
-
}
|
|
82
|
-
/**
|
|
83
|
-
* Process mouse up event
|
|
84
|
-
* @param event the mouse event
|
|
85
|
-
*/
|
|
86
|
-
_handleMouseUp(event) {
|
|
87
|
-
switch (event.button) {
|
|
88
|
-
case 0:
|
|
89
|
-
this._currentState.left = false;
|
|
90
|
-
break;
|
|
91
|
-
case 1:
|
|
92
|
-
this._currentState.middle = false;
|
|
93
|
-
break;
|
|
94
|
-
case 2:
|
|
95
|
-
this._currentState.right = false;
|
|
96
|
-
break;
|
|
97
|
-
}
|
|
98
|
-
this._notifyMouseUp();
|
|
99
|
-
}
|
|
100
|
-
/**
|
|
101
|
-
* Process mouse down event
|
|
102
|
-
* @param event the mouse event
|
|
103
|
-
*/
|
|
104
|
-
_handleMouseDown(event) {
|
|
105
|
-
this._cancelEvent(event);
|
|
106
|
-
switch (event.button) {
|
|
107
|
-
case 0:
|
|
108
|
-
this._currentState.left = true;
|
|
109
|
-
break;
|
|
110
|
-
case 1:
|
|
111
|
-
this._currentState.middle = true;
|
|
112
|
-
break;
|
|
113
|
-
case 2:
|
|
114
|
-
this._currentState.right = true;
|
|
115
|
-
break;
|
|
116
|
-
}
|
|
117
|
-
this._notifyMouseDown();
|
|
118
|
-
}
|
|
119
|
-
/**
|
|
120
|
-
* Process mouse wheel event
|
|
121
|
-
* @param event the mouse event
|
|
122
|
-
*/
|
|
123
|
-
_handleMouseWheel(event) {
|
|
124
|
-
if (event.deltaY < 0) {
|
|
125
|
-
this._currentState.up = true;
|
|
126
|
-
this._notifyMouseDown();
|
|
127
|
-
this._currentState.up = false;
|
|
128
|
-
this._notifyMouseUp();
|
|
129
|
-
}
|
|
130
|
-
if (event.deltaY > 0) {
|
|
131
|
-
this._currentState.down = true;
|
|
132
|
-
this._notifyMouseDown();
|
|
133
|
-
this._currentState.down = false;
|
|
134
|
-
this._notifyMouseUp();
|
|
135
|
-
}
|
|
136
|
-
this._cancelEvent(event);
|
|
137
|
-
}
|
|
138
|
-
/**
|
|
139
|
-
* Process mouse out event
|
|
140
|
-
*/
|
|
141
|
-
_handleMouseOut() {
|
|
142
|
-
// reset all buttons
|
|
143
|
-
this._currentState.releaseButtons();
|
|
144
|
-
this._notifyMouseOut();
|
|
145
|
-
}
|
|
146
|
-
/**
|
|
147
|
-
* Process the mouse move event
|
|
148
|
-
* @param event the mouse event
|
|
149
|
-
*/
|
|
150
|
-
_handleMouseMove(event) {
|
|
151
|
-
this._cancelEvent(event);
|
|
152
|
-
// get the container wrapping the display canvas element
|
|
153
|
-
const bounds = this._element.firstElementChild.getBoundingClientRect();
|
|
154
|
-
this._currentState.x = event.clientX - bounds.left;
|
|
155
|
-
this._currentState.y = event.clientY - bounds.top;
|
|
156
|
-
this._notifyMouseMove();
|
|
157
|
-
}
|
|
158
|
-
/**
|
|
159
|
-
* Resets the mouse state
|
|
160
|
-
*/
|
|
161
|
-
reset() {
|
|
162
|
-
this._currentState.releaseButtons();
|
|
163
|
-
}
|
|
164
|
-
/**
|
|
165
|
-
* Process the context menu event
|
|
166
|
-
* Block context menu so right-click gets sent properly
|
|
167
|
-
* @param event the mouse event
|
|
168
|
-
*/
|
|
169
|
-
_handleContextMenu(event) {
|
|
170
|
-
this._cancelEvent(event);
|
|
171
|
-
}
|
|
172
|
-
/**
|
|
173
|
-
* Notify listener of the mouse move event
|
|
174
|
-
* @Note: Sends a clone of the current state to avoid mutating the state
|
|
175
|
-
*/
|
|
176
|
-
_notifyMouseMove() {
|
|
177
|
-
this.onMouseMove(this._currentState.clone());
|
|
178
|
-
}
|
|
179
|
-
/**
|
|
180
|
-
* Notify listener of the mouse up event
|
|
181
|
-
* @Note: Sends a clone of the current state to avoid mutating the state
|
|
182
|
-
*/
|
|
183
|
-
_notifyMouseUp() {
|
|
184
|
-
this.onMouseUp(this._currentState.clone());
|
|
185
|
-
}
|
|
186
|
-
/**
|
|
187
|
-
* Notify listener of the mouse down event
|
|
188
|
-
* @Note: Sends a clone of the current state to avoid mutating the state
|
|
189
|
-
*/
|
|
190
|
-
_notifyMouseDown() {
|
|
191
|
-
this.onMouseDown(this._currentState.clone());
|
|
192
|
-
}
|
|
193
|
-
/**
|
|
194
|
-
* Notify listener of the mouse out event
|
|
195
|
-
* @Note: Sends a clone of the current state to avoid mutating the state
|
|
196
|
-
*/
|
|
197
|
-
_notifyMouseOut() {
|
|
198
|
-
this.onMouseOut(this._currentState.clone());
|
|
199
|
-
}
|
|
200
|
-
/**
|
|
201
|
-
* Fired whenever the user moves the mouse
|
|
202
|
-
* @param mouseState the current mouse state
|
|
203
|
-
*/
|
|
204
|
-
onMouseMove(mouseState) { }
|
|
205
|
-
/**
|
|
206
|
-
* Fired whenever a mouse button is effectively pressed. This can happen
|
|
207
|
-
* as part of a "click" gesture initiated by the user by tapping one
|
|
208
|
-
* or more fingers over the touchpad element, as part of a "scroll"
|
|
209
|
-
* gesture initiated by dragging two fingers up or down, etc.
|
|
210
|
-
*
|
|
211
|
-
* @param mouseState the current mouse state
|
|
212
|
-
*/
|
|
213
|
-
onMouseDown(mouseState) { }
|
|
214
|
-
/**
|
|
215
|
-
* Fired whenever a mouse button is effectively released. This can happen
|
|
216
|
-
* as part of a "click" gesture initiated by the user by tapping one
|
|
217
|
-
* or more fingers over the touchpad element, as part of a "scroll"
|
|
218
|
-
* gesture initiated by dragging two fingers up or down, etc.
|
|
219
|
-
* @param mouseState the current mouse state
|
|
220
|
-
*/
|
|
221
|
-
onMouseUp(mouseState) { }
|
|
222
|
-
/**
|
|
223
|
-
* Fired whenever the mouse leaves the boundaries of the element associated
|
|
224
|
-
* with this mouse
|
|
225
|
-
*
|
|
226
|
-
* @param mouseState the current mouse state
|
|
227
|
-
*/
|
|
228
|
-
onMouseOut(mouseState) { }
|
|
229
|
-
}
|
|
230
|
-
exports.WebXMouse = WebXMouse;
|
|
231
|
-
//# sourceMappingURL=WebXMouse.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"WebXMouse.js","sourceRoot":"","sources":["../../src/input/WebXMouse.ts"],"names":[],"mappings":";;;AAAA,mCAAyC;AAEzC,MAAa,SAAS;IAepB;;;OAGG;IACH,YAAoB,QAAqB;QAArB,aAAQ,GAAR,QAAQ,CAAa;QAXjC,wBAAmB,GAAG,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACzD,sBAAiB,GAAG,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACrD,sBAAiB,GAAG,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACrD,oBAAe,GAAG,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACjD,qBAAgB,GAAG,IAAI,CAAC,eAAe,CAAC,I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K,EAAE,CAAC,CAAC;IAC9C,CAAC;IAED;;;OAGG;IACH,WAAW,CAAC,UAA0B,IAAU,CAAC;IAEjD;;;;;;;OAOG;IACH,WAAW,CAAC,UAA0B,IAAU,CAAC;IAEjD;;;;;;OAMG;IACH,SAAS,CAAC,UAA0B,IAAU,CAAC;IAE/C;;;;;OAKG;IACH,UAAU,CAAC,UAA0B,IAAU,CAAC;CAEjD;AA9PD,8BA8PC"}
|
package/dist/input/index.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
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("./WebXKeyboard"), exports);
|
|
18
|
-
__exportStar(require("./WebXMouse"), exports);
|
|
19
|
-
__exportStar(require("./mouse"), exports);
|
|
20
|
-
//# sourceMappingURL=index.js.map
|
package/dist/input/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/input/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B;AAC/B,8CAA4B;AAC5B,0CAAwB"}
|
|
@@ -1,217 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.WebXMouseState = void 0;
|
|
4
|
-
class WebXMouseState {
|
|
5
|
-
/**
|
|
6
|
-
* Gets the current X position of the mouse pointer.
|
|
7
|
-
*
|
|
8
|
-
* @returns The X-coordinate as a number.
|
|
9
|
-
*/
|
|
10
|
-
get x() {
|
|
11
|
-
return this._x;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* Sets the current X position of the mouse pointer.
|
|
15
|
-
*
|
|
16
|
-
* @param value The new X-coordinate as a number.
|
|
17
|
-
*/
|
|
18
|
-
set x(value) {
|
|
19
|
-
this._x = value;
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* Gets the current Y position of the mouse pointer.
|
|
23
|
-
*
|
|
24
|
-
* @returns The Y-coordinate as a number.
|
|
25
|
-
*/
|
|
26
|
-
get y() {
|
|
27
|
-
return this._y;
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* Sets the current Y position of the mouse pointer.
|
|
31
|
-
*
|
|
32
|
-
* @param value The new Y-coordinate as a number.
|
|
33
|
-
*/
|
|
34
|
-
set y(value) {
|
|
35
|
-
this._y = value;
|
|
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
|
-
*/
|
|
42
|
-
get left() {
|
|
43
|
-
return this._left;
|
|
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
|
-
*/
|
|
50
|
-
set left(value) {
|
|
51
|
-
this._left = value;
|
|
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
|
-
*/
|
|
58
|
-
get middle() {
|
|
59
|
-
return this._middle;
|
|
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
|
-
*/
|
|
66
|
-
set middle(value) {
|
|
67
|
-
this._middle = value;
|
|
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
|
-
*/
|
|
74
|
-
get right() {
|
|
75
|
-
return this._right;
|
|
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
|
-
*/
|
|
82
|
-
set right(value) {
|
|
83
|
-
this._right = value;
|
|
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
|
-
*/
|
|
90
|
-
get up() {
|
|
91
|
-
return this._up;
|
|
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
|
-
*/
|
|
98
|
-
set up(value) {
|
|
99
|
-
this._up = value;
|
|
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
|
-
*/
|
|
106
|
-
get down() {
|
|
107
|
-
return this._down;
|
|
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
|
-
*/
|
|
114
|
-
set down(value) {
|
|
115
|
-
this._down = value;
|
|
116
|
-
}
|
|
117
|
-
/**
|
|
118
|
-
* Gets whether the shift key is currently pressed.
|
|
119
|
-
*
|
|
120
|
-
* @returns True if the shift key is pressed, false otherwise.
|
|
121
|
-
*/
|
|
122
|
-
get shift() {
|
|
123
|
-
return this._shift;
|
|
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
|
-
*/
|
|
130
|
-
set shift(value) {
|
|
131
|
-
this._shift = value;
|
|
132
|
-
}
|
|
133
|
-
/**
|
|
134
|
-
* Gets whether the ctrl key is currently pressed.
|
|
135
|
-
*
|
|
136
|
-
* @returns True if the ctrl key is pressed, false otherwise.
|
|
137
|
-
*/
|
|
138
|
-
get ctrl() {
|
|
139
|
-
return this._ctrl;
|
|
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
|
-
*/
|
|
146
|
-
set ctrl(value) {
|
|
147
|
-
this._ctrl = value;
|
|
148
|
-
}
|
|
149
|
-
/**
|
|
150
|
-
* Gets whether the alt key is currently pressed.
|
|
151
|
-
*
|
|
152
|
-
* @returns True if the alt key is pressed, false otherwise.
|
|
153
|
-
*/
|
|
154
|
-
get alt() {
|
|
155
|
-
return this._alt;
|
|
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
|
-
*/
|
|
162
|
-
set alt(value) {
|
|
163
|
-
this._alt = value;
|
|
164
|
-
}
|
|
165
|
-
/**
|
|
166
|
-
* Create a new mouse state instance
|
|
167
|
-
* @param state the mouse state
|
|
168
|
-
*/
|
|
169
|
-
constructor(state) {
|
|
170
|
-
const { x, y, left, middle, right, up, down } = state;
|
|
171
|
-
this._x = x;
|
|
172
|
-
this._y = y;
|
|
173
|
-
this._left = left;
|
|
174
|
-
this._middle = middle;
|
|
175
|
-
this._right = right;
|
|
176
|
-
this._up = up;
|
|
177
|
-
this._down = down;
|
|
178
|
-
}
|
|
179
|
-
/**
|
|
180
|
-
* Releases all mouse buttons by setting their states to false.
|
|
181
|
-
*/
|
|
182
|
-
releaseButtons() {
|
|
183
|
-
this._left = false;
|
|
184
|
-
this._middle = false;
|
|
185
|
-
this._right = false;
|
|
186
|
-
}
|
|
187
|
-
/**
|
|
188
|
-
* Generates a bitmask representing the current state of mouse buttons and modifiers.
|
|
189
|
-
*
|
|
190
|
-
* @returns A number representing the button mask.
|
|
191
|
-
*/
|
|
192
|
-
getButtonMask() {
|
|
193
|
-
let mask = 0;
|
|
194
|
-
mask |= this._left ? 1 << 8 : 0;
|
|
195
|
-
mask |= this._middle ? 1 << 9 : 0;
|
|
196
|
-
mask |= this._right ? 1 << 10 : 0;
|
|
197
|
-
mask |= this._up ? 1 << 11 : 0;
|
|
198
|
-
mask |= this._down ? 1 << 12 : 0;
|
|
199
|
-
mask |= this._shift ? 1 << 0 : 0;
|
|
200
|
-
mask |= this._ctrl ? 1 << 2 : 0;
|
|
201
|
-
mask |= this._alt ? 1 << 3 : 0;
|
|
202
|
-
return mask;
|
|
203
|
-
}
|
|
204
|
-
clone() {
|
|
205
|
-
return new WebXMouseState({
|
|
206
|
-
x: this._x,
|
|
207
|
-
y: this._y,
|
|
208
|
-
left: this._left,
|
|
209
|
-
middle: this._middle,
|
|
210
|
-
right: this._right,
|
|
211
|
-
up: this._up,
|
|
212
|
-
down: this._down
|
|
213
|
-
});
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
exports.WebXMouseState = WebXMouseState;
|
|
217
|
-
//# sourceMappingURL=WebXMouseState.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"WebXMouseState.js","sourceRoot":"","sources":["../../../src/input/mouse/WebXMouseState.ts"],"names":[],"mappings":";;;AAAA,MAAa,cAAc;IAuDzB;;;;OAIG;IACH,IAAW,CAAC;QACV,OAAO,IAAI,CAAC,EAAE,CAAC;IACjB,CAAC;IAED;;;;OAIG;IACH,IAAW,CAAC,CAAC,KAAa;QACxB,IAAI,CAAC,EAAE,GAAG,KAAK,CAAC;IAClB,CAAC;IAED;;;;OAIG;IACH,IAAW,CAAC;QACV,OAAO,IAAI,CAAC,EAAE,CAAC;IACjB,CAAC;IAED;;;;OAIG;IACH,IAAW,CAAC,CAAC,KAAa;QACxB,IAAI,CAAC,EAAE,GAAG,KAAK,CAAC;IAClB,CAAC;IAED;;;;OAIG;IACH,IAAW,IAAI;QACb,OAAO,IAAI,CAAC,KAAK,CAAC;IACpB,CAAC;IAED;;;;OAIG;IACH,IAAW,IAAI,CAAC,KAAc;QAC5B,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACrB,CAAC;IAED;;;;OAIG;IACH,IAAW,MAAM;QACf,OAAO,IAAI,CAAC,OAAO,CAAC;IACtB,CAAC;IAED;;;;OAIG;IACH,IAAW,MAAM,CAAC,KAAc;QAC9B,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACH,IAAW,KAAK;QACd,OAAO,IAAI,CAAC,MAAM,CAAC;IACrB,CAAC;IAED;;;;OAIG;IACH,IAAW,KAAK,CAAC,KAAc;QAC7B,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;IACtB,CAAC;IAED;;;;OAIG;IACH,IAAW,EAAE;QACX,OAAO,IAAI,CAAC,GAAG,CAAC;IAClB,CAAC;IAED;;;;OAIG;IACH,IAAW,EAAE,CAAC,KAAc;QAC1B,IAAI,CAAC,GAAG,GAAG,KAAK,CAAC;IACnB,CAAC;IAED;;;;OAIG;I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IAAI,CAAC,GAAG;YACZ,IAAI,EAAE,IAAI,CAAC,KAAK;SACjB,CAAC,CAAC;IACL,CAAC;CAEF;AAjSD,wCAiSC"}
|
|
@@ -1,18 +0,0 @@
|
|
|
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("./WebXMouseState"), exports);
|
|
18
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/input/mouse/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.WebXClipboardInstruction = void 0;
|
|
4
|
-
const WebXInstruction_1 = require("./WebXInstruction");
|
|
5
|
-
const WebXInstructionType_1 = require("./WebXInstructionType");
|
|
6
|
-
/**
|
|
7
|
-
* Represents an instruction to send clipboard data to the WebX Engine.
|
|
8
|
-
*
|
|
9
|
-
* This instruction is used to notify the WebX Engine that clipboard data has been set.
|
|
10
|
-
*/
|
|
11
|
-
class WebXClipboardInstruction extends WebXInstruction_1.WebXInstruction {
|
|
12
|
-
/**
|
|
13
|
-
* Constructs a new WebXClipboardInstruction.
|
|
14
|
-
*
|
|
15
|
-
* @param clipboardContent The clipboard content.
|
|
16
|
-
*/
|
|
17
|
-
constructor(clipboardContent) {
|
|
18
|
-
super(WebXInstructionType_1.WebXInstructionType.CLIPBOARD);
|
|
19
|
-
this.clipboardContent = clipboardContent;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
exports.WebXClipboardInstruction = WebXClipboardInstruction;
|
|
23
|
-
//# sourceMappingURL=WebXClipboardInstruction.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"WebXClipboardInstruction.js","sourceRoot":"","sources":["../../src/instruction/WebXClipboardInstruction.ts"],"names":[],"mappings":";;;AAAA,uDAAoD;AACpD,+DAA4D;AAE5D;;;;GAIG;AACH,MAAa,wBAAyB,SAAQ,iCAAe;IAO3D;;;;OAIG;IACH,YAAY,gBAAwB;QAClC,KAAK,CAAC,yCAAmB,CAAC,SAAS,CAAC,CAAC;QACrC,IAAI,CAAC,gBAAgB,GAAG,gBAAgB,CAAC;IAC3C,CAAC;CACF;AAhBD,4DAgBC"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.WebXConnectInstruction = void 0;
|
|
4
|
-
const WebXInstruction_1 = require("./WebXInstruction");
|
|
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
|
-
*/
|
|
12
|
-
class WebXConnectInstruction extends WebXInstruction_1.WebXInstruction {
|
|
13
|
-
/**
|
|
14
|
-
* Constructs a new WebXConnectInstruction.
|
|
15
|
-
*
|
|
16
|
-
* @param parameters The connection parameters.
|
|
17
|
-
*/
|
|
18
|
-
constructor(parameters) {
|
|
19
|
-
super(WebXInstructionType_1.WebXInstructionType.CONNECT);
|
|
20
|
-
this.parameters = parameters;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
exports.WebXConnectInstruction = WebXConnectInstruction;
|
|
24
|
-
//# sourceMappingURL=WebXConnectInstruction.js.map
|
|
@@ -1 +0,0 @@
|
|
|
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,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.WebXCursorImageInstruction = void 0;
|
|
4
|
-
const WebXInstruction_1 = require("./WebXInstruction");
|
|
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
|
-
*/
|
|
11
|
-
class WebXCursorImageInstruction extends WebXInstruction_1.WebXInstruction {
|
|
12
|
-
/**
|
|
13
|
-
* Constructs a new WebXCursorImageInstruction.
|
|
14
|
-
*
|
|
15
|
-
* @param cursorId The ID of the cursor.
|
|
16
|
-
*/
|
|
17
|
-
constructor(cursorId) {
|
|
18
|
-
super(WebXInstructionType_1.WebXInstructionType.CURSOR_IMAGE);
|
|
19
|
-
this.cursorId = cursorId;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
exports.WebXCursorImageInstruction = WebXCursorImageInstruction;
|
|
23
|
-
//# sourceMappingURL=WebXCursorImageInstruction.js.map
|
|
@@ -1 +0,0 @@
|
|
|
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,26 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.WebXDataAckInstruction = void 0;
|
|
4
|
-
const WebXInstruction_1 = require("./WebXInstruction");
|
|
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
|
-
*/
|
|
12
|
-
class WebXDataAckInstruction extends WebXInstruction_1.WebXInstruction {
|
|
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) {
|
|
20
|
-
super(WebXInstructionType_1.WebXInstructionType.DATA_ACK);
|
|
21
|
-
this.timestampMs = timestampMs;
|
|
22
|
-
this.dataLength = dataLength;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
exports.WebXDataAckInstruction = WebXDataAckInstruction;
|
|
26
|
-
//# sourceMappingURL=WebXDataAckInstruction.js.map
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|