@luxonis/visualizer-protobuf 1.10.0 → 1.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/apps/depthai-visualizer/src/components/Panel.d.ts.map +1 -1
- package/dist/apps/depthai-visualizer/src/components/Panel.js +7 -6
- package/dist/apps/depthai-visualizer/src/components/Panel.js.map +1 -1
- package/dist/apps/depthai-visualizer/src/components/PanelToolbar.d.ts.map +1 -1
- package/dist/apps/depthai-visualizer/src/components/PanelToolbar.js +5 -5
- package/dist/apps/depthai-visualizer/src/components/PanelToolbar.js.map +1 -1
- package/dist/apps/depthai-visualizer/src/connection/{ws/Adapter.d.ts → adapter.d.ts} +13 -12
- package/dist/apps/depthai-visualizer/src/connection/adapter.d.ts.map +1 -0
- package/dist/apps/depthai-visualizer/src/connection/{ws/Adapter.js → adapter.js} +19 -15
- package/dist/apps/depthai-visualizer/src/connection/adapter.js.map +1 -0
- package/dist/apps/depthai-visualizer/src/connection/communicator.d.ts +84 -0
- package/dist/apps/depthai-visualizer/src/connection/communicator.d.ts.map +1 -0
- package/dist/apps/depthai-visualizer/src/connection/communicator.js +110 -0
- package/dist/apps/depthai-visualizer/src/connection/communicator.js.map +1 -0
- package/dist/apps/depthai-visualizer/src/connection/connection.d.ts +43 -0
- package/dist/apps/depthai-visualizer/src/connection/connection.d.ts.map +1 -0
- package/dist/apps/depthai-visualizer/src/connection/connection.js +64 -0
- package/dist/apps/depthai-visualizer/src/connection/connection.js.map +1 -0
- package/dist/apps/depthai-visualizer/src/connection/{BaseConnection.d.ts → foxglove-connection.d.ts} +4 -29
- package/dist/apps/depthai-visualizer/src/connection/foxglove-connection.d.ts.map +1 -0
- package/dist/apps/depthai-visualizer/src/connection/{BaseConnection.js → foxglove-connection.js} +2 -4
- package/dist/apps/depthai-visualizer/src/connection/foxglove-connection.js.map +1 -0
- package/dist/apps/depthai-visualizer/src/connection/webrtc/bridge.d.ts +8 -0
- package/dist/apps/depthai-visualizer/src/connection/webrtc/bridge.d.ts.map +1 -0
- package/dist/apps/depthai-visualizer/src/connection/webrtc/bridge.js +136 -0
- package/dist/apps/depthai-visualizer/src/connection/webrtc/bridge.js.map +1 -0
- package/dist/apps/depthai-visualizer/src/connection/webrtc/worker-utils.d.ts +50 -0
- package/dist/apps/depthai-visualizer/src/connection/webrtc/worker-utils.d.ts.map +1 -0
- package/dist/apps/depthai-visualizer/src/connection/webrtc/worker-utils.js +81 -0
- package/dist/apps/depthai-visualizer/src/connection/webrtc/worker-utils.js.map +1 -0
- package/dist/apps/depthai-visualizer/src/connection/webrtc/worker.d.ts +2 -0
- package/dist/apps/depthai-visualizer/src/connection/webrtc/worker.d.ts.map +1 -0
- package/dist/apps/depthai-visualizer/src/connection/webrtc/worker.js +17 -0
- package/dist/apps/depthai-visualizer/src/connection/webrtc/worker.js.map +1 -0
- package/dist/apps/depthai-visualizer/src/connection/ws/worker-utils.d.ts +11 -76
- package/dist/apps/depthai-visualizer/src/connection/ws/worker-utils.d.ts.map +1 -1
- package/dist/apps/depthai-visualizer/src/connection/ws/worker-utils.js +32 -113
- package/dist/apps/depthai-visualizer/src/connection/ws/worker-utils.js.map +1 -1
- package/dist/apps/depthai-visualizer/src/context/ConnectionsProvider.d.ts +3 -3
- package/dist/apps/depthai-visualizer/src/context/ConnectionsProvider.d.ts.map +1 -1
- package/dist/apps/depthai-visualizer/src/context/ConnectionsProvider.js +3 -0
- package/dist/apps/depthai-visualizer/src/context/ConnectionsProvider.js.map +1 -1
- package/dist/apps/depthai-visualizer/src/context/VisualizerContext.d.ts +2 -2
- package/dist/apps/depthai-visualizer/src/context/VisualizerContext.d.ts.map +1 -1
- package/dist/apps/depthai-visualizer/src/context/VisualizerContext.js +1 -1
- package/dist/apps/depthai-visualizer/src/context/VisualizerContext.js.map +1 -1
- package/dist/apps/depthai-visualizer/src/context/VisualizerFlatContext.d.ts +3 -3
- package/dist/apps/depthai-visualizer/src/context/VisualizerFlatContext.d.ts.map +1 -1
- package/dist/apps/depthai-visualizer/src/context/VisualizerFlatContext.js.map +1 -1
- package/dist/apps/depthai-visualizer/src/index.d.ts +3 -3
- package/dist/apps/depthai-visualizer/src/index.d.ts.map +1 -1
- package/dist/apps/depthai-visualizer/src/index.js +1 -1
- package/dist/apps/depthai-visualizer/src/index.js.map +1 -1
- package/dist/apps/depthai-visualizer/src/messaging/deserialization/detections/constants.d.ts.map +1 -1
- package/dist/apps/depthai-visualizer/src/messaging/deserialization/detections/constants.js +3 -0
- package/dist/apps/depthai-visualizer/src/messaging/deserialization/detections/constants.js.map +1 -1
- package/dist/apps/depthai-visualizer/src/messaging/deserialization/detections/custom.d.ts +1 -1
- package/dist/apps/depthai-visualizer/src/messaging/deserialization/detections/custom.d.ts.map +1 -1
- package/dist/apps/depthai-visualizer/src/messaging/deserialization/detections/custom.js +40 -20
- package/dist/apps/depthai-visualizer/src/messaging/deserialization/detections/custom.js.map +1 -1
- package/dist/apps/depthai-visualizer/src/messaging/deserialization/detections/detection.d.ts.map +1 -1
- package/dist/apps/depthai-visualizer/src/messaging/deserialization/detections/detection.js +2 -2
- package/dist/apps/depthai-visualizer/src/messaging/deserialization/detections/detection.js.map +1 -1
- package/dist/apps/depthai-visualizer/src/messaging/deserialization/detections/utils.d.ts.map +1 -1
- package/dist/apps/depthai-visualizer/src/messaging/deserialization/detections/utils.js +3 -0
- package/dist/apps/depthai-visualizer/src/messaging/deserialization/detections/utils.js.map +1 -1
- package/dist/apps/depthai-visualizer/src/messaging/deserialization/imu/imu.d.ts +1 -1
- package/dist/apps/depthai-visualizer/src/messaging/deserialization/imu/imu.d.ts.map +1 -1
- package/dist/apps/depthai-visualizer/src/messaging/deserialization/pointcloud/point-cloud.d.ts.map +1 -1
- package/dist/apps/depthai-visualizer/src/messaging/deserialization/pointcloud/point-cloud.js.map +1 -1
- package/dist/apps/depthai-visualizer/src/messaging/deserialization/video/color.d.ts.map +1 -1
- package/dist/apps/depthai-visualizer/src/messaging/deserialization/video/color.js +1 -1
- package/dist/apps/depthai-visualizer/src/messaging/deserialization/video/color.js.map +1 -1
- package/dist/apps/depthai-visualizer/src/messaging/deserialization/video/depth.d.ts.map +1 -1
- package/dist/apps/depthai-visualizer/src/messaging/deserialization/video/depth.js +1 -1
- package/dist/apps/depthai-visualizer/src/messaging/deserialization/video/depth.js.map +1 -1
- package/dist/apps/depthai-visualizer/src/messaging/deserialization/video/h264.d.ts.map +1 -1
- package/dist/apps/depthai-visualizer/src/messaging/deserialization/video/h264.js +1 -1
- package/dist/apps/depthai-visualizer/src/messaging/deserialization/video/h264.js.map +1 -1
- package/dist/apps/depthai-visualizer/src/messaging/deserialization/video/mjpeg.d.ts.map +1 -1
- package/dist/apps/depthai-visualizer/src/messaging/deserialization/video/mjpeg.js +1 -1
- package/dist/apps/depthai-visualizer/src/messaging/deserialization/video/mjpeg.js.map +1 -1
- package/dist/apps/depthai-visualizer/src/messaging/deserialization/video/mono.d.ts.map +1 -1
- package/dist/apps/depthai-visualizer/src/messaging/deserialization/video/mono.js +1 -1
- package/dist/apps/depthai-visualizer/src/messaging/deserialization/video/mono.js.map +1 -1
- package/dist/apps/depthai-visualizer/src/messaging/deserialization.d.ts +2 -2
- package/dist/apps/depthai-visualizer/src/messaging/deserialization.d.ts.map +1 -1
- package/dist/apps/depthai-visualizer/src/messaging/deserialization.js +3 -3
- package/dist/apps/depthai-visualizer/src/messaging/deserialization.js.map +1 -1
- package/dist/apps/depthai-visualizer/src/messaging/message-handler.d.ts +2 -2
- package/dist/apps/depthai-visualizer/src/messaging/message-handler.d.ts.map +1 -1
- package/dist/apps/depthai-visualizer/src/messaging/protobuf.d.ts +2 -2
- package/dist/apps/depthai-visualizer/src/messaging/protobuf.d.ts.map +1 -1
- package/dist/apps/depthai-visualizer/src/messaging/protobuf.js +5 -2
- package/dist/apps/depthai-visualizer/src/messaging/protobuf.js.map +1 -1
- package/dist/apps/depthai-visualizer/src/panels/PointCloudPanel.d.ts.map +1 -1
- package/dist/apps/depthai-visualizer/src/panels/PointCloudPanel.js.map +1 -1
- package/dist/apps/depthai-visualizer/src/protobuf.generated/EncodedFrame.d.ts.map +1 -1
- package/dist/apps/depthai-visualizer/src/protobuf.generated/EncodedFrame.js +3 -0
- package/dist/apps/depthai-visualizer/src/protobuf.generated/EncodedFrame.js.map +1 -1
- package/dist/apps/depthai-visualizer/src/protobuf.generated/ImageAnnotations.d.ts.map +1 -1
- package/dist/apps/depthai-visualizer/src/protobuf.generated/ImageAnnotations.js +3 -0
- package/dist/apps/depthai-visualizer/src/protobuf.generated/ImageAnnotations.js.map +1 -1
- package/dist/apps/depthai-visualizer/src/protobuf.generated/ImgDetections.d.ts.map +1 -1
- package/dist/apps/depthai-visualizer/src/protobuf.generated/ImgDetections.js +3 -0
- package/dist/apps/depthai-visualizer/src/protobuf.generated/ImgDetections.js.map +1 -1
- package/dist/apps/depthai-visualizer/src/protobuf.generated/ImgFrame.d.ts.map +1 -1
- package/dist/apps/depthai-visualizer/src/protobuf.generated/ImgFrame.js +3 -0
- package/dist/apps/depthai-visualizer/src/protobuf.generated/ImgFrame.js.map +1 -1
- package/dist/apps/depthai-visualizer/src/protobuf.generated/PointCloudData.d.ts.map +1 -1
- package/dist/apps/depthai-visualizer/src/protobuf.generated/PointCloudData.js +3 -0
- package/dist/apps/depthai-visualizer/src/protobuf.generated/PointCloudData.js.map +1 -1
- package/dist/apps/depthai-visualizer/src/protobuf.generated/SpatialImgDetections.d.ts.map +1 -1
- package/dist/apps/depthai-visualizer/src/protobuf.generated/SpatialImgDetections.js +3 -0
- package/dist/apps/depthai-visualizer/src/protobuf.generated/SpatialImgDetections.js.map +1 -1
- package/dist/apps/depthai-visualizer/src/protobuf.generated/common.d.ts.map +1 -1
- package/dist/apps/depthai-visualizer/src/protobuf.generated/common.js +3 -0
- package/dist/apps/depthai-visualizer/src/protobuf.generated/common.js.map +1 -1
- package/dist/apps/depthai-visualizer/src/utils/artificial-worker.d.ts +6 -0
- package/dist/apps/depthai-visualizer/src/utils/artificial-worker.d.ts.map +1 -0
- package/dist/apps/depthai-visualizer/src/utils/artificial-worker.js +16 -0
- package/dist/apps/depthai-visualizer/src/utils/artificial-worker.js.map +1 -0
- package/dist/apps/depthai-visualizer/src/utils/callback-manager.d.ts.map +1 -1
- package/dist/apps/depthai-visualizer/src/utils/callback-manager.js +3 -0
- package/dist/apps/depthai-visualizer/src/utils/callback-manager.js.map +1 -1
- package/dist/apps/depthai-visualizer/src/utils/compatibility.d.ts.map +1 -1
- package/dist/apps/depthai-visualizer/src/utils/compatibility.js +3 -0
- package/dist/apps/depthai-visualizer/src/utils/compatibility.js.map +1 -1
- package/dist/apps/depthai-visualizer/src/utils/encoding.d.ts.map +1 -1
- package/dist/apps/depthai-visualizer/src/utils/encoding.js +3 -0
- package/dist/apps/depthai-visualizer/src/utils/encoding.js.map +1 -1
- package/dist/apps/depthai-visualizer/src/utils/metrics-manager.d.ts.map +1 -1
- package/dist/apps/depthai-visualizer/src/utils/metrics-manager.js +3 -0
- package/dist/apps/depthai-visualizer/src/utils/metrics-manager.js.map +1 -1
- package/dist/{worker-utils-wwKCGQOc.js → communicator-DgLGCQSf.js} +1928 -3220
- package/dist/{index-DHbA32BQ.js → index-B2MkEOI4.js} +3 -2
- package/dist/{index-Bw8PEeXU.js → index-B87UUXCH.js} +3 -2
- package/dist/{index-BiY9B9Hp.js → index-BdouEs9u.js} +3 -2
- package/dist/{index-DMZhlvho.js → index-BjH4XfIl.js} +3 -2
- package/dist/{index-Cngl5F-F.js → index-BrQv_AiM.js} +3 -2
- package/dist/{index-B90SOlyW.js → index-C3ZNlxlw.js} +3 -2
- package/dist/{index-N0R0IEbS.js → index-CGeW-0k7.js} +3 -2
- package/dist/{index-BKL2MC-f.js → index-CNUN2zja.js} +3 -2
- package/dist/{index-CuGn8iKw.js → index-D2coYWoA.js} +4 -3
- package/dist/{index-DuGBc6J-.js → index-DRTtwocb.js} +3 -2
- package/dist/{index-EvfybjSU.js → index-DTdRI7_c.js} +3 -2
- package/dist/{index-CgAqNIiJ.js → index-DbK2elHW.js} +3 -2
- package/dist/{index-Bw-Q_7-v.js → index-DdoU22pT.js} +3 -2
- package/dist/{index-BC0mvy9n.js → index-WsLy6WgG.js} +3 -2
- package/dist/{index-DhuAGhcS.js → index-YeBvcQ1n.js} +11 -6
- package/dist/{index-p-TovfmA.js → index-aNtIoK9f.js} +3 -2
- package/dist/{index-C_gk0bw5.js → index-bn5rOf_P.js} +274 -196
- package/dist/{index-BHB02ggP.js → index-dWg1V1OC.js} +3 -2
- package/dist/{index-LU4UNxxi.js → index-tlh8GrAK.js} +3 -2
- package/dist/index.js +4 -3
- package/dist/packages/studio-base/src/panels/ThreeDeeRender/renderables/ImageMode/annotations/RenderableLineAnnotation.js +3 -3
- package/dist/packages/studio-base/src/panels/ThreeDeeRender/renderables/ImageMode/annotations/RenderableLineAnnotation.js.map +1 -1
- package/dist/packages/studio-base/src/panels/ThreeDeeRender/renderables/ImageMode/annotations/normalizeAnnotations.d.ts +8 -0
- package/dist/packages/studio-base/src/panels/ThreeDeeRender/renderables/ImageMode/annotations/normalizeAnnotations.d.ts.map +1 -1
- package/dist/packages/studio-base/src/panels/ThreeDeeRender/renderables/ImageMode/annotations/normalizeAnnotations.js +2 -0
- package/dist/packages/studio-base/src/panels/ThreeDeeRender/renderables/ImageMode/annotations/normalizeAnnotations.js.map +1 -1
- package/dist/packages/studio-base/src/panels/ThreeDeeRender/renderables/ImageMode/annotations/types.d.ts +2 -0
- package/dist/packages/studio-base/src/panels/ThreeDeeRender/renderables/ImageMode/annotations/types.d.ts.map +1 -1
- package/dist/worker-Bm-XMTrA.js +102 -0
- package/dist/{worker-ChM3ax4q.js → worker-Cu4hHmBC.js} +2 -1
- package/dist/worker-utils-C5uhht5r.js +1332 -0
- package/package.json +3 -2
- package/dist/apps/depthai-visualizer/src/connection/BaseConnection.d.ts.map +0 -1
- package/dist/apps/depthai-visualizer/src/connection/BaseConnection.js.map +0 -1
- package/dist/apps/depthai-visualizer/src/connection/webrtc/Connection.d.ts +0 -12
- package/dist/apps/depthai-visualizer/src/connection/webrtc/Connection.d.ts.map +0 -1
- package/dist/apps/depthai-visualizer/src/connection/webrtc/Connection.js +0 -79
- package/dist/apps/depthai-visualizer/src/connection/webrtc/Connection.js.map +0 -1
- package/dist/apps/depthai-visualizer/src/connection/ws/Adapter.d.ts.map +0 -1
- package/dist/apps/depthai-visualizer/src/connection/ws/Adapter.js.map +0 -1
- package/dist/apps/depthai-visualizer/src/connection/ws/Connection.d.ts +0 -11
- package/dist/apps/depthai-visualizer/src/connection/ws/Connection.d.ts.map +0 -1
- package/dist/apps/depthai-visualizer/src/connection/ws/Connection.js +0 -45
- package/dist/apps/depthai-visualizer/src/connection/ws/Connection.js.map +0 -1
|
@@ -1,121 +1,62 @@
|
|
|
1
|
+
// This Source Code Form is subject to the terms of the Mozilla Public
|
|
2
|
+
// License, v2.0. If a copy of the MPL was not distributed with this
|
|
3
|
+
// file, You can obtain one at http://mozilla.org/MPL/2.0/
|
|
1
4
|
import { Waterfall } from "hydrated-ws";
|
|
2
5
|
import { FoxgloveClient } from "@foxglove/ws-protocol";
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
export class WsWorker {
|
|
6
|
+
import { FoxgloveCommunicator } from "../communicator.js";
|
|
7
|
+
export class WsWorker extends FoxgloveCommunicator {
|
|
6
8
|
send;
|
|
7
9
|
sendWithTransfer;
|
|
8
10
|
#ws;
|
|
9
11
|
#client;
|
|
10
|
-
|
|
11
|
-
services = new Map();
|
|
12
|
-
serviceCalls = new Map();
|
|
13
|
-
createWs(url, onReconnect) {
|
|
12
|
+
#createWs(url, onReconnect) {
|
|
14
13
|
this.#ws = new Waterfall(url, FoxgloveClient.SUPPORTED_SUBPROTOCOL, {
|
|
15
14
|
connectionTimeout: 2000,
|
|
16
15
|
retryPolicy: (_attempt) => {
|
|
17
16
|
onReconnect();
|
|
18
17
|
return 1_000;
|
|
19
18
|
},
|
|
20
|
-
factory: (
|
|
21
|
-
const rawWs = new WebSocket(
|
|
19
|
+
factory: (wsUrl) => {
|
|
20
|
+
const rawWs = new WebSocket(wsUrl, FoxgloveClient.SUPPORTED_SUBPROTOCOL);
|
|
22
21
|
rawWs.binaryType = "arraybuffer";
|
|
23
22
|
return rawWs;
|
|
24
23
|
}
|
|
25
24
|
});
|
|
26
25
|
}
|
|
27
|
-
createClient() {
|
|
26
|
+
#createClient() {
|
|
28
27
|
this.#client = new FoxgloveClient({ ws: this.#ws });
|
|
29
|
-
this.#client.on("open", () => this.send({ type: "open" }));
|
|
30
|
-
this.#client.on("close", () => this.send({ type: "close" }));
|
|
31
|
-
this.#client.on("error", (error) => this.send({ type: "error", error }));
|
|
28
|
+
this.#client.on("open", () => { this.send({ type: "open" }); });
|
|
29
|
+
this.#client.on("close", () => { this.send({ type: "close" }); });
|
|
30
|
+
this.#client.on("error", (error) => { this.send({ type: "error", error }); });
|
|
32
31
|
this.#client.on("message", ({ subscriptionId, data }) => {
|
|
33
|
-
|
|
34
|
-
if (subscription) {
|
|
35
|
-
this.sendWithTransfer({
|
|
36
|
-
type: "message",
|
|
37
|
-
data: { ...subscription, buffer: data }
|
|
38
|
-
}, [data.buffer]);
|
|
39
|
-
}
|
|
32
|
+
this.handleGenericMessage(subscriptionId, data);
|
|
40
33
|
});
|
|
41
34
|
}
|
|
42
|
-
|
|
43
|
-
|
|
35
|
+
#handleMessages() {
|
|
36
|
+
this.#client.on("advertise", this.handleChannelsAdvertisement.bind(this));
|
|
37
|
+
this.#client.on("unadvertise", this.handleChannelsUnadvertisement.bind(this));
|
|
38
|
+
this.#client.on("advertiseServices", this.handleServicesAdvertisement.bind(this));
|
|
39
|
+
this.#client.on("unadvertiseServices", this.handleServicesUnadvertisement.bind(this));
|
|
40
|
+
this.#client.on("serviceCallResponse", this.handleServiceResponse.bind(this));
|
|
44
41
|
}
|
|
45
|
-
|
|
46
|
-
return
|
|
42
|
+
isReady() {
|
|
43
|
+
return this.#ws.readyState === this.#ws.OPEN;
|
|
47
44
|
}
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
for (const channel of channels) {
|
|
52
|
-
const subscriptionId = this.#client.subscribe(channel.id);
|
|
53
|
-
const kind = protobufsBySchema[channel.schemaName]?.kind ?? 'annotations';
|
|
54
|
-
this.subscriptions.set(subscriptionId, {
|
|
55
|
-
topic: channel.topic,
|
|
56
|
-
schema: channel.schemaName,
|
|
57
|
-
kind
|
|
58
|
-
});
|
|
59
|
-
data.push({ topic: channel.topic, kind });
|
|
60
|
-
}
|
|
61
|
-
this.send({ type: "channels", data });
|
|
62
|
-
});
|
|
63
|
-
this.#client.on("unadvertise", (channels) => {
|
|
64
|
-
for (const channel of channels) {
|
|
65
|
-
this.subscriptions.delete(channel);
|
|
66
|
-
}
|
|
67
|
-
const data = this.getPublicChannels();
|
|
68
|
-
this.send({ type: "channels", data });
|
|
69
|
-
});
|
|
70
|
-
this.#client.on("advertiseServices", (advertisedServices) => {
|
|
71
|
-
const data = this.getPublicServices();
|
|
72
|
-
for (const service of advertisedServices) {
|
|
73
|
-
this.services.set(service.name, service);
|
|
74
|
-
data.push(service.name);
|
|
75
|
-
}
|
|
76
|
-
this.send({ type: "services", data });
|
|
77
|
-
});
|
|
78
|
-
this.#client.on("unadvertiseServices", (unadvertisedServices) => {
|
|
79
|
-
for (const unadvertisedService of unadvertisedServices) {
|
|
80
|
-
for (const [name, service] of this.services) {
|
|
81
|
-
if (service.id === unadvertisedService) {
|
|
82
|
-
this.services.delete(name);
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
const data = this.getPublicServices();
|
|
87
|
-
this.send({ type: "services", data });
|
|
88
|
-
});
|
|
45
|
+
;
|
|
46
|
+
sendServiceCallRequest(request) {
|
|
47
|
+
this.#client.sendServiceCallRequest(request);
|
|
89
48
|
}
|
|
90
|
-
|
|
91
|
-
this.#client.
|
|
92
|
-
const name = this.serviceCalls.get(event.callId) ?? 'unknown';
|
|
93
|
-
this.serviceCalls.delete(event.callId);
|
|
94
|
-
this.sendWithTransfer({
|
|
95
|
-
type: "service_response",
|
|
96
|
-
data: {
|
|
97
|
-
name,
|
|
98
|
-
ok: true,
|
|
99
|
-
serviceCallId: event.callId,
|
|
100
|
-
buffer: event.data,
|
|
101
|
-
error: null
|
|
102
|
-
}
|
|
103
|
-
}, [event.data.buffer]);
|
|
104
|
-
});
|
|
49
|
+
subscribe(channel) {
|
|
50
|
+
return this.#client.subscribe(channel);
|
|
105
51
|
}
|
|
106
52
|
constructor(wsUrl, send, sendWithTransfer) {
|
|
53
|
+
super();
|
|
107
54
|
this.send = send;
|
|
108
55
|
this.sendWithTransfer = sendWithTransfer;
|
|
109
|
-
const onReconnect = () => {
|
|
110
|
-
this.services.clear();
|
|
111
|
-
this.subscriptions.clear();
|
|
112
|
-
send({ type: "reconnect" });
|
|
113
|
-
};
|
|
114
56
|
try {
|
|
115
|
-
this
|
|
116
|
-
this
|
|
117
|
-
this
|
|
118
|
-
this.handleServiceResponses();
|
|
57
|
+
this.#createWs(wsUrl, this.handleReconnect.bind(this));
|
|
58
|
+
this.#createClient();
|
|
59
|
+
this.#handleMessages();
|
|
119
60
|
}
|
|
120
61
|
catch (error) {
|
|
121
62
|
// try-catch is needed to catch `Mixed Content` errors in Chrome, where the client
|
|
@@ -136,29 +77,7 @@ export class WsWorker {
|
|
|
136
77
|
this.#client.close();
|
|
137
78
|
}
|
|
138
79
|
callService({ name, serviceCallId, body = {} }) {
|
|
139
|
-
|
|
140
|
-
if (!service) {
|
|
141
|
-
this.send({
|
|
142
|
-
type: "service_response",
|
|
143
|
-
data: {
|
|
144
|
-
name,
|
|
145
|
-
serviceCallId,
|
|
146
|
-
ok: false,
|
|
147
|
-
error: "Service was not advertised",
|
|
148
|
-
buffer: null
|
|
149
|
-
}
|
|
150
|
-
});
|
|
151
|
-
return;
|
|
152
|
-
}
|
|
153
|
-
if (this.#ws.readyState === this.#ws.OPEN) {
|
|
154
|
-
this.serviceCalls.set(serviceCallId, name);
|
|
155
|
-
this.#client.sendServiceCallRequest({
|
|
156
|
-
serviceId: service.id,
|
|
157
|
-
callId: serviceCallId,
|
|
158
|
-
encoding: "json",
|
|
159
|
-
data: recordToDataView(body)
|
|
160
|
-
});
|
|
161
|
-
}
|
|
80
|
+
super.callService({ name, serviceCallId, body });
|
|
162
81
|
}
|
|
163
82
|
}
|
|
164
83
|
export function createWsWorkerMessageListener(send, sendWithTransfer) {
|
|
@@ -167,7 +86,7 @@ export function createWsWorkerMessageListener(send, sendWithTransfer) {
|
|
|
167
86
|
const { type, data } = event.data;
|
|
168
87
|
switch (type) {
|
|
169
88
|
case "open":
|
|
170
|
-
wsWorker = new WsWorker(data.wsUrl, send, sendWithTransfer);
|
|
89
|
+
wsWorker = new WsWorker('wsUrl' in data ? data.wsUrl : '', send, sendWithTransfer);
|
|
171
90
|
break;
|
|
172
91
|
case "close":
|
|
173
92
|
wsWorker?.close();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"worker-utils.js","sourceRoot":"","sources":["../../../../../../src/connection/ws/worker-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,OAAO,EAAE,cAAc,
|
|
1
|
+
{"version":3,"file":"worker-utils.js","sourceRoot":"","sources":["../../../../../../src/connection/ws/worker-utils.ts"],"names":[],"mappings":"AAAA,sEAAsE;AACtE,oEAAoE;AACpE,0DAA0D;AAE1D,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,OAAO,EAAE,cAAc,EAAsB,MAAM,uBAAuB,CAAC;AAE3E,OAAO,EAAE,oBAAoB,EAA6D,MAAM,oBAAoB,CAAC;AAErH,MAAM,OAAO,QAAS,SAAQ,oBAAoB;IAoDpC;IACA;IApDZ,GAAG,CAAa;IAChB,OAAO,CAAkB;IAEzB,SAAS,CAAC,GAAW,EAAE,WAAuB;QAC5C,IAAI,CAAC,GAAG,GAAG,IAAI,SAAS,CAAC,GAAG,EAAE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,OAAO,CAAC,IAAI,CAAC,CAAC;gBACxB,MAAM;YACR,KAAK,cAAc;gBACjB,QAAQ,EAAE,WAAW,CAAC,IAAI,CAAC,CAAC;gBAC5B,MAAM;QACV,CAAC;IACH,CAAC,CAAA;AACH,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const ConnectionsProvider: import("react").Provider<
|
|
3
|
-
export declare const useConnections: () =>
|
|
1
|
+
import { VisualizerConnection } from "../connection/connection.js";
|
|
2
|
+
export declare const ConnectionsProvider: import("react").Provider<VisualizerConnection<never>[]>;
|
|
3
|
+
export declare const useConnections: () => VisualizerConnection[];
|
|
4
4
|
//# sourceMappingURL=ConnectionsProvider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConnectionsProvider.d.ts","sourceRoot":"","sources":["../../../../../src/context/ConnectionsProvider.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ConnectionsProvider.d.ts","sourceRoot":"","sources":["../../../../../src/context/ConnectionsProvider.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAInE,eAAO,MAAM,mBAAmB,yDAAmB,CAAC;AACpD,eAAO,MAAM,cAAc,QAAO,oBAAoB,EAA+B,CAAC"}
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
// This Source Code Form is subject to the terms of the Mozilla Public
|
|
2
|
+
// License, v2.0. If a copy of the MPL was not distributed with this
|
|
3
|
+
// file, You can obtain one at http://mozilla.org/MPL/2.0/
|
|
1
4
|
const Context = React.createContext([]);
|
|
2
5
|
export const ConnectionsProvider = Context.Provider;
|
|
3
6
|
export const useConnections = () => React.useContext(Context);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConnectionsProvider.js","sourceRoot":"","sources":["../../../../../src/context/ConnectionsProvider.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ConnectionsProvider.js","sourceRoot":"","sources":["../../../../../src/context/ConnectionsProvider.tsx"],"names":[],"mappings":"AAAA,sEAAsE;AACtE,oEAAoE;AACpE,0DAA0D;AAI1D,MAAM,OAAO,GAAG,KAAK,CAAC,aAAa,CAAyB,EAAE,CAAC,CAAC;AAEhE,MAAM,CAAC,MAAM,mBAAmB,GAAG,OAAO,CAAC,QAAQ,CAAC;AACpD,MAAM,CAAC,MAAM,cAAc,GAAG,GAA2B,EAAE,CAAC,KAAK,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { PlayerProblem } from "@foxglove/studio-base/players/types";
|
|
3
|
-
import {
|
|
3
|
+
import { VisualizerConnection } from "../connection/connection.js";
|
|
4
4
|
export declare function useSourceProblems(): readonly PlayerProblem[];
|
|
5
5
|
interface VisualizerContextProps {
|
|
6
6
|
children: React.ReactNode;
|
|
7
|
-
connections:
|
|
7
|
+
connections: VisualizerConnection[];
|
|
8
8
|
}
|
|
9
9
|
export declare const VisualizerContext: React.NamedExoticComponent<VisualizerContextProps>;
|
|
10
10
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VisualizerContext.d.ts","sourceRoot":"","sources":["../../../../../src/context/VisualizerContext.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAW1B,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;
|
|
1
|
+
{"version":3,"file":"VisualizerContext.d.ts","sourceRoot":"","sources":["../../../../../src/context/VisualizerContext.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAW1B,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AASpE,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAEnE,wBAAgB,iBAAiB,IAAI,SAAS,aAAa,EAAE,CAE5D;AAED,UAAU,sBAAsB;IAC9B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,WAAW,EAAE,oBAAoB,EAAE,CAAC;CACrC;AAED,eAAO,MAAM,iBAAiB,oDA+F5B,CAAC"}
|
|
@@ -17,8 +17,8 @@ import EventsProvider from "@foxglove/studio-base/providers/EventsProvider";
|
|
|
17
17
|
import { PanelStateContextProvider } from "@foxglove/studio-base/providers/PanelStateContextProvider";
|
|
18
18
|
import TimelineInteractionStateProvider from "@foxglove/studio-base/providers/TimelineInteractionStateProvider";
|
|
19
19
|
import WorkspaceContextProvider from "@foxglove/studio-base/providers/WorkspaceContextProvider";
|
|
20
|
-
import { MessagePipelineProvider } from "./MessagePipelineProvider";
|
|
21
20
|
import { ConnectionsProvider } from "./ConnectionsProvider.js";
|
|
21
|
+
import { MessagePipelineProvider } from "./MessagePipelineProvider";
|
|
22
22
|
export function useSourceProblems() {
|
|
23
23
|
return useMessagePipeline((ctx) => ctx.playerState.problems ?? []);
|
|
24
24
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VisualizerContext.js","sourceRoot":"","sources":["../../../../../src/context/VisualizerContext.tsx"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,oEAAoE;AACpE,0DAA0D;AAE1D,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,mBAAmB,EAAiC,MAAM,wBAAwB,CAAC;AAE3G,OAAO,WAAW,MAAM,8CAA8C,CAAC;AACvE,OAAO,aAAa,MAAM,gDAAgD,CAAC;AAC3E,OAAO,SAAS,MAAM,4CAA4C,CAAC;AACnE,OAAO,EAAE,kBAAkB,EAAE,MAAM,kDAAkD,CAAC;AACtF,OAAO,uBAA8C,MAAM,uDAAuD,CAAC;AACnH,OAAO,mBAAkC,MAAM,mDAAmD,CAAC;A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E,GAAG,CAAC;YACjE,yBAAyB,EAAE,CAAC,KAAyB,EAAE,EAAE,GAAG,CAAC;YAC7D,OAAO,EAAE,GAAe,EAAE;gBACxB,OAAO,EAAE,CAAC;YACZ,CAAC;YACD,iBAAiB,EAAE,CAAC,kBAA+C,EAA6B,EAAE;gBAChG,OAAO,IAAI,CAAC;YACd,CAAC;SACF;KACF,CAAC;IAEF,+CAA+C;IAC/C,gCAAgC;IAChC,MAAM,YAAY,GAAG;QACnB,SAAS;YACP,OAAO,EAAE,CAAC;QACZ,CAAC;QACD,cAAc,CAAC,KAAa;YAC1B,OAAO,SAAS,CAAC;QACnB,CAAC;KACF,CAAC;IAEF,iBAAiB;IACjB,OAAO,CACL,KAAC,uBAAuB,CAAC,QAAQ,IAAC,KAAK,EAAE,gBAAgB,YACvD,KAAC,WAAW,IAAC,OAAO,EAAE,YAAY,YAChC,MAAC,wBAAwB,eACvB,KAAC,SAAS,KAAG,EACb,KAAC,WAAW,cACV,KAAC,aAAa,cACZ,KAAC,gCAAgC,cAC/B,KAAC,qBAAqB,cACpB,KAAC,mBAAmB,IAAC,KAAK,EAAE,WAAW,YACrC,KAAC,uBAAuB,cACtB,KAAC,cAAc,cACb,KAAC,aAAa,CAAC,QAAQ,IAAC,KAAK,EAAE,aAAa,YAC1C,KAAC,mBAAmB,CAAC,QAAQ,IAAC,KAAK,EAAE,mBAAmB,YACtD,KAAC,mBAAmB,CAAC,QAAQ,IAAC,KAAK,EAAE,YAAY,YAC/C,KAAC,yBAAyB,cACvB,QAAQ,GACiB,GACC,GACF,GACR,GACV,GACO,GACN,GACA,GACS,GACrB,GACH,IACU,GACf,GACoB,CACrC,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { VisualizerConnection } from "../connection/connection.js";
|
|
3
3
|
interface VisualizerContextProps {
|
|
4
4
|
children: React.ReactNode;
|
|
5
|
-
connections:
|
|
5
|
+
connections: VisualizerConnection[];
|
|
6
6
|
}
|
|
7
|
-
export declare function useFlatContext():
|
|
7
|
+
export declare function useFlatContext(): VisualizerConnection[];
|
|
8
8
|
export declare const VisualizerFlatContext: React.NamedExoticComponent<VisualizerContextProps>;
|
|
9
9
|
export {};
|
|
10
10
|
//# sourceMappingURL=VisualizerFlatContext.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VisualizerFlatContext.d.ts","sourceRoot":"","sources":["../../../../../src/context/VisualizerFlatContext.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"VisualizerFlatContext.d.ts","sourceRoot":"","sources":["../../../../../src/context/VisualizerFlatContext.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAInE,UAAU,sBAAsB;IAC9B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,WAAW,EAAE,oBAAoB,EAAE,CAAC;CACrC;AAED,wBAAgB,cAAc,IAAI,oBAAoB,EAAE,CAEvD;AAED,eAAO,MAAM,qBAAqB,oDAOhC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VisualizerFlatContext.js","sourceRoot":"","sources":["../../../../../src/context/VisualizerFlatContext.tsx"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,oEAAoE;AACpE,0DAA0D;AAE1D,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,MAAM,WAAW,GAAG,KAAK,CAAC,aAAa,
|
|
1
|
+
{"version":3,"file":"VisualizerFlatContext.js","sourceRoot":"","sources":["../../../../../src/context/VisualizerFlatContext.tsx"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,oEAAoE;AACpE,0DAA0D;AAE1D,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,MAAM,WAAW,GAAG,KAAK,CAAC,aAAa,CAAyB,EAAE,CAAC,CAAC;AAOpE,MAAM,UAAU,cAAc;IAC5B,OAAO,KAAK,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC;AACvC,CAAC;AAED,MAAM,CAAC,MAAM,qBAAqB,GAAG,KAAK,CAAC,IAAI,CAAC,SAAS,qBAAqB,CAAC,EAC7E,QAAQ,EACR,WAAW,GACY;IACvB,OAAO,KAAC,WAAW,CAAC,QAAQ,IAAC,KAAK,EAAE,WAAW,YAC5C,QAAQ,GACY,CAAA;AACzB,CAAC,CAAC,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export
|
|
3
|
-
export type {
|
|
1
|
+
export type { PublicChannelData } from './connection/connection.js';
|
|
2
|
+
export { VisualizerConnection } from './connection/connection.js';
|
|
3
|
+
export type { FoxgloveAdapterOutputMessage, FoxgloveAdapterInputMessage, FoxgloveMessage } from './connection/communicator.js';
|
|
4
4
|
export { createWsWorkerMessageListener } from './connection/ws/worker-utils.js';
|
|
5
5
|
export { VisualizerContext } from "./context/VisualizerContext";
|
|
6
6
|
export { PanelLayout } from "./components/PanelLayout.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/index.ts"],"names":[],"mappings":"AAIA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/index.ts"],"names":[],"mappings":"AAIA,YAAY,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAA;AACnE,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAA;AAEjE,YAAY,EAAE,4BAA4B,EAAE,2BAA2B,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAA;AAE9H,OAAO,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAA;AAE/E,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAEhE,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAE1D,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// This Source Code Form is subject to the terms of the Mozilla Public
|
|
2
2
|
// License, v2.0. If a copy of the MPL was not distributed with this
|
|
3
3
|
// file, You can obtain one at http://mozilla.org/MPL/2.0/
|
|
4
|
-
export {
|
|
4
|
+
export { VisualizerConnection } from './connection/connection.js';
|
|
5
5
|
export { createWsWorkerMessageListener } from './connection/ws/worker-utils.js';
|
|
6
6
|
export { VisualizerContext } from "./context/VisualizerContext";
|
|
7
7
|
export { PanelLayout } from "./components/PanelLayout.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/index.ts"],"names":[],"mappings":"AAAA,sEAAsE;AACtE,oEAAoE;AACpE,0DAA0D;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/index.ts"],"names":[],"mappings":"AAAA,sEAAsE;AACtE,oEAAoE;AACpE,0DAA0D;AAG1D,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAA;AAIjE,OAAO,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAA;AAE/E,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAEhE,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAE1D,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC"}
|
package/dist/apps/depthai-visualizer/src/messaging/deserialization/detections/constants.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../../../src/messaging/deserialization/detections/constants.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../../../src/messaging/deserialization/detections/constants.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,KAAK,EAAE,MAAM,uCAAuC,CAAC;AAiB9D,eAAO,MAAM,eAAe,EAAE;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,KAAK,CAAC;IACZ,OAAO,EAAE,KAAK,CAAC;CAChB,EAiFE,CAAC;AAEJ,eAAO,MAAM,WAAW,EAAE,KAAkC,CAAC;AAE7D,eAAO,MAAM,aAAa;;;;CAAwC,CAAC;AAEnE,eAAO,MAAM,kBAAkB,EAAE,KAAkC,CAAC;AACpE,eAAO,MAAM,wBAAwB,EAAE,KAAkC,CAAC"}
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
// This Source Code Form is subject to the terms of the Mozilla Public
|
|
2
|
+
// License, v2.0. If a copy of the MPL was not distributed with this
|
|
3
|
+
// file, You can obtain one at http://mozilla.org/MPL/2.0/
|
|
1
4
|
// This Source Code Form Is Subject To The Terms Of The Mozilla Public
|
|
2
5
|
// License, V2.0. If A Copy Of The MPL Was Not Distributed With This
|
|
3
6
|
// File, You Can Obtain One At Http://mozilla.org/MPL/2.0/
|
package/dist/apps/depthai-visualizer/src/messaging/deserialization/detections/constants.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../../src/messaging/deserialization/detections/constants.ts"],"names":[],"mappings":"AAAA,sEAAsE;AACtE,oEAAoE;AACpE,0DAA0D;
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../../src/messaging/deserialization/detections/constants.ts"],"names":[],"mappings":"AAAA,sEAAsE;AACtE,oEAAoE;AACpE,0DAA0D;AAE1D,sEAAsE;AACtE,oEAAoE;AACpE,0DAA0D;AAE1D,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAGrC,MAAM,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E,IAAI,EAAE,GAAG,YAAY,CAAC,IAAI,EAAE,CAAC;AAEnE,MAAM,CAAC,MAAM,kBAAkB,GAAU,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC;AACpE,MAAM,CAAC,MAAM,wBAAwB,GAAU,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { MessageEvent } from "@foxglove/studio-base/players/types";
|
|
2
|
-
import { ImageAnnotations } from "../../../protobuf.generated/ImageAnnotations.js";
|
|
3
2
|
import { TopicSizes } from "./detection.js";
|
|
3
|
+
import { ImageAnnotations } from "../../../protobuf.generated/ImageAnnotations.js";
|
|
4
4
|
export type DeserializeImgDetectionsArgs = {
|
|
5
5
|
topic: string;
|
|
6
6
|
message: ImageAnnotations;
|
package/dist/apps/depthai-visualizer/src/messaging/deserialization/detections/custom.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"custom.d.ts","sourceRoot":"","sources":["../../../../../../../src/messaging/deserialization/detections/custom.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"custom.d.ts","sourceRoot":"","sources":["../../../../../../../src/messaging/deserialization/detections/custom.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAC;AAGnE,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE5C,OAAO,EAAE,gBAAgB,EAAwB,MAAM,iDAAiD,CAAC;AAGzG,MAAM,MAAM,4BAA4B,GAAG;IACzC,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,gBAAgB,CAAC;IAC1B,UAAU,EAAE,UAAU,CAAC;IACvB,QAAQ,EAAE,CAAC,KAAK,EAAE,YAAY,KAAK,IAAI,CAAC;CACzC,CAAC;AAEF,wBAAgB,8BAA8B,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,EAAE,4BAA4B,GAAG,IAAI,CAuE3H"}
|
|
@@ -2,29 +2,49 @@
|
|
|
2
2
|
// License, v2.0. If a copy of the MPL was not distributed with this
|
|
3
3
|
// file, You can obtain one at http://mozilla.org/MPL/2.0/
|
|
4
4
|
import { PointsAnnotationType as FoxglovePointsAnnotationType } from "@foxglove/schemas";
|
|
5
|
-
import { DEFAULT_BACKGROUND_COLOR, DEFAULT_STYLE, DEFAULT_TEXT_COLOR } from "./constants.js";
|
|
6
|
-
import { parseMessage } from "../../utils.js";
|
|
7
5
|
import { estimateObjectSize } from "@foxglove/studio-base/players/messageMemoryEstimation.js";
|
|
8
|
-
import {
|
|
6
|
+
import { DEFAULT_BACKGROUND_COLOR, DEFAULT_STYLE, DEFAULT_TEXT_COLOR } from "./constants.js";
|
|
9
7
|
import { DEFAULT_HEIGHT, DEFAULT_WIDTH, getTextSize } from "./utils.js";
|
|
8
|
+
import { PointsAnnotationType } from "../../../protobuf.generated/ImageAnnotations.js";
|
|
9
|
+
import { parseMessage } from "../../utils.js";
|
|
10
10
|
export function deserializeImgDetectionsCustom({ topic, message, callback, topicSizes }) {
|
|
11
11
|
const { receiveTime } = parseMessage(message);
|
|
12
|
-
const { width, height } = topicSizes.values().next().value ?? {
|
|
12
|
+
const { width, height } = (topicSizes.values().next().value ?? {
|
|
13
13
|
width: DEFAULT_WIDTH, height: DEFAULT_HEIGHT
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
14
|
+
});
|
|
15
|
+
const xMultiplier = width >= height ? 1 : height / width;
|
|
16
|
+
const yMultiplier = height >= width ? 1 : width / height;
|
|
17
|
+
for (const annotations of message.annotations) {
|
|
18
|
+
const points = [];
|
|
19
|
+
const circles = [];
|
|
20
|
+
for (const annotation of annotations.points) {
|
|
21
|
+
if (annotation.type === PointsAnnotationType.POINTS) {
|
|
22
|
+
circles.push(...annotation.points.map(point => ({
|
|
23
|
+
timestamp: receiveTime,
|
|
24
|
+
position: point,
|
|
25
|
+
xMultiplier,
|
|
26
|
+
yMultiplier,
|
|
27
|
+
diameter: annotation.thickness / 200,
|
|
28
|
+
thickness: annotation.thickness,
|
|
29
|
+
fill_color: annotation.fillColor ?? DEFAULT_STYLE.fill,
|
|
30
|
+
outline_color: annotation.outlineColor ?? DEFAULT_STYLE.fill,
|
|
31
|
+
})));
|
|
32
|
+
}
|
|
33
|
+
else {
|
|
34
|
+
points.push({
|
|
35
|
+
timestamp: receiveTime,
|
|
36
|
+
type: annotation.type === PointsAnnotationType.UNRECOGNIZED
|
|
37
|
+
? FoxglovePointsAnnotationType.UNKNOWN
|
|
38
|
+
: Number(annotation.type),
|
|
39
|
+
points: annotation.points,
|
|
40
|
+
outline_color: annotation.outlineColor ?? DEFAULT_STYLE.outline,
|
|
41
|
+
outline_colors: [],
|
|
42
|
+
fill_color: annotation.fillColor ?? DEFAULT_STYLE.fill,
|
|
43
|
+
thickness: annotation.thickness
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
const texts = annotations.texts.map(annotation => ({
|
|
28
48
|
timestamp: receiveTime,
|
|
29
49
|
position: annotation.position ?? { x: 0, y: 0 },
|
|
30
50
|
text: annotation.text,
|
|
@@ -32,14 +52,14 @@ export function deserializeImgDetectionsCustom({ topic, message, callback, topic
|
|
|
32
52
|
text_color: annotation.textColor ?? DEFAULT_TEXT_COLOR,
|
|
33
53
|
background_color: annotation.backgroundColor ?? DEFAULT_BACKGROUND_COLOR
|
|
34
54
|
}));
|
|
35
|
-
|
|
55
|
+
circles.push(...annotations.circles.map(annotation => ({
|
|
36
56
|
timestamp: receiveTime,
|
|
37
57
|
position: annotation.position ?? { x: 0, y: 0 },
|
|
38
58
|
diameter: annotation.diameter,
|
|
39
59
|
thickness: annotation.thickness,
|
|
40
60
|
fill_color: annotation.fillColor ?? DEFAULT_STYLE.fill,
|
|
41
61
|
outline_color: annotation.outlineColor ?? DEFAULT_STYLE.outline,
|
|
42
|
-
}));
|
|
62
|
+
})));
|
|
43
63
|
const foxgloveMessage = { points, texts, circles };
|
|
44
64
|
callback({
|
|
45
65
|
topic,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"custom.js","sourceRoot":"","sources":["../../../../../../../src/messaging/deserialization/detections/custom.ts"],"names":[],"mappings":"AAAA,sEAAsE;AACtE,oEAAoE;AACpE,0DAA0D;AAE1D,OAAO,EAAgD,oBAAoB,IAAI,4BAA4B,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"custom.js","sourceRoot":"","sources":["../../../../../../../src/messaging/deserialization/detections/custom.ts"],"names":[],"mappings":"AAAA,sEAAsE;AACtE,oEAAoE;AACpE,0DAA0D;AAE1D,OAAO,EAAgD,oBAAoB,IAAI,4BAA4B,EAAE,MAAM,mBAAmB,CAAC;AACvI,OAAO,EAAE,kBAAkB,EAAE,MAAM,0DAA0D,CAAC;AAG9F,OAAO,EAAE,wBAAwB,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAE7F,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AACxE,OAAO,EAAoB,oBAAoB,EAAE,MAAM,iDAAiD,CAAC;AACzG,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAS9C,MAAM,UAAU,8BAA8B,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAgC;IACnH,MAAM,EAAE,WAAW,EAAE,GAAG,YAAY,CAAC,OAAO,CAAC,CAAC;IAE9C,M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OAAO;SAChE,CAAC,CAAC,CACJ,CAAC;QAEF,MAAM,eAAe,GAA6B,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC;QAE7E,QAAQ,CAAC;YACP,KAAK;YACL,WAAW;YACX,OAAO,EAAE,eAAe;YACxB,WAAW,EAAE,kBAAkB,CAAC,eAAe,CAAC;YAChD,UAAU,EAAE,2BAA2B;SACxC,CAAC,CAAC;IACL,CAAC;AACH,CAAC"}
|
package/dist/apps/depthai-visualizer/src/messaging/deserialization/detections/detection.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"detection.d.ts","sourceRoot":"","sources":["../../../../../../../src/messaging/deserialization/detections/detection.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"detection.d.ts","sourceRoot":"","sources":["../../../../../../../src/messaging/deserialization/detections/detection.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAC;AAInE,OAAO,EAAE,aAAa,EAAE,MAAM,8CAA8C,CAAC;AAG7E,MAAM,MAAM,UAAU,GAAG,GAAG,CAAC,MAAM,EAAE;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAA;CACf,CAAC,CAAC;AAEH,MAAM,MAAM,4BAA4B,GAAG;IACzC,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,UAAU,CAAC;IACvB,OAAO,EAAE,aAAa,CAAC;IACvB,QAAQ,EAAE,CAAC,KAAK,EAAE,YAAY,KAAK,IAAI,CAAC;CACzC,CAAC;AAEF,wBAAgB,wBAAwB,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,EAAE,4BAA4B,GAAG,IAAI,CAsIrH"}
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
// License, v2.0. If a copy of the MPL was not distributed with this
|
|
3
3
|
// file, You can obtain one at http://mozilla.org/MPL/2.0/
|
|
4
4
|
import { PointsAnnotationType } from "@foxglove/schemas";
|
|
5
|
-
import { DEFAULT_BACKGROUND_COLOR, DEBUG_COLOR, DEFAULT_TEXT_COLOR, DETECTION_STYLE, DEFAULT_STYLE } from "./constants.js";
|
|
6
|
-
import { parseMessage } from "../../utils.js";
|
|
7
5
|
import { estimateObjectSize } from "@foxglove/studio-base/players/messageMemoryEstimation.js";
|
|
6
|
+
import { DEFAULT_BACKGROUND_COLOR, DEBUG_COLOR, DEFAULT_TEXT_COLOR, DETECTION_STYLE, DEFAULT_STYLE } from "./constants.js";
|
|
8
7
|
import { DEFAULT_HEIGHT, DEFAULT_WIDTH, getBorderThickness, getTextSize } from "./utils.js";
|
|
8
|
+
import { parseMessage } from "../../utils.js";
|
|
9
9
|
export function deserializeImgDetections({ topic, message, callback, topicSizes }) {
|
|
10
10
|
const { receiveTime } = parseMessage(message);
|
|
11
11
|
const foxgloveMessage = {
|
package/dist/apps/depthai-visualizer/src/messaging/deserialization/detections/detection.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"detection.js","sourceRoot":"","sources":["../../../../../../../src/messaging/deserialization/detections/detection.ts"],"names":[],"mappings":"AAAA,sEAAsE;AACtE,oEAAoE;AACpE,0DAA0D;AAE1D,OAAO,EAAsC,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"detection.js","sourceRoot":"","sources":["../../../../../../../src/messaging/deserialization/detections/detection.ts"],"names":[],"mappings":"AAAA,sEAAsE;AACtE,oEAAoE;AACpE,0DAA0D;AAE1D,OAAO,EAAsC,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAC7F,OAAO,EAAE,kBAAkB,EAAE,MAAM,0DAA0D,CAAC;AAG9F,OAAO,EAAE,wBAAwB,EAAE,WAAW,EAAE,kBAAkB,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC3H,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,kBAAkB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AAe,CAAC;QAChD,UAAU,EAAE,2BAA2B;KACxC,CAAC,CAAC;AACL,CAAC"}
|
package/dist/apps/depthai-visualizer/src/messaging/deserialization/detections/utils.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../../../src/messaging/deserialization/detections/utils.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../../../src/messaging/deserialization/detections/utils.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,EAAE,MAAM,uCAAuC,CAAC;AAE9D,eAAO,MAAM,OAAO,MAAO,MAAM,KAAK,MAAM,KAAK,MAAM,KAAK,MAAM,KAAG,KAEnE,CAAC;AAEH,eAAO,MAAM,aAAa,OAAO,CAAC;AAClC,eAAO,MAAM,cAAc,OAAO,CAAC;AASnC,eAAO,MAAM,YAAY,KAAK,CAAC;AAC/B,eAAO,MAAM,iBAAiB,KAAK,CAAC;AAEpC,eAAO,MAAM,WAAW,UAAW,MAAM,UAAU,MAAM,WAA6C,CAAC;AACvG,eAAO,MAAM,kBAAkB,UAAW,MAAM,UAAU,MAAM,WAAkD,CAAC"}
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
// This Source Code Form is subject to the terms of the Mozilla Public
|
|
2
|
+
// License, v2.0. If a copy of the MPL was not distributed with this
|
|
3
|
+
// file, You can obtain one at http://mozilla.org/MPL/2.0/
|
|
1
4
|
export const glColor = (r, g, b, a) => ({
|
|
2
5
|
r: r / 255, g: g / 255, b: b / 255, a
|
|
3
6
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../../../../src/messaging/deserialization/detections/utils.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../../../../src/messaging/deserialization/detections/utils.ts"],"names":[],"mappings":"AAAA,sEAAsE;AACtE,oEAAoE;AACpE,0DAA0D;AAI1D,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,CAAS,EAAE,CAAS,EAAE,CAAS,EAAE,CAAS,EAAS,EAAE,CAAC,CAAC;IAC7E,CAAC,EAAE,CAAC,GAAG,GAAG,EAAE,CAAC,EAAE,CAAC,GAAG,GAAG,EAAE,CAAC,EAAE,CAAC,GAAG,GAAG,EAAE,CAAC;CACtC,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,aAAa,GAAG,IAAI,CAAC;AAClC,MAAM,CAAC,MAAM,cAAc,GAAG,IAAI,CAAC;AAEnC,SAAS,WAAW,CAAC,KAAa,EAAE,MAAc,EAAE,IAAY;IAC9D,MAAM,UAAU,GAAG,KAAK,GAAG,aAAa,CAAC;IACzC,MAAM,WAAW,GAAG,MAAM,GAAG,cAAc,CAAC;IAC5C,MAAM,KAAK,GAAG,CAAC,UAAU,GAAG,WAAW,CAAC,GAAG,CAAC,CAAC;IAC7C,OAAO,IAAI,GAAG,KAAK,CAAC;AACtB,CAAC;AAED,MAAM,CAAC,MAAM,YAAY,GAAG,EAAE,CAAC;AAC/B,MAAM,CAAC,MAAM,iBAAiB,GAAG,EAAE,CAAC;AAEpC,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,KAAa,EAAE,MAAc,EAAE,EAAE,CAAC,WAAW,CAAC,KAAK,EAAE,MAAM,EAAE,YAAY,CAAC,CAAC;AACvG,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,KAAa,EAAE,MAAc,EAAE,EAAE,CAAC,WAAW,CAAC,KAAK,EAAE,MAAM,EAAE,iBAAiB,CAAC,CAAC"}
|