@illgrenoble/webx-client 0.1.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/LICENSE +674 -0
- package/README.md +8 -0
- package/dist/WebXClient.d.ts +94 -0
- package/dist/WebXClient.js +302 -0
- package/dist/WebXClient.js.map +1 -0
- package/dist/display/WebXCursor.d.ts +28 -0
- package/dist/display/WebXCursor.js +94 -0
- package/dist/display/WebXCursor.js.map +1 -0
- package/dist/display/WebXCursorFactory.d.ts +18 -0
- package/dist/display/WebXCursorFactory.js +36 -0
- package/dist/display/WebXCursorFactory.js.map +1 -0
- package/dist/display/WebXDisplay.d.ts +70 -0
- package/dist/display/WebXDisplay.js +248 -0
- package/dist/display/WebXDisplay.js.map +1 -0
- package/dist/display/WebXSubImage.d.ts +19 -0
- package/dist/display/WebXSubImage.js +20 -0
- package/dist/display/WebXSubImage.js.map +1 -0
- package/dist/display/WebXTextureFactory.d.ts +14 -0
- package/dist/display/WebXTextureFactory.js +101 -0
- package/dist/display/WebXTextureFactory.js.map +1 -0
- package/dist/display/WebXWindow.d.ts +59 -0
- package/dist/display/WebXWindow.js +205 -0
- package/dist/display/WebXWindow.js.map +1 -0
- package/dist/display/WebXWindowProperties.d.ts +14 -0
- package/dist/display/WebXWindowProperties.js +17 -0
- package/dist/display/WebXWindowProperties.js.map +1 -0
- package/dist/display/index.d.ts +7 -0
- package/dist/display/index.js +24 -0
- package/dist/display/index.js.map +1 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +25 -0
- package/dist/index.js.map +1 -0
- package/dist/input/WebXKeyboard.d.ts +230 -0
- package/dist/input/WebXKeyboard.js +593 -0
- package/dist/input/WebXKeyboard.js.map +1 -0
- package/dist/input/WebXMouse.d.ts +97 -0
- package/dist/input/WebXMouse.js +205 -0
- package/dist/input/WebXMouse.js.map +1 -0
- package/dist/input/index.d.ts +4 -0
- package/dist/input/index.js +21 -0
- package/dist/input/index.js.map +1 -0
- package/dist/input/keyboard/WebXKeyEvent.d.ts +47 -0
- package/dist/input/keyboard/WebXKeyEvent.js +212 -0
- package/dist/input/keyboard/WebXKeyEvent.js.map +1 -0
- package/dist/input/keyboard/WebXKeyPressEvent.d.ts +13 -0
- package/dist/input/keyboard/WebXKeyPressEvent.js +26 -0
- package/dist/input/keyboard/WebXKeyPressEvent.js.map +1 -0
- package/dist/input/keyboard/WebXKeyUpEvent.d.ts +12 -0
- package/dist/input/keyboard/WebXKeyUpEvent.js +28 -0
- package/dist/input/keyboard/WebXKeyUpEvent.js.map +1 -0
- package/dist/input/keyboard/WebXKeyboardModifierState.d.ts +47 -0
- package/dist/input/keyboard/WebXKeyboardModifierState.js +87 -0
- package/dist/input/keyboard/WebXKeyboardModifierState.js.map +1 -0
- package/dist/input/keyboard/WebXKeyboardUtils.d.ts +9 -0
- package/dist/input/keyboard/WebXKeyboardUtils.js +48 -0
- package/dist/input/keyboard/WebXKeyboardUtils.js.map +1 -0
- package/dist/input/keyboard/WebXKeydownEvent.d.ts +29 -0
- package/dist/input/keyboard/WebXKeydownEvent.js +71 -0
- package/dist/input/keyboard/WebXKeydownEvent.js.map +1 -0
- package/dist/input/keyboard/index.d.ts +6 -0
- package/dist/input/keyboard/index.js +23 -0
- package/dist/input/keyboard/index.js.map +1 -0
- package/dist/input/mouse/WebXMouseState.d.ts +78 -0
- package/dist/input/mouse/WebXMouseState.js +104 -0
- package/dist/input/mouse/WebXMouseState.js.map +1 -0
- package/dist/input/mouse/index.d.ts +1 -0
- package/dist/input/mouse/index.js +18 -0
- package/dist/input/mouse/index.js.map +1 -0
- package/dist/instruction/WebXConnectInstruction.d.ts +4 -0
- package/dist/instruction/WebXConnectInstruction.js +12 -0
- package/dist/instruction/WebXConnectInstruction.js.map +1 -0
- package/dist/instruction/WebXCursorImageInstruction.d.ts +6 -0
- package/dist/instruction/WebXCursorImageInstruction.js +16 -0
- package/dist/instruction/WebXCursorImageInstruction.js.map +1 -0
- package/dist/instruction/WebXImageInstruction.d.ts +7 -0
- package/dist/instruction/WebXImageInstruction.js +19 -0
- package/dist/instruction/WebXImageInstruction.js.map +1 -0
- package/dist/instruction/WebXInstruction.d.ts +13 -0
- package/dist/instruction/WebXInstruction.js +34 -0
- package/dist/instruction/WebXInstruction.js.map +1 -0
- package/dist/instruction/WebXInstructionResponse.d.ts +13 -0
- package/dist/instruction/WebXInstructionResponse.js +40 -0
- package/dist/instruction/WebXInstructionResponse.js.map +1 -0
- package/dist/instruction/WebXInstructionType.d.ts +13 -0
- package/dist/instruction/WebXInstructionType.js +38 -0
- package/dist/instruction/WebXInstructionType.js.map +1 -0
- package/dist/instruction/WebXKeyboardInstruction.d.ts +10 -0
- package/dist/instruction/WebXKeyboardInstruction.js +26 -0
- package/dist/instruction/WebXKeyboardInstruction.js.map +1 -0
- package/dist/instruction/WebXMouseInstruction.d.ts +13 -0
- package/dist/instruction/WebXMouseInstruction.js +33 -0
- package/dist/instruction/WebXMouseInstruction.js.map +1 -0
- package/dist/instruction/WebXQualityInstruction.d.ts +7 -0
- package/dist/instruction/WebXQualityInstruction.js +19 -0
- package/dist/instruction/WebXQualityInstruction.js.map +1 -0
- package/dist/instruction/WebXScreenInstruction.d.ts +4 -0
- package/dist/instruction/WebXScreenInstruction.js +12 -0
- package/dist/instruction/WebXScreenInstruction.js.map +1 -0
- package/dist/instruction/WebXWindowsInstruction.d.ts +4 -0
- package/dist/instruction/WebXWindowsInstruction.js +12 -0
- package/dist/instruction/WebXWindowsInstruction.js.map +1 -0
- package/dist/instruction/index.d.ts +11 -0
- package/dist/instruction/index.js +28 -0
- package/dist/instruction/index.js.map +1 -0
- package/dist/message/WebXCursorImageMessage.d.ts +17 -0
- package/dist/message/WebXCursorImageMessage.js +36 -0
- package/dist/message/WebXCursorImageMessage.js.map +1 -0
- package/dist/message/WebXImageMessage.d.ts +15 -0
- package/dist/message/WebXImageMessage.js +32 -0
- package/dist/message/WebXImageMessage.js.map +1 -0
- package/dist/message/WebXMessage.d.ts +8 -0
- package/dist/message/WebXMessage.js +17 -0
- package/dist/message/WebXMessage.js.map +1 -0
- package/dist/message/WebXMessageType.d.ts +10 -0
- package/dist/message/WebXMessageType.js +15 -0
- package/dist/message/WebXMessageType.js.map +1 -0
- package/dist/message/WebXMouseMessage.d.ts +10 -0
- package/dist/message/WebXMouseMessage.js +24 -0
- package/dist/message/WebXMouseMessage.js.map +1 -0
- package/dist/message/WebXPollMessage.d.ts +4 -0
- package/dist/message/WebXPollMessage.js +12 -0
- package/dist/message/WebXPollMessage.js.map +1 -0
- package/dist/message/WebXScreenMessage.d.ts +12 -0
- package/dist/message/WebXScreenMessage.js +16 -0
- package/dist/message/WebXScreenMessage.js.map +1 -0
- package/dist/message/WebXSubImagesMessage.d.ts +11 -0
- package/dist/message/WebXSubImagesMessage.js +24 -0
- package/dist/message/WebXSubImagesMessage.js.map +1 -0
- package/dist/message/WebXWindowsMessage.d.ts +7 -0
- package/dist/message/WebXWindowsMessage.js +16 -0
- package/dist/message/WebXWindowsMessage.js.map +1 -0
- package/dist/message/index.d.ts +9 -0
- package/dist/message/index.js +26 -0
- package/dist/message/index.js.map +1 -0
- package/dist/tracer/WebXHandler.d.ts +3 -0
- package/dist/tracer/WebXHandler.js +3 -0
- package/dist/tracer/WebXHandler.js.map +1 -0
- package/dist/tracer/WebXInstructionHandler.d.ts +4 -0
- package/dist/tracer/WebXInstructionHandler.js +7 -0
- package/dist/tracer/WebXInstructionHandler.js.map +1 -0
- package/dist/tracer/WebXMessageHandler.d.ts +4 -0
- package/dist/tracer/WebXMessageHandler.js +7 -0
- package/dist/tracer/WebXMessageHandler.js.map +1 -0
- package/dist/tracer/WebXStatsHandler.d.ts +7 -0
- package/dist/tracer/WebXStatsHandler.js +7 -0
- package/dist/tracer/WebXStatsHandler.js.map +1 -0
- package/dist/tracer/index.d.ts +4 -0
- package/dist/tracer/index.js +21 -0
- package/dist/tracer/index.js.map +1 -0
- package/dist/transport/WebXBinarySerializer.d.ts +11 -0
- package/dist/transport/WebXBinarySerializer.js +43 -0
- package/dist/transport/WebXBinarySerializer.js.map +1 -0
- package/dist/transport/WebXInstructionBuffer.d.ts +35 -0
- package/dist/transport/WebXInstructionBuffer.js +80 -0
- package/dist/transport/WebXInstructionBuffer.js.map +1 -0
- package/dist/transport/WebXInstructionEncoder.d.ts +101 -0
- package/dist/transport/WebXInstructionEncoder.js +175 -0
- package/dist/transport/WebXInstructionEncoder.js.map +1 -0
- package/dist/transport/WebXMessageBuffer.d.ts +19 -0
- package/dist/transport/WebXMessageBuffer.js +58 -0
- package/dist/transport/WebXMessageBuffer.js.map +1 -0
- package/dist/transport/WebXMessageDecoder.d.ts +16 -0
- package/dist/transport/WebXMessageDecoder.js +156 -0
- package/dist/transport/WebXMessageDecoder.js.map +1 -0
- package/dist/transport/index.d.ts +5 -0
- package/dist/transport/index.js +22 -0
- package/dist/transport/index.js.map +1 -0
- package/dist/tunnel/WebXDefaultQoSHandler.d.ts +16 -0
- package/dist/tunnel/WebXDefaultQoSHandler.js +57 -0
- package/dist/tunnel/WebXDefaultQoSHandler.js.map +1 -0
- package/dist/tunnel/WebXQoSHandler.d.ts +6 -0
- package/dist/tunnel/WebXQoSHandler.js +7 -0
- package/dist/tunnel/WebXQoSHandler.js.map +1 -0
- package/dist/tunnel/WebXSocketIOTunnel.d.ts +15 -0
- package/dist/tunnel/WebXSocketIOTunnel.js +41 -0
- package/dist/tunnel/WebXSocketIOTunnel.js.map +1 -0
- package/dist/tunnel/WebXTunnel.d.ts +24 -0
- package/dist/tunnel/WebXTunnel.js +106 -0
- package/dist/tunnel/WebXTunnel.js.map +1 -0
- package/dist/tunnel/WebXWebSocketTunnel.d.ts +12 -0
- package/dist/tunnel/WebXWebSocketTunnel.js +41 -0
- package/dist/tunnel/WebXWebSocketTunnel.js.map +1 -0
- package/dist/tunnel/index.d.ts +5 -0
- package/dist/tunnel/index.js +22 -0
- package/dist/tunnel/index.js.map +1 -0
- package/dist/utils/Config.d.ts +4 -0
- package/dist/utils/Config.js +10 -0
- package/dist/utils/Config.js.map +1 -0
- package/dist/utils/WebXAsyncExec.d.ts +5 -0
- package/dist/utils/WebXAsyncExec.js +18 -0
- package/dist/utils/WebXAsyncExec.js.map +1 -0
- package/dist/utils/WebXColourGenerator.d.ts +5 -0
- package/dist/utils/WebXColourGenerator.js +27 -0
- package/dist/utils/WebXColourGenerator.js.map +1 -0
- package/dist/utils/WebXFileSize.d.ts +3 -0
- package/dist/utils/WebXFileSize.js +14 -0
- package/dist/utils/WebXFileSize.js.map +1 -0
- package/dist/utils/index.d.ts +4 -0
- package/dist/utils/index.js +21 -0
- package/dist/utils/index.js.map +1 -0
- package/package.json +43 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WebXImageInstruction = void 0;
|
|
4
|
+
const WebXInstruction_1 = require("./WebXInstruction");
|
|
5
|
+
const WebXInstructionType_1 = require("./WebXInstructionType");
|
|
6
|
+
class WebXImageInstruction extends WebXInstruction_1.WebXInstruction {
|
|
7
|
+
constructor(windowId) {
|
|
8
|
+
super(WebXInstructionType_1.WebXInstructionType.IMAGE);
|
|
9
|
+
this._windowId = windowId;
|
|
10
|
+
}
|
|
11
|
+
get windowId() {
|
|
12
|
+
return this._windowId;
|
|
13
|
+
}
|
|
14
|
+
set windowId(windowId) {
|
|
15
|
+
this._windowId = windowId;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
exports.WebXImageInstruction = WebXImageInstruction;
|
|
19
|
+
//# sourceMappingURL=WebXImageInstruction.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WebXImageInstruction.js","sourceRoot":"","sources":["../../src/instruction/WebXImageInstruction.ts"],"names":[],"mappings":";;;AAAA,uDAAoD;AACpD,+DAA4D;AAE5D,MAAa,oBAAqB,SAAQ,iCAAe;IAWvD,YAAY,QAAgB;QAC1B,KAAK,CAAC,yCAAmB,CAAC,KAAK,CAAC,CAAC;QACjC,IAAI,CAAC,SAAS,GAAG,QAAQ,CAAC;IAC5B,CAAC;IAXD,IAAW,QAAQ;QACjB,OAAO,IAAI,CAAC,SAAS,CAAC;IACxB,CAAC;IAED,IAAW,QAAQ,CAAC,QAAgB;QAClC,IAAI,CAAC,SAAS,GAAG,QAAQ,CAAC;IAC5B,CAAC;CAMF;AAfD,oDAeC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { WebXInstructionType } from './WebXInstructionType';
|
|
2
|
+
export declare class WebXInstruction {
|
|
3
|
+
private _type;
|
|
4
|
+
private static _INSTRUCTION_COUNTER;
|
|
5
|
+
private readonly _id;
|
|
6
|
+
private _synchronous;
|
|
7
|
+
get id(): number;
|
|
8
|
+
get type(): WebXInstructionType;
|
|
9
|
+
get synchronous(): boolean;
|
|
10
|
+
set synchronous(value: boolean);
|
|
11
|
+
constructor(_type: WebXInstructionType);
|
|
12
|
+
toJsonString(): string;
|
|
13
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WebXInstruction = void 0;
|
|
4
|
+
class WebXInstruction {
|
|
5
|
+
constructor(_type) {
|
|
6
|
+
this._type = _type;
|
|
7
|
+
this._synchronous = false;
|
|
8
|
+
this._id = WebXInstruction._INSTRUCTION_COUNTER++;
|
|
9
|
+
}
|
|
10
|
+
get id() {
|
|
11
|
+
return this._id;
|
|
12
|
+
}
|
|
13
|
+
get type() {
|
|
14
|
+
return this._type;
|
|
15
|
+
}
|
|
16
|
+
get synchronous() {
|
|
17
|
+
return this._synchronous;
|
|
18
|
+
}
|
|
19
|
+
set synchronous(value) {
|
|
20
|
+
this._synchronous = value;
|
|
21
|
+
}
|
|
22
|
+
toJsonString() {
|
|
23
|
+
let json = JSON.stringify(this);
|
|
24
|
+
Object.keys(this)
|
|
25
|
+
.filter(key => key[0] === '_')
|
|
26
|
+
.forEach(key => {
|
|
27
|
+
json = json.replace(key, key.substring(1));
|
|
28
|
+
});
|
|
29
|
+
return json;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
exports.WebXInstruction = WebXInstruction;
|
|
33
|
+
WebXInstruction._INSTRUCTION_COUNTER = 1;
|
|
34
|
+
//# sourceMappingURL=WebXInstruction.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WebXInstruction.js","sourceRoot":"","sources":["../../src/instruction/WebXInstruction.ts"],"names":[],"mappings":";;;AAEA,MAAa,eAAe;IAqB1B,YAAoB,KAA0B;QAA1B,UAAK,GAAL,KAAK,CAAqB;QAlBtC,iBAAY,GAAG,KAAK,CAAC;QAmB3B,IAAI,CAAC,GAAG,GAAG,eAAe,CAAC,oBAAoB,EAAE,CAAC;IACpD,CAAC;IAlBD,IAAW,EAAE;QACX,OAAO,IAAI,CAAC,GAAG,CAAC;IAClB,CAAC;IAED,IAAW,IAAI;QACb,OAAO,IAAI,CAAC,KAAK,CAAC;IACpB,CAAC;IAED,IAAW,WAAW;QACpB,OAAO,IAAI,CAAC,YAAY,CAAC;IAC3B,CAAC;IAED,IAAW,WAAW,CAAC,KAAc;QACnC,IAAI,CAAC,YAAY,GAAG,KAAK,CAAC;IAC5B,CAAC;IAMD,YAAY;QACV,IAAI,IAAI,GAAG,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;QAChC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC;aACd,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,GAAG,CAAC;aAC7B,OAAO,CAAC,GAAG,CAAC,EAAE;YACb,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,GAAG,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC;QAC7C,CAAC,CAAC,CAAC;QAEL,OAAO,IAAI,CAAC;IACd,CAAC;;AAlCH,0CAmCC;AAlCgB,oCAAoB,GAAG,CAAC,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { WebXInstruction } from './WebXInstruction';
|
|
2
|
+
export declare class WebXInstructionResponse<T> {
|
|
3
|
+
private _instruction;
|
|
4
|
+
private _onResponseReceived;
|
|
5
|
+
private _onError;
|
|
6
|
+
private _timeoutMs;
|
|
7
|
+
private readonly _timeoutId;
|
|
8
|
+
constructor(_instruction: WebXInstruction, timeoutMs?: number);
|
|
9
|
+
then(onResponseReceived: (message: T) => void): WebXInstructionResponse<T>;
|
|
10
|
+
catch(onError: (error: Error) => void): WebXInstructionResponse<T>;
|
|
11
|
+
resolve(message: T): void;
|
|
12
|
+
reject(error: string): void;
|
|
13
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WebXInstructionResponse = void 0;
|
|
4
|
+
class WebXInstructionResponse {
|
|
5
|
+
constructor(_instruction, timeoutMs) {
|
|
6
|
+
this._instruction = _instruction;
|
|
7
|
+
this._timeoutId = 0;
|
|
8
|
+
if (timeoutMs) {
|
|
9
|
+
this._timeoutMs = timeoutMs;
|
|
10
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
11
|
+
// @ts-ignore
|
|
12
|
+
this._timeoutId = setTimeout(() => {
|
|
13
|
+
this.reject('Request failed due to timeout');
|
|
14
|
+
}, this._timeoutMs);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
then(onResponseReceived) {
|
|
18
|
+
this._onResponseReceived = onResponseReceived;
|
|
19
|
+
return this;
|
|
20
|
+
}
|
|
21
|
+
catch(onError) {
|
|
22
|
+
this._onError = onError;
|
|
23
|
+
return this;
|
|
24
|
+
}
|
|
25
|
+
resolve(message) {
|
|
26
|
+
if (this._timeoutId > 0) {
|
|
27
|
+
clearTimeout(this._timeoutId);
|
|
28
|
+
}
|
|
29
|
+
if (this._onResponseReceived != null) {
|
|
30
|
+
this._onResponseReceived(message);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
reject(error) {
|
|
34
|
+
if (this._onError) {
|
|
35
|
+
this._onError(new Error(error));
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
exports.WebXInstructionResponse = WebXInstructionResponse;
|
|
40
|
+
//# sourceMappingURL=WebXInstructionResponse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WebXInstructionResponse.js","sourceRoot":"","sources":["../../src/instruction/WebXInstructionResponse.ts"],"names":[],"mappings":";;;AAEA,MAAa,uBAAuB;IAMlC,YAAoB,YAA6B,EAAE,SAAkB;QAAjD,iBAAY,GAAZ,YAAY,CAAiB;QAFhC,eAAU,GAAW,CAAC,CAAC;QAGtC,IAAI,SAAS,EAAE;YACb,IAAI,CAAC,UAAU,GAAG,SAAS,CAAC;YAC5B,6DAA6D;YAC7D,aAAa;YACb,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC,GAAG,EAAE;gBAChC,IAAI,CAAC,MAAM,CAAC,+BAA+B,CAAC,CAAC;YAC/C,CAAC,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC;SACrB;IACH,CAAC;IAED,IAAI,CAAC,kBAAwC;QAC3C,IAAI,CAAC,mBAAmB,GAAG,kBAAkB,CAAC;QAC9C,OAAO,IAAI,CAAC;IACd,CAAC;IAED,KAAK,CAAC,OAA+B;QACnC,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC;QAExB,OAAO,IAAI,CAAC;IACd,CAAC;IAED,OAAO,CAAC,OAAU;QAChB,IAAI,IAAI,CAAC,UAAU,GAAG,CAAC,EAAE;YACvB,YAAY,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;SAC/B;QACD,IAAI,IAAI,CAAC,mBAAmB,IAAI,IAAI,EAAE;YACpC,IAAI,CAAC,mBAAmB,CAAC,OAAO,CAAC,CAAC;SACnC;IACH,CAAC;IAED,MAAM,CAAC,KAAa;QAClB,IAAI,IAAI,CAAC,QAAQ,EAAE;YACjB,IAAI,CAAC,QAAQ,CAAC,IAAI,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC;SACjC;IACH,CAAC;CACF;AA1CD,0DA0CC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare enum WebXInstructionType {
|
|
2
|
+
CONNECT = 1,
|
|
3
|
+
WINDOWS = 2,
|
|
4
|
+
IMAGE = 3,
|
|
5
|
+
SCREEN = 4,
|
|
6
|
+
MOUSE = 5,
|
|
7
|
+
KEYBOARD = 6,
|
|
8
|
+
CURSOR_IMAGE = 7,
|
|
9
|
+
QUALITY = 8
|
|
10
|
+
}
|
|
11
|
+
export declare namespace WebXInstructionType {
|
|
12
|
+
function fromString(value: string): WebXInstructionType;
|
|
13
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WebXInstructionType = void 0;
|
|
4
|
+
var WebXInstructionType;
|
|
5
|
+
(function (WebXInstructionType) {
|
|
6
|
+
WebXInstructionType[WebXInstructionType["CONNECT"] = 1] = "CONNECT";
|
|
7
|
+
WebXInstructionType[WebXInstructionType["WINDOWS"] = 2] = "WINDOWS";
|
|
8
|
+
WebXInstructionType[WebXInstructionType["IMAGE"] = 3] = "IMAGE";
|
|
9
|
+
WebXInstructionType[WebXInstructionType["SCREEN"] = 4] = "SCREEN";
|
|
10
|
+
WebXInstructionType[WebXInstructionType["MOUSE"] = 5] = "MOUSE";
|
|
11
|
+
WebXInstructionType[WebXInstructionType["KEYBOARD"] = 6] = "KEYBOARD";
|
|
12
|
+
WebXInstructionType[WebXInstructionType["CURSOR_IMAGE"] = 7] = "CURSOR_IMAGE";
|
|
13
|
+
WebXInstructionType[WebXInstructionType["QUALITY"] = 8] = "QUALITY";
|
|
14
|
+
})(WebXInstructionType = exports.WebXInstructionType || (exports.WebXInstructionType = {}));
|
|
15
|
+
(function (WebXInstructionType) {
|
|
16
|
+
function fromString(value) {
|
|
17
|
+
switch (value) {
|
|
18
|
+
case 'CONNECT':
|
|
19
|
+
return WebXInstructionType.CONNECT;
|
|
20
|
+
case 'WINDOWS':
|
|
21
|
+
return WebXInstructionType.WINDOWS;
|
|
22
|
+
case 'IMAGE':
|
|
23
|
+
return WebXInstructionType.IMAGE;
|
|
24
|
+
case 'SCREEN':
|
|
25
|
+
return WebXInstructionType.SCREEN;
|
|
26
|
+
case 'MOUSE':
|
|
27
|
+
return WebXInstructionType.MOUSE;
|
|
28
|
+
case 'KEYBOARD':
|
|
29
|
+
return WebXInstructionType.KEYBOARD;
|
|
30
|
+
case 'CURSOR_IMAGE':
|
|
31
|
+
return WebXInstructionType.CURSOR_IMAGE;
|
|
32
|
+
case 'QUALITY':
|
|
33
|
+
return WebXInstructionType.QUALITY;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
WebXInstructionType.fromString = fromString;
|
|
37
|
+
})(WebXInstructionType = exports.WebXInstructionType || (exports.WebXInstructionType = {}));
|
|
38
|
+
//# sourceMappingURL=WebXInstructionType.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WebXInstructionType.js","sourceRoot":"","sources":["../../src/instruction/WebXInstructionType.ts"],"names":[],"mappings":";;;AAAA,IAAY,mBASX;AATD,WAAY,mBAAmB;IAC7B,mEAAW,CAAA;IACX,mEAAW,CAAA;IACX,+DAAS,CAAA;IACT,iEAAU,CAAA;IACV,+DAAS,CAAA;IACT,qEAAY,CAAA;IACZ,6EAAgB,CAAA;IAChB,mEAAW,CAAA;AACb,CAAC,EATW,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAS9B;AAED,WAAiB,mBAAmB;IAClC,SAAgB,UAAU,CAAC,KAAa;QACtC,QAAQ,KAAK,EAAE;YACb,KAAK,SAAS;gBACZ,OAAO,mBAAmB,CAAC,OAAO,CAAC;YACrC,KAAK,SAAS;gBACZ,OAAO,mBAAmB,CAAC,OAAO,CAAC;YACrC,KAAK,OAAO;gBACV,OAAO,mBAAmB,CAAC,KAAK,CAAC;YACnC,KAAK,QAAQ;gBACX,OAAO,mBAAmB,CAAC,MAAM,CAAC;YACpC,KAAK,OAAO;gBACV,OAAO,mBAAmB,CAAC,KAAK,CAAC;YACnC,KAAK,UAAU;gBACb,OAAO,mBAAmB,CAAC,QAAQ,CAAC;YACtC,KAAK,cAAc;gBACjB,OAAO,mBAAmB,CAAC,YAAY,CAAC;YAC1C,KAAK,SAAS;gBACZ,OAAO,mBAAmB,CAAC,OAAO,CAAC;SACtC;IACH,CAAC;IAnBe,8BAAU,aAmBzB,CAAA;AACH,CAAC,EArBgB,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAqBnC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { WebXInstruction } from './WebXInstruction';
|
|
2
|
+
export declare class WebXKeyboardInstruction extends WebXInstruction {
|
|
3
|
+
private _key;
|
|
4
|
+
private _pressed;
|
|
5
|
+
get key(): number;
|
|
6
|
+
set key(key: number);
|
|
7
|
+
get pressed(): boolean;
|
|
8
|
+
set pressed(pressed: boolean);
|
|
9
|
+
constructor(key: number, pressed: boolean);
|
|
10
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WebXKeyboardInstruction = void 0;
|
|
4
|
+
const WebXInstruction_1 = require("./WebXInstruction");
|
|
5
|
+
const WebXInstructionType_1 = require("./WebXInstructionType");
|
|
6
|
+
class WebXKeyboardInstruction extends WebXInstruction_1.WebXInstruction {
|
|
7
|
+
constructor(key, pressed) {
|
|
8
|
+
super(WebXInstructionType_1.WebXInstructionType.KEYBOARD);
|
|
9
|
+
this._key = key;
|
|
10
|
+
this._pressed = pressed;
|
|
11
|
+
}
|
|
12
|
+
get key() {
|
|
13
|
+
return this._key;
|
|
14
|
+
}
|
|
15
|
+
set key(key) {
|
|
16
|
+
this._key = key;
|
|
17
|
+
}
|
|
18
|
+
get pressed() {
|
|
19
|
+
return this._pressed;
|
|
20
|
+
}
|
|
21
|
+
set pressed(pressed) {
|
|
22
|
+
this._pressed = pressed;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
exports.WebXKeyboardInstruction = WebXKeyboardInstruction;
|
|
26
|
+
//# sourceMappingURL=WebXKeyboardInstruction.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WebXKeyboardInstruction.js","sourceRoot":"","sources":["../../src/instruction/WebXKeyboardInstruction.ts"],"names":[],"mappings":";;;AAAA,uDAAoD;AACpD,+DAA4D;AAE5D,MAAa,uBAAwB,SAAQ,iCAAe;IAoB1D,YAAY,GAAW,EAAE,OAAgB;QACvC,KAAK,CAAC,yCAAmB,CAAC,QAAQ,CAAC,CAAC;QACpC,IAAI,CAAC,IAAI,GAAG,GAAG,CAAC;QAChB,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC;IAC1B,CAAC;IApBD,IAAW,GAAG;QACZ,OAAO,IAAI,CAAC,IAAI,CAAC;IACnB,CAAC;IAED,IAAW,GAAG,CAAC,GAAW;QACxB,IAAI,CAAC,IAAI,GAAG,GAAG,CAAC;IAClB,CAAC;IAED,IAAW,OAAO;QAChB,OAAO,IAAI,CAAC,QAAQ,CAAC;IACvB,CAAC;IAED,IAAW,OAAO,CAAC,OAAgB;QACjC,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC;IAC1B,CAAC;CAOF;AAzBD,0DAyBC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { WebXInstruction } from './WebXInstruction';
|
|
2
|
+
export declare class WebXMouseInstruction extends WebXInstruction {
|
|
3
|
+
private _x;
|
|
4
|
+
private _y;
|
|
5
|
+
private _buttonMask;
|
|
6
|
+
get x(): number;
|
|
7
|
+
set x(x: number);
|
|
8
|
+
get y(): number;
|
|
9
|
+
set y(y: number);
|
|
10
|
+
get buttonMask(): number;
|
|
11
|
+
set buttonMask(buttonMask: number);
|
|
12
|
+
constructor(x: number, y: number, buttonMask: number);
|
|
13
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WebXMouseInstruction = void 0;
|
|
4
|
+
const WebXInstruction_1 = require("./WebXInstruction");
|
|
5
|
+
const WebXInstructionType_1 = require("./WebXInstructionType");
|
|
6
|
+
class WebXMouseInstruction extends WebXInstruction_1.WebXInstruction {
|
|
7
|
+
constructor(x, y, buttonMask) {
|
|
8
|
+
super(WebXInstructionType_1.WebXInstructionType.MOUSE);
|
|
9
|
+
this._x = x;
|
|
10
|
+
this._y = y;
|
|
11
|
+
this._buttonMask = buttonMask;
|
|
12
|
+
}
|
|
13
|
+
get x() {
|
|
14
|
+
return this._x;
|
|
15
|
+
}
|
|
16
|
+
set x(x) {
|
|
17
|
+
this._x = x;
|
|
18
|
+
}
|
|
19
|
+
get y() {
|
|
20
|
+
return this._y;
|
|
21
|
+
}
|
|
22
|
+
set y(y) {
|
|
23
|
+
this._y = y;
|
|
24
|
+
}
|
|
25
|
+
get buttonMask() {
|
|
26
|
+
return this._buttonMask;
|
|
27
|
+
}
|
|
28
|
+
set buttonMask(buttonMask) {
|
|
29
|
+
this._buttonMask = buttonMask;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
exports.WebXMouseInstruction = WebXMouseInstruction;
|
|
33
|
+
//# sourceMappingURL=WebXMouseInstruction.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WebXMouseInstruction.js","sourceRoot":"","sources":["../../src/instruction/WebXMouseInstruction.ts"],"names":[],"mappings":";;;AAAA,uDAAoD;AACpD,+DAA4D;AAE5D,MAAa,oBAAqB,SAAQ,iCAAe;IA6BvD,YAAY,CAAS,EAAE,CAAS,EAAE,UAAkB;QAClD,KAAK,CAAC,yCAAmB,CAAC,KAAK,CAAC,CAAC;QACjC,IAAI,CAAC,EAAE,GAAG,CAAC,CAAC;QACZ,IAAI,CAAC,EAAE,GAAG,CAAC,CAAC;QACZ,IAAI,CAAC,WAAW,GAAG,UAAU,CAAC;IAChC,CAAC;IA7BD,IAAW,CAAC;QACV,OAAO,IAAI,CAAC,EAAE,CAAC;IACjB,CAAC;IAED,IAAW,CAAC,CAAC,CAAS;QACpB,IAAI,CAAC,EAAE,GAAG,CAAC,CAAC;IACd,CAAC;IAED,IAAW,CAAC;QACV,OAAO,IAAI,CAAC,EAAE,CAAC;IACjB,CAAC;IAED,IAAW,CAAC,CAAC,CAAS;QACpB,IAAI,CAAC,EAAE,GAAG,CAAC,CAAC;IACd,CAAC;IAED,IAAW,UAAU;QACnB,OAAO,IAAI,CAAC,WAAW,CAAC;IAC1B,CAAC;IAED,IAAW,UAAU,CAAC,UAAkB;QACtC,IAAI,CAAC,WAAW,GAAG,UAAU,CAAC;IAChC,CAAC;CAQF;AAnCD,oDAmCC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WebXQualityInstruction = void 0;
|
|
4
|
+
const WebXInstruction_1 = require("./WebXInstruction");
|
|
5
|
+
const WebXInstructionType_1 = require("./WebXInstructionType");
|
|
6
|
+
class WebXQualityInstruction extends WebXInstruction_1.WebXInstruction {
|
|
7
|
+
constructor(_qualityIndex) {
|
|
8
|
+
super(WebXInstructionType_1.WebXInstructionType.QUALITY);
|
|
9
|
+
this._qualityIndex = _qualityIndex;
|
|
10
|
+
}
|
|
11
|
+
get qualityIndex() {
|
|
12
|
+
return this._qualityIndex;
|
|
13
|
+
}
|
|
14
|
+
set qualityIndex(qualityIndex) {
|
|
15
|
+
this._qualityIndex = qualityIndex;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
exports.WebXQualityInstruction = WebXQualityInstruction;
|
|
19
|
+
//# sourceMappingURL=WebXQualityInstruction.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WebXQualityInstruction.js","sourceRoot":"","sources":["../../src/instruction/WebXQualityInstruction.ts"],"names":[],"mappings":";;;AAAA,uDAAoD;AACpD,+DAA4D;AAE5D,MAAa,sBAAuB,SAAQ,iCAAe;IAUzD,YAAoB,aAAqB;QACvC,KAAK,CAAC,yCAAmB,CAAC,OAAO,CAAC,CAAC;QADjB,kBAAa,GAAb,aAAa,CAAQ;IAEzC,CAAC;IAVD,IAAW,YAAY;QACrB,OAAO,IAAI,CAAC,aAAa,CAAC;IAC5B,CAAC;IAED,IAAW,YAAY,CAAC,YAAoB;QAC1C,IAAI,CAAC,aAAa,GAAG,YAAY,CAAC;IACpC,CAAC;CAKF;AAbD,wDAaC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WebXScreenInstruction = void 0;
|
|
4
|
+
const WebXInstruction_1 = require("./WebXInstruction");
|
|
5
|
+
const WebXInstructionType_1 = require("./WebXInstructionType");
|
|
6
|
+
class WebXScreenInstruction extends WebXInstruction_1.WebXInstruction {
|
|
7
|
+
constructor() {
|
|
8
|
+
super(WebXInstructionType_1.WebXInstructionType.SCREEN);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.WebXScreenInstruction = WebXScreenInstruction;
|
|
12
|
+
//# sourceMappingURL=WebXScreenInstruction.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WebXScreenInstruction.js","sourceRoot":"","sources":["../../src/instruction/WebXScreenInstruction.ts"],"names":[],"mappings":";;;AAAA,uDAAoD;AACpD,+DAA4D;AAE5D,MAAa,qBAAsB,SAAQ,iCAAe;IACxD;QACE,KAAK,CAAC,yCAAmB,CAAC,MAAM,CAAC,CAAC;IACpC,CAAC;CACF;AAJD,sDAIC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WebXWindowsInstruction = void 0;
|
|
4
|
+
const WebXInstruction_1 = require("./WebXInstruction");
|
|
5
|
+
const WebXInstructionType_1 = require("./WebXInstructionType");
|
|
6
|
+
class WebXWindowsInstruction extends WebXInstruction_1.WebXInstruction {
|
|
7
|
+
constructor() {
|
|
8
|
+
super(WebXInstructionType_1.WebXInstructionType.WINDOWS);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.WebXWindowsInstruction = WebXWindowsInstruction;
|
|
12
|
+
//# sourceMappingURL=WebXWindowsInstruction.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WebXWindowsInstruction.js","sourceRoot":"","sources":["../../src/instruction/WebXWindowsInstruction.ts"],"names":[],"mappings":";;;AAAA,uDAAoD;AACpD,+DAA4D;AAE5D,MAAa,sBAAuB,SAAQ,iCAAe;IACzD;QACE,KAAK,CAAC,yCAAmB,CAAC,OAAO,CAAC,CAAC;IACrC,CAAC;CACF;AAJD,wDAIC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export * from './WebXInstruction';
|
|
2
|
+
export * from './WebXInstructionResponse';
|
|
3
|
+
export * from './WebXInstructionType';
|
|
4
|
+
export * from './WebXConnectInstruction';
|
|
5
|
+
export * from './WebXScreenInstruction';
|
|
6
|
+
export * from './WebXWindowsInstruction';
|
|
7
|
+
export * from './WebXImageInstruction';
|
|
8
|
+
export * from './WebXMouseInstruction';
|
|
9
|
+
export * from './WebXKeyboardInstruction';
|
|
10
|
+
export * from './WebXCursorImageInstruction';
|
|
11
|
+
export * from './WebXQualityInstruction';
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./WebXInstruction"), exports);
|
|
18
|
+
__exportStar(require("./WebXInstructionResponse"), exports);
|
|
19
|
+
__exportStar(require("./WebXInstructionType"), exports);
|
|
20
|
+
__exportStar(require("./WebXConnectInstruction"), exports);
|
|
21
|
+
__exportStar(require("./WebXScreenInstruction"), exports);
|
|
22
|
+
__exportStar(require("./WebXWindowsInstruction"), exports);
|
|
23
|
+
__exportStar(require("./WebXImageInstruction"), exports);
|
|
24
|
+
__exportStar(require("./WebXMouseInstruction"), exports);
|
|
25
|
+
__exportStar(require("./WebXKeyboardInstruction"), exports);
|
|
26
|
+
__exportStar(require("./WebXCursorImageInstruction"), exports);
|
|
27
|
+
__exportStar(require("./WebXQualityInstruction"), exports);
|
|
28
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/instruction/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,4DAA0C;AAC1C,wDAAsC;AACtC,2DAAyC;AACzC,0DAAwC;AACxC,2DAAyC;AACzC,yDAAuC;AACvC,yDAAuC;AACvC,4DAA0C;AAC1C,+DAA6C;AAC7C,2DAAyC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { WebXMessage } from './WebXMessage';
|
|
2
|
+
import { Texture } from 'three';
|
|
3
|
+
export declare class WebXCursorImageMessage extends WebXMessage {
|
|
4
|
+
private _x;
|
|
5
|
+
private _y;
|
|
6
|
+
private _xHot;
|
|
7
|
+
private _yHot;
|
|
8
|
+
private _cursorId;
|
|
9
|
+
private _texture;
|
|
10
|
+
get x(): number;
|
|
11
|
+
get y(): number;
|
|
12
|
+
get xHot(): number;
|
|
13
|
+
get yHot(): number;
|
|
14
|
+
get cursorId(): number;
|
|
15
|
+
get texture(): Texture;
|
|
16
|
+
constructor(_x: number, _y: number, _xHot: number, _yHot: number, _cursorId: number, _texture: Texture, commandId: number);
|
|
17
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WebXCursorImageMessage = void 0;
|
|
4
|
+
const WebXMessage_1 = require("./WebXMessage");
|
|
5
|
+
const WebXMessageType_1 = require("./WebXMessageType");
|
|
6
|
+
class WebXCursorImageMessage extends WebXMessage_1.WebXMessage {
|
|
7
|
+
constructor(_x, _y, _xHot, _yHot, _cursorId, _texture, commandId) {
|
|
8
|
+
super(WebXMessageType_1.WebXMessageType.CURSOR_IMAGE, commandId);
|
|
9
|
+
this._x = _x;
|
|
10
|
+
this._y = _y;
|
|
11
|
+
this._xHot = _xHot;
|
|
12
|
+
this._yHot = _yHot;
|
|
13
|
+
this._cursorId = _cursorId;
|
|
14
|
+
this._texture = _texture;
|
|
15
|
+
}
|
|
16
|
+
get x() {
|
|
17
|
+
return this._x;
|
|
18
|
+
}
|
|
19
|
+
get y() {
|
|
20
|
+
return this._y;
|
|
21
|
+
}
|
|
22
|
+
get xHot() {
|
|
23
|
+
return this._xHot;
|
|
24
|
+
}
|
|
25
|
+
get yHot() {
|
|
26
|
+
return this._yHot;
|
|
27
|
+
}
|
|
28
|
+
get cursorId() {
|
|
29
|
+
return this._cursorId;
|
|
30
|
+
}
|
|
31
|
+
get texture() {
|
|
32
|
+
return this._texture;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
exports.WebXCursorImageMessage = WebXCursorImageMessage;
|
|
36
|
+
//# sourceMappingURL=WebXCursorImageMessage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WebXCursorImageMessage.js","sourceRoot":"","sources":["../../src/message/WebXCursorImageMessage.ts"],"names":[],"mappings":";;;AAAA,+CAA4C;AAC5C,uDAAoD;AAGpD,MAAa,sBAAuB,SAAQ,yBAAW;IA0BrD,YAAoB,EAAU,EAAU,EAAU,EAAU,KAAa,EAAU,KAAa,EAAU,SAAiB,EAAU,QAAiB,EAAE,SAAiB;QACvK,KAAK,CAAC,iCAAe,CAAC,YAAY,EAAE,SAAS,CAAC,CAAC;QAD7B,OAAE,GAAF,EAAE,CAAQ;QAAU,OAAE,GAAF,EAAE,CAAQ;QAAU,UAAK,GAAL,KAAK,CAAQ;QAAU,UAAK,GAAL,KAAK,CAAQ;QAAU,cAAS,GAAT,SAAS,CAAQ;QAAU,aAAQ,GAAR,QAAQ,CAAS;IAEtJ,CAAC;IA1BD,IAAI,CAAC;QACH,OAAO,IAAI,CAAC,EAAE,CAAC;IACjB,CAAC;IAED,IAAI,CAAC;QACH,OAAO,IAAI,CAAC,EAAE,CAAC;IACjB,CAAC;IAED,IAAI,IAAI;QACN,OAAO,IAAI,CAAC,KAAK,CAAC;IACpB,CAAC;IAED,IAAI,IAAI;QACN,OAAO,IAAI,CAAC,KAAK,CAAC;IACpB,CAAC;IAED,IAAI,QAAQ;QACV,OAAO,IAAI,CAAC,SAAS,CAAC;IACxB,CAAC;IAED,IAAW,OAAO;QAChB,OAAO,IAAI,CAAC,QAAQ,CAAC;IACvB,CAAC;CAKF;AA7BD,wDA6BC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { WebXMessage } from './WebXMessage';
|
|
2
|
+
import { Texture } from 'three';
|
|
3
|
+
export declare class WebXImageMessage extends WebXMessage {
|
|
4
|
+
private _windowId;
|
|
5
|
+
private _depth;
|
|
6
|
+
private _colorMap;
|
|
7
|
+
private _alphaMap;
|
|
8
|
+
private _size;
|
|
9
|
+
get windowId(): number;
|
|
10
|
+
get depth(): number;
|
|
11
|
+
get colorMap(): Texture;
|
|
12
|
+
get alphaMap(): Texture;
|
|
13
|
+
get size(): number;
|
|
14
|
+
constructor(_windowId: number, _depth: number, _colorMap: Texture, _alphaMap: Texture, commandId: number, _size: number);
|
|
15
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WebXImageMessage = void 0;
|
|
4
|
+
const WebXMessage_1 = require("./WebXMessage");
|
|
5
|
+
const WebXMessageType_1 = require("./WebXMessageType");
|
|
6
|
+
class WebXImageMessage extends WebXMessage_1.WebXMessage {
|
|
7
|
+
constructor(_windowId, _depth, _colorMap, _alphaMap, commandId, _size) {
|
|
8
|
+
super(WebXMessageType_1.WebXMessageType.IMAGE, commandId);
|
|
9
|
+
this._windowId = _windowId;
|
|
10
|
+
this._depth = _depth;
|
|
11
|
+
this._colorMap = _colorMap;
|
|
12
|
+
this._alphaMap = _alphaMap;
|
|
13
|
+
this._size = _size;
|
|
14
|
+
}
|
|
15
|
+
get windowId() {
|
|
16
|
+
return this._windowId;
|
|
17
|
+
}
|
|
18
|
+
get depth() {
|
|
19
|
+
return this._depth;
|
|
20
|
+
}
|
|
21
|
+
get colorMap() {
|
|
22
|
+
return this._colorMap;
|
|
23
|
+
}
|
|
24
|
+
get alphaMap() {
|
|
25
|
+
return this._alphaMap;
|
|
26
|
+
}
|
|
27
|
+
get size() {
|
|
28
|
+
return this._size;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
exports.WebXImageMessage = WebXImageMessage;
|
|
32
|
+
//# sourceMappingURL=WebXImageMessage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WebXImageMessage.js","sourceRoot":"","sources":["../../src/message/WebXImageMessage.ts"],"names":[],"mappings":";;;AAAA,+CAA4C;AAC5C,uDAAoD;AAGpD,MAAa,gBAAiB,SAAQ,yBAAW;IAqB/C,YAAoB,SAAiB,EAAU,MAAc,EAAU,SAAkB,EAAU,SAAkB,EAAE,SAAiB,EAAU,KAAa;QAC7J,KAAK,CAAC,iCAAe,CAAC,KAAK,EAAE,SAAS,CAAC,CAAC;QADtB,cAAS,GAAT,SAAS,CAAQ;QAAU,WAAM,GAAN,MAAM,CAAQ;QAAU,cAAS,GAAT,SAAS,CAAS;QAAU,cAAS,GAAT,SAAS,CAAS;QAA6B,UAAK,GAAL,KAAK,CAAQ;IAE/J,CAAC;IAtBD,IAAW,QAAQ;QACjB,OAAO,IAAI,CAAC,SAAS,CAAC;IACxB,CAAC;IAED,IAAW,KAAK;QACd,OAAO,IAAI,CAAC,MAAM,CAAC;IACrB,CAAC;IAED,IAAW,QAAQ;QACjB,OAAO,IAAI,CAAC,SAAS,CAAC;IACxB,CAAC;IAED,IAAW,QAAQ;QACjB,OAAO,IAAI,CAAC,SAAS,CAAC;IACxB,CAAC;IAED,IAAW,IAAI;QACb,OAAO,IAAI,CAAC,KAAK,CAAC;IACpB,CAAC;CAKF;AAxBD,4CAwBC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WebXMessage = void 0;
|
|
4
|
+
class WebXMessage {
|
|
5
|
+
constructor(_messageType, _commandId = 0) {
|
|
6
|
+
this._messageType = _messageType;
|
|
7
|
+
this._commandId = _commandId;
|
|
8
|
+
}
|
|
9
|
+
get type() {
|
|
10
|
+
return this._messageType;
|
|
11
|
+
}
|
|
12
|
+
get commandId() {
|
|
13
|
+
return this._commandId;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
exports.WebXMessage = WebXMessage;
|
|
17
|
+
//# sourceMappingURL=WebXMessage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WebXMessage.js","sourceRoot":"","sources":["../../src/message/WebXMessage.ts"],"names":[],"mappings":";;;AAEA,MAAa,WAAW;IAStB,YAAoB,YAA6B,EAAU,aAAqB,CAAC;QAA7D,iBAAY,GAAZ,YAAY,CAAiB;QAAU,eAAU,GAAV,UAAU,CAAY;IAAG,CAAC;IARrF,IAAW,IAAI;QACb,OAAO,IAAI,CAAC,YAAY,CAAC;IAC3B,CAAC;IAED,IAAW,SAAS;QAClB,OAAO,IAAI,CAAC,UAAU,CAAC;IACzB,CAAC;CAGF;AAVD,kCAUC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WebXMessageType = void 0;
|
|
4
|
+
var WebXMessageType;
|
|
5
|
+
(function (WebXMessageType) {
|
|
6
|
+
WebXMessageType[WebXMessageType["CONNECTION"] = 1] = "CONNECTION";
|
|
7
|
+
WebXMessageType[WebXMessageType["WINDOWS"] = 2] = "WINDOWS";
|
|
8
|
+
WebXMessageType[WebXMessageType["IMAGE"] = 3] = "IMAGE";
|
|
9
|
+
WebXMessageType[WebXMessageType["SCREEN"] = 4] = "SCREEN";
|
|
10
|
+
WebXMessageType[WebXMessageType["SUBIMAGES"] = 5] = "SUBIMAGES";
|
|
11
|
+
WebXMessageType[WebXMessageType["MOUSE"] = 6] = "MOUSE";
|
|
12
|
+
WebXMessageType[WebXMessageType["CURSOR_IMAGE"] = 7] = "CURSOR_IMAGE";
|
|
13
|
+
WebXMessageType[WebXMessageType["POLL"] = 8] = "POLL";
|
|
14
|
+
})(WebXMessageType = exports.WebXMessageType || (exports.WebXMessageType = {}));
|
|
15
|
+
//# sourceMappingURL=WebXMessageType.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WebXMessageType.js","sourceRoot":"","sources":["../../src/message/WebXMessageType.ts"],"names":[],"mappings":";;;AAAA,IAAY,eASX;AATD,WAAY,eAAe;IACzB,iEAAc,CAAA;IACd,2DAAW,CAAA;IACX,uDAAS,CAAA;IACT,yDAAU,CAAA;IACV,+DAAa,CAAA;IACb,uDAAS,CAAA;IACT,qEAAgB,CAAA;IAChB,qDAAQ,CAAA;AACV,CAAC,EATW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAS1B"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { WebXMessage } from './WebXMessage';
|
|
2
|
+
export declare class WebXMouseMessage extends WebXMessage {
|
|
3
|
+
private _x;
|
|
4
|
+
private _y;
|
|
5
|
+
private _cursorId;
|
|
6
|
+
get x(): number;
|
|
7
|
+
get y(): number;
|
|
8
|
+
get cursorId(): number;
|
|
9
|
+
constructor(_x: number, _y: number, _cursorId: number, commandId: number);
|
|
10
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WebXMouseMessage = void 0;
|
|
4
|
+
const WebXMessage_1 = require("./WebXMessage");
|
|
5
|
+
const WebXMessageType_1 = require("./WebXMessageType");
|
|
6
|
+
class WebXMouseMessage extends WebXMessage_1.WebXMessage {
|
|
7
|
+
constructor(_x, _y, _cursorId, commandId) {
|
|
8
|
+
super(WebXMessageType_1.WebXMessageType.MOUSE, commandId);
|
|
9
|
+
this._x = _x;
|
|
10
|
+
this._y = _y;
|
|
11
|
+
this._cursorId = _cursorId;
|
|
12
|
+
}
|
|
13
|
+
get x() {
|
|
14
|
+
return this._x;
|
|
15
|
+
}
|
|
16
|
+
get y() {
|
|
17
|
+
return this._y;
|
|
18
|
+
}
|
|
19
|
+
get cursorId() {
|
|
20
|
+
return this._cursorId;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
exports.WebXMouseMessage = WebXMouseMessage;
|
|
24
|
+
//# sourceMappingURL=WebXMouseMessage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WebXMouseMessage.js","sourceRoot":"","sources":["../../src/message/WebXMouseMessage.ts"],"names":[],"mappings":";;;AAAA,+CAA4C;AAC5C,uDAAoD;AAEpD,MAAa,gBAAiB,SAAQ,yBAAW;IAa/C,YAAoB,EAAU,EAAU,EAAU,EAAU,SAAiB,EAAE,SAAiB;QAC9F,KAAK,CAAC,iCAAe,CAAC,KAAK,EAAE,SAAS,CAAC,CAAC;QADtB,OAAE,GAAF,EAAE,CAAQ;QAAU,OAAE,GAAF,EAAE,CAAQ;QAAU,cAAS,GAAT,SAAS,CAAQ;IAE7E,CAAC;IAdD,IAAI,CAAC;QACH,OAAO,IAAI,CAAC,EAAE,CAAC;IACjB,CAAC;IAED,IAAI,CAAC;QACH,OAAO,IAAI,CAAC,EAAE,CAAC;IACjB,CAAC;IAED,IAAI,QAAQ;QACV,OAAO,IAAI,CAAC,SAAS,CAAC;IACxB,CAAC;CAKF;AAhBD,4CAgBC"}
|