@illgrenoble/webx-client 1.11.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.
Files changed (192) hide show
  1. package/dist/WebXClient.d.ts +1 -2
  2. package/dist/common/WebXImageBlenderFunc.d.ts +26 -0
  3. package/dist/{display → common}/WebXSubImage.d.ts +5 -5
  4. package/dist/common/index.d.ts +3 -0
  5. package/dist/display/WebXCursor.d.ts +5 -17
  6. package/dist/display/WebXCursorFactory.d.ts +2 -2
  7. package/dist/display/WebXDisplay.d.ts +11 -10
  8. package/dist/display/WebXDisplayOverlay.d.ts +10 -0
  9. package/dist/display/WebXWindow.d.ts +4 -4
  10. package/dist/display/WebXWindowImageFactory.d.ts +31 -0
  11. package/dist/display/index.d.ts +0 -6
  12. package/dist/index.d.ts +2 -0
  13. package/dist/message/WebXCursorImageMessage.d.ts +3 -3
  14. package/dist/message/WebXImageMessage.d.ts +4 -4
  15. package/dist/message/WebXMessage.d.ts +13 -1
  16. package/dist/message/WebXShapeMessage.d.ts +3 -3
  17. package/dist/message/WebXSubImagesMessage.d.ts +1 -1
  18. package/dist/message/WebXWindowsMessage.d.ts +1 -1
  19. package/dist/renderer/WebXCanvasRenderer.d.ts +1 -2
  20. package/dist/renderer/{WebXAlphaStencilBlender.d.ts → WebXImageBlender.d.ts} +1 -1
  21. package/dist/renderer/WebXImageBlenderWorker.d.ts +1 -0
  22. package/dist/renderer/WebXWindowCanvas.d.ts +27 -8
  23. package/dist/renderer/index.d.ts +1 -1
  24. package/dist/texture/WebXTexture.d.ts +18 -0
  25. package/dist/texture/WebXTextureFactory.d.ts +23 -0
  26. package/dist/texture/WebXTextureFunc.d.ts +3 -0
  27. package/dist/texture/index.d.ts +3 -0
  28. package/dist/transport/WebXBinarySerializer.d.ts +13 -8
  29. package/dist/transport/WebXMessageBuffer.d.ts +4 -0
  30. package/dist/transport/WebXMessageDecoder.d.ts +2 -5
  31. package/dist/transport/WebXMessageDecoderWorker.d.ts +1 -0
  32. package/dist/transport/WebXMessageFunc.d.ts +22 -0
  33. package/dist/transport/index.d.ts +0 -2
  34. package/dist/tunnel/WebXTunnel.d.ts +5 -2
  35. package/dist/tunnel/WebXWebSocketTunnel.d.ts +2 -4
  36. package/dist/webx-client.cjs +1 -0
  37. package/dist/webx-client.esm.js +1 -0
  38. package/package.json +12 -9
  39. package/dist/WebXClient.js +0 -513
  40. package/dist/WebXClient.js.map +0 -1
  41. package/dist/WebXConnectionHandler.js +0 -96
  42. package/dist/WebXConnectionHandler.js.map +0 -1
  43. package/dist/WebXEngine.js +0 -7
  44. package/dist/WebXEngine.js.map +0 -1
  45. package/dist/display/WebXCursor.js +0 -150
  46. package/dist/display/WebXCursor.js.map +0 -1
  47. package/dist/display/WebXCursorFactory.js +0 -59
  48. package/dist/display/WebXCursorFactory.js.map +0 -1
  49. package/dist/display/WebXDisplay.js +0 -501
  50. package/dist/display/WebXDisplay.js.map +0 -1
  51. package/dist/display/WebXMaterial.js +0 -142
  52. package/dist/display/WebXMaterial.js.map +0 -1
  53. package/dist/display/WebXSubImage.js +0 -26
  54. package/dist/display/WebXSubImage.js.map +0 -1
  55. package/dist/display/WebXTextureFactory.d.ts +0 -54
  56. package/dist/display/WebXTextureFactory.js +0 -160
  57. package/dist/display/WebXTextureFactory.js.map +0 -1
  58. package/dist/display/WebXWindow.js +0 -475
  59. package/dist/display/WebXWindow.js.map +0 -1
  60. package/dist/display/WebXWindowProperties.js +0 -25
  61. package/dist/display/WebXWindowProperties.js.map +0 -1
  62. package/dist/display/index.js +0 -24
  63. package/dist/display/index.js.map +0 -1
  64. package/dist/index.js +0 -25
  65. package/dist/index.js.map +0 -1
  66. package/dist/input/GuacamoleKeyboard.js +0 -1551
  67. package/dist/input/WebXKeyboard.js +0 -44
  68. package/dist/input/WebXKeyboard.js.map +0 -1
  69. package/dist/input/WebXMouse.js +0 -231
  70. package/dist/input/WebXMouse.js.map +0 -1
  71. package/dist/input/index.js +0 -20
  72. package/dist/input/index.js.map +0 -1
  73. package/dist/input/mouse/WebXMouseState.js +0 -217
  74. package/dist/input/mouse/WebXMouseState.js.map +0 -1
  75. package/dist/input/mouse/index.js +0 -18
  76. package/dist/input/mouse/index.js.map +0 -1
  77. package/dist/instruction/WebXClipboardInstruction.js +0 -23
  78. package/dist/instruction/WebXClipboardInstruction.js.map +0 -1
  79. package/dist/instruction/WebXConnectInstruction.js +0 -24
  80. package/dist/instruction/WebXConnectInstruction.js.map +0 -1
  81. package/dist/instruction/WebXCursorImageInstruction.js +0 -23
  82. package/dist/instruction/WebXCursorImageInstruction.js.map +0 -1
  83. package/dist/instruction/WebXDataAckInstruction.js +0 -26
  84. package/dist/instruction/WebXDataAckInstruction.js.map +0 -1
  85. package/dist/instruction/WebXImageInstruction.js +0 -23
  86. package/dist/instruction/WebXImageInstruction.js.map +0 -1
  87. package/dist/instruction/WebXInstruction.js +0 -28
  88. package/dist/instruction/WebXInstruction.js.map +0 -1
  89. package/dist/instruction/WebXInstructionResponse.js +0 -78
  90. package/dist/instruction/WebXInstructionResponse.js.map +0 -1
  91. package/dist/instruction/WebXInstructionType.js +0 -96
  92. package/dist/instruction/WebXInstructionType.js.map +0 -1
  93. package/dist/instruction/WebXKeyboardInstruction.js +0 -25
  94. package/dist/instruction/WebXKeyboardInstruction.js.map +0 -1
  95. package/dist/instruction/WebXMouseInstruction.js +0 -27
  96. package/dist/instruction/WebXMouseInstruction.js.map +0 -1
  97. package/dist/instruction/WebXPongInstruction.js +0 -23
  98. package/dist/instruction/WebXPongInstruction.js.map +0 -1
  99. package/dist/instruction/WebXQualityInstruction.js +0 -24
  100. package/dist/instruction/WebXQualityInstruction.js.map +0 -1
  101. package/dist/instruction/WebXScreenInstruction.js +0 -20
  102. package/dist/instruction/WebXScreenInstruction.js.map +0 -1
  103. package/dist/instruction/WebXShapeInstruction.js +0 -23
  104. package/dist/instruction/WebXShapeInstruction.js.map +0 -1
  105. package/dist/instruction/WebXWindowsInstruction.js +0 -21
  106. package/dist/instruction/WebXWindowsInstruction.js.map +0 -1
  107. package/dist/instruction/index.js +0 -32
  108. package/dist/instruction/index.js.map +0 -1
  109. package/dist/message/WebXClipboardMessage.js +0 -23
  110. package/dist/message/WebXClipboardMessage.js.map +0 -1
  111. package/dist/message/WebXConnectionMessage.js +0 -21
  112. package/dist/message/WebXConnectionMessage.js.map +0 -1
  113. package/dist/message/WebXCursorImageMessage.js +0 -35
  114. package/dist/message/WebXCursorImageMessage.js.map +0 -1
  115. package/dist/message/WebXImageMessage.js +0 -33
  116. package/dist/message/WebXImageMessage.js.map +0 -1
  117. package/dist/message/WebXMessage.js +0 -23
  118. package/dist/message/WebXMessage.js.map +0 -1
  119. package/dist/message/WebXMessageType.js +0 -64
  120. package/dist/message/WebXMessageType.js.map +0 -1
  121. package/dist/message/WebXMouseMessage.js +0 -29
  122. package/dist/message/WebXMouseMessage.js.map +0 -1
  123. package/dist/message/WebXNopMessage.js +0 -18
  124. package/dist/message/WebXNopMessage.js.map +0 -1
  125. package/dist/message/WebXPingMessage.js +0 -21
  126. package/dist/message/WebXPingMessage.js.map +0 -1
  127. package/dist/message/WebXQualityMessage.js +0 -32
  128. package/dist/message/WebXQualityMessage.js.map +0 -1
  129. package/dist/message/WebXScreenMessage.js +0 -29
  130. package/dist/message/WebXScreenMessage.js.map +0 -1
  131. package/dist/message/WebXShapeMessage.js +0 -29
  132. package/dist/message/WebXShapeMessage.js.map +0 -1
  133. package/dist/message/WebXSubImagesMessage.js +0 -29
  134. package/dist/message/WebXSubImagesMessage.js.map +0 -1
  135. package/dist/message/WebXWindowsMessage.js +0 -25
  136. package/dist/message/WebXWindowsMessage.js.map +0 -1
  137. package/dist/message/index.js +0 -31
  138. package/dist/message/index.js.map +0 -1
  139. package/dist/renderer/WebXAlphaStencilBlender.js +0 -136
  140. package/dist/renderer/WebXAlphaStencilBlender.js.map +0 -1
  141. package/dist/renderer/WebXBlenderWorker.d.ts +0 -1
  142. package/dist/renderer/WebXBlenderWorker.js +0 -33
  143. package/dist/renderer/WebXBlenderWorker.js.map +0 -1
  144. package/dist/renderer/WebXCanvasRenderer.js +0 -190
  145. package/dist/renderer/WebXCanvasRenderer.js.map +0 -1
  146. package/dist/renderer/WebXWindowBlender.d.ts +0 -11
  147. package/dist/renderer/WebXWindowBlender.js +0 -27
  148. package/dist/renderer/WebXWindowBlender.js.map +0 -1
  149. package/dist/renderer/WebXWindowCanvas.js +0 -306
  150. package/dist/renderer/WebXWindowCanvas.js.map +0 -1
  151. package/dist/renderer/blender.d.ts +0 -5
  152. package/dist/renderer/blender.js +0 -201
  153. package/dist/renderer/blender.js.map +0 -1
  154. package/dist/renderer/index.js +0 -20
  155. package/dist/renderer/index.js.map +0 -1
  156. package/dist/tracer/WebXDebugImageMessageHandler.js +0 -102
  157. package/dist/tracer/WebXDebugImageMessageHandler.js.map +0 -1
  158. package/dist/tracer/WebXHandler.js +0 -3
  159. package/dist/tracer/WebXHandler.js.map +0 -1
  160. package/dist/tracer/WebXInstructionHandler.js +0 -13
  161. package/dist/tracer/WebXInstructionHandler.js.map +0 -1
  162. package/dist/tracer/WebXMessageHandler.js +0 -13
  163. package/dist/tracer/WebXMessageHandler.js.map +0 -1
  164. package/dist/tracer/WebXStatsHandler.js +0 -13
  165. package/dist/tracer/WebXStatsHandler.js.map +0 -1
  166. package/dist/tracer/index.js +0 -22
  167. package/dist/tracer/index.js.map +0 -1
  168. package/dist/transport/WebXBinarySerializer.js +0 -63
  169. package/dist/transport/WebXBinarySerializer.js.map +0 -1
  170. package/dist/transport/WebXInstructionBuffer.js +0 -109
  171. package/dist/transport/WebXInstructionBuffer.js.map +0 -1
  172. package/dist/transport/WebXInstructionEncoder.js +0 -294
  173. package/dist/transport/WebXInstructionEncoder.js.map +0 -1
  174. package/dist/transport/WebXMessageBuffer.js +0 -104
  175. package/dist/transport/WebXMessageBuffer.js.map +0 -1
  176. package/dist/transport/WebXMessageDecoder.js +0 -333
  177. package/dist/transport/WebXMessageDecoder.js.map +0 -1
  178. package/dist/transport/index.js +0 -22
  179. package/dist/transport/index.js.map +0 -1
  180. package/dist/tunnel/WebXTunnel.js +0 -156
  181. package/dist/tunnel/WebXTunnel.js.map +0 -1
  182. package/dist/tunnel/WebXWebSocketTunnel.js +0 -88
  183. package/dist/tunnel/WebXWebSocketTunnel.js.map +0 -1
  184. package/dist/tunnel/index.js +0 -19
  185. package/dist/tunnel/index.js.map +0 -1
  186. package/dist/utils/WebXColorGenerator.js +0 -46
  187. package/dist/utils/WebXColorGenerator.js.map +0 -1
  188. package/dist/utils/WebXVersion.js +0 -25
  189. package/dist/utils/WebXVersion.js.map +0 -1
  190. package/dist/utils/index.js +0 -19
  191. package/dist/utils/index.js.map +0 -1
  192. /package/dist/{display → common}/WebXWindowProperties.d.ts +0 -0
@@ -1,475 +0,0 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.WebXWindow = void 0;
13
- const THREE = require("three");
14
- const WebXMaterial_1 = require("./WebXMaterial");
15
- const three_1 = require("three");
16
- const WebXEngine_1 = require("../WebXEngine");
17
- /**
18
- * Represents a window in the WebX display.
19
- *
20
- * This class manages the rendering of a single window, including its position,
21
- * size, and texture updates.
22
- */
23
- class WebXWindow {
24
- /**
25
- * Gets the THREE.js mesh representing the window.
26
- *
27
- * @returns The window mesh.
28
- */
29
- get mesh() {
30
- return this._mesh;
31
- }
32
- /**
33
- * Gets the color index of the window.
34
- *
35
- * @returns The color index as a number.
36
- */
37
- get colorIndex() {
38
- return this._colorIndex;
39
- }
40
- /**
41
- * Gets the unique ID of the window.
42
- *
43
- * @returns The window ID as a number.
44
- */
45
- get id() {
46
- return this._id;
47
- }
48
- /**
49
- * Gets the visibility status of the window.
50
- *
51
- * @returns True if the window is visible, false otherwise.
52
- */
53
- get visible() {
54
- return this._material.visible;
55
- }
56
- /**
57
- * Sets the visibility status of the window.
58
- *
59
- * @param visible True to make the window visible, false to hide it.
60
- */
61
- set visible(visible) {
62
- if (this._material.visible !== visible) {
63
- this._material.visible = visible;
64
- }
65
- }
66
- /**
67
- * Gets whether the window has been loaded with its initial texture.
68
- */
69
- get loaded() {
70
- return this._loaded;
71
- }
72
- /**
73
- * Gets the color map texture of the window.
74
- *
75
- * @returns The color map as a Texture.
76
- */
77
- get colorMap() {
78
- return this._material.map;
79
- }
80
- /**
81
- * Sets the color map texture of the window.
82
- *
83
- * @param colorMap The new color map as a Texture.
84
- */
85
- set colorMap(colorMap) {
86
- this._material.map = colorMap;
87
- }
88
- /**
89
- * Gets the alpha map texture of the window.
90
- *
91
- * @returns The alpha map as a Texture.
92
- */
93
- get alphaMap() {
94
- return this._material.alphaMap;
95
- }
96
- /**
97
- * Sets the alpha map texture of the window.
98
- *
99
- * @param alphaMap The new alpha map as a Texture.
100
- */
101
- set alphaMap(alphaMap) {
102
- this._material.alphaMap = alphaMap;
103
- }
104
- /**
105
- * Gets the stencil map texture of the window.
106
- *
107
- * @returns The stencil map as a Texture.
108
- */
109
- get stencilMap() {
110
- return this._material.stencilMap;
111
- }
112
- /**
113
- * Sets the stencil map texture of the window.
114
- *
115
- * @param stencilMap The new stencil map as a Texture.
116
- */
117
- set stencilMap(stencilMap) {
118
- this._material.stencilMap = stencilMap;
119
- }
120
- /**
121
- * Checks if the color map is valid.
122
- *
123
- * @returns True if the color map is valid, false otherwise.
124
- */
125
- get colorMapValid() {
126
- return this.colorMap != null && this.colorMap.image.width === this._width && this.colorMap.image.height === this._height;
127
- }
128
- /**
129
- * Gets the depth of the window.
130
- *
131
- * @returns The depth as a number.
132
- */
133
- get depth() {
134
- return this._depth;
135
- }
136
- /**
137
- * Gets the x-coordinate of the window.
138
- *
139
- * @returns The x-coordinate as a number.
140
- */
141
- get x() {
142
- return this._x;
143
- }
144
- /**
145
- * Sets the x-coordinate of the window.
146
- *
147
- * @param value The new x-coordinate as a number.
148
- */
149
- set x(value) {
150
- this._x = value;
151
- this._updatePosition();
152
- }
153
- /**
154
- * Gets the y-coordinate of the window.
155
- *
156
- * @returns The y-coordinate as a number.
157
- */
158
- get y() {
159
- return this._y;
160
- }
161
- /**
162
- * Sets the y-coordinate of the window.
163
- *
164
- * @param value The new y-coordinate as a number.
165
- */
166
- set y(value) {
167
- this._y = value;
168
- this._updatePosition();
169
- }
170
- /**
171
- * Gets the z-index of the window.
172
- *
173
- * @returns The z-index as a number.
174
- */
175
- get z() {
176
- return this._z;
177
- }
178
- /**
179
- * Sets the z-index of the window.
180
- *
181
- * @param value The new z-index as a number.
182
- */
183
- set z(value) {
184
- this._z = value;
185
- this._updatePosition();
186
- }
187
- /**
188
- * Gets the width of the window.
189
- *
190
- * @returns The width as a number.
191
- */
192
- get width() {
193
- return this._width;
194
- }
195
- /**
196
- * Sets the width of the window.
197
- *
198
- * @param value The new width as a number.
199
- */
200
- set width(value) {
201
- this._width = value;
202
- this._updateScale();
203
- this._updatePosition();
204
- }
205
- /**
206
- * Gets the height of the window.
207
- *
208
- * @returns The height as a number.
209
- */
210
- get height() {
211
- return this._height;
212
- }
213
- /**
214
- * Sets the height of the window.
215
- *
216
- * @param value The new height as a number.
217
- */
218
- set height(value) {
219
- this._height = value;
220
- this._updateScale();
221
- this._updatePosition();
222
- }
223
- /**
224
- * Gets whether the window is shaped (has a stencil map).
225
- *
226
- * @return True if the window is shaped, false otherwise.
227
- */
228
- get shaped() {
229
- return this._shaped;
230
- }
231
- /**
232
- * Sets whether the window is shaped (has a stencil map).
233
- * @param value True to indicate the window is shaped, false otherwise.
234
- */
235
- set shaped(value) {
236
- this._shaped = value;
237
- if (!value) {
238
- this.updateStencilTexture(null);
239
- }
240
- }
241
- /**
242
- * Creates a new instance of WebXWindow.
243
- *
244
- * @param configuration The properties of the window, such as position and size.
245
- * @param textureFactory The factory used to create textures for the window.
246
- */
247
- constructor(configuration, textureFactory) {
248
- this._width = 1;
249
- this._height = 1;
250
- this._shaped = false;
251
- this._loaded = false;
252
- this._windowRefreshTimeout = null;
253
- this._textureFactory = textureFactory;
254
- this._colorIndex = WebXWindow._COLOR_INDEX++;
255
- // this._material = new THREE.MeshBasicMaterial({ transparent: true });
256
- // this._material.side = THREE.BackSide;
257
- this._material = new WebXMaterial_1.WebXMaterial();
258
- // Wait for texture before rendering the window
259
- this.visible = false;
260
- const { id, x, y, z, width, height, shaped } = configuration;
261
- this._id = id;
262
- this._mesh = new THREE.Mesh(WebXWindow._PLANE_GEOMETRY, this._material);
263
- this._mesh.onBeforeRender = () => this._material.onBeforeRender();
264
- this._x = x;
265
- this._y = y;
266
- this._z = z;
267
- this._width = width;
268
- this._height = height;
269
- this._shaped = shaped && WebXEngine_1.WebXEngine.version.versionNumber >= 1.4;
270
- this._updateScale();
271
- this._updatePosition();
272
- }
273
- /**
274
- * Loads the window image from the texture factory.
275
- */
276
- loadWindowImage() {
277
- return __awaiter(this, void 0, void 0, function* () {
278
- const response = yield this._textureFactory.getWindowTexture(this._id);
279
- if (response) {
280
- this.updateTexture(response.depth, response.colorMap, response.alphaMap, true);
281
- }
282
- });
283
- }
284
- /**
285
- * Loads the window shape (stencil map) from the texture factory.
286
- */
287
- loadWindowShape() {
288
- return __awaiter(this, void 0, void 0, function* () {
289
- const response = yield this._textureFactory.getWindowStencilTexture(this._id);
290
- if (response) {
291
- this.updateStencilTexture(response.stencilMap);
292
- }
293
- else {
294
- this._shaped = false;
295
- this.visible = this.colorMap != null;
296
- }
297
- });
298
- }
299
- /**
300
- * Loads the window image and shape (if needed) from the texture factory.
301
- */
302
- loadWindowImageAndShape() {
303
- return __awaiter(this, void 0, void 0, function* () {
304
- if (this._shaped) {
305
- const imagePromise = this.loadWindowImage();
306
- const shapePromise = this.loadWindowShape();
307
- yield Promise.all([imagePromise, shapePromise]);
308
- }
309
- else {
310
- yield this.loadWindowImage();
311
- }
312
- this._loaded = true;
313
- });
314
- }
315
- /**
316
- * Updates the position and size of the window.
317
- *
318
- * @param x The x-coordinate of the window.
319
- * @param y The y-coordinate of the window.
320
- * @param z The z-index of the window.
321
- * @param width The width of the window.
322
- * @param height The height of the window.
323
- */
324
- setRectangle(x, y, z, width, height) {
325
- this._x = x;
326
- this._y = y;
327
- this._z = z;
328
- this._width = width;
329
- this._height = height;
330
- if (this.colorMap) {
331
- this.colorMap.repeat.set(this._width / this.colorMap.image.width, this._height / this.colorMap.image.height);
332
- if (this.alphaMap) {
333
- this.alphaMap.repeat.set(this._width / this.alphaMap.image.width, this._height / this.alphaMap.image.height);
334
- }
335
- // Force reload of image of dimensions differ
336
- if (this.colorMap.image.width !== this._width || this.colorMap.image.height !== this._height) {
337
- this.loadWindowImageAndShape();
338
- }
339
- }
340
- this._updateScale();
341
- this._updatePosition();
342
- }
343
- /**
344
- * Updates the textures of the window with new image data.
345
- *
346
- * @param depth The depth of the image.
347
- * @param colorMap The color texture.
348
- * @param alphaMap The alpha texture.
349
- * @param isFullWindow Whether to force an update of the textures.
350
- */
351
- updateTexture(depth, colorMap, alphaMap, isFullWindow) {
352
- // Ignore null color maps (engine unable to get the window image
353
- if (colorMap == null) {
354
- return;
355
- }
356
- this._depth = depth;
357
- // Dispose of previous texture
358
- if (colorMap != this.colorMap) {
359
- this._disposeColorMap();
360
- this.colorMap = colorMap;
361
- }
362
- colorMap.minFilter = three_1.LinearFilter;
363
- this.colorMap.repeat.set(this._width / this.colorMap.image.width, this._height / this.colorMap.image.height);
364
- this.visible = (!this._shaped || this.stencilMap != null);
365
- this._material.needsUpdate = true;
366
- // Only update alpha if it has been sent
367
- if (alphaMap) {
368
- if (alphaMap != this.alphaMap) {
369
- this._disposeAlphaMap();
370
- this.alphaMap = alphaMap;
371
- }
372
- this.alphaMap.minFilter = three_1.LinearFilter;
373
- this.alphaMap.repeat.set(this._width / this.alphaMap.image.width, this._height / this.alphaMap.image.height);
374
- this._material.needsUpdate = true;
375
- }
376
- else if (depth == 24) {
377
- this._disposeAlphaMap();
378
- }
379
- this._material.transparent = (this.alphaMap != null || depth === 32);
380
- // Request a window update if it's not a full window
381
- if (!isFullWindow) {
382
- if (this._windowRefreshTimeout) {
383
- clearTimeout(this._windowRefreshTimeout);
384
- this._windowRefreshTimeout = null;
385
- }
386
- this._windowRefreshTimeout = window.setTimeout(() => {
387
- this._windowRefreshTimeout = null;
388
- this.loadWindowImage().then();
389
- }, WebXWindow.WINDOW_REFRESH_TIME_MS);
390
- }
391
- }
392
- /**
393
- * Updates the stencil map texture of the window with new image data.
394
- *
395
- * @param stencilMap The stencil map texture.
396
- */
397
- updateStencilTexture(stencilMap) {
398
- // Dispose of previous texture
399
- const oldShaped = this._shaped;
400
- if (stencilMap != this.stencilMap) {
401
- this._disposeStencilMap();
402
- this.stencilMap = stencilMap;
403
- }
404
- if (stencilMap) {
405
- stencilMap.minFilter = three_1.LinearFilter;
406
- this.visible = this.colorMap != null;
407
- this._material.needsUpdate = true;
408
- this._shaped = true;
409
- }
410
- else {
411
- this._shaped = false;
412
- // Recompile the material if the shape has been removed
413
- if (oldShaped) {
414
- this._material.needsUpdate = true;
415
- }
416
- }
417
- }
418
- /**
419
- * Updates the scale of the window mesh based on its width and height.
420
- */
421
- _updateScale() {
422
- this._mesh.scale.set(this._width, this._height, 1);
423
- }
424
- /**
425
- * Updates the position of the window mesh based on its x, y, and z coordinates.
426
- */
427
- _updatePosition() {
428
- this._mesh.position.set(this._x + 0.5 * this._width, this._y + 0.5 * this._height, this._z);
429
- }
430
- /**
431
- * Disposes of the resources used by the window.
432
- */
433
- dispose() {
434
- this._disposeColorMap();
435
- this._disposeAlphaMap();
436
- this._disposeStencilMap();
437
- this._material.dispose();
438
- if (this._windowRefreshTimeout) {
439
- clearTimeout(this._windowRefreshTimeout);
440
- this._windowRefreshTimeout = null;
441
- }
442
- }
443
- /**
444
- * Disposes of the color map texture, releasing its resources.
445
- */
446
- _disposeColorMap() {
447
- if (this.colorMap) {
448
- this.colorMap.dispose();
449
- this.colorMap = null;
450
- }
451
- }
452
- /**
453
- * Disposes of the alpha map texture, releasing its resources.
454
- */
455
- _disposeAlphaMap() {
456
- if (this.alphaMap) {
457
- this.alphaMap.dispose();
458
- this.alphaMap = null;
459
- }
460
- }
461
- /**
462
- * Disposes of the stencil map texture, releasing its resources.
463
- */
464
- _disposeStencilMap() {
465
- if (this.stencilMap) {
466
- this.stencilMap.dispose();
467
- this.stencilMap = null;
468
- }
469
- }
470
- }
471
- exports.WebXWindow = WebXWindow;
472
- WebXWindow.WINDOW_REFRESH_TIME_MS = 5000;
473
- WebXWindow._PLANE_GEOMETRY = new THREE.PlaneGeometry(1.0, 1.0, 2, 2);
474
- WebXWindow._COLOR_INDEX = 0;
475
- //# sourceMappingURL=WebXWindow.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"WebXWindow.js","sourceRoot":"","sources":["../../src/display/WebXWindow.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+BAA+B;AAE/B,iDAA8C;AAC9C,iCAA8C;AAC9C,8CAAyC;AAEzC;;;;;GAKG;AACH,MAAa,UAAU;IAsBrB;;;;OAIG;IACH,IAAW,IAAI;QACb,OAAO,IAAI,CAAC,KAAK,CAAC;IACpB,CAAC;IAED;;;;OAIG;IACH,IAAI,UAAU;QACZ,OAAO,IAAI,CAAC,WAAW,CAAC;IAC1B,CAAC;IAED;;;;OAIG;IACH,IAAW,EAAE;QACX,OAAO,IAAI,CAAC,GAAG,CAAC;IAClB,CAAC;IAED;;;;OAIG;IACH,IAAW,OAAO;QAChB,OAAO,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC;IAChC,CAAC;IAED;;;;OAIG;IACH,IAAY,OAAO,CAAC,O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CAAC,UAAU,EAAE,CAAC;YACpB,IAAI,CAAC,UAAU,CAAC,OAAO,EAAE,CAAC;YAC1B,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC;QACzB,CAAC;IACH,CAAC;;AA7fH,gCA8fC;AA7fe,iCAAsB,GAAG,IAAI,AAAP,CAAQ;AAC7B,0BAAe,GAAwB,IAAI,KAAK,CAAC,aAAa,CAAC,GAAG,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC,CAAC,AAA/D,CAAgE;AAC/E,uBAAY,GAAG,CAAC,AAAJ,CAAK"}
@@ -1,25 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.WebXWindowProperties = void 0;
4
- /**
5
- * Represents the properties of a WebX window.
6
- *
7
- * These properties define the position, size, and ID of a window in the WebX display.
8
- */
9
- class WebXWindowProperties {
10
- /**
11
- * Creates a new instance of WebXWindowProperties.
12
- *
13
- * @param properties The properties of the window, including position, size, and ID.
14
- */
15
- constructor(properties) {
16
- this.id = properties.id;
17
- this.x = properties.x;
18
- this.y = properties.y;
19
- this.width = properties.width;
20
- this.height = properties.height;
21
- this.shaped = properties.shaped || false;
22
- }
23
- }
24
- exports.WebXWindowProperties = WebXWindowProperties;
25
- //# sourceMappingURL=WebXWindowProperties.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"WebXWindowProperties.js","sourceRoot":"","sources":["../../src/display/WebXWindowProperties.ts"],"names":[],"mappings":";;;AAAA;;;;GAIG;AACH,MAAa,oBAAoB;IA+B/B;;;;OAIG;IACH,YAAY,UAAgG;QAC1G,IAAI,CAAC,EAAE,GAAG,UAAU,CAAC,EAAE,CAAC;QACxB,IAAI,CAAC,CAAC,GAAG,UAAU,CAAC,CAAC,CAAC;QACtB,IAAI,CAAC,CAAC,GAAG,UAAU,CAAC,CAAC,CAAC;QACtB,IAAI,CAAC,KAAK,GAAG,UAAU,CAAC,KAAK,CAAC;QAC9B,IAAI,CAAC,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;QAChC,IAAI,CAAC,MAAM,GAAG,UAAU,CAAC,MAAM,IAAI,KAAK,CAAC;IAC3C,CAAC;CACF;AA5CD,oDA4CC"}
@@ -1,24 +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("./WebXCursor"), exports);
18
- __exportStar(require("./WebXDisplay"), exports);
19
- __exportStar(require("./WebXWindow"), exports);
20
- __exportStar(require("./WebXWindowProperties"), exports);
21
- __exportStar(require("./WebXTextureFactory"), exports);
22
- __exportStar(require("./WebXSubImage"), exports);
23
- __exportStar(require("./WebXCursorFactory"), exports);
24
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/display/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,gDAA8B;AAC9B,+CAA6B;AAC7B,yDAAuC;AACvC,uDAAqC;AACrC,iDAA+B;AAC/B,sDAAoC"}
package/dist/index.js DELETED
@@ -1,25 +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("./display"), exports);
18
- __exportStar(require("./input"), exports);
19
- __exportStar(require("./instruction"), exports);
20
- __exportStar(require("./message"), exports);
21
- __exportStar(require("./tracer"), exports);
22
- __exportStar(require("./tunnel"), exports);
23
- __exportStar(require("./WebXClient"), exports);
24
- __exportStar(require("./WebXConnectionHandler"), exports);
25
- //# sourceMappingURL=index.js.map
package/dist/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,0CAAwB;AACxB,gDAA8B;AAC9B,4CAA0B;AAC1B,2CAAyB;AACzB,2CAAyB;AACzB,+CAA6B;AAC7B,0DAAwC"}