@luxonis/visualizer-protobuf 2.2.0 → 2.4.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 (123) hide show
  1. package/dist/{communicator-DKKKAI0H.js → FoxgloveServer-tJZcJH5-.js} +1216 -174
  2. package/dist/apps/depthai-visualizer/src/components/Panel.d.ts.map +1 -1
  3. package/dist/apps/depthai-visualizer/src/components/Panel.js +4 -13
  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 +10 -11
  7. package/dist/apps/depthai-visualizer/src/components/PanelToolbar.js.map +1 -1
  8. package/dist/apps/depthai-visualizer/src/connection/adapter.d.ts +4 -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 +5 -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 +7 -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 +5 -4
  15. package/dist/apps/depthai-visualizer/src/connection/communicator.js.map +1 -1
  16. package/dist/apps/depthai-visualizer/src/connection/connection.d.ts +8 -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 +19 -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 +29 -49
  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 → handler.d.ts} +21 -21
  29. package/dist/apps/depthai-visualizer/src/connection/webrtc/handler.d.ts.map +1 -0
  30. package/dist/apps/depthai-visualizer/src/connection/webrtc/{worker-utils.js → handler.js} +46 -49
  31. package/dist/apps/depthai-visualizer/src/connection/webrtc/handler.js.map +1 -0
  32. package/dist/apps/depthai-visualizer/src/connection/webrtc/worker.js +1 -1
  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 +6 -6
  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 +10 -7
  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-CE1LH59a.js → index--nzAFiZd.js} +4 -5
  90. package/dist/{index-BZjzIIuE.js → index-BB5d7Wdh.js} +4 -5
  91. package/dist/{index-D7I7neMi.js → index-BHaIc2C4.js} +4 -5
  92. package/dist/{index-SZgAiOi4.js → index-BVRwpAVC.js} +4 -5
  93. package/dist/{index-DbIgJEn4.js → index-BYSKaUpM.js} +4 -5
  94. package/dist/{index-B3F-eA-i.js → index-BmgfyPqg.js} +119 -140
  95. package/dist/{index-B4j3EVf8.js → index-BoC3cisy.js} +4 -5
  96. package/dist/{index-Cqzhj8jS.js → index-BozWkluR.js} +4 -5
  97. package/dist/{index-DleEaqya.js → index-Bt0NSrqQ.js} +4 -5
  98. package/dist/{index-Dai0K-_7.js → index-CDi1cz7Q.js} +4 -5
  99. package/dist/{index-1yvlF6NH.js → index-CPdu31YI.js} +4 -5
  100. package/dist/{index-FdS8KlrP.js → index-CeamuSdm.js} +4 -5
  101. package/dist/{index-Cmp_Tjng.js → index-CgejPf93.js} +5 -6
  102. package/dist/{index-C6m30paN.js → index-CqufTx2r.js} +4 -5
  103. package/dist/{index-MOg_zBJW.js → index-GlkMngOu.js} +4 -5
  104. package/dist/{index-D_AhdZqi.js → index-GvvAhoPF.js} +4 -5
  105. package/dist/{index-D0g7yNKD.js → index-KSDq22q_.js} +4 -5
  106. package/dist/{index-DkDTcHOl.js → index-q-pdHK_j.js} +4 -5
  107. package/dist/{index-BsdqQ862.js → index-tb3sDWD8.js} +4 -5
  108. package/dist/index.js +4 -5
  109. package/dist/worker-C6ruK-iB.js +150 -0
  110. package/dist/{worker-CMZIJlQN.js → worker-CXuTdrjS.js} +41 -39
  111. package/package.json +1 -1
  112. package/dist/apps/depthai-visualizer/src/connection/webrtc/worker-utils.d.ts.map +0 -1
  113. package/dist/apps/depthai-visualizer/src/connection/webrtc/worker-utils.js.map +0 -1
  114. package/dist/apps/depthai-visualizer/src/connection/ws/worker-utils.d.ts +0 -19
  115. package/dist/apps/depthai-visualizer/src/connection/ws/worker-utils.d.ts.map +0 -1
  116. package/dist/apps/depthai-visualizer/src/connection/ws/worker-utils.js +0 -128
  117. package/dist/apps/depthai-visualizer/src/connection/ws/worker-utils.js.map +0 -1
  118. package/dist/apps/depthai-visualizer/src/panels/CanvasPanel.d.ts +0 -12
  119. package/dist/apps/depthai-visualizer/src/panels/CanvasPanel.d.ts.map +0 -1
  120. package/dist/apps/depthai-visualizer/src/panels/CanvasPanel.js +0 -52
  121. package/dist/apps/depthai-visualizer/src/panels/CanvasPanel.js.map +0 -1
  122. package/dist/worker-DtDgSl3T.js +0 -11
  123. package/dist/worker-utils-BuUq1bP1.js +0 -1357
@@ -1,14 +1,13 @@
1
- import { aC as ContextTracker, au as ExternalTokenizer, aq as styleTags, ar as tags, av as LRParser, as as LRLanguage, an as indentNodeProp, aA as delimitedIndent, ap as foldNodeProp, aB as foldInside, at as LanguageSupport, aL as parseMixed } from './index-B3F-eA-i.js';
2
- import './worker-utils-BuUq1bP1.js';
3
- import 'hydrated-ws';
4
- import 'ms';
5
- import './communicator-DKKKAI0H.js';
1
+ import { aC as ContextTracker, au as ExternalTokenizer, aq as styleTags, ar as tags, av as LRParser, as as LRLanguage, an as indentNodeProp, aA as delimitedIndent, ap as foldNodeProp, aB as foldInside, at as LanguageSupport, aL as parseMixed } from './index-BmgfyPqg.js';
2
+ import './FoxgloveServer-tJZcJH5-.js';
6
3
  import 'protobufjs/minimal';
4
+ import 'ms';
7
5
  import 'react';
8
6
  import 'zustand';
9
7
  import 'react-mosaic-component';
10
8
  import '@mui/material';
11
9
  import './i18next-C5Qe4-E1.js';
10
+ import './foxglove-protocol-RBwoTi12.js';
12
11
  import 'react-dnd';
13
12
  import 'react-dnd-html5-backend';
14
13
  import '@emotion/react';
@@ -1,14 +1,13 @@
1
- import { aq as styleTags, ar as tags, as as LRLanguage, at as LanguageSupport, av as LRParser, aD as LocalTokenGroup, aK as html, aL as parseMixed, aN as javascriptLanguage } from './index-B3F-eA-i.js';
2
- import './worker-utils-BuUq1bP1.js';
3
- import 'hydrated-ws';
4
- import 'ms';
5
- import './communicator-DKKKAI0H.js';
1
+ import { aq as styleTags, ar as tags, as as LRLanguage, at as LanguageSupport, av as LRParser, aD as LocalTokenGroup, aK as html, aL as parseMixed, aN as javascriptLanguage } from './index-BmgfyPqg.js';
2
+ import './FoxgloveServer-tJZcJH5-.js';
6
3
  import 'protobufjs/minimal';
4
+ import 'ms';
7
5
  import 'react';
8
6
  import 'zustand';
9
7
  import 'react-mosaic-component';
10
8
  import '@mui/material';
11
9
  import './i18next-C5Qe4-E1.js';
10
+ import './foxglove-protocol-RBwoTi12.js';
12
11
  import 'react-dnd';
13
12
  import 'react-dnd-html5-backend';
14
13
  import '@emotion/react';
@@ -1,14 +1,13 @@
1
- import { aC as ContextTracker, au as ExternalTokenizer, aq as styleTags, ar as tags, av as LRParser, as as LRLanguage, an as indentNodeProp, ap as foldNodeProp, aM as bracketMatchingHandle, at as LanguageSupport, aI as EditorView, ay as syntaxTree, aJ as EditorSelection } from './index-B3F-eA-i.js';
2
- import './worker-utils-BuUq1bP1.js';
3
- import 'hydrated-ws';
4
- import 'ms';
5
- import './communicator-DKKKAI0H.js';
1
+ import { aC as ContextTracker, au as ExternalTokenizer, aq as styleTags, ar as tags, av as LRParser, as as LRLanguage, an as indentNodeProp, ap as foldNodeProp, aM as bracketMatchingHandle, at as LanguageSupport, aI as EditorView, ay as syntaxTree, aJ as EditorSelection } from './index-BmgfyPqg.js';
2
+ import './FoxgloveServer-tJZcJH5-.js';
6
3
  import 'protobufjs/minimal';
4
+ import 'ms';
7
5
  import 'react';
8
6
  import 'zustand';
9
7
  import 'react-mosaic-component';
10
8
  import '@mui/material';
11
9
  import './i18next-C5Qe4-E1.js';
10
+ import './foxglove-protocol-RBwoTi12.js';
12
11
  import 'react-dnd';
13
12
  import 'react-dnd-html5-backend';
14
13
  import '@emotion/react';
@@ -1,14 +1,13 @@
1
- import { aq as styleTags, ar as tags, av as LRParser, as as LRLanguage, an as indentNodeProp, ao as continuedIndent, az as flatIndent, aA as delimitedIndent, ap as foldNodeProp, aB as foldInside, at as LanguageSupport } from './index-B3F-eA-i.js';
2
- import './worker-utils-BuUq1bP1.js';
3
- import 'hydrated-ws';
4
- import 'ms';
5
- import './communicator-DKKKAI0H.js';
1
+ import { aq as styleTags, ar as tags, av as LRParser, as as LRLanguage, an as indentNodeProp, ao as continuedIndent, az as flatIndent, aA as delimitedIndent, ap as foldNodeProp, aB as foldInside, at as LanguageSupport } from './index-BmgfyPqg.js';
2
+ import './FoxgloveServer-tJZcJH5-.js';
6
3
  import 'protobufjs/minimal';
4
+ import 'ms';
7
5
  import 'react';
8
6
  import 'zustand';
9
7
  import 'react-mosaic-component';
10
8
  import '@mui/material';
11
9
  import './i18next-C5Qe4-E1.js';
10
+ import './foxglove-protocol-RBwoTi12.js';
12
11
  import 'react-dnd';
13
12
  import 'react-dnd-html5-backend';
14
13
  import '@emotion/react';
@@ -1,14 +1,13 @@
1
- import { aq as styleTags, ar as tags, av as LRParser, as as LRLanguage, an as indentNodeProp, ao as continuedIndent, ap as foldNodeProp, aB as foldInside, at as LanguageSupport } from './index-B3F-eA-i.js';
2
- import './worker-utils-BuUq1bP1.js';
3
- import 'hydrated-ws';
4
- import 'ms';
5
- import './communicator-DKKKAI0H.js';
1
+ import { aq as styleTags, ar as tags, av as LRParser, as as LRLanguage, an as indentNodeProp, ao as continuedIndent, ap as foldNodeProp, aB as foldInside, at as LanguageSupport } from './index-BmgfyPqg.js';
2
+ import './FoxgloveServer-tJZcJH5-.js';
6
3
  import 'protobufjs/minimal';
4
+ import 'ms';
7
5
  import 'react';
8
6
  import 'zustand';
9
7
  import 'react-mosaic-component';
10
8
  import '@mui/material';
11
9
  import './i18next-C5Qe4-E1.js';
10
+ import './foxglove-protocol-RBwoTi12.js';
12
11
  import 'react-dnd';
13
12
  import 'react-dnd-html5-backend';
14
13
  import '@emotion/react';
@@ -1,16 +1,15 @@
1
- import { ImagePanel } from './index-BZjzIIuE.js';
1
+ import { ImagePanel } from './index-BB5d7Wdh.js';
2
2
  import 'react';
3
3
  import 'react-dom';
4
- import './index-B3F-eA-i.js';
5
- import './worker-utils-BuUq1bP1.js';
6
- import 'hydrated-ws';
7
- import 'ms';
8
- import './communicator-DKKKAI0H.js';
4
+ import './index-BmgfyPqg.js';
5
+ import './FoxgloveServer-tJZcJH5-.js';
9
6
  import 'protobufjs/minimal';
7
+ import 'ms';
10
8
  import 'zustand';
11
9
  import 'react-mosaic-component';
12
10
  import '@mui/material';
13
11
  import './i18next-C5Qe4-E1.js';
12
+ import './foxglove-protocol-RBwoTi12.js';
14
13
  import 'react-dnd';
15
14
  import 'react-dnd-html5-backend';
16
15
  import '@emotion/react';
@@ -1,14 +1,13 @@
1
- import { aq as styleTags, ar as tags, aN as javascriptLanguage, as as LRLanguage, at as LanguageSupport, av as LRParser, aK as html, aL as parseMixed, au as ExternalTokenizer } from './index-B3F-eA-i.js';
2
- import './worker-utils-BuUq1bP1.js';
3
- import 'hydrated-ws';
4
- import 'ms';
5
- import './communicator-DKKKAI0H.js';
1
+ import { aq as styleTags, ar as tags, aN as javascriptLanguage, as as LRLanguage, at as LanguageSupport, av as LRParser, aK as html, aL as parseMixed, au as ExternalTokenizer } from './index-BmgfyPqg.js';
2
+ import './FoxgloveServer-tJZcJH5-.js';
6
3
  import 'protobufjs/minimal';
4
+ import 'ms';
7
5
  import 'react';
8
6
  import 'zustand';
9
7
  import 'react-mosaic-component';
10
8
  import '@mui/material';
11
9
  import './i18next-C5Qe4-E1.js';
10
+ import './foxglove-protocol-RBwoTi12.js';
12
11
  import 'react-dnd';
13
12
  import 'react-dnd-html5-backend';
14
13
  import '@emotion/react';
@@ -1,14 +1,13 @@
1
- import { aq as styleTags, ar as tags, as as LRLanguage, an as indentNodeProp, ao as continuedIndent, ap as foldNodeProp, aB as foldInside, aH as defineCSSCompletionSource, at as LanguageSupport, av as LRParser, au as ExternalTokenizer } from './index-B3F-eA-i.js';
2
- import './worker-utils-BuUq1bP1.js';
3
- import 'hydrated-ws';
4
- import 'ms';
5
- import './communicator-DKKKAI0H.js';
1
+ import { aq as styleTags, ar as tags, as as LRLanguage, an as indentNodeProp, ao as continuedIndent, ap as foldNodeProp, aB as foldInside, aH as defineCSSCompletionSource, at as LanguageSupport, av as LRParser, au as ExternalTokenizer } from './index-BmgfyPqg.js';
2
+ import './FoxgloveServer-tJZcJH5-.js';
6
3
  import 'protobufjs/minimal';
4
+ import 'ms';
7
5
  import 'react';
8
6
  import 'zustand';
9
7
  import 'react-mosaic-component';
10
8
  import '@mui/material';
11
9
  import './i18next-C5Qe4-E1.js';
10
+ import './foxglove-protocol-RBwoTi12.js';
12
11
  import 'react-dnd';
13
12
  import 'react-dnd-html5-backend';
14
13
  import '@emotion/react';
@@ -1,14 +1,13 @@
1
- import { an as indentNodeProp, ao as continuedIndent, ap as foldNodeProp, aq as styleTags, ar as tags, as as LRLanguage, at as LanguageSupport, au as ExternalTokenizer, av as LRParser, aw as ifNotIn, ax as completeFromList, ay as syntaxTree } from './index-B3F-eA-i.js';
2
- import './worker-utils-BuUq1bP1.js';
3
- import 'hydrated-ws';
4
- import 'ms';
5
- import './communicator-DKKKAI0H.js';
1
+ import { an as indentNodeProp, ao as continuedIndent, ap as foldNodeProp, aq as styleTags, ar as tags, as as LRLanguage, at as LanguageSupport, au as ExternalTokenizer, av as LRParser, aw as ifNotIn, ax as completeFromList, ay as syntaxTree } from './index-BmgfyPqg.js';
2
+ import './FoxgloveServer-tJZcJH5-.js';
6
3
  import 'protobufjs/minimal';
4
+ import 'ms';
7
5
  import 'react';
8
6
  import 'zustand';
9
7
  import 'react-mosaic-component';
10
8
  import '@mui/material';
11
9
  import './i18next-C5Qe4-E1.js';
10
+ import './foxglove-protocol-RBwoTi12.js';
12
11
  import 'react-dnd';
13
12
  import 'react-dnd-html5-backend';
14
13
  import '@emotion/react';
@@ -1,14 +1,13 @@
1
- import { au as ExternalTokenizer, aq as styleTags, ar as tags, av as LRParser, as as LRLanguage, an as indentNodeProp, ao as continuedIndent, ap as foldNodeProp, aB as foldInside, at as LanguageSupport } from './index-B3F-eA-i.js';
2
- import './worker-utils-BuUq1bP1.js';
3
- import 'hydrated-ws';
4
- import 'ms';
5
- import './communicator-DKKKAI0H.js';
1
+ import { au as ExternalTokenizer, aq as styleTags, ar as tags, av as LRParser, as as LRLanguage, an as indentNodeProp, ao as continuedIndent, ap as foldNodeProp, aB as foldInside, at as LanguageSupport } from './index-BmgfyPqg.js';
2
+ import './FoxgloveServer-tJZcJH5-.js';
6
3
  import 'protobufjs/minimal';
4
+ import 'ms';
7
5
  import 'react';
8
6
  import 'zustand';
9
7
  import 'react-mosaic-component';
10
8
  import '@mui/material';
11
9
  import './i18next-C5Qe4-E1.js';
10
+ import './foxglove-protocol-RBwoTi12.js';
12
11
  import 'react-dnd';
13
12
  import 'react-dnd-html5-backend';
14
13
  import '@emotion/react';
@@ -1,14 +1,13 @@
1
- import { au as ExternalTokenizer, aq as styleTags, ar as tags, av as LRParser, as as LRLanguage, an as indentNodeProp, ao as continuedIndent, az as flatIndent, aA as delimitedIndent, ap as foldNodeProp, aB as foldInside, at as LanguageSupport } from './index-B3F-eA-i.js';
2
- import './worker-utils-BuUq1bP1.js';
3
- import 'hydrated-ws';
4
- import 'ms';
5
- import './communicator-DKKKAI0H.js';
1
+ import { au as ExternalTokenizer, aq as styleTags, ar as tags, av as LRParser, as as LRLanguage, an as indentNodeProp, ao as continuedIndent, az as flatIndent, aA as delimitedIndent, ap as foldNodeProp, aB as foldInside, at as LanguageSupport } from './index-BmgfyPqg.js';
2
+ import './FoxgloveServer-tJZcJH5-.js';
6
3
  import 'protobufjs/minimal';
4
+ import 'ms';
7
5
  import 'react';
8
6
  import 'zustand';
9
7
  import 'react-mosaic-component';
10
8
  import '@mui/material';
11
9
  import './i18next-C5Qe4-E1.js';
10
+ import './foxglove-protocol-RBwoTi12.js';
12
11
  import 'react-dnd';
13
12
  import 'react-dnd-html5-backend';
14
13
  import '@emotion/react';
@@ -1,14 +1,13 @@
1
- import { aI as EditorView, aJ as EditorSelection, as as LRLanguage, aq as styleTags, ar as tags, an as indentNodeProp, aA as delimitedIndent, ap as foldNodeProp, at as LanguageSupport, av as LRParser, ay as syntaxTree, aK as html, aL as parseMixed, au as ExternalTokenizer } from './index-B3F-eA-i.js';
2
- import './worker-utils-BuUq1bP1.js';
3
- import 'hydrated-ws';
4
- import 'ms';
5
- import './communicator-DKKKAI0H.js';
1
+ import { aI as EditorView, aJ as EditorSelection, as as LRLanguage, aq as styleTags, ar as tags, an as indentNodeProp, aA as delimitedIndent, ap as foldNodeProp, at as LanguageSupport, av as LRParser, ay as syntaxTree, aK as html, aL as parseMixed, au as ExternalTokenizer } from './index-BmgfyPqg.js';
2
+ import './FoxgloveServer-tJZcJH5-.js';
6
3
  import 'protobufjs/minimal';
4
+ import 'ms';
7
5
  import 'react';
8
6
  import 'zustand';
9
7
  import 'react-mosaic-component';
10
8
  import '@mui/material';
11
9
  import './i18next-C5Qe4-E1.js';
10
+ import './foxglove-protocol-RBwoTi12.js';
12
11
  import 'react-dnd';
13
12
  import 'react-dnd-html5-backend';
14
13
  import '@emotion/react';
package/dist/index.js CHANGED
@@ -1,12 +1,13 @@
1
- export { aR as ImagePanel, aQ as PanelLayout, aS as PointCloudPanel, aO as VisualizerConnection, aP as VisualizerContext } from './index-B3F-eA-i.js';
2
- export { b as createWsWorkerMessageListener } from './worker-utils-BuUq1bP1.js';
3
- import './communicator-DKKKAI0H.js';
1
+ export { aR as ImagePanel, aQ as PanelLayout, aS as PointCloudPanel, aO as VisualizerConnection, aP as VisualizerContext } from './index-BmgfyPqg.js';
2
+ import './FoxgloveServer-tJZcJH5-.js';
4
3
  import 'protobufjs/minimal';
4
+ import 'ms';
5
5
  import 'react';
6
6
  import 'zustand';
7
7
  import 'react-mosaic-component';
8
8
  import '@mui/material';
9
9
  import './i18next-C5Qe4-E1.js';
10
+ import './foxglove-protocol-RBwoTi12.js';
10
11
  import 'react-dnd';
11
12
  import 'react-dnd-html5-backend';
12
13
  import '@emotion/react';
@@ -19,5 +20,3 @@ import 'rehype-sanitize';
19
20
  import 'extend';
20
21
  import 'react-icons';
21
22
  import '@pandacss/dev';
22
- import 'hydrated-ws';
23
- import 'ms';
@@ -0,0 +1,150 @@
1
+ import { Waterfall } from 'hydrated-ws';
2
+ import { F as FoxgloveClient } from './FoxgloveServer-tJZcJH5-.js';
3
+ import { F as FoxgloveCommunicator } from './communicator-D9LSiWws.js';
4
+ import 'protobufjs/minimal';
5
+ import 'ms';
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
+ class WsWorker extends FoxgloveCommunicator {
12
+ #ws;
13
+ #client;
14
+ #subscriptions = new Map();
15
+ send(message) {
16
+ self.postMessage(message);
17
+ }
18
+ sendWithTransfer(message, transfer) {
19
+ self.postMessage(message, transfer);
20
+ }
21
+ #createWs(url, onReconnect) {
22
+ this.#ws = new Waterfall(url, FoxgloveClient.SUPPORTED_SUBPROTOCOL, {
23
+ connectionTimeout: 2000,
24
+ retryPolicy: _attempt => {
25
+ onReconnect();
26
+ return 1_000;
27
+ },
28
+ factory: wsUrl => {
29
+ const rawWs = new WebSocket(wsUrl, FoxgloveClient.SUPPORTED_SUBPROTOCOL);
30
+ rawWs.binaryType = "arraybuffer";
31
+ return rawWs;
32
+ }
33
+ });
34
+ }
35
+ #createClient() {
36
+ this.#client = new FoxgloveClient({
37
+ ws: this.#ws
38
+ });
39
+ this.#client.on("open", () => {
40
+ this.send({
41
+ type: "open"
42
+ });
43
+ });
44
+ this.#client.on("close", () => {
45
+ this.send({
46
+ type: "close"
47
+ });
48
+ });
49
+ this.#client.on("error", error => {
50
+ this.send({
51
+ type: "error",
52
+ error
53
+ });
54
+ });
55
+ this.#client.on("message", ({
56
+ subscriptionId,
57
+ data
58
+ }) => {
59
+ const subscription = this.#subscriptions.get(subscriptionId);
60
+ if (subscription) {
61
+ this.handleGenericMessage(subscription.topic, subscription.schema, data);
62
+ }
63
+ });
64
+ }
65
+ #handleMessages() {
66
+ this.#client.on("advertise", this.handleChannelsAdvertisement.bind(this));
67
+ this.#client.on("unadvertise", this.handleChannelsUnadvertisement.bind(this));
68
+ this.#client.on("advertiseServices", this.handleServicesAdvertisement.bind(this));
69
+ this.#client.on("unadvertiseServices", this.handleServicesUnadvertisement.bind(this));
70
+ this.#client.on("serviceCallResponse", this.handleServiceResponse.bind(this));
71
+ }
72
+ sendServiceCallRequest(request) {
73
+ this.#client.sendServiceCallRequest(request);
74
+ }
75
+ isReady() {
76
+ return this.#ws.readyState === this.#ws.OPEN;
77
+ }
78
+ constructor(wsUrl) {
79
+ super();
80
+ try {
81
+ this.#createWs(wsUrl, this.handleReconnect.bind(this));
82
+ this.#createClient();
83
+ this.#handleMessages();
84
+ } catch (error) {
85
+ // try-catch is needed to catch `Mixed Content` errors in Chrome, where the client
86
+ // attempts to load `ws://` from `https://`. (Safari would catch these in `ws.onerror`
87
+ // but with `undefined` as an error.)
88
+ this.send({
89
+ type: "error",
90
+ error: error ?? {
91
+ message: "Insecure WebSocket connection"
92
+ }
93
+ });
94
+ }
95
+ }
96
+ subscribe(topics) {
97
+ const channels = this.getPublicChannels().filter(publicChannel => topics.includes(publicChannel.topic));
98
+ for (const channel of channels) {
99
+ const subscription = this.#client.subscribe(channel.id);
100
+ this.#subscriptions.set(subscription, {
101
+ topic: channel.topic,
102
+ schema: channel.schemaName,
103
+ kind: channel.kind
104
+ });
105
+ }
106
+ }
107
+ unsubscribe(topics) {
108
+ const subscriptionIds = [...this.#subscriptions.entries()].filter(([_id, data]) => topics.includes(data.topic)).map(subscription => subscription[0]);
109
+ for (const subscriptionId of subscriptionIds) {
110
+ this.#subscriptions.delete(subscriptionId);
111
+ this.#client.unsubscribe(subscriptionId);
112
+ }
113
+ }
114
+ callService(args) {
115
+ super.callService(args);
116
+ }
117
+ close() {
118
+ this.#client.close();
119
+ }
120
+ }
121
+ let wsWorker = null;
122
+ self.addEventListener('message', async event => {
123
+ const {
124
+ type,
125
+ data
126
+ } = event.data;
127
+ if (type !== 'open' && !wsWorker) {
128
+ console.warn(`WS Worker Error: Requested ${type} before open`);
129
+ return;
130
+ }
131
+ switch (type) {
132
+ case "open":
133
+ wsWorker = new WsWorker('wsUrl' in data ? data.wsUrl : '');
134
+ break;
135
+ case "close":
136
+ wsWorker.close();
137
+ break;
138
+ case "call_service":
139
+ wsWorker.callService(data);
140
+ break;
141
+ case 'subscribe':
142
+ wsWorker.subscribe(data);
143
+ break;
144
+ case 'unsubscribe':
145
+ wsWorker.unsubscribe(data);
146
+ break;
147
+ }
148
+ });
149
+
150
+ export { WsWorker };
@@ -1,5 +1,8 @@
1
- import { F as FoxgloveCommunicator, r as recordToDataView } from './communicator-DKKKAI0H.js';
1
+ import { F as FoxgloveCommunicator, r as recordToDataView } from './communicator-D9LSiWws.js';
2
+ import { m as makeServiceCallRequest } from './foxglove-protocol-RBwoTi12.js';
3
+ import './FoxgloveServer-tJZcJH5-.js';
2
4
  import 'protobufjs/minimal';
5
+ import 'ms';
3
6
 
4
7
  // This Source Code Form is subject to the terms of the Mozilla Public
5
8
  // License, v2.0. If a copy of the MPL was not distributed with this
@@ -19,76 +22,75 @@ class WebRtcHandler extends FoxgloveCommunicator {
19
22
  sendWithTransfer(message, transfer) {
20
23
  self.postMessage(message, transfer);
21
24
  }
22
- #rawSubscribe(channelIds) {
23
- const subscriptions = channelIds.map(channelId => ({
24
- id: ++this.#subscriptionId,
25
+ #rawSubscribe(channelId) {
26
+ const subscriptionId = ++this.#subscriptionId;
27
+ const subscriptions = [{
28
+ id: subscriptionId,
25
29
  channelId
26
- }));
30
+ }];
27
31
  self.postMessage({
28
- type: 'send',
32
+ type: "send",
29
33
  data: {
30
- channel: 'system',
34
+ channel: "system",
31
35
  data: recordToDataView({
32
- op: 'subscribe',
36
+ op: "subscribe",
33
37
  subscriptions
34
38
  })
35
39
  }
36
40
  });
37
- return subscriptions;
41
+ return subscriptionId;
38
42
  }
39
43
  subscribe(topics) {
40
- const channelIds = this.getPublicChannels().filter(publicChannel => topics.includes(publicChannel.topic)).map(channel => channel.id);
41
- const subscriptions = this.#rawSubscribe(channelIds);
42
- for (const subscription of subscriptions) {
43
- const channel = this.getPublicChannels().find(publicChannel => publicChannel.id === subscription.channelId);
44
- if (channel) {
45
- this.#subscriptions.set(subscription.id, {
46
- topic: channel.topic,
47
- schema: channel.schemaName,
48
- kind: channel.kind
49
- });
50
- }
44
+ const channels = this.getPublicChannels().filter(publicChannel => topics.includes(publicChannel.topic));
45
+ for (const channel of channels) {
46
+ const subscription = this.#rawSubscribe(channel.id);
47
+ this.#subscriptions.set(subscription, {
48
+ topic: channel.topic,
49
+ schema: channel.schemaName,
50
+ kind: channel.kind
51
+ });
51
52
  }
52
53
  }
53
- #rawUnsubscribe(subscriptionIds) {
54
+ #rawUnsubscribe(subscriptionId) {
54
55
  self.postMessage({
55
- type: 'send',
56
+ type: "send",
56
57
  data: {
57
- channel: 'system',
58
+ channel: "system",
58
59
  data: recordToDataView({
59
- op: 'unsubscribe',
60
- subscriptionIds
60
+ op: "unsubscribe",
61
+ subscriptionIds: [subscriptionId]
61
62
  })
62
63
  }
63
64
  });
64
65
  }
65
66
  unsubscribe(topics) {
66
67
  const subscriptionIds = [...this.#subscriptions.entries()].filter(([_id, data]) => topics.includes(data.topic)).map(subscription => subscription[0]);
67
- this.#rawUnsubscribe(subscriptionIds);
68
68
  for (const subscriptionId of subscriptionIds) {
69
69
  this.#subscriptions.delete(subscriptionId);
70
+ this.#rawUnsubscribe(subscriptionId);
70
71
  }
71
72
  }
72
- sendServiceCallRequest(request) {
73
+ sendServiceCallRequest(args) {
74
+ const data = makeServiceCallRequest(args);
73
75
  self.postMessage({
74
- type: 'send',
76
+ type: "send",
75
77
  data: {
76
- channel: 'message',
77
- data: recordToDataView(request)
78
+ channel: "message",
79
+ data
78
80
  }
79
- });
81
+ }, [data.buffer]);
80
82
  }
81
83
  handleRawSend(data) {
82
84
  self.postMessage({
83
- type: 'send',
85
+ type: "send",
84
86
  data
85
87
  });
86
88
  }
87
89
  handleConnection(data) {
88
- if (!data.channel || data.channel === 'message') {
90
+ if (!data.channel || data.channel === "message") {
89
91
  this.#messageReady = data.ready;
90
92
  }
91
- if (!data.channel || data.channel === 'system') {
93
+ if (!data.channel || data.channel === "system") {
92
94
  this.#systemReady = data.ready;
93
95
  }
94
96
  }
@@ -103,27 +105,27 @@ class WebRtcHandler extends FoxgloveCommunicator {
103
105
  }
104
106
  handleSystem(message) {
105
107
  switch (message.op) {
106
- case 'advertise':
108
+ case "advertise":
107
109
  {
108
110
  this.handleChannelsAdvertisement(message.channels);
109
111
  break;
110
112
  }
111
- case 'unadvertise':
113
+ case "unadvertise":
112
114
  {
113
115
  this.handleChannelsUnadvertisement(message.channelIds);
114
116
  break;
115
117
  }
116
- case 'advertiseServices':
118
+ case "advertiseServices":
117
119
  {
118
120
  this.handleServicesAdvertisement(message.services);
119
121
  break;
120
122
  }
121
- case 'unadvertiseServices':
123
+ case "unadvertiseServices":
122
124
  {
123
125
  this.handleServicesUnadvertisement(message.serviceIds);
124
126
  break;
125
127
  }
126
- case 'serviceResponse':
128
+ case "serviceResponse":
127
129
  {
128
130
  this.handleServiceResponse(message);
129
131
  break;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@luxonis/visualizer-protobuf",
3
- "version": "2.2.0",
3
+ "version": "2.4.0",
4
4
  "type": "module",
5
5
  "description": "RobotHub Visualizer Library",
6
6
  "author": "Luxonis Corp",
@@ -1 +0,0 @@
1
- {"version":3,"file":"worker-utils.d.ts","sourceRoot":"","sources":["../../../../../../src/connection/webrtc/worker-utils.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,kBAAkB,EAA0B,MAAM,uBAAuB,CAAC;AAIxJ,OAAO,EAAE,4BAA4B,EAAE,oBAAoB,EAAmB,MAAM,iBAAiB,CAAC;AAGtG,KAAK,cAAc,GAAG;IACpB,cAAc,EAAE,MAAM,CAAC;IACvB,IAAI,EAAE,QAAQ,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG,SAAS,GAAG,WAAW,GAAG,iBAAiB,GAAG,mBAAmB,GAAG;IAC9F,EAAE,EAAE,iBAAiB,CAAC;IACtB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,QAAQ,CAAC;CAChB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ACP,CAAC;YACD,KAAK,qBAAqB,CAAC,CAAC,CAAC;gBAC3B,IAAI,CAAC,6BAA6B,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;gBACvD,MAAK;YACP,CAAC;YACD,KAAK,iBAAiB,CAAC,CAAC,CAAC;gBACvB,IAAI,CAAC,qBAAqB,CAAC,OAAO,CAAC,CAAC;gBACpC,MAAM;YACR,CAAC;QACH,CAAC;IACH,CAAC;CACF"}
@@ -1,19 +0,0 @@
1
- import { ServiceCallPayload } from "@foxglove/ws-protocol";
2
- import { FoxgloveCommunicator, FoxgloveAdapterInputMessage, FoxgloveAdapterOutputMessage } from "../communicator.js";
3
- export declare class WsWorker extends FoxgloveCommunicator {
4
- #private;
5
- protected send: (message: FoxgloveAdapterOutputMessage) => void;
6
- protected sendWithTransfer: (message: FoxgloveAdapterOutputMessage, transfer: ArrayBuffer[]) => void;
7
- protected isReady(): boolean;
8
- protected sendServiceCallRequest(request: ServiceCallPayload): void;
9
- subscribe(topics: string[]): void;
10
- unsubscribe(topics: string[]): void;
11
- constructor(wsUrl: string, send: (message: FoxgloveAdapterOutputMessage) => void, sendWithTransfer: (message: FoxgloveAdapterOutputMessage, transfer: ArrayBuffer[]) => void);
12
- rawSend(data: string | ArrayBuffer | ArrayBufferView): void;
13
- close(): void;
14
- callService({ name, serviceCallId, body }: (FoxgloveAdapterInputMessage & {
15
- type: "call_service";
16
- })["data"]): void;
17
- }
18
- export declare function createWsWorkerMessageListener(send: (message: FoxgloveAdapterOutputMessage) => void, sendWithTransfer: (message: FoxgloveAdapterOutputMessage, transfer: ArrayBuffer[]) => void): (event: MessageEvent<FoxgloveAdapterInputMessage>) => Promise<void>;
19
- //# sourceMappingURL=worker-utils.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"worker-utils.d.ts","sourceRoot":"","sources":["../../../../../../src/connection/ws/worker-utils.ts"],"names":[],"mappings":"AAMA,OAAO,EAAkB,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AA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