@luxonis/visualizer-protobuf 2.1.1 → 2.3.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.
Files changed (122) hide show
  1. package/dist/{communicator-ZAqNuwq6.js → FoxgloveServer-tJZcJH5-.js} +1216 -184
  2. package/dist/apps/depthai-visualizer/src/components/Panel.d.ts.map +1 -1
  3. package/dist/apps/depthai-visualizer/src/components/Panel.js +13 -4
  4. package/dist/apps/depthai-visualizer/src/components/Panel.js.map +1 -1
  5. package/dist/apps/depthai-visualizer/src/components/PanelToolbar.d.ts.map +1 -1
  6. package/dist/apps/depthai-visualizer/src/components/PanelToolbar.js +12 -12
  7. package/dist/apps/depthai-visualizer/src/components/PanelToolbar.js.map +1 -1
  8. package/dist/apps/depthai-visualizer/src/connection/adapter.d.ts +10 -7
  9. package/dist/apps/depthai-visualizer/src/connection/adapter.d.ts.map +1 -1
  10. package/dist/apps/depthai-visualizer/src/connection/adapter.js +11 -5
  11. package/dist/apps/depthai-visualizer/src/connection/adapter.js.map +1 -1
  12. package/dist/apps/depthai-visualizer/src/connection/communicator.d.ts +17 -13
  13. package/dist/apps/depthai-visualizer/src/connection/communicator.d.ts.map +1 -1
  14. package/dist/apps/depthai-visualizer/src/connection/communicator.js +17 -24
  15. package/dist/apps/depthai-visualizer/src/connection/communicator.js.map +1 -1
  16. package/dist/apps/depthai-visualizer/src/connection/connection.d.ts +14 -13
  17. package/dist/apps/depthai-visualizer/src/connection/connection.d.ts.map +1 -1
  18. package/dist/apps/depthai-visualizer/src/connection/connection.js +25 -22
  19. package/dist/apps/depthai-visualizer/src/connection/connection.js.map +1 -1
  20. package/dist/apps/depthai-visualizer/src/connection/foxglove-protocol.d.ts +6 -0
  21. package/dist/apps/depthai-visualizer/src/connection/foxglove-protocol.d.ts.map +1 -0
  22. package/dist/apps/depthai-visualizer/src/connection/foxglove-protocol.js +63 -0
  23. package/dist/apps/depthai-visualizer/src/connection/foxglove-protocol.js.map +1 -0
  24. package/dist/apps/depthai-visualizer/src/connection/webrtc/bridge.d.ts +2 -2
  25. package/dist/apps/depthai-visualizer/src/connection/webrtc/bridge.d.ts.map +1 -1
  26. package/dist/apps/depthai-visualizer/src/connection/webrtc/bridge.js +76 -45
  27. package/dist/apps/depthai-visualizer/src/connection/webrtc/bridge.js.map +1 -1
  28. package/dist/apps/depthai-visualizer/src/connection/webrtc/worker-utils.d.ts +50 -15
  29. package/dist/apps/depthai-visualizer/src/connection/webrtc/worker-utils.d.ts.map +1 -1
  30. package/dist/apps/depthai-visualizer/src/connection/webrtc/worker-utils.js +71 -26
  31. package/dist/apps/depthai-visualizer/src/connection/webrtc/worker-utils.js.map +1 -1
  32. package/dist/apps/depthai-visualizer/src/connection/webrtc/worker.js +15 -0
  33. package/dist/apps/depthai-visualizer/src/connection/webrtc/worker.js.map +1 -1
  34. package/dist/apps/depthai-visualizer/src/connection/ws/worker.d.ts +16 -1
  35. package/dist/apps/depthai-visualizer/src/connection/ws/worker.d.ts.map +1 -1
  36. package/dist/apps/depthai-visualizer/src/connection/ws/worker.js +114 -2
  37. package/dist/apps/depthai-visualizer/src/connection/ws/worker.js.map +1 -1
  38. package/dist/apps/depthai-visualizer/src/context/ConnectionsProvider.d.ts +1 -1
  39. package/dist/apps/depthai-visualizer/src/context/ConnectionsProvider.d.ts.map +1 -1
  40. package/dist/apps/depthai-visualizer/src/index.d.ts +1 -2
  41. package/dist/apps/depthai-visualizer/src/index.d.ts.map +1 -1
  42. package/dist/apps/depthai-visualizer/src/index.js +0 -1
  43. package/dist/apps/depthai-visualizer/src/index.js.map +1 -1
  44. package/dist/apps/depthai-visualizer/src/messaging/deserialization/detections/detection.js +2 -2
  45. package/dist/apps/depthai-visualizer/src/messaging/deserialization/detections/detection.js.map +1 -1
  46. package/dist/apps/depthai-visualizer/src/messaging/deserialization/detections/utils.d.ts.map +1 -1
  47. package/dist/apps/depthai-visualizer/src/messaging/deserialization/detections/utils.js.map +1 -1
  48. package/dist/apps/depthai-visualizer/src/messaging/deserialization.js +5 -5
  49. package/dist/apps/depthai-visualizer/src/messaging/deserialization.js.map +1 -1
  50. package/dist/apps/depthai-visualizer/src/messaging/utils.d.ts +7 -6
  51. package/dist/apps/depthai-visualizer/src/messaging/utils.d.ts.map +1 -1
  52. package/dist/apps/depthai-visualizer/src/messaging/utils.js +2 -2
  53. package/dist/apps/depthai-visualizer/src/messaging/utils.js.map +1 -1
  54. package/dist/apps/depthai-visualizer/src/protobuf.generated/EncodedFrame.d.ts.map +1 -1
  55. package/dist/apps/depthai-visualizer/src/protobuf.generated/EncodedFrame.js +3 -0
  56. package/dist/apps/depthai-visualizer/src/protobuf.generated/EncodedFrame.js.map +1 -1
  57. package/dist/apps/depthai-visualizer/src/protobuf.generated/ImageAnnotations.d.ts.map +1 -1
  58. package/dist/apps/depthai-visualizer/src/protobuf.generated/ImageAnnotations.js +3 -0
  59. package/dist/apps/depthai-visualizer/src/protobuf.generated/ImageAnnotations.js.map +1 -1
  60. package/dist/apps/depthai-visualizer/src/protobuf.generated/ImgDetections.d.ts.map +1 -1
  61. package/dist/apps/depthai-visualizer/src/protobuf.generated/ImgDetections.js +3 -0
  62. package/dist/apps/depthai-visualizer/src/protobuf.generated/ImgDetections.js.map +1 -1
  63. package/dist/apps/depthai-visualizer/src/protobuf.generated/ImgFrame.d.ts.map +1 -1
  64. package/dist/apps/depthai-visualizer/src/protobuf.generated/ImgFrame.js +3 -0
  65. package/dist/apps/depthai-visualizer/src/protobuf.generated/ImgFrame.js.map +1 -1
  66. package/dist/apps/depthai-visualizer/src/protobuf.generated/PointCloudData.d.ts.map +1 -1
  67. package/dist/apps/depthai-visualizer/src/protobuf.generated/PointCloudData.js +3 -0
  68. package/dist/apps/depthai-visualizer/src/protobuf.generated/PointCloudData.js.map +1 -1
  69. package/dist/apps/depthai-visualizer/src/protobuf.generated/SpatialImgDetections.d.ts.map +1 -1
  70. package/dist/apps/depthai-visualizer/src/protobuf.generated/SpatialImgDetections.js +3 -0
  71. package/dist/apps/depthai-visualizer/src/protobuf.generated/SpatialImgDetections.js.map +1 -1
  72. package/dist/apps/depthai-visualizer/src/protobuf.generated/common.d.ts.map +1 -1
  73. package/dist/apps/depthai-visualizer/src/protobuf.generated/common.js +3 -0
  74. package/dist/apps/depthai-visualizer/src/protobuf.generated/common.js.map +1 -1
  75. package/dist/apps/depthai-visualizer/src/utils/artificial-worker.d.ts +7 -4
  76. package/dist/apps/depthai-visualizer/src/utils/artificial-worker.d.ts.map +1 -1
  77. package/dist/apps/depthai-visualizer/src/utils/artificial-worker.js +15 -2
  78. package/dist/apps/depthai-visualizer/src/utils/artificial-worker.js.map +1 -1
  79. package/dist/apps/depthai-visualizer/src/utils/callback-manager.d.ts +1 -1
  80. package/dist/apps/depthai-visualizer/src/utils/callback-manager.d.ts.map +1 -1
  81. package/dist/apps/depthai-visualizer/src/utils/callback-manager.js +5 -5
  82. package/dist/apps/depthai-visualizer/src/utils/callback-manager.js.map +1 -1
  83. package/dist/apps/depthai-visualizer/src/utils/compatibility.d.ts.map +1 -1
  84. package/dist/apps/depthai-visualizer/src/utils/metrics-manager.d.ts.map +1 -1
  85. package/dist/apps/depthai-visualizer/src/utils/metrics-manager.js +1 -0
  86. package/dist/apps/depthai-visualizer/src/utils/metrics-manager.js.map +1 -1
  87. package/dist/communicator-D9LSiWws.js +147 -0
  88. package/dist/foxglove-protocol-RBwoTi12.js +76 -0
  89. package/dist/{index-DvdDp1CU.js → index-BatOjqHR.js} +4 -5
  90. package/dist/{index-fkPdppby.js → index-BeMujwTx.js} +4 -5
  91. package/dist/{index-yfE-EHjv.js → index-Bmv-vCsr.js} +4 -5
  92. package/dist/{index-BNmANBei.js → index-Bpb1nLXX.js} +4 -5
  93. package/dist/{index-Cv9FekAD.js → index-C38MwKQ5.js} +4 -5
  94. package/dist/{index-DszVVt5Z.js → index-C4Xw5gJf.js} +4 -5
  95. package/dist/{index-r3QAVuN1.js → index-CCjTYhIj.js} +4 -5
  96. package/dist/{index-Bk2FsKKi.js → index-CRzS8jhh.js} +4 -5
  97. package/dist/{index-2U-xZM02.js → index-CTV8k4Ur.js} +4 -5
  98. package/dist/{index-BEeIqwPz.js → index-Cjzn2Mk3.js} +4 -5
  99. package/dist/{index-sbw9t8iK.js → index-CzJG5yoW.js} +4 -5
  100. package/dist/{index-FWvVjhSv.js → index-D2tE4ai8.js} +5 -6
  101. package/dist/{index-lPEkwJ-1.js → index-D8PL1mUz.js} +4 -5
  102. package/dist/{index-CKhCc5vm.js → index-Dx5rKk7S.js} +252 -156
  103. package/dist/{index-nxmrq-HQ.js → index-JdSlhtdz.js} +4 -5
  104. package/dist/{index-Djz0avqZ.js → index-LBWmbzab.js} +4 -5
  105. package/dist/{index-TgQ8-Lib.js → index-fDKFJqYA.js} +4 -5
  106. package/dist/{index-DakMDXW9.js → index-kO40p_fI.js} +4 -5
  107. package/dist/{index-QYS2yYV7.js → index-lcxcWrBB.js} +4 -5
  108. package/dist/index.js +4 -5
  109. package/dist/worker-BX0SIDt0.js +163 -0
  110. package/dist/worker-C6ruK-iB.js +150 -0
  111. package/package.json +2 -2
  112. package/dist/apps/depthai-visualizer/src/connection/ws/worker-utils.d.ts +0 -18
  113. package/dist/apps/depthai-visualizer/src/connection/ws/worker-utils.d.ts.map +0 -1
  114. package/dist/apps/depthai-visualizer/src/connection/ws/worker-utils.js +0 -103
  115. package/dist/apps/depthai-visualizer/src/connection/ws/worker-utils.js.map +0 -1
  116. package/dist/apps/depthai-visualizer/src/panels/CanvasPanel.d.ts +0 -12
  117. package/dist/apps/depthai-visualizer/src/panels/CanvasPanel.d.ts.map +0 -1
  118. package/dist/apps/depthai-visualizer/src/panels/CanvasPanel.js +0 -52
  119. package/dist/apps/depthai-visualizer/src/panels/CanvasPanel.js.map +0 -1
  120. package/dist/worker-ByVSTHSI.js +0 -102
  121. package/dist/worker-DlZ2xp8p.js +0 -11
  122. package/dist/worker-utils-BNThsbdN.js +0 -1332
@@ -1,102 +0,0 @@
1
- import { F as FoxgloveCommunicator, r as recordToDataView } from './communicator-ZAqNuwq6.js';
2
- import 'protobufjs/minimal';
3
-
4
- // This Source Code Form is subject to the terms of the Mozilla Public
5
- // License, v2.0. If a copy of the MPL was not distributed with this
6
- // file, You can obtain one at http://mozilla.org/MPL/2.0/
7
-
8
- class WebRtcHandler extends FoxgloveCommunicator {
9
- #subscriptionId = 0;
10
- #messageReady = false;
11
- #systemReady = false;
12
- isReady() {
13
- return this.#messageReady && this.#systemReady;
14
- }
15
- send(message) {
16
- self.postMessage(message);
17
- }
18
- sendWithTransfer(message, transfer) {
19
- self.postMessage(message, transfer);
20
- }
21
- subscribe(channel) {
22
- this.#subscriptionId += 1;
23
- self.postMessage({
24
- type: 'send',
25
- data: {
26
- channel: 'system',
27
- data: recordToDataView({
28
- op: 'subscribe',
29
- subscriptions: [{
30
- id: this.#subscriptionId,
31
- channelId: channel
32
- }]
33
- })
34
- }
35
- });
36
- return this.#subscriptionId;
37
- }
38
- sendServiceCallRequest(request) {
39
- self.postMessage({
40
- type: 'send',
41
- data: {
42
- channel: 'message',
43
- data: recordToDataView(request)
44
- }
45
- });
46
- }
47
- handleConnection(data) {
48
- if (!data.channel || data.channel === 'message') {
49
- this.#messageReady = data.ready;
50
- }
51
- if (!data.channel || data.channel === 'system') {
52
- this.#systemReady = data.ready;
53
- }
54
- }
55
- handleGeneric(message) {
56
- this.handleGenericMessage(message.subscriptionId, message.data);
57
- }
58
- handleSystem(message) {
59
- switch (message.op) {
60
- case 'advertise':
61
- {
62
- this.handleChannelsAdvertisement(message.channels);
63
- break;
64
- }
65
- case 'unadvertise':
66
- {
67
- this.handleChannelsUnadvertisement(message.channelIds);
68
- break;
69
- }
70
- case 'advertiseServices':
71
- {
72
- this.handleServicesAdvertisement(message.services);
73
- break;
74
- }
75
- case 'unadvertiseServices':
76
- {
77
- this.handleServicesUnadvertisement(message.serviceIds);
78
- break;
79
- }
80
- case 'serviceResponse':
81
- {
82
- this.handleServiceResponse(message);
83
- break;
84
- }
85
- }
86
- }
87
- }
88
-
89
- // This Source Code Form is subject to the terms of the Mozilla Public
90
- // License, v2.0. If a copy of the MPL was not distributed with this
91
- // file, You can obtain one at http://mozilla.org/MPL/2.0/
92
-
93
- const handler = new WebRtcHandler();
94
- self.addEventListener("message", event => {
95
- if (event.data.kind === 'genericMessage') {
96
- handler.handleGeneric(event.data.data.message);
97
- } else if (event.data.kind === 'systemMessage') {
98
- handler.handleSystem(event.data.data.message);
99
- } else {
100
- handler.handleConnection(event.data.data);
101
- }
102
- });
@@ -1,11 +0,0 @@
1
- import { b as createWsWorkerMessageListener } from './worker-utils-BNThsbdN.js';
2
- import 'hydrated-ws';
3
- import 'ms';
4
- import './communicator-ZAqNuwq6.js';
5
- import 'protobufjs/minimal';
6
-
7
- // This Source Code Form is subject to the terms of the Mozilla Public
8
- // License, v2.0. If a copy of the MPL was not distributed with this
9
- // file, You can obtain one at http://mozilla.org/MPL/2.0/
10
-
11
- self.addEventListener("message", createWsWorkerMessageListener(self.postMessage.bind(self), self.postMessage.bind(self)));