@luxonis/visualizer-protobuf 3.0.1-rc.9 → 3.0.2
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/{WorkerImageDecoder.worker-Db4_QpUB.js → WorkerImageDecoder.worker-BlZI81p6.js} +8 -5
- package/dist/{comlink-wXOdMqIH.js → comlink-jf8bdrAf.js} +1 -1
- package/dist/{communicator-D1clAtYY.js → communicator-Bzkx3Qfr.js} +4 -1
- package/dist/{depth-D_KmHuOF.js → depth-BJ1GI-lD.js} +23 -57
- package/dist/{depth-coloring.worker-CAXQfIhb.js → depth-coloring.worker-DUhuvX3L.js} +1 -1
- package/dist/{deserialization.worker-v-Qa7jv-.js → deserialization.worker-CpadaVUC.js} +97 -22
- package/dist/{index-DNqM4FRC.js → index-47n_qlIK.js} +4 -3
- package/dist/{index-NMJWnjGW.js → index-ANY2H_o3.js} +4 -3
- package/dist/{index-DjxuN3pJ.js → index-BCTfxMIE.js} +4 -3
- package/dist/{index-wHt09xSF.js → index-BG2Ave0p.js} +4 -3
- package/dist/{index-D6prqwK2.js → index-BGEFAe_Y.js} +4 -3
- package/dist/{index-CEcUErKv.js → index-BJXCp1lN.js} +5 -4
- package/dist/{index-DQGWw8iI.js → index-BOEeeBIi.js} +4 -3
- package/dist/{index-DmbR7-7O.js → index-BYpImo0l.js} +4 -3
- package/dist/{index-DNPz9J7P.js → index-BymWWFCn.js} +4 -3
- package/dist/{index-BJejP009.js → index-C1D3H_Uz.js} +5790 -6332
- package/dist/{index-_Nw8oJT_.js → index-C2nnoTzN.js} +4 -3
- package/dist/{index-C5m6BzM3.js → index-Czo7dUvS.js} +4 -3
- package/dist/{index-Cqhkm-xB.js → index-D8h9BfrP.js} +4 -3
- package/dist/{index-yjVnQEdM.js → index-DF-xcCVa.js} +4 -3
- package/dist/{index-D06rmDB8.js → index-DKHbBs7i.js} +4 -3
- package/dist/{index-Cr2kJQ0K.js → index-DQXQJcjO.js} +4 -3
- package/dist/{index-DYaUaS38.js → index-DThaHb_u.js} +4 -3
- package/dist/{index-DSufVfSg.js → index-DV3HrUsB.js} +4 -3
- package/dist/{index-DXUBYe5S.js → index-Da-CoL-V.js} +4 -3
- package/dist/{index-B7D04APi.js → index-KQ2js0SY.js} +113 -33
- package/dist/index.js +5 -4
- package/dist/lib/src/connection/adapter.d.ts.map +1 -1
- package/dist/lib/src/connection/adapter.js +26 -9
- package/dist/lib/src/connection/adapter.js.map +1 -1
- package/dist/lib/src/connection/communicator.d.ts.map +1 -1
- package/dist/lib/src/connection/communicator.js +3 -1
- package/dist/lib/src/connection/communicator.js.map +1 -1
- package/dist/lib/src/connection/connection.d.ts.map +1 -1
- package/dist/lib/src/connection/connection.js +44 -5
- package/dist/lib/src/connection/connection.js.map +1 -1
- package/dist/lib/src/connection/foxglove-connection.d.ts.map +1 -1
- package/dist/lib/src/connection/foxglove-connection.js +5 -3
- package/dist/lib/src/connection/foxglove-connection.js.map +1 -1
- package/dist/lib/src/connection/webrtc/bridge.d.ts.map +1 -1
- package/dist/lib/src/connection/webrtc/bridge.js +31 -7
- package/dist/lib/src/connection/webrtc/bridge.js.map +1 -1
- package/dist/lib/src/connection/webrtc/comms-proxy.d.ts +1 -2
- package/dist/lib/src/connection/webrtc/comms-proxy.d.ts.map +1 -1
- package/dist/lib/src/connection/webrtc/comms-proxy.js +31 -16
- package/dist/lib/src/connection/webrtc/comms-proxy.js.map +1 -1
- package/dist/lib/src/connection/ws/worker.d.ts.map +1 -1
- package/dist/lib/src/connection/ws/worker.js +15 -1
- package/dist/lib/src/connection/ws/worker.js.map +1 -1
- package/dist/lib/src/context/MessagePipelineProvider.d.ts.map +1 -1
- package/dist/lib/src/context/MessagePipelineProvider.js +3 -1
- package/dist/lib/src/context/MessagePipelineProvider.js.map +1 -1
- package/dist/lib/src/messaging/deserialization/detections/detection.d.ts.map +1 -1
- package/dist/lib/src/messaging/deserialization/detections/detection.js +56 -14
- package/dist/lib/src/messaging/deserialization/detections/detection.js.map +1 -1
- package/dist/lib/src/messaging/deserialization/pointcloud/pointcloudFromDepth.worker.js +12 -10
- package/dist/lib/src/messaging/deserialization/pointcloud/pointcloudFromDepth.worker.js.map +1 -1
- package/dist/lib/src/messaging/deserialization/pointcloud/poitcloudPoolManager.d.ts +8 -5
- package/dist/lib/src/messaging/deserialization/pointcloud/poitcloudPoolManager.d.ts.map +1 -1
- package/dist/lib/src/messaging/deserialization/pointcloud/poitcloudPoolManager.js +27 -22
- package/dist/lib/src/messaging/deserialization/pointcloud/poitcloudPoolManager.js.map +1 -1
- package/dist/lib/src/messaging/deserialization/video/depth.d.ts.map +1 -1
- package/dist/lib/src/messaging/deserialization/video/depth.js +5 -3
- package/dist/lib/src/messaging/deserialization/video/depth.js.map +1 -1
- package/dist/lib/src/messaging/deserialization/video/h264.d.ts.map +1 -1
- package/dist/lib/src/messaging/deserialization/video/h264.js +5 -3
- package/dist/lib/src/messaging/deserialization/video/h264.js.map +1 -1
- package/dist/lib/src/messaging/deserialization/video/h265.d.ts.map +1 -1
- package/dist/lib/src/messaging/deserialization/video/h265.js +3 -1
- package/dist/lib/src/messaging/deserialization/video/h265.js.map +1 -1
- package/dist/lib/src/messaging/deserialization.worker.d.ts.map +1 -1
- package/dist/lib/src/messaging/deserialization.worker.js +6 -4
- package/dist/lib/src/messaging/deserialization.worker.js.map +1 -1
- package/dist/lib/src/messaging/message-handler.d.ts +1 -0
- package/dist/lib/src/messaging/message-handler.d.ts.map +1 -1
- package/dist/lib/src/messaging/message-handler.js +19 -10
- package/dist/lib/src/messaging/message-handler.js.map +1 -1
- package/dist/lib/src/output.css +7 -1
- package/dist/lib/src/protobuf.generated/SegmentationMask.d.ts +35 -0
- package/dist/lib/src/protobuf.generated/SegmentationMask.d.ts.map +1 -0
- package/dist/lib/src/protobuf.generated/SegmentationMask.js +220 -0
- package/dist/lib/src/protobuf.generated/SegmentationMask.js.map +1 -0
- package/dist/lib/src/utils/artificial-worker.d.ts +1 -0
- package/dist/lib/src/utils/artificial-worker.d.ts.map +1 -1
- package/dist/lib/src/utils/artificial-worker.js +4 -0
- package/dist/lib/src/utils/artificial-worker.js.map +1 -1
- package/dist/lib/src/utils/compatibility.d.ts.map +1 -1
- package/dist/lib/src/utils/compatibility.js +3 -1
- package/dist/lib/src/utils/compatibility.js.map +1 -1
- package/dist/lib/src/utils/frame-store.d.ts.map +1 -1
- package/dist/lib/src/utils/frame-store.js +3 -1
- package/dist/lib/src/utils/frame-store.js.map +1 -1
- package/dist/lib/src/utils/logger.d.ts +15 -0
- package/dist/lib/src/utils/logger.d.ts.map +1 -0
- package/dist/lib/src/utils/logger.js +67 -0
- package/dist/lib/src/utils/logger.js.map +1 -0
- package/dist/logger-Bqy1nuLj.js +75 -0
- package/dist/packages/studio-base/src/components/ForwardAnalyticsContextProvider.d.ts.map +1 -1
- package/dist/packages/studio-base/src/components/ForwardAnalyticsContextProvider.js +1 -2
- package/dist/packages/studio-base/src/components/ForwardAnalyticsContextProvider.js.map +1 -1
- package/dist/packages/studio-base/src/components/Panel.d.ts.map +1 -1
- package/dist/packages/studio-base/src/components/Panel.js +1 -1
- package/dist/packages/studio-base/src/components/Panel.js.map +1 -1
- package/dist/packages/studio-base/src/components/PanelExtensionAdapter/PanelExtensionAdapter.d.ts.map +1 -1
- package/dist/packages/studio-base/src/components/PanelExtensionAdapter/PanelExtensionAdapter.js +0 -1
- package/dist/packages/studio-base/src/components/PanelExtensionAdapter/PanelExtensionAdapter.js.map +1 -1
- package/dist/packages/studio-base/src/panels/ThreeDeeRender/ThreeDeeRender.d.ts.map +1 -1
- package/dist/packages/studio-base/src/panels/ThreeDeeRender/ThreeDeeRender.js +0 -1
- package/dist/packages/studio-base/src/panels/ThreeDeeRender/ThreeDeeRender.js.map +1 -1
- package/dist/packages/studio-base/src/panels/ThreeDeeRender/renderables/Images/ImageRenderable.d.ts.map +1 -1
- package/dist/packages/studio-base/src/panels/ThreeDeeRender/renderables/Images/ImageRenderable.js +32 -3
- package/dist/packages/studio-base/src/panels/ThreeDeeRender/renderables/Images/ImageRenderable.js.map +1 -1
- package/dist/packages/studio-base/src/panels/ThreeDeeRender/renderables/Images/WorkerImageDecoder.d.ts.map +1 -1
- package/dist/packages/studio-base/src/panels/ThreeDeeRender/renderables/Images/WorkerImageDecoder.js +49 -14
- package/dist/packages/studio-base/src/panels/ThreeDeeRender/renderables/Images/WorkerImageDecoder.js.map +1 -1
- package/dist/{pointcloudFromDepth.worker-C1fqIMlp.js → pointcloudFromDepth.worker-JLptpLHr.js} +13 -11
- package/dist/{worker-BdmIK_Az.js → worker-0Q6os6Ck.js} +2 -1
- package/dist/{worker-B6paT-I9.js → worker-NFznpx6V.js} +26 -2
- package/package.json +2 -2
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { _ as _classPrivateFieldLooseBase, a as _classPrivateFieldLooseKey } from './protobuf-Be0G3NFz.js';
|
|
3
3
|
import { F as FoxgloveClient } from './FoxgloveServer-B98MHUu6.js';
|
|
4
|
-
import {
|
|
4
|
+
import { L as Logger } from './logger-Bqy1nuLj.js';
|
|
5
|
+
import { F as FoxgloveCommunicator } from './communicator-Bzkx3Qfr.js';
|
|
5
6
|
import 'ms';
|
|
6
7
|
import './encoding-jXImCIb4.js';
|
|
7
8
|
|
|
9
|
+
const logger = Logger.getLogger();
|
|
8
10
|
var _wasOpen = /*#__PURE__*/_classPrivateFieldLooseKey("wasOpen");
|
|
9
11
|
var _alive = /*#__PURE__*/_classPrivateFieldLooseKey("alive");
|
|
10
12
|
var _reconnecting = /*#__PURE__*/_classPrivateFieldLooseKey("reconnecting");
|
|
13
|
+
var _reconnectAttempts = /*#__PURE__*/_classPrivateFieldLooseKey("reconnectAttempts");
|
|
14
|
+
var _maxReconnectAttempts = /*#__PURE__*/_classPrivateFieldLooseKey("maxReconnectAttempts");
|
|
11
15
|
var _ws = /*#__PURE__*/_classPrivateFieldLooseKey("ws");
|
|
12
16
|
var _client = /*#__PURE__*/_classPrivateFieldLooseKey("client");
|
|
13
17
|
var _subscriptions = /*#__PURE__*/_classPrivateFieldLooseKey("subscriptions");
|
|
@@ -50,6 +54,14 @@ class WsWorker extends FoxgloveCommunicator {
|
|
|
50
54
|
writable: true,
|
|
51
55
|
value: false
|
|
52
56
|
});
|
|
57
|
+
Object.defineProperty(this, _reconnectAttempts, {
|
|
58
|
+
writable: true,
|
|
59
|
+
value: 0
|
|
60
|
+
});
|
|
61
|
+
Object.defineProperty(this, _maxReconnectAttempts, {
|
|
62
|
+
writable: true,
|
|
63
|
+
value: 10
|
|
64
|
+
});
|
|
53
65
|
Object.defineProperty(this, _ws, {
|
|
54
66
|
writable: true,
|
|
55
67
|
value: void 0
|
|
@@ -113,6 +125,17 @@ function _createWs2(url, onReconnect) {
|
|
|
113
125
|
_classPrivateFieldLooseBase(this, _ws)[_ws].binaryType = "arraybuffer";
|
|
114
126
|
const reconnect = () => {
|
|
115
127
|
if (_classPrivateFieldLooseBase(this, _alive)[_alive] && !_classPrivateFieldLooseBase(this, _reconnecting)[_reconnecting]) {
|
|
128
|
+
_classPrivateFieldLooseBase(this, _reconnectAttempts)[_reconnectAttempts]++;
|
|
129
|
+
if (_classPrivateFieldLooseBase(this, _reconnectAttempts)[_reconnectAttempts] > _classPrivateFieldLooseBase(this, _maxReconnectAttempts)[_maxReconnectAttempts]) {
|
|
130
|
+
_classPrivateFieldLooseBase(this, _alive)[_alive] = false;
|
|
131
|
+
this.send({
|
|
132
|
+
type: "error",
|
|
133
|
+
error: {
|
|
134
|
+
message: `Failed to reconnect after ${_classPrivateFieldLooseBase(this, _maxReconnectAttempts)[_maxReconnectAttempts]} attempts`
|
|
135
|
+
}
|
|
136
|
+
});
|
|
137
|
+
return;
|
|
138
|
+
}
|
|
116
139
|
_classPrivateFieldLooseBase(this, _reconnecting)[_reconnecting] = true;
|
|
117
140
|
onReconnect();
|
|
118
141
|
setTimeout(() => {
|
|
@@ -132,6 +155,7 @@ function _createClient2() {
|
|
|
132
155
|
});
|
|
133
156
|
_classPrivateFieldLooseBase(this, _client)[_client].on("open", () => {
|
|
134
157
|
_classPrivateFieldLooseBase(this, _wasOpen)[_wasOpen] = true;
|
|
158
|
+
_classPrivateFieldLooseBase(this, _reconnectAttempts)[_reconnectAttempts] = 0; // Reset counter on successful connection
|
|
135
159
|
this.send({
|
|
136
160
|
type: "open"
|
|
137
161
|
});
|
|
@@ -175,7 +199,7 @@ self.addEventListener('message', async event => {
|
|
|
175
199
|
data
|
|
176
200
|
} = event.data;
|
|
177
201
|
if (type !== 'open' && !wsWorker) {
|
|
178
|
-
|
|
202
|
+
logger.warn(`WS Worker Error: Requested ${type} before open`);
|
|
179
203
|
return;
|
|
180
204
|
}
|
|
181
205
|
switch (type) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@luxonis/visualizer-protobuf",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "RobotHub Visualizer Library",
|
|
6
6
|
"author": "Luxonis Corp",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"@emotion/styled": "11.14.1",
|
|
21
21
|
"@luxonis/common-fe-components": "1.25.10",
|
|
22
22
|
"@luxonis/common-fe-utils": "1.21.1",
|
|
23
|
-
"@luxonis/remote-connection": "2.8.
|
|
23
|
+
"@luxonis/remote-connection": "2.8.1",
|
|
24
24
|
"@mui/icons-material": "5.18.0",
|
|
25
25
|
"@mui/material": "5.18.0",
|
|
26
26
|
"@tailwindcss/cli": "4.0.17",
|